/* V19 acceptance correction · mobile-20260912. No content or API changes. */
@media (max-width: 800px) {
  html[data-product-version="V19"] { -webkit-text-size-adjust: 100%; }
  body { --mobile-gutter: clamp(18px, 5.6vw, 28px); }
  .brand-rail, .v19-page .brand-rail {
    position: absolute; top: max(16px, env(safe-area-inset-top));
    left: var(--mobile-gutter); right: auto; padding: 0; gap: 0;
    background: none; box-shadow: none; backdrop-filter: none; border-radius: 0;
    max-width: calc(100% - 100px);
  }
  .brand { min-width: 0; gap: 10px; }
  .brand img { width: 40px; height: 44px; flex: 0 0 auto; border-radius: 10px; }
  .brand span { min-width: 0; }
  .brand strong { font-size: 14px; line-height: 1.5; letter-spacing: .08em; }
  .brand small { font-size: 8px; line-height: 1.5; letter-spacing: .13em; }
  /* These are duplicate shortcuts. All seven destinations remain in Service. */
  .brand-rail .rail-actions { display: none; }
  .service-orb {
    position: absolute; width: 48px; height: 48px; right: 16px;
    top: max(14px, env(safe-area-inset-top)); bottom: auto;
    color: #fff; background: #214c42; box-shadow: 0 3px 20px #071a1633; border-color: #b7cdc188;
  }
  .service-orb strong { font-size: 16px; line-height: 1.4; }
  .service-orb small { font-size: 7px; }
  .service-orb:hover { transform: none; }

  /* Shared grid reserves the longest slide's copy height without absolute text. */
  .hero-carousel { display: grid; min-height: 0; background: #151e19; }
  .hero-carousel .hero-slide, .hero-carousel .hero-slide[hidden] {
    display: grid !important; grid-area: 1 / 1; grid-template-rows: auto 1fr;
    position: relative; inset: auto; min-width: 0; align-self: stretch;
    transition: opacity .3s ease; visibility: hidden; pointer-events: none;
  }
  .hero-carousel .hero-slide.is-active { visibility: visible; pointer-events: auto; }
  .hero-slide picture, .immersive-screen picture {
    display: block; position: relative; inset: auto; width: 100%; height: auto;
    aspect-ratio: 3 / 4; overflow: hidden;
  }
  .hero-slide img, .immersive-screen img {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 50%; transform: none; transition: none;
  }
  .hero-slide .shade, .immersive-screen .shade {
    inset: 0 0 auto; height: auto; aspect-ratio: 3 / 4; pointer-events: none;
    background: linear-gradient(180deg, #0b120e77, transparent 22%, transparent 88%, #151e19);
  }
  .hero-slide::after, .immersive-screen::after { display: none; }
  .hero-copy, .screen-copy, .screen-copy.right {
    position: relative; inset: auto; width: auto; min-width: 0;
    padding: 24px var(--mobile-gutter) 18px; background: #151e19;
    display: flex; flex-direction: column; align-items: stretch;
  }
  .hero-copy h1, .hero-copy h2, .screen-copy h2 {
    font-size: clamp(30px, 8.2vw, 36px); line-height: 1.32; letter-spacing: 0;
    font-weight: 400; text-shadow: none; text-wrap: balance; overflow-wrap: anywhere;
  }
  .eyebrow { font-size: 10px; line-height: 1.65; letter-spacing: .12em; margin-bottom: 12px; }
  .hero-copy > p:not(.eyebrow), .screen-copy > p:not(.eyebrow) {
    margin: 14px 0 0; font-size: 14px; line-height: 1.8; color: #c3ccc6;
  }
  .hero-actions { gap: 10px; margin-top: 22px; padding-top: 0; }
  .hero-copy .hero-actions { margin-top: auto; padding-top: 22px; }
  .hero-copy .hero-actions, .screen-copy .hero-actions { display: grid; grid-template-columns: 1.2fr 1fr; }
  .button {
    min-width: 0; max-width: 100%; min-height: 48px; padding: 12px 16px;
    font-size: 14px; line-height: 1.45; letter-spacing: .025em; border-radius: 4px;
    text-align: center; overflow-wrap: anywhere;
  }
  .carousel-controls {
    position: relative; inset: auto; grid-area: 2 / 1; justify-content: flex-start;
    gap: 8px; padding: 8px var(--mobile-gutter) 24px; min-width: 0; flex-wrap: wrap;
  }
  .carousel-controls > button { width: 44px; height: 44px; flex-shrink: 0; }
  .carousel-dots { gap: 0; padding: 2px; }
  .carousel-dots button { width: 38px; height: 44px; }
  .carousel-progress, .scroll-cue { display: none; }
  .hero-slide > .scene-label { top: 84px; right: 14px; writing-mode: horizontal-tb; font-size: 9px; letter-spacing: .06em; }
  .immersive-screen { min-height: 0; display: grid; background: #151e19; border-top: 1px solid #cad9cd24; }
  .immersive-screen .screen-copy { padding-bottom: 30px; }
  .screen-index { position: relative; inset: auto; padding: 0 var(--mobile-gutter) 24px; font-size: 11px; }

  .section-heading h2, .lead-section h2, .home-prep h2,
  .filter-studio .section-heading h2, .decision-section .section-heading h2,
  .candidate-list .section-heading h2, .form-section .section-heading h2,
  .measure-callout h2, .related-strip h2 {
    font-size: clamp(26px, 7.2vw, 32px); line-height: 1.4; letter-spacing: 0;
    overflow-wrap: anywhere; text-wrap: pretty;
  }
  .section-heading p, .lead-section p, .home-prep p { font-size: 14px; line-height: 1.85; }
  .product-matrix, .home-selector, .home-evidence, .home-prep, .lead-section,
  .filter-studio, .decision-section, .candidate-list, .form-section,
  .related-strip, .measure-callout { padding: 52px var(--mobile-gutter); }
  .matrix-grid { margin-top: 28px; grid-template-columns: 1fr; }
  .matrix-grid a, .matrix-grid a:nth-child(n) { min-height: 140px; padding: 22px 0; border-right: 0; }
  .matrix-grid h3 { font-size: 25px; line-height: 1.35; }
  .matrix-grid span { margin-bottom: 20px; }
  .matrix-grid small { margin-top: 8px; line-height: 1.6; }
  .selector-form { margin-top: 28px; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .selector-form label, .member-form label, .lead-form label { min-width: 0; }
  .selector-form select, .locale-search input, .member-form input,
  .lead-form input, .lead-form textarea, .lead-form select {
    min-width: 0; max-width: 100%; width: 100%; font-size: 16px; color-scheme: light;
  }
  .home-evidence { padding-top: 0; }
  .home-evidence-grid { margin-top: 28px; padding: 0; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .home-evidence-grid article > div { padding: 24px; }
  .home-evidence-grid h3 { font-size: 25px; line-height: 1.4; }
  .home-evidence-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  .home-prep { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .lead-section { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lead-actions { gap: 20px; }
  footer { padding: 36px var(--mobile-gutter) 96px; gap: 24px; flex-direction: column; align-items: flex-start; }
  footer nav { gap: 10px 20px; }
  footer nav a, footer nav button { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
  footer nav button { padding: 0; border: 0; background: transparent; text-decoration: underline; color: #ffffffad; }

  /* Secondary pages: reserve a real header row instead of oversized fixed rails. */
  .v19-page { padding-top: 76px; background: #151e19; }
  .page-main { overflow: clip; }
  .breadcrumbs { width: auto; margin: 0; padding: 18px var(--mobile-gutter); gap: 8px; font-size: 12px; line-height: 1.6; }
  .page-hero, .page-hero.compact { min-height: 0; padding: 40px var(--mobile-gutter); grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .page-hero h1, .product-hero-copy h1, .detail-summary h1, .service-hero h1, .archive-product h1 {
    font-size: clamp(30px, 8.2vw, 36px); line-height: 1.35; letter-spacing: 0; overflow-wrap: anywhere;
  }
  .page-hero > div > p:not(.eyebrow) { margin-top: 18px; font-size: 14px; line-height: 1.85; }
  .hero-proof { width: auto; aspect-ratio: auto; border: 0; border-top: 1px solid #ffffff30; border-radius: 0; background: none; padding-top: 20px; text-align: start; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; place-content: start; }
  .hero-proof b { grid-row: 1 / 3; font-size: 44px; align-self: center; }
  .hero-proof span, .hero-proof small { margin: 0; line-height: 1.5; }
  .filter-groups { margin-top: 28px; gap: 18px; }
  .filter-groups fieldset { min-width: 0; gap: 8px; }
  .filter-chip, .variant-chips button { padding: 10px 14px; font-size: 14px; line-height: 1.5; }
  .evidence-grid, .space-grid { padding: 0 var(--mobile-gutter) 48px; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .evidence-body { padding: 24px; }
  .evidence-body h2, .space-card h2 { font-size: 27px; line-height: 1.35; }
  .evidence-body > p:not(.micro-label) { min-height: 0; font-size: 14px; line-height: 1.8; }
  .card-actions { gap: 16px; }
  .card-actions a { min-height: 44px; display: inline-flex; align-items: center; }
  .product-hero, .detail-hero { width: 100%; margin: 0; padding: 0; min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .product-hero-media { min-height: 0; aspect-ratio: 3 / 4; overflow: hidden; }
  .product-hero-media picture { display: block; height: 100%; }
  .product-hero-media img { display: block; height: 100%; object-fit: cover; }
  .product-hero-copy, .detail-summary { padding: 30px var(--mobile-gutter); }
  .product-hero-copy .scene-label { position: static; margin-top: 22px; }
  .decision-grid { margin-top: 28px; grid-template-columns: minmax(0, 1fr); }
  .decision-grid article { min-height: 0; padding: 24px 0; border-right: 0; }
  .decision-grid h3 { margin-top: 18px; font-size: 22px; }
  .decision-grid ul, .truth-layers ul { margin-top: 20px; }
  .spec-layers, .truth-layers { padding: 0 var(--mobile-gutter) 48px; grid-template-columns: minmax(0, 1fr); }
  .spec-layers > div, .truth-layers article { padding: 24px; min-height: 0; }
  .spec-layers h2, .truth-layers h2 { font-size: 26px; line-height: 1.4; margin-bottom: 20px; }
  .media-gallery { padding: 12px; }
  .gallery-stage { aspect-ratio: 3 / 4; }
  .gallery-stage img { object-fit: contain; }
  .gallery-thumbs { gap: 8px; }
  .detail-summary dl { margin: 24px 0; }
  .detail-summary dl > div { gap: 8px; padding: 12px 0; grid-template-columns: 50px minmax(0, 1fr); line-height: 1.6; }
  .space-card { min-height: 0; display: grid; }
  .space-card::after { display: none; }
  .space-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  .space-card > div { position: relative; inset: auto; padding: 24px; }
  .space-card > .scene-label { top: 18px; right: 16px; writing-mode: horizontal-tb; }
  .space-card p { font-size: 14px; line-height: 1.8; }
  .space-hero { width: 100%; padding: 0; }
  .space-hero img { position: relative; inset: auto; z-index: 1; height: auto; aspect-ratio: 4 / 3; display: block; object-fit: cover; }
  .space-hero::before, .space-hero::after { display: none; }
  .space-hero > div { padding: 28px var(--mobile-gutter); }
  .space-hero .scene-label { display: block; position: static; margin-top: 16px; }
  .candidate-list > article { grid-template-columns: 28px minmax(0, 1fr); padding: 24px 0; gap: 10px; }
  .candidate-list > article a { grid-column: 2; display: inline-flex; align-items: center; min-height: 44px; }
  .service-hero { padding: 36px var(--mobile-gutter); grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .service-hero p { font-size: 14px; }
  .contact-actions { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); }
  .service-steps li { min-height: 48px; font-size: 14px; }
  .lead-form { margin-top: 26px; padding: 20px 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lead-form label.wide { grid-column: auto; }
  .lead-form label { font-size: 13px; }
  .lead-form button[type="submit"] { width: 100%; }
  .privacy-note { padding: 32px var(--mobile-gutter) 48px; }
  .privacy-note h2 { font-size: 24px; }
  .privacy-note p { font-size: 13px; }
  .archive-product { padding: 28px var(--mobile-gutter) 48px; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .archive-mark { width: 120px; font-size: 64px; }
  .related-strip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .related-links a { grid-template-columns: 60px minmax(0, 1fr); }
  .related-links a span { grid-column: 2; }

  .panel-backdrop { background: #06100a55; backdrop-filter: blur(2px); }
  .side-panel {
    width: min(370px, calc(100vw - 28px)); max-width: 100%;
    padding: max(20px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
    background: #f4f5f1; color-scheme: light; border-radius: 18px 0 0 18px;
    overscroll-behavior: contain; scrollbar-gutter: stable;
  }
  .panel-head { gap: 12px; padding-bottom: 18px; }
  .panel-head > div { min-width: 0; }
  .panel-head h2 { font-size: 26px; line-height: 1.4; overflow-wrap: anywhere; }
  .service-list { padding: 12px 0 0; gap: 2px; }
  .service-list a, .service-list button { min-height: 70px; padding: 10px 0; grid-template-columns: 24px minmax(0, 1fr) 18px; gap: 10px; }
  .service-list strong { font-size: 19px; line-height: 1.45; }
  .service-list small { font-size: 12px; line-height: 1.55; }
  .locale-grid { grid-template-columns: minmax(0, 1fr); }
  .locale-grid button { min-width: 0; gap: 12px; overflow-wrap: anywhere; font-size: 14px; }
  .locale-grid small { flex-shrink: 0; }
  .member-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member-tabs button { padding: 8px 4px; overflow-wrap: anywhere; font-size: 13px; }
  .member-form { min-width: 0; }
  .member-form .button { white-space: normal; }
  .side-panel [data-member-user] .button.ghost { color: #18352c; border-color: #bac9c1; background: #fff; }
  .translation-notice { position: relative; z-index: 70; font-size: 12px; padding: 12px var(--mobile-gutter); }
  body:has(main > .translation-notice) { padding-top: 76px; }
  .v19-toast { bottom: 88px; }
  html[dir="rtl"] .brand-rail { left: auto; right: var(--mobile-gutter); }
  html[dir="rtl"] .service-orb { right: auto; left: 16px; }
  html[dir="rtl"] .side-panel { border-radius: 0 18px 18px 0; }
  html[dir="rtl"] .service-list a, html[dir="rtl"] .service-list button { grid-template-columns: 18px minmax(0, 1fr) 24px; }
  html[dir="rtl"] .hero-copy, html[dir="rtl"] .screen-copy { left: auto; right: auto; }
}

/* Short landscape screens must scroll naturally instead of squeezing into 100vh. */
@media (min-width: 540px) and (max-width: 800px) {
  .hero-slide picture, .hero-slide .shade, .immersive-screen picture, .immersive-screen .shade { aspect-ratio: 4 / 3; }
  .hero-copy, .screen-copy, .screen-copy.right { padding-left: 36px; padding-right: 36px; }
  .carousel-controls { padding-left: 36px; }
}
