/* LabScout v0.1 — blood-work price compare, sibling of VialScout */
:root {
  --bg: #07090c;
  --bg-elev: #0e1218;
  --bg-card: #131920;
  --bg-card-hover: #1a212b;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.14);
  --text: #e8eef6;
  --text-muted: #8b97a8;
  --text-faint: #5c6778;
  --accent: #ff6b81;
  --accent-deep: #c7304b;
  --accent-dim: rgba(199,48,75,0.16);
  --accent-strong: #e4455f;
  --warn: #f5c542;
  --info: #5b9dff;
  --best: #3ee0a0;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
  --nav-h: 64px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1180px;
  --ease: cubic-bezier(.22,1,.36,1);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f5f6f8;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f8fb;
  --border: rgba(15,23,42,0.08);
  --border-strong: rgba(15,23,42,0.16);
  --text: #0f172a;
  --text-muted: #5b6575;
  --text-faint: #8a93a3;
  --accent: #c7304b;
  --accent-deep: #9d2038;
  --accent-dim: rgba(199,48,75,0.10);
  --accent-strong: #a8243c;
  --best: #0a6b4a;
  --text-faint: #4f5968;
  --shadow: 0 8px 28px rgba(15,23,42,0.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100vw;
}
body { min-height: 100dvh; display: flex; flex-direction: column; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent-dim); color: var(--text); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

.disclaimer-bar {
  background: linear-gradient(90deg, #1a0c10, #2a1016);
  color: #f0c8d0;
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(199,48,75,0.35);
}
[data-theme="light"] .disclaimer-bar { background: #fff0f3; color: #7a2434; border-color: #ffd0d8; }
.disclaimer-bar strong { color: var(--accent); font-weight: 600; }

.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; gap: 10px;
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700;
  letter-spacing: -0.03em; font-size: 1.12rem; flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo-mark { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 0 0 12px; padding: 0; }
.nav-links a {
  color: var(--text-muted); padding: 6px 10px; border-radius: 8px; font-weight: 500; font-size: 14px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--accent-dim); text-decoration: none; }
.nav-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.btn-icon {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; cursor: pointer; display: grid; place-items: center;
}
.btn-icon svg { width: 16px; height: 16px; }
.btn-icon:hover { background: var(--accent-dim); border-color: var(--border-strong); }
.menu-toggle { display: none; }
.drawer, .drawer-backdrop { display: none; }

.hero { padding: 56px 0 28px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.hero .lede { color: var(--text-muted); font-size: 1.05rem; max-width: 42rem; margin: 0 0 24px; }
.search-wrap { position: relative; max-width: 640px; }
.search-wrap input, .search-box {
  width: 100%; padding: 14px 16px 14px 44px;
  border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--bg-card); color: var(--text);
  outline: none;
}
.search-wrap input:focus, .search-box:focus { border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-dim); }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .6; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: 12px; box-shadow: var(--shadow); z-index: 20;
  max-height: 360px; overflow: auto; padding: 6px;
}
.search-results[hidden] { display: none; }
.search-results a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--text);
}
.search-results a:hover, .search-results a.active { background: var(--accent-dim); text-decoration: none; }
.search-results .meta { color: var(--text-muted); font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.chip {
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.chip:hover { border-color: var(--accent-deep); text-decoration: none; color: var(--text); }
.chip .amt { color: var(--best); font-weight: 600; margin-left: 6px; }

.section { padding: 28px 0; }
.section h2 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; margin: 0 0 16px; letter-spacing: -0.02em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 16px 14px;
  color: var(--text); text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s;
}
a.card:hover { transform: translateY(-2px); border-color: var(--border-strong); text-decoration: none; color: var(--text); background: var(--bg-card-hover); }
.card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 13px; }
.price-lg { font-weight: 700; font-size: 1.25rem; color: var(--best); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); font-size: 12px; }
.as-of { color: var(--text-faint); font-size: 12px; margin-top: 8px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; align-items: end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
.filters select, .filters input {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 10px; min-width: 150px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
table.prices { width: 100%; border-collapse: collapse; font-size: 14px; }
table.prices th, table.prices td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.prices th { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; background: var(--bg-elev); }
table.prices tr:last-child td { border-bottom: 0; }
table.prices tr.best { background: color-mix(in srgb, var(--best) 8%, transparent); }
table.prices .total { font-weight: 700; white-space: nowrap; }
table.prices .list { color: var(--text-faint); text-decoration: line-through; font-size: 12px; margin-right: 4px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 999px; background: var(--accent-dim); color: var(--accent); margin-right: 4px;
}
.badge.best { background: color-mix(in srgb, var(--best) 18%, transparent); color: var(--best); }
.badge.warn { background: rgba(245,197,66,.15); color: var(--warn); }
.badge.donation { background: rgba(91,157,255,.15); color: var(--info); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-deep); color: #fff; border: 0; border-radius: 10px;
  padding: 8px 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--accent-strong); text-decoration: none; color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }

.prose { max-width: 48rem; }
.prose h1 { font-family: var(--display); font-weight: 500; font-size: 2.2rem; letter-spacing: -0.03em; margin: 0 0 10px; }
.prose h2 { font-family: var(--display); font-weight: 500; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-muted); }
.kicker { color: var(--accent); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }

.builder-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
.builder-picks { display: flex; flex-direction: column; gap: 6px; }
.builder-picks label {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; cursor: pointer;
}
.builder-picks label:hover { border-color: var(--border-strong); }
.builder-out .row {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
}
.builder-out .row.win { border-color: color-mix(in srgb, var(--best) 50%, var(--border)); }
.empty { color: var(--text-muted); padding: 20px; }

footer {
  margin-top: auto; border-top: 1px solid var(--border);
  padding: 28px 0 40px; color: var(--text-muted); font-size: 13px;
}
footer a { color: var(--text-muted); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; }
.foot-note { max-width: 40rem; margin-top: 16px; color: var(--text-faint); font-size: 12px; }

.own-brand-slot[hidden], [data-own-brand][hidden] { display: none !important; }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; }
  .drawer-backdrop[hidden] { display: none; }
  .drawer {
    display: block; position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 90vw);
    background: var(--bg-elev); z-index: 210; padding: 20px; border-left: 1px solid var(--border);
    transform: translateX(0);
  }
  .drawer[hidden] { display: none; }
  .drawer a { display: block; padding: 10px 0; color: var(--text); font-weight: 500; }
  .hero { padding: 32px 0 18px; }
  .builder-layout { grid-template-columns: 1fr; }
}


/* v0.1.1 additions */
.badge.info { background: rgba(91,157,255,.15); color: var(--info); }
.badge.value { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.best-for-legend { margin: 0 0 12px; max-width: 52rem; }
.filters-panel { margin: 0 0 16px; }
.filters-panel > summary { display: none; }
.filter-check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  max-width: 40rem;
}
.panel-card .kicker { margin-bottom: 6px; }
.fit-quiz { display: grid; gap: 14px; margin: 16px 0; max-width: 42rem; }
.fit-quiz fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 12px 14px;
}
.fit-quiz legend { font-weight: 600; padding: 0 6px; }
.fit-quiz label { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; cursor: pointer; }
.fit-out { display: grid; gap: 12px; margin-top: 12px; }

@media (max-width: 800px) {
  .filters-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    padding: 0 14px 10px;
    margin: 0 0 16px;
  }
  .filters-panel > summary {
    display: block;
    cursor: pointer;
    font-weight: 600;
    padding: 12px 0;
    list-style: none;
  }
  .filters-panel > summary::-webkit-details-marker { display: none; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters label,
  .filters select,
  .filters input:not([type="checkbox"]) {
    width: 100%;
    min-width: 0;
  }

  .offers-wrap { overflow: visible; border: 0; background: transparent; }
  .offers-wrap table.prices thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
  }
  .offers-wrap table.prices,
  .offers-wrap table.prices tbody { display: block; width: 100%; }
  .offers-wrap table.prices tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  .offers-wrap table.prices tr.best {
    background: color-mix(in srgb, var(--best) 8%, var(--bg-card));
  }
  .offers-wrap table.prices td {
    display: block;
    border-bottom: 0;
    padding: 4px 0;
  }
  .offers-wrap table.prices td:first-child { grid-column: 1; grid-row: 1; }
  .offers-wrap table.prices td.total { grid-column: 2; grid-row: 1; text-align: right; }
  .offers-wrap table.prices td:nth-child(n+3) { grid-column: 1 / -1; }
  .offers-wrap table.prices td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
  }
  .offers-wrap table.prices .btn { width: 100%; }
  .offers-wrap table.prices .badge { display: inline-block; margin: 0 4px 4px 0; }
}

/* a11y contrast (v0.1.1) */
.prose a, .lede a, .muted a, .as-of a, p a, li a { text-decoration: underline; text-underline-offset: 3px; }
[data-theme="light"] .badge.best { color: #0a6b4a; background: #d8f3ea; }
[data-theme="light"] .badge.info { color: #1558b0; background: #dce8fb; }
[data-theme="light"] .badge.value { color: #7a5a00; background: #f8e7b0; }

button.chip { appearance: none; background: inherit; font: inherit; color: inherit; cursor: pointer; }
button.chip.active, a.chip.active { outline: 2px solid var(--accent, #c7304b); }

/* v0.6 */
.badge.stale{background:rgba(255,184,77,.14);color:#ffb84d;border:1px solid rgba(255,184,77,.35)}
.guide-link{margin:4px 0 12px;font-size:.95rem}
.guide-body h2{margin-top:28px}
.claim{margin:10px 0}
.claim .cite{font-size:.8rem;vertical-align:super;margin-left:2px}
.cite-list li{margin:8px 0;font-size:.92rem}
.pill{display:inline-block;font-size:.72rem;padding:2px 8px;border-radius:999px;border:1px solid var(--line,#2a3340);margin-left:6px;opacity:.85}
.guide-prices td,.guide-prices th{padding:8px 10px}
.org-table td,.org-table th{padding:8px 10px;vertical-align:top}
.notice{border:1px solid rgba(255,184,77,.35);background:rgba(255,184,77,.08);padding:12px 14px;border-radius:10px;margin:14px 0}

/* v0.7 readability: products are the hero */
html, body { font-size: 16px; }
.hero-big { padding: 64px 0 36px; background: radial-gradient(900px 340px at 18% -10%, color-mix(in srgb, var(--accent-deep) 22%, transparent), transparent 70%); }
.hero-big h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.04; font-weight: 600; margin: 0 0 16px; }
.hero-big h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero-big .lede { font-size: 1.15rem; color: var(--text-muted); max-width: 38rem; margin-bottom: 28px; }
.search-hero { max-width: 760px; }
.search-hero input, .search-hero .search-box { font-size: 1.2rem; padding: 20px 20px 20px 58px; border-radius: 18px; border: 2px solid var(--border-strong); background: var(--bg-elev); box-shadow: var(--shadow); }
.search-hero input:focus { border-color: var(--accent); }
.search-hero svg { left: 20px; opacity: .8; color: var(--accent); }
.search-results { max-height: 480px; border-radius: 16px; padding: 8px; }
.search-results a.sr-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; color: var(--text); }
.search-results a.sr-row .sr-main { flex: 1; min-width: 0; }
.search-results a.sr-row .sr-name { display: block; font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.search-results a.sr-row .sr-name mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-results a.sr-row .meta { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }
.search-results a.sr-row .sr-price { font-size: 1.25rem; font-weight: 800; color: var(--best); white-space: nowrap; text-align: right; }
.search-results a.sr-row .sr-price small { display: block; font-size: .7rem; font-weight: 600; color: var(--text-muted); letter-spacing: .03em; text-transform: uppercase; }
.search-results .sr-all { display: block; padding: 12px 14px; font-weight: 600; border-top: 1px solid var(--border); margin-top: 4px; }
.chips-hero { margin-top: 20px; align-items: center; }
.chips-label { color: var(--text-muted); font-size: .9rem; margin-right: 4px; }
.chip { font-size: .95rem; padding: 8px 14px; }
.chip .amt { font-weight: 800; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.2rem); }
.sec-link { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.section { padding: 36px 0; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 8px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; color: var(--text); text-decoration: none; transition: transform .2s var(--ease), border-color .2s, background .2s; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent-deep); opacity: .85; }
.tile:hover { transform: translateY(-3px); border-color: var(--accent-deep); background: var(--bg-card-hover); text-decoration: none; color: var(--text); }
.tile-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.tile-name { font-size: 1.35rem; font-weight: 750; line-height: 1.2; letter-spacing: -.01em; min-height: 2.4em; color: var(--text); }
.tile-price { font-size: 2.4rem; font-weight: 800; line-height: 1.05; color: var(--best); letter-spacing: -.02em; margin-top: 6px; }
.tile-price .from { font-size: .85rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; margin-right: 2px; }
.tile-meta { font-size: .92rem; color: var(--text-muted); }
.tile-meta strong { color: var(--text); font-weight: 650; }
.tile-range { font-size: .85rem; color: var(--text-faint); }
.tile-panel .tile-name { min-height: 0; }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 8px; }
.cat-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.cat-tile:hover { border-color: var(--accent-deep); transform: translateY(-2px); text-decoration: none; color: var(--text); }
.cat-count { font-family: var(--display); font-size: 2.4rem; font-weight: 500; line-height: 1; color: var(--accent); }
.cat-name { font-size: 1.15rem; font-weight: 700; margin-top: 4px; }
.cat-sub { font-size: .85rem; color: var(--text-muted); }

/* tables: test name and total are the loudest things */
table.prices { font-size: 15px; }
table.prices th { font-size: 12px; color: var(--text-muted); padding: 14px; }
.t-name-cell { min-width: 280px; }
a.t-name { font-size: 1.12rem; font-weight: 700; color: var(--text); line-height: 1.3; }
a.t-name:hover { color: var(--accent); }
.t-low { white-space: nowrap; }
.t-price { font-size: 1.3rem; font-weight: 800; color: var(--best); margin-right: 8px; }
.t-at { font-size: .9rem; color: var(--text-muted); }
.kind { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-muted); }
.kind-comparison { color: var(--best); border-color: color-mix(in srgb, var(--best) 45%, transparent); }
.o-prov { font-size: 1.08rem; font-weight: 700; color: var(--text); }
.faint.listed { color: var(--text-muted); font-size: .92rem; margin-top: 2px; }
table.prices .total { vertical-align: top; }
.total-amt { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
tr.best .total-amt { color: var(--best); }
table.prices td { font-size: .95rem; }
.fee-note { font-size: .82rem; color: var(--text-muted); font-weight: 500; white-space: normal; margin-top: 2px; }
.badge { font-size: 12px; padding: 3px 9px; }

.test-h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; margin: 4px 0 18px; font-weight: 500; max-width: none; }
.test-h1 span { color: var(--text-muted); font-weight: 400; }
.stat-strip { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 12px; margin: 0 0 18px; max-width: 760px; }
.stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat-main { border-color: color-mix(in srgb, var(--best) 50%, transparent); background: color-mix(in srgb, var(--best) 8%, var(--bg-card)); }
.stat-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.stat-val { font-size: 2.2rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.stat-main .stat-val { color: var(--best); font-size: 2.6rem; }
.stat-sub { font-size: .85rem; color: var(--text-muted); }
.lede.muted { font-size: 1rem; color: var(--text-muted); max-width: 52rem; }

.search-box { font-size: 1rem; }
.catalog-hero-note { color: var(--text-muted); }

@media (max-width: 720px) {
  .hero-big { padding: 36px 0 24px; }
  .search-hero input, .search-hero .search-box { font-size: 1.05rem; padding: 17px 16px 17px 50px; }
  .search-results a.sr-row .sr-name { font-size: 1.02rem; }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 4px; padding: 16px 16px 14px 20px; }
  .tile-kicker, .tile-meta, .tile-range { grid-column: 1 / -1; }
  .tile-name { grid-column: 1; min-height: 0; font-size: 1.25rem; }
  .tile-price { grid-column: 2; grid-row: 2; margin: 0; font-size: 2rem; align-self: center; text-align: right; }
  .tile-price .from { display: block; font-size: .72rem; }
  .cat-tiles { grid-template-columns: 1fr 1fr; }
  .cat-count { font-size: 2rem; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-main { grid-column: 1 / -1; }
  .stat-val { font-size: 1.8rem; }
  .stat-main .stat-val { font-size: 2.3rem; }
  .total-amt { font-size: 1.9rem; display: inline-block; }
  .o-prov { font-size: 1.15rem; }
  .sec-head { flex-wrap: wrap; }
  .t-name-cell { min-width: 0; }
}
@media (max-width: 720px) {
  .chips-hero { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 4px 1rem 8px; scrollbar-width: none; }
  .chips-hero::-webkit-scrollbar { display: none; }
  .chips-hero .chip, .chips-label { flex: 0 0 auto; white-space: nowrap; }
  .hero-big .lede { font-size: 1.05rem; }
}
a.t-name, .prose a.t-name { text-decoration: none; }
a.t-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose h1 { margin-bottom: 10px; }
@media (max-width: 720px) {
  [data-cat-chips] { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 4px 1rem 10px; scrollbar-width: none; }
  [data-cat-chips] .chip { flex: 0 0 auto; white-space: nowrap; }
  table.prices.catalog-tbl td, table.prices.catalog-tbl th { padding: 12px 10px; }
}
@media (max-width: 720px) {
  table.cardify, table.cardify tbody { display: block; }
  table.cardify thead { display: none; }
  table.cardify tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  table.cardify tr[hidden] { display: none; }
  table.cardify td { display: block; padding: 0; border: 0; }
  table.cardify td.t-name-cell { grid-column: 1 / -1; min-width: 0; }
  table.cardify td.t-low { grid-column: 1; }
  table.cardify td.t-kind { grid-column: 2; text-align: right; }
  table.cardify td.t-cat, table.cardify td.t-sellers { display: none; }
  table.cardify a.t-name { font-size: 1.2rem; }
  .table-wrap:has(table.cardify) { overflow: visible; }
}

.prov-filter { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0 .8rem; }
.prov-filter input { flex: 1; max-width: 560px; font-size: 1.05rem; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line, #2a3340); background: var(--panel, #11161d); color: var(--text); }
.prov-filter input:focus { outline: 2px solid var(--accent, #ff6b81); outline-offset: 1px; }
a.o-prov { color: var(--text); text-decoration: none; }
a.o-prov:hover { text-decoration: underline; text-decoration-color: var(--accent, #ff6b81); }

/* ---- 21+ gate (added for go-live) ---- */
.age-pending, .age-pending body { overflow: hidden; }
.age-pending body > *:not(.age-gate) { visibility: hidden; animation: age-failsafe 0s linear 3s forwards; }
.age-open body > * { visibility: visible !important; animation: none !important; }
@keyframes age-failsafe { to { visibility: visible; } }
.age-gate {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto; background: rgba(7,9,12,0.94);
}
[data-theme="light"] .age-gate { background: rgba(245,246,248,0.95); }
@supports (backdrop-filter: blur(1px)) { .age-gate { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(7,9,12,0.86); } [data-theme="light"] .age-gate { background: rgba(245,246,248,0.88); } }
.age-gate-card {
  width: min(100%, 460px); margin: auto; padding: 28px 28px 22px;
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.age-gate-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.03em; font-size: 1.1rem; }
.age-gate-card .age-gate-kicker { margin: 20px 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.age-gate-card h2 { font-family: var(--display); font-weight: 500; font-size: 2rem; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; }
.age-gate-card p { margin: 0 0 10px; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.age-gate-card .age-gate-med { color: var(--text); font-size: 14px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-dim); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.age-gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.age-btn {
  flex: 1 1 180px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px;
  border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; text-align: center; text-decoration: none; border: 1px solid transparent;
}
.age-btn:hover { text-decoration: none; }
.age-btn-primary { background: var(--accent-deep); color: #fff; }
.age-btn-primary:hover { background: var(--accent-strong); color: #fff; }
.age-btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.age-btn-ghost:hover { background: var(--bg-card-hover); color: var(--text); }
.age-btn:focus-visible, .age-gate a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.age-gate-card .age-gate-fine { margin: 0; font-size: 12px; color: var(--text-faint); }
.age-gate-fine a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) { .age-gate-card { padding: 22px 18px 18px; } .age-gate-card h2 { font-size: 1.7rem; } }
/* footer legal row + legal pages */
.foot-legal { margin: 16px 0 0; font-size: 13px; color: var(--text-muted); }
.foot-legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.disclaimer-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.prose.legal h2 { font-size: 1.35rem; }
.prose.legal ul { padding-left: 1.2rem; }
.prose .muted { color: var(--text-faint); font-size: 13px; }
.nav-links a, .nav-actions a { text-decoration: none; }
