/* tokens ---------------------------------------------------- */
:root {
  --paper: #eef1ee;          /* cool mineral grey-green: the page */
  --sheet: #ffffff;          /* surfaces */
  --sheet-2: #f6f8f6;
  --ink: #111a16;            /* deep green-black text */
  --ink-2: #4e5b55;          /* secondary text */
  --ink-3: #7c8983;          /* tertiary / counts */
  --rule: #d6ddd8;
  --rule-strong: #111a16;
  --cobalt: #2340c8;         /* cobalt-glass accent: links, selection, focus */
  --cobalt-wash: #e4e9fb;
  --good: #16835a;
  --ok: #b7791f;
  --low: #c2412d;
  --good-wash: #dff1e8;
  --ok-wash: #f8ecd6;
  --low-wash: #f8e1dc;

  --f-ui: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-read: "Source Serif 4", Georgia, serif;
  --f-code: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --gutter: 28px;
  --header-h: 60px;
  --side-w: 300px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1311;
    --sheet: #161d1a;
    --sheet-2: #1b2320;
    --ink: #e6ece8;
    --ink-2: #a3b0aa;
    --ink-3: #74827c;
    --rule: #28322e;
    --rule-strong: #e6ece8;
    --cobalt: #8ea2ff;
    --cobalt-wash: #1f2748;
    --good: #4cc08c;
    --ok: #e0a64a;
    --low: #ef7a64;
    --good-wash: #16302a;
    --ok-wash: #332713;
    --low-wash: #3a1f1a;
    color-scheme: dark;
  }
}

/* base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.45 var(--f-ui);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cobalt); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.code { font-family: var(--f-code); font-size: 12.5px; letter-spacing: -0.01em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header -------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr) auto; align-items: center;
  gap: 20px; padding: 0 var(--gutter) 0 22px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.mark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px;
  font-variation-settings: "wdth" 78; letter-spacing: -0.01em; }
.mark:hover { color: var(--ink); }
.capsule-glyph { width: 11px; height: 22px; border-radius: 6px; overflow: hidden; display: grid;
  grid-template-rows: 1fr 1fr; transform: rotate(35deg); box-shadow: 0 0 0 1.5px var(--ink); }
.capsule-glyph::before { content: ""; background: var(--cobalt); }
.capsule-glyph::after { content: ""; background: var(--sheet); }

.search { position: relative; max-width: 620px; width: 100%; }
.search input {
  width: 100%; height: 40px; padding: 0 44px 0 40px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet);
  font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-wash); }
.search .lens { position: absolute; left: 15px; top: 50%; width: 14px; height: 14px; margin-top: -8px;
  border: 2px solid var(--ink-3); border-radius: 50%; pointer-events: none; }
.search .lens::after { content: ""; position: absolute; width: 2px; height: 6px; background: var(--ink-3);
  right: -4px; bottom: -5px; transform: rotate(-45deg); border-radius: 1px; }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font: 500 12px var(--f-code); color: var(--ink-3); border: 1px solid var(--rule);
  border-radius: 5px; padding: 1px 6px; background: var(--sheet-2); }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: 0 18px 50px -20px rgb(0 0 0 / .35); padding: 6px; max-height: 70vh; overflow: auto;
}
.suggest h6 { margin: 8px 10px 4px; font: 600 11.5px var(--f-ui); color: var(--ink-3); letter-spacing: .02em; }
.suggest a { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center;
  padding: 6px 10px; border-radius: 8px; }
.suggest a.active, .suggest a:hover { background: var(--cobalt-wash); color: var(--ink); }
.suggest .s-thumb { width: 36px; height: 36px; border-radius: 7px; background: #fff; object-fit: contain; padding: 2px; }
.suggest .s-name { font-weight: 550; line-height: 1.25; }
.suggest .s-sub { font-size: 12.5px; color: var(--ink-2); }
.suggest .s-all { display: block; padding: 10px; text-align: center; color: var(--cobalt); font-weight: 600; }
.suggest .s-icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  background: var(--sheet-2); font-weight: 800; color: var(--ink-2); font-size: 13px; }

.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--sheet); }
.nav a.on { color: var(--ink); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); }
.nav .pill-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  margin-left: 6px; border-radius: 99px; background: var(--cobalt); color: #fff; font-size: 12px; font-weight: 700; }

/* phones: the sections as a tab bar along the bottom (outside the header: its blur would pin it there) */
.tabbar { display: none; }
@media (max-width: 900px) {
  .top .nav { display: none; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    border-top: 1px solid var(--rule);
  }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 2px 4px; border-radius: 10px; color: var(--ink-2); font-size: 11px; font-weight: 600; }
  .tabbar a.on { color: var(--cobalt); }
  .tabbar a:active { background: var(--sheet); }
  .tabbar .ti { width: 23px; height: 23px; }
  .tabbar .pill-count { position: absolute; top: 2px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 5px;
    display: inline-grid; place-items: center; border-radius: 99px; background: var(--cobalt); color: #fff;
    font-size: 10.5px; font-weight: 700; }
  .tabbar .pill-count[hidden] { display: none; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .tray { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* layout -------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.side {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: auto;
  padding: 18px 14px 40px 18px; border-right: 1px solid var(--rule); overscroll-behavior: contain;
}
.main { min-width: 0; padding: 26px var(--gutter) 80px; }
.page { max-width: 1240px; margin: 0 auto; padding: 30px var(--gutter) 90px; }

/* category tree ------------------------------------------------------- */
.tree { list-style: none; margin: 0; padding: 0; }
.tree ul { list-style: none; margin: 2px 0 6px; padding: 0 0 0 12px; border-left: 1px solid var(--rule); margin-left: 12px; }
.t-row { display: flex; align-items: center; gap: 2px; }
.t-toggle { width: 22px; height: 26px; flex: none; display: grid; place-items: center; border: 0; background: none;
  color: var(--ink-3); border-radius: 5px; padding: 0; }
.t-toggle::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.t-toggle[aria-expanded="true"]::before { transform: rotate(45deg) translate(-1px, -1px); }
.t-toggle.leaf { visibility: hidden; }
.t-link { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: 8px;
  padding: 4px 8px; border-radius: 7px; font-size: 14px; color: var(--ink); }
.t-link:hover { background: var(--sheet); color: var(--ink); }
.t-link .t-n { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.t-link.on { background: var(--cobalt-wash); color: var(--cobalt); font-weight: 600; }
.t-link.on .t-n { color: var(--cobalt); }
.tree > li > .t-row .t-link { font-weight: 550; }
.tree .t-all { font-weight: 700; margin-bottom: 8px; }

/* page heading -------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--cobalt); }
.crumbs span[aria-hidden] { color: var(--ink-3); }
.h1 { margin: 0; font-weight: 750; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.02;
  font-variation-settings: "wdth" 82; letter-spacing: -0.015em; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head-meta { color: var(--ink-2); font-size: 14px; }
.head-meta a { color: var(--cobalt); font-weight: 550; }

/* picks strip --------------------------------------------------------- */
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 8px; }
.pick { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 14px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg);
  transition: border-color .15s, transform .15s; }
.pick:hover { border-color: var(--ink-3); color: inherit; }
.pick .why { font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 3px; }
.pick .why b { color: var(--ink); }
.pick .p-name { font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick .p-brand { font-size: 13px; color: var(--ink-2); }
.pick .p-stats { display: flex; gap: 12px; align-items: center; margin-top: 6px; font-size: 13px; }

/* toolbar & filters --------------------------------------------------- */
.toolbar { margin: 22px 0 0; padding: 0 0 14px; }
.tb-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.count-line { font-size: 14px; color: var(--ink-2); }
.count-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sortsel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.sortsel select { appearance: none; height: 34px; padding: 0 32px 0 12px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--sheet); color: var(--ink); font: 600 13.5px var(--f-ui); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
.sortsel select:hover { border-color: var(--ink-3); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 32px; height: 18px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 22%, var(--sheet)); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .15s; }
.switch input:checked + .track { background: var(--cobalt); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--cobalt); outline-offset: 2px; }

.tb-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fmenu { position: relative; }
.fbtn { height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--sheet); color: var(--ink); font: 600 13.5px var(--f-ui); cursor: pointer; white-space: nowrap; }
.fbtn:hover { border-color: var(--ink-3); }
.fmenu.on .fbtn { border-color: var(--cobalt); color: var(--cobalt); background: color-mix(in srgb, var(--cobalt) 7%, var(--sheet)); }
.fbadge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--cobalt); color: #fff;
  font-size: 11.5px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s; opacity: .7; }
.fmenu.open .caret { transform: translateY(1px) rotate(225deg); }
.fpanel { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 250px; max-height: 380px; overflow: auto;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 6px; box-shadow: 0 14px 36px rgb(0 0 0 / .14); }
.fmenu.open .fpanel { display: block; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 8px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.fopt:hover { background: var(--sheet-2); }
.fopt input { accent-color: var(--cobalt); width: 16px; height: 16px; margin: 0; flex: none; }
.fopt .n { margin-left: auto; padding-left: 12px; color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fopt.off { opacity: .45; cursor: default; }
.fopt.off:hover { background: none; }
.fnote { margin: 6px 9px; font-size: 13px; color: var(--ink-3); }
.fprice { padding: 8px 8px 6px; }
.fnum { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.money { display: flex; align-items: center; height: 36px; border: 1px solid var(--rule); border-radius: 9px; padding: 0 10px; gap: 4px; color: var(--ink-2); }
.money:focus-within { border-color: var(--cobalt); }
.money input { border: 0; outline: 0; background: none; width: 100%; font: 600 14px var(--f-ui); color: var(--ink); }
.fpicks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fpick { height: 28px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet); color: var(--ink-2);
  font: 600 12.5px var(--f-ui); cursor: pointer; }
.fpick:hover { border-color: var(--ink-3); color: var(--ink); }
.fpick[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.tb-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.achip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--cobalt) 12%, var(--sheet)); color: var(--cobalt); font: 600 12.5px var(--f-ui); cursor: pointer; }
.achip .x { font-size: 15px; line-height: 1; opacity: .75; }
.achip:hover .x { opacity: 1; }
.clear { border: 0; background: none; color: var(--ink-2); font: 600 12.5px var(--f-ui); padding: 4px 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.clear:hover { color: var(--ink); }


/* product table ------------------------------------------------------- */
.p-head, .p-row {
  display: grid; align-items: center; gap: 18px;
  grid-template-columns: 64px minmax(0, 1fr) 120px 160px 34px;
}
.p-head { padding: 12px 14px 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.p-head button { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; }
.p-head button:hover, .p-head button[aria-pressed="true"] { color: var(--ink); }
/* the active column's direction (▲ ascending, ▼ descending); clicking it again reverses the sort */
.sort-dir { font-size: .72em; margin-left: 4px; vertical-align: .08em; }
.p-row {
  position: relative; padding: 12px 14px; background: var(--sheet);
  border-top: 1px solid var(--rule);
}
.p-row:first-of-type { border-top-left-radius: var(--r-lg); border-top-right-radius: var(--r-lg); border-top: 0; }
.p-rows { border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; background: var(--sheet); }
.p-row:hover { background: var(--sheet-2); }
.p-row .cover { position: absolute; inset: 0; z-index: 1; }
.p-row .cover:focus-visible { outline-offset: -2px; border-radius: 0; }
.thumb { width: 64px; height: 64px; border-radius: 10px; background: #fff; object-fit: contain; padding: 4px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.thumb.empty { display: grid; place-items: center; color: #b5bdb8; font-weight: 800; font-size: 22px; }
.p-brand { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.p-name { font-weight: 620; font-size: 15.5px; line-height: 1.25; margin: 1px 0 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-row:hover .p-name { color: var(--cobalt); }
.p-meta { font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 11.5px; font-weight: 650; padding: 1px 7px; border-radius: 5px; background: var(--sheet-2);
  box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); white-space: nowrap; }
.tag.alert { background: var(--low-wash); box-shadow: none; color: var(--low); }
.cell-price .big { font-weight: 650; font-size: 17px; font-variant-numeric: tabular-nums; }
.cell-price .sub { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cmp-btn { position: relative; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rule);
  background: var(--sheet); display: grid; place-items: center; color: var(--ink-2); padding: 0; }
.cmp-btn::before, .cmp-btn::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.cmp-btn::before { width: 12px; height: 1.8px; }
.cmp-btn::after { width: 1.8px; height: 12px; }
.cmp-btn:hover { border-color: var(--cobalt); color: var(--cobalt); }
.cmp-btn[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.cmp-btn[aria-pressed="true"]::before { width: 6px; height: 1.8px; transform: translate(-3px, 1px) rotate(45deg); }
.cmp-btn[aria-pressed="true"]::after { width: 1.8px; height: 11px; transform: translate(2px, -1px) rotate(45deg); }
.load-more { display: block; margin: 22px auto 0; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--sheet); font-weight: 600; }
.load-more:hover { border-color: var(--ink); }
.empty-state { padding: 60px 20px; text-align: center; color: var(--ink-2); }
.empty-state b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }

/* Score: the capsule meter --------------------------------------- */
.score { display: inline-flex; align-items: center; gap: 9px; }
.score .val { font-weight: 750; font-size: 19px; font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; min-width: 34px; }
.capsule { --fill: 50%; --c: var(--good); position: relative; width: 44px; height: 14px; border-radius: 99px;
  box-shadow: inset 0 0 0 1.5px var(--c); overflow: hidden; flex: none; }
.capsule::before { content: ""; position: absolute; inset: 0; width: var(--fill); background: var(--c); }
.capsule::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1.5px; background: var(--c); opacity: .35; }
.band-good { --c: var(--good); }
.band-ok { --c: var(--ok); }
.band-low { --c: var(--low); }
.score-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.score.lg .val { font-size: 44px; line-height: 1; min-width: 0; }
.score.lg .capsule { width: 86px; height: 24px; }

/* product page -------------------------------------------------------- */
.prod-top { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 44px; margin-top: 18px; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.stage { background: #fff; border-radius: var(--r-lg); aspect-ratio: 1; display: grid; place-items: center;
  padding: 26px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); position: relative; overflow: hidden; }
.stage img { position: absolute; inset: 26px; width: calc(100% - 52px); height: calc(100% - 52px); object-fit: contain; }
.stage button.zoom { position: absolute; inset: 0; border: 0; background: none; cursor: zoom-in; }
.gal-tabs { display: flex; gap: 8px; margin-top: 10px; }
.gal-tabs button { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--rule);
  background: var(--sheet); border-radius: var(--r-md); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.gal-tabs button img { width: 40px; height: 40px; flex: none; object-fit: contain; background: #fff; border-radius: 6px; }
.gal-tabs button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.buy { margin-top: 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 16px 18px; }
.buy-top { display: flex; align-items: baseline; gap: 8px; }
.buy-sub { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.buy-top .big { font-size: 28px; font-weight: 750; font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; }
.buy-top .per { color: var(--ink-2); font-size: 14px; }
.buy ul { list-style: none; margin: 12px 0 0; padding: 0; }
/* each store is a button: the cheapest filled, the rest outlined */
.buy li + li { margin-top: 8px; }
.buy li a { display: grid; grid-template-columns: minmax(0, 1fr) 5.2em auto; gap: 12px; align-items: center; padding: 9px 10px 9px 14px;
  border: 1.5px solid var(--rule); border-radius: var(--r-md); font-size: 14px; color: var(--ink); text-decoration: none;
  transition: border-color .12s, background .12s; }
.buy li a:hover { border-color: var(--cobalt); background: var(--cobalt-wash); color: var(--ink); }
.buy .shop { font-weight: 650; }
.buy .go { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.buy .shop .lowest { display: block; font-size: 12px; font-weight: 600; color: var(--good); margin-top: 1px; }
.buy .store-btn { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--cobalt); color: var(--cobalt); font-weight: 650;
  font-size: 13.5px; white-space: nowrap; }
.buy li:first-child .store-btn { background: var(--cobalt); color: var(--sheet); }
.buy li a:hover .store-btn { background: var(--cobalt); color: var(--sheet); }

.prod-title .p-brand { font-size: 15px; }
.prod-title .p-brand a { color: var(--cobalt); font-weight: 600; }
.prod-title h1 { margin: 4px 0 12px; font-weight: 750; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02;
  font-variation-settings: "wdth" 80; letter-spacing: -0.015em; }
.facts-line { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font-size: 14px; }
.facts-line b { color: var(--ink); font-weight: 600; }
.verdict { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 22px 0 6px; padding: 18px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.verdict .word { font-size: 20px; font-weight: 700; font-variation-settings: "wdth" 85; }
.verdict .ctx { color: var(--ink-2); font-size: 14px; }
.verdict .act { margin-left: auto; display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule); background: var(--sheet);
  border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 14px; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn[aria-pressed="true"] { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.alert-box { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r-md); background: var(--low-wash); color: var(--low);
  font-weight: 600; font-size: 14px; }
.alert-box a { text-decoration: underline; }

/* the signature: label panels ----------------------------------------- */
.labels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-top: 26px; align-items: start; }
.label {
  background: var(--sheet); color: var(--ink); border: 2px solid var(--rule-strong); padding: 10px 14px 14px;
  font-family: var(--f-ui); font-variation-settings: "wdth" 90;
}
.label.facts { position: relative; }
.label.facts.capped { overflow: hidden; }
.label.facts.capped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--sheet) 70%); }
.facts-more { display: block; margin: 12px auto 0; white-space: nowrap; }
.label.facts.capped .facts-more { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0; z-index: 1; }
.label h2 { margin: 0; font-weight: 900; font-size: 34px; line-height: 1; font-variation-settings: "wdth" 70;
  letter-spacing: -0.01em; }
.label .l-sub { font-size: 14.5px; line-height: 1.35; margin-top: 4px; }
.label .l-sub b { font-weight: 700; }
.l-rule-xl { height: 9px; background: var(--rule-strong); margin: 6px -2px 4px; }
.l-rule-md { height: 4px; background: var(--rule-strong); margin: 4px -2px; }
.l-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 5px 0; border-top: 1px solid var(--rule-strong);
  font-size: 14.5px; align-items: baseline; }
.l-row:first-child { border-top: 0; }
.l-row.head { font-weight: 800; font-size: 13px; border-top: 0; padding-bottom: 2px; }
.l-row .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.l-row .src { color: var(--ink-2); font-size: 13px; }
.l-row a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.l-row a:hover { text-decoration-color: var(--cobalt); }
.l-foot { font-size: 13.5px; line-height: 1.45; margin-top: 8px; }
.l-foot b { font-weight: 800; }
.l-section { font-weight: 800; font-size: 14.5px; margin-top: 2px; padding: 4px 0 2px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { font-size: 13.5px; padding: 4px 0; border-top: 1px solid var(--rule); display: flex; gap: 8px; align-items: baseline; }
.check::before { content: "✓"; font-weight: 800; color: var(--good); width: 12px; flex: none; }

/* sections on detail pages -------------------------------------------- */
.sec { margin-top: 44px; }
.sec > h2 { margin: 0 0 14px; font-size: 22px; font-weight: 720; font-variation-settings: "wdth" 85; letter-spacing: -0.01em; }
.sec > h2 .faint { font-weight: 500; font-size: 15px; margin-left: 8px; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.excip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 12px 16px; border-top: 1px solid var(--rule); }
.excip:first-child { border-top: 0; }
.excip .e-name { font-weight: 600; }
.excip .e-flags { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }
.insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
details.faq { border-top: 1px solid var(--rule); }
details.faq:first-child { border-top: 0; }
details.faq summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); font-family: var(--f-read); font-size: 16px; line-height: 1.55; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
/* only one list (no cheaper alternatives): use the full width, its rows in two columns */
.split > .sec:only-child { grid-column: 1 / -1; }
.split > .sec:only-child .mini-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split > .sec:only-child .mini-rows .p-row:nth-child(odd) { border-right: 1px solid var(--rule); }
.mini-rows .p-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; padding: 10px 14px; }
.mini-rows .thumb { width: 48px; height: 48px; }
.mini-rows .p-name { font-size: 14.5px; }
.mini-right { text-align: right; }

/* brand page ---------------------------------------------------------- */
.brand-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 10px; }
.logo { width: 88px; height: 88px; border-radius: var(--r-lg); background: #fff; object-fit: contain; padding: 10px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.logo.empty { display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #a9b3ad; }

/* brand & ingredient indexes ------------------------------------------ */
.btable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.btable th { text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 600; padding: 12px 16px 8px; border-bottom: 1px solid var(--rule); }
.btable td { padding: 11px 16px; border-top: 1px solid var(--rule); font-size: 14.5px; vertical-align: middle; }
.btable tr:first-child td { border-top: 0; }
.btable tr:hover td { background: var(--sheet-2); }
.btable .b-name { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.btable .b-name img, .btable .b-name .bl { width: 34px; height: 34px; border-radius: 8px; background: #fff; object-fit: contain; padding: 3px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); flex: none; }
.btable .b-name .bl { display: grid; place-items: center; font-size: 14px; color: #a9b3ad; font-weight: 800; }
.btable td.r, .btable th.r { text-align: right; }
.letter-group { margin-top: 26px; }
.letter-group h3 { margin: 0 0 8px; font-weight: 900; font-size: 26px; font-variation-settings: "wdth" 70; }
.ing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ing { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 11px 14px; background: var(--sheet);
  border: 1px solid var(--rule); border-radius: var(--r-md); }
.ing:hover { border-color: var(--ink-3); color: inherit; }
.ing .i-name { font-weight: 600; }
.ing .i-sub { font-size: 12.5px; color: var(--ink-2); grid-column: 1; }
.grade { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font-weight: 850;
  font-size: 14px; font-variation-settings: "wdth" 80; color: #fff; flex: none; }
.grade-A { background: #0f6b47; }
.grade-B { background: #2f9467; }
.grade-C { background: #b7791f; }
.grade-D { background: #c7632d; }
.grade-F { background: #8b9690; }
.grade-none { background: var(--rule); color: var(--ink-3); }

/* ingredient page ----------------------------------------------------- */
.lede { font-family: var(--f-read); font-size: 20px; line-height: 1.55; max-width: 68ch; margin: 16px 0 0; color: var(--ink); }
.dose { margin-top: 26px; padding: 18px 20px 20px; }
.dose-top { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: baseline; }
.dose-top .big { font-size: 26px; font-weight: 750; font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; }
.dose-scale { position: relative; height: 34px; margin-top: 18px; }
.dose-scale .track { position: absolute; left: 0; right: 0; top: 13px; height: 8px; border-radius: 5px; background: var(--sheet-2); box-shadow: inset 0 0 0 1px var(--rule); }
.dose-scale .band { position: absolute; top: 13px; height: 8px; border-radius: 5px; background: var(--good); }
.dose-scale .limit { position: absolute; top: 4px; bottom: 0; width: 2px; background: var(--low); }
.dose-scale .limit span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--low); font-weight: 650; white-space: nowrap; }
.dose-ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dose-guide { margin-top: 16px; font-family: var(--f-read); font-size: 16px; line-height: 1.6; color: var(--ink); }
.dose-guide h4 { font-family: var(--f-ui); font-size: 14px; margin: 14px 0 2px; }
.dose-guide p { margin: 0 0 8px; }
.effects { display: grid; gap: 10px; }
.effect { padding: 16px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; }
.effect .grade { width: 36px; height: 36px; font-size: 19px; grid-row: span 3; }
.effect .e-goal { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.effect .e-head { font-weight: 680; font-size: 17px; line-height: 1.3; }
.effect .e-sum { color: var(--ink-2); font-size: 14.5px; }
.effect .e-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.effect details { grid-column: 2; margin-top: 8px; }
.effect summary { cursor: pointer; color: var(--cobalt); font-weight: 600; font-size: 14px; }
.effect.adverse { box-shadow: inset 3px 0 0 var(--low); }
.prose { font-family: var(--f-read); font-size: 16.5px; line-height: 1.62; color: var(--ink); max-width: 72ch; }
.prose h3, .prose h4, .prose h5 { font-family: var(--f-ui); font-size: 16px; font-weight: 700; margin: 18px 0 4px; }
.prose p { margin: 0 0 10px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin: 3px 0; }
.papers { list-style: none; margin: 12px 0 0; padding: 0; }
.papers li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.4; }
.papers .pt { font-weight: 600; }
.papers .pm { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.papers a.doi { color: var(--cobalt); }

/* compare ------------------------------------------------------------- */
.cmp-wrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--sheet); }
.cmp { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; }
.cmp th, .cmp td { padding: 10px 16px; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; font-size: 14px; }
.cmp thead th { border-top: 0; vertical-align: bottom; }
.cmp th[scope="row"] { color: var(--ink-2); font-weight: 600; width: 190px; position: sticky; left: 0; background: var(--sheet); font-size: 13.5px; }
.cmp .grp th { background: var(--sheet-2); font-weight: 800; color: var(--ink); font-size: 13px; }
.cmp .c-prod img { width: 110px; height: 110px; object-fit: contain; background: #fff; border-radius: 10px; margin-bottom: 8px; }
.cmp .c-prod .p-name { font-size: 15px; }
.cmp .best { color: var(--good); font-weight: 700; }
.cmp .x { color: var(--ink-3); }
.cmp .rm { border: 0; background: none; color: var(--ink-3); font-size: 13px; padding: 4px 0; }
.cmp .rm:hover { color: var(--low); }

/* compare tray -------------------------------------------------------- */
.tray { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 7px 7px 7px 16px; box-shadow: 0 18px 40px -16px rgb(0 0 0 / .45); }
.tray img { width: 32px; height: 32px; border-radius: 50%; background: #fff; object-fit: contain; padding: 2px; }
.tray .t-imgs { display: flex; }
.tray a.btn { background: var(--paper); color: var(--ink); border: 0; }
.tray a.btn:hover { color: var(--ink); opacity: .92; }
.tray button.x { border: 0; background: none; color: var(--paper); opacity: .6; font-size: 13px; padding: 6px 10px; }
.tray button.x:hover { opacity: 1; }

/* lightbox, skeleton, misc -------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgb(10 14 12 / .86); display: grid; place-items: center; padding: 30px; cursor: zoom-out; }
.lightbox img { width: auto; height: auto; max-width: min(1100px, calc(100vw - 60px)); max-height: calc(100vh - 60px); object-fit: contain; background: #fff; border-radius: 8px; }
.skel { background: linear-gradient(90deg, var(--sheet-2), var(--rule), var(--sheet-2)); background-size: 200% 100%;
  animation: sh 1.2s linear infinite; border-radius: 6px; }
@keyframes sh { to { background-position: -200% 0; } }
/* the loading shapes: a list row, then each page's placeholder blocks */
.skel.skel-thumb { width: 64px; height: 64px; }
.skel.skel-brand { width: 30%; height: 12px; }
.skel.skel-name { width: 70%; height: 16px; margin-top: 8px; }
.skel.skel-cell { height: 18px; }
.skel.skel-cell-sm { height: 10px; }
.skel.skel-toolbar { width: 420px; height: 32px; }
.skel.skel-title { height: 40px; width: 50%; }
.skel.skel-heading { height: 60px; width: 40%; }
.skel.skel-heading.wide { width: 60%; }
.skel.skel-square { aspect-ratio: 1; }
.skel.skel-panel { height: 300px; }
.skel.skel-banner { height: 90px; }
.skel.skel-card { height: 200px; margin-top: 20px; }
.skel.skel-list { height: 400px; margin-top: 24px; }
.skel.skel-list.short { height: 300px; }
.skel.skel-table { height: 500px; margin-top: 22px; }
.err { margin: 40px 0; padding: 18px 20px; border-radius: var(--r-md); background: var(--low-wash); color: var(--low); font-weight: 600; }
.view-enter { animation: rise .22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.side-toggle { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .p-head, .p-row { grid-template-columns: 64px minmax(0, 1fr) 110px 140px 34px; }
  .labels { grid-template-columns: minmax(0, 1fr); }
  .insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; --side-w: 0px; }
  .top { grid-template-columns: auto minmax(0, 1fr); padding: 0 16px; gap: 12px; }
  .nav { grid-column: 1 / -1; order: 3; overflow-x: auto; }
  .top { height: auto; padding-top: 10px; padding-bottom: 8px; }
  .mark .word { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .tb-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .fmenu { position: static; }
  .tb-filters { position: relative; }
  .fpanel { left: 0; right: 0; min-width: 0; }
  .stage { aspect-ratio: auto; height: 280px; }
  .top > div:first-child { min-width: 0; }
  .side { position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: min(320px, 88vw); height: 100vh; background: var(--paper);
    transform: translateX(-100%); transition: transform .2s, box-shadow .2s; }
  .side.open { transform: none; box-shadow: 0 0 60px rgb(0 0 0 / .3); }
  .tray { bottom: 12px; gap: 8px; padding-left: 10px; font-size: 13.5px; white-space: nowrap; }
  .tray .t-imgs img { width: 28px; height: 28px; }
  .side-toggle { display: inline-flex; }
  .picks { grid-template-columns: 1fr; }
  .prod-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gallery { position: static; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > .sec:only-child .mini-rows { grid-template-columns: minmax(0, 1fr); }
  .split > .sec:only-child .mini-rows .p-row:nth-child(odd) { border-right: 0; }
  .search kbd { display: none; }
  .toolbar { position: static; }
  .p-head { display: none; }
  .p-row { grid-template-columns: 56px minmax(0, 1fr) 34px; grid-template-areas: "img info cmp" "img nums cmp"; gap: 6px 12px; }
  .p-row .thumb { width: 56px; height: 56px; grid-area: img; align-self: start; }
  .p-row .cell-info { grid-area: info; }
  .p-row .cell-price, .p-row .cell-score { grid-area: nums; }
  .p-row .cmp-btn { grid-area: cmp; align-self: start; }
  .p-row .cell-price { display: none; }
  .p-row .cell-score .score-sub { display: none; }
  .p-row .cell-score::after { content: attr(data-price); font-size: 13px; color: var(--ink-2); margin-left: 10px; }
  .p-row .cell-score { display: flex; align-items: center; }
  .insights { grid-template-columns: 1fr 1fr; }
  .checks { grid-template-columns: 1fr; }
  .brand-head { grid-template-columns: auto minmax(0, 1fr); }
  .brand-head > :last-child { grid-column: 1 / -1; }
  .btable .hide-sm { display: none; }
  .verdict .act { margin-left: 0; }
}

/* guides ---------------------------------------------------------------- */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 24px; }
.guide-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; transition: border-color .15s; }
.guide-card:hover { border-color: var(--ink-3); color: inherit; }
.gc-art { background: #fff; display: flex; justify-content: center; align-items: flex-end; height: 170px; padding: 20px 20px 0; gap: 0; border-bottom: 1px solid var(--rule); }
.gc-art img { width: 110px; height: 130px; object-fit: contain; margin: 0 -10px; }
.gc-art img:nth-child(1) { z-index: 3; width: 128px; height: 148px; }
.gc-body { padding: 18px 20px 20px; }
.gc-body h2 { margin: 0 0 6px; font-size: 22px; font-weight: 750; font-variation-settings: "wdth" 82; }
.gc-body p { margin: 0; font-family: var(--f-read); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.gc-meta { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

.guide { max-width: 1180px; }
.g-head { max-width: 780px; margin: 10px 0 26px; }
.g-title { margin: 0; font-weight: 800; font-size: clamp(36px, 5vw, 60px); line-height: .98; font-variation-settings: "wdth" 76; letter-spacing: -0.02em; }
.g-dek { font-family: var(--f-read); font-size: 22px; line-height: 1.45; margin: 16px 0 14px; color: var(--ink); }
.g-meta { font-size: 13.5px; color: var(--ink-2); }
.g-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.g-main { min-width: 0; max-width: 760px; }
.g-h2 { margin: 0 0 14px; font-size: 28px; font-weight: 760; line-height: 1.1; font-variation-settings: "wdth" 84; letter-spacing: -0.01em; }
.g-h3 { margin: 22px 0 6px; font-size: 18px; font-weight: 700; }
.g-sec { margin-top: 48px; }
.g-prose { font-family: var(--f-read); font-size: 18.5px; line-height: 1.68; color: var(--ink); }
.g-prose p { margin: 0 0 16px; }
.g-prose strong { font-weight: 650; }
.g-intro { margin-top: 36px; }
.g-intro > p:first-child::first-letter { font-family: var(--f-ui); font-weight: 800; float: left; font-size: 64px; line-height: .86; margin: 6px 10px 0 0; font-variation-settings: "wdth" 72; }
.g-list { padding-left: 22px; margin: 6px 0 0; }
.g-list li { margin: 0 0 10px; }
.g-method { margin-top: 40px; padding: 20px 22px; background: var(--sheet-2); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.g-method h3 { margin: 0 0 6px; font-size: 16px; }
.g-method p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--cobalt); color: #fff;
  font-weight: 700; font-size: 15.5px; padding: 12px 20px; border-radius: 999px; box-shadow: 0 6px 18px -8px var(--cobalt); white-space: nowrap; }
.cta:hover { color: #fff; filter: brightness(1.08); }
.cta .cta-price { font-weight: 600; opacity: .85; font-variant-numeric: tabular-nums; }
.cta.ghost { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }

.glance { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.gl-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 96px auto; gap: 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--rule); }
.gl-row:first-child { border-top: 0; }
.gl-prod { display: flex; gap: 14px; align-items: center; min-width: 0; }
.gl-prod .thumb { width: 56px; height: 56px; flex: none; }
.gl-award { display: block; font-size: 12.5px; font-weight: 750; color: var(--cobalt); margin-bottom: 1px; }
.gl-name { display: block; font-weight: 620; line-height: 1.25; }
.gl-price b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.gl-price span { font-size: 12px; color: var(--ink-3); }
.gl-cta .cta { padding: 9px 15px; font-size: 14px; }

.g-picks { margin-top: 20px; }
.g-pick { margin-top: 56px; padding-top: 34px; border-top: 3px solid var(--ink); scroll-margin-top: calc(var(--header-h) + 16px); }
.gp-top { display: flex; align-items: center; gap: 12px; }
.gp-rank { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: 19px; font-variation-settings: "wdth" 80; }
.gp-award { font-weight: 750; font-size: 15px; color: var(--cobalt); }
.gp-name { margin: 14px 0 8px; font-size: clamp(28px, 3vw, 38px); font-weight: 780; line-height: 1.04; font-variation-settings: "wdth" 80; letter-spacing: -0.015em; }
.gp-brand { display: block; font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin-bottom: 4px; font-variation-settings: "wdth" 100; }
.gp-summary { font-family: var(--f-read); font-size: 20px; line-height: 1.5; margin: 0 0 22px; color: var(--ink); }
.gp-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.gp-img { display: grid; place-items: center; background: #fff; border-radius: var(--r-lg); aspect-ratio: 1; padding: 22px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.gp-img { position: relative; }
.gp-img img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; }
.scorecard { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 16px 18px; }
.sc-top { display: flex; gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.sc-grade { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: var(--c); color: #fff;
  font-weight: 850; font-size: 30px; font-variation-settings: "wdth" 76; flex: none; }
.sc-label { font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.sc-rows { margin: 10px 0 0; }
.sc-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.sc-rows dt { color: var(--ink-2); }
.sc-rows dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.sc-note { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
.sc-certs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.sc-more { margin-top: 12px; font-size: 13.5px; }
.sc-more summary { cursor: pointer; color: var(--cobalt); font-weight: 600; }
.sc-trust { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; align-items: start; }
.proscons > div { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 16px 18px; }
.proscons h3 { margin: 0 0 8px; font-size: 15px; }
.proscons ul { list-style: none; margin: 0; padding: 0; }
.proscons li { position: relative; padding: 6px 0 6px 24px; font-size: 15px; line-height: 1.45; border-top: 1px solid var(--rule); }
.proscons li:first-child { border-top: 0; }
.pros li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 800; }
.cons li::before { content: "–"; position: absolute; left: 4px; color: var(--ink-3); font-weight: 800; }
.gp-bl { margin: 28px 0 8px; font-size: 18px; font-weight: 750; }
.gp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.gp-also { font-size: 14px; color: var(--ink-2); }
.gp-also a { color: var(--cobalt); font-weight: 600; }
.gp-details { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

.g-evidence ul { list-style: none; margin: 0; padding: 0; }
.g-evidence li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15.5px; line-height: 1.45; }
.g-evidence li:first-child { border-top: 0; }
.g-evidence h3 a { color: var(--ink); }
.g-evidence h3 a:hover { color: var(--cobalt); }
.cites { font-size: 11px; margin-left: 3px; }
.cites a { color: var(--cobalt); }
.closing-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.cc { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 14px; }
.cc .thumb { width: 72px; height: 72px; }
.cc .cta { margin-top: 10px; padding: 9px 15px; font-size: 14px; }
.g-sources ol { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); padding-left: 22px; }
.g-sources li { margin: 0 0 6px; scroll-margin-top: calc(var(--header-h) + 16px); }
.g-sources a { color: var(--cobalt); word-break: break-all; }
.g-disclosure { margin-top: 30px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 14px; }

.g-rail { position: sticky; top: calc(var(--header-h) + 20px); }
.rail-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px; text-align: center; }
.rail-card img { width: 100%; height: 170px; object-fit: contain; background: #fff; border-radius: var(--r-md); margin: 8px 0 12px; }
.rail-card .gl-name { font-size: 16px; }
.rail-stats { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 10px 0 14px; font-size: 14px; color: var(--ink-2); }
.rail-card .cta { width: 100%; }
.rail-toc { margin-top: 18px; padding: 6px 4px; }
.toc-h { font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 0 8px 6px; }
.rail-toc a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.rail-toc a span { color: var(--ink-3); font-variant-numeric: tabular-nums; width: 12px; }
.rail-toc a:hover { background: var(--sheet); color: var(--ink); }

.guide-banner { display: block; margin-top: 16px; padding: 12px 16px; border-radius: var(--r-md); background: var(--cobalt-wash); color: var(--cobalt); font-weight: 600; font-size: 14.5px; }
.guide-banner b { color: var(--ink); margin-right: 6px; }
.guide-badge { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--cobalt-wash); color: var(--cobalt); font-weight: 650; font-size: 13.5px; }

@media (max-width: 1100px) {
  .g-grid { grid-template-columns: minmax(0, 1fr); }
  .g-rail { display: none; }
}
@media (max-width: 700px) {
  .gl-row { grid-template-columns: minmax(0, 1fr) auto; }
  .gl-score, .gl-price { display: none; }
  .gp-body, .proscons, .closing-ctas { grid-template-columns: minmax(0, 1fr); }
  .gp-img { max-height: 280px; aspect-ratio: auto; height: 260px; }
  .g-prose { font-size: 17.5px; }
  .g-dek { font-size: 19px; }
}
.rail-where { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.cta { white-space: normal; text-align: center; }

/* score breakdown bars ---------------------------------------------------- */
.subbar { display: inline-block; width: 70px; height: 7px; border-radius: 4px; background: var(--sheet-2);
  box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.subbar i { display: block; height: 100%; background: var(--c); }
.sub-row { border-top: 1px solid var(--rule-strong); }
.sub-notes { font-size: 12.5px; color: var(--ink-2); padding: 0 0 6px; line-height: 1.4; }

/* UI review round -------------------------------------------------------- */
.m-title { display: none; }
.m-title h1 { margin: 2px 0 0; font-weight: 750; font-size: 28px; line-height: 1.05; font-variation-settings: "wdth" 80; }
@media (max-width: 900px) {
  .m-title { display: block; }
  .prod-title .p-brand, .prod-title h1 { display: none; }
}
.subchips { display: flex; flex-wrap: wrap; gap: 6px; }
.subchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 3px 9px; border-radius: 999px;
  background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); }
.subchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.subchip b { color: var(--ink); }
.inactive-ok { color: var(--good); font-weight: 650; white-space: nowrap; }
.inactive-warn { color: var(--ok); font-weight: 650; white-space: nowrap; }
.excip-notes { margin-top: 16px; background: var(--ok-wash); border-radius: var(--r-md); padding: 12px 16px; }
.excip-notes h3 { margin: 0 0 4px; font-size: 14px; }
.excip-notes .excip { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid rgb(0 0 0 / .06); }
.excip-notes .excip:first-of-type { border-top: 0; }
.excip-notes .e-flags { font-size: 12.5px; color: var(--ink-2); }
details.weaker > summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; padding: 6px 0; }
details.weaker { margin-top: 12px; }
details.weaker > summary { font-size: 14px; color: var(--cobalt); font-weight: 650; }
.cmp-add { position: relative; max-width: 460px; margin: 18px 0 0; }
.cmp-add input { width: 100%; height: 40px; border: 1px solid var(--rule); border-radius: 999px; padding: 0 16px; background: var(--sheet); }
.cmp-sug { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--sheet); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: 6px; box-shadow: 0 18px 40px -20px rgb(0 0 0 / .3); }
.cmp-sug button { width: 100%; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; text-align: left;
  border: 0; background: none; padding: 6px 8px; border-radius: 8px; font-size: 14px; }
.cmp-sug button:hover { background: var(--cobalt-wash); }
.empty-state + .cmp-add { margin: 0 auto; }

/* how-we-score tips: a small "?" that opens a shared popover (#tipbox) on hover, focus or tap */
button.tip, .p-head button.tip {
  display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 3px; padding: 0;
  border: 1px solid currentColor; border-radius: 50%; background: none; color: var(--ink-3);
  font: 700 10.5px/1 var(--f-ui); letter-spacing: 0; vertical-align: 0.12em; cursor: help;
  font-variation-settings: normal; opacity: .8; flex: none;
}
button.tip:hover, button.tip:focus-visible, button.tip[aria-describedby] { color: var(--cobalt); opacity: 1; }
.label h2 button.tip { vertical-align: 0.5em; }
.h-tip { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.subchip[data-tip] { cursor: help; }
.subchip[data-tip]:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
#tipbox {
  position: fixed; z-index: 1000; width: min(320px, calc(100vw - 24px)); padding: 12px 14px;
  background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 14px 40px -16px rgb(0 0 0 / .35); font: 400 13.5px/1.5 var(--f-ui); pointer-events: none;
}
#tipbox b { display: block; font-weight: 700; margin-bottom: 4px; }
#tipbox p { margin: 0; color: var(--ink-2); }
#tipbox p:only-child { color: var(--ink); }  /* a one-line tip (data-tiptext) has no title above it */

/* brand page ---------------------------------------------------------- */
.brand-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 10px; }
.bh-main .facts-line { margin-top: 8px; }
.facts-line .ext { color: var(--cobalt); font-weight: 600; }
.bcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.bcard { padding: 18px 20px 16px; display: flex; flex-direction: column; min-width: 0; }
.bcard h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.big-stat { font-size: 15px; color: var(--ink-2); }
.big-stat b { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin-right: 2px; }
.meter { display: block; height: 8px; border-radius: 99px; background: var(--rule); overflow: hidden; margin: 12px 0 14px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--good); }
.meter.sm { height: 6px; width: 90px; margin: 0; flex: none; }
.share { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.blist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.blist li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 5px 0; border-top: 1px solid var(--rule); }
.blist li:first-child { border-top: 0; }
.blist b { font-weight: 700; }
.hist { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; align-items: end; height: 110px; margin-top: 16px;
  border-bottom: 1px solid var(--rule); }
.hbin { height: 100%; display: flex; align-items: flex-end; cursor: default; }
.hbin:hover i { filter: brightness(1.08); }
.hbin i { display: block; width: 100%; background: var(--c); border-radius: 4px 4px 0 0; min-height: 0; }
.hist-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 5px; font-variant-numeric: tabular-nums; }
.bcard .checks { margin-top: 10px; }
.bsource { margin: auto 0 0; padding-top: 12px; font-size: 12px; color: var(--ink-3); }
.bbest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bbest .pick { grid-template-columns: 56px minmax(0, 1fr); }
.bbest .thumb { width: 56px; height: 56px; }
.bbest .p-stats { flex-wrap: nowrap; gap: 8px; }
.bbest .p-stats .num { font-size: 12.5px; white-space: nowrap; }
.btabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.btabs::-webkit-scrollbar { display: none; }
.btabs button { flex: none; border: 0; background: none; padding: 10px 12px; font: 600 13.5px var(--f-ui); color: var(--ink-2); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.btabs button:hover { color: var(--ink); }
.btabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.btabs .n { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .bcards { grid-template-columns: 1fr 1fr; } .bbest { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .bcards, .bbest { grid-template-columns: 1fr; }
  .brand-head { grid-template-columns: auto minmax(0, 1fr); } .bh-score { grid-column: 1 / -1; } }

/* brand index --------------------------------------------------------- */
.btools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 20px 0 16px; }
.bsearch input { height: 36px; width: 260px; border: 1px solid var(--rule); border-radius: 10px; padding: 0 12px; background: var(--sheet);
  font: 500 14px var(--f-ui); color: var(--ink); }
.bsearch input:focus { outline: 2px solid var(--cobalt); outline-offset: -1px; border-color: transparent; }
.btools .sortsel select { max-width: 280px; }
.btable .b-name > span { display: grid; min-width: 0; }
.btable .bn { font-weight: 650; }
.btable .bcats { font-size: 12.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.th-sort:hover, .th-sort[aria-pressed="true"] { color: var(--ink); }
.btable th.r, .btable td.r { text-align: right; }
.bbest-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-2); max-width: 300px; }
.bbest-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bbest-link b { color: var(--ink); font-weight: 700; }
.bbest-link:hover span { color: var(--cobalt); text-decoration: underline; }
@media (max-width: 1100px) { .btable .hide-md { display: none; } }
@media (max-width: 700px) { .bsearch, .bsearch input { width: 100%; } }
.bscore { display: grid; gap: 3px; justify-items: start; }
.bavg { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bh-score .bavg { margin-top: 4px; }

/* ingredient pages ---------------------------------------------------- */
.with-amount .p-head, .with-amount .p-row { grid-template-columns: 64px minmax(0, 1fr) 130px 110px 150px 34px; }
.cell-amount { font-size: 14px; white-space: nowrap; }
.cell-amount b { font-weight: 700; }
.p-head button .faint { font-weight: 500; }
.dose-note { font-size: 12.5px; }
.ing-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.ing-links .guide-banner { margin: 0; }
.list-note { margin: -4px 0 4px; font-size: 13px; }
@media (max-width: 1180px) { .with-amount .p-head, .with-amount .p-row { grid-template-columns: 64px minmax(0, 1fr) 110px 100px 140px 34px; } }
@media (max-width: 900px) { .with-amount .p-row { grid-template-columns: 56px minmax(0, 1fr) 34px; } .with-amount .cell-amount { grid-area: nums; justify-self: end; } }
.ing-grid.flat { margin-top: 6px; }
.ing .i-benefit { color: var(--ink); font-weight: 500; }

/* buying-guide promo on category pages --------------------------------- */
.gpromos { display: grid; gap: 12px; margin-top: 22px; }
.gpromo { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 18px 22px;
  background: var(--sheet); border: 1.5px solid var(--cobalt); border-radius: var(--r-lg); color: var(--ink);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--cobalt) 12%, transparent); transition: transform .15s, box-shadow .15s; }
.gpromo:hover { transform: translateY(-1px); box-shadow: 0 10px 28px color-mix(in srgb, var(--cobalt) 18%, transparent); }
.gpr-img { width: 112px; height: 112px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.gpr-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); }
.gpr-title { margin: 4px 0 6px; font-size: 24px; font-weight: 850; line-height: 1.1; letter-spacing: -0.01em; }
.gpr-dek { margin: 0; font-family: var(--f-read); font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 70ch; }
.gpr-meta { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.gpr-cta { align-self: center; white-space: nowrap; padding: 11px 18px; border-radius: 999px; background: var(--cobalt); color: #fff; font-weight: 700; font-size: 14px; }
@media (max-width: 900px) { .gpromo { grid-template-columns: 72px minmax(0, 1fr); } .gpr-img { width: 72px; height: 72px; }
  .gpr-cta { grid-column: 1 / -1; justify-self: start; } .gpr-title { font-size: 20px; } }

/* search: buying guides first */
.suggest a.s-guide { margin: 6px 6px 8px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--cobalt) 9%, var(--sheet));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cobalt) 35%, transparent); }
.suggest a.s-guide.active, .suggest a.s-guide:hover { background: color-mix(in srgb, var(--cobalt) 16%, var(--sheet)); }
.suggest .s-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); }
.suggest .s-guide .s-name { font-weight: 700; }
.suggest .s-go { color: var(--cobalt); font-weight: 700; font-size: 16px; }
.suggest .s-none { padding: 14px 12px; color: var(--ink-2); font-size: 13.5px; }
.faq-list .faq-link { color: var(--cobalt); font-weight: 600; white-space: nowrap; }

/* a brand's manufacturing and testing claims, as short sentences */
.claims { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.45; }
.claims li { position: relative; padding-left: 18px; }
.claims li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }

/* compare tray: a product with no image gets its initial instead of a broken image */
.tray .t-img-empty { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: var(--ink-2); font-weight: 700; font-size: 13px; }
.tray .t-imgs > * + * { margin-left: -8px; box-shadow: 0 0 0 2px var(--ink); }

/* size / flavour picker at the top of the price card */
.sizes { margin: -2px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.sizes-head { font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 8px; }
.size-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.size-chip { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1.5px solid var(--rule);
  border-radius: var(--r-md, 10px); color: var(--ink); text-decoration: none; background: var(--sheet); }
.size-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.size-chip .sz { font-weight: 650; font-size: 14.5px; }
.size-chip .sz-pps { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.size-chip.cheap { border-color: var(--good); }
.size-chip.cheap .sz-pps { color: var(--good); font-weight: 650; }
.size-chip .best { position: absolute; top: -9px; right: 8px; background: var(--good); font-size: 11px; font-weight: 700;
  letter-spacing: .02em; padding: 1px 7px; border-radius: 999px; color: var(--sheet); }
.size-chip.on { border-color: var(--cobalt); background: var(--cobalt-wash); box-shadow: 0 0 0 1px var(--cobalt) inset; }
.size-chip.on .sz { color: var(--cobalt); }
.opt-select { justify-self: start; max-width: 100%; padding: 6px 30px 6px 11px; border: 1.5px solid var(--rule); border-radius: 10px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); background-color: var(--sheet); cursor: pointer; }
.opt-select:hover { border-color: var(--ink-3); }
.opt-select:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 1px; }
.save { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px;
  border: 1.5px solid var(--good); border-radius: 12px; background: var(--good-wash); font-size: 13.5px; color: var(--ink); }
.save-t b { color: var(--good); }
.save-go { flex: none; padding: 6px 14px; border-radius: 999px; background: var(--good); color: #fff; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.save-go:hover { filter: brightness(1.08); }
.nudge { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--good); text-decoration: none; }
.nudge:hover { text-decoration: underline; }

/* product page: dose check and real cost ------------------------------- */
.insights { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; margin-top: 40px; align-items: start; }
.insights.single { grid-template-columns: minmax(0, 1fr); }
.insights h2, .dose-check h2, .real-cost h2 { font-size: 22px; margin: 0; }
.dose-check, .real-cost { padding: 18px 20px 20px; }
.dc-sub { margin: 6px 0 10px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.dc-how { flex-basis: 100%; font-size: 13px; }
.dc-core { margin: 0 0 10px; font-size: 14px; }
.dc-count { font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.dc-count i { width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
.dc-count.low i, .dc-count.high i, .dc-count.under i { background: var(--ok); }
.dc-count.over i { background: var(--low); }
.dc-rows { border-top: 1px solid var(--rule); }
.dc-row { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 7.5em; gap: 14px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.dc-row.unscored { opacity: .6; }
.dc-name { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.dc-forms { font-size: .82em; font-weight: 500; color: var(--ink-2); }
.dc-form { cursor: help; border-bottom: 1px dotted currentColor; }
.dc-form i { font-style: normal; font-weight: 700; margin-left: 2px; }
.dc-form.best, .dc-form.good { color: var(--good); }
.dc-form.poor { color: var(--low); }
.dc-amt { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dc-row.low .dc-amt, .dc-row.high .dc-amt, .dc-row.under .dc-amt { color: var(--ok); }
.dc-row.over .dc-amt { color: var(--low); }
.dc-scale { position: relative; height: 14px; }
.dc-scale .track { position: absolute; left: 0; right: 0; top: 5px; height: 4px; border-radius: 3px; background: var(--sheet-2); box-shadow: inset 0 0 0 1px var(--rule); }
.dc-scale .band { position: absolute; top: 5px; height: 4px; border-radius: 3px; background: var(--good); opacity: .55; }
.dc-scale .band.min { opacity: .2; }
.dc-scale .limit { position: absolute; top: 0; height: 14px; width: 2px; background: var(--low); }
.dc-scale .span { position: absolute; top: 6px; height: 2px; background: var(--ink-2); opacity: .55; }
.dc-scale .dot { position: absolute; top: 1px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--sheet);
  box-shadow: 0 0 0 1px var(--ink-3); background: var(--good); }
.dc-scale .dot.low, .dc-scale .dot.high, .dc-scale .dot.under { background: var(--ok); }
.dc-scale .dot.over { background: var(--low); }
.dc-more summary { cursor: pointer; font-weight: 600; color: var(--cobalt); padding: 10px 0 2px; }
.rc-big { margin-top: 10px; }
.rc-big .big { font-size: 30px; font-weight: 750; font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; }
.rc-line { font-size: 14px; margin-top: 2px; }
.rc-eff { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; }
.rc-eff b { font-size: 20px; font-variant-numeric: tabular-nums; }
.rc-compare { margin-top: 8px; font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: var(--r-md); }
.rc-compare.good { background: var(--good-wash); color: var(--good); }
.rc-compare.ok { background: var(--sheet-2); color: var(--ink-2); }
.rc-compare.low { background: var(--low-wash); color: var(--low); }
.rc-cheaper { display: block; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--good); text-decoration: none; }
.rc-cheaper:hover { text-decoration: underline; }
@media (max-width: 900px) { .insights { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .dc-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; } .dc-scale { grid-column: 1 / -1; grid-row: 2; } }

/* small one-off adjustments (were inline styles in app.js) */
.l-rule-md.flush-top { margin-top: 0; }
.buy .no-stores { margin: 10px 0 0; }
.prose.e-detail { margin-top: 10px; }
.muted.aliases { margin: 8px 0 0; }
.dose-top .big.upper-limit { color: var(--low); }
.cmp-sug .cmp-none { padding: 10px; }

/* product page design prototypes (/products2, /products3) ------------- */
.proto-note { font-size: 12.5px; color: var(--ink-3); margin: 6px 0 4px; }
.proto-note a { color: var(--cobalt); }
.pd-score { display: flex; align-items: center; gap: 18px; }
.pd-score .word { font-size: 20px; font-weight: 700; font-variation-settings: "wdth" 85; }
.pd-score .ctx { color: var(--ink-2); font-size: 14px; }
.subbars { display: grid; gap: 7px; }
.subbar-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 2.6em; gap: 10px; align-items: center; font-size: 14px; cursor: help; }
.subbar-row .subbar { width: 100%; height: 8px; margin: 0; }
.subbar-row b { text-align: right; }
.cert-chip { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--good-wash); color: var(--good); margin: 0 6px 6px 0; }

/* A: main column + sticky buying column */
.pd-a .pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; margin-top: 14px; }
.pd-a .pd-main { display: grid; gap: 22px; min-width: 0; }
.pd-a .pd-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: start; }
.pd-a .pd-head .gallery { position: static; }
.pd-a .pd-head h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; margin: 2px 0 8px; }
.pd-a .pd-certs { margin-top: 12px; }
.pd-a .pd-scorecard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; padding: 18px 22px; }
.pd-a .labels { margin-top: 0; }
.pd-a .pd-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.pd-a .pd-faq .faq { border-bottom: 1px solid var(--rule); }
.pd-a .pd-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.pd-a .pd-side .buy { margin-top: 0; }
.pd-a .pd-side-act .btn { width: 100%; justify-content: center; }
@media (max-width: 1080px) {
  .pd-a .pd-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pd-a .pd-main { display: contents; }  /* its parts join the grid, so the buying column can sit after the name */
  .pd-a .pd-head { order: 0; }
  .pd-a .pd-side { position: static; order: 1; }
  .pd-a .pd-main > :not(.pd-head) { order: 2; }
}
@media (max-width: 640px) {
  .pd-a .pd-head, .pd-a .pd-scorecard, .pd-a .pd-faq { grid-template-columns: minmax(0, 1fr); }
  .pd-a .pd-head .gallery { max-width: 260px; }
}

/* B: three-column first screen, key numbers, cards */
.pd-b .pd-hero { display: grid; grid-template-columns: 280px minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 14px; }
.pd-b .pd-hero .gallery { position: static; }
.pd-b .pd-mid h1 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; margin: 2px 0 8px; }
.pd-b .pd-mid .pd-score { margin: 18px 0 14px; padding-top: 16px; border-top: 1px solid var(--rule); }
.pd-b .pd-mid-act { margin-top: 14px; }
.pd-b .pd-buycol .buy { margin-top: 0; }
.pd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 26px; }
.pd-tiles .tile { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 12px 14px; display: grid; gap: 2px; }
.pd-tiles .k { font-size: 12.5px; font-weight: 650; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.pd-tiles .v { font-size: 22px; font-weight: 750; font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; }
.pd-tiles .s { font-size: 12.5px; color: var(--ink-3); }
.pd-tiles .tile.good .v { color: var(--good); }
.pd-tiles .tile.low .v { color: var(--low); }
.pd-b .pd-cards { columns: 2 440px; column-gap: 20px; margin-top: 20px; }
.pd-b .pd-cards > * { break-inside: avoid; margin: 0 0 20px; display: block; width: 100%; }
.pd-b .pd-cards .label { margin: 0 0 20px; }
.pd-b .pd-faqcard { padding: 16px 18px; }
.pd-b .pd-faqcard h2 { font-size: 22px; margin: 0 0 6px; }
.pd-b .pd-exc { padding: 4px 18px 12px; }
@media (max-width: 1180px) {
  .pd-b .pd-hero { grid-template-columns: 240px minmax(0, 1fr); }
  .pd-b .pd-buycol { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .pd-b .pd-hero { grid-template-columns: minmax(0, 1fr); }
  .pd-b .pd-hero .gallery { max-width: 280px; }
}
.pd-b .pd-buycol .store-btn { padding: 6px 10px; font-size: 13px; }
.pd-b .pd-buycol .buy li a { gap: 8px; padding-left: 12px; }

/* narrow image columns (the prototypes): the tabs show just the thumbnail and its word, smaller */
.pd-a .gal-tabs button, .pd-b .gal-tabs button { gap: 6px; padding: 5px 6px; font-size: 13px; }
.pd-a .gal-tabs button img, .pd-b .gal-tabs button img { width: 28px; height: 28px; }

.seg { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--rule); border-radius: 10px; overflow: hidden; }
.seg-b { padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; border-right: 1px solid var(--rule); white-space: nowrap; }
.seg-b:last-child { border-right: 0; }
.seg-b:hover { background: var(--sheet-2); }
.seg-b.on { background: var(--cobalt); color: #fff; }
.seg-b.off { color: var(--ink-3); text-decoration: line-through; cursor: default; background: var(--sheet-2); }
.pa-prefs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pa-table { border: 1.5px solid var(--rule); border-radius: 12px; overflow: hidden; }
.pa-row { display: grid; grid-template-columns: 1fr auto 92px 84px; gap: 10px; align-items: center; padding: 9px 12px;
  color: var(--ink); text-decoration: none; border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; font-size: 14px; }
.pa-row:first-child { border-top: 0; }
.pa-row:hover { background: var(--sheet-2); }
.pa-row.on { background: var(--cobalt-wash); }
.pa-size { display: flex; align-items: center; gap: 9px; font-weight: 650; }
.pa-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink-3); flex: none; }
.pa-row.on .pa-dot { border: 4.5px solid var(--cobalt); }
.pa-price { color: var(--ink-2); text-align: right; }
.pa-pps { text-align: right; font-weight: 650; }
.pa-tag { font-size: 11.5px; font-weight: 700; color: var(--good); text-align: right; }
@media (max-width: 520px) { .pa-row { grid-template-columns: 1fr auto 76px; } .pa-tag { display: none; } }
