/* UI mobile style guide. Type tokens: Figma 1:946.
 * Layout tokens: approved industry/project/service mobile layouts.
 * Desktop and navigation geometry are intentionally outside this stylesheet.
 */
@media (max-width: 767px) {
  :root {
    --ui-font: 'Noto Sans', 'Noto Sans Hebrew', sans-serif;
    --ui-mh-l: 800 48px/56px var(--ui-font);
    --ui-mh-m: 800 40px/48px var(--ui-font);
    --ui-h1: 600 32px/40px var(--ui-font);
    --ui-h2: 400 32px/40px var(--ui-font);
    --ui-h3: 600 28px/36px var(--ui-font);
    --ui-h4: 700 24px/32px var(--ui-font);
    --ui-h4-regular: 400 24px/32px var(--ui-font);
    --ui-h5: 700 20px/28px var(--ui-font);
    --ui-body-lg: 400 18px/28px var(--ui-font);
    --ui-body-lg-semibold: 600 18px/28px var(--ui-font);
    --ui-body: 400 16px/24px var(--ui-font);
    --ui-body-bold: 700 16px/24px var(--ui-font);
    --ui-small: 400 14px/20px var(--ui-font);
    --ui-small-semibold: 600 14px/20px var(--ui-font);
    --ui-step: 400 18px/24px var(--ui-font);
    --ui-space-xs: 8px;
    --ui-space-sm: 12px;
    --ui-space-md: 16px;
    --ui-space-lg: 24px;
    --ui-space-xl: 32px;
    --ui-space-2xl: 40px;
    --ui-gutter: 20px;
    --ui-radius-image: 12px;
    --ui-radius-card: 20px;
    --ui-radius-panel: 24px;
    --ui-radius-pill: 56px;
  }
  :root[dir='rtl'] { --ui-font: 'Noto Sans Hebrew', 'Noto Sans', sans-serif; }
  body { font: var(--ui-body); }
  body :is(h1, h2, h3, h4, h5, h6) { font-family: var(--ui-font); letter-spacing: 0; overflow-wrap: break-word; }
  html[dir='rtl'] body :is(h1, h2, h3, h4, h5, h6) { text-align: right !important; }
  html:not([dir='rtl']) body :is(h1, h2, h3, h4, h5, h6) { text-align: left !important; }
  html[dir='rtl'] body :is(.impact-label, .career-item__title) { text-align: right !important; }
  html:not([dir='rtl']) body :is(.impact-label, .career-item__title) { text-align: left !important; }
  body h1 { font: var(--ui-h1); }
  body h2 { font: var(--ui-h2); }
  body h3 { font: var(--ui-h3); }
  body h4 { font: var(--ui-h4); }
  body h5, body h6 { font: var(--ui-h5); }
  /* Role mapping preserves the hierarchy of the approved page designs. */
  body:is(.page-template-page-service, .page-template-page-services, .single-ui_product, .single-project, .page-template-page-allservices) :is(.hero-title, .hp-title, .impact-title, .tm-title, .faq-title, .contact-title, .ai-sprint-hero-title, .ai-timeline-title, .ai-success-title, .project-overview-title h3, .project-challenges-title, .project-approach-title, .project-solution-title, .pc-header h2, .shop-designer-row--content h3) { font: var(--ui-h3); letter-spacing: 0; text-align: start; }
  body.single-project .project-hero-name h1 { font: var(--ui-h4); }
  body:is(.page-template-page-services, .single-ui_product) :is(.ai-sprint-info-question h2, .ai-who-title h3, .pc-card__title) { font: var(--ui-h4); }
  body:is(.page-template-page-services, .single-ui_product, .single-project) :is(.pc-card-title, .approach-card-title, .ai-success-tooltip-body h3) { font: var(--ui-h5); }
  body:is(.page-template-page-services, .single-ui_product) .ai-sprint-benefit h3 { font: var(--ui-body-bold); }
  body:is(.page-template-page-services, .single-ui_product) .ai-timeline-step-title { font: var(--ui-step); }
  body.single-project .approach-dot { font: var(--ui-step); }
  body.page-template-page-service :is(.hp-main-label, .hp-card-label) { font: var(--ui-h4-regular); }
  body.page-template-page-service .xp-title { font: var(--ui-h5); }
  body.page-template-page-service .xp-tag { font: var(--ui-h3); }
  body .site-footer .footer-col-title { font: var(--ui-body-bold); }
  body .site-footer .footer-slogan { font: var(--ui-mh-l); }
  /* Shared body copy, paragraphs and list rhythm; rich-text emphasis is retained. */
  body :is(.hero-description, .hp-main-text, .hp-card-text, .xp-text, .tm-text, .faq-body, .project-overview-text, .pc-card-body, .approach-card, .ai-success-tooltip-body, .project-solution-subtitle, .ai-sprint-info-text, .ai-who-text, .shop-designer-row--content, .pc-card__desc) { font: var(--ui-body); letter-spacing: 0; }
  body :is(.hero-description, .hp-main-text, .hp-card-text, .xp-text, .tm-text, .faq-body, .project-overview-text, .pc-card-body, .approach-card, .ai-success-tooltip-body, .ai-sprint-info-text, .ai-who-text, .shop-designer-row--content, .pc-card__desc) :is(p, li) { font-family: var(--ui-font); font-size: 16px; line-height: 24px; letter-spacing: 0; }
  body :is(.hero-description, .project-overview-text, .pc-card-body, .approach-card, .ai-success-tooltip-body, .ai-sprint-info-text, .ai-who-text, .shop-designer-row--content) p { margin-block: 0 var(--ui-space-md); }
  body :is(.hero-description, .project-overview-text, .pc-card-body, .approach-card, .ai-success-tooltip-body, .ai-sprint-info-text, .ai-who-text, .shop-designer-row--content) p:last-child { margin-bottom: 0; }
  body :is(.hero-description, .project-overview-text, .pc-card-body, .approach-card, .ai-sprint-info-text, .ai-who-text, .faq-body) :is(ul, ol) { padding-inline-start: var(--ui-space-lg); }
  body:is(.page-template-page-services, .single-ui_product) .ai-timeline-step-desc { font: var(--ui-small); }
  body:is(.page-template-page-services, .single-ui_product) .ai-timeline-step-desc :is(p, li) { font: inherit; }
  /* Existing mobile templates already use 20px gutters and 32px section padding. */
  body:is(.page-template-page-about, .page-template-page-career, .page-template-page-contact, .page-template-page-allservices, .page-template-page-shop) .container,
  body .simple-page .container-full { width: 100%; max-width: none; padding-inline: var(--ui-gutter); box-sizing: border-box; }
  body :is(.contact-section, .hp-cyber-section, .impact-section, .faq-section, .project-overview, .project-challenges, .project-approach, .ai-who-section, .ai-timeline, .shop-designer, .pc-section) { padding-block: var(--ui-space-xl); }
  body :is(.contact-title, .hp-title, .impact-title, .faq-title, .project-challenges-title, .project-approach-title) { margin-bottom: var(--ui-space-lg); }
  /* General pages which previously inherited desktop rem sizes. */
  body :is(.page-about-header, .shop-hero) { padding-top: 106px; padding-bottom: var(--ui-space-xl); }
  body .careers-hero { padding-bottom: var(--ui-space-xl); }
  body :is(.page-about-header h1, .careers-hero__title, .contact-hero-title, .shop-hero__title, .simple-page .hero-section h1) { font: var(--ui-h1); letter-spacing: 0; max-width: none; margin: 0 0 var(--ui-space-lg); }
  body :is(.page-about-header--content, .careers-hero__subtitle, .shop-hero__subtitle, .simple-page .intro-text) { font: var(--ui-body-lg); letter-spacing: 0; margin: 0 0 var(--ui-space-xl); }
  body :is(.page-about-header--content, .careers-hero__subtitle, .shop-hero__subtitle, .simple-page .intro-text) :is(p, li) { font: inherit; color: inherit; max-width: none; }
  body :is(.vision-title, .team-title, .join-cta-title, .parallax-col-text h2, .contact-card-title) { font: var(--ui-h3); margin: 0 0 var(--ui-space-lg); }
  body :is(.vision-desc, .join-cta-subtitle, .parallax-col-text .desc, .career-item__content, .policy-content-body, .course-card__desc, .impact-description) { font: var(--ui-body); letter-spacing: 0; text-align: start; }
  body :is(.vision-desc, .join-cta-subtitle, .parallax-col-text .desc, .career-item__content, .policy-content-body, .impact-description) :is(p, li) { font: inherit; }
  body :is(.vision-desc, .parallax-col-text .desc, .career-item__content, .policy-content-body) p + p { margin-top: var(--ui-space-md); }
  body .about-team-wrapper { padding-block: var(--ui-space-xl); }
  body .vision-block { margin-bottom: var(--ui-space-2xl); }
  body .team-header-row { margin-bottom: var(--ui-space-lg); gap: var(--ui-space-lg); }
  body .team-member-name { font: var(--ui-h5); }
  body .team-member-role { font: var(--ui-small); }
  body .team-member-details { padding: var(--ui-space-md); }
  body :is(.team-member-img-wrapper, .team-img-primary, .team-img-hover, .header-image-wrapper, .page-about-header--img) { border-radius: var(--ui-radius-panel); }
  body .join-cta-card { padding: var(--ui-space-xl) var(--ui-gutter); border-radius: var(--ui-radius-panel); text-align: start; align-items: stretch; }
  body .join-cta-content { max-width: none; }
  body .join-cta-subtitle { margin-bottom: var(--ui-space-lg); }
  body :is(.btn-pill-purple, .btn-pill-outline) { font: var(--ui-body); border-radius: var(--ui-radius-pill); min-height: 44px; padding: 10px var(--ui-space-xl); }
  body .career-item { border-radius: var(--ui-radius-card); margin-bottom: var(--ui-space-md); }
  body .career-item__toggle { padding: var(--ui-space-md); border-radius: var(--ui-radius-card); font-family: var(--ui-font); text-align: start; }
  body .career-item__title { font: var(--ui-h5); }
  body :is(.career-item__metas, .career-item__meta, .career-item__meta-sep) { font: var(--ui-small); }
  body .career-item__content { padding: var(--ui-space-lg) var(--ui-space-md); }
  body .career-item__content h3 { font: var(--ui-body-bold); margin-top: var(--ui-space-lg); }
  body .career-item__email { font: var(--ui-body-bold); margin-top: var(--ui-space-lg); overflow-wrap: anywhere; }
  body .careers-slider { margin-top: 0; padding-bottom: var(--ui-space-xl); }
  body .careers-slide-content { padding-inline: var(--ui-gutter); }
  body .careers-slide-quote { font: var(--ui-body-lg); }
  body .careers-slide-name { font: var(--ui-body-bold); }
  body .careers-slide-role { font: var(--ui-body); }
  body .simple-page .hero-section { padding: 106px 0 var(--ui-space-xl); }
  body .privacy-content-container { padding: var(--ui-space-xl) var(--ui-gutter); margin-bottom: var(--ui-space-xl); border-radius: var(--ui-radius-panel); }
  body .policy-section { padding-bottom: var(--ui-space-xl); margin-bottom: var(--ui-space-xl); gap: var(--ui-space-lg); }
  body .policy-section h2 { font: var(--ui-h4); min-width: 0; }
  body .policy-content-body { padding-inline: 0; min-width: 0; }
  /* All-services uses the same card scale as industry. */
  body.page-template-page-allservices .ai-sprint-hero-inner { padding-inline: 0; }
  body.page-template-page-allservices .ai-sprint-hero-head { margin-block: 0 var(--ui-space-lg); }
  body.page-template-page-allservices :is(.allservices-hero, .contact-section) { direction: inherit; }
  body.page-template-page-allservices .impact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--ui-space-md); }
  body.page-template-page-allservices .impact-card { padding: var(--ui-space-lg) var(--ui-space-md); border-radius: var(--ui-radius-card); }
  body.page-template-page-allservices .impact-label { font: var(--ui-h4); text-align: start; }
  body.page-template-page-allservices .impact-number { font: var(--ui-h2); }
  body.page-template-page-allservices .impact-link { font: var(--ui-body-bold); }
  body.page-template-page-allservices .ai-sprint-hero-he-title { font: var(--ui-h4-regular); text-align: start; }
  body.page-template-page-allservices .ai-sprint-hero-he-title p { font: inherit; }
  /* Shop listing is distinct from workshop detail pages. */
  body .shop-hero__content { text-align: start; }
  body .shop-grid { padding-block: var(--ui-space-xl); }
  body .shop-grid__inner { gap: var(--ui-space-lg); }
  body .shop-steps__item { font: var(--ui-step); }
  body .course-card { border-radius: var(--ui-radius-card); }
  body .course-card__body { padding: var(--ui-space-lg) var(--ui-space-md); text-align: start; }
  body .course-card__title { font: var(--ui-h4); }
  body .course-card__badge { font: var(--ui-small-semibold); }
  body :is(.course-card__price-new, .course-card__price-old) { font: var(--ui-body); }
  body .course-card__price { flex-wrap: wrap; }
  /* Contact headings and controls share the same scale on every template. */
  body .contact-title { font: var(--ui-h3); letter-spacing: 0; }
  body.page-template-page-contact :is(.contact-page, .contact-cta) { direction: inherit; }
  body .contact-hero { padding-bottom: var(--ui-space-xl); }
  body .contact-card.container { padding: var(--ui-space-xl) var(--ui-gutter); border-radius: var(--ui-radius-panel); }
  body .contact-visual-heading { font: var(--ui-h4-regular); letter-spacing: 0; }
  body .ui-contact-form :is(input[type='text'], input[type='email'], input[type='tel'], textarea),
  body .ui-contact-form :is(input, textarea)::placeholder { font: var(--ui-body); }
  body .ui-contact-form .wpcf7-list-item-label { font: var(--ui-small); }
  body .contact-cta-label { font: var(--ui-body-lg); }
  /* Home retains its independent glass header and category navigation. */
  body .home-container .main-content h1 { font: var(--ui-mh-m); letter-spacing: 0; margin-bottom: var(--ui-space-lg); }
  body .home-container .subtitle { font: var(--ui-body); margin-bottom: var(--ui-space-lg); text-align: start; }
  body .home-container .category-btn { display: inline-flex; align-items: center; justify-content: center; font: var(--ui-small-semibold); padding: 8px; }
  body .policy-content-body h3 { font: var(--ui-h5); margin-block: var(--ui-space-lg) var(--ui-space-sm); }
  body .policy-content-body h4 { font: var(--ui-body-bold); margin-block: var(--ui-space-md) var(--ui-space-xs); }
  /* Intentional centered compositions: homepage and text over hero banners. */
  html body .home-container :is(.main-content h1, .subtitle, .subtitle p),
  html body .ai-sprint-hero-image .ai-sprint-hero-he-title,
  html body .ai-sprint-hero-image .ai-sprint-hero-he-title p { text-align: center !important; }
}
