/* Valor r6, r6-chrome: owned by one builder only (see docs/PLAN-2026-10-08.md). Loaded after fc.css and page stylesheets.
   Builder B: the Shop dropdown (his frame 4:13), the full-view menu, the footer on black (1:475), cart drawer and search overlay.
   Every rule is scoped to a chrome class: .tick .hdr .mega .menu .ftr .cartd .sover */

/* ===== Shop dropdown, his frame 4:13: white panel, three columns, a quiz row, the page dimmed at 60 % behind it ===== */
.hdr .mega { --mg-h: #667085; --mg-s: #344054; --mg-rule: #EAECF0; background: #FFFFFF; border-bottom: 0; box-shadow: none; }
[data-theme="dark"] .hdr .mega { --mg-h: var(--ink-3); --mg-s: var(--ink-2); --mg-rule: var(--line); background: var(--white); }
/* the scrim hangs under the panel, so the ticker and header stay lit as in his frame; it never takes the pointer */
.hdr .mega::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: rgba(0, 0, 0, 0.6); pointer-events: none; }
.hdr .mega-in { max-width: 1320px; padding: 40px var(--gut); display: grid; grid-template-columns: minmax(0, 344.5fr) minmax(0, 344.5fr) minmax(0, 455fr); column-gap: 40px; row-gap: 0; align-items: start; }
.hdr .mega-h { font-family: var(--display); font-weight: 800; font-size: 12px; line-height: 17px; letter-spacing: 6px; text-transform: uppercase; color: var(--mg-h); margin: 0; }
.hdr .mega-list { list-style: none; margin: -3px 0 0; padding: 0; }
.hdr .mega-list li + li { border-top: 1px solid var(--mg-rule); }
.hdr .mega-col .mega-list a { display: block; padding: 19px 0 18px; font-family: var(--text); font-size: 16px; line-height: 21px; font-weight: 400; color: var(--ink); white-space: normal; letter-spacing: 0; }
.hdr .mega-list b { font-weight: 700; font-style: italic; }
.hdr .mega-col .mega-list li:last-child a { padding-bottom: 0; }   /* his rule sits 40 px under the photo, not under a last hairline */
@media (hover: hover) { .hdr .mega-col .mega-list a:hover { color: var(--blue); } }
.hdr .mega-cust__card { display: grid; grid-template-columns: minmax(0, 212px) minmax(0, 223px); column-gap: 20px; align-items: end; margin-top: 18px; }
.hdr .mega-cust__img { display: block; position: relative; aspect-ratio: 212 / 258; border-radius: 8px; overflow: hidden; background: var(--slot); }
.hdr .mega-cust__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (hover: hover) { .hdr .mega-cust__card:hover .mega-cust__img img { transform: scale(1.04); } }
.hdr .mega-cust__txt { display: grid; justify-items: start; }
.hdr .mega-cust__t { font-family: var(--text); font-weight: 600; font-size: 24px; line-height: 30px; color: var(--ink); margin: 0; max-width: 200px; }   /* breaks after "made" as in his frame */
.hdr .mega-cust__s { font-size: 14px; line-height: 20px; color: var(--mg-s); margin: 12px 0 0; }
.hdr .mega-cust__txt .pill { margin-top: 40px; }
.hdr .mega-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--mg-rule); }
.hdr .mega-foot p { font-size: 14px; line-height: 20px; color: var(--mg-h); margin: 0; }
/* the band between the Shop link and the panel belongs to the item, so a slow pointer on its way down never closes it (fc.js sets --mega-gap) */
.hdr .mega::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(var(--mega-gap, 18px) - 2px); }
/* the panel turns visible at once on open, so ArrowDown from a closed Shop can focus the first tier in the same keystroke */
.hdr .nav-item[data-open="true"] .mega { transition: opacity 180ms ease, transform 180ms ease, visibility 0s; }
/* with JavaScript off the panel still opens on hover or keyboard focus */
html.no-js .hdr .nav-item[data-mega]:hover .mega, html.no-js .hdr .nav-item[data-mega]:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
/* narrower desktops: the card tightens under 1366, then stacks photo over text under 1200 so the pill never clips */
@media (max-width: 1365px) { .hdr .mega-cust__card { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); column-gap: 16px; } .hdr .mega-cust__txt .pill { padding: 0 18px; } }
@media (max-width: 1199px) { .hdr .mega-in { column-gap: 28px; } .hdr .mega-cust__card { grid-template-columns: minmax(0, 1fr); row-gap: 16px; } .hdr .mega-cust__img { aspect-ratio: auto; height: 132px; } .hdr .mega-cust__t { max-width: none; font-size: 20px; line-height: 26px; } .hdr .mega-cust__txt .pill { margin-top: 20px; } }

/* the cart drawer and the search overlay live inside .page (z-index 1), under the sticky header (60): drop the header while they are open */
html.cart-open .hdr, html.search-open .hdr, body:has(.sover:target) .hdr,
html.cart-open .tick, html.search-open .tick, body:has(.sover:target) .tick { z-index: 0; }

/* ===== cart drawer: an empty list takes no row, so "Nothing in it yet." sits under the title, not at the foot ===== */
.cartd .cartd__list:empty { display: none; }

/* ===== search overlay: the card never grows past the phone width ===== */
.sover { grid-template-columns: minmax(0, 1fr); }
.sover .sover__in { min-width: 0; }
.sover .srch { grid-template-columns: minmax(0, 1fr); }   /* the suggestion panel no longer widens the form past the card */
.sover .srch__foot .tlink { white-space: nowrap; flex: none; }   /* "All results" stays on one line; the hint takes what is left */
.sover .srch__foot .quiet { min-width: 0; }

/* ===== the full-view menu: his photo on Shop; eight sub-links fit at every width ===== */
.menu .mi__photo img { object-position: 50% 55%; }
/* phones and tablets: every sub-link is a 40 px row */
@media (max-width: 1023px) { .menu .mi__sub { gap: 0; } .menu .mi__sub a { padding: 9px 0; min-height: 40px; } }

/* ===== footer on black, his frame 1:475: light greys from his file in both modes, his 168 px rhythm on top ===== */
.ftr { background: #000000; border-top: 0; color: #D0D5DD; padding: clamp(88px, 12vw, 168px) 0 clamp(34px, 4.4vw, 62px); }
.ftr .ftr__tag { color: #F2F4F7; line-height: 1.38; margin-top: 0; font-weight: 700; }   /* his 1:496 is Bold, one step under the global .cond */
.ftr .ftr__sub { color: #D0D5DD; line-height: 23.25px; }
.ftr .ftr__col b { color: #D0D5DD; }
.ftr .ftr__col a { color: #F9FAFB; }
@media (hover: hover) { .ftr .ftr__col a:hover, .ftr .ftr__legal a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; } }
.ftr .ftr__bar { border-top-color: #344054; color: #D0D5DD; }
.ftr .ftr__pay span, .ftr .ftr__pay .quiet { border-color: #667085; color: #D0D5DD; }
.ftr .ftr__legal { max-width: min(580px, 100%); line-height: 18.75px; }
.ftr .ftr__legal a { color: inherit; }
@media (min-width: 1024px) { .ftr .ftr__top { row-gap: 8px; } .ftr .ftr__logo { margin-top: 9px; } }
/* phones and tablets: every footer link is a 40 px row */
@media (max-width: 1023px) { .ftr .ftr__col { row-gap: 0; } .ftr .ftr__col b { margin-bottom: 6px; } .ftr .ftr__col a { display: inline-flex; align-items: center; min-height: 40px; } }

/* ===== the ticker keeps his #101828 strip in both modes (section 3b, untouched) ===== */
.tick { background: #101828; color: rgba(250, 250, 248, 0.88); }
.tick .tick__set > span { border-right-color: rgba(250, 250, 248, 0.18); }
.tick .tick__set > span b { color: #FAFAF8; }
.tick .tick__set img, [data-theme="dark"] .tick .tick__set img { filter: invert(1); }

/* ===== phones: while the sticky bar shows, the WhatsApp launcher rides above it and the bar takes the full width ===== */
@media (max-width: 1023px) {
  .wa { transition: bottom 220ms ease, opacity 200ms ease, visibility 200ms; }
  /* round 2: hidden until the first scroll past 120 px (fc.js sets body.wa-on); with JS off it shows as before */
  html.js body:not(.wa-on) .wa { opacity: 0; visibility: hidden; }
  body:has(.mcta:not([hidden])) .wa { bottom: calc(66px + 12px + env(safe-area-inset-bottom, 0px)); }
  body:has(.mcta:not([hidden])) .mcta { padding-right: var(--gut); }
}

/* round 1 finding 39 (main session): "Have a code?" gets a 40 px tap row, the look unchanged */
.cartd .cartd__code summary { display: inline-flex; align-items: center; min-height: 40px; }
/* round 2: dark-mode eyebrows and small blue text take the lighter --blue-down (#8288FF) for 4.5:1 on the dark paper, tint and warm
   bands; filled pills keep --blue. :where() keeps the specificity of the plain class, so eyebrows on photo bands stay white. */
:where([data-theme="dark"]) .hand, :where([data-theme="dark"]) .tbtn2, :where([data-theme="dark"]) .faq__x { color: var(--blue-down); }
[data-theme="dark"] .mini__it.on .hand, [data-theme="dark"] .card__foot .hand, [data-theme="dark"] .tape__set span .hand { color: var(--blue-down); }

/* round 2 leftovers (main session, 9 Oct): dark small blue text on /guide, the light .g-ink band on /about in dark,
   light-mode grey on tinted grounds and the Verified buyer green on white, all to 4.5:1 or better */
[data-theme="dark"] .mini__it.on .cond, [data-theme="dark"] .mini__it.on .ico, [data-theme="dark"] .guide3__it a { color: var(--blue-down); }
[data-theme="dark"] .g-ink .hand { color: #444CE7; }
html:not([data-theme="dark"]) .build__sum :is(dt, .quiet) { color: #5E6478; }
html:not([data-theme="dark"]) body.home .who__photo figcaption { color: #5E6478; }
html:not([data-theme="dark"]) .rev figcaption .vbuy { color: #027A48; }
