/* Forge Peptides storefront styles. Fonts are self-hosted (SIL OFL 1.1, see /assets/fonts/LICENSE.txt). */
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ==========================================================================
   Forge Peptides — design system
   Principles: type and space carry hierarchy; black for actions, gold as the accent;
   neutral stages for product; no decorative chrome.
   Breakpoints: 640 / 960 / 1280. Mobile first.
   ========================================================================== */

:root {
    --ink: #0b0b0b;
    --ink-2: #2a2724;
    --muted: #6b6660;
    --soft: #757068; /* small text: 4.91:1 on white, 4.54:1 on --stage */
    --soft-line: #9a948b; /* hover borders, fills and disabled states only */
    --line: #eeeeec;
    --line-2: #e2e2de;
    --stage: #f6f6f4;
    --stage-2: #eeeeec;
    --paper: #ffffff;

    --action: #0b0b0b;
    --action-600: #2a2724;
    --action-700: #000;
    --gold: #ae9a64;
    --gold-dark: #8e7c4f;
    --gold-light: #d6c695;
    --tint: #f5f2ea;
    --silver: #c8c9cb;
    --silver-50: #f3f3f2;
    --gold-ink: #7a6a42;

    --ok: #1f8a5b;
    --amber: #b06900;
    --ok-ink: #1b774e; /* --ok used as text: 4.5:1+ on white, --stage and its own tints */
    --amber-ink: #a26100; /* --amber used as text: 4.5:1+ on white and #fff4e3 */
    --red: #c93838;

    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --brand: "Montserrat", "Arial Black", system-ui, sans-serif;

    --r: 10px;
    --r-lg: 14px;
    --gutter: 20px;
    --header-h: 60px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; --header-h: 68px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink-2);
    background: var(--paper); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
@media (min-width: 960px) { body { font-size: 16px; } }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus, var(--action)); outline-offset: 3px; border-radius: 4px; }
/* Dark areas: the focus ring turns white so it stays visible. */
.topbar, .bar--ink, .dark, .footer, .gate__art { --focus: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.is-locked { overflow: hidden; }

.wrap { width: min(100% - var(--gutter) * 2, 1360px); margin-inline: auto; }
.section { padding-block: 64px; }
@media (min-width: 960px) { .section { padding-block: 112px; } }
.section--flush-top { padding-top: 0; }

/* ---------- Type ---------- */
.t-display { font-size: clamp(2.6rem, 1.5rem + 4.2vw, 5.25rem); font-weight: 600; letter-spacing: -0.045em; line-height: .98; color: var(--ink); }
.t-h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; color: var(--ink); }
.t-h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.t-lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: var(--muted); max-width: 44ch; }
.t-muted { color: var(--muted); }
.brandname { font-family: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; color: var(--ink); line-height: 1.08; }

.head { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
@media (min-width: 960px) { .head { margin-bottom: 44px; } }
.head p { margin-top: 10px; max-width: 52ch; color: var(--muted); }

/* ---------- Controls ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; padding: 0 22px; border-radius: var(--r);
    font-size: .94rem; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
    background: var(--ink); color: #fff; border: 1px solid transparent;
    transition: background .18s, border-color .18s, color .18s;
}
.btn:hover { background: #2a2724; }
.btn--primary { background: var(--action); }
.btn--primary:hover { background: var(--action-700); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { background: #fff; border-color: var(--ink); }
.btn--inverse { background: #fff; color: var(--ink); }
.btn--inverse:hover { background: var(--stage); }
.btn--lg { height: 54px; padding: 0 28px; font-size: 1rem; }
.btn--sm { height: 38px; padding: 0 14px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }

.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); font-size: .94rem; }
.link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link:hover .icon { transform: translateX(3px); }
.u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); }
.u:hover { text-decoration-color: currentColor; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); color: var(--ink); }
.icon-btn:hover { background: var(--stage); }
.count { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: var(--action); color: #fff; font-size: .66rem; font-weight: 700; }
.count[hidden] { display: none; }

.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: middle; flex: none; }

.stars { display: inline-flex; gap: 1px; color: var(--ink); }
.stars svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }

.field__label { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field__label span { font-weight: 400; color: var(--muted); }
.input {
    width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r);
    background: #fff; font-size: 1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:hover { border-color: var(--soft-line); }
.input:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgb(174 154 100 / .28); }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s; }
.input-group:hover { border-color: var(--soft-line); }
.input-group:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px rgb(174 154 100 / .28); }
.input-group .input { border: 0; box-shadow: none; flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.input-group__unit { display: grid; place-items: center; padding: 0 14px; color: var(--muted); font-size: .9rem; border-left: 1px solid var(--line); }

/* Segmented control */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--stage); border-radius: var(--r); }
.seg__opt { min-height: 46px; padding: 7px 8px; border-radius: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.25; transition: background .15s, box-shadow .15s, color .15s; }
.seg__opt small { display: block; font-weight: 500; font-size: .74rem; color: var(--muted); }
.seg__opt:hover { color: var(--ink); }
.seg__opt[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(11 11 11 / .08), 0 0 0 1px rgb(11 11 11 / .04); }
.seg__opt .save { color: var(--ok-ink); }

/* Quantity stepper */
.qty { display: inline-grid; grid-template-columns: 34px 30px 34px; align-items: center; height: 34px; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.qty button { height: 100%; display: grid; place-items: center; color: var(--ink); }
.qty button:hover { background: var(--stage); }
.qty .icon { width: 14px; height: 14px; }
.qty output { text-align: center; font-weight: 600; font-size: .88rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar { background: var(--ink); color: rgb(255 255 255 / .62); font-size: .78rem; }
.topbar__inner { height: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.topbar__start { display: none; }
.topbar__msgs { display: grid; min-width: 0; }
.announce__msg { grid-area: 1 / 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 500; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.announce__msg.is-active { opacity: 1; visibility: visible; }
.announce__msg a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar__end { display: flex; align-items: center; gap: 22px; }
.topbar__link { display: none; transition: color .15s; }
.topbar__link:hover, .topbar__rating:hover { color: #fff; }
.topbar__rating { display: inline-flex; align-items: center; gap: 7px; transition: color .15s; }
.topbar__rating .icon { width: 14px; height: 14px; color: var(--gold-light); }
.topbar__rating b { color: rgb(255 255 255 / .86); font-weight: 600; }
@media (min-width: 960px) {
    .topbar__inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; }
    .topbar__start { display: block; min-width: 0; overflow: hidden; white-space: nowrap; }
    .topbar__msgs { justify-items: center; text-align: center; }
    .topbar__end { justify-content: flex-end; }
    .topbar__link { display: inline; }
}

/* Announcement bars, above or below the header */
.bar { font-size: .86rem; line-height: 1.4; }
.bar--gold { background: var(--gold); color: var(--ink); }
.bar--ink { background: var(--ink); color: #fff; border-top: 1px solid rgb(255 255 255 / .1); }
.bar--bone { background: var(--stage); color: var(--ink); border-bottom: 1px solid var(--line); }
.bar__inner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 42px; padding-block: 9px; padding-inline: 36px; text-align: center; }
.bar__text { font-weight: 500; text-wrap: balance; }
.bar__text a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bar__link { margin-left: 4px; font-weight: 600; white-space: nowrap; }
.bar--ink .bar__link { color: var(--gold-light); }
.bar__close { position: absolute; right: calc(var(--gutter) - 10px); top: 50%; translate: 0 -50%; }
.bar__close button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: inherit; opacity: .7; transition: opacity .15s, background .15s; }
.bar__close button:hover { opacity: 1; background: rgb(0 0 0 / .08); }
.bar--ink .bar__close button:hover { background: rgb(255 255 255 / .1); }
.bar__close .icon { width: 16px; height: 16px; }

.header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .9); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line); }
.header__inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto; align-items: center; }
.header__start, .header__end { display: flex; align-items: center; gap: 2px; }
.header__end { justify-content: flex-end; }
.logo { display: block; width: 158px; }
@media (min-width: 960px) { .header .logo { width: 196px; } }
/* Header lockup, as on the old site: the symbol spans both lines; the tagline sits under the name, small and light,
   its letters spread to the name's exact width. The tagline shows on desktop only. */
.logo--lockup { display: flex; align-items: center; gap: 10px; width: auto; }
.logo--lockup .logo__mark { flex: none; width: 26px; height: 26px; }
.logo--lockup .logo__words { display: grid; gap: 5px; width: 132px; }
.logo--lockup .logo__name { display: block; width: 100%; height: auto; }
.logo__tag { display: none; }
@media (min-width: 960px) {
    .logo--lockup { gap: 12px; }
    .logo--lockup .logo__mark { width: 34px; height: 34px; }
    /* The name and tagline sit between the symbol's upper and lower rows of dots. */
    .logo--lockup .logo__words { width: 184px; gap: 4.5px; position: relative; top: 1px; }
    .logo__tag { display: flex; justify-content: space-between; font-size: 8.5px; font-weight: 600; line-height: 1; color: var(--muted); }
}
.logo svg, .logo img { width: 100%; height: auto; }
/* Phones: menu on the left, the symbol centred, search and bag on the right. */
@media (max-width: 959px) {
    .header__inner { grid-template-columns: 1fr auto 1fr; }
    .header__start { display: contents; }
    .header .menu-toggle { grid-column: 1; justify-self: start; }
    .header .logo--lockup { grid-column: 2; }
    .header .logo--lockup .logo__mark { width: 30px; height: 30px; }
    .header .logo--lockup .logo__words { display: none; }
    .header__end { grid-column: 3; }
}
@media (min-width: 960px) { .logo { width: 178px; } }
.menu-toggle { margin-left: -10px; }
@media (min-width: 1280px) {
    .header__inner { grid-template-columns: 1fr auto 1fr; gap: 32px; }
    .logo { width: 180px; }
    .menu-toggle { display: none; }
}
.nav { display: none; }
@media (min-width: 1280px) { .nav { display: flex; gap: 2px; } }
.nav__item { position: static; }
.nav__link { position: relative; display: inline-flex; align-items: center; height: var(--header-h); padding: 0 12px; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--ink); }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .2s var(--ease); }
.nav__item.is-open > .nav__link::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }

/* Store switch: top-right of the announcement bar */
.store-switch { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 34px; font-size: .78rem; font-weight: 500; color: rgb(255 255 255 / .82); transition: color .15s; }
.store-switch:hover { color: #fff; }
/* Phones: the message centred, and just the currency symbol on the right to change store. */
@media (max-width: 959px) {
    .topbar__inner { grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 8px; }
    .topbar__msgs { grid-column: 2; justify-items: center; text-align: center; }
    .topbar__end { grid-column: 3; justify-content: flex-end; }
    .store-switch { gap: 0; font-size: .85rem; }
    .store-switch .icon, .store-switch__code { display: none; }
    .store-switch .store-switch__cur { color: rgb(255 255 255 / .85); }
}
.store-switch .icon { width: 14px; height: 14px; }
.store-switch .icon:last-child { width: 12px; height: 12px; transform: rotate(90deg); opacity: .7; }
.store-switch__name, .store-switch__iso { display: none; }
.store-switch__cur { color: rgb(255 255 255 / .6); }
@media (min-width: 640px) {
    .store-switch__code { display: none; }
    .store-switch__name, .store-switch__iso { display: inline; }
}

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.nav__item.is-open .mega { opacity: 1; visibility: visible; }
/* Research areas on the left; the active one opens its best-selling compounds on the right, in its home page colour. */
.mega__inner { --mega-list: 380px; position: relative; min-height: 400px; padding-block: 32px 40px; }
.mega__area { width: var(--mega-list); padding-right: 48px; }
.mega__name { display: flex; align-items: flex-start; gap: 6px; padding: 7px 0; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); }
.mega__name sup { font-size: .78rem; font-weight: 500; letter-spacing: 0; line-height: 1; margin-top: 4px; color: var(--soft); }
.mega__name .icon { width: 18px; height: 18px; margin: 3px 0 0 auto; opacity: 0; transform: translateX(-6px); transition: opacity .15s, transform .2s var(--ease); }
.mega__area.is-active .mega__name .icon { opacity: 1; transform: none; }
.mega__panel { display: none; position: absolute; top: 32px; right: 0; left: var(--mega-list); gap: 18px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--cat, #efe9dc); color: var(--cat-ink, #5c4f33); }
.mega__area.is-active .mega__panel { display: grid; }
.mega__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mega__head p { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.mega__head a { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 500; }
.mega__head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega__head .icon { width: 14px; height: 14px; }
.mega__picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mega__picks a { display: grid; gap: 8px; font-size: .86rem; font-weight: 500; color: var(--ink); }
.mega__picks .stage { aspect-ratio: 1; background: #fff; border-radius: var(--r); }
.mega__picks a:hover .photo { transform: translateY(-4px); }
.mega__more { display: flex; flex-wrap: wrap; gap: 10px 26px; width: var(--mega-list); margin-top: 22px; padding: 18px 48px 0 0; border-top: 1px solid var(--line); font-size: .92rem; }
.mega__more a { color: var(--ink-2); }
.mega__more a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Sheets (menu, cart) */
.sheet { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.sheet.is-open { visibility: visible; }
.sheet__scrim { position: absolute; inset: 0; background: rgb(11 11 11 / .4); opacity: 0; transition: opacity .3s; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.menu-panel { position: absolute; inset: 0 auto 0 0; width: min(88vw, 380px); background: #fff; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .35s var(--ease); }
.sheet.is-open .menu-panel { transform: none; }
.menu-panel__head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 10px 0 var(--gutter); border-bottom: 1px solid var(--line); }
.menu-panel__body { overflow-y: auto; padding: 0 var(--gutter) 32px; }
.menu-panel__group { padding-block: 18px; border-bottom: 1px solid var(--line); }
.menu-panel__group p { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.menu-panel__group a, .menu-panel__group button { display: flex; width: 100%; align-items: baseline; justify-content: space-between; padding: 9px 0; font-size: 1.05rem; color: var(--ink); text-align: left; }
.menu-panel__group a span, .menu-panel__group button span { color: var(--soft); font-size: .9rem; }

/* ==========================================================================
   Product stage + vial
   ========================================================================== */
.stage { position: relative; display: grid; place-items: center; background: var(--stage); border-radius: var(--r-lg); overflow: hidden; }
.vial { width: 100%; height: auto; overflow: visible; }
.vial text { font-family: var(--brand); }
.group { display: flex; align-items: flex-end; justify-content: center; }

/* ==========================================================================
   Home — hero
   ========================================================================== */
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
@media (min-width: 960px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts > div { padding: 18px 0 22px; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--line-2); }
@media (max-width: 959px) { .facts > div:nth-child(3) { padding-left: 0; border-left: 0; } .facts > div:nth-child(n+3) { border-top: 1px solid var(--line-2); } }
.facts dt { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.facts dd { font-size: .85rem; color: var(--muted); margin-top: 1px; }

/* Tabs (text) */
.tabs { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; padding: 4px 0 10px; font-size: .95rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); }
.tab-panel[hidden] { display: none; }

/* Categories */
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.cats::-webkit-scrollbar { display: none; }
.cats > * { scroll-snap-align: start; }
@media (min-width: 640px) { .cats { grid-auto-columns: 40%; } }
@media (min-width: 960px) { .cats { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 16px; overflow: visible; margin: 0; padding: 0; } }

/* ==========================================================================
   Product grid + card
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 16px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px 20px; } }

.card { position: relative; }
.card .stage { aspect-ratio: 4 / 5; }
.card .stage > .vial-wrap { width: 38%; transition: transform .5s var(--ease); filter: drop-shadow(0 16px 16px rgb(11 11 11 / .1)); }
.card:hover .stage > .vial-wrap { transform: translateY(-5px); }

.card__add {
    position: absolute; right: 10px; bottom: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: var(--r);
    background: #fff; color: var(--ink); font-size: .84rem; font-weight: 600; box-shadow: 0 1px 2px rgb(11 11 11 / .1);
    transition: background .15s, color .15s;
}
.card__add .icon { width: 16px; height: 16px; }
.card__add span { display: none; }
.card__add:hover { background: var(--ink); color: #fff; }
/* Plain white stage behind vials on cards: square, with the vial a touch larger to fill it. */
.card .stage, .bundle .stage { background: #fff; }
.card .stage { aspect-ratio: 1; }
.card .stage .photo { transform: scale(1.06); }
.card:hover .stage .photo { transform: translateY(-4px) scale(1.08); }
.card--bundle .stage .photo { transform: translateY(6%) scale(.84); }
.card--bundle:hover .stage .photo { transform: translateY(5%) scale(.86); }
.card__add { box-shadow: 0 0 0 1px var(--line-2); }
@media (hover: hover) and (min-width: 960px) {
    .card__add { opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease), background .15s, color .15s; }
    .card:hover .card__add, .card__add:focus-visible { opacity: 1; transform: none; }
    .card__add span { display: inline; }
}

.card__body { padding-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.card__body > * { min-width: 0; }
.card__name { font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--ink); letter-spacing: -.005em; overflow-wrap: anywhere; }
@media (min-width: 640px) { .card__name { font-size: 1rem; } }
.card__meta { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.card__meta:empty { display: none; }
.card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__price { font-size: .9rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.card__price { margin-top: 6px; font-size: .95rem; }
.card__price s { color: var(--soft); font-weight: 400; margin-right: 4px; }
.card__price.is-sale { color: var(--ink); }
.card__meta { font-size: .84rem; color: var(--muted); }

.card--out .stage > .vial-wrap { opacity: .45; }

/* ==========================================================================
   Home — verification (dark)
   ========================================================================== */
.dark { background: var(--ink); color: rgb(255 255 255 / .66); }
.dark .t-h2 { color: #fff; }
.verify__form { display: flex; gap: 8px; margin-top: 32px; max-width: 460px; }
.verify__form .input { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .16); color: #fff; letter-spacing: .03em; text-transform: uppercase; }
.verify__form .input::placeholder { color: rgb(255 255 255 / .4); text-transform: none; letter-spacing: 0; }
.verify__form .input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgb(174 154 100 / .35); }

.report { border-radius: var(--r); background: #fff; color: var(--ink-2); padding: 18px 20px; font-size: .88rem; }

.report dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; padding-top: 14px; }
@media (min-width: 640px) { .report dl { grid-template-columns: repeat(4, 1fr); } }
.report dt { font-size: .76rem; color: var(--muted); }
.report dd { font-weight: 600; color: var(--ink); }

/* ==========================================================================
   Home — ways to buy
   ========================================================================== */
.ways { display: grid; gap: 44px 16px; }
@media (min-width: 960px) { .ways { grid-template-columns: 1fr 1fr; } }
.way .stage { aspect-ratio: 16 / 10; }
.way .group { width: 100%; gap: 2.5%; transition: transform .5s var(--ease); }
.way:hover .group { transform: translateY(-4px); }
.way .group > div { flex: 0 0 14%; filter: drop-shadow(0 18px 16px rgb(11 11 11 / .12)); }
.way .group > div:nth-child(2):nth-last-child(2) { transform: scale(1.14); transform-origin: bottom; }

/* ==========================================================================
   Home — reviews
   ========================================================================== */
.reviews { display: grid; gap: 40px; }
@media (min-width: 960px) { .reviews { grid-template-columns: 4fr 8fr; gap: 96px; } }
.score { display: flex; align-items: baseline; gap: 8px; margin-top: 24px; }
.score strong { font-size: 4.25rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.score span { color: var(--muted); }
.dist { display: grid; gap: 7px; margin-top: 24px; max-width: 300px; }
.dist div { display: grid; grid-template-columns: 12px 1fr 34px; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.dist i { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.dist i b { display: block; height: 100%; background: var(--ink); }
.review { padding-block: 26px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.review:last-child { border-bottom: 1px solid var(--line); }
.review blockquote { font-size: 1.08rem; line-height: 1.55; color: var(--ink); letter-spacing: -0.01em; }
.review footer { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--muted); }
.review footer b { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Home — journal
   ========================================================================== */

.post .stage { aspect-ratio: 4 / 3; }
.post .stage svg { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.post:hover .stage svg { transform: scale(1.03); }
.post p { margin-top: 14px; font-size: .82rem; color: var(--muted); }
.post h3 { margin-top: 4px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); line-height: 1.35; }

/* ==========================================================================
   Footer
   ========================================================================== */
/* Copied from the old design: brand, newsletter and disclaimer on the left, four link columns on the right
   (folding on phones), and a thin bottom bar. */
.footer { background: var(--ink); color: #fff; }
.footer__main { display: grid; gap: 40px 24px; padding-block: 56px 32px; }
@media (min-width: 1024px) { .footer__main { grid-template-columns: 4fr 8fr; gap: 40px; padding-block: 80px 56px; } .footer__brand { padding-right: 32px; } }
/* Vertical lockup from the Design 1 logo: symbol on top, the name, then the tagline narrower and spaced out,
   all centred. Proportions follow the source file (symbol 0.32 and tagline 0.78 of the name's width). */
.footer__logo { display: grid; justify-items: center; width: 100%; max-width: 360px; }
.footer__mark { width: 84px; height: 84px; }
.footer__words { display: grid; justify-items: center; gap: 9px; width: 260px; margin-top: 12px; }
.footer__name { display: block; width: 100%; height: auto; }
.footer__tag { display: flex; justify-content: space-between; width: 78%; font-size: 8.7px; font-weight: 400; line-height: 1; color: #fff; }
.footer__news { max-width: 360px; margin-top: 32px; }
.footer__k, .footer__col summary { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.footer__k { display: block; margin-bottom: 16px; color: rgb(255 255 255 / .46); }
.footer__news-form { display: flex; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgb(255 255 255 / .2); transition: border-color .15s; }
.footer__news-form:hover { border-color: rgb(255 255 255 / .35); }
.footer__news-form:focus-within { border-color: rgb(255 255 255 / .5); }
.footer__news-form input[type="email"] { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font-size: 13px; outline: none; }
.footer__news-form input[type="email"]::placeholder { color: rgb(255 255 255 / .3); }
.footer__news-form button { flex: none; margin-left: 16px; color: var(--gold); transition: color .15s; }
.footer__news-form button:hover { color: var(--gold-light); }
.footer__news-form .icon { width: 18px; height: 18px; }
.footer__news-msg { margin-top: 10px; font-size: 12px; color: rgb(255 255 255 / .55); }
.footer__disclaimer { max-width: 360px; margin-top: 32px; font-size: 12px; line-height: 1.65; color: rgb(255 255 255 / .5); }
.footer__disclaimer a { text-decoration: underline; transition: color .15s; }
.footer__disclaimer a:hover { color: rgb(255 255 255 / .8); }
.footer__nav { display: grid; }
.footer__col + .footer__col { border-top: 1px solid rgb(255 255 255 / .06); }
.footer__col summary { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; color: rgb(255 255 255 / .5); cursor: pointer; list-style: none; }
.footer__col summary::-webkit-details-marker { display: none; }
.footer__col summary .icon { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .2s var(--ease); }
.footer__col[open] summary .icon { transform: rotate(-90deg); }
.footer__col ul { display: grid; gap: 10px; padding-bottom: 16px; font-size: 13.5px; color: rgb(255 255 255 / .65); }
.footer__col a { display: inline-block; padding-block: 5px; margin-block: -5px; transition: color .15s; } /* taller tap area, same spacing */
.footer__col a:hover { color: #fff; }
.footer__col .footer__gold { color: var(--gold); }
.footer__col .footer__gold:hover { color: var(--gold-light); }
@media (min-width: 1024px) {
    .footer__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 4px; }
    .footer__col + .footer__col { border-top: 0; }
    .footer__col summary { padding: 0; cursor: default; }
    .footer__col summary .icon { display: none; }
    .footer__col ul { gap: 12px; margin-top: 20px; padding-bottom: 0; }
    .footer__col a { padding-block: 6px; margin-block: -6px; }
}
@media (min-width: 1280px) { .footer__nav { gap: 40px; } }
.footer__bar { border-top: 1px solid rgb(255 255 255 / .07); }
.footer__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-block: 12px; font-size: 11px; color: rgb(255 255 255 / .46); }
.footer__pay { display: flex; gap: 12px; }
.footer__sep { color: rgb(255 255 255 / .15); }

/* ==========================================================================
   Store gate
   ========================================================================== */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; align-items: end; justify-items: center; visibility: hidden; }
@media (min-width: 640px) { .gate { align-items: center; padding: 24px; } }
.gate.is-open { visibility: visible; }
.gate .sheet__scrim { background: rgb(11 11 11 / .55); }
.gate.is-open .sheet__scrim { opacity: 1; }
.gate__panel {
    position: relative; width: 100%; max-width: 440px; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain;
    display: grid; background: #fff; border-radius: 20px 20px 0 0;
    transform: translateY(24px); opacity: 0; transition: transform .35s var(--ease), opacity .25s;
}
@media (min-width: 640px) { .gate__panel { border-radius: 20px; box-shadow: 0 30px 80px -20px rgb(15 42 31 / .45); } }
@media (min-width: 900px) { .gate__panel { max-width: 880px; grid-template-columns: 400px 1fr; overflow: hidden; } }
.gate.is-open .gate__panel { transform: none; opacity: 1; }
.gate__panel:focus { outline: none; }

/* Brand side: deep green with the Forge mark, cropped large */
.gate__art { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 120px; padding: 24px var(--gutter); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.gate__mark { position: absolute; z-index: -1; right: -46px; top: 50%; width: 210px; height: auto; opacity: .1; transform: translateY(-50%) rotate(-8deg); }
.gate__logo { width: 156px; height: auto; }
.gate__slogan { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.02em; color: #b9d4c9; }
@media (min-width: 640px) { .gate__art { padding: 28px 36px; } .gate__mark { width: 260px; right: -40px; } }
@media (min-width: 900px) {
    .gate__art { padding: 38px 36px 36px; }
    .gate__mark { width: 520px; right: -170px; top: auto; bottom: -150px; transform: rotate(-8deg); opacity: .05; }
    .gate__logo { width: 176px; }
    .gate__slogan { font-size: 2.3rem; font-weight: 600; line-height: 1.04; letter-spacing: -0.04em; color: #fff; max-width: 7em; }
}

.gate__body { padding: 26px var(--gutter) calc(22px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .gate__body { padding: 34px 36px 28px; } }
@media (min-width: 900px) { .gate__body { padding: 44px 44px 32px; overflow-y: auto; max-height: 94dvh; } }
.gate h2 { font-size: clamp(1.6rem, 1.4rem + .8vw, 2rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; color: var(--ink); }
.gate__sub { margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* Store tiles */
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 18px; }
.stores__item input { position: absolute; opacity: 0; pointer-events: none; }
.stores__item label { position: relative; display: grid; gap: 2px; height: 100%; padding: 16px 16px 15px; border: 1px solid var(--line-2); border-radius: var(--r-lg); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.stores__item label:hover { border-color: var(--soft-line); }
.stores__sym { font-size: 1.9rem; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px; }
.stores__item b { font-weight: 600; font-size: .95rem; color: var(--ink); line-height: 1.25; }
.stores__item small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.stores__item label::after { content: ""; position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: border-color .15s, border-width .15s; }
.stores__item input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--silver-50); }
.stores__item input:checked + label::after { border: 5.5px solid var(--ink); background: #fff; }
.stores__item input:focus-visible + label { outline: 2px solid var(--action); outline-offset: 2px; }

.gate__terms { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.gate__terms li { position: relative; padding-left: 16px; }
.gate__terms li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.gate__note { margin: 16px 0 18px; font-size: .82rem; line-height: 1.55; color: var(--muted); }
.gate__confirm { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.gate__confirm .confirm { font-size: .88rem; }
.gate .btn { margin-top: 18px; }
.gate .btn[disabled] { opacity: 1; background: var(--stage-2); border-color: var(--stage-2); color: var(--soft-line); }
.gate__foot { margin-top: 12px; font-size: .8rem; color: var(--muted); text-align: center; }

.choices { display: grid; gap: 8px; margin: 22px 0 16px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1px 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice label:hover { border-color: var(--soft-line); }
.choice b { color: var(--ink); font-weight: 600; }
.choice small { grid-column: 1; color: var(--muted); font-size: .84rem; }

.choice input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--tint); }

.choice input:focus-visible + label { outline: 2px solid var(--action); outline-offset: 2px; }
.confirm { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: .9rem; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.confirm input { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--line-2); border-radius: 5px; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.confirm input:checked { background: var(--ink); border-color: var(--ink); }
.confirm input:checked::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }

/* ==========================================================================
   Cart drawer
   ========================================================================== */
.cart-panel { position: absolute; inset: 0 0 0 auto; width: min(100vw, 420px); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .38s var(--ease); }
.sheet.is-open .cart-panel { transform: none; }
.cart-panel__head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 10px 0 var(--gutter); border-bottom: 1px solid var(--line); }
.cart-panel__head h2 { font-size: 1rem; font-weight: 600; color: var(--ink); }
.cart-panel__head h2 span { color: var(--muted); font-weight: 400; }
.freeship { padding: 14px var(--gutter) 16px; font-size: .86rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.freeship b { color: var(--ink); font-weight: 600; }
.freeship__bar { height: 3px; margin-top: 10px; border-radius: 2px; background: var(--line); overflow: hidden; }
.freeship__bar i { display: block; height: 100%; background: var(--ink); transition: width .5s var(--ease); }
.freeship.is-done .freeship__bar i { background: var(--ok); }
.cart-panel__body { flex: 1; overflow-y: auto; padding: 0 var(--gutter); }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line .stage { width: 72px; height: 88px; border-radius: var(--r); }
.line .stage > div { width: 40%; }
.line__name { font-weight: 600; font-size: .95rem; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; }
.line__meta { font-size: .82rem; color: var(--muted); margin: 2px 0 10px; }
.line__meta b { color: var(--ok-ink); font-weight: 600; }
.line__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.line__price { font-weight: 600; color: var(--ink); font-size: .92rem; }
.line__remove { font-size: .8rem; color: var(--muted); }
.line__remove:hover { color: var(--ink); text-decoration: underline; }
.addon { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; margin: 18px 0; padding: 12px; border-radius: var(--r-lg); background: var(--stage); }
.addon .stage { width: 52px; height: 60px; border-radius: var(--r); background: #fff; }
.addon .stage > div { width: 42%; }
.addon b { display: block; font-size: .86rem; color: var(--ink); font-weight: 600; }
.addon small { font-size: .8rem; color: var(--muted); }
.cart-panel__foot { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.code { display: flex; gap: 8px; }
.code .input { height: 42px; font-size: .9rem; }
.code .btn { height: 42px; }
.sum { display: grid; gap: 4px; font-size: .9rem; }
.sum div { display: flex; justify-content: space-between; }
.sum .is-total { padding-top: 8px; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.sum .is-saving { color: var(--ok-ink); }
.cart-note { text-align: center; font-size: .8rem; color: var(--muted); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; translate: -50% 0; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: .88rem; display: flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }
.toast .icon { width: 16px; height: 16px; color: var(--gold); }

/* Cookie choice: a card in the corner that never blocks the page. Both answers carry equal weight. */
.consent { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); overflow: hidden; isolation: isolate; padding: 20px; border-radius: var(--r-lg); background: var(--ink); color: rgb(255 255 255 / .72); font-size: .88rem; line-height: 1.55; box-shadow: 0 24px 60px -20px rgb(11 11 11 / .6); --focus: #fff; animation: consent-in .5s var(--ease) .4s both; transition: opacity .25s, transform .25s var(--ease); }
@media (min-width: 640px) { .consent { left: 24px; right: auto; bottom: 24px; width: 420px; padding: 24px 24px 22px; } }
.consent.is-leaving { opacity: 0; transform: translateY(12px); }
.consent__mark { position: absolute; z-index: -1; right: -38px; bottom: -44px; width: 150px; height: auto; opacity: .07; transform: rotate(-8deg); }
.consent__title { margin-bottom: 6px; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.consent__text a { color: var(--gold-light); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.consent__text a:hover { color: #fff; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.consent__btn { height: 44px; padding: 0 12px; background: #fff; color: var(--ink); }
.consent__btn:hover { background: var(--stage); }
.consent__btn--quiet { background: transparent; color: #fff; border-color: rgb(255 255 255 / .3); }
.consent__btn--quiet:hover { background: rgb(255 255 255 / .08); border-color: #fff; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; transition: none; } }

/* ==========================================================================
   Product page
   ========================================================================== */
.crumbs { display: flex; gap: 8px; padding-block: 18px; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }

.pdp { display: grid; gap: 28px; padding-bottom: 56px; }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }

.gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); }
.gallery__track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .gallery__track { margin-inline: 0; border-radius: var(--r-lg); } }
.gallery__slide { scroll-snap-align: start; aspect-ratio: 1; border-radius: 0; }
@media (min-width: 640px) { .gallery__slide { border-radius: var(--r-lg); } }
.gallery__slide > .vial-wrap { width: 32%; filter: drop-shadow(0 30px 26px rgb(11 11 11 / .14)); }
.gallery__slide > .group { width: 56%; gap: 6%; }
.gallery__slide > .group > div { flex: 1; filter: drop-shadow(0 24px 20px rgb(11 11 11 / .12)); }
.gallery__slide > .group > div:nth-child(2) { transform: scale(1.12); transform-origin: bottom; }
.gallery__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.gallery__dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width .25s var(--ease), background .25s; }
.gallery__dots span.is-on { width: 18px; background: var(--ink); }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; }
.gallery__thumbs button { width: 60px; height: 60px; border-radius: var(--r); background: var(--stage); display: grid; place-items: center; overflow: hidden; outline: 1.5px solid transparent; outline-offset: -1.5px; transition: outline-color .15s; }
.gallery__thumbs button[aria-current="true"] { outline-color: var(--ink); }
.gallery__thumbs button > div { width: 32%; }
.gallery__thumbs button.is-doc { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.gallery__thumbs button.is-doc img { width: 74%; height: 92%; object-fit: cover; object-position: top; margin-top: 12%; box-shadow: 0 2px 6px rgb(11 11 11 / .15); }
@media (min-width: 960px) {
    .gallery { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
    .gallery__dots { display: none; }
    .gallery__thumbs { gap: 10px; }
    .gallery__thumbs button { width: 76px; height: 76px; }
}

.buy { display: grid; gap: 28px; align-content: start; }
.buy__title { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); overflow-wrap: anywhere; }
.buy__sub { margin-top: 10px; color: var(--muted); }
.buy__rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .88rem; color: var(--ink-2); }
.buy__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.buy__price strong { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.buy__price s { font-size: 1.05rem; color: var(--soft); }
.buy__price span { font-size: .88rem; color: var(--muted); }

.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.details summary::-webkit-details-marker { display: none; }
.details summary .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.details details[open] summary .icon { transform: rotate(45deg); }
.details__body { padding-bottom: 22px; font-size: .94rem; color: var(--ink-2); display: grid; gap: 12px; }
.spec { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec th, .spec td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { font-weight: 400; color: var(--muted); width: 34%; padding-right: 16px; }
.spec td { color: var(--ink); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .3s var(--ease); }
.sticky-buy.is-visible { transform: none; }
.sticky-buy__info { flex: 1; min-width: 0; font-size: .85rem; color: var(--muted); }
.sticky-buy__info b { display: block; color: var(--ink); font-weight: 600; font-size: .92rem; }
@media (min-width: 960px) { .sticky-buy { display: none; } }



@media (prefers-reduced-motion: reduce) { .consent { animation: none; transition: none; } }

/* ==========================================================================
   Product page
   ========================================================================== */
.crumbs { display: flex; gap: 8px; padding-block: 18px; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }

.pdp { display: grid; gap: 28px; padding-bottom: 56px; }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }

.gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); }
.gallery__track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .gallery__track { margin-inline: 0; border-radius: var(--r-lg); } }
.gallery__slide { scroll-snap-align: start; aspect-ratio: 1; border-radius: 0; }
@media (min-width: 640px) { .gallery__slide { border-radius: var(--r-lg); } }
.gallery__slide > .vial-wrap { width: 32%; filter: drop-shadow(0 30px 26px rgb(11 11 11 / .14)); }
.gallery__slide > .group { width: 56%; gap: 6%; }
.gallery__slide > .group > div { flex: 1; filter: drop-shadow(0 24px 20px rgb(11 11 11 / .12)); }
.gallery__slide > .group > div:nth-child(2) { transform: scale(1.12); transform-origin: bottom; }
.gallery__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.gallery__dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width .25s var(--ease), background .25s; }
.gallery__dots span.is-on { width: 18px; background: var(--ink); }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; }
.gallery__thumbs button { width: 60px; height: 60px; border-radius: var(--r); background: var(--stage); display: grid; place-items: center; overflow: hidden; outline: 1.5px solid transparent; outline-offset: -1.5px; transition: outline-color .15s; }
.gallery__thumbs button[aria-current="true"] { outline-color: var(--ink); }
.gallery__thumbs button > div { width: 32%; }
.gallery__thumbs button.is-doc { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.gallery__thumbs button.is-doc img { width: 74%; height: 92%; object-fit: cover; object-position: top; margin-top: 12%; box-shadow: 0 2px 6px rgb(11 11 11 / .15); }
@media (min-width: 960px) {
    .gallery { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
    .gallery__dots { display: none; }
    .gallery__thumbs { gap: 10px; }
    .gallery__thumbs button { width: 76px; height: 76px; }
}

.buy { display: grid; gap: 28px; align-content: start; }
.buy__title { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); overflow-wrap: anywhere; }
.buy__sub { margin-top: 10px; color: var(--muted); }
.buy__rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .88rem; color: var(--ink-2); }
.buy__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.buy__price strong { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.buy__price s { font-size: 1.05rem; color: var(--soft); }
.buy__price span { font-size: .88rem; color: var(--muted); }

.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.details summary::-webkit-details-marker { display: none; }
.details summary .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.details details[open] summary .icon { transform: rotate(45deg); }
.details__body { padding-bottom: 22px; font-size: .94rem; color: var(--ink-2); display: grid; gap: 12px; }
.spec { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec th, .spec td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { font-weight: 400; color: var(--muted); width: 34%; padding-right: 16px; }
.spec td { color: var(--ink); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .3s var(--ease); }
.sticky-buy.is-visible { transform: none; }
.sticky-buy__info { flex: 1; min-width: 0; font-size: .85rem; color: var(--muted); }
.sticky-buy__info b { display: block; color: var(--ink); font-weight: 600; font-size: .92rem; }
@media (min-width: 960px) { .sticky-buy { display: none; } }

/* ==========================================================================
   Calculator
   ========================================================================== */

.calc { display: grid; gap: 32px; padding-bottom: 104px; }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; } }
.calc__form { display: grid; gap: 36px; }
.calc__step { display: grid; gap: 12px; }
.calc__step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.calc__step-head h2 { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.calc__step-head span { font-size: .84rem; color: var(--muted); }
.calc__presets { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-2); font-size: .88rem; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--soft-line); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.calc__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.unit-toggle { display: inline-grid; grid-auto-flow: column; padding: 3px; gap: 2px; border-radius: var(--r); background: var(--stage); }
.unit-toggle button { min-width: 52px; height: 42px; border-radius: var(--r); font-size: .88rem; font-weight: 600; color: var(--muted); }
.unit-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(11 11 11 / .08); }
.calc__product { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.calc__product .stage { width: 50px; height: 60px; border-radius: var(--r); }
.calc__product .stage > div { width: 40%; }
.calc__product b { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; }
.calc__product span { font-size: .84rem; color: var(--muted); }

.result { border-radius: var(--r-lg); background: var(--stage); padding: 24px; display: grid; gap: 24px; }
@media (min-width: 960px) { .result { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; } }
.result__label { font-size: .88rem; color: var(--muted); }
.result__big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.result__big strong { font-size: clamp(3rem, 2.4rem + 2.4vw, 4.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.result__big span { font-size: 1.05rem; color: var(--muted); }
.result__sub { margin-top: 8px; font-size: .95rem; color: var(--ink-2); }
.result__sub b { color: var(--ink); font-weight: 600; }
.result dl { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.result dl > div { padding-top: 16px; }
.result dl > div + div { padding-left: 16px; border-left: 1px solid var(--line-2); }
.result dt { font-size: .8rem; color: var(--muted); }
.result dd { margin-top: 2px; font-weight: 600; color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.scale { background: #fff; border-radius: var(--r); padding: 18px 16px 12px; }
.scale svg { width: 100%; height: auto; }
.scale__caption { display: flex; justify-content: flex-end; margin-top: 6px; font-size: .78rem; color: var(--muted); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: #fff6e8; color: #6b4200; font-size: .86rem; line-height: 1.45; }
.notice .icon { width: 18px; height: 18px; color: var(--amber); margin-top: 1px; }
.notice[hidden] { display: none; }
.working summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--ink); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.working summary::-webkit-details-marker { display: none; }
.working summary .icon { width: 14px; height: 14px; transition: transform .2s; }
.working[open] summary .icon { transform: rotate(90deg); }
.working ol { margin-top: 12px; display: grid; gap: 8px; font-size: .86rem; color: var(--ink-2); counter-reset: w; }
.working li { position: relative; padding-left: 24px; }
.working li::before { counter-increment: w; content: counter(w) "."; position: absolute; left: 0; color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); line-height: 1.55; }

.calc-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: rgb(255 255 255 / .7); font-size: .9rem; box-shadow: 0 12px 30px -10px rgb(11 11 11 / .5); }
.calc-bar b { color: #fff; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.calc-bar__go { margin-left: auto; color: #fff; font-weight: 600; }
@media (min-width: 960px) { .calc-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Additions: home trust strip, shop, checkout, account,
   affiliate, utility pages. Loaded after mockup.css.
   ========================================================================== */

/* ---------- Badges (card + PDP) ---------- */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .01em; background: #fff; color: var(--ink); }
.badge--sale { background: var(--ink); color: #fff; }
.badge--new { background: var(--ink); color: #fff; }
.badge--out { background: #fff; color: var(--muted); }
.badge--low { background: #fff; color: var(--amber-ink); }
.card__badges { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px; }

/* Card v3 body: name, stars, price */
.card__body { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 4px !important; padding-top: 12px !important; }

.card__price { text-align: left !important; order: 0 !important; margin-top: 2px !important; font-size: .95rem; }
.card__price s { color: var(--soft); font-weight: 400; margin-left: 6px; margin-right: 0; }
.card__price.is-sale { color: var(--ink); }

/* ---------- Trust strip (marquee on mobile) ---------- */
.usp { border-bottom: 1px solid var(--line); overflow: hidden; }
.usp__track { display: flex; width: max-content; animation: usp-scroll 32s linear infinite; }
.usp:hover .usp__track, .usp:focus-within .usp__track { animation-play-state: paused; }
.usp__list { display: flex; flex: none; }
.usp__item { display: flex; align-items: center; gap: 10px; padding: 18px 28px; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.usp__item .icon { width: 20px; height: 20px; color: var(--ink); }
.usp__item b { color: var(--ink); font-weight: 600; }
@keyframes usp-scroll { to { transform: translateX(-50%); } }
@media (min-width: 1100px) {
    .usp__track { width: min(100% - var(--gutter) * 2, 1360px); margin-inline: auto; animation: none; justify-content: center; }
    .usp__item { font-size: .85rem; }
    .usp__list[aria-hidden] { display: none; }
    .usp__list { width: 100%; justify-content: space-between; }
    .usp__item { padding-inline: 0; }
}

/* ---------- Home: bundles rail ---------- */
.bundles { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.bundles::-webkit-scrollbar { display: none; }
.bundles > * { scroll-snap-align: start; }
@media (min-width: 640px) { .bundles { grid-auto-columns: 46%; } }
@media (min-width: 1100px) { .bundles { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 16px; overflow: visible; margin: 0; padding: 0; } }
.bundle { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.bundle .stage { aspect-ratio: 4 / 3; border-radius: 0; }
.bundle .group { width: 100%; gap: 3%; }
.bundle .group > div { flex: 0 0 20%; filter: drop-shadow(0 14px 12px rgb(11 11 11 / .1)); }
.bundle__body { display: grid; gap: 12px; padding: 18px; flex: 1; align-content: start; }
.bundle__body h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; min-height: 2.6em; }
@media (max-width: 639px) { .bundle__body h3 { min-height: 0; } }
.bundle__items { display: grid; gap: 4px; font-size: .86rem; color: var(--ink-2); }
.bundle__items li { display: flex; justify-content: space-between; gap: 8px; }
.bundle__items span { color: var(--muted); }
.bundle__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 0 18px 18px; }
.bundle__price { font-weight: 600; color: var(--ink); }
.bundle__price s { color: var(--soft); font-weight: 400; margin-left: 6px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq { grid-template-columns: 4fr 8fr; gap: 96px; } }
.faq .details { border-top: 1px solid var(--line); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: 36px 28px; }
@media (min-width: 960px) { .page-head { padding-block: 64px 40px; } }
.page-head .t-lede { margin-top: 12px; }

/* ---------- Shop ---------- */
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .88rem; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill span { color: var(--soft); font-size: .8rem; }
.pill[aria-pressed="true"] span { color: rgb(255 255 255 / .6); }
.shop { display: grid; gap: 24px; padding: 24px 0 96px; }
@media (min-width: 1100px) { .shop { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; } }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
/* Shop: products first. A plain title under the breadcrumb, search in the toolbar, areas as one-pick rows. */
.shop-title { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 8px; }
.shop .toolbar { flex-wrap: wrap; margin-bottom: 10px; }
.shop-search { position: relative; flex: 1 1 100%; }
@media (min-width: 640px) { .shop-search { flex: 1 1 auto; max-width: 560px; } }
.shop-search .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.shop-search .input { height: 42px; padding-left: 40px; border-color: transparent; background: var(--silver-50); }
.shop-search .input:focus { background: #fff; }
.shop .toolbar__count { margin: 0 0 20px; }
.card[hidden] { display: none; }
.area-list { display: grid; }
.area-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .94rem; color: var(--muted); transition: color .15s; }
.area-list a:last-child { border-bottom: 0; }
.area-list a span { font-size: .8rem; color: var(--soft); }
.area-list a:hover { color: var(--ink); }
.area-list a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.shop-help { padding-top: 18px; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.shop-help h3 { font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.toolbar__count { font-size: .9rem; color: var(--muted); }
.toolbar__right { display: flex; gap: 8px; align-items: center; }
.select { height: 42px; padding: 0 38px 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a0d12' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: .9rem; color: var(--ink); cursor: pointer; }
.select:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgb(174 154 100 / .28); }
.select--block { width: 100%; height: 48px; font-size: 1rem; }
.filters { display: none; }
@media (min-width: 1100px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } .filter-btn { display: none !important; } }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 { font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--line-2); border-radius: 5px; display: grid; place-items: center; flex: none; cursor: pointer; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check span { margin-left: auto; font-size: .8rem; color: var(--soft); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range .input { height: 40px; font-size: .9rem; }

.empty { padding: 72px 0; text-align: center; color: var(--muted); }
.filter-panel { position: absolute; inset: auto 0 0 0; max-height: 86dvh; background: #fff; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .35s var(--ease); }
.sheet.is-open .filter-panel { transform: none; }
.filter-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 14px var(--gutter); border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.filter-panel__body { overflow-y: auto; padding: 16px var(--gutter); }

/* ---------- Search sheet ---------- */
.search-panel { position: absolute; inset: 0 0 auto 0; background: #fff; padding: 16px 0 28px; transform: translateY(-100%); transition: transform .3s var(--ease); max-height: 90dvh; overflow-y: auto; }
.sheet.is-open .search-panel { transform: none; }
.search-bar { display: flex; align-items: center; gap: 10px; border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; }
.search-bar .icon { width: 22px; height: 22px; }
.search-bar input { flex: 1; min-width: 0; border: 0; font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); background: none; }
.search-bar input:focus { outline: none; }
.search-bar:focus-within { box-shadow: 0 1.5px 0 var(--ink); } /* the underline thickens while the field has focus */
.search-results { display: grid; gap: 4px; margin-top: 16px; }
.search-hit { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: var(--r); }
.search-hit:hover, .search-hit:focus-visible { background: var(--stage); }
.search-hit .stage { width: 48px; height: 56px; border-radius: var(--r); }
.search-hit .stage > div { width: 40%; }
.search-hit b { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }
.search-hit span { font-size: .84rem; color: var(--muted); }
.search-hint { margin-top: 16px; font-size: .88rem; color: var(--muted); }
.search-hint a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); margin-right: 12px; }

/* ---------- PDP v3 ---------- */
.buy__price strong.is-sale { color: var(--ink); }
.buy__actions { display: grid; gap: 8px; }
.buy__actions .row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.buy__actions .row .icon-btn { width: 54px; height: 54px; border: 1px solid var(--line-2); border-radius: var(--r); }
.buy__actions .row .icon-btn.is-on { color: var(--red); }
.buy__actions .row .icon-btn.is-on .icon { fill: currentColor; }
.assurances { display: grid; gap: 12px; padding: 18px 0; border-block: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.assurances li { display: flex; gap: 12px; align-items: flex-start; }
.assurances .icon { width: 20px; height: 20px; color: var(--ink); margin-top: 1px; }
.assurances b { color: var(--ink); font-weight: 600; }
.paymarks { display: flex; flex-wrap: wrap; gap: 6px; }
.paymark { height: 26px; padding: 0 8px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); background: #fff; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.label span { font-weight: 400; color: var(--muted); }
textarea.input { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-error { font-size: .82rem; color: var(--red); margin-top: 6px; }
.input.is-invalid { border-color: var(--red); }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.fieldset legend { padding: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 12px; }
/* Checkout choices: hairline rows, no boxes. A single delivery option is a plain line, not a choice. */
.co-ship-list .radio-item > label { grid-template-columns: auto 1fr auto; }
.co-ship-list__price { grid-column: 3; grid-row: 1 / 3; font-size: .92rem; font-weight: 600; color: var(--ink); }
.co-ship { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 16px; border-bottom: 1px solid var(--line); }
.co-ship div { display: grid; gap: 2px; }
.co-ship b { font-size: .95rem; font-weight: 600; color: var(--ink); }
.co-ship small { font-size: .84rem; color: var(--muted); }
.co-ship > span { font-size: .92rem; font-weight: 600; color: var(--ink); }
.radio-list { display: grid; border-top: 1px solid var(--line); }
.radio-item { position: relative; border-bottom: 1px solid var(--line); }
.radio-item > input { position: absolute; opacity: 0; pointer-events: none; }
.radio-item > label { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 16px 0; cursor: pointer; }
.radio-item .dotmark { grid-row: 1 / 3; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: border-color .15s; }
.radio-item > input:checked + label .dotmark { border-color: var(--ink); }
.radio-item > input:checked + label .dotmark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.radio-item > input:focus-visible + label { outline: 2px solid var(--action); outline-offset: 2px; }
.radio-item b { color: var(--ink); font-weight: 600; font-size: .95rem; }
.radio-item > input:not(:checked) + label b { font-weight: 500; }
.radio-item small { grid-column: 2; font-size: .84rem; color: var(--muted); }
.radio-item__more { display: none; margin-top: -6px; padding: 0 0 16px 30px; font-size: .86rem; line-height: 1.5; color: var(--ink-2); }
.radio-item > input:checked ~ .radio-item__more { display: block; }

/* Pay by bank: a card in the site's own style. Wallid shows as a small badge; the details open when it's picked. */
.radio-list .pbb { border-bottom: 0; padding: 14px 0 6px; }
.radio-item > label.pbb__card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #fff; transition: border-color .15s, box-shadow .15s; }
.radio-item > input:checked + label.pbb__card { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pbb__card .dotmark { grid-row: 1 / 3; }
.pbb__title { display: grid; gap: 2px; grid-row: 1 / 3; }
.radio-item .pbb__title small { grid-column: auto; }
.pbb__by { grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.pbb__by img { width: 22px; height: 22px; border-radius: 5px; }
.radio-item__more.pbb__info { margin: 0; padding: 14px 2px 10px; font-size: .88rem; color: var(--ink-2); }
.pbb__next b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.pbb__banks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.pbb__banks li { display: grid; place-items: center; width: 40px; height: 30px; border: 1px solid var(--line); border-radius: 6px; }
.pbb__banks img { width: 22px; height: 22px; object-fit: contain; }
.pbb__banks .pbb__more { width: auto; height: auto; padding-left: 4px; border: 0; font-size: .8rem; color: var(--muted); }
.pbb__points { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.pbb__points li { display: flex; align-items: center; gap: 8px; }
.pbb__points .icon { width: 16px; height: 16px; flex: none; color: var(--gold); }
.pbb__fine { display: flex; align-items: flex-start; gap: 6px; font-size: .8rem; color: var(--muted); }
.pbb__fine .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* ---------- Checkout ---------- */
.co-top { border-bottom: 1px solid var(--line); }
.co-top__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.co-top .logo:not(.logo--lockup) { width: 160px; }
/* Phones: the full lockup with its tagline here too, since checkout has no other branding. */
@media (max-width: 959px) {
    .co-top__inner { gap: 12px; }
    .co-top .logo--lockup { gap: 10px; }
    .co-top .logo--lockup .logo__mark { width: 32px; height: 32px; }
    .co-top .logo--lockup .logo__words { width: 146px; gap: 4px; }
    .co-top .logo__tag { display: flex; justify-content: space-between; font-size: 7px; font-weight: 600; line-height: 1; color: var(--muted); }
    .co-top a.back { white-space: nowrap; }
    .co-top .back__long { display: none; }
}
@media (min-width: 960px) { .co-top .back__short { display: none; } }
.co-top a.back { font-size: .88rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.co-top a.back .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.co { display: grid; }
@media (min-width: 1000px) { .co { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 69px); } }
@media (max-width: 999px) { .co { align-content: start; } }
.co__main { padding: 28px var(--gutter) 64px; }
@media (min-width: 1000px) { .co__main { padding: 48px 64px 96px max(var(--gutter), calc((100vw - 1200px) / 2)); border-right: 1px solid var(--line); } }
.co__main-inner { max-width: 560px; margin-left: auto; display: grid; gap: 36px; }
@media (max-width: 999px) { .co__main-inner { margin-inline: auto; } }
.co__summary { background: var(--stage); }
@media (min-width: 1000px) { .co__summary { padding: 48px max(var(--gutter), calc((100vw - 1200px) / 2)) 48px 48px; } }
.co__summary-inner { max-width: 460px; display: grid; gap: 20px; }
@media (min-width: 1000px) { .co__summary-inner { position: sticky; top: 48px; } }
.summary-toggle > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.summary-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px var(--gutter); border-bottom: 1px solid var(--line-2); font-size: .92rem; color: var(--action-700); font-weight: 500; }
.summary-toggle b { color: var(--ink); font-size: 1.05rem; }
.summary-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.summary-toggle[aria-expanded="true"] .icon { transform: rotate(90deg); }
@media (min-width: 1000px) { .summary-toggle { display: none; } }
@media (max-width: 999px) { .co__summary-inner { padding: 20px var(--gutter) 24px; margin-inline: auto; } .co__summary-inner[hidden] { display: none; } }
.sum-line { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; }
.sum-line .stage { width: 60px; height: 68px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: visible; }
.sum-line .stage > div { width: 38%; }
.sum-line__qty { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--muted); color: #fff; font-size: .72rem; font-weight: 600; display: grid; place-items: center; }
.sum-line b { display: block; font-size: .9rem; color: var(--ink); font-weight: 600; }
.sum-line span { font-size: .82rem; color: var(--muted); }
.sum-line .sum-line__price { font-size: .9rem; color: var(--ink); font-weight: 500; }
.sum-lines { display: grid; gap: 16px; }
.co .sum { font-size: .92rem; }
.co .sum .is-total span:last-child { font-size: 1.3rem; letter-spacing: -0.02em; }
.co .sum .is-total small { font-size: .78rem; color: var(--muted); font-weight: 400; margin-right: 6px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.secure .icon { width: 14px; height: 14px; }
.co-window { margin: 0; text-align: center; font-size: .82rem; color: var(--muted); }
.co-notes { display: grid; gap: 4px; }
.co-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
@media (max-width: 639px) { .co-legal { flex-wrap: nowrap; justify-content: space-between; gap: 8px; white-space: nowrap; font-size: .78rem; } }
.co-legal a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-2); }

/* ---------- Order confirmation ---------- */
.thanks { display: flex; gap: 14px; align-items: center; }
.thanks__mark { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ok); color: var(--ok); display: grid; place-items: center; flex: none; }
.thanks__mark .icon { width: 24px; height: 24px; stroke-width: 2; }
.thanks__mark--wait { border-color: var(--amber); color: var(--amber); }
.thanks p { font-size: .88rem; color: var(--muted); }
.thanks h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.panel { border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.panel__head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel__head h2 { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.panel__head p { margin-top: 4px; font-size: .9rem; color: var(--muted); }
.panel__body { padding: 18px 20px; display: grid; gap: 14px; }
.panel--attention { border-color: var(--ink); }
.copy-rows { display: grid; }
.copy-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.copy-row:last-child { border-bottom: 0; }
.copy-row dt { font-size: .8rem; color: var(--muted); }
.copy-row dd { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.copy-btn { height: 32px; padding: 0 10px; border-radius: var(--r); border: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn .icon { width: 14px; height: 14px; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.timeline li { display: grid; gap: 8px; font-size: .8rem; color: var(--muted); }
.timeline li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.timeline li.is-done { color: var(--ink); }
.timeline li.is-done::before { background: var(--ink); }
.timeline li.is-current { color: var(--ink); font-weight: 600; }
.timeline li.is-current::before { background: var(--ink); }
.info-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-grid h3 { font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.info-grid p { font-size: .92rem; color: var(--ink); line-height: 1.55; }

/* ---------- Status pills + tables ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: .76rem; font-weight: 600; background: var(--stage); color: var(--ink-2); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--ok { background: var(--ok-bg, #e7f5ee); color: var(--ok-ink); }
.status--wait { background: #fff4e3; color: var(--amber-ink); }
.status--blue { background: var(--tint); color: var(--gold-ink); }
.status--muted { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.table th { text-align: left; font-weight: 500; font-size: .8rem; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafaf8; white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a { font-weight: 600; }
.table .t-muted { color: var(--muted); }

/* ---------- Account + affiliate ---------- */
.acct { display: grid; gap: 24px; padding-bottom: 96px; }
@media (min-width: 960px) { .acct { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; } }
.acct-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
.acct-nav::-webkit-scrollbar { display: none; }
.acct-nav a, .acct-nav button { flex: none; padding: 10px 2px; margin-right: 18px; font-size: .92rem; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; text-align: left; }
.acct-nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
@media (min-width: 960px) {
    .acct-nav { flex-direction: column; margin: 0; padding: 0; border: 0; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
    .acct-nav a, .acct-nav button { margin: 0; padding: 9px 12px; border-radius: var(--r); border: 0; }
    .acct-nav a:hover, .acct-nav button:hover { background: var(--stage); color: var(--ink); }
    .acct-nav a[aria-current="page"] { background: var(--stage); }
    .acct-nav__sep { height: 1px; background: var(--line); margin: 8px 0; }
}
.acct-section[hidden] { display: none; }
.acct-section { display: grid; gap: 28px; align-content: start; }
.acct-section > header { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acct-section h2 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } .acct .stats:not(.stats--3) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; } }
.stat { background: #fff; padding: 18px 20px; }
.stat dt { font-size: .82rem; color: var(--muted); }
.stat dd { margin-top: 6px; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat small { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }

.credit { display: flex; align-items: baseline; gap: 12px; }
.credit strong { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); }

/* Partner dashboard: the code they share, big, with the link underneath as the back-up. */
.pcode { display: grid; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 16px; }
.pcode__k { font-size: .85rem; font-weight: 600; color: var(--ink); }
.pcode__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pcode__val { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 700; letter-spacing: .04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pcode__what { font-size: .92rem; color: var(--ink-2); }
.pcode__link { display: grid; gap: 8px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.pcode__link p { font-size: .82rem; color: var(--muted); }

.ref { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 10px; }
.ref p { font-size: .82rem; color: var(--muted); }
.ref__val { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ref__val code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Auth ---------- */
.auth { display: grid; place-items: start center; padding: 40px 0 96px; }
@media (min-width: 960px) { .auth { padding-top: 80px; } }
.auth__card { width: 100%; max-width: 420px; display: grid; gap: 24px; }
.auth__card h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.auth__switch { font-size: .9rem; color: var(--muted); text-align: center; }
.auth__switch a, .auth__switch button { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.divider { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--soft); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Verify / track ---------- */
.lookup { max-width: 640px; }
.lookup form { display: flex; gap: 8px; margin-top: 28px; }
.lookup .input { height: 54px; font-size: 1.05rem; }
.lookup .btn { height: 54px; }

.result-card { display: grid; gap: 28px; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .result-card { grid-template-columns: 1fr 1fr; gap: 56px; } }
.result-card[hidden] { display: none; }
.result-card .report-frame { border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 2px rgb(11 11 11 / .06), 0 24px 48px -16px rgb(11 11 11 / .2); align-self: start; }
.alert { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r); font-size: .9rem; margin-top: 20px; }
.alert .icon { width: 18px; height: 18px; margin-top: 1px; }
.alert--error { background: #fdeeee; color: #8a1f1f; }
.alert--ok { background: #e7f5ee; color: #0f5c3a; }
.alert[hidden] { display: none; }

/* ---------- Help + legal ---------- */
.help { display: grid; gap: 56px; padding-bottom: 96px; }
@media (min-width: 960px) { .help { grid-template-columns: 7fr 5fr; gap: 96px; } }
.help h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin: 28px 0 4px; }
.help h2:first-child { margin-top: 0; }
.contact-card { border-radius: var(--r-lg); background: var(--stage); padding: 24px; display: grid; gap: 16px; align-self: start; }
@media (min-width: 960px) { .contact-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; } }
.contact-card .input, .contact-card .select { background-color: #fff; }
.doc { display: grid; gap: 32px; padding-bottom: 96px; }
@media (min-width: 960px) { .doc { grid-template-columns: 220px minmax(0, 1fr); gap: 80px; } }
.toc { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; padding: 8px 12px; border-radius: var(--r); font-size: .9rem; color: var(--muted); background: var(--stage); }
.toc a[aria-current="true"] { color: #fff; background: var(--ink); }
@media (min-width: 960px) { .toc { flex-direction: column; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; margin: 0; padding: 0; } .toc a { background: none; } .toc a:hover { color: var(--ink); background: var(--stage); } }
.prose { max-width: 70ch; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.prose section + section, .prose > p + section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.prose > .lede { font-size: 1.1rem; color: var(--muted); margin-bottom: 8px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-size: .88em; padding: 1px 5px; border-radius: 4px; background: var(--stage); }
.table-scroll { overflow-x: auto; margin-top: 16px; }
.policy-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.policy-table th, .policy-table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.policy-table th { font-weight: 600; color: var(--ink); }
.policy-table td:first-child { white-space: nowrap; }
@media (max-width: 639px) { .policy-table td:last-child { min-width: 120px; } }
.prose h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 6px; }
.prose .updated { font-size: .85rem; color: var(--muted); margin-bottom: 24px; }
.prose h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 28px 0 8px; }
.prose p + p, .prose ul + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 1.2rem; margin-top: 10px; display: grid; gap: 6px; }

/* ---------- 404 ---------- */

/* Utility: the hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

/* Checkout: summary first in the DOM (mobile), right-hand column on desktop */
@media (min-width: 1000px) { .co__summary { order: 2; } .co__main { order: 1; } }
.filter-panel .filters { display: block; position: static; }

.co-code { display: flex; gap: 8px; }
.co-code .input { height: 48px; }
.co-code .btn { height: 48px; }
.co .input, .co .select--block { background-color: #fff; }

/* Order confirmation: status first on mobile */
@media (max-width: 999px) { body[data-page="order"] .co__summary { order: 2; } body[data-page="order"] .co { display: flex; flex-direction: column; } }

.sum-line .sum-line__qty { color: #fff; font-size: .72rem; }
.sum-lines + .sum { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }

/* ==========================================================================
   Utilities (used instead of inline styles, which the security policy blocks)
   ========================================================================== */
.w-0 { width: 0%; }
.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }
.mt-xs { margin-top: 6px; } .mt-sm { margin-top: 12px; } .mt-md { margin-top: 20px; }

.nowrap { white-space: nowrap; }

.flash { margin-bottom: 20px; padding: 12px 16px; border-radius: var(--r); font-size: .92rem; }
.flash--success { background: #e7f5ee; color: #0f5c3a; }
.flash--error { background: #fdeeee; color: #8a1f1f; }
.flash--warning { background: #fff4e3; color: #6b4200; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; }
noscript .noscript { display: block; padding: 10px; text-align: center; background: #fff4e3; color: #6b4200; font-size: .85rem; }

/* ---------- Production template helpers ---------- */
.cart-panel__inner { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart-panel__inner .cart-panel__body { flex: 1; }
.pill[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill[aria-current="page"] span { color: rgb(255 255 255 / .6); }
.filters .filters-form__apply { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.section--pad-bottom { padding-bottom: 104px; }
.calc__aside { display: grid; align-content: start; }
@media (min-width: 960px) { .calc__aside { position: sticky; top: calc(var(--header-h) + 24px); } .calc__aside .result { position: static; } }
.verify-result { display: grid; gap: 20px; align-content: start; }
.verify-result .alert { margin: 0; }
.card__add-wrap form { display: contents; }
.qty form { display: contents; }
.line__right form { display: contents; }
.line__name a:hover { color: var(--action); }
.bundle h3 a:hover { color: var(--action); }
.contact-card h2 { margin: 0; }

/* ---------- Product photos ----------
   Photos have white backgrounds; multiply blends them into the grey stage. The wrapper must not
   create its own stacking context (no filter/transform), or the blend would stop at the wrapper. */
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.stage > div:has(> .photo), .stage > .vial-wrap:has(> .photo) { filter: none !important; transform: none !important; }
.card:hover .photo { transform: translateY(-4px) scale(1.02); }
.gallery__slide .photo { inset: 4%; width: 92%; height: 92%; }
.gallery__thumbs button:has(.photo) { position: relative; }

/* ---------- Checkout / order ---------- */
.form--sections { gap: 36px; }
.check--top { align-items: flex-start; }
.check--top input { margin-top: 2px; }
/* A whole sentence beside the box, links included (plain .check span is a small count on the right). */
.check .check__text { margin-left: 0; font-size: inherit; color: inherit; }
.check__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.co-code p { flex: 1; align-self: center; }
.cart-page__panel { max-width: 640px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 96px; }
.cart-page__panel .cart-panel__body { padding: 0 20px; }
.cart-page__panel .freeship, .cart-page__panel .cart-panel__foot { padding-inline: 20px; }
body[data-page="order"] .co, body[data-page="checkout"] .co { min-height: calc(100vh - 69px); }

/* ---------- Partner dashboard + account extras ---------- */
.partner { padding-bottom: 96px; }
.partner__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.partner__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.partner__range { min-width: 300px; }
.partner__range .seg__opt { display: grid; place-items: center; min-height: 38px; }
.seg__opt[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(11 11 11 / .08), 0 0 0 1px rgb(11 11 11 / .04); }
.stats--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .stats--3 { grid-template-columns: repeat(3, 1fr); } }
.stat dd small { margin-top: 4px; }
.small-note { font-size: .88rem; }
.acct-nav form { display: contents; }
@media (max-width: 520px) { .partner__range { min-width: 0; width: 100%; } }
@media (max-width: 639px) { .header__account { display: none; } }
.acct-section { grid-template-columns: minmax(0, 1fr); }
.acct > * { min-width: 0; }
.ref__val { min-width: 0; }
.ref__val code { min-width: 0; }
.acct-section .table td { white-space: nowrap; }

/* Hero photo: rendered on the stage colour, so it needs no blending */

/* Back-in-stock sign-up on sold-out sizes */
.notify { display: grid; gap: 10px; padding: 18px; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.notify[hidden] { display: none; }
.notify__title { font-weight: 600; color: var(--ink); }
.notify__row { display: flex; gap: 8px; }
.notify__row .input { flex: 1; min-width: 0; }

/* Review form */

.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; border: 0; padding: 0; margin: 0; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { cursor: pointer; color: var(--line-2); font-size: 0; }
.rate label svg { width: 30px; height: 30px; fill: currentColor; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #f5a524; }
.rate input:focus-visible + label { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }
.btn-pair { display: flex; flex-wrap: wrap; gap: 10px; }

/* Product copy: areas of investigation, two columns from tablet up */
.areas { display: grid; grid-template-columns: 1fr; gap: 6px 24px; margin: 0 0 16px; padding: 0; list-style: none; }
.areas li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.45; }
.areas li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold, #ae9a64); }
@media (min-width: 600px) { .areas { grid-template-columns: 1fr 1fr; } }

/* ---------- Lab report library (/verify) ---------- */
.verify-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.reports { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }

.reports__list { border-top: 1px solid var(--line); }
.lab-row { border-bottom: 1px solid var(--line); }
.lab-row a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; font-size: .92rem; transition: background .15s var(--ease); }
.lab-row a:hover { background: var(--stage); }
.lab-row__name { color: var(--ink-2); }
.lab-row__name b { color: var(--ink); font-weight: 600; }
.lab-row__code { color: var(--muted); grid-column: 1; }
.lab-row__result { text-align: right; color: var(--ink); grid-row: 1; grid-column: 2; }
.lab-row__date { text-align: right; color: var(--muted); grid-column: 2; }

@media (min-width: 760px) {
    .lab-row a { grid-template-columns: minmax(0, 2.2fr) 1fr 1fr 110px; align-items: baseline; padding: 14px 12px; margin: 0 -12px; }
    .lab-row__code, .lab-row__result, .lab-row__date { grid-row: auto; grid-column: auto; }
    .lab-row__result { text-align: left; }
}

/* ---------- Product page: options, lab report, often ordered together ---------- */
.buy__form { display: grid; gap: 22px; }
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt legend { padding: 0; }
legend.field__label { display: block; }
/* Size and quantity share one tile: hairline at rest, ink outline when chosen.
   The only filled control in the buy box is Add to cart. */
.picker { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.picker__item { display: grid; align-content: center; justify-items: center; gap: 1px; min-height: 52px; padding: 8px 6px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink); font-size: .94rem; font-weight: 500; line-height: 1.25; font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.picker__item:hover { border-color: var(--soft-line); }
.picker__item[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.picker__item small { font-size: .75rem; font-weight: 500; color: var(--gold-ink); }
/* Trial product layout: prices on every option */
.picker__note { font-size: .78rem; font-weight: 500; color: var(--muted); }
.picker__item[aria-checked="true"] .picker__note { color: var(--ink-2); }
.buy__price--lg strong { font-size: clamp(2.1rem, 1.8rem + 1vw, 2.6rem); }
.opt legend.field__label:has(span) { display: flex; width: 100%; }
.field__label b { font-weight: 600; color: var(--ink); }
/* Sizes share the row; past four they wrap rather than squeeze. */
.picker--size { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
.picker--size .picker__item { min-height: 76px; gap: 4px; font-size: 1rem; font-weight: 600; }
/* Bundles: what's inside, the saving, and a report per compound */
.contents__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.contents__item { display: grid; grid-template-columns: 56px minmax(0, 1fr) 16px; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; transition: border-color .15s; }
.contents__item:hover { border-color: var(--soft-line); }
.contents__img { width: 56px; height: 56px; border-radius: 8px; background: #fff; }
.contents__img .photo { inset: 4%; width: 92%; height: 92%; }
.contents__name { display: grid; gap: 1px; font-size: .84rem; color: var(--muted); }
.contents__name b { font-size: .95rem; font-weight: 600; color: var(--ink); }
.contents__item > .icon { width: 16px; height: 16px; color: var(--muted); }
.buy__save { margin-top: -18px; font-size: .9rem; color: var(--ink-2); }
.buy__save b { color: var(--gold-ink); font-weight: 600; }
.labcard--list { grid-template-columns: minmax(0, 1fr); gap: 0; }
.labcard__rows { margin: 10px 0 0; padding: 0; list-style: none; }
.labcard__rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.labcard__rows b { margin-right: 6px; color: var(--ink); font-weight: 600; }
.picker--size .picker__item[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: none; }
.picker--size .picker__item[aria-checked="true"] .picker__note { color: var(--gold-light); }
.tiers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; padding-top: 10px; }
.tier { position: relative; display: grid; align-content: center; justify-items: center; gap: 3px; min-height: 74px; padding: 14px 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink); font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.tier:hover { border-color: var(--soft-line); }
.tier[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tier__badge { position: absolute; top: 0; left: 50%; translate: -50% -50%; padding: 3px 8px; border-radius: 5px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.tier--best .tier__badge { background: var(--gold); color: var(--ink); }
.tier__qty { font-size: .85rem; color: var(--muted); }
.tier__each { font-size: .82rem; color: var(--muted); }
.tier__each b { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.buy__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.qty--lg { height: 54px; grid-template-columns: 42px 34px 42px; }
.qty--lg output { font-size: 1rem; }
.qty button:disabled { color: var(--soft-line); background: none; cursor: default; }
/* Trial layout: white stage, stock and dispatch on the image, zoom, store rating, sticky bar on desktop too. */
.pdp--m .gallery__slide.stage { background: #fff; }
.pdp--m .gallery__thumbs button:not(.is-shot) { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.gallery__frame { position: relative; }
.stock-badge { position: absolute; top: 14px; right: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 6px; background: rgb(31 138 91 / .09); color: var(--ok-ink); font-size: .76rem; font-weight: 600; line-height: 1.3; pointer-events: none; }
.stock-badge[hidden] { display: none; }
.stock-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gallery__zoom { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); transition: border-color .15s; }
.gallery__zoom:hover { border-color: var(--soft-line); }
.gallery__zoom .icon { width: 18px; height: 18px; }
.zoom { width: min(100% - 32px, 900px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; }
.zoom::backdrop { background: rgb(11 11 11 / .6); }
.zoom__img { display: grid; place-items: center; padding: 48px 24px 24px; }
.zoom__img img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; }
.zoom__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--stage); color: var(--ink); }
.zoom__close .icon { width: 18px; height: 18px; }
.pdp--m .buy__rating .stars { color: var(--gold); }
.sticky-buy__sub { display: none; }
@media (min-width: 960px) {
    .sticky-buy--thumb { display: flex; gap: 16px; padding-inline: max(var(--gutter), calc((100% - 1360px) / 2)); }
    .sticky-buy--thumb .sticky-buy__img { width: 52px; height: 52px; }
    .sticky-buy--thumb .sticky-buy__info b { display: inline; margin-right: 8px; }
    .sticky-buy--thumb .sticky-buy__sub { display: inline; font-size: .85rem; }
    .sticky-buy--thumb [data-sticky-meta] { display: block; }
    .sticky-buy--thumb .btn { min-width: 220px; }
}
/* Trial layout on phones: name and price first, choices next, the reassurance after the button. */
@media (max-width: 959px) {
    .crumbs:has(+ .pdp--m) { padding-block: 12px; }
    .pdp--m { gap: 20px; }
    .pdp--m .gallery__slide { aspect-ratio: 6 / 5; }
    .pdp--m .gallery__slide > .vial-wrap { width: 30%; margin-top: 30px; }
    .pdp--m .gallery__thumbs { display: none; }
    .pdp--m .gallery__dots { margin-top: 12px; }
    .pdp--m .buy { grid-template-columns: minmax(0, 1fr) auto; gap: 20px 16px; }
    .pdp--m .buy > * { grid-column: 1 / -1; }
    .pdp--m .buy__head { display: contents; }
    .pdp--m .buy__title { grid-column: 1; grid-row: 1; }
    .pdp--m .buy__sub { grid-column: 1 / -1; grid-row: 2; margin-top: -16px; }
    .pdp--m .buy__rating { grid-column: 1 / -1; grid-row: 3; margin-top: -10px; justify-self: start; }
    .pdp--m .buy__price { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-end; gap: 0; padding-top: 2px; }
    .pdp--m .buy__price--lg strong { font-size: 1.75rem; line-height: 1.15; }
    .pdp--m .buy__title { font-size: 1.85rem; }
    .pdp--m .buy__more { display: none; }
    .pdp--m .buy__save { order: 0; margin-top: -10px; }
    .pdp--m .contents { order: 1; }
    .pdp--m .buy__form { order: 1; gap: 18px; }
    .pdp--m .notify { order: 1; margin-top: 0; }
    .pdp--m .assurances { order: 2; }
    .pdp--m .keyfacts { order: 3; margin-top: 0; }
    .pdp--m .labcard, .pdp--m .contains { order: 4; }
    .pdp--m .paymarks { order: 5; }
    .pdp--m .picker--size .picker__item { min-height: 64px; }
    .pdp--m .tier { min-height: 68px; padding-inline: 4px; }
    .pdp--m .tier__each { font-size: .78rem; }
    .science__fold summary h3 { margin: 0; font-size: inherit; font-weight: inherit; }
    .science .specbox { padding: 0 18px; }
    .specbox__fold > summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; }
    .specbox__fold > summary::-webkit-details-marker { display: none; }
    .specbox__fold > summary .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
    .specbox__fold[open] > summary .icon { transform: rotate(45deg); }
    .science .specbox__fold .specbox__table { margin-top: 0; }
    .science .specbox__actions { margin-top: 0; padding-block: 0 18px; }
    .science .specbox__fold[open] + .specbox__actions { padding-top: 18px; }
}
/* Desktop: the folds read as plain headings, always open. */
@media (min-width: 960px) {
    .science__more:has(.science__fold) { border-top: 0; margin-top: 0; }
    .science__more .science__fold { border-bottom: 0; }
    .science__fold > summary, .specbox__fold > summary { display: block; padding: 0; cursor: default; list-style: none; }
    .science__fold > summary::-webkit-details-marker, .specbox__fold > summary::-webkit-details-marker { display: none; }
    .science__fold > summary .icon, .specbox__fold > summary .icon { display: none; }
    .science__fold > .details__body { padding-bottom: 0; }
    .science__fold + .science__delivery { margin-top: 32px; border-top: 1px solid var(--line); }
}
.sticky-buy__img { flex: none; width: 44px; height: 44px; border-radius: 8px; }
.sticky-buy__img[hidden] { display: none; }
.sticky-buy__img img { width: 100%; height: 100%; object-fit: contain; }
.science { display: grid; gap: 32px; border-top: 1px solid var(--line); padding-top: 40px; }
@media (min-width: 960px) { .science { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; padding-top: 56px; } }
.science__lede { margin-top: 16px; font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); max-width: 66ch; }
.science__copy h3 { margin: 32px 0 10px; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.science__copy > p { max-width: 66ch; }
@media (min-width: 640px) { .science .areas { grid-template-columns: 1fr 1fr; } }
.science__more { margin-top: 32px; }
.science__ruo { margin-top: 20px; font-size: .85rem; color: var(--muted); }
.specbox { padding: 24px; border-radius: var(--r-lg); background: var(--stage); }
@media (min-width: 960px) { .specbox { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; } }
.specbox__title { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.specbox__table, .specbox__table tbody { display: block; width: 100%; margin-top: 10px; font-size: .9rem; }
.specbox__table tbody { margin-top: 0; }
.specbox__table tr { display: flex; justify-content: space-between; gap: 4px 16px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.specbox__table th { flex: none; font-weight: 400; color: var(--muted); text-align: left; }
.specbox__table td { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
/* Long values stay on the row: label left, value wraps on the right like the others. */
.specbox__table tr.is-long { align-items: baseline; }
.specbox__table tr.is-long td { max-width: 62%; line-height: 1.45; text-wrap: pretty; }
.specbox__note { margin-top: 12px; font-size: .85rem; color: var(--muted); }
.specbox__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.specbox__actions .btn { background: #fff; }
.specbox__actions .btn:only-child { grid-column: 1 / -1; }
.picker__item.is-out { color: var(--soft); text-decoration: line-through; }
.buy__actions { gap: 10px; }

.gallery__thumbset:not([hidden]) { display: flex; gap: 10px; }
.gallery__slide.stage--paper { background: var(--stage); }
.report-sheet { position: relative; display: block; width: 70%; height: 90%; overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgb(11 11 11 / .08), 0 24px 48px -18px rgb(11 11 11 / .3); transition: transform .4s var(--ease); }
.report-sheet:hover { transform: translateY(-3px); }
.report-sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.report-sheet::after { content: "Open full report"; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 7px 12px; border-radius: 999px; background: rgb(11 11 11 / .82); color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap; }

.labcard { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.labcard[hidden] { display: none; }
.labcard:not(:has(.labcard__doc:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
.labcard__doc { display: block; width: 84px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 16px -8px rgb(11 11 11 / .25); }
.labcard__doc img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.labcard__title { font-weight: 600; color: var(--ink); }
.labcard__facts { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; font-size: .86rem; color: var(--muted); }
.labcard__facts b { color: var(--ink); font-weight: 600; }
.labcard__facts [hidden] { display: none; }
.labcard__lab { margin-top: 2px; font-size: .82rem; color: var(--muted); }
.labcard__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.link--quiet { font-weight: 500; color: var(--muted); }
.link--quiet:hover { color: var(--ink); }

.contains { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.contains__k { margin-bottom: 6px; font-size: .8rem; color: var(--muted); }
.contains li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .92rem; }

.fbt { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.fbt__title { font-size: 1rem; font-weight: 600; color: var(--ink); }
.fbt__item label { display: grid; grid-template-columns: auto 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 0; cursor: pointer; }
.fbt__item input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.fbt__img { width: 48px; height: 56px; border-radius: var(--r); }
.fbt__img > div, .fbt__img > svg { width: 44%; }
.fbt__name { font-size: .88rem; line-height: 1.35; color: var(--ink-2); }
.fbt__name a, .fbt__name b { color: var(--ink); font-weight: 600; }
.fbt__name a:hover { text-decoration: underline; }
.fbt__price { font-size: .9rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.fbt__item:has(input:not(:checked)) :is(.fbt__img, .fbt__name, .fbt__price) { opacity: .45; }
.fbt .btn { margin-top: 4px; }

.bundle-offer { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--tint); }
.bundle-offer__img { width: 72px; height: 72px; border-radius: var(--r); background: #fff; }
.bundle-offer__title a { font-weight: 600; color: var(--ink); }
.bundle-offer__items { font-size: .8rem; color: var(--muted); }
.bundle-offer__price { margin-top: 4px; font-size: .88rem; color: var(--ink); }
.bundle-offer__price s { color: var(--soft); }
.bundle-offer__price span { color: var(--gold-ink); font-weight: 600; }

.report-frame { display: block; align-self: start; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgb(11 11 11 / .06), 0 24px 48px -16px rgb(11 11 11 / .2); }
.report-frame img { width: 100%; height: auto; }

.line__nudge { margin: 0 0 10px; }
.line__nudge button { padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--gold-ink); font-size: .76rem; font-weight: 600; }
.line__nudge button:hover { background: #ece6d6; }

/* Vial photos carry wide white margins: zoom them inside small frames. */
.gallery__thumbs button .photo, .fbt__img .photo, .bundle-offer__img .photo { transform: scale(1.45); }

@media (min-width: 960px) { .toc a[aria-current="true"] { color: var(--ink); font-weight: 600; background: var(--silver-50); box-shadow: inset 2px 0 0 var(--gold); } }
.table-scroll + p { margin-top: 16px; }
@media (max-width: 639px) {
    .policy-table thead { display: none; }
    .policy-table tr { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .policy-table td { padding: 0; border: 0; }
    .policy-table td:last-child { color: var(--muted); font-size: .85rem; }
    .policy-table td:last-child::before { content: "Expires: "; }
}

/* ---------- Home: hero ---------- */
/* Type-led: a large statement, with the four best sellers beside the call to action. */
.home-hero { background: #fff; padding-block: 44px 52px; }
.home-hero__title { font-size: clamp(2.6rem, 1rem + 6.4vw, 7.4rem); font-weight: 600; letter-spacing: -0.055em; line-height: .95; color: var(--ink); text-wrap: balance; max-width: 11em; }
.home-hero__row { display: grid; gap: 32px; margin-top: 28px; }
.home-hero__shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.home-hero__shelf a { display: grid; gap: 8px; align-content: start; }
.home-hero__shelf .stage { aspect-ratio: 1; border-radius: var(--r); }
.home-hero__shelf a:hover .photo { transform: translateY(-4px); }
.home-hero__shelf span { display: grid; gap: 1px; font-size: .74rem; color: var(--muted); }
.home-hero__shelf b { font-size: .8rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.hero__lede { max-width: 40ch; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.hero__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.hero__link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.hero__link:hover .icon { transform: translateX(3px); }
/* Phones: the button and link share one row; three best sellers, each name on one line. */
@media (max-width: 639px) {
    .home-hero .hero__actions { flex-wrap: nowrap; gap: 18px; }
    .home-hero .btn--lg { padding: 0 22px; }
    .home-hero .hero__link { white-space: nowrap; }
    .home-hero__shelf { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .home-hero__shelf li:nth-child(n+4) { display: none; }
    .home-hero__shelf span { font-size: .8rem; }
    .home-hero__shelf b { font-size: .88rem; overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 960px) {
    .home-hero { padding-block: 80px 72px; }
    .home-hero__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: end; gap: 72px; margin-top: 44px; }
    .home-hero__shelf { gap: 14px; }
    .home-hero__shelf span { font-size: .85rem; }
    .home-hero__shelf b { font-size: .92rem; }
}

/* ---------- Home: lab reports (dark) ---------- */
.home-verify { display: grid; gap: 40px; }
.home-steps { margin-top: 28px; counter-reset: step; border-top: 1px solid rgb(255 255 255 / .12); }
.home-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; padding: 16px 0; border-bottom: 1px solid rgb(255 255 255 / .12); counter-increment: step; }
.home-steps li::before { content: counter(step); grid-row: 1 / 3; font-size: .95rem; font-weight: 600; color: var(--gold); }
.home-steps b { font-size: 1rem; font-weight: 600; color: #fff; }
.home-steps span { font-size: .88rem; color: rgb(255 255 255 / .6); }
.home-verify .verify__form { margin-top: 28px; }
.home-reports { display: grid; gap: 12px; align-content: start; }
.home-reports__more a { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-inline: -8px; padding: 13px 12px; border-bottom: 1px solid rgb(255 255 255 / .12); border-radius: 8px; font-size: .9rem; color: rgb(255 255 255 / .8); transition: background .5s var(--ease); }
.home-reports__more a:hover { color: #fff; }
.home-reports__more li:last-child a { justify-content: flex-start; gap: 6px; border: 0; font-weight: 500; color: #fff; }
.home-reports__more .icon { width: 14px; height: 14px; }
.home-reports__more li.is-demo a { background: rgb(174 154 100 / .14); color: #fff; }
@media (min-width: 960px) { .home-verify { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 96px; } }

/* One lab report, as a card */
.labcard { position: relative; display: grid; gap: 14px; padding: 20px; background: #fff; border-radius: var(--r-lg); box-shadow: 0 24px 50px rgb(0 0 0 / .3); transition: box-shadow .5s var(--ease); }
.labcard.is-demo { box-shadow: 0 0 0 3px var(--gold), 0 24px 50px rgb(0 0 0 / .3); }
.labcard__head { padding-bottom: 12px; border-bottom: 2px solid var(--gold); font-size: .82rem; font-weight: 600; color: var(--ink); }
.labcard dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.labcard dl div { display: grid; gap: 1px; }
.labcard dt { font-size: .74rem; color: var(--soft); }
.labcard dd { font-size: .92rem; font-weight: 500; color: var(--ink); }
.labcard__purity { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ok-ink) 9%, #fff); font-size: .84rem; color: var(--ok-ink); }
.labcard__purity .icon { width: 18px; height: 18px; flex: none; }
.labcard__purity b { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.labcard__view { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 500; color: var(--ink); }
.labcard__view .icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.labcard:hover .labcard__view .icon { transform: translateX(3px); }
@media (min-width: 480px) { .labcard dl { grid-template-columns: repeat(3, auto); justify-content: space-between; } }
@media (min-width: 960px) { .labcard { gap: 18px; padding: 28px; } .labcard__purity b { font-size: 1.45rem; } }

/* ---------- Home: reviews ---------- */
.rated { padding-block: 64px; background: var(--stage); }
.rated__inner { display: grid; gap: 32px; }
.rated__score { display: grid; gap: 6px; align-content: start; justify-items: start; }
.rated__title { font-size: clamp(1.6rem, 1.4rem + .6vw, 1.9rem); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.rated__big { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; font-size: 3.6rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.rated__big span { font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.rated .stars { color: var(--gold); }
.rated__score > .stars svg { width: 22px; height: 22px; }
.rated__count { font-size: .92rem; color: var(--ink-2); }
.rated__by { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--muted); }
.rated__by b { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.rated__by .icon { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.rated__by:hover .icon { transform: translateX(3px); }
.rated__widget { min-width: 0; min-height: 220px; }
.rated__track { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.rated__track::-webkit-scrollbar { display: none; }
.rated__card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: #fff; }
.rated__top { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--soft); }
.rated__top .stars svg { width: 15px; height: 15px; }
.rated__body { flex: 1; font-size: .9rem; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rated__card footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.rated__card footer b { color: var(--ink); font-weight: 600; }
.rated__verified { display: inline-flex; align-items: center; gap: 3px; color: var(--ok-ink); font-weight: 500; }
.rated__verified .icon { width: 12px; height: 12px; }
.rated__product { flex-basis: 100%; }
@media (min-width: 640px) { .rated__track { grid-auto-columns: 46%; } }
@media (min-width: 960px) {
    .rated { padding-block: 88px; }
    .rated__inner { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; }
    .rated__track { grid-auto-columns: calc((100% - 24px) / 3); margin-inline: 0; padding: 0; scroll-padding: 0; }
}

/* Score only (no widget or reviews to show yet): one slim row */
.rated--solo { padding-block: 40px; }
.rated--solo .rated__score { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.rated--solo .rated__big { margin: 0; font-size: 2.4rem; }
.rated--solo .rated__by { margin: 0; padding: 0; border: 0; }
@media (min-width: 960px) { .rated--solo { padding-block: 48px; } .rated--solo .rated__inner { grid-template-columns: 1fr; } .rated--solo .rated__by { margin-left: auto; } }

/* ---------- Home: bundles, beside their pitch ---------- */
.home-bundles__inner { display: grid; gap: 28px; }
.home-bundles__copy { display: grid; gap: 16px; align-content: start; justify-items: start; }
.home-bundles__copy .t-lede { margin: 0; max-width: 40ch; }
.home-bundles__cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .home-bundles__cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
    .home-bundles__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: 64px; }
    .home-bundles__cards { gap: 16px; }
}

/* ---------- Home: compound data ---------- */
.home-data { display: grid; gap: 24px; padding: 28px 24px; border-radius: var(--r-lg); background: var(--ink); color: rgb(255 255 255 / .7); }
.home-data .t-h2 { color: #fff; }
.home-data__copy { display: grid; gap: 12px; align-content: start; }
.home-data__copy p { max-width: 46ch; }
.home-data__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 500; color: #fff; }
.home-data__go .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.home-data:hover .home-data__go .icon { transform: translateX(3px); }
.home-data__demo { display: grid; border-radius: var(--r); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.home-data__demo div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgb(255 255 255 / .1); font-size: .9rem; }
.home-data__demo dd { font-weight: 600; color: #fff; }
.home-data__demo .home-data__out { border: 0; }
.home-data__out dt { color: var(--gold); }
.home-data__out dd { font-size: 1.3rem; letter-spacing: -0.02em; color: var(--gold); }
@media (min-width: 960px) { .home-data { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 72px; padding: 56px; } }

/* Footer rating */

/* Empty cart */
.cart-empty { display: grid; justify-items: center; gap: 6px; padding: 48px 16px; text-align: center; color: var(--muted); font-size: .9rem; }
.cart-empty > .icon { width: 28px; height: 28px; margin-bottom: 8px; color: var(--soft-line); }
.cart-empty__title { font-size: 1.15rem; font-weight: 600; color: var(--ink); }

/* Error pages (standalone: no database, no layout) */
.error-page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
.error-page__top { border-bottom: 1px solid var(--line); }
.error-page__top .wrap { height: var(--header-h); display: flex; align-items: center; }
.error-page__main { display: grid; align-content: center; justify-items: center; gap: 16px; padding-block: 64px 96px; text-align: center; }
.error-page__main .t-lede { margin-inline: auto; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.error-page__code { font-size: .8rem; color: var(--soft); margin-top: 8px; }
.error-page__debug { max-width: 100%; overflow: auto; padding: 16px; text-align: left; font-size: .75rem; background: var(--stage); border-radius: var(--r); }

/* Store credit */
.co-paid { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-lg); background: #eef7f1; color: #1f6b47; font-size: .92rem; font-weight: 500; }
.co-paid .icon { width: 18px; height: 18px; flex: none; }
.acct-credits { display: grid; gap: 8px; margin: 12px 0 8px; }
.acct-credits li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.acct-credits b { font-size: 1.1rem; color: var(--ink); }
.acct-credits .mono { letter-spacing: .04em; }
.acct-credits__note { margin-bottom: 32px; font-size: .88rem; }

/* Research areas: type-led tiles, one quiet tone per area */
.cat { --cat: #efe9dc; --cat-ink: #5c4f33; position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 196px; padding: 24px; border-radius: var(--r-lg); background: var(--cat); color: var(--cat-ink); transition: background-color .3s var(--ease); }
.cat--2 { --cat: #e3ebe2; --cat-ink: #36513b; }
.cat--3 { --cat: #e1e8ef; --cat-ink: #34495e; }
.cat--4 { --cat: #e8e4ef; --cat-ink: #4a4060; }
.cat--5 { --cat: #f1e4de; --cat-ink: #6a4033; }
.cat--6 { --cat: #e9e8e1; --cat-ink: #4a4740; }
.cat:hover { background: color-mix(in srgb, var(--cat) 88%, var(--cat-ink)); }
.cat__name { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.cat__names { font-size: .88rem; line-height: 1.5; opacity: .85; max-width: 44ch; text-wrap: pretty; }
.cat__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; font-size: .85rem; font-weight: 500; }
.cat__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(255 255 255 / .7); color: var(--ink); transition: transform .3s var(--ease), background-color .3s var(--ease); }
.cat__go .icon { width: 16px; height: 16px; }
.cat:hover .cat__go { transform: translateX(3px); background: #fff; }
@media (min-width: 960px) { .cat { min-height: 220px; padding: 28px; } }

/* Bundles: make clear these are separate vials */
.contains__note { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }

@media (max-width: 959px) {
    .cats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow: visible; margin: 0; padding: 0; }
    .cat { min-height: 168px; padding: 18px; }
    .cat__names { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; }
    .cat__go { width: 30px; height: 30px; }
}
@media (min-width: 640px) and (max-width: 959px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat__foot > span:first-child { white-space: nowrap; }
@media (max-width: 639px) { .cat__name { font-size: 1.15rem; } .cat__foot { font-size: .8rem; } }

/* Verify: look up by order or by batch code */
.lookup { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; margin-top: 8px; }
.lookup__input { flex: 1 1 260px; }
@media (max-width: 479px) { .lookup__btn { flex: 1 1 100%; } }
.lookup__input { min-width: 0; height: 52px; text-transform: uppercase; letter-spacing: .03em; }
.lookup__input::placeholder { text-transform: none; letter-spacing: 0; }
.lookup__input[type="email"] { text-transform: none; letter-spacing: 0; }
.lookup__btn { height: 52px; padding-inline: 28px; }
.lookup__hint { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.order-batches { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.order-batches .alert { margin: 0; }

.lab-row[hidden] { display: none; }
.order-batches__title { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

.lab-row__qty { color: var(--muted); font-weight: 400; white-space: nowrap; }

/* Rows of cards that scroll sideways */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding-bottom: 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.rail__item { scroll-snap-align: start; min-width: 0; }
@media (min-width: 640px) { .rail__track { grid-auto-columns: calc((100% - 2 * 16px) / 3 - 24px); gap: 16px; } }
@media (min-width: 960px) { .rail__track { grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; padding-inline: 0; margin-inline: 0; scroll-padding-inline: 0; } }
@media (min-width: 1280px) { .rail__track { grid-auto-columns: calc((100% - 4 * 20px) / 5); } }
.rail__nav { display: none; }
@media (min-width: 960px) {
    .rail__nav { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
    .rail__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); transition: background .15s, border-color .15s, opacity .15s; }
    .rail__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
    .rail__btn:disabled { opacity: .35; pointer-events: none; }
    .rail__btn--prev .icon { transform: rotate(180deg); }
    .rail.is-static .rail__nav { visibility: hidden; }
}

/* Product page: key facts in the buy box, cross-sells and details below */
.keyfacts { display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); margin-top: -8px; }
.keyfacts li { display: flex; gap: 10px; align-items: flex-start; }
.keyfacts .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--gold); flex: none; }
.keyfacts b { color: var(--ink); font-weight: 600; }
.buy__more { justify-self: start; font-size: .88rem; margin-top: -14px; }
.section--tight { padding-block: 0 48px; }
@media (min-width: 960px) { .section--tight { padding-bottom: 64px; } }
.pairs { display: grid; gap: 16px; }
.pairs .fbt { padding: 24px; }
.pairs .bundle-offer { padding: 20px; }

/* Header search box (wide screens) */
.searchbox { display: none; }
@media (min-width: 1280px) {
    .searchbox { display: flex; align-items: center; gap: 10px; width: 240px; height: 40px; margin-right: 8px; padding: 0 14px; border-radius: 999px; background: var(--stage); color: var(--muted); font-size: .88rem; transition: background .15s, box-shadow .15s; }
    .searchbox:hover { background: var(--stage-2); color: var(--ink-2); }
    .searchbox .icon { width: 16px; height: 16px; }
    .header__search { display: none; }
}

/* Footer: links, then payment methods */

/* Often ordered together: one full-width band on desktop, the products side by side */
@media (min-width: 960px) {
    .pairs { gap: 12px; }
    .pairs .fbt { grid-template-columns: minmax(0, 1fr) 240px; column-gap: 28px; row-gap: 16px; padding: 24px 28px; }
    .pairs .fbt__title { grid-column: 1 / -1; }
    .pairs .fbt__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .pairs .fbt__item label { height: 100%; grid-template-columns: 18px minmax(0, 1fr); grid-template-areas: "c i" "c n" "c p"; align-items: start; gap: 8px 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); }
    .pairs .fbt__item input { grid-area: c; margin-top: 2px; }
    .pairs .fbt__img { grid-area: i; width: 100%; height: 150px; }
    .pairs .fbt__img > div, .pairs .fbt__img > svg { width: 16%; }
    .pairs .fbt__img .photo { transform: scale(.92); }
    .pairs .fbt__name { grid-area: n; }
    .pairs .fbt__price { grid-area: p; }
    .pairs .fbt .btn { grid-column: 2; grid-row: 2; align-self: center; margin: 0; }
    .pairs .bundle-offer { padding: 16px 28px; }
}

/* Price inside a button: spaced from the label, no separator */
.btn__price { margin-left: .5em; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Polish pass: brand band, cart page, search, verify, small fixes
   ========================================================================== */
/* Sage header band on content pages (full-bleed from inside .wrap) */
/* Inner pages: breadcrumb, title and one line, on the page itself. No banner. */
.page-head--plain { padding-block: 0; margin-bottom: 28px; }
@media (min-width: 960px) { .page-head--plain { margin-bottom: 40px; } }
.page-head--plain .t-h1 { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem); color: var(--ink); }
.page-head--plain .t-lede { margin-top: 8px; font-size: 1rem; color: var(--muted); max-width: 60ch; }
.page-head__meta { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.page-head--plain .lookup { margin-top: 20px; }
.page-head--plain .lookup__hint { color: var(--muted); }

/* Home: lab-report section in the brand green */
.dark .verify__form .input { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .18); }

/* Cart page: items left, summary right */
@media (min-width: 960px) {
    .cart-page__panel { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "ship foot" "body foot"; align-items: start; border: 0; border-radius: 0; overflow: visible; }
    .cart-page__panel .freeship { grid-area: ship; padding: 0 0 18px; }
    .cart-page__panel .cart-panel__body { grid-area: body; padding: 0; border-top: 1px solid var(--line); }
    .cart-page__panel .cart-panel__foot { grid-area: foot; position: sticky; top: calc(var(--header-h) + 24px); margin-left: 48px; padding: 28px; border: 0; border-radius: var(--r-lg); background: var(--stage); }
    .cart-page__panel .cart-panel__body:only-child { grid-column: 1 / -1; border-top: 0; }
}

/* Search page */
.searchpage { display: flex; gap: 8px; max-width: 560px; margin-top: 22px; }
.searchpage .input { flex: 1; min-width: 0; height: 52px; background: #fff; }
.searchpage .btn { height: 52px; padding-inline: 28px; }
.searchpage__count { margin-bottom: 20px; }
.searchpage__grid { margin-bottom: 96px; }
main > .t-muted:last-child { margin-bottom: 96px; }

/* Shop: the sidebar already lists research areas on desktop */
@media (min-width: 1100px) { .page-head--plain + .pills { display: none; } }
.toolbar__count { white-space: nowrap; }
@media (max-width: 479px) { .toolbar .toolbar__count { display: none; } }

/* Verify: batch codes read as codes, in the brand gold */
.lab-row__code.mono { font-family: var(--sans); font-size: .86rem; font-weight: 600; letter-spacing: .03em; color: var(--gold-ink); font-variant-numeric: tabular-nums; }

/* Product: bundle offer stacks cleanly on phones */
@media (max-width: 639px) {
    .bundle-offer { grid-template-columns: 64px minmax(0, 1fr); }
    .bundle-offer__img { width: 64px; height: 64px; }
    .bundle-offer form, .bundle-offer > .btn { grid-column: 1 / -1; }
    .bundle-offer form .btn, .bundle-offer > .btn { width: 100%; }
}

/* Store page uses the pop-up's tiles */
.auth__card .stores { margin: 0; }
.auth__card .gate__confirm { margin-top: -6px; }

/* The band already separates the page top: no extra rule before the report library */
.page-head--plain + .reports { margin-top: 8px; padding-top: 0; border-top: 0; }
/* Shop: band sits closer to the products */
@media (min-width: 960px) { .page-head--plain:has(+ .pills) { margin-bottom: 36px; } }

/* QA pass A */
body { min-height: 100dvh; display: flex; flex-direction: column; }
body > #main { flex: 1 0 auto; }
.nowrap { white-space: nowrap; }
.head__lede, .t-lede { text-wrap: pretty; }
.toolbar .filter-btn { height: 42px; }
.toolbar__count { margin-right: auto; }
.filter-btn__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600; }
.empty__title { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
@media (min-width: 640px) {
    .filter-panel { inset: 0 0 0 auto; width: min(420px, 100%); max-height: none; border-radius: 0; transform: translateX(100%); }
}
@media (min-width: 960px) {
    .search-results, .search-panel .search-hint, .search-all { max-width: 720px; }
}
.search-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.search-all .icon { width: 14px; height: 14px; }
.search-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.searchpage__start { margin-bottom: 96px; }
.searchpage__start .field__label { display: block; margin-bottom: 12px; }
.pills--wrap { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; }
@media (min-width: 1100px) { .header__end { margin-right: -10px; } }

/* ==========================================================================
   QA pass B/C/D
   ========================================================================== */
html { scrollbar-gutter: stable; }

/* Product page */
.bundle-offer__img .photo { transform: none; }
.bundle-offer__img { background: var(--stage); }
.gallery__slide .photo { mix-blend-mode: multiply; }
@media (min-width: 960px) {
    .pairs .fbt__list:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pairs .fbt__list:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pairs .fbt__item label { grid-template-rows: auto 1fr auto; }
    .pairs .fbt__price { align-self: end; }
}
@media (min-width: 1280px) { .rail__track:not(:has(> :nth-child(5))) { grid-auto-columns: calc((100% - 3 * 20px) / 4); } }
/* Lab-report slide: the open pill sits under the document, not on it */
.report-sheet { overflow: visible; height: 80%; margin-bottom: 44px; }
.report-sheet img { border-radius: 4px; }
.report-sheet::after { bottom: -42px; background: var(--ink); }

/* Cart */
.line__nudge button { white-space: nowrap; }
.cart-panel__body:has(.cart-empty) { display: grid; place-items: center; }
.cart-empty { padding-block: 32px; }
.cart-empty > .icon { width: 40px; height: 40px; }
.cart-page .cart-panel__body:has(.cart-empty) { place-items: start; }
.cart-page .cart-empty { justify-items: start; text-align: left; padding-inline: 0; }
.cart-page .cart-empty > .icon { display: none; }

/* Menus */
.menu-panel__group:last-child { border-bottom: 0; }

/* Gate */
.gate__close { position: absolute; top: 12px; right: 12px; z-index: 2; color: #fff; }
.gate__close:hover { background: rgb(255 255 255 / .12); }
.gate__sub { text-wrap: pretty; }
.stores__item label::after { border-color: var(--soft-line); }
.stores__item input:checked + label::after { border: 1.5px solid var(--ink); background: radial-gradient(circle, var(--ink) 0 4.5px, #fff 5px); }
.auth__card .t-muted { text-wrap: pretty; }

/* Verify */
.page-head--plain + .order-batches, .page-head--plain + .result-card, .page-head--plain + .alert { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 959px) { .result-card .verify-result { order: -1; } }
@media (min-width: 960px) { .lab-row a { margin: 0 -12px; } .reports__list { border-top-color: var(--line); } }
.lab-row__code.mono { color: #7a6a42; }
.spec .mono { font-family: var(--sans); font-size: inherit; letter-spacing: .03em; font-variant-numeric: tabular-nums; }

/* Checkout and forms: errors sit close to their field */
.fieldset > .form-error, .form > .form-error { margin-top: -8px; }
.check--top + .form-error { margin-top: -26px; }
.co__main .flash { margin-bottom: 24px; }

/* Order page */
.order-head h1 + p, .co__main h1 + p { margin-top: 6px; color: var(--muted); }
.panel__head p b { white-space: nowrap; }

/* Account and auth */
.auth__card .flash { margin-bottom: 0; }
.auth__card p { text-wrap: pretty; }
.auth__card .form-note { text-align: center; }
.acct-section .form { max-width: 520px; }
.input:disabled { background: var(--stage); color: var(--muted); cursor: not-allowed; }
.acct-section > .acct-section + .acct-section { padding-top: 32px; border-top: 1px solid var(--line); }
.acct-section .details { border-bottom: 1px solid var(--line); }

/* Product gallery: campaign shots fill their slide (portrait, like the gallery) */
.gallery__slide--shot { position: relative; overflow: hidden; background: var(--ink); }
.gallery__slide--shot .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button.is-shot { position: relative; background: var(--ink); }
.gallery__thumbs button.is-shot .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Private offers */
.pdp--offer { padding-top: 32px; }
@media (min-width: 960px) { .pdp--offer { padding-top: 48px; } }
.pdp--single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.offer__desc { font-size: .98rem; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.offer__stage > .group { width: 62%; }
.line__mark { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); }
.line__mark .icon { width: 40%; height: 40%; }
.line--offer .line__meta { white-space: normal; }
.line__warn { margin-top: 6px; font-size: .8rem; color: var(--red); }

/* Touch screens: larger tap areas on small controls, with nothing visible changing.
   Each stretch stays clear of the neighbouring control. */
@media (pointer: coarse) {
    .icon-btn::after, .gallery__zoom::after, .zoom__close::after { content: ""; position: absolute; inset: -2px; }
    .bar__close button, .copy-btn, .btn--sm, .pill, .line__remove, .qty--lg > button { position: relative; }
    .bar__close button::after, .copy-btn::after { content: ""; position: absolute; inset: -6px; }
    .btn--sm::after, .pill::after { content: ""; position: absolute; inset: -3px 0; }
    .line__remove::after { content: ""; position: absolute; inset: -12px -8px; }
    .qty--lg > button::after { content: ""; position: absolute; inset: 0; }
    .qty--lg > button:first-child::after { right: -2px; }
    .qty--lg > button:last-child::after { left: -2px; }
    /* Cart stepper: the tap area reaches past the outline, so the end buttons carry the rounding instead of clipping. */
    .line .qty { overflow: visible; }
    .line .qty button { position: relative; }
    .line .qty form:first-child button { border-radius: calc(var(--r) - 1px) 0 0 calc(var(--r) - 1px); }
    .line .qty form:last-child button { border-radius: 0 calc(var(--r) - 1px) calc(var(--r) - 1px) 0; }
    .line .qty button::after { content: ""; position: absolute; top: -6px; bottom: -6px; }
    .line .qty form:first-child button::after { left: -10px; right: -5px; }
    .line .qty form:last-child button::after { left: -5px; right: -10px; }
}

/* ---------- Verify: head and lab report library ---------- */
.vhead { display: grid; gap: 24px; margin-bottom: 40px; }
.vhead__title { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem); }
.vhead__lede { margin-top: 10px; max-width: 52ch; color: var(--muted); line-height: 1.55; }
.vhead__panel { padding: 20px; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.vhead__label { margin-bottom: 12px; font-size: 1rem; font-weight: 600; color: var(--ink); }
.vhead__panel .lookup { max-width: none; margin-top: 0; }
@media (min-width: 960px) {
    .vhead { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 64px; align-items: center; margin-bottom: 56px; }
    .vhead__panel { padding: 28px; }
}

.lib { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.vhead + .lib { margin-top: 0; }
.lib__head { display: grid; gap: 20px; margin-bottom: 28px; }
.lib__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); }
.lib__lede { margin-top: 8px; max-width: 62ch; color: var(--muted); line-height: 1.55; }
.lib__search { max-width: none; }
.lib__search .input { height: 46px; }
@media (min-width: 1100px) { .lib__head { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: end; gap: 48px; margin-bottom: 36px; } }
.lib__empty { padding: 8px 0 24px; color: var(--muted); }
.lib__empty[hidden] { display: none; }

/* The index: research areas flow into columns, compound names are plain links. */
.lib__index { column-gap: 40px; }
@media (min-width: 720px) { .lib__index { columns: 2; } }
@media (min-width: 1100px) { .lib__index { columns: 4; column-gap: 48px; } }
.lib__group { break-inside: avoid; padding-bottom: 32px; }
.lib__group[hidden] { display: none; }
.lib__area { padding-bottom: 10px; border-bottom: 1px solid var(--line-2); font-size: .95rem; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
.lib__list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 20px; }
@media (min-width: 720px) { .lib__list { columns: 1; } }
.lib__list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.lib__list li[hidden] { display: none; }
.lib__list a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: .95rem; line-height: 1.3; color: var(--ink-2); overflow-wrap: anywhere; transition: color .15s var(--ease); }
.lib__list a:hover { color: var(--gold-ink); }

/* One compound: size switch, its current report, then earlier batches of that size. */
.cview__head { display: grid; gap: 16px; margin-bottom: 28px; }
@media (min-width: 720px) { .cview__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; margin-bottom: 32px; } }
.cview__meta { margin-top: 8px; color: var(--muted); }
.cview__product { justify-self: start; }
.cview__sizes { max-width: 420px; }
.cview__sizes .seg__opt { display: grid; place-items: center; }
.result-card--flush { margin-top: 28px; padding-top: 0; border-top: 0; }
.cview__earlier { max-width: 720px; margin-top: 56px; }
.cview__sub { margin-bottom: 12px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.lab-row__result.is-failed { color: var(--red); font-weight: 600; }
.cview__back { margin-top: 40px; }

/* == Private products (shown only to invited customers) == */
.badge--private { background: var(--gold-light); color: var(--ink); }
.private-tag { display: inline-flex; align-items: center; height: 24px; margin: 0 0 10px; padding: 0 10px; border-radius: 6px; background: var(--gold-light); color: var(--ink); font-size: .76rem; font-weight: 600; line-height: 1; }
/* == End private products == */

/* ==========================================================================
   Coming soon: the holding page before the shop opens
   ========================================================================== */
.soon { min-height: 100svh; display: flex; flex-direction: column; background: #fff; }
.soon__top { display: flex; justify-content: center; padding-block: 32px 0; }
.soon .logo--lockup { gap: 12px; width: auto; }
.soon .logo--lockup .logo__mark { width: 38px; height: 38px; }
.soon .logo--lockup .logo__words { width: 196px; gap: 5px; }
.soon .logo__tag { display: flex; justify-content: space-between; font-size: 9px; font-weight: 600; line-height: 1; color: var(--muted); }
.soon__body { display: grid; justify-items: center; text-align: center; padding-block: clamp(48px, 9vh, 104px) 40px; }
.soon__title { font-size: clamp(3rem, 1.4rem + 7vw, 7.6rem); font-weight: 600; letter-spacing: -0.055em; line-height: .95; color: var(--ink); }
.soon__lede { margin-top: 22px; max-width: 44ch; font-size: clamp(1rem, .95rem + .3vw, 1.18rem); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.soon__form { display: flex; gap: 8px; width: min(100%, 440px); margin-top: 34px; }
.soon__form .input { flex: 1; min-width: 0; height: 52px; }
.soon__form .btn { height: 52px; flex: none; }
.soon__msg { margin-top: 12px; font-size: .9rem; font-weight: 500; color: var(--ok-ink); }
.soon__note { margin-top: 10px; font-size: .82rem; color: var(--soft); }
.soon__points { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 40px; }
.soon__points li { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-2); }
.soon__points .icon { width: 18px; height: 18px; color: var(--ink); }
.soon__points b { font-weight: 600; color: var(--ink); }
.soon__vials { display: flex; justify-content: center; align-items: flex-end; margin-top: auto; padding-inline: var(--gutter); overflow: hidden; }
.soon__vial { position: relative; flex: none; width: clamp(110px, 17vw, 240px); aspect-ratio: 1; margin-inline: clamp(-34px, -2.4vw, -12px); }
.soon__vial:nth-child(1), .soon__vial:nth-child(5) { width: clamp(90px, 13vw, 190px); }
.soon__vial:nth-child(3) { width: clamp(130px, 21vw, 300px); z-index: 1; }
.soon__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 22px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--soft); }
.soon__foot nav { display: flex; gap: 18px; }
.soon__foot a { color: var(--muted); }
.soon__foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) {
    .soon__form { flex-direction: column; }
    .soon__form .input { flex: none; }
    .soon__form .btn { width: 100%; }
    .soon__points { flex-direction: column; align-items: center; gap: 10px; }
    .soon__vial:nth-child(1), .soon__vial:nth-child(5) { display: none; }
    .soon__foot { justify-content: center; text-align: center; }
}

/* Coming soon mode: the slim staff notice, and the plain header on the policy pages visitors can still open. */
.soon-preview { margin: 0; padding: 8px var(--gutter); background: var(--ink); color: #fff; font-size: .8rem; font-weight: 500; text-align: center; }
.soon-head { border-bottom: 1px solid var(--line); background: #fff; }
.soon-head .wrap { display: flex; justify-content: center; padding-block: 22px; }
.soon-head .logo--lockup { gap: 12px; width: auto; }
.soon-head .logo--lockup .logo__mark { width: 34px; height: 34px; }
.soon-head .logo--lockup .logo__words { width: 180px; gap: 5px; }
.soon-head .logo__tag { display: flex; justify-content: space-between; font-size: 8px; font-weight: 600; line-height: 1; color: var(--muted); }

/* Compound data (/compounds): a scroll-through of each compound's chemistry. Tiles take the research
   area colours from the home page; elements use the brand's ink, silver and golds. */
.cx-head { max-width: 720px; }
.cx-facts-line { margin-top: 12px; font-size: .9rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

.pt-tile { display: grid; grid-template: "mw no" auto "code code" 1fr "name name" auto / minmax(0, 1fr) auto; aspect-ratio: 1 / 1.08; padding: 10px 10px 11px; border-radius: var(--r); background: var(--cat, #efe9dc); color: var(--cat-ink, #5c4f33); transition: background-color .4s var(--ease); }
.pt-tile__mw, .pt-tile__no { font-size: .68rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pt-tile__mw { grid-area: mw; }
.pt-tile__no { grid-area: no; font-weight: 600; }
.pt-tile__code { grid-area: code; align-self: center; font-family: var(--brand); font-size: 1.85rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.pt-tile__code.is-long { font-size: 1.45rem; }
.pt-tile__name { grid-area: name; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .72rem; line-height: 1.25; }
.pt-tile--md { flex: none; width: 84px; padding: 8px 9px; }
.pt-tile--md .pt-tile__mw, .pt-tile--md .pt-tile__no { font-size: .6rem; }
.pt-tile--md .pt-tile__code { font-size: 1.35rem; }
.pt-tile--md .pt-tile__code.is-long { font-size: 1.05rem; }
.pt-tile--md .pt-tile__name { display: none; }
.pt-tile--xl { aspect-ratio: 16 / 10; padding: 16px 18px; }
.pt-tile--xl .pt-tile__mw, .pt-tile--xl .pt-tile__no { font-size: .8rem; }
.pt-tile--xl .pt-tile__code { font-size: 3.4rem; }
.pt-tile--xl .pt-tile__code.is-long { font-size: 2.7rem; }
.pt-tile--xl .pt-tile__name { font-size: .9rem; }
.pt-tile.is-swap .pt-tile__code, .pt-tile.is-swap .pt-tile__name { animation: cx-swap .35s var(--ease); }
@keyframes cx-swap { from { opacity: 0; transform: translateY(6px); } }

.el--C { fill: var(--ink); background: var(--ink); }
.el--H { fill: var(--silver); background: var(--silver); }
.el--N { fill: var(--gold); background: var(--gold); }
.el--O { fill: var(--gold-light); background: var(--gold-light); }
.el--S { fill: var(--gold-ink); background: var(--gold-ink); }
.el--X { fill: var(--soft); background: var(--soft); }

/* The index: a strip under the header on phones, a mini periodic table beside the entries on wider screens */
.cx-index { position: sticky; top: var(--header-h); z-index: 20; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter); border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow-x: auto; scrollbar-width: none; }
.cx-index::-webkit-scrollbar { display: none; }
.cx-mini { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cx-mini__tile { display: grid; place-items: center; width: 44px; aspect-ratio: 1; border-radius: 6px; background: var(--cat, #efe9dc); font-family: var(--brand); font-size: .62rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); transition: box-shadow .2s var(--ease); }
.cx-mini__tile:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
.cx-mini__tile[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--ink); }

.cx-ch { display: grid; grid-template-areas: "head" "main" "viz" "more"; gap: 18px; padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 76px); }
.cx-ch__head { grid-area: head; display: flex; align-items: center; gap: 16px; }
.cx-ch__main { grid-area: main; }
.cx-ch__more { grid-area: more; }
.cx-ch__name { font-size: 1.6rem; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.cx-ch__area { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .88rem; color: var(--muted); }
.cx-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--cat, #efe9dc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat-ink, #5c4f33) 30%, transparent); }
.cx-ch__formula { margin: 0; font-size: 1.3rem; color: var(--ink); overflow-wrap: anywhere; }
.cx-parts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cx-part { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: .9rem; color: var(--muted); transition: border-color .15s; }
.cx-part b { font-weight: 600; color: var(--ink); }
a.cx-part:hover { border-color: var(--soft-line); }
.cx-part__code { display: grid; flex: none; place-items: center; width: 42px; aspect-ratio: 1; border-radius: 6px; background: var(--cat, #efe9dc); font-family: var(--brand); font-size: .66rem; font-weight: 800; color: var(--ink); }
.cx-facts { margin: 0; }
.cx-facts div { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cx-facts dt { font-size: .85rem; color: var(--muted); }
.cx-facts dd { margin: 0; font-size: .9rem; color: var(--ink); overflow-wrap: anywhere; }
.cx-ch__link { margin-top: 18px; }

.cx-viz { grid-area: viz; display: grid; gap: 22px; align-content: start; padding: 18px 20px 20px; border-radius: var(--r-lg); background: var(--stage); }
.cx-label { margin-bottom: 8px; font-size: .78rem; font-weight: 600; color: var(--ink); }
.cx-bar { display: block; width: 100%; height: 12px; border-radius: 4px; overflow: hidden; }
.cx-legend { display: grid; margin: 10px 0 0; padding: 0; list-style: none; }
.cx-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 50px; gap: 10px; align-items: center; padding: 4px 0; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cx-legend li i { width: 10px; height: 10px; border-radius: 3px; }
.cx-legend li b { font-weight: 600; color: var(--ink); }
.cx-legend li span:last-child { text-align: right; color: var(--ink); }
.cx-none { font-size: .86rem; color: var(--muted); }
.cx-scale { display: block; width: 100%; height: 14px; }
.cx-scale__track { fill: var(--line-2); }
.cx-scale__mark { fill: var(--ink); }
.cx-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: .72rem; color: var(--soft); font-variant-numeric: tabular-nums; }
.cx-rank { margin-top: 8px; font-size: .86rem; color: var(--ink-2); }

.cx-inst { display: none; }
.cx-ibar { display: flex; height: 12px; border-radius: 4px; overflow: hidden; background: var(--line); }
.cx-ibar span { flex: 0 0 0%; transition: flex-basis .55s var(--ease); }
.cx-iscale { position: relative; height: 16px; }
.cx-iscale::before { content: ""; position: absolute; inset: 7.5px 0 auto; height: 1px; background: var(--line-2); }
.cx-iscale__tick { position: absolute; top: 4px; width: 1px; height: 8px; background: var(--soft-line); }
.cx-iscale__mark { position: absolute; top: 0; left: 0; width: 3px; height: 16px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); transition: left .55s var(--ease); }
.cx-ruo { margin: 28px 0 72px; }

@media (min-width: 760px) {
    .cx-ch { grid-template: "head viz" auto "main viz" auto "more viz" 1fr / minmax(0, 1fr) 320px; gap: 18px 40px; align-items: start; }
}
@media (min-width: 1000px) {
    .cx { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 12px; }
    .cx-index { top: calc(var(--header-h) + 24px); margin: 0; padding: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; }
    .cx-mini { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
    .cx-mini__tile { width: auto; }
    .cx-ch { scroll-margin-top: calc(var(--header-h) + 24px); }
}
@media (min-width: 1180px) {
    .cx.is-live { grid-template-columns: 216px minmax(0, 1fr) 360px; }
    .cx.is-live .cx-inst { display: grid; gap: 26px; position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border-radius: var(--r-lg); background: var(--stage); }
    .cx.is-live .cx-viz { display: none; }
    .cx.is-live .cx-chapters { padding-bottom: 24vh; }
    .cx.is-live .cx-ch { grid-template: "head" "main" "more" / minmax(0, 1fr); min-height: 56vh; align-content: center; padding: 5vh 0; border: 0; opacity: .25; transition: opacity .35s var(--ease); }
    .cx.is-live .cx-ch:first-child { align-content: start; padding-top: 0; }
    .cx.is-live .cx-ch__head .pt-tile { display: none; }
    .cx.is-live .cx-ch.is-active { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .pt-tile, .cx-ibar span, .cx-iscale__mark, .cx.is-live .cx-ch { transition: none; }
    .pt-tile.is-swap .pt-tile__code, .pt-tile.is-swap .pt-tile__name { animation: none; }
}

