/* Atrix Research Labs storefront. Design system: precision laboratory commerce.
   Tokens first (light on :root; neutral charcoal dark for the OS setting and for the explicit toggle),
   then base, layout, components. Square geometry (0-2 px), fine rules instead of shadows, violet as the
   accent. Fonts are self-hosted (SIL OFL 1.1; licenses in /assets/fonts). */

@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/montserrat-latin-wght.woff2") format("woff2-variations"), url("/assets/fonts/montserrat-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-wght.woff2") format("woff2-variations"), url("/assets/fonts/ibm-plex-sans-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Font-swap CLS (C4, 14 Nov): metric-matched fallbacks, measured in Chromium against the Arial metrics (Liberation
   Sans on Linux), so the text keeps its line breaks when the web font arrives. Regular and bold measured separately. */
@font-face { font-family: "Montserrat Fallback"; font-weight: 100 550; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 112.19%; ascent-override: 86.46%; descent-override: 22.28%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Fallback"; font-weight: 551 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 107.99%; ascent-override: 89.83%; descent-override: 23.15%; line-gap-override: 0%; }
@font-face { font-family: "IBM Plex Sans Fallback"; font-weight: 100 550; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 100.85%; ascent-override: 102.13%; descent-override: 27.76%; line-gap-override: 0%; }
@font-face { font-family: "IBM Plex Sans Fallback"; font-weight: 551 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 96.95%; ascent-override: 106.24%; descent-override: 28.88%; line-gap-override: 0%; }

/* ---------- Tokens ----------
   Light: white and off-white commerce surfaces, ink text, violet as the accent, navy kept for the brand
   footer. Dark: neutral charcoal (no blue cast), the same violet lifted for contrast. Product image panels
   stay lit in both themes: the vial photographs carry their own light studio backdrop (#f3f3f5). */
:root {
  --stage-edge: rgba(176, 150, 222, .5); --card-shadow: 0 10px 30px -12px rgba(40, 24, 72, .22); --card-shadow-hover: 0 18px 40px -14px rgba(40, 24, 72, .32);   /* layout review: product stages and cards */
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f0f1f3;
  --band: #ffffff;                 /* full-width bands between the off-white sections */
  --elevated: #ffffff;             /* menus and other surfaces raised over the page */
  --panel: #f2f3f5;                /* product image panel: close to the vial photographs' own backdrop */
  --ink: #17171c;
  --muted: #60616d;
  --faint: #686974;             /* Astra F08: 4.8:1 or better on every light surface (was #8b8c96, 3.0 to 3.3:1) */
  --line: #dddee3;
  --line-strong: #c6c7cf;
  --accent: #65419a;
  --accent-strong: #50317d;
  --accent-soft: #b7a2da;
  --on-accent: #ffffff;
  --header-bg: #ffffff;
  --footer-bg: #17171c;            /* near-black, neutral */
  --footer-ink: #f2f2f5;
  --footer-muted: #aaaab5;
  --footer-line: rgba(255, 255, 255, .12);
  --ok: #1d7a4b;
  --ok-fill-from: #1d7a4b; --ok-fill-to: #126b3f;   /* the COA badges' solid green (owner, 13 Nov 2026; C3's spec), both themes; white on the stops 5.33:1 and 6.56:1 */
  --info: #2b6cb0;                 /* COA redesign: "View at lab" (AA on its 12% tint, tools/test-coa-redesign.mjs) */
  --warn: #8f5a00;
  --danger: #b42318;
  --font-display: "Montserrat", "Montserrat Fallback", Arial, Helvetica, sans-serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans Fallback", Arial, Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header-h: 60px;
  --gutter: 16px;
  --radius: 10px;                  /* fields (UI rule) */
  --radius-lg: 16px;               /* cards, panels */
  --radius-button: 999px;          /* every button (owner, 28 Oct: rounded, with the 16 px rounded cards): a pill */
  --section: 48px;                 /* section padding (spacing scale 4/8/12/16/24/32/48/64/96) */
  color-scheme: light;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --header-h: 72px; --gutter: 32px; --section: 64px; } }
/* Motion tokens (C3's motion pass, 13 Nov): UI responses never above --dur-l; all 0 under reduce */
:root { --dur-press: 80ms; --dur-s: 150ms; --dur-m: 220ms; --dur-l: 280ms; --stagger: 40ms; --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); --press-scale: .97; --select-scale: 1.03; }
@media (prefers-reduced-motion: reduce) { :root { --dur-press: 0ms; --dur-s: 0ms; --dur-m: 0ms; --dur-l: 0ms; --stagger: 0ms; --press-scale: 1; --select-scale: 1; } }
:root.save-data { --dur-press: 0ms; --dur-s: 0ms; --dur-m: 0ms; --dur-l: 0ms; --stagger: 0ms; --press-scale: 1; --select-scale: 1; }   /* Save-Data: as reduced motion (the head script sets the class) */
:root.save-data *, :root.save-data ::before, :root.save-data ::after { animation: none !important; transition: none !important; }   /* and nothing moves (C3, 14 Nov) */
/* Motion pass, the buy box (C3, principles 1 and 9): the chosen tile at 1.03, press squash, swapped figures fade in. */
.qty-tile, .save-cart__row .button--primary { transition: transform var(--dur-s) var(--ease-out); }
.qty-tile[aria-checked="true"] { transform: scale(var(--select-scale)); }
.qty-tile:active, .save-cart__row .button--primary:active:not(:disabled) { transform: scale(var(--press-scale)); transition-duration: var(--dur-press); }
@keyframes m-swap-a { from { opacity: 0; } }
@keyframes m-swap-b { from { opacity: 0; } }
@keyframes m-rise { from { opacity: 0; transform: translateY(4px); } }
[data-swap="a"] { animation: m-swap-a var(--dur-s) var(--ease-out); }
[data-swap="b"] { animation: m-swap-b var(--dur-s) var(--ease-out); }
.save-cart__state:where(:not([hidden]):has(> [data-save-done]:not([hidden]))) { animation: m-rise var(--dur-s) var(--ease-out); }
:root:has(dialog.gate[open]) :is([data-swap], .save-cart__state, .qty-tile, .save-cart__row .button--primary) { animation: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .qty-tile, .save-cart__row .button--primary { transition: none; transform: none; } [data-swap], .save-cart__state { animation: none; } }
/* Motion pass, part 2 (C3): the arc to the cart, the count's bounce, the busy pulse; none under reduce. */
:root { --ease-in-out: cubic-bezier(.65, 0, .35, 1); --ease-follow: cubic-bezier(.34, 1.56, .64, 1); --busy-after: 400ms; }
.m-arc { position: fixed; left: 0; top: 0; z-index: 60; width: 28px; height: 28px; pointer-events: none; }
.m-arc img { display: block; box-sizing: border-box; width: 28px; height: 28px; padding: 2px; object-fit: contain; border: 1px solid var(--accent); border-radius: var(--radius-button); background: var(--surface); }
@keyframes m-bounce { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 70% { transform: scale(.96); } 100% { transform: scale(1); } }
.header-cart .header-account__count.is-bump { animation: m-bounce var(--dur-l) var(--ease-follow); }
html:has(#buy:target):not(.is-landed) { scroll-behavior: auto; }
@keyframes m-busy { from { opacity: .55; } to { opacity: .9; } }
form[aria-busy="true"] button[type="submit"]:disabled { animation: m-busy var(--dur-l) var(--ease-in-out) var(--busy-after) infinite alternate; }
:root:has(dialog.gate[open]) :is(.header-account__count, .m-arc, form button) { animation: none; }
@media (prefers-reduced-motion: reduce) { .header-cart .header-account__count, form[aria-busy="true"] button[type="submit"]:disabled, .m-arc { animation: none; } }

:root[data-theme="dark"] {
  --stage-edge: rgba(52, 26, 98, .85); --card-shadow: 0 0 0 1px rgba(165, 139, 204, .16), 0 14px 34px -14px rgba(0, 0, 0, .7); --card-shadow-hover: 0 0 0 1px rgba(165, 139, 204, .3), 0 20px 44px -14px rgba(0, 0, 0, .8);
  --bg: #0c0c10; --surface: #17171d; --surface-2: #141419; --band: #141419; --elevated: #202026; --panel: #f2f3f5;
  --ink: #f2f2f5; --muted: #aaaab5; --faint: #8f909a; --line: #303039; --line-strong: #44444f;
  --accent: #a58bcc; --accent-strong: #bba5db; --accent-soft: #6e5a91; --on-accent: #0c0c10;
  --header-bg: #0c0c10; --footer-bg: #08080b; --footer-ink: #f2f2f5; --footer-muted: #aaaab5; --footer-line: #26262e;
  --ok: #6cc895; --warn: #e0b060;
  --danger: #f97066;
  --info: #7fb0ea;
  color-scheme: dark;
}

:root{--kraft:#e8d5b5;--kraft-edge:#b39466}
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img[hidden], svg[hidden] { display: none; }   /* the rule above must not override the hidden attribute (the product page's neutral placeholder) */
a { color: inherit; }
h1, h2, h3, h4, .hero-product__name, .hero-docs__title { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-button);
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* A quiet label above a heading, used sparingly: sentence case, not a tracked monospace banner. */
.eyebrow { font: 500 .875rem/1.4 var(--font-body); color: var(--muted); }
.lead { font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 1.6; color: var(--muted); max-width: 36em; }

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: var(--radius-button); font: 600 .875rem/1.2 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
}
.button svg { width: 18px; height: 18px; flex: none; }
.button--lg { min-height: 52px; padding: 14px 26px; font-size: .9375rem; }
.button--primary { background: var(--accent); color: var(--on-accent); }
.button--primary:hover { background: var(--accent-strong); }
.button--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--secondary:hover { background: var(--ink); color: var(--bg); }
.button--light { background: #fff; color: #17171c; }
.button--light:hover { background: #ece6f6; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 600 .9375rem/1.3 var(--font-body); text-decoration: none; }
.text-link svg { width: 18px; height: 18px; color: var(--accent); transition: transform .15s ease; }
.text-link:hover { color: var(--accent); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ----------
   Logo on the left, the navigation centred, the theme switch on the right. A solid white (or charcoal) bar
   with a fine rule; over the film on the homepage it is transparent until the page scrolls (hero.js). */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__logo { width: auto; height: 40px; }
/* The logo files carry a faint matte around the mark; blending lets the background show through
   so the mark sits cleanly on the header in both themes. */
.brand__logo--light { mix-blend-mode: multiply; }
.brand__logo--dark { mix-blend-mode: screen; }
.brand__logo--dark { display: none; }
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }
/* The logo image carries the ATRIX wordmark; beside it, "Research Labs" alone completes the name on one line. */
.brand__name { font: 600 .6875rem/1.3 var(--font-display); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }
.brand__name span { display: block; color: var(--muted); }
@media (min-width: 900px) { .brand__logo { height: 46px; } .brand__name { font-size: .75rem; } }

.primary-nav ul { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: flex; align-items: center; min-height: var(--header-h); border-bottom: 2px solid transparent; margin-bottom: -1px; padding-top: 2px;
  font: 500 .9375rem/1.2 var(--font-body); color: var(--muted); text-decoration: none;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
/* The shop call to action: wide screens only (phones reach the shop from the menu and the page). */
.header-cta { display: none; min-height: 40px; padding: 8px 16px; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }
/* Mid widths: six links fit beside the actions (the call to action returns at 1366; Catalog is in the links). */
@media (min-width: 900px) and (max-width: 1365px) { .primary-nav ul { gap: 18px; } .header-cta { display: none; } }
@media (min-width: 900px) {
  .site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .site-header__inner .brand { justify-self: start; }
  .header-actions { justify-self: end; }
}

.icon-button {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; flex: none;
  border: 1px solid var(--line); border-radius: var(--radius-button); background: transparent; color: var(--ink); cursor: pointer;
}
.icon-button:hover { border-color: var(--ink); }
.icon-button svg { width: 19px; height: 19px; }
.theme-toggle svg + svg { display: none; }
:root[data-theme="dark"] .theme-toggle svg:first-child { display: none; }
:root[data-theme="dark"] .theme-toggle svg + svg { display: block; }
.menu-button { display: none; }

@media (max-width: 1179px) {   /* the menu takes the links below 1180: six links and the actions need the width */
  .js .menu-button { display: inline-flex; width: 44px; height: 44px; border-color: transparent; }
  .js .primary-nav { display: none; }
  .js .site-header__inner { display: grid; grid-template-columns: 44px 1fr 44px; }
  .js .site-header__inner .brand { justify-self: center; }
  .js .header-actions { justify-self: end; }
  .js .theme-toggle { width: 44px; height: 44px; border-color: transparent; }
  /* Without scripts there is no menu dialog: the links wrap onto their own row instead. */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .primary-nav { order: 3; width: 100%; margin: 0; }
  html:not(.js) .primary-nav ul { gap: 20px; flex-wrap: wrap; }
  html:not(.js) .primary-nav a { min-height: 44px; }
  html:not(.js) .header-actions { margin-left: auto; }
}

/* ---------- Mobile menu (native <dialog>) ---------- */
.menu-dialog {
  position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); max-width: none; height: 100%; max-height: none; margin: 0;
  padding: 8px var(--gutter) 24px; border: 0; border-right: 1px solid var(--line); background: var(--elevated); color: var(--ink);
}
.menu-dialog::backdrop { background: rgba(12, 12, 16, .55); }
.menu-dialog__top { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.menu-dialog__title { font: 600 .875rem/1 var(--font-body); color: var(--muted); }
.menu-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.menu-list a {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--line);
  font: 600 1.125rem/1.2 var(--font-display); color: var(--ink); text-decoration: none;
}
.menu-list a[aria-current] { color: var(--accent); }
.menu-list svg { width: 18px; height: 18px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .menu-dialog[open] { animation: menu-in .2s ease-out; }
  @keyframes menu-in { from { transform: translateX(-16px); opacity: 0; } }
}

/* ---------- Film hero (homepage) ---------- */
/* The film starts at the top of the page, behind the header (its height plus its 1 px border), and fills the screen. */
.home .hero-film { margin-top: calc(-1 * var(--header-h) - 1px); }
.hero-film {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end;
  min-height: 100vh; min-height: 100svh; background: #07091a; color: #fff;
}
.hero-film__media { position: absolute; inset: 0; z-index: -1; background: #07091a; }
/* The poster is the film's first frame, so the change from poster to film is seamless. */
.hero-film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; background: #07091a; }
/* Hero C (9 Nov): the helix canvas fills the media, deep violet until it draws; the film rules above are R7's, inert. */
.hero-video, .hero-cover img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: #14081f; }
/* Shade only where text sits: under the header and behind the copy and the cue. The vials stay clear. */
.hero-film__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(7, 9, 26, .6) 0, rgba(7, 9, 26, 0) calc(var(--header-h) + 56px)),
    linear-gradient(to top, rgba(7, 9, 26, .8) 0, rgba(7, 9, 26, .38) 24%, rgba(7, 9, 26, 0) 44%);
}
.hero-film__cue {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px;
  color: rgba(255, 255, 255, .82); text-decoration: none; white-space: nowrap;
  font: 500 .6875rem/1.2 var(--font-mono); letter-spacing: .2em; text-transform: uppercase;
}
.hero-film__cue svg { width: 18px; height: 18px; }
.hero-film__cue:hover { color: #fff; }
.hero-film__cue:focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-film__cue svg { animation: hero-cue 2.2s ease-in-out infinite; }
  @keyframes hero-cue { 0%, 100% { transform: translateY(-2px); opacity: .7; } 50% { transform: translateY(5px); opacity: 1; } }
}

/* ---------- Film hero foreground (R7) ----------
   Three layers: the film (above, unchanged), the interface, and the Atrix vials, cut out of their studio backdrop.
   The film is the hero: its centre stays clear, with no vial in front of the film's own centre vial.
   Wide screens: on the left the headline, the side stage (the five vials as floating cutouts beside the chosen
   vial, which turns) and the documents module; the film in the middle; the product on the right.
   Narrow screens: the product's name at the top, the film, then the side stage in a row, the action and the
   documents link. */
.hero-ui { position: relative; z-index: 2; align-self: stretch; min-height: 100vh; min-height: 100svh; color: #fff; pointer-events: none; }
/* The interface lies over the whole film; only its own contents take the pointer. */
.hero-ui__intro, .hero-picker, .hero-vial, .hero-docs, .hero-product > * { pointer-events: auto; }
.hero-film__title { color: #fff; }
.hero-film__lead { color: rgba(255, 255, 255, .8); }

/* The chosen vial: the still (and, while turned, the renderer's canvas), cut out of its studio backdrop by the
   matte (tools/vial-bases/make-cutout-mattes.py). Its box is the vial's own outline, so the pointer turns the
   vial only over the vial. A soft dark falloff behind it (the same matte, blurred) sets it off the film. */
.hero-vial { position: relative; height: var(--hv-h); aspect-ratio: 11 / 20; }
.hero-vial .vial-stage, .hero-vial__halo { --vial-fit: contain; --vial-zoom: 2.1; --vial-origin: 50% 51.2%; }
.hero-vial .vial-stage[data-base="10ml"], .hero-vial__halo[data-base="10ml"] { --vial-zoom: 1.8; --vial-origin: 50% 47.4%; }
.hero-vial .vial-stage > img, .hero-vial .vial-stage__canvas, .hero-vial__halo span {
  -webkit-mask: url(/assets/vial/cutout-3ml.webp) var(--vial-origin) / contain no-repeat;
  mask: url(/assets/vial/cutout-3ml.webp) var(--vial-origin) / contain no-repeat;
}
.hero-vial .vial-stage[data-base="10ml"] > img, .hero-vial .vial-stage[data-base="10ml"] .vial-stage__canvas, .hero-vial__halo[data-base="10ml"] span {
  -webkit-mask-image: url(/assets/vial/cutout-10ml.webp); mask-image: url(/assets/vial/cutout-10ml.webp);
}
.hero-vial .vial-stage > img { pointer-events: none; }
/* While the vial turns, only the canvas shows (the still would thicken the glass); visibility, so it switches at once (R8). */
.hero-vial .vial-stage.is-live > img { visibility: hidden; }
.hero-vial .vial-stage[role="slider"]:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.hero-vial__halo { position: absolute; inset: 0; pointer-events: none; filter: blur(22px); opacity: .9; }
.hero-vial__halo span {
  position: absolute; inset: 0; background: #050508;
  transform: scale(calc(var(--vial-zoom) * 1.24)); transform-origin: var(--vial-origin);
}
.hero-vial.is-switching .vial-stage > img { opacity: 0; }

/* Selector: the five Atrix vials as floating cutouts, with no frame, panel or backdrop. Each button is the
   vial's own outline (an invisible margin widens the touch target); the vial's edges are its only boundary.
   Their matte is the selector's own (cutout-select-*.webp, tools/vial-bases/make-cutout-mattes.py): the outline
   follows the bottle, from the cap's elliptical top to the glass heel, anti-aliased all round, so a small vial
   reads as a complete bottle with a natural glass base. The chosen vial: a little larger, a fine violet rule,
   and a short turn as it is chosen (hero-select.js). Keyboard focus shows only while focused.
   Each vial turns with the same renderer as the chosen vial: the pointer turns it a little as it moves across,
   a sideways touch drag turns it. */
.hero-picker__list { display: flex; align-items: center; gap: var(--pick-gap); list-style: none; margin: 0; padding: 0; }
.hero-pick {
  position: relative; display: block; height: var(--pick-h); aspect-ratio: 11 / 20; padding: 0; border: 0; background: none; cursor: pointer;
  touch-action: pan-y; -webkit-tap-highlight-color: transparent; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .32));
  --vial-zoom: 2.1; --vial-origin: 50% 51.2%; --pick-matte: url(/assets/vial/cutout-select-3ml.webp);
}
.hero-pick[data-base="10ml"] { --vial-zoom: 1.8; --vial-origin: 50% 47.4%; --pick-matte: url(/assets/vial/cutout-select-10ml.webp); }
.hero-pick::after { content: ""; position: absolute; inset: -4px -6px; }
/* The still at rest; while the vial turns, the renderer's canvas in the same framing, under the same matte. */
.hero-pick img, .hero-pick__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: var(--vial-origin);
  transform: scale(var(--vial-zoom)); transform-origin: var(--vial-origin); pointer-events: none;
  -webkit-mask: var(--pick-matte) var(--vial-origin) / contain no-repeat; mask: var(--pick-matte) var(--vial-origin) / contain no-repeat;
}
.hero-pick__canvas { opacity: 0; }
.hero-pick.is-live .hero-pick__canvas { opacity: 1; }
.hero-pick.is-live img { opacity: 0; }
.hero-pick:hover, .hero-pick:focus-visible { transform: translateY(-2px); }
.hero-pick[aria-pressed="true"] { transform: scale(1.08); }
.hero-pick[aria-pressed="true"]:hover, .hero-pick[aria-pressed="true"]:focus-visible { transform: translateY(-2px) scale(1.08); }
.hero-pick[aria-pressed="true"]::before { content: ""; position: absolute; background: #a58bcc; }
.hero-pick:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.hero-ui__count { font: 500 .75rem/1 var(--font-mono); letter-spacing: .16em; color: rgba(255, 255, 255, .66); }
html:not(.js) .hero-picker, html:not(.js) .hero-ui__count { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-pick { transition: transform .2s ease; }
  .hero-vial .vial-stage > img { transition: opacity .25s ease; }
}

/* Product documents module. */
.hero-docs {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; max-width: 420px; padding: 16px 20px 16px 16px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-lg); background: rgba(12, 12, 16, .72);
}
/* The left tile: the COA library's QR code (white, once /coa is live), or until then a document symbol. */
.hero-docs__code { width: 96px; aspect-ratio: 1; padding: 0; border-radius: var(--radius); overflow: hidden; }
.hero-docs__code[data-cert-library] { background: #fff; }
.hero-docs__code svg { display: block; width: 100%; height: auto; }
.hero-docs__code--icon { display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .86); }
.hero-docs__code--icon svg { width: 46px; }
.hero-docs__body { display: grid; gap: 6px; justify-items: start; }
.hero-docs__title { font-size: 1.125rem; color: #fff; }
.hero-docs__title + p { font-size: .8125rem; line-height: 1.5; color: rgba(255, 255, 255, .74); }
.hero-docs__link { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: #fff; font: 600 .8125rem/1.2 var(--font-body); text-decoration: none; }
.hero-docs__link svg { width: 16px; height: 16px; color: #bba5db; }
.hero-docs__link:hover { color: #d9cdee; }
.hero-docs :focus-visible, .hero-product :focus-visible { outline-color: #fff; }

/* The product shown. */
.hero-product { display: grid; gap: 14px; justify-items: start; align-content: end; max-width: 420px; }
.hero-product__tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--radius-button);
  font: 500 .8125rem/1.2 var(--font-body); color: rgba(255, 255, 255, .88);
}
.hero-product__tag::before { content: ""; width: 7px; height: 7px; background: #a58bcc; }
.hero-product__name { --name-size: clamp(2.5rem, 1.5rem + 2.6vw, 4.25rem); font-size: var(--name-size); line-height: 1.02; color: #fff; text-wrap: balance; text-shadow: 0 2px 28px rgba(7, 9, 26, .55); }
.hero-product__name[data-long] { --name-size: clamp(2rem, 1.3rem + 1.9vw, 3.125rem); }
/* The name breaks only between words, never larger than its longest word fits (--name-em, hero-select.js). */
.hero-product__word { white-space: nowrap; }
@supports (width: 1cqi) { .hero-product__name { font-size: min(var(--name-size), 100cqi / var(--name-em, 1)); } }
.hero-product__spec { font: 500 1.125rem/1.4 var(--font-body); letter-spacing: .02em; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 16px rgba(7, 9, 26, .7); }
.hero-product__text { font-size: .9375rem; line-height: 1.55; color: rgba(255, 255, 255, .84); max-width: 38ch; text-shadow: 0 1px 16px rgba(7, 9, 26, .8); }
.hero-product__text:empty { display: none; }
.hero-product__facts {
  display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-lg); background: rgba(12, 12, 16, .55);
}
.hero-product__facts > div { display: grid; gap: 4px; padding: 14px 16px; min-width: 0; }
.hero-product__facts > div + div { border-left: 1px solid rgba(255, 255, 255, .14); }
.hero-product__facts dt { font-size: .75rem; color: rgba(255, 255, 255, .62); }
.hero-product__facts dd { font: 600 .9375rem/1.3 var(--font-body); color: #fff; }
.hero-product__cta { width: 100%; justify-content: space-between; }
.hero-product__note { margin-top: -4px; font-size: .8125rem; color: rgba(255, 255, 255, .66); }
.hero-product__note:empty { display: none; }
.hero-product__links { display: flex; flex-wrap: wrap; gap: 6px 22px; width: 100%; list-style: none; margin: 2px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-product__links a { display: inline-flex; align-items: center; min-height: 32px; font-size: .8125rem; color: rgba(255, 255, 255, .8); text-decoration: none; }
.hero-product__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Wide screens: three parts. The middle column is the film's own centre vial (it scales with the screen's height,
   or its width on very wide screens), kept clear; shade only at the sides, where the text and the vials sit. */
@media (orientation: landscape) and (min-width: 700px) {
  .hero-ui {
    display: grid; grid-template-columns: minmax(0, 1fr) max(26vw, 44svh) minmax(0, 1fr); align-items: stretch;
    padding-block: calc(var(--header-h) + clamp(20px, 5svh, 56px)) clamp(76px, 11svh, 108px);
  }
  /* The side stage: the five vials in a column beside the headline and the chosen vial, the documents below. */
  .hero-ui__aside {
    grid-column: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "rail intro" "rail vial" "docs docs"; column-gap: clamp(22px, 2.2vw, 36px); row-gap: 24px; min-width: 0;
    --pick-h: clamp(52px, 9svh, 100px); --pick-gap: clamp(8px, 1.2svh, 14px);
  }
  .hero-ui__stage { display: contents; }
  .hero-picker { grid-area: rail; align-self: start; padding: 4px 0 0 14px; }
  .hero-picker__list { flex-direction: column; }
  .hero-pick[aria-pressed="true"]::before { left: -14px; top: 28%; bottom: 28%; width: 2px; }
  .hero-ui__intro { grid-area: intro; display: grid; gap: 12px; padding-top: 10px; }
  .hero-ui__intro::before { content: ""; width: 40px; height: 1px; background: rgba(255, 255, 255, .5); }
  .hero-vial { grid-area: vial; --hv-h: min(100%, 42svh); justify-self: start; align-self: center; margin-left: clamp(0px, 1.5vw, 24px); }
  .hero-docs { grid-area: docs; }
  .hero-film__title { font-size: clamp(1.25rem, .9rem + .7vw, 1.625rem); line-height: 1.22; max-width: 15ch; text-shadow: 0 1px 24px rgba(7, 9, 26, .55); }
  .hero-film__lead { font-size: .875rem; line-height: 1.5; max-width: 30ch; }
  .hero-product { grid-column: 3; justify-self: end; width: 100%; container-type: inline-size; }
  /* The shade covers the text column (--side); the right stays clear for the floating vials (hero-vials.css). */
  .hero-film__media::after {
    --side: calc((100vw - max(26vw, 44svh)) / 2);
    background:
      linear-gradient(to bottom, rgba(7, 9, 26, .6) 0, rgba(7, 9, 26, 0) calc(var(--header-h) + 56px)),
      linear-gradient(to right, rgba(7, 9, 26, .84) 0, rgba(7, 9, 26, .7) calc(var(--side) - 170px), rgba(7, 9, 26, 0) calc(var(--side) + 20px)),
      linear-gradient(to top, rgba(7, 9, 26, .55) 0, rgba(7, 9, 26, 0) 16%);
  }
}
@media (orientation: landscape) and (min-width: 700px) and (max-width: 1199px) {
  .hero-docs { grid-template-columns: minmax(0, 1fr); }
  .hero-docs__code { display: none; }
  .hero-product__facts { grid-template-columns: minmax(0, 1fr); }
  .hero-product__facts > div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
}
/* Short landscape screens (a phone on its side): the same composition, compact; the headline is kept for
   assistive technology only, the five vials run the height of the side stage. */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-ui { padding-block: calc(var(--header-h) + 10px) 56px; }
  .hero-ui__aside {
    grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "rail vial" "rail docs"; column-gap: 18px; row-gap: 12px;
    --pick-gap: 4px; --pick-h: calc((100svh - var(--header-h) - 66px - 4 * var(--pick-gap) - 8px) / 5);
  }
  .hero-picker { padding: 4px 0 0 10px; }
  .hero-pick::after { inset: -2px -9px; }
  .hero-pick[aria-pressed="true"]::before { left: -10px; }
  .hero-ui__intro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-vial { margin-left: 0; }
  .hero-vial__halo { filter: blur(12px); }
  .hero-docs__title + p, .hero-product__links, .hero-product__facts, .hero-product__tag, .hero-product__note { display: none; }
  .hero-docs { padding: 8px 12px; }
  .hero-docs__title { font-size: .9375rem; }
  .hero-product { gap: 10px; }
  .hero-product__name { --name-size: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
  .hero-product__name[data-long] { --name-size: clamp(1.25rem, .9rem + 1.5vw, 1.75rem); }
  .hero-product__spec { font-size: .9375rem; }
  .hero-product__cta { min-height: 44px; padding: 10px 16px; }
}

/* Narrow and portrait screens: one column. The name over the film's cap, the film's own vial clear in the
   middle, then the side stage in a row (the five vials, the chosen one beside them), the action and the
   documents link. */
@media not all and (orientation: landscape) and (min-width: 700px) {
  .hero-ui {
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto auto auto; row-gap: 0;
    padding-block: calc(var(--header-h) + 14px) 68px;
    grid-template-areas: "intro" "tag" "name" "spec" "." "stage" "cta" "docs";
    container-type: inline-size;
  }
  .hero-ui__aside, .hero-product { display: contents; }
  /* W-05: the headline and the research-use line lead on phones too. */
  .hero-ui__intro { grid-area: intro; display: grid; gap: 4px; margin-bottom: 14px; }
  .hero-ui .hero-ui__intro .hero-film__title { font-size: 1.125rem; }
  .hero-ui__intro .hero-film__lead { font-size: .8125rem; max-width: none; }
  .hero-ui__count { display: none; }
  .hero-product__tag { grid-area: tag; justify-self: start; margin-bottom: 10px; padding: 4px 8px; font-size: .75rem; }
  .hero-product__name { grid-area: name; --name-size: clamp(1.75rem, 1.2rem + 3vw, 2.75rem); }
  .hero-product__name[data-long] { --name-size: clamp(1.5rem, 1rem + 2.6vw, 2.25rem); }
  .hero-product__spec { grid-area: spec; margin-top: 4px; font-size: 1rem; }
  .hero-product__facts, .hero-product__links, .hero-product__text, .hero-product__note { display: none; }
  .hero-ui__stage {
    grid-area: stage; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px;
    --pick-h: clamp(56px, min(9svh, 19vw), 96px); --pick-gap: 6px;
  }
  .hero-picker__list { align-items: flex-end; padding-bottom: 12px; }
  .hero-pick[aria-pressed="true"]::before { left: 24%; right: 24%; bottom: -12px; height: 2px; }
  .hero-vial { --hv-h: clamp(120px, min(21svh, 46vw), 230px); flex: none; }
  .hero-product__cta { grid-area: cta; min-height: 50px; }
  .hero-docs { grid-area: docs; grid-template-columns: minmax(0, 1fr); max-width: none; margin-top: 10px; padding: 0; border: 0; background: none; }
  .hero-docs__code, .hero-docs__title + p { display: none; }
  .hero-docs__body { grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .hero-docs__title { font-size: .9375rem; }
  .hero-vial__halo { filter: blur(12px); opacity: .78; }
  .hero-vial__halo span { transform: scale(calc(var(--vial-zoom) * 1.12)); }
  .hero-film__media::after {
    background:
      linear-gradient(to bottom, rgba(7, 9, 26, .82) 0, rgba(7, 9, 26, .5) 20%, rgba(7, 9, 26, 0) 32%),
      linear-gradient(to top, rgba(7, 9, 26, .86) 0, rgba(7, 9, 26, .6) 26%, rgba(7, 9, 26, 0) 40%);
  }
}
/* Short portrait screens: the tag goes, the side stage and the action tighten. */
@media (orientation: portrait) and (max-height: 720px), (max-width: 699px) and (max-height: 720px) {
  .hero-product__tag { display: none; }
  .hero-ui { padding-block: calc(var(--header-h) + 10px) 58px; }
  .hero-ui__stage { margin-bottom: 12px; --pick-h: clamp(52px, min(10svh, 18vw), 72px); }
  .hero-vial { --hv-h: clamp(104px, 19svh, 150px); }
  .hero-product__cta { min-height: 46px; }
  .hero-docs { margin-top: 4px; }
}

/* Header over the film (homepage, scripts running, top of the page): transparent and light on the film.
   hero.js adds .is-solid once the page scrolls; without scripts the header stays solid. */
.js .home .site-header:not(.is-solid) { background: transparent; border-bottom-color: transparent; }
.js .home .site-header:not(.is-solid) .brand { color: #fff; }
.js .home .site-header:not(.is-solid) .brand__name span { color: rgba(255, 255, 255, .76); }
.js .home .site-header:not(.is-solid) .primary-nav a { color: rgba(255, 255, 255, .86); }
.js .home .site-header:not(.is-solid) .primary-nav a:hover { color: #fff; }
.js .home .site-header:not(.is-solid) .primary-nav a[aria-current] { color: #fff; border-bottom-color: #fff; }
.js .home .site-header:not(.is-solid) .icon-button { border-color: rgba(255, 255, 255, .36); color: #fff; }
.js .home .site-header:not(.is-solid) .icon-button:hover { border-color: #fff; }
.js .home .site-header:not(.is-solid) .brand__logo--light { display: none; }
.js .home .site-header:not(.is-solid) .brand__logo--dark { display: block; }
.js .home .site-header:not(.is-solid) :focus-visible { outline-color: #fff; }
@media (max-width: 899px) { .js .home .site-header:not(.is-solid) .icon-button { border-color: transparent; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(32px, 4vw, 48px); }
.section--alt { background: var(--band); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); }
.page-intro { padding-block: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); background: var(--band); }
.page-intro h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); margin: 0 0 12px; }
.page-intro .eyebrow { margin-bottom: 6px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; font-size: .8125rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: var(--ink); }
/* Owner (27 Oct): crumbs on one line of centres, each "/" ending the crumb before it, a long name wrapping inside its crumb. */
.breadcrumb ol { align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb li + li::before { content: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; flex: none; margin-left: 6px; color: var(--line-strong); }

.section-head { display: grid; gap: 10px; justify-items: start; margin-bottom: 24px; }

/* Section heads: the title on the left, a link on the right, on a fine rule. */
.section-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px;
  padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.section-bar__title { display: grid; gap: 4px; }
.section .section-bar h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); }
.section-bar .text-link { padding-bottom: 4px; }

/* ---------- Featured (homepage) ----------
   The owner's featured catalog listings (Visible Release 2, F14: never the reference vials). UI-4: one short
   row of up to four compact cards and a link to the full catalog (the grid is under Product grids). */
.featured { padding-top: clamp(48px, 6vw, 72px); }
.featured .section-bar h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); letter-spacing: -.02em; }   /* F17: on the common section scale, under the page's h1 */
/* F14: with nothing featured, one plain line (home.js; without scripts it is simply there). */
.featured__empty { color: var(--muted); }
html:not(.js) .featured__empty[hidden] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal="pending"] > li { opacity: 0; transform: translateY(18px); }
  [data-reveal="done"] > li { transition: opacity var(--dur-l) var(--ease-out), transform var(--dur-l) var(--ease-out); transition-delay: calc(min(var(--i, 0), 5) * var(--stagger)); }
}

/* ---------- Shop the catalog (homepage) ----------
   A band between Featured and the quality section. home.js sets data-state: loading, empty, unavailable or products. */
.discover { background: var(--band); border-block: 1px solid var(--line); }
.discover__band { display: grid; gap: 16px 48px; align-items: center; }
@media (min-width: 900px) { .discover__band { grid-template-columns: minmax(0, 1fr) auto; } }
.discover__copy { display: grid; gap: 8px; justify-items: start; }
.section .discover__copy h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); }
.discover__status { max-width: 60ch; color: var(--muted); font-size: .9375rem; }
.discover__status:empty { display: none; }
.discover[data-state="loading"] .discover__status { animation: status-in .2s ease-out .4s both; }
@keyframes status-in { from { opacity: 0; } }
.discover__products { display: grid; gap: clamp(32px, 4vw, 48px); min-width: 0; margin-top: clamp(28px, 3.5vw, 40px); }
.discover__products[hidden] { display: none; }
.discover__block { display: grid; gap: 16px; min-width: 0; }
.discover__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.discover__label { font: 600 1rem/1.4 var(--font-display); color: var(--ink); }

/* Category index (homepage): only categories that hold products, each linking to its /shop page. Ruled rows. */
.category-index {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.category-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; height: 100%; padding: 16px 0 18px;
  border-top: 2px solid var(--ink); color: var(--ink); text-decoration: none;
}
.category-link__name { font: 600 1.125rem/1.3 var(--font-display); }
.category-link__count { font-size: .875rem; color: var(--muted); }
.category-link__items { font-size: .875rem; color: var(--muted); }
.category-link > * { grid-column: 1; }
.category-link svg { grid-column: 2; grid-row: 1 / span 3; width: 20px; height: 20px; color: var(--accent); transition: transform .15s ease; }
.category-link:hover .category-link__name { color: var(--accent); }
.category-link:hover svg { transform: translateX(3px); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.panel__title { font: 600 1.0625rem/1.3 var(--font-display); margin-bottom: 8px; }

/* ---------- Quality and Research Use pages ---------- */
.definition-list { display: grid; }
.definition-list > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.definition-list > div:first-child { border-top: 0; }
.definition-list dt { font-weight: 600; color: var(--ink); }
.definition-list dd { color: var(--muted); }
@media (max-width: 599px) { .definition-list > div { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; gap: 12px 64px; }
.split__body { display: grid; gap: 16px; justify-items: start; max-width: 40.8em; color: var(--muted); }
.split__body .definition-list { width: 100%; }
.faq__item h3 { font-size: 1.125rem; }   /* R21-B (F5): the questions, not the browser's 1.17em */
/* Policy pages: the section sub-heads (C3, 14 Nov 2026) */
main:has(.policy-contents) .split__body > h3 { font: 600 1.125rem/1.3 var(--font-display); letter-spacing: -.01em; color: var(--ink); margin-top: 16px; }
main:has(.policy-contents) .split__body > h3:first-child { margin-top: 0; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.split .eyebrow + h2 { margin-top: 8px; }
.label-points { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--line); }
.label-points li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
/* Legal notice (Terms 17, 18): sentence case, conspicuous: an accent rule, inset, heavier heading. */
.legal-notice { border-left: 3px solid var(--accent); padding-left: 20px; margin-block: 24px; color: var(--ink); }
.legal-notice .split__body { gap: 20px; color: var(--ink); }
.legal-h2--notice { font-weight: 700; }

/* ---------- Quality and research (homepage) ----------
   A short introduction and a ruled list of destinations: no boxes, no icons. */
.editorial { background: var(--band); border-top: 1px solid var(--line); }
.editorial__inner { display: grid; gap: 28px 64px; }
@media (min-width: 900px) { .editorial__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.editorial__intro { display: grid; gap: 14px; justify-items: start; }
.section .editorial__intro h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); }
.editorial__intro p { color: var(--muted); max-width: 48ch; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.checks li::before { content: ""; flex: none; width: .65em; height: .35em; border: solid var(--accent); border-width: 0 0 2px 2px; transform: translateY(-.25em) rotate(-45deg); }
.editorial__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.editorial-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 24px; align-items: center; padding: 20px 0;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.editorial-link__title { grid-column: 1; font-size: 1.125rem; line-height: 1.3; }
.editorial-link__text { grid-column: 1; color: var(--muted); font-size: .9375rem; }
.editorial-link svg { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; color: var(--accent); transition: transform .15s ease; }
.editorial-link:hover .editorial-link__title { color: var(--accent); }
.editorial-link:hover svg { transform: translateX(4px); }

/* ---------- Shop ---------- */
.page-intro--shop .lead { max-width: 38.4em; }
.section--catalog { padding-top: 0; }
/* Categories as underline text tabs on a fine rule, with the product count on the right. On a narrow screen the
   tabs scroll sideways inside their row rather than wrapping or widening the page. */
.shop-toolbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 24px;
  margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.shop-count { flex: none; padding-bottom: 12px; font-size: .875rem; color: var(--muted); white-space: nowrap; }
.shop-toolbar .shop-count:only-child { margin-left: auto; }
.category-nav { min-width: 0; margin-bottom: -1px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; overscroll-behavior-x: contain; }
.category-nav ul { display: flex; flex-wrap: nowrap; gap: 0 28px; list-style: none; margin: 0; padding: 0; }
.category-nav li { flex: none; }
.category-nav a {
  display: inline-flex; align-items: baseline; gap: 6px; min-height: 48px; padding: 14px 0 12px; white-space: nowrap;
  border-bottom: 2px solid transparent; color: var(--muted); font: 500 .9375rem/1.2 var(--font-body); text-decoration: none;
}
@media (max-width: 599px) {
  .shop-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .shop-count { order: -1; padding: 16px 0 0; }
  .category-nav ul { gap: 0 22px; }
}
.category-nav a:hover { color: var(--ink); }
.category-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.category-nav__count { font-size: .8125rem; color: var(--faint); }
.category-nav a[aria-current="page"] .category-nav__count { color: var(--muted); }

/* ---------- Product grids ---------- */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr)); }
.product-grid > li { min-width: 0; }
/* UI-4 (owner, 27 Oct): Featured is one short row of the Catalog's compact cards (catalog.css), four at most:
   two across on phones and tablets, four from 1000 px. */
.product-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .product-grid--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* UI-4b (27 Oct): stock pill headroom on phones; the 10 mL cap level with the 3 mL caps. */
.product-grid--featured .vial-stage { --vial-fit: contain; --vial-zoom: .98; --vial-origin: 50% 60%; }
.product-grid--featured .vial-stage[data-base="10ml"] { --vial-zoom: .88; --vial-origin: 50% 84%; }
/* Further listings on the homepage: two across on phones, four on desktops. */
.product-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .product-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
/* /shop: one column on phones, two on tablets, three on desktops. */
/* Layout review (27 Oct): compact Catalog cards, 2/3/4 across; size chips; one price line. */
.product-grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .product-grid--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .product-grid--shop { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.product-grid--shop .product-card__media { aspect-ratio: 4 / 5; }
.product-grid--shop .vial-stage { --vial-fit: contain; --vial-zoom: 1.12; --vial-origin: 50% 52%; }
.product-grid--shop .vial-stage[data-base="10ml"] { --vial-zoom: 1.02; --vial-origin: 50% 48%; }
.product-grid--shop .product-card__category { display: none; }
.product-grid--shop .product-card .product-card__body .product-card__title, .product-grid--shop .product-card__buy .price__current { font-size: 1rem; }

/* ---------- Product card ----------
   The image first: a large, evenly lit product panel; then the name, the sizes, the price and availability.
   Square, with a fine border; no shadow. One design for the collection and catalog listings. */
.product-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
@media (hover: hover) { .product-card:hover { border-color: var(--line-strong); } }
.product-card:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* The image panel stays bright in both themes, like a product photograph: the Atrix vial photograph, or the
   neutral outline for a product the vial cannot show. 5:6 on cards (close to the photographs' 4:5, so the
   taller 10 mL vial keeps its headroom); the lead card fills its height. */
.product-card__media { position: relative; aspect-ratio: 5 / 6; overflow: hidden; background: var(--panel); }
.product-card__media > img { width: 100%; height: 100%; object-fit: contain; }
.product-card__media .vial-stage { cursor: ew-resize; }
/* On devices with a pointer, a small turn cue appears on the product panel while the card is hovered. */
@media (hover: hover) {
  .product-card__media .vial-stage::after {
    content: ""; position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; border: 1px solid #d5d6dc; border-radius: var(--radius-button);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317171c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M8 8l-4 4 4 4M16 8l4 4-4 4'/%3E%3C/svg%3E") center / 18px no-repeat;
    opacity: 0; transition: opacity .2s ease; pointer-events: none;
  }
  .product-card:hover .product-card__media .vial-stage::after { opacity: 1; }
}
.product-card__body { display: grid; gap: 2px; align-content: start; flex: 1; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.product-card .product-card__body .product-card__title { font-size: 1.0625rem; line-height: 1.3; }
.product-card__spec { font-size: .875rem; color: var(--muted); }
.product-card__buy { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-top: 12px; }
.product-card__buy .price { justify-content: flex-start; text-align: left; }
.product-card__buy .price__current { font-size: 1.125rem; }
.product-card__body .product-card__action { margin-top: auto; padding: 12px 0 0; }
.product-card__body .product-card__action .text-link { font-size: .875rem; }
.product-card__form { font-size: .8125rem; color: var(--faint); }
.product-card__category { font-size: .8125rem; color: var(--muted); }
.product-card .product-card__title { font-size: 1.1875rem; line-height: 1.25; }
.variant__note, .size-row__note, .product-chosen__note { color: var(--muted); font-size: .8125rem; }   /* the owner's size label when it says more than the amount (Astra F01) */
.price { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 0 8px; text-align: right; }
.price__current { font: 600 1.0625rem/1.3 var(--font-display); color: var(--ink); white-space: nowrap; letter-spacing: -.01em; }
.price__list { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.price__sale { font: 600 .75rem/1.3 var(--font-body); color: var(--accent); }
.price--none { font-size: .8125rem; color: var(--muted); }
/* Availability: a small square marker and the recorded status. */
.status-tag { display: inline-flex; align-items: center; gap: 6px; font: 500 .8125rem/1.4 var(--font-body); color: var(--muted); white-space: nowrap; }
.status-tag::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.status-tag--in_stock { color: var(--ok); }
.status-tag--preorder { color: var(--warn); }
.status-tag--out_of_stock::before, .status-tag--unavailable::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Phones: two-across cards keep a compact body; a /shop card stacks a wide panel over its details. */
@media (max-width: 599px) {
  .product-card__body { padding: 12px 12px 14px; }
  .product-card .product-card__body .product-card__title { font-size: .9375rem; }
  .product-card__spec, .product-card__buy .price__current { font-size: .875rem; }
  .product-grid--shop .product-card .product-card__body .product-card__title { font-size: .9375rem; }
  .product-grid--shop .product-card__buy { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* Catalog states on /shop: one short line, not a page-sized panel. */
.shop-state { display: grid; gap: 2px; justify-items: start; padding: 4px 0 4px 16px; border-left: 2px solid var(--accent); }
.shop-state h2 { font-size: 1.125rem; }
.section .shop-state h2 { font-size: 1.125rem; }
.shop-state p { color: var(--muted); }
.shop-state .text-link { margin-top: 6px; }
/* The collection preview on /shop, while nothing is listed: separate from listings, marked as not for sale. */
.shop-collection { background: var(--band); border-top: 1px solid var(--line); }
.shop-collection__note { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 6px; font-size: .875rem; color: var(--muted); }
.shop-collection__note::before { content: ""; width: 6px; height: 6px; background: var(--accent); }

/* ---------- Interactive vial ----------
   A stage holds the vial photograph (a still) and, while someone turns it, a canvas drawn by the cylinder
   renderer at the same framing. Only the vial turns; the panel around it never moves. --vial-fit frames
   both the same way: cover (the default) or contain for wide panels; the photograph's backdrop matches the
   panel, so either way the vial sits on one even surface. */
.vial-stage {
  position: absolute; inset: 0; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
  --vial-zoom: 1.15; --vial-origin: 50% 50%; --vial-fit: cover;
}
.vial-stage > img, .vial-stage__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: var(--vial-fit); object-position: var(--vial-origin);
  transform: scale(var(--vial-zoom)); transform-origin: var(--vial-origin);
}
.vial-stage[data-base="10ml"] { --vial-zoom: 1.06; --vial-origin: 50% 47%; }   /* the taller 10 mL vial keeps its cap in frame */
.product-card__media .vial-stage { --vial-zoom: 1.04; --vial-origin: 50% 52%; }
.product-card__media .vial-stage[data-base="10ml"] { --vial-zoom: 1; --vial-origin: 50% 46%; }   /* the taller 10 mL vial: cap and base both in frame */
.vial-stage__canvas { opacity: 0; pointer-events: none; }
.vial-stage.is-live .vial-stage__canvas { opacity: 1; }
.vial-stage[role="slider"] { cursor: ew-resize; }
.vial-stage[role="slider"]:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

/* ---------- The large vial frame (the product page; the Admin preview) ---------- */
.showcase__frame {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
@media (min-width: 900px) { .showcase__frame { aspect-ratio: 6 / 5; } }
.showcase__frame .vial-stage { --vial-zoom: 1; --vial-origin: 50% 52%; }
.showcase__frame .vial-stage[data-base="10ml"] { --vial-zoom: 1; --vial-origin: 50% 46%; }
@media (min-width: 900px) {
  .showcase__frame .vial-stage { --vial-fit: contain; --vial-zoom: 1.3; --vial-origin: 50% 52%; }
  .showcase__frame .vial-stage[data-base="10ml"] { --vial-zoom: 1.16; --vial-origin: 50% 48%; }
}
.showcase__frame .vial-stage:focus-visible { outline-color: #65419a; }


/* ---------- 404 ---------- */
.not-found { padding-block: clamp(56px, 10vw, 120px); border-bottom: 0; }

/* ---------- Footer ----------
   Brand navy in the light theme, near-black in the dark theme; the brand on the left, then the link columns. */
.site-footer { background: var(--footer-bg); color: var(--footer-muted); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--footer-line); }
.site-footer__inner { display: grid; gap: 40px; }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } }
.site-footer .brand { color: #fff; }
.site-footer .brand__name span { color: rgba(255, 255, 255, .62); }
/* The footer is dark in both themes, so it always shows the light-on-dark logo. */
.site-footer .brand__logo.brand__logo--light { display: none; }
.site-footer .brand__logo.brand__logo--dark { display: block; }
.site-footer__brand { display: grid; justify-items: start; align-content: start; }
.site-footer__brand p { margin-top: 16px; max-width: 34ch; font-size: .9375rem; line-height: 1.6; }
.site-footer a.site-footer__shop { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--footer-ink); font-weight: 600; font-size: .9375rem; }
.site-footer__shop svg { width: 18px; height: 18px; transition: transform .15s ease; }
.site-footer__shop:hover svg { transform: translateX(3px); }
/* The support address: a 44 px touch target, muted like the links around it. */
.site-footer a.site-footer__contact { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--footer-muted); font-size: .9375rem; }
.site-footer a.site-footer__contact:hover { color: var(--footer-ink); }
/* Groups: one column on phones, three from 700 px. */
.site-footer__groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 24px; }
@media (min-width: 700px) { .site-footer__groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-footer__heading { font: 600 .875rem/1.4 var(--font-body); color: var(--footer-ink); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--footer-line); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--footer-muted); text-decoration: none; font-size: .9375rem; }
.site-footer a:hover { color: var(--footer-ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer__notice { margin-top: clamp(40px, 5vw, 56px); padding-block: 16px; border-top: 1px solid var(--footer-line); font-size: .875rem; }
.site-footer__notice p { max-width: 80ch; margin-top: 8px; }
.site-footer__notice-links a { text-decoration: underline; }
.site-footer__bottom {
  display: grid; gap: 4px;
  padding-block: 16px 20px; border-top: 1px solid var(--footer-line); font-size: .8125rem; color: var(--footer-ink);
}
.site-footer__bottom .site-footer__operator { color: var(--footer-muted); }

/* ---------- Vial silhouette illumination (R10D) ----------
   A violet edge light on the bottle's outline (renders.js addGlow; glow-<size>.webp from make-glow-mattes.sh): the
   silhouette's drop-shadow, masked to outside the glass. Only its opacity transitions, not with reduced motion. */
.vial-stage, .hero-pick { --glow: rgba(142, 108, 196, .92); --glow-edge: rgba(165, 139, 204, .6); --vial-matte: url(/assets/vial/glow-3ml.webp); }
.vial-stage[data-base="10ml"], .hero-pick[data-base="10ml"] { --vial-matte: url(/assets/vial/glow-10ml.webp); }
.vial-glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  transform: scale(var(--vial-zoom)); transform-origin: var(--vial-origin);
  filter: drop-shadow(0 0 1.5px var(--glow-edge)) drop-shadow(0 0 6px var(--glow)) drop-shadow(0 0 12px var(--glow-edge));
  -webkit-mask: linear-gradient(#000 0 0), var(--vial-matte) var(--vial-origin) / var(--vial-fit) no-repeat; -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0), var(--vial-matte) var(--vial-origin) / var(--vial-fit) no-repeat; mask-composite: exclude;
}
.vial-glow > span {
  position: absolute; inset: 0; background: var(--glow);
  -webkit-mask: var(--vial-matte) var(--vial-origin) / var(--vial-fit) no-repeat; mask: var(--vial-matte) var(--vial-origin) / var(--vial-fit) no-repeat;
}
.hero-pick > .vial-glow { --vial-fit: contain; filter: drop-shadow(0 0 1px var(--glow-edge)) drop-shadow(0 0 4px var(--glow)) drop-shadow(0 0 8px var(--glow-edge)); }
/* States: hover (pointer devices), focus, pressed, a touch drag, chosen (data-selected). */
@media (hover: hover) {
  .vial-stage:hover > .vial-glow, .hero-pick:hover > .vial-glow { opacity: .85; }
}
.vial-stage:focus-visible > .vial-glow, .hero-pick:focus-visible > .vial-glow, .vial-stage.is-dragging > .vial-glow { opacity: 1; }
.vial-stage:active > .vial-glow, .hero-pick:active > .vial-glow { opacity: 1; }
.vial-stage[data-selected] > .vial-glow, .hero-pick[aria-pressed="true"] > .vial-glow { opacity: .7; }
.hero-vial .vial-stage > .vial-glow { opacity: .85; }   /* the chosen vial over the dark film: a little more light to read */
.hero-vial .vial-stage:hover > .vial-glow, .hero-pick[aria-pressed="true"]:hover > .vial-glow, .hero-vial .vial-stage:focus-visible > .vial-glow { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .vial-glow { transition: opacity .2s ease; } }
/* A card vial that opens its product's page (renders.js linkStageToProduct): the whole card body is its target. */
.vial-stage.is-linked { cursor: pointer; }
.product-card__title .product-card__link { color: inherit; text-decoration: none; }
.product-card__title .product-card__link::after { content: ""; position: absolute; inset: 0; }
.product-card__body { position: relative; }
.product-card__body .product-card__action, .variant-list { position: relative; z-index: 1; }
.product-card__title .product-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-card:has(.product-card__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.product-card__link:focus-visible { outline: none; }
.product-card:has(.product-card__link:hover) { border-color: var(--line-strong); }

/* ---------- Product page (R10D) ----------
   The vial first, large, in its frame; beside it the product, its chosen size and the size chooser. */
.product { padding-block: clamp(20px, 3vw, 32px) clamp(48px, 6vw, 80px); }
.product .breadcrumb ol { margin-bottom: 20px; }
.product__media { display: grid; gap: 10px; position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 899px) { .product__media { position: static; } }
.product__frame .vial-stage { --vial-fit: contain; --vial-zoom: 1.3; --vial-origin: 50% 52%; }
.product__frame .vial-stage[data-base="10ml"] { --vial-zoom: 1.16; --vial-origin: 50% 48%; }
.product__title { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); letter-spacing: -.025em; line-height: 1.05; }   /* R21-B (F1): the page-title scale (.page-intro h1) */
.size-row__pick {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; margin: 0; border: 1px solid var(--faint);
  background: none; color: inherit; font: inherit; cursor: pointer; border-radius: var(--radius-button);
}
.size-row__label { font-weight: 600; }
.size-row__container { color: var(--muted); font-size: .8125rem; white-space: nowrap; margin-left: 4px; }

/* ---------- The product page's specification block, the compact chooser, the dense shop card (Astra F03, F09, F10, F12, F13) ---------- */
.product-spec { display: grid; gap: 6px 16px; margin: 0; }
.product-spec dt { font: 500 .8125rem/1.4 var(--font-body); color: var(--muted); }
.product-spec dd { margin: 0; font: 500 1rem/1.4 var(--font-body); color: var(--ink); }
.product-spec dd code { font: 500 .9375rem var(--font-mono); color: var(--ink); }

/* ---------- Homepage and About (Visible Release 2: Astra F15, F17, F21, F22, F30, F42) ---------- */
/* F17: the page's one h1 (the film headline) leads the hierarchy. */
body.home .hero-film__title { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.1; }
/* F15: the film recedes so the chosen vial on the side stage is the one label in view. */
/* F30: the research-use line stays in the hero lead and the footer; the editorial repeat is hidden. */
body.home .editorial__links a[href="/research-use"] .editorial-link__text { display: none; }
/* F42: while the access dialog is open the film behind it dims (no blur, per R15). */
body:has(dialog.access[open]) .hero-film__media { filter: brightness(.35) saturate(.6); }
/* ---------- Current batches, COA library, catalog filter (R12) ---------- */
.batch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px 0; border-top: 1px solid var(--line); }
.batch-row:last-child { border-bottom: 1px solid var(--line); }
.batch-row__coa { margin-left: auto; }
.status-tag--low_stock { color: var(--warn); }
.status-tag--low_stock::before { background: currentColor; }
.catalog-filter { display: flex; flex-wrap: nowrap; gap: 0 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; margin: 0 0 18px; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.catalog-filter[hidden] { display: none; }   /* signed out, the homepage keeps the filter hidden: no stray rule under the band */
.catalog-filter li { flex: none; }
.catalog-filter button { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 0 12px; font: 600 .9375rem/1.3 var(--font-display); color: var(--muted); cursor: pointer; white-space: nowrap; }
.catalog-filter button:hover { color: var(--ink); }
.catalog-filter button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.catalog-filter button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.catalog-filter__count { font-size: .8125rem; color: var(--faint); margin-left: 6px; }
.catalog-filter button[aria-pressed="true"] .catalog-filter__count { color: var(--muted); }
.discover__empty { padding: 20px 0; font-size: .9375rem; color: var(--muted); }

/* ---------- Render panels in the dark theme, COA product vials and purity chips (R16E): dark cuts by the matte ---------- */
.vial-stage { --vial-cut: url(/assets/vial/cutout-3ml.webp); }
.vial-stage[data-base="10ml"] { --vial-cut: url(/assets/vial/cutout-10ml.webp); }
:root { --panel-lit: transparent; --panel-glow: none; }
.vial-stage { --vial-mask: none; }   /* the mask token is resolved on the stage, where its matte, origin and fit are set */
/* R16E-D: the dark panel is lit like a studio backdrop: a soft neutral light behind the vial and a gentle floor shadow. */
:root[data-theme="dark"] { --panel: #15151b; --panel-lit: rgba(255, 255, 255, .03); --panel-glow: radial-gradient(ellipse 46% 8% at 50% 86%, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .22) 50%, rgba(0, 0, 0, 0) 100%), radial-gradient(ellipse 64% 60% at 50% 46%, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .075) 36%, rgba(255, 255, 255, .02) 66%, rgba(255, 255, 255, 0) 82%); }
:root[data-theme="dark"] .vial-stage { --vial-mask: var(--vial-cut) var(--vial-origin) / var(--vial-fit) no-repeat; }
.product-card__media .vial-stage > img, .product-card__media .vial-stage__canvas, .showcase__frame .vial-stage > img, .showcase__frame .vial-stage__canvas,
.product__frame .vial-stage > img, .product__frame .vial-stage__canvas, .coa-product__media .vial-stage > img, .coa-product__media .vial-stage__canvas,
.admin-coa__media .vial-stage > img, .admin-coa__media .vial-stage__canvas { -webkit-mask: var(--vial-mask); mask: var(--vial-mask); }
/* R16E-D: a vial with its matte in its pixels (data-cut) is not masked again, anywhere. */
.vial-stage > img[data-cut], .vial-stage > .vial-stage__canvas[data-cut], .hero-pick img[data-cut], .hero-pick .hero-pick__canvas[data-cut] { -webkit-mask: none !important; mask: none !important; }
.product-card__media::after, .showcase__frame::after, .product__frame::after, .coa-product__media::after, .admin-coa__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; box-shadow: inset 0 0 120px var(--panel-lit); background: var(--panel-glow);
}
.product-card__media .vial-stage, .showcase__frame .vial-stage, .product__frame .vial-stage, .coa-product__media .vial-stage, .admin-coa__media .vial-stage { z-index: 1; }   /* the vial above the panel's light */
.coa-product__media { position: relative; width: 88px; aspect-ratio: 5 / 6; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.coa-chip { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; max-width: 100%; margin-left: 10px; padding: 2px 9px; border: 1px solid currentColor; border-radius: var(--radius-button); font: 600 .875rem/1.4 var(--font-body); vertical-align: middle; white-space: normal; box-sizing: border-box; }   /* coverage D1: the chip wraps inside its border on narrow screens instead of widening the page */
@media (max-width: 719px) { .coa-product__media { width: 64px; } }
/* ---------- UX batch (C1): its motion (R7's lines stay as approved; the R16 block has none) ---------- */
/* UX-9: a short cross-fade between pages. UX-11: the menu by transition, reversible mid-way (.is-swiping: dialog.js) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
  .menu-dialog[open] { animation: none; }
  .menu-dialog, .menu-dialog::backdrop { transition: translate .2s ease-out, opacity .2s ease-out, overlay .2s allow-discrete, display .2s allow-discrete; }
  .menu-dialog:not([open]) { translate: -16px 0; opacity: 0; }
  .menu-dialog:not([open])::backdrop { opacity: 0; }
  @starting-style { .menu-dialog[open] { translate: -16px 0; opacity: 0; } .menu-dialog[open]::backdrop { opacity: 0; } }
}
.menu-dialog.is-swiping { transition: none; }
/* UX-13: each pick takes half the 6 px gap (47 px) */
@media (pointer: coarse) and (max-width: 699px) { .hero-pick::after { inset: -4px -3px; } }

/* ---------- Header account affordance (R16) ----------
   "Sign in", or "Account" with the saved cart's count (src/site/layout.js withAccount), before the theme switch; on
   phones the icon and count only; transparent over the homepage film like the navigation. */
.header-account { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: var(--radius-button); color: var(--muted);
  font: 600 .875rem/1 var(--font-body); text-decoration: none; white-space: nowrap; }
.header-account:hover { color: var(--ink); }
.header-account svg { width: 19px; height: 19px; flex: none; }
.header-account__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--accent); border-radius: var(--radius-button);
  color: var(--accent); font: 500 .75rem/1 var(--font-mono); }
.header-account:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 900px) { .header-account--out svg { display: none; } }
@media (max-width: 899px) {
  /* Phones: a 44 px control beside the theme switch; the word is for assistive technology, the count shows when saved. */
  .header-account { min-width: 44px; min-height: 44px; padding: 0 6px; justify-content: center; }
  .header-account > span:first-of-type { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-account:has(.header-account__count) svg { display: none; }
  .js .site-header__inner { grid-template-columns: 44px minmax(0, 1fr) auto; }
}
.menu-list__account { margin-top: 8px; }
.menu-list__account a { gap: 8px; }
.menu-list__account a .header-account__count { margin-right: auto; }
.js .home .site-header:not(.is-solid) .header-account { color: rgba(255, 255, 255, .86); }
.js .home .site-header:not(.is-solid) .header-account:hover { color: #fff; }
.js .home .site-header:not(.is-solid) .header-signout__button { border-color: rgba(255, 255, 255, .36); }
.js .home .site-header:not(.is-solid) .header-account__count { color: #fff; border-color: rgba(255, 255, 255, .6); }
/* UI-5 (owner, 27 Oct): signed in, the cart icon beside Account, its count a small badge on the icon (every width). */
/* Sign out (owner, 28 Oct): beside Account and the cart on wide screens; the menu's last item on phones. */
.header-signout { display: none; margin: 0; }
@media (min-width: 900px) { .header-signout { display: inline-flex; } }
.header-signout__button { border: 1px solid var(--line-strong); background: transparent; font: 500 .875rem/1 var(--font-body); cursor: pointer; padding: 0 14px; }
.header-signout__button:hover { color: var(--ink); border-color: var(--ink); }
.menu-signout { margin: 0; }
.menu-signout__button { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 56px; margin: 12px 0 0; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-button);
  background: transparent; color: var(--ink); font: 600 1.0625rem/1.2 var(--font-display); cursor: pointer; }
.header-cart { position: relative; min-width: 44px; justify-content: center; padding: 0 8px; }
.header-cart .header-account__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border: 0; border-radius: var(--radius-button); background: var(--accent); color: var(--on-accent); font-size: .6875rem; }
.header-cart:has(.header-account__count) svg { display: block; }
.js .home .site-header:not(.is-solid) .header-cart .header-account__count { color: var(--on-accent); }
.menu-list__cart { margin-top: 0; }
/* Room for the cart: phones keep it and the theme switch; desktops tighten the nav. */
@media (max-width: 899px) { .header-account:has(+ .header-cart) { display: none; } }
.header-cta { white-space: nowrap; }
@media (min-width: 900px) { .site-header__inner:has(.header-cart) { grid-template-columns: auto minmax(0, 1fr) auto; } .site-header__inner:has(.header-cart) .primary-nav { justify-self: center; } }
@media (min-width: 900px) and (max-width: 1399px) { .site-header__inner:has(.header-cart) .primary-nav ul { gap: 24px; } }
@media (min-width: 900px) and (max-width: 1099px) { .site-header__inner:has(.header-cart) .header-cta { display: none; } }   /* the Catalog link stays in the navigation */
@media (min-width: 1366px) { .site-header__inner { grid-template-columns: auto minmax(0, 1fr) auto; } .primary-nav { justify-self: center; } .site-header__inner:has(.header-cart) .primary-nav ul { gap: 20px; } .primary-nav a { white-space: nowrap; } }   /* A3, C4 sweep 15 Nov 2026 */

/* ---------- COA library, product-centred (R20): /coa-only rules in landing.css, the rows in coa.css (P6) ---------- */

/* ---------- Policy contents (Astra F38): a list of the sections, from their own headings; collapsible ---------- */
.policy-contents-section { padding-block: clamp(16px, 2.5vw, 28px) 0; }
.policy-contents__box { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 12px 18px; }
.policy-contents__title { cursor: pointer; font: 600 .9375rem/1.4 var(--font-display); color: var(--ink); }
.policy-contents__title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.policy-contents__list { margin: 10px 0 4px; padding-left: 0; list-style: none; columns: 1; column-gap: 32px; font-size: .9375rem; line-height: 1.5; }
.policy-contents__list li { break-inside: avoid; padding: 3px 0; }
.policy-contents__list a { color: var(--muted); text-decoration: none; }
.policy-contents__list a:hover, .policy-contents__list a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 720px) { .policy-contents__list { columns: 2; } }
@media (min-width: 1100px) { .policy-contents__list { columns: 3; } }


/* ---------- Coverage corrections (2026-10-27): the skip link's landmark focus ---------- */
#main:focus { outline: none; }   /* O1: the landmark receives focus from the skip link; it is a region, not a control */
.site-footer__group a, .breadcrumb a { display: inline-block; padding-block: 3px; margin-block: -3px; }   /* O3: 24 px pointer targets without moving the text */
.text-link { padding-block: 3px; margin-block: -3px; }
@media (max-height: 440px) { .site-header { position: static; } html { scroll-padding-top: 8px; } }   /* O4: on very short viewports (landscape phones, 400% enlargement) the header scrolls away instead of holding a quarter of the screen */

/* ---------- UX-20 fold-ins (VR2, C1-7): touch targets, safe areas, tabular figures, prose wrapping ---------- */
/* UX-13: on coarse pointers the navigation, header, filter, size and small text controls are 48 px targets */
:root { --target-coarse: 48px; }
@media (pointer: coarse) {
  .site-header nav a, .menu-dialog a, .category-nav a, .breadcrumb a, .site-footer__group a, .text-link, .product-card__link, .size-row__pick, .policy-contents__list a { min-height: var(--target-coarse); display: inline-flex; align-items: center; }
  .theme-toggle, .icon-button { min-width: var(--target-coarse); min-height: var(--target-coarse); }
  .header-account, .header-cta, .button { min-height: var(--target-coarse); }
  .site-footer__group a, .breadcrumb a, .policy-contents__list a { margin-block: 0; }
  /* A2 (Astra coverage leftovers): the controls UX-13 missed, measured below 44 px at 390 */
  .brand, .site-footer a.site-footer__shop, .hero-docs__link, .editorial__intro p > a, .product__category a, .coa-product__name a, .cart-line__name a { min-height: var(--target-coarse); display: inline-flex; align-items: center; }
  .site-footer__group a, .breadcrumb a { min-width: 44px; }
  .policy-contents__title { padding-block: 12px; }
  .catalog-filter button { min-height: var(--target-coarse); }
}
/* UX-14: notches, rounded corners and the home indicator (viewport-fit=cover in the shared head) */
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
.menu-dialog[open] { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
/* UX-16: figures line up in columns and rows */
.price, .price__current, .product-spec, .size-list, .size-row__meta, .size-row__sku, .coa-item__lot code, .coa-chip, .coa-item__facts, .category-nav__count, .header-account__count, .account-rail__count { font-variant-numeric: tabular-nums; }
/* UX-17: prose avoids orphans, headings balance, long identifiers never overflow */
p, li, dd, figcaption { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.product__title, .coa-item__lot, .size-row__sku, .account-card p strong { overflow-wrap: anywhere; }
h4, legend, caption { text-wrap: balance; }

/* ---------- UX batch (C1): targets, safe areas, figures, corner shape ---------- */
/* UX-13: 44 px hit areas, nothing moved (an invisible ::after) */
@media (pointer: coarse) {
  .shelf-card__link, .mol-chip, dd > a[href*="pubchem.ncbi"] { position: relative; }
  .shelf-card__link::after, .mol-chip::after, dd > a[href*="pubchem.ncbi"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); translate: -50% -50%; }
  sup>a{border:solid transparent;border-width:0 14px 26px;margin:0 -14px}
}
/* UX-14: the header clears a notch; the film still starts behind it */
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.home .hero-film { margin-top: calc(-1 * var(--header-h) - 1px - env(safe-area-inset-top, 0px)); }
/* UX-16 */
.cart-line, time, table td, .quick-add__size-price, .quick-add__submit, .quick-add__stepper input { font-variant-numeric: tabular-nums; }
/* UX-18: squircles where supported, radii unchanged */
@supports (corner-shape: squircle) {
  .product-card, .size-row__pick, .coa-item, .menu-dialog, .status-tag, input, select, textarea { corner-shape: squircle; }
}

/* Quick find (C3 feature 1): the search button; on phones it moves into the menu, so the wordmark keeps its room. */
.menu-list__search button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: 600 1.125rem/1.2 var(--font-display); text-align: left; cursor: pointer; }
@media (min-width: 600px) { .menu-list__search { display: none; } }
@media (max-width: 599px) { .header-search { display: none; } }
.recent-row { padding-block: 32px 48px; }


/* ---------- Policy tables (C2): a full grid; too wide, it scrolls in its own box, never the page. */
.policy-table { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.policy-table:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.policy-table table { width: 100%; border-collapse: collapse; border-style: hidden; border-radius: inherit; background: var(--surface); color: var(--ink); font-size: .9375rem; line-height: 1.45; }
.policy-table th, .policy-table td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy-table thead th { background: var(--surface-2); border-bottom: 2px solid var(--line-strong); font: 600 .875rem/1.35 var(--font-display); }
[data-theme="dark"] .policy-table thead th { background: var(--elevated); }
.policy-table th[scope="row"] { font-weight: 600; }
@media (max-width: 599px) { .policy-table th, .policy-table td { min-width: 7rem; padding: 8px 10px; } }
.usa-line{display:flex;align-items:center;gap:8px}

/* Narrow phones: the actions keep their width; the wordmark one smaller line (owner, 15 Nov). */
@media (max-width: 599px) { .js .site-header__inner { grid-template-columns: 44px minmax(0, 1fr) auto; } }
@media (max-width: 399px) {
  .brand { gap: 6px; }
  .brand__logo { height: 36px; }
  .brand__name { font-size: .5625rem; letter-spacing: .04em; }
}
@media (max-width: 359px) { .js .site-header__inner { column-gap: 8px; } .brand { gap: 4px; } .brand__logo { height: 30px; } }

/* The guides hub (C4's spec, 13 Nov 2026): one card per guide, no images; 1, 2 and 3 columns. */
.guide-cards { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 700px) { .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-card { display: grid; align-content: start; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.guide-card__title { margin: 0; font-size: 1.0625rem; line-height: 1.35; }
.guide-card__title a { color: var(--ink); text-decoration: none; }
.guide-card__title a:hover, .guide-card__title a:focus-visible { text-decoration: underline; }
.guide-card__summary { margin: 0; color: var(--muted); font-size: .9375rem; }
.bj__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }

/* Motion pass, part 3 (C3's spec, principle 14): every control reaches 44 x 44 on every pointer and nothing moves: an
   invisible zone centred on the box (inset min(0, 50% - 22px)). :where(), so a control already positioned keeps it. */
:root { --hit-min: 44px; }
:where(.site-header .icon-button, .header-account, .primary-nav a, .breadcrumb a, .text-link, .coa-share, .mol-chip, .wish__button, .site-footer__shop, .site-footer__consent a, .site-footer__notice-links a, .catalog-sort a, .atx-facts__terms, .cv-btn, .coa-rec__arrow, .stepper button, .cart-line__remove button, .co-steps a, .co-check, .co-copy, .field__reveal, .access__forgot a, .coa-product__name a, .hero-docs__link, .hero-product__links a, dd > a[href*="pubchem.ncbi"], .cx-pdf__link, .cx__keys li, .hero-chip--view) { position: relative; }
:where(.site-header .icon-button, .header-account, .primary-nav a, .breadcrumb a, .text-link, .coa-share, .wish__button, .site-footer__shop, .site-footer__consent a, .site-footer__notice-links a, .catalog-sort a, .atx-facts__terms, .cv-btn, .coa-rec__arrow, .stepper button, .cart-line__remove button, .co-steps a, .co-check, .co-copy, .access__forgot a, .coa-product__name a, .hero-docs__link, .hero-product__links a, dd > a[href*="pubchem.ncbi"], .cx-pdf__link)::before, :where(.mol-chip, .field__reveal, .cx__keys li, .hero-chip--view)::after { content: ""; position: absolute; inset: max(min(0px, 50% - var(--hit-min) / 2), var(--hit-y, -22px)) max(min(0px, 50% - var(--hit-min) / 2), var(--hit-x, -22px)); }
/* Neighbours: the zone stops at half the gap, never on the next control's own box. */
.site-footer__notice-links a { --hit-y: -4px; } .site-footer__shop { --hit-y: -2px; } li > .text-link { --hit-y: -3px; } .cv-tools .coa-share { --hit-x: -1px; } .cv-tools [data-cv-close] { position: relative; }   /* stays above Share's box where they overlap on touch */
:where(.co-check) > input { position: relative; }   /* its own box stays on top of its label's zone */
.stepper button:first-child::before { left: -4px; right: 0; } .stepper button:last-child::before { left: 0; right: -4px; }
/* C4's tap sweep (20 Nov): 45 px boxes (Terms 24); a negative margin takes the padding back. */
:where(.site-footer__consent a,.cx__keys a,.guide-card__title a,.access__forgot a,.access__alt a){display:inline-block;padding-block:calc(22.5px - .5lh);margin-block:calc(.5lh - 22.5px)}
:where([data-sms-legal] a[href="/terms"]){display:inline-block;padding-block:calc(12px - .5lh);margin-block:calc(.5lh - 12px)}
/* Motion pass 3 (C3, principle 16): a lot code never breaks across lines (ATR-EXM-00-0). */
:is(.cert-card__lot, .coa-batch__id, .coa-card__lot, .batch-row__id, .product-buy__lot, .trust-lot) code, .cv-chip[data-fact="lot"] .cv-mono { white-space: nowrap; }
/* s3 (15 Nov 2026): ruo-badges.js's styles as classes (the Admin's CSP blocks inline styles); values as drawn */
.ruo-badges{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0}.ruo-badges--center{justify-content:center}.ruo-badges--compact{gap:4px}
.ruo-badge{display:inline-flex;align-items:center;gap:4px;min-height:22px;padding:2px 8px;font:600 .6875rem/1.25 var(--font-body);letter-spacing:.01em;border-radius:var(--radius-button);border:1px solid var(--warn);color:var(--ink);background:transparent;text-align:left}
.ruo-badges--compact .ruo-badge{gap:3px;min-height:20px;padding:2px 5px;font:600 .625rem/1.25 var(--font-body);letter-spacing:-.01em;white-space:nowrap}
.ruo-tri{flex:none;fill:none;stroke:var(--warn);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.ruo-badges--dark .ruo-badge{border-color:rgba(255,255,255,.55);color:#fff}.ruo-badges--dark .ruo-tri{stroke:#e0b060}
.ruo-tip{position:relative;display:inline-flex;align-items:center;align-self:flex-start;height:18px;margin:2px 0;z-index:3}
.ruo-tip__btn{display:inline-flex;align-items:center;justify-content:center;padding:13px;margin:-13px;border:0;background:none;color:inherit;cursor:pointer;line-height:0}
.ruo-tip__pop{position:absolute;left:-6px;top:calc(100% + 8px);width:max-content;max-width:150px;padding:7px 9px;border:1px solid var(--warn);border-radius:10px;background:var(--surface);color:var(--ink);box-shadow:0 8px 24px -10px rgba(20,10,40,.35);font:600 .6875rem/1.3 var(--font-body);text-align:left;white-space:normal}
.ruo-tip__line{display:flex;align-items:flex-start;gap:5px;margin:2px 0}
/* Owner (15 Nov 2026): no header label or button wraps, signed in or out, at any width or zoom. */
.primary-nav a, .header-signout__button { white-space: nowrap; }
@media (min-width: 1180px) and (max-width: 1365px) { .primary-nav ul { gap: 12px; } .header-actions { gap: 8px; } }
.site-header__inner:has(.header-cart) .header-cta { display: none; }   /* signed in: Catalog is in the links */
@media (min-width: 1180px) and (max-width: 1239px) { .site-header__inner:has(.header-cart) .primary-nav ul { gap: 8px; } }
@media (max-width:699px){.hero-docs__body{grid-auto-flow:row;grid-template-columns:auto auto;gap:0 12px}.hero-docs__link--guides{grid-column:1/-1}}   /* A9 */
