/* 2026-11-25 conversion fixes (layout only). Remove this file and its <link> in Base.astro to undo.
   Phone rules are scoped to the hero blocks they reorder, so other pages are untouched. */

/* F5 proof strip — one quiet line linking to /wholesale/#proof */
.proof-strip { margin: 0; font-size: .8125rem; line-height: 1.5; }
.proof-strip a { display: inline-flex; align-items: baseline; gap: .5em; padding: .5rem 0; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--hairline-strong); }
.proof-strip a:hover { color: var(--accent); }
.proof-strip__mark { color: var(--accent); font-size: .65em; transform: translateY(-.1em); }
.hero .proof-strip { margin-top: var(--s-4, 1rem); }
.shop-hero .proof-strip { padding-block: 14px 18px; }
.shop-hero .proof-strip a { color: #e0e2e6; }

/* F4 /tables/: compact heading, then the cards */
.tables-top .tables-title { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); margin-bottom: var(--s-4, 1rem); }
.tables-top .tables-lead { margin-bottom: 0; max-width: 62ch; }
.tables-top .tables-series { display: block; margin-top: var(--s-8, 3rem); }
@media (max-width: 768px) {
  /* The translated /tables/ pages keep their text; only the spacing above it is tightened so the
     quote button is not left under the analytics banner. */
  #main[data-sitefix-tables] > section.section:not(.tables-top):has(> .wrap > h1.hero-title) { padding-top: 1.25rem; }
  #main[data-sitefix-tables] > section.section:not(.tables-top):has(> .wrap > h1.hero-title) .breadcrumb { margin-bottom: .75rem; }
  #main[data-sitefix-tables] > section.section:not(.tables-top):has(> .wrap > h1.hero-title) h1.hero-title { font-size: 2rem; line-height: 1.25; }
  .tables-top { padding-top: 1.25rem; }
  .tables-top .breadcrumb { margin-bottom: .75rem; }
  .tables-top .tables-title { font-size: 2rem; line-height: 1.12; }
  .tables-top .tables-lead { font-size: .9375rem; line-height: 1.55; }
  .tables-top .grid.mt-grid { margin-top: 1.25rem; }
}

/* F1 product pages on phones: photo between the title and the price; less space above the title.
   Only pages marked data-sitefix-model at build time (/slim-voice/ and /slim-voice-score/, 8 languages).
   (a) .hero layout. */
@media (max-width: 768px) {
  #main[data-sitefix-model] > section.hero { padding-top: 1.25rem; padding-bottom: 2.5rem; }
  #main[data-sitefix-model] > section.hero .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  #main[data-sitefix-model] > section.hero .hero-inner > .reveal:first-child { display: contents; }
  #main[data-sitefix-model] > section.hero .breadcrumb { order: 1; margin-bottom: .75rem; }
  #main[data-sitefix-model] > section.hero .kicker { order: 2; align-self: flex-start; }
  #main[data-sitefix-model] > section.hero .hero-title { order: 3; margin-top: .75rem; margin-bottom: .25rem; }
  #main[data-sitefix-model] > section.hero .hero-inner .jp { order: 4; margin-bottom: .75rem !important; }
  #main[data-sitefix-model] > section.hero .hero-visual { order: 5; max-width: none; width: 100%; margin: 0 0 1rem; }
  #main[data-sitefix-model] > section.hero .price { order: 6; }
  #main[data-sitefix-model] > section.hero .hero-cta { order: 7; margin-top: 1rem; }
  #main[data-sitefix-model] > section.hero .proof-strip { order: 7; }
  #main[data-sitefix-model] > section.hero .hero-lead { order: 8; margin: 1.5rem 0 0; }
  #main[data-sitefix-model] > section.hero .hero-visual--media .hero-product { animation: none; }

  /* (b) split layout (Slim Voice). */
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) { padding-top: 1.25rem; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .breadcrumb { margin-bottom: .75rem; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div { display: contents; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:first-child > .section-eyebrow { order: 1; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:first-child > .hero-title { order: 2; margin-bottom: .75rem; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:last-child > .preview { order: 3; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 1rem; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:first-child > .price { order: 4; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:first-child > .hero-cta { order: 5; margin-top: 1rem; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:first-child > p.text-muted { order: 6; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:first-child > .lead-text { order: 7; margin-top: 1.5rem; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:last-child > * { order: 8; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:last-child > .preview { order: 3; }
}

/* F3 home hero on phones: the table photo is shown in the open (no dark veil), between the
   headline and the lead; the hero no longer stretches to 78svh. */
@media (max-width: 700px) {
  [data-design="wa"] .shop-hero { min-height: 0; }
  [data-design="wa"] .shop-hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-block: 84px 8px; }
  [data-design="wa"] .shop-intro { display: contents; }
  [data-design="wa"] .shop-intro > .shop-eyebrow { order: 1; }
  [data-design="wa"] .commerce-home .shop-intro > h1 { order: 2; margin: 10px 0 14px; }
  [data-design="wa"] .shop-hero-lounge { order: 3; position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin: 0 calc(-1 * clamp(20px, 4vw, 56px)) 16px; background: #0a0b0d; }
  [data-design="wa"] .shop-hero-lounge img,
  [data-design="wa"] .shop-hero-lounge .shop-hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 60%; }
  [data-design="wa"] .shop-hero-lounge::after { z-index: 1; background: linear-gradient(0deg, rgba(10,11,13,.7), transparent 38%); }
  [data-design="wa"] .shop-hero-lounge figcaption { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 10px; padding: 8px 12px; font-size: 12px; flex-wrap: nowrap; }
  [data-design="wa"] .shop-intro > .shop-lead { order: 4; margin: 0; }
  [data-design="wa"] .shop-intro > .shop-actions { order: 5; margin-top: 20px; }
  [data-design="wa"] .shop-intro > .shop-small { order: 6; }
}

/* Desktop/laptop, model pages only: the price and buy button come right after the title, the
   description follows, and the space above the hero is reduced, so the buy button sits in the first
   screen above the analytics banner at 1024×768 and up (checked at 1024, 1280, 1366). */
@media (min-width: 769px) {
  #main[data-sitefix-model] > section.hero { padding-top: 2rem; padding-bottom: 3rem; min-height: 0; }
  #main[data-sitefix-model] > section.hero .hero-inner > .reveal:first-child { display: flex; flex-direction: column; align-items: stretch; }
  #main[data-sitefix-model] > section.hero .breadcrumb { order: 1; margin-bottom: 1rem; }
  #main[data-sitefix-model] > section.hero .kicker { order: 2; align-self: flex-start; }
  #main[data-sitefix-model] > section.hero .hero-title { order: 3; font-size: clamp(2.5rem, 1rem + 3.2vw, 4.25rem); margin: .75rem 0 .25rem; }
  #main[data-sitefix-model] > section.hero .hero-inner .jp { order: 4; margin-bottom: 1rem !important; }
  #main[data-sitefix-model] > section.hero .price { order: 5; }
  #main[data-sitefix-model] > section.hero .hero-cta { order: 6; margin-top: 1rem; }
  #main[data-sitefix-model] > section.hero .proof-strip { order: 7; align-self: flex-start; }
  #main[data-sitefix-model] > section.hero .hero-lead { order: 8; margin: 1.5rem 0 0; }

  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) { padding-top: 2rem; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .breadcrumb { margin-bottom: 1rem; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:first-child { display: flex; flex-direction: column; align-items: stretch; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:first-child > .section-eyebrow { order: 1; align-self: flex-start; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:first-child > .hero-title { order: 2; font-size: clamp(2.5rem, 1rem + 3.2vw, 4.25rem); margin-bottom: 1rem; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:first-child > .price { order: 3; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:first-child > .hero-cta { order: 4; margin-top: 1rem; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:first-child > p.text-muted { order: 5; margin-top: .75rem; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:first-child > .lead-text { order: 6; margin-top: 1.5rem; }
}

/* Tablets in portrait (600–768px): the phone order would push the buy button below the first screen
   (the photo is ~700px wide there), so the photo follows the buy button instead. Model pages only. */
@media (min-width: 600px) and (max-width: 768px) {
  #main[data-sitefix-model] > section.hero .hero-visual { order: 7; margin: 1.25rem 0 0; }
  #main[data-sitefix-model] > section.section:has(.split--top .hero-title):has(.price) .split--top > div:last-child > .preview { order: 5; margin: 1.25rem 0 0; }
}
