/* GENERATED by scripts/sync-design.mjs from design/. Do not edit — edit design/. */
/* ==================================================================
   Stratum family brand — PUBLIC WWW OVERRIDE (Peptide Corpus redesign)
   ------------------------------------------------------------------
   Re-skins www.peptidecorpus.com in the Stratum Biologic family language
   (cobalt accent, warm-neutral grounds, ink rules) WITHOUT touching the
   shared violet base. Decision D1 of docs/REDESIGN-STRATUM-PLAN.md:
   www-first override. The app, partners portal, admin, auth emails and
   the white-label engine keep #4f22f2 — this file is linked ONLY by
   www (scripts/lib/layout.mjs head + web/index.html), AFTER styles.css,
   so every semantic alias below wins on www and nowhere else.

   sync-design.mjs copies this file to all four hosts like every token
   file; on app/partners/admin it is inert because nothing links it.
   Do NOT @import it from design/styles.css — that would leak the family
   brand into the white-label base the brand gates protect.

   Values are lifted verbatim from the family source of truth:
   E:/StratumBiologicStore/brand-kit/colors/tokens.json, as carried by
   E:/StratumBiologicNet/site/assets/css/sbnet.css. No eyeballed hexes.
   The two --border-subtle values and --surface-hover dark are derived
   (the family kit ships no subtle-line or hover token); they sit between
   the kit's ground/line and surface/line respectively.

   NOT overridden here, on purpose:
   - --accent-soft-border, --focus-ring, --row-hover, --selected-tint:
     colors.css defines them as color-mix() of var(--accent), so they
     re-resolve to cobalt automatically. Redeclaring would fork the
     mechanism.
   - --violet-* ramp: the white-label base. Untouched (D1).
   - --series-1..6: re-anchored in colors.css itself (cobalt-led, cyan
     second) because the standalone SVG charts are literal bytes shared
     by www and app — check-chart-palette.mjs pins the two together.
     Data hues, not brand surfaces; additive like the fonts.
   - --info: a data hue, not the retired cyan secondary (cg-immune and
     cg-sleep read it). LIGHT collapses to the AA ink #1d4ed8 because
     .vb-pay sets raw --info as TEXT on --info-soft (#2563eb there is
     4.27:1). Dark keeps #60a5fa (6.10:1 on its soft).
   - Spacing scale, control heights, motion: shared, unchanged.

   Every text/background pair below is re-measured for WCAG AA in
   scratch/pc-redesign/aa-table-phase1.md (both themes). Dark buttons
   carry INK text on periwinkle: white on #7180ff is 3.3:1 and fails.
   ================================================================== */

:root {
  /* --- Accent: family cobalt (light) ------------------------------ */
  --accent: #2933ee;          /* 6.75:1 on --bg, 7.49:1 on --surface */
  --accent-hover: #1922af;    /* family brand-deep */
  --accent-press: #141b8f;    /* derived: one step below brand-deep */
  --accent-soft: #eef0ff;     /* family brand-soft */
  --accent-text: var(--accent);
  --on-accent: #ffffff;       /* 7.49:1 on cobalt */
  --text-on-soft: #1922af;    /* family brand-deep on brand-soft */

  /* The cyan secondary is retired (D2). The alias stays defined so any
     consumer we missed resolves to brand instead of vanishing; eyebrows
     become cobalt mono tags. No www rule should reference --accent-2
     after the redesign — doc.css's three former consumers were re-pointed
     (.card-gap → --accent, cg-longevity → --series-2). */
  --accent-2: var(--accent);
  --eyebrow: var(--accent-text);

  /* --- Grounds: warm neutral, not cool slate ---------------------- */
  --bg: #f3f3f2;              /* family ground */
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #f3f3f2;
  --surface-sunken: #eeeeeb;  /* family sunken */
  --surface-hover: #eeeeeb;

  /* --- Ink -------------------------------------------------------- */
  --text: #121215;            /* family ink */
  --text-muted: #6b6b73;      /* 4.76:1 on ground, 5.28:1 on white, 4.54:1 on sunken */
  --text-subtle: #9b9ba3;     /* decoration only — never body text */

  /* --- Lines ------------------------------------------------------ */
  --border: #dededb;          /* family line */
  --border-subtle: #e7e7e4;   /* derived between ground and line */
  --border-strong: #bdbdb8;   /* family line-strong */

  /* --- Status: raw hue = AA ink on www -----------------------------
     Corpus consumers (.vb-ok/.vb-promo/.vb-unverified/.vb-pay,
     .chip-ok/.chip-caution, .vc-*, .not-this, .unverified, .calc-warn,
     .crit-yes/.crit-no, .sponsor-tag) set the RAW status token as text
     on its soft tint — not the -text ink. The family's brighter icon
     hues fail AA there (success 4.0, warning 3.2, info 4.27), so the
     override collapses raw → ink, exactly as the dark block already
     does. One declaration fixes every consumer, including generated
     tool CSS. The -text aliases stay for explicit consumers.
     WARNING: #b45309 is 4.32:1 on --surface-sunken — never set warning
     text on sunken; every current consumer sits on soft/bg/surface. */
  --success: #087a41;         /* family success-ink: 5.08 soft / 4.89 bg / 5.43 surface / 4.67 sunken */
  --success-soft: #effaf4;
  --success-text: #087a41;
  --warning: #b45309;         /* family amber-ink: 4.84 soft / 4.52 bg / 5.02 surface */
  --warning-soft: #fffbeb;
  --warning-text: #b45309;
  --danger: #b91c1c;          /* family red-ink: 5.32 soft / 5.83 bg / 6.47 surface */
  --danger-soft: #fde3e3;
  --danger-text: #b91c1c;
  --info: #1d4ed8;            /* AA blue ink: 5.53 soft / 6.04 bg / 6.70 surface (.vb-pay) */
  --info-soft: #dfeafe;

  /* --- Elevation: family ink-based shadows ------------------------ */
  --shadow-xs: 0 1px 2px rgba(18, 18, 21, .06);
  --shadow-sm: 0 1px 3px rgba(18, 18, 21, .08), 0 1px 2px rgba(18, 18, 21, .04);
  --shadow-md: 0 6px 20px rgba(18, 18, 21, .08);
  --shadow-lg: 0 18px 50px rgba(18, 18, 21, .08);  /* family --shadow */
  --shadow-xl: 0 32px 80px rgba(18, 18, 21, .16), 0 8px 24px rgba(18, 18, 21, .08);
  --scrim: color-mix(in srgb, #121215 55%, transparent);

  /* --- Chrome geometry (D3): family shell + radii ------------------ */
  --shell: 1440px;
  --gutter: clamp(20px, 3.2vw, 48px);
  /* Family --r 6 / --r-sm 4. Controls 6, cards 8 (store-legal panels),
     modals 12; chips keep the stadium pill. The app keeps 8/12/16. */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Dark mirrors colors.css's structure: inside @media screen so PRINT
   falls back to the light block above, exactly as the base does. */
@media screen {
  [data-theme="dark"] {
    /* --- Accent: periwinkle (dark) ------------------------------- */
    --accent: #7180ff;        /* 5.69:1 on --bg */
    --accent-hover: #9da6ff;  /* family dark brand-deep */
    --accent-press: #b8beff;  /* family brand-line */
    --accent-soft: #171d45;   /* family dark brand-soft */
    --accent-text: var(--accent);
    --on-accent: #0d0f14;     /* INK on periwinkle — white fails 3.3:1 */
    --text-on-soft: #b8beff;  /* on #171d45 */

    --accent-2: var(--accent);
    --eyebrow: var(--accent-text);

    /* --- Grounds -------------------------------------------------- */
    --bg: #0d0f14;            /* family dark ground */
    --bg-elevated: #151820;   /* family dark surface */
    --surface: #151820;
    --surface-subtle: #11131a;
    --surface-sunken: #11131a; /* family dark sunken */
    --surface-hover: #1a1e28;  /* derived: one step above surface */

    /* --- Ink ------------------------------------------------------ */
    --text: #f4f4f1;
    --text-muted: #aaaab2;
    --text-subtle: #73737d;   /* decoration only */

    /* --- Lines ---------------------------------------------------- */
    --border: #292d38;        /* family dark line */
    --border-subtle: #22262f; /* derived between sunken and line */
    --border-strong: #444a5a; /* family dark line-strong */

    /* --- Status --------------------------------------------------- */
    --success: #50d28c;
    --success-soft: #10291e;
    --success-text: var(--success);
    --warning: #fbbf24;
    --warning-soft: #241a06;
    --warning-text: var(--warning);
    --danger: #f87171;
    --danger-soft: #3b1717;   /* kept: structure unchanged */
    --danger-text: var(--danger);
    --info: #60a5fa;          /* 6.10:1 on --info-soft; raw = text-safe here */
    --info-soft: #14243f;

    /* --- Elevation ------------------------------------------------ */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .25);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 60px rgba(0, 0, 0, .35);  /* family dark --shadow */
    --shadow-xl: 0 32px 80px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

/* --- Family grammar: bracketed mono eyebrow tags (www, all pages) ---
   The record/hub category eyebrow and the landing section eyebrows become cobalt mono tags in
   brackets. The base form here is unnumbered ("[ LABEL ]"); the landing adds zero-padded section
   numbering in site.css and unnumbers its hero stat. Pseudo-content only — the DOM label text is
   unchanged (SEO invariant). text-transform stays uppercase from base.css. */
.eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.eyebrow::before { content: "[ "; }
.eyebrow::after { content: " ]"; }


/* ── THE SHOP MASTHEAD ON THE FAMILY COBALT BAND (www-only) ──────────────────────────────────
   doc.css carries the ORIGINAL violet `body.on-violet` masthead, shared verbatim with the
   partners host (build-partners.mjs copies it). The redesign keeps partners on the violet base
   with its current grammar (plan §3 Option B / §4 Shop: "partners.css untouched"), so the cobalt
   re-token must NOT live in doc.css. It lives here — the D1 www-only override, which partners
   never loads. brand-stratum.css is linked BEFORE doc.css, so each selector is prefixed `html`
   to outrank doc.css's `body.on-violet …` rules on specificity (one extra type selector) rather
   than on source order. /shop is the only www page carrying on-violet; the landing #pricing band
   is re-tokenized separately in site.css. Values measured against the #3340c7 composited floor;
   the band stays dark in both themes. The "Last updated" label is pinned light here (readable);
   partners keeps doc.css's original label behaviour. */
html body.on-violet` (a legacy hook name, retained — it now paints the family
   cobalt band, not violet), carried by /shop. It is the SAME gradient
   as #pricing in site.css, and the two are deliberately identical rather than merely similar: a
   reader meets it on the home page's pricing band and should meet the same surface here.

   THE COLOURS ARE LITERALS AND THE BAND IS DARK IN BOTH THEMES, for the reason #pricing states at
   length — --text and --surface invert, so a rule that read them would put dark grey on deep
   cobalt the moment somebody chose dark mode. Nothing in this block may take a token.

   EVERY VALUE BELOW IS MEASURED AGAINST #3340c7, NOT AGAINST THE #060a2b THE GRADIENT DECLARES.
   The band paints a RANGE: #3340c7 is the lightest linear stop (#1c2a8f) with both radial highlights
   composited over it at their peak alpha, which is brighter than any pixel it can actually
   produce and therefore the safe floor to pick against. It is the SAME band and the SAME floor as
   #pricing in site.css, whose measured-ground comment carries the full arithmetic; check-build's
   home/band-text-contrast recomputes it from these declarations rather than trusting the numbers.

   THIS IS FULL BLEED FROM INSIDE A PADDED, MAX-WIDTH COLUMN, which is why the two inline
   properties come in a pair. .doc is an 860px reading measure inside .wrap's own gutter, so the
   margin pulls the box out to the viewport edge and the padding puts the TEXT back on the column
   it was on — remove either and you get a band the width of the prose, or prose the width of the
   band. `50vw` counts the scrollbar and the element's 50% does not, so the bleed overshoots by
   half a scrollbar on each side — measured at 8px on this machine, which is exactly the scrollbar.

   THE CLIP IS ON `main` AND BELONGS THERE RATHER THAN ON `body`, for two separate reasons. Overflow
   set on body PROPAGATES to the viewport, and once one axis is clip the other stops being
   `visible` — so the body version quietly makes a scroll container out of the thing every
   `position: sticky` on the page is measured against. And it has to be `clip` rather than `hidden`:
   `clip` is the one value that lets the other axis stay `visible`, which is the whole reason it
   exists. Scoped to on-violet pages so no other page's overflow behaviour moves. */
html body.on-violet main { overflow-x: clip; }
html body.on-violet .doc-top {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  /* Cancels .doc's own padding-top so the band starts flush under the header rather than floating
     below a strip of page background. Keep the two clamps in step. */
  margin-top: calc(-1 * clamp(26px, 5vw, 48px));
  margin-bottom: clamp(30px, 5vw, 52px);
  padding-top: clamp(30px, 5.5vw, 58px);
  padding-bottom: clamp(28px, 4.5vw, 46px);
  border-bottom: 0;
  /* FLAT, THEME-AWARE COBALT — the store's inverted manifesto band (sb2.css `.manifesto{background:
     var(--brand)}`), identical to #pricing in site.css: a single flat field, #2933ee in light and
     #171d45 in dark, white text. The 3-layer radial+linear gradient is gone (Alex 2026-11-26).
     Theme-aware via html[data-theme] so the band deepens in dark exactly like the store's. */
  background: #2933ee;                                   /* flat family cobalt — light ground */
  color: #ffffff;                                        /* 7.49:1 on #2933ee, 16.18:1 on #171d45 */
}
html[data-theme="dark"] body.on-violet .doc-top { background: #171d45; }   /* store dark manifesto ground */
html body.on-violet .doc-top h1 { color: #ffffff; }         /* 7.49:1 light */
html body.on-violet .doc-top .eyebrow { color: #ffffff; }   /* 7.49:1 light */
/* The lede and the breadcrumb trail are the band's only runs of ordinary body copy. White carries
   them on the flat cobalt (the store manifesto paints all its runs #fff); the light ground is the
   worst case and clears AA with headroom. */
html body.on-violet .doc-top .lede,
html body.on-violet .doc-top .crumbs,
html body.on-violet .doc-top .reviewed { color: #ffffff; }  /* 7.49:1 light */
html body.on-violet .doc-top .crumbs [aria-current="page"] { color: #ffffff; }
/* A link on the cobalt is white and underlined. Underlined because colour alone cannot carry it
   here: every value that reads as a link against this ground is also close enough to the body
   copy to fail as the only signal, and the lede on /shop leads to the methodology page. */
html body.on-violet .doc-top a { color: #ffffff; text-decoration: underline; text-underline-offset: 2px; }
html body.on-violet .doc-top a:hover { text-decoration-thickness: 2px; }
/* The hairline over "Last updated" is a --border token, invisible on the cobalt. */
html body.on-violet .doc-top .reviewed { border-top-color: rgba(255, 255, 255, 0.22); }
/* .rv-label HAS its own colour elsewhere — `.rv-label { color: var(--text) }` above — which is
   near-black in the light theme and would paint the "Last updated" label dark-on-dark on this band.
   Pin it to white so it reads in both themes; it is 700 weight against the date's 400, so the label
   still reads as a label. */
html body.on-violet .doc-top .rv-label { color: #ffffff; }   /* 7.49:1 light */

/* THE BUTTONS INVERT, and this is not decoration either. .btn-primary is --accent on --on-accent,
   which is a cobalt fill on a cobalt band — the one control the page exists to be pressed, painted
   the same hue as the thing behind it. White carries it instead (7.49:1 cobalt text on white), and
   the outline button becomes the translucent chip the toggle on the pricing band already uses. */
html body.on-violet .doc-top .btn-primary {
  background: #ffffff; border-color: #ffffff; color: #2933ee;   /* 7.49:1 on white */
}
html[data-theme="dark"] body.on-violet .doc-top .btn-primary { color: #171d45; }   /* 16.18:1 on white */
html body.on-violet .doc-top .btn-primary:hover { background: #e8ebff; border-color: #e8ebff; }
html body.on-violet .doc-top .btn-secondary {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.42); color: #ffffff; /* 6.48:1 on the lifted chip #3a43ef */
}
html body.on-violet .doc-top .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.62); color: #ffffff; /* 5.91:1 */
}

/* ==================================================================
   PHASE 7 — BODY-COMPONENT PARITY (www-only, copy-from-source)
   ------------------------------------------------------------------
   Lifts the store's cobalt component grammar (sb2.css / ds.css — see
   docs/audit-2026-11-20/family-grammar.md) onto the shared
   doc.css / components.css primitives so every generated www page
   inherits it at once. partners / app / admin never link this file, so
   the violet base is untouched. Each selector is `html`-prefixed to
   outrank doc.css / components.css by specificity (this file loads
   BEFORE them). SEO invariant: no DOM text changes — uppercase and
   numbering are CSS text-transform + pseudo-content only.

   Source corrections vs the old Corpus body:
   - Callouts / notes / TOC are HAIRLINE SURFACE PANELS, not tinted
     accent-soft boxes with a coloured left border.
   - Field labels and readout labels are UPPERCASE MONO muted.
   - Mode cards de-tint to white surface hairline.
   - Ordered step numbers are MONO indices, not filled circles.
   - Selects / fields are sharp (radius-sm), not 999px pills.
   Status badges (.tier-badge / .score-badge) STAY 999px pills (semantic).
   PerfectCart sort/view chips are sharp mono tabs (store .ds-tabs), not
   pills. Record section h2 are numbered .sec-head discs + tracked-caps
   .sec-title (Phase 9), NOT sentence-case. Every text/ground pair reuses
   the Phase-1 AA-measured tokens.
   ================================================================== */

/* Callouts → hairline surface panel (store .protocol-note / .compliance-panel).
   Body ink on --surface: 15.9:1 light / 16.2:1 dark. The `border` shorthand
   resets doc.css's 3px coloured border-left. Semantic heading hues survive
   (.not-this h2 keeps --warning; .callout inherits body ink). */
html .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
html .not-this {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
/* Legal "short version" box (disclaimer + record cards) → hairline surface
   panel; its h2/h4 keep the --warning hue (already uppercase letterspaced). */
html .not-licensed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
/* TOC → hairline surface panel (was surface-subtle tint at 12px). Its h2 is
   already uppercase letterspaced muted; the mono counter indices stay. */
html .toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Calculator mode cards → white surface hairline (store .card). doc.css's
   :has(input:checked) (0,2,2) and :hover (0,2,1) outrank this base (0,1,2),
   so the cobalt selected border and hover survive. */
html .modes label {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Field labels → uppercase mono muted (store .field label / .data-label).
   --text-muted on --surface: 5.28:1 light / 7.0:1 dark. The .opt helper keeps
   its own sentence-case rule (higher specificity, untouched). */
html .calc-grid label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
/* Calculator readout labels → uppercase mono muted (was sentence-case 600).
   Stays a borderless key/value readout, not a data grid. */
html .calc-out th {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Ordered step numbers → mono index, not a filled circle (store .sb-stepnum).
   --accent on --surface: 7.49:1 light / 5.69:1 dark. The evidence-ladder
   .ladder-step .step-n circles are a deliberate single-hue visualization and
   are NOT touched. */
html .steps li::before {
  width: auto; height: auto;
  display: block;
  background: transparent;
  border-radius: 0;
  color: var(--accent);
  font-size: 13px;
}

/* Native selects → sharp hairline field (store .field select / .ds-select),
   not a 999px pill. Fixes the hub-filter pill and its detached mobile chevron. */
html .select select { border-radius: var(--radius-sm); }
/* Search / filter inputs sharpen to the same field radius. */
html .prodbar input[type="search"],
html .prodbar select,
html .pc-search { border-radius: var(--radius-sm); }

/* Lab card radius aligns to the family card token (was a literal 10px). */
html .lab-card { border-radius: var(--radius-md); }

/* Remaining tinted BODY panels → white surface hairline (store .card /
   .product-card). Their labels are already uppercase letterspaced muted.
   Semantic badges (.tier-badge/.score-badge/.fda/.unverified/.vb-*), the
   single-hue evidence ladder (.step-n/.ladder-step), sunken table headers
   (.doc th/.cmp th), category data-viz (.cat-chips/.as-cards) and the
   PerfectCart commerce tints are NOT body boxes and stay as they are. */
html .starthere { background: var(--surface); border: 1px solid var(--border); }
html .rail-card { background: var(--surface); }
html .rh-item   { background: var(--surface); }
html .rel       { background: var(--surface); border: 1px solid var(--border-subtle); }
html .card-ugc  { background: var(--surface); }
/* Corbin "Ask the corpus" CTA panel (inline CSS in lib/corbin-cta.mjs) →
   white hairline panel; the cobalt slab button inside carries the accent. */
html .corbin-cta { background: var(--surface); border: 1px solid var(--border); }
/* Inline calculator warning → hairline surface panel with a semantic warning
   border. --warning on --surface: 5.02:1 light / 8.9:1 dark. */
html .calc-warn { background: var(--surface); border: 1px solid var(--warning); }

/* Nav CTA → 5px slab (store .btn), not a pill. This was the optional veto;
   Alex did not veto, so the source literal copy applies. */
html .nav-actions .btn { border-radius: 5px; }

/* ════════════════════════════════════════════════════════════════════════
   PHASE 8 — cards + PerfectCart (source: stratumbiologic.com, Alex 2026-11-20)
   Spec preserved in docs/audit-2026-11-20/source-store/. Store card grammar:
   square corners, flat 1px hairline (no shadow), bracketed cobalt mono ID,
   gray mono uppercase category tag, hairline + mono metadata + cobalt arrow.
   Article-only chrome lives in build-articles.mjs ART_CSS (page-scoped); this
   block covers the shared record/related/rail cards + the PerfectCart widget.
   All colours reuse Phase-7-measured www pairs: accent/surface 7.49:1 light,
   muted/surface 5.28:1 light, dark accent/surface ≥5.27:1. No new hues.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Record section cards (.card) → square flat hairline panels. Semantic
   left-borders (.card-good/.card-warn/.card-gap) and the dotted reported band
   (.circ-item) are KEPT — they encode verdict meaning, not decoration. ── */
html .card { border-radius: 0; box-shadow: none; }
html .rel { border-radius: 0; box-shadow: none; }
html .rail-card { border-radius: 0; box-shadow: none; }
html .rh-item { border-radius: 0; }

/* ── PerfectCart basket optimiser (/shop/perfectcart). DOM-rendered widget;
   CSS-only restyle — perfectcart-client.js logic + PC_BODY markup untouched,
   so commerce TAP stays green. www-only sheet → partner preview keeps violet.
   Store grammar: mono uppercase micro-labels, hairline rank tabs w/ cobalt
   active, sharp hairline fields, square vendor cards w/ bracketed mono index,
   square checkout sheet w/ thick ink top bar + cobalt slab. ── */
html .pc-railhead,
html .pc-flabel {
  font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
}
html .pc-sortbar { gap: 0; border-bottom: 1px solid var(--border); }
html .pc-sortbar [role="tab"],
html .pc-sortbar button {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; padding: 10px 14px;
}
html .pc-sortbar [role="tab"][aria-selected="true"],
html .pc-sortbar button[aria-selected="true"],
html .pc-sortbar button.is-active {
  color: var(--accent); border-bottom-color: var(--accent);
}
html .pc-search,
html .pc-select {
  font-family: var(--font-mono); font-size: 13px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
html .pc-search::placeholder { color: var(--text-subtle); }
html .pc-search:focus,
html .pc-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
/* Vendor result card → square hairline panel; position index becomes a
   bracketed cobalt mono tag rather than a filled badge. */
html .pc-card {
  border: 1px solid var(--border); border-radius: 0; background: var(--surface);
  box-shadow: none; margin-top: 0;
}
html .pc-card + .pc-card { border-top: 0; }
html .pc-pos { width: 58px; }
/* Runners-up stay muted; .pc-first .pc-num (0,2,0) keeps the winner cobalt, so
   the column still reads as one answer plus its runners-up (base semantics). */
html .pc-num {
  font-family: var(--font-mono); font-weight: 700; color: var(--text-muted);
  background: transparent; border: 0; border-radius: 0; white-space: nowrap;
}
html .pc-num::before { content: "[ "; }
html .pc-num::after { content: " ]"; }
/* "Best match" rank chip -> cobalt mono tag, not a filled green badge: the store
   marks the winner with cobalt, no decorative fill. accent/surface 7.49:1. */
html .pc-badge {
  background: transparent; color: var(--accent); border: 0; border-radius: 0;
  font-family: var(--font-mono); font-weight: 700; font-size: 10px; letter-spacing: .06em;
}
html .pc-count { font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
/* Checkout sheet → square off-white panel, thick ink top bar, cobalt slab. */
html .pc-sheet {
  border-radius: 0; background: var(--surface);
  border: 1px solid var(--border); border-top: 3px solid var(--text);
  box-shadow: none;
}
html .pc-sheet .btn-primary,
html .pc-sheetexit .btn-primary { border-radius: 5px; }


/* ════════════════════════════════════════════════════════════════════════
   PHASE 9 — record pages + PerfectCart SELECT ITEMS rail (Alex 2026-11-24)
   Source: live stratumbiologic.com product-*.html PDP + assets/css/sb2.css
   (.sec-head/.num/.sec-title/.meta-row/.specband/.ds-tabs). Deepens brand
   fidelity on the peptide record + the compound-picker rail. CSS-only:
   counters + pseudo-content keep DOM text crawlable (SEO invariant);
   perfectcart-client.js untouched. www-only → partners/app/admin keep violet.
   AA reuses Phase-1 tokens: muted/surface 5.28:1 light · 7.69:1 dark;
   muted/sunken 4.54:1 light; on-accent 7.49:1 light · 5.69:1 dark.
   ════════════════════════════════════════════════════════════════════════ */

/* ── P9-A · Record section heads → store .sec-head: a 22px cobalt number disc
   + tracked-caps .sec-title. CSS counter on each id'd top-level section card
   head (the TOC targets); the .tag-count badge stays. h2 is already
   display:flex (doc.css), so the ::before disc slots in as the first flex
   item. No DOM/prose change. Disc numeral --on-accent/--accent 7.49:1 light ·
   5.69:1 dark. The no-id prose-note card keeps the caps grammar, no disc. ── */
html .rec-main { counter-reset: recsec; }
html .rec-main > section.card > h2 {
  align-items: center; gap: 11px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  margin-bottom: 16px;
}
html .rec-main > section.card[id] > h2 { counter-increment: recsec; }
html .rec-main > section.card[id] > h2::before {
  content: counter(recsec);
  flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-sans, Inter, sans-serif);
  font-size: 11px; font-weight: 700; line-height: 22px;
  text-align: center; letter-spacing: 0;
}

/* ── P9-B · Record table headers → store sunken mono band (--surface-sunken,
   #eeeeeb light). Covers dosing (.dose-draw), reconstitution (.tbl-scroll) and
   price (.prices) tables. muted/sunken 4.54:1 light / ≥7:1 dark. ── */
html .rec-main th {
  background: var(--surface-sunken);
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: .05em;
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
}

/* ── P9-C · Record display h1 → store PDP weight/size (800 / ~34px). Keeps the
   doc.css uppercase transform (PC convention); BPC-157 reads identically. ── */
html .rec-top h1 {
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 34px);
  letter-spacing: -.02em;
}

/* ── P9-D · Hero AT-A-GLANCE (.glance) + fact lists → store .meta-row grammar:
   sharp hairline panel, hairline-divided rows, mono micro-caps labels. No new
   content — restyles the existing meta block (SEO invariant). ── */
html .glance { border-radius: 0; gap: 0; padding: 0; }
html .glance-row { padding: 11px 16px; border-bottom: 1px solid var(--border-subtle); }
html .glance-row:last-child { border-bottom: 0; }
html .glance-row b { font-family: var(--font-mono); letter-spacing: .08em; font-weight: 700; }
html .rail-facts dt,
html .pk-facts dt {
  font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: .06em; font-size: 10.5px; font-weight: 700;
  color: var(--text-muted);
}

/* ── P9-E · Identity → store document spec. The 3D molecule plate is already
   cobalt (--accent gradient, re-tokened Phase 5); sharpen its radius + mono the
   PubChem chips. The dl.rels spec becomes one hairline-bordered table with row
   dividers + mono caps labels (store .specband). Plate hero kept. ── */
html .mol-plate { border-radius: var(--radius-sm); }
html .mol-chip { font-family: var(--font-mono); border-radius: var(--radius-sm); }
html #identity .rels { gap: 0; border: 1px solid var(--border); }
html #identity .rel {
  border: 0; border-bottom: 1px solid var(--border-subtle);
  border-radius: 0; background: var(--surface);
}
html #identity .rel:last-child { border-bottom: 0; }
html #identity .rel dt { font-family: var(--font-mono); letter-spacing: .08em; font-weight: 700; }

/* ── P9-F · PerfectCart chrome + SELECT ITEMS compound-picker rail.
   perfectcart-client.js frozen; every hook is a plain CSS class. Category color
   keys (--cg) + winner semantics + green winner total KEPT. ── */
/* Shell → flat hairline panel (de-shadow, square). Rail flattens to surface. */
html .pc-shell { box-shadow: none; border-radius: 0; border: 1px solid var(--border); }
html .pc-rail { background: var(--surface); border-right: 1px solid var(--border); }
/* Railhead AA fix: outrank base .pc-rail .pc-railhead (0,2,0) with (0,2,1).
   muted/surface 5.28:1 light / 7.69:1 dark (was --text-subtle #9b9ba3 ~2.5:1). */
html .pc-rail .pc-railhead {
  color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em;
}
html .pc-search::placeholder { color: var(--text-muted); }
html .pc-search, html .pc-select { border-color: var(--border); }
/* Compound rows → contiguous store hairline stack; thin 3px category key kept. */
html .pc-picks { gap: 0; }
html .pc-picks li {
  border: 1px solid var(--border); border-left: 3px solid var(--cg, var(--border));
  border-radius: 0; margin-bottom: -1px; background: var(--surface);
}
html .pc-picks li.is-picked {
  border-color: var(--accent-soft-border);
  border-left-color: var(--cg, var(--accent)); background: var(--accent-soft);
}
html .pc-n {
  font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: .06em; font-size: 10px; color: var(--text-muted);
}
/* Size select + qty box + stepper → mono white sharp fields; custom ink chevron
   on the select (drop the gray --bg fill + native OS arrow). */
html .pc-size, html .pc-qty, html .pc-stepbtn {
  font-family: var(--font-mono); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text);
}
html .pc-size {
  appearance: none; -webkit-appearance: none; padding-right: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b6b73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; background-size: 10px 6px;
}
html .pc-stepbtn:hover { border-color: var(--accent); color: var(--accent); }
/* Disclosures (Filter & sort / How you would pay) → sharp panel, mono caps
   summary, cobalt chevron replacing the native black triangle. */
html .pc-filters { border-radius: 0; }
html .pc-filters > summary {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  list-style: none; position: relative; padding-right: 30px;
}
html .pc-filters > summary::-webkit-details-marker { display: none; }
html .pc-filters > summary::after {
  content: ""; position: absolute; right: 13px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s ease;
}
html .pc-filters[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
/* Cards/List view toggle → store .ds-tabs: sharp mono segments, cobalt active
   underline (de-pill the 999px .pc-chip-sm). Sortbar rank tabs already sharp. */
html .pc-viewtoggle .pc-chip {
  background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
}
html .pc-viewtoggle .pc-chip.is-on {
  background: var(--surface); color: var(--accent);
  border-color: var(--border); border-bottom: 2px solid var(--accent);
}
/* Basket summary → square (keeps the cobalt-soft selected semantic). */
html .pc-basket:not(:empty) { border-radius: 0; }

/* ════════════════════════════════════════════════════════════════════════
   PHASE 10 — nav unification (grammar + ALIGNMENT) + catalog cards → store
   .pcard + display grammar. Alex 2026-11-25, D1–D4 recommended, D5 one pass.
   Append-only; every selector html-prefixed so it outranks doc.css / site.css
   / the homepage inline <style>, all of which load AFTER this file. SEO: no
   DOM text / IA / href change — CSS transform / pseudo-content only. Category
   color keys (--cg) + semantic evidence pills KEPT. partners/app/admin violet
   hosts untouched (this file is www-only). Canonical: stratumbiologic.com sb2.css.
   ════════════════════════════════════════════════════════════════════════ */

/* ── P10-A · NAV grammar → store .mainnav. Sans links (Inter 600 / 11.5px /
   .12em uppercase), muted; active = cobalt + 2px underline; 1px hairline bottom
   rule (was 2px heavy ink); 66px height (was 76). The Browse <details> summary
   and the quiet auth links match the link grammar. ── */
html .site-head, html .nav { border-bottom: 1px solid var(--border); }
html .head-in, html .nav .wrap { height: 66px; min-height: 66px; }
html .nav-links a, html .navdrop > summary,
html .nav-signin, html .nav-pricing {
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
}
html .nav-links a:hover, html .navdrop > summary:hover,
html .nav-signin:hover, html .nav-pricing:hover { color: var(--text); }
html .nav-links a[aria-current="page"], html .navdrop.is-current > summary {
  color: var(--accent-text, var(--accent));
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 7px;
}
/* Browse dropdown panel links stay sans body grammar (not muted nav). */
html .nav-links .navdrop-panel a {
  font-family: var(--font-sans); font-size: 12px; letter-spacing: .04em;
  text-transform: none; color: var(--text);
}
/* Refined lockup → store triangle-tile + spaced wordmark (PC delta kept). */
html .brand-mark { width: 28px; height: 28px; }
html .brand-word .bw-1 { font-size: 13px; letter-spacing: .2em; }
html .brand-word .bw-2 { font-size: 7px; letter-spacing: .42em; }

/* ── P10-B · NAV ALIGNMENT unification (the D6 defect). Home used a 1160px
   .wrap + .nav-actions{margin-left:auto} with a content-sized link group; docs
   used a 1440px .wrap + .nav-links{flex:1} left-packed. Result: brand inset
   169 vs 46, links-center −172 vs −102, actions right 1257 vs 1379. Fix = ONE
   centered 1320px container (store .topbar .wrap) + centered links (flex:1
   justify-center) + actions right, identical on home and every doc page. ── */
html .nav .wrap, html .site-head .head-in {
  max-width: 1320px; margin-left: auto; margin-right: auto;
  padding-left: 32px; padding-right: 32px;
}
html .nav-links {
  flex: 1 1 0%; justify-content: center; margin-left: 0;
  gap: clamp(14px, 2vw, 30px);
}
html .nav-actions { margin-left: 0; flex: none; }

/* ── P10-C · CATALOG HUB CARDS → store .pcard. De-tint the category gradient
   wash to a flat white surface; keep the thin 3px category key (hue = semantic
   data-viz key, KEPT) + 1px hairline; radius 0 (Phase 13 blocky); 18px padding; 12px
   internal gap; 20px grid gutter; NO hover-lift (border-color only). Name
   700/18px; mono fact values; hairline-top fact band. Evidence badges stay
   semantic 999px pills (untouched). ── */
html .as-cards .ptable tbody { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
html .as-cards .ptable tr {
  background: var(--surface);
  border: 1px solid var(--border); border-top: 3px solid var(--cg, var(--border-strong));
  border-radius: 0; padding: 18px; gap: 12px;
  box-shadow: none; transition: border-color .13s ease;
}
html .as-cards .ptable tr:hover {
  border-color: var(--border-strong); border-top-color: var(--cg, var(--border-strong));
  box-shadow: none; transform: none;
}
html[data-theme="dark"] .as-cards .ptable tr {
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
html[data-theme="dark"] .as-cards .ptable tr:hover {
  background: var(--surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
/* Name → 700/18px (Phase 13 blocky); link cobalt on hover. */
html .as-cards .ptable th[scope="row"] { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
html .as-cards .ptable th[scope="row"] a:hover { color: var(--accent-text, var(--accent)); }
/* Category chip → de-pill: sharp mono label, thin category key kept (hue). */
html .as-cards .cat-chips li {
  border-radius: 0; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; background: var(--surface);
}
html .as-cards .cat-chips li[class*="cg-"]:not(.cg-none) {
  background: color-mix(in srgb, var(--cg) 7%, var(--surface));
  border-color: color-mix(in srgb, var(--cg) 40%, transparent);
  color: color-mix(in srgb, var(--cg) 62%, var(--text));
}
/* Fact cells → mono values + hairline-top band (store .foot grammar). */
html .as-cards .ptable td { font-size: 12.5px; }
html .as-cards .ptable td.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
html .as-cards .ptable td::before {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .08em; color: var(--text-muted);
}
/* The first fact cell after the summary opens the hairline foot band. */
html .as-cards .ptable td[data-label="Strongest rung"] {
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto;
}
/* Summary → store .sb muted 12px/1.5. */
html .as-cards .ptable .cell-summary { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }

/* ── P10-D · MOLECULE MEDIA PLATE → store .pc-media. EVERY card gets the same
   sunken plate so the grid never goes ragged when a record has no molecule
   render (only ~25/40 records ship a thumbnail). The name <a> becomes a column:
   a fixed 168px sunken media plate on top (molecule centered inside, or a quiet
   family hexagon glyph when absent), the compound name below as the card title.
   Pure CSS on the existing th/a/.row-thumb — no markup change, no DOM text added
   (the glyph is a decorative mask) → SEO no-diff by construction. ── */
html .as-cards .ptable th[scope="row"] { display: block; padding: 0; }
html .as-cards .ptable th[scope="row"] a {
  display: flex; flex-direction: column; gap: 12px;
  position: relative; text-decoration: none;
}
/* The media plate: a fixed-height sunken box at the top of the link (normal
   flow, so the name below it grows the cell naturally — no overlap). */
html .as-cards .ptable th[scope="row"] a::before {
  content: ""; display: block; height: 168px; flex: none;
  align-self: stretch; width: 100%; box-sizing: border-box;
  background: var(--surface-sunken); border: 1px solid var(--border);
  border-radius: 0;
}
/* Molecule centered INSIDE the plate area (absolute over the ::before box). */
html .as-cards .row-thumb {
  position: absolute; top: 16px; left: 0; right: 0; margin: 0 auto;
  width: auto; height: 136px; max-width: 86%; object-fit: contain;
  display: block; background: transparent; border: 0; border-radius: 0; padding: 0;
}
/* Records with no molecule: the family DELTA mark centered in the plate —
   canonical brand-kit SVGs byte-copied from StratumBiologicStore/brand-kit/logos/
   (cobalt #2933ee light, #7180ff dark), never an empty void. Decorative, no DOM text. */
html .as-cards .ptable th[scope="row"]:not(:has(.row-thumb)) a::after {
  content: ""; position: absolute; top: 32px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 104px;
  background: url("../brand/delta-outline-cobalt.svg") center / contain no-repeat;
}
html[data-theme="dark"] .as-cards .ptable th[scope="row"]:not(:has(.row-thumb)) a::after {
  background-image: url("../brand/delta-outline-cobalt-dark.svg");
}

/* ═══ PHASE 11 — CORBIN, IN THE FAMILY GRAMMAR (2026-11-25) ═══
   Floating launcher = the store's variant-B cobalt slab (sb2.css §15): radius 0, no shadow,
   glyph + label + arrow, hover brand-deep + 2px lift. /chat/ and the inline CTA aside go blocky
   like the family contact forms: hairline line-strong fields, 5px corners, 2px cobalt focus
   outline, mono micro-labels, slab send. Semantic evidence pills (.cp-rung) stay 999px per the
   keep-list. DOM text untouched; the html prefix beats the page-scoped inline CSS (CHAT_CSS /
   CORBIN_CTA_CSS) that loads after this file. */

/* 11-A. floating launcher (www only; layout.mjs emits it after the footer) */
html .corbin-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: flex; align-items: center; gap: 12px; border: 0; border-radius: 0;
  background: var(--accent); color: var(--on-accent); padding: 14px 18px;
  font: 600 13px/1 var(--font-sans); letter-spacing: .02em; text-decoration: none;
  box-shadow: none; transition: background .12s ease, transform .12s ease; }
html .corbin-launcher:hover, html .corbin-launcher:focus-visible {
  background: var(--accent-hover); color: var(--on-accent); transform: translateY(-2px); }
html .corbin-launcher:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html .corbin-launcher .corbin-glyph { display: grid; place-items: center; width: auto; height: auto;
  background: none; color: inherit; border-radius: 0; }
html .corbin-launcher svg { display: block; }
html .corbin-launcher .corbin-lb { white-space: nowrap; }
body.chat-page .corbin-launcher { display: none; }
@media (max-width: 620px) { html .corbin-launcher { right: 14px; bottom: 14px; padding: 12px 14px; gap: 10px; } }

/* 11-B. /chat/ — blocky instrument */
html .chat-shell { border-radius: 0; box-shadow: none; }
html .cp-head { background: var(--surface-sunken); }
html .cp-head h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; }
html .cp-pill { border-radius: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }
html .cp-account { border-radius: 6px; }
html .cp-label { font-family: var(--font-mono); font-weight: 600; letter-spacing: .12em; }
html .cp-chip { border-radius: 6px; }
html .cp-msg.user .cp-bubble { border-radius: 0; }
html .cp-msg.bot .cp-av { border-radius: 6px; }
html .cp-cta { border-radius: 0; }
html .cp-box { border-radius: 5px; border-color: var(--border-strong); box-shadow: none; }
html .cp-box:focus-within { border-color: transparent; outline: 2px solid var(--accent); box-shadow: none; }
html .cp-send { border-radius: 0; width: 40px; height: 40px; }
html .cp-fine { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
html .cp-railhead { background: var(--surface-sunken); }
html .cp-railhead h2 { font-family: var(--font-mono); font-weight: 600; letter-spacing: .12em;
  color: var(--text-muted); } /* subtle-on-sunken would fail 4.5; muted passes 4.54 */
html .cp-railhead .n { border-radius: 6px; font-family: var(--font-mono); }
html .cp-railfoot { font-family: var(--font-mono); }
html .cp-widget { border-radius: 0; box-shadow: none; }
html .cp-w-tag { font-family: var(--font-mono); font-weight: 600; letter-spacing: .08em; }
html .cp-count { border-radius: 6px; font-family: var(--font-mono); }
html .cp-basket span { border-radius: 6px; font-family: var(--font-mono); }
html .cp-thumb { border-radius: 6px; }
html .cp-railempty { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
/* .cp-rung (evidence rung) and .cp-w-hd background intentionally untouched — semantic 999px
   pill + category colour keys, keep-list. */

/* 11-C. inline CTA aside — sunken band, heavy top rule, mono eyebrow, square bullets */
html .corbin-cta { border-radius: 0; background: var(--surface-sunken);
  border: 1px solid var(--border); border-top: 3px solid var(--text); }
html .cta-eyebrow { font-family: var(--font-mono); font-weight: 600; letter-spacing: .12em;
  color: var(--accent-text); }
html .cta-ask { font-style: normal; }
html .cta-points li::before { border-radius: 0; width: 6px; height: 6px; }
html .cta-fine { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }
/* The compound name below the plate → store .nm 700/16px title (normal flow). */
html .as-cards .ptable th[scope="row"] span {
  font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--text);
}
html .as-cards .ptable th[scope="row"] a:hover span { color: var(--accent-text, var(--accent)); }

/* ── P10-E · DISPLAY GRAMMAR → store. Heavy grotesque heads with terminal
   periods are the store signature; PC keeps its content (no text change) but
   adopts the weight/scale/tracking + thick black section rule + mono bracketed
   eyebrow. Doc h1 → store .display weight (900 / clamp to ~64px / −.025em).
   Section heads keep the P9 number disc; add the thick rule under the head. ── */
html .doc h1 { font-weight: 900; letter-spacing: -.025em; font-size: clamp(30px, 4.8vw, 52px); }
html .eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text, var(--accent));
}
/* Thick ~3px ink rule under section heads (store .sec-head), above the hairline
   table grids. Applies to record section cards (P9 discs already present). */
html section.card[id] > h2 { border-bottom: 3px solid var(--text); padding-bottom: 10px; }

/* ── P10-F · SPACING / BUTTONS / STAT STRIP → store rhythm. Slab buttons
   (700 / 11.5px / .1em uppercase, radius-sm, no hover-lift); statbar → store
   hairline-grid stat cells (heavy numeral + mono caption). ── */
html .btn { border-radius: var(--radius-sm); font-weight: 700; letter-spacing: .1em; }
html .btn:hover { transform: none; }
html .nav-actions .btn { border-radius: var(--radius-sm); }
html .statbar { gap: 0; }
html .statbar > div { border-left: 1px solid var(--border); padding: 0 22px; }
html .statbar > div:first-child { border-left: none; padding-left: 0; }
html .statbar b { font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
html .statbar span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

/* ═══ PHASE 12 — CORBIN DRAWER (2026-11-26) ═══
   /chat is retired; the free public client (design/corbin-drawer.js) now lives in a right-hand
   drawer on every www page, in the store's family grammar (ds/index.css .corbin-drawer: scrim
   z60, panel z70, min(480px,100%), translateX 102%→0 over 240ms). Single column — the page's
   resizable rail is gone; widgets render inline in the thread. The base .cp-* internals below
   are the shipped CHAT_CSS structure (bare selectors, specificity 0,1,0) so the P11 `html .cp-*`
   blocky skin (0,1,1) above still wins for radius/font; drawer-only widths are scoped (0,2,0).
   DOM text/IA untouched; the nav keeps its /chat anchor (data-corbin-open intercepts; JS-off
   falls through the 301). */

/* 12-A. frame: scrim + sliding panel + scroll lock + launcher hide */
.corbin-scrim { position: fixed; z-index: 60; inset: 0; border: 0; padding: 0;
  background: rgba(10, 11, 16, .32); backdrop-filter: blur(2px); cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 0s linear 240ms; }
.corbin-scrim.is-open { opacity: 1; visibility: visible; transition: opacity 240ms ease; }
.corbin-drawer { display: flex; flex-direction: column; position: fixed; z-index: 70;
  top: 0; right: 0; bottom: 0; width: min(480px, 100%); min-height: 0;
  transform: translateX(102%); visibility: hidden;
  border-left: 1px solid var(--border); background: var(--surface);
  box-shadow: -24px 0 70px rgba(10, 11, 16, .16);
  transition: transform 240ms ease, visibility 0s linear 240ms; }
.corbin-drawer.is-open { transform: translateX(0); visibility: visible; transition: transform 240ms ease; }
body.corbin-open { overflow: hidden; }
body.corbin-open .corbin-launcher { opacity: 0; pointer-events: none; transform: translateY(8px); }
html .corbin-launcher { cursor: pointer; }
/* header mark + close button (the shell's own .cp-head carries them) */
.corbin-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto;
  border: 1px solid var(--accent-soft-border); border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-text, var(--accent)); }
.corbin-mark svg { display: block; }
.cd-close { flex: 0 0 auto; width: 34px; height: 34px; margin-left: 4px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 5px; background: var(--surface);
  color: var(--text-muted); cursor: pointer; transition: color .12s, border-color .12s; }
.cd-close:hover { color: var(--text); border-color: var(--border-strong); }
.cd-close svg { display: block; width: 16px; height: 16px; }

/* 12-B. base chat internals (CHAT_CSS structure, single column; rail/split/page rules dropped) */
.cp { min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.cp-chat { flex: 1 1 auto; }
.cp-head { flex: 0 0 auto; padding: 13px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 11px; }
.cp-head h2 { font-size: var(--text-md, 15px); font-weight: 700; margin: 0; letter-spacing: -.01em; }
.cp-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-xs, 12px);
  font-weight: 600; color: var(--text-muted); background: var(--accent-soft); border: 1px solid var(--accent-soft-border);
  padding: 4px 11px; border-radius: 999px; }
.cp-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cp-pill.spent { color: var(--warning-text); background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.cp-pill.spent .dot { background: var(--warning); }
.cp-account { display: none; align-items: center; gap: 10px; margin: 0; padding: 9px 18px;
  border-bottom: 1px solid var(--accent-soft-border); background: var(--accent-soft);
  font-size: var(--text-sm, 13px); color: var(--text-on-soft); }
body.has-account .cp-account { display: flex; }
.cp-account a { margin-left: auto; flex: 0 0 auto; font-weight: 600; color: var(--accent-text); text-decoration: none; white-space: nowrap; }
.cp-account a:hover { text-decoration: underline; }
.cp-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px; }
.cp-groups { display: flex; flex-direction: column; gap: 16px; }
.cp-group { display: flex; flex-direction: column; gap: 8px; }
.cp-label { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--eyebrow); }
.cp-chips, .cp-followups { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chip { border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: var(--text-sm, 13px);
  font-weight: 500; padding: 8px 14px; border-radius: 999px; cursor: pointer; text-align: left;
  transition: border-color .12s, background .12s, transform .06s; }
.cp-chip:hover { border-color: var(--accent-soft-border); background: var(--accent-soft); color: var(--text-on-soft); }
.cp-chip:active { transform: translateY(1px); }
.cp-thread { display: flex; flex-direction: column; gap: 20px; }
.cp-msg { display: flex; gap: 12px; }
.cp-msg.user { justify-content: flex-end; }
.cp-msg.user .cp-bubble { background: var(--accent); color: var(--on-accent); border-radius: var(--radius-lg, 16px);
  padding: 10px 16px; font-size: var(--text-md, 15px); max-width: 85%; line-height: 1.35; }
.cp-msg.bot .cp-av { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; }
.cp-msg.bot .cp-bubble { flex: 1 1 auto; min-width: 0; font-size: var(--text-md, 15px); line-height: 1.6; }
.cp-msg.bot .cp-bubble p { margin: 0 0 10px; }
.cp-msg.bot .cp-bubble p:last-child { margin-bottom: 0; }
.cp-msg.bot .cp-bubble ul { list-style: disc; padding-left: 1.3em; margin: 0 0 10px; }
.cp-msg.bot .cp-bubble ol { list-style: decimal; padding-left: 1.3em; margin: 0 0 10px; }
.cp-msg.bot .cp-bubble li { margin: 2px 0; }
.cp-msg.bot .cp-bubble h2 { font-size: var(--text-md, 15px); font-weight: 700; margin: 14px 0 6px; }
.cp-msg.bot .cp-bubble h3 { font-size: var(--text-base, 14px); font-weight: 700; margin: 12px 0 4px; }
.cp-msg.bot .cp-bubble table { border-collapse: collapse; width: 100%; font-size: var(--text-sm, 13px); margin: 0 0 10px; }
.cp-msg.bot .cp-bubble th, .cp-msg.bot .cp-bubble td { border: 1px solid var(--border-subtle); padding: 5px 8px; text-align: left; }
.cp-msg.bot .cp-bubble th { background: var(--surface-subtle); }
.cp-thought { font-size: var(--text-xs, 12px); color: var(--text-subtle); font-style: italic; }
.cp-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 14px;
  border-radius: var(--radius-sm, 8px); background: var(--accent); color: var(--on-accent);
  font-size: var(--text-sm, 13px); font-weight: 600; text-decoration: none; }
.cp-cta:hover { background: var(--accent-hover); }
.cp-input-area { flex: 0 0 auto; padding: 12px 18px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.cp-input-wrap { margin: 0; }
.cp-box-row { display: flex; align-items: flex-end; gap: 8px; }
.cp-box-row .cp-box { flex: 1 1 auto; min-width: 0; }
.cp-box { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: var(--radius-lg, 16px); padding: 8px; box-shadow: var(--shadow-xs); transition: border-color .12s, box-shadow .12s; }
.cp-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.cp-input { flex: 1 1 auto; border: 0; outline: 0; resize: none; background: transparent; color: var(--text);
  font-family: inherit; font-size: var(--text-md, 15px); line-height: 1.5; padding: 9px 8px; max-height: 160px; }
.cp-input::placeholder { color: var(--text-subtle); }
.cp-send { flex: 0 0 auto; width: 38px; height: 38px; border-radius: var(--radius-md, 12px); border: 0;
  background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; }
.cp-send:hover { background: var(--accent-hover); }
.cp-send:disabled { opacity: .4; cursor: not-allowed; }
.cp-send svg { width: 18px; height: 18px; }
.cp-newchat { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-md, 12px); color: var(--text-muted); display: grid; place-items: center; cursor: pointer; }
.cp-newchat:hover { color: var(--text); border-color: var(--border-strong); }
.cp-newchat svg { width: 17px; height: 17px; }
.cp-fine { margin: 10px 0 0; font-size: var(--text-xs, 12px); color: var(--text-subtle); text-align: center; }
.cp-upsell-slot { margin: 0; }
.cp-upsell { margin-top: 12px; border: 1px solid var(--accent-soft-border); background: var(--accent-soft); border-radius: var(--radius-lg, 16px); padding: 16px 18px; text-align: center; }
.cp-upsell h3 { margin: 0 0 4px; font-size: var(--text-lg, 17px); font-weight: 700; color: var(--text-on-soft); }
.cp-upsell p { margin: 0 auto 12px; max-width: none; font-size: var(--text-sm, 13px); color: var(--text-muted); line-height: 1.5; }

/* 12-C. inline widgets (the old rail's cards, now in the thread). flex:0 0 auto so a card never
   squashes to its header in the flex column. Category colour keys + 999px rung kept (keep-list). */
.cp-widget { flex: 0 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md, 12px); overflow: hidden; box-shadow: var(--shadow-xs); margin-bottom: 14px; }
.cp-widget:last-child { margin-bottom: 0; }
.cp-w-hd { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-subtle); }
.cp-w-tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); }
.cp-w-tag.compound { color: var(--series-1); }
.cp-w-tag.evidence { color: var(--series-3); }
.cp-w-tag.calc { color: var(--series-2); }
.cp-w-tag.vendor { color: var(--series-4); }
.cp-w-bd { padding: 13px 14px; }
.cp-w-bd h3 { font-size: var(--text-md, 15px); font-weight: 700; margin: 0 0 2px; letter-spacing: -.01em; }
.cp-w-bd h3 a { color: var(--text); text-decoration: none; }
.cp-w-bd h3 a:hover { color: var(--accent-text); text-decoration: underline; }
.cp-w-sub { margin: 0 0 9px; font-size: var(--text-xs, 12px); color: var(--text-muted); line-height: 1.5; }
.cp-rung { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--text-on-soft); border: 1px solid var(--accent-soft-border); white-space: nowrap; }
.cp-rung.none { background: transparent; border-style: dashed; border-color: var(--border-strong); color: var(--text-subtle); }
.cp-thumb { float: left; width: 52px; height: 52px; margin: 2px 10px 4px 0; border-radius: 8px; overflow: hidden; background: var(--surface-sunken); }
.cp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cp-sum { font-size: var(--text-sm, 13px); color: var(--text-muted); line-height: 1.5; margin: 0 0 9px; }
.cp-w-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--text-xs, 12px); color: var(--text-subtle); margin: 0; }
.cp-cites b { color: var(--text); }
.cp-counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.cp-count { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-sunken); color: var(--text-muted); }
.cp-count.gap { border: 1px dashed var(--border-strong); background: transparent; }
.cp-evtable { width: 100%; border-collapse: collapse; font-size: var(--text-xs, 12px); }
.cp-evtable, .cp-evtable tbody, .cp-evtable tr, .cp-evtable th, .cp-evtable td { display: block; }
.cp-evtable thead { display: none; }
.cp-evtable tbody tr { border-top: 1px solid var(--border-subtle); padding: 7px 0; }
.cp-evtable tbody tr:first-child { border-top: 0; }
.cp-evtable tbody th { font-weight: 600; color: var(--text); padding: 0 0 3px; white-space: normal; text-transform: none; letter-spacing: 0; background: transparent; overflow-wrap: anywhere; }
.cp-evtable tbody td { padding: 0 0 3px; }
.cp-evtable tbody td::before { content: attr(data-label); display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 2px; }
.cp-evtable tbody th a { color: var(--accent-text); text-decoration: none; }
.cp-evtable tbody th a:hover { text-decoration: underline; }
.cp-evscroll { display: block; }
.cp-evpop { display: block; font-size: 11px; font-weight: 400; color: var(--text-subtle); margin-top: 2px; }
.cp-evnote { font-size: 11px; color: var(--text-subtle); line-height: 1.45; }
.cp-ev-abs summary { font-size: var(--text-xs, 12px); color: var(--text-muted); cursor: pointer; margin-top: 8px; }
.cp-calc-out { font-size: var(--text-xl, 20px); font-weight: 800; color: var(--accent-text); letter-spacing: -.02em; margin: 2px 0 8px; }
.cp-work { font-size: 11px; color: var(--text-subtle); line-height: 1.65; white-space: pre-line; margin: 9px 0 0; }
.cp-warn { font-size: var(--text-xs, 12px); color: var(--warning-text); background: var(--warning-soft); border-radius: 6px; padding: 6px 9px; margin: 8px 0 0; line-height: 1.45; }
.cp-basket { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; }
.cp-basket span { font-size: 11px; font-weight: 600; background: var(--surface-sunken); color: var(--text-muted); padding: 2px 8px; border-radius: 999px; }
.cp-vrow { display: flex; align-items: center; gap: 9px; padding: 8px 0 2px; border-top: 1px solid var(--border-subtle); }
.cp-vrow.first { border-top: 0; }
.cp-vrank { font-size: 11px; font-weight: 800; color: var(--text-subtle); width: 14px; flex: 0 0 auto; }
.cp-vlogo { width: 22px; height: 22px; border-radius: 5px; object-fit: contain; background: var(--surface-sunken); flex: 0 0 auto; }
.cp-vname { flex: 1 1 auto; font-size: var(--text-sm, 13px); font-weight: 600; min-width: 0; }
.cp-vname a { color: var(--text); text-decoration: none; }
.cp-vname a:hover { color: var(--accent-text); text-decoration: underline; }
.cp-vtotal { font-size: var(--text-sm, 13px); font-weight: 700; white-space: nowrap; }
.cp-vsub { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--text-subtle); margin: 2px 0 6px 23px; }
.cp-vfoot { font-size: 11px; color: var(--text-subtle); line-height: 1.55; margin: 9px 0 0; }
.cp-vfoot a, .cp-w-bd a { color: var(--accent-text); }
.cp-meta-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.cp-copy { width: 28px; height: 28px; border: 1px solid var(--border); background: var(--surface); border-radius: 7px; color: var(--text-muted); display: grid; place-items: center; cursor: pointer; }
.cp-copy:hover { color: var(--text); border-color: var(--border-strong); }
.cp-copy svg { width: 14px; height: 14px; }
.cp-src { font-size: var(--text-xs, 12px); font-weight: 600; color: var(--accent-text); border: 1px solid var(--accent-soft-border); background: var(--accent-soft); padding: 3px 9px; border-radius: 7px; }
.cp-followups { margin-top: 12px; }

/* 12-D. drawer-only widths + responsive + motion + print */
.corbin-drawer .cp-groups, .corbin-drawer .cp-thread, .corbin-drawer .cp-input-wrap,
.corbin-drawer .cp-fine, .corbin-drawer .cp-upsell-slot { max-width: none; }
@media (max-width: 640px) {
  .corbin-drawer { width: 100%; border-left: 0; }
  /* The placeholder ("Ask about any peptide, dose, or stack…") wraps to two lines on a phone;
     a rows=1 box (41px) clipped the second line and showed a scrollbar. Floor the composer at
     two lines so the placeholder reads whole before the user types (auto-grow still takes over). */
  .corbin-drawer .cp-input { min-height: 64px; }
  .cp-box-row { flex-wrap: wrap; }
  .cp-box-row .cp-box { order: 1; flex: 1 1 100%; }
  .cp-box-row .cp-newchat { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .corbin-drawer, .corbin-scrim, html .corbin-launcher { transition: none; }
}
@media print { .corbin-drawer, .corbin-scrim, .corbin-launcher { display: none !important; } }

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   PHASE 13 — the launch-list footer signup + the index contact section.
   Two public write surfaces, both in the family's blocky Stratum grammar (square corners, flat
   surfaces, thick ink rules, mono labels, cobalt slabs) and both posting to same-origin Pages
   Functions. Tokens only — every colour/spacing/font is a www token, so light and dark both carry
   proper contrast (the tokens are the measured pairs). No literal hue.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

/* ── 13-A. footer newsletter (.foot-sub / .sb-sub) — every www page ──
   A thick ink rule opens it (the family's section divider), a bracketed cobalt mono tag, one line
   of pitch, then a square input butted against a cobalt slab button. The honeypot is off-screen,
   not display:none, so a naive bot still fills it (contact.js's reasoning). */
.foot-sub {
  margin-top: var(--space-6); padding-top: var(--space-5);
  border-top: 3px solid var(--text);
  display: grid; gap: var(--space-3); max-width: 480px;
}
.foot-sub-tag {
  margin: 0; font-family: var(--font-mono); font-weight: 700; font-size: var(--text-xs);
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.foot-sub-title { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--text-muted); }
.sb-sub { display: grid; gap: var(--space-2); }
.sb-sub-row { display: flex; }
.sb-sub-row input {
  flex: 1; min-width: 0; padding: var(--space-3); font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-right: 0; border-radius: 0;
}
.sb-sub-row input::placeholder { color: var(--text-subtle); }
.sb-sub-row input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.sb-sub-btn {
  font-family: var(--font-mono); font-weight: 700; font-size: var(--text-xs);
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: var(--on-accent); background: var(--accent); border: 1px solid var(--accent);
  border-radius: 0; padding: 0 var(--space-4); cursor: pointer;
}
.sb-sub-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.sb-sub-btn:disabled { opacity: .6; cursor: default; }
.sb-hp {
  position: absolute; width: 1px; height: 1px; margin: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.sb-sub-msg { margin: 0; min-height: 1.2em; font-size: var(--text-sm); color: var(--text-muted); }
.sb-sub-msg.is-ok { color: var(--success-text); }
.sb-sub-msg.is-bad { color: var(--danger-text); }
@media (max-width: 480px) {
  .sb-sub-row { flex-direction: column; }
  .sb-sub-row input { border-right: 1px solid var(--border-strong); border-bottom: 0; }
  .sb-sub-btn { padding: var(--space-3); }
}

/* ── 13-B. index contact section (.hxc-*) — the /contact form grammar, on the home ──
   Byte-for-byte the same visual language as scripts/build-contact.mjs's Phase-8 panel: an open
   info rail on the left (bracketed cobalt tag, cobalt mono labels between thick ink rules) and a
   square form panel on the right (thick ink top bar, hairline cell grid, borderless fields, cobalt
   slab). Own class namespace so the live /contact page is untouched. Posts to the SAME /api/contact. */
.hxc-grid { display: grid; gap: var(--space-6); align-items: start; }
.hxc-formcard { order: 1; }
.hxc-rail { order: 2; }
@media (min-width: 860px) {
  .hxc-grid { grid-template-columns: minmax(260px, 1fr) minmax(0, 1.35fr); gap: 44px; }
  .hxc-formcard { order: 2; }
  .hxc-rail { order: 1; }
}
/* Info rail — open, no box; thick ink rules between cobalt-labelled sections. */
.hxc-rail { background: transparent; border: 0; padding: 0; }
.hxc-rail::before {
  content: "[ SEND A MESSAGE ]"; display: block; font-family: var(--font-mono);
  font-weight: 700; font-size: var(--text-xs); letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 4px;
}
.hxc-rail h2 {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 20px 0 0;
}
.hxc-rail h2:first-of-type { margin-top: 14px; }
.hxc-rail p { margin: 8px 0 0; font-size: var(--text-sm); line-height: 1.6; color: var(--text-muted); max-width: none; }
.hxc-rail a { color: var(--accent); }
.hxc-rail hr.hxc-rule { border: 0; border-top: 3px solid var(--text); margin: 20px 0 0; }
/* Form panel — square, thick ink top bar, hairline cell grid, borderless fields. */
.hxc-formcard {
  border: 1px solid var(--border); border-top: 3px solid var(--text);
  border-radius: 0; padding: 0; background: var(--surface);
}
.hxc-formcard > h2 {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
  padding: 15px 18px; margin: 0; border-bottom: 1px solid var(--border);
}
.hxc-formcard > h2::before { content: "FORM 01 · "; color: var(--accent); font-weight: 700; }
.hxc-row { display: grid; gap: 0; margin: 0; border-bottom: 1px solid var(--border); }
@media (min-width: 620px) { .hxc-row { grid-template-columns: 1fr 1fr; } }
.hxc-field { display: grid; gap: 7px; margin-bottom: 0; padding: 14px 16px; }
.hxc-row .hxc-field { border-bottom: 1px solid var(--border); }
.hxc-row .hxc-field:last-child { border-bottom: 0; }
@media (min-width: 620px) {
  .hxc-row .hxc-field { border-right: 1px solid var(--border); border-bottom: 0; }
  .hxc-row .hxc-field:last-child { border-right: 0; }
}
form > .hxc-field { border-bottom: 1px solid var(--border); }
.hxc-field label {
  font-family: var(--font-mono); font-weight: 500; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
}
.hxc-field:has(input[required], textarea[required]) > label::after { content: " · required"; color: var(--accent); }
.hxc-field input, .hxc-field select, .hxc-field textarea {
  width: 100%; border: 0; background: transparent; border-radius: 0; padding: 2px 0 0;
  font: inherit; color: var(--text);
}
/* The cells carry the grid lines, so the inputs themselves stay flat — but a resting field must
   still read as somewhere to type. A legible placeholder gives that affordance without adding a
   box that would fight the hairline grid (same convention as the footer signup). */
.hxc-field input::placeholder, .hxc-field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.hxc-field textarea { resize: vertical; min-height: 7rem; }
.hxc-field input:focus, .hxc-field select:focus, .hxc-field textarea:focus { outline: none; }
.hxc-field:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
#hxc-send { width: calc(100% - 36px); margin: 16px 18px; border-radius: 0; text-transform: uppercase; letter-spacing: .02em; }
.hxc-error, .hxc-ok { margin: 12px 18px 0; padding: var(--space-3); border-radius: var(--radius-sm); }
.hxc-error { background: var(--danger-soft); color: var(--danger-text); border: 1px solid var(--danger); }
.hxc-ok { background: var(--success-soft); color: var(--success-text); border: 1px solid var(--success); }
.hxc-note { color: var(--text-muted); font-size: var(--text-sm); }
.hxc-formcard .hxc-note { padding: 0 18px 16px; margin: 0; }
.hxc-trap {
  position: absolute; width: 1px; height: 1px; margin: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
