/* Hockey Deals Club brand (selected identity 05, 2026-10-18): white header with the outlined
   logo, bright canvas, white cards, lime primary actions with ink text and border, navy footer.
   Barlow Condensed for the hero and short display headings only; Inter for everything else. */
@font-face { font-family: "Inter"; src: url("fonts/inter/Inter-Variable.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlowcondensed/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --bg: #f6f8fa;          /* canvas */
  --surface: #ffffff;
  --sunk: #eef2f6;
  --ink: #12263a;
  --muted: #526176;       /* passes 4.5:1 on white and canvas */
  --line: #cbd5e1;        /* decorative only */
  --control: #64748b;     /* control borders */
  --brand: #12263a;       /* footer navy */
  --brand-ink: #ffffff;
  --header-bg: #ffffff;
  --header-ink: #12263a;
  --lime: #c4f042;
  --lime-hover: #b5e238;
  --lime-ink: #12263a;
  --accent-text: #12263a; /* lime is never text on light surfaces */
  --link-hover: #2563eb;
  --focus: #2563eb; --focus-gap: #ffffff;
  --good: #166534; --good-bg: #dcfce7;
  --warn: #854d0e; --warn-bg: #fef9c3;
  --bad: #b91c1c;  --bad-bg: #fee2e2;
  --info: #24548f; --info-bg: #e3edf8;
  --shadow: 0 1px 2px rgba(18, 38, 58, .05), 0 4px 16px rgba(18, 38, 58, .05);
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Inter", system-ui, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a121e; --surface: #111c2c; --sunk: #0d1724; --ink: #e6edf4; --muted: #95a5b8; --line: #23324a; --control: #6b7f99;
    --brand: #07101b; --brand-ink: #eef3f8; --header-bg: #0d1a2b; --header-ink: #e6edf4;
    --lime: #c4f042; --lime-hover: #b5e238; --lime-ink: #12263a; --accent-text: #c4f042; --link-hover: #8db8ef;
    --focus: #c4f042; --focus-gap: #12263a;
    --good: #5fd39a; --good-bg: #10301f; --warn: #f0b45a; --warn-bg: #33240c; --bad: #ff8a80; --bad-bg: #3a1513;
    --info: #8db8ef; --info-bg: #13243b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a121e; --surface: #111c2c; --sunk: #0d1724; --ink: #e6edf4; --muted: #95a5b8; --line: #23324a; --control: #6b7f99;
  --brand: #07101b; --brand-ink: #eef3f8; --header-bg: #0d1a2b; --header-ink: #e6edf4;
  --lime: #c4f042; --lime-hover: #b5e238; --lime-ink: #12263a; --accent-text: #c4f042; --link-hover: #8db8ef;
  --focus: #c4f042; --focus-gap: #12263a;
  --good: #5fd39a; --good-bg: #10301f; --warn: #f0b45a; --warn-bg: #33240c; --bad: #ff8a80; --bad-bg: #3a1513;
  --info: #8db8ef; --info-bg: #13243b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font-body); }
a { color: inherit; }
a:hover { color: var(--link-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-gap); border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; font-style: normal; line-height: 1.1; text-wrap: balance; margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--header-bg); color: var(--header-ink); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; padding-block: 8px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; border-radius: 6px; }
.logo img { display: block; width: 220px; height: auto; aspect-ratio: 1000 / 240; }
nav.main { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
nav.main button { background: transparent; border: 0; color: var(--header-ink); padding: 10px 12px; min-height: 44px; border-radius: 8px; cursor: pointer; font: 600 14px/20px var(--font-body); display: inline-flex; align-items: center; gap: 6px; position: relative; }
nav.main button:hover { background: var(--bg); color: var(--header-ink); }
/* Selected: ink fill plus an underline bar, so the state never relies on color alone. */
nav.main button[aria-current="page"] { color: #fff; background: #12263a; box-shadow: inset 0 -3px 0 var(--lime); }
@media (max-width: 620px) {
  .site-header .wrap { gap: 4px; min-height: 64px; padding-block: 8px 4px; }
  .logo img { width: 180px; }
  nav.main { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav.main button { white-space: nowrap; padding: 8px 10px; }
}
.count { font: 600 12px/1 var(--font-body); font-variant-numeric: tabular-nums; background: var(--sunk); color: var(--header-ink); padding: 3px 6px; border-radius: 99px; }
nav.main button[aria-current="page"] .count { background: rgba(255, 255, 255, .18); color: #fff; }

.snapshot { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--line); }
.snapshot.fresh { background: var(--info-bg); color: var(--info); }
.snapshot .wrap { padding-block: 8px; font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

main { padding-block: 20px 64px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--control); background: var(--surface); cursor: pointer; font: 600 14px/20px var(--font-body); text-decoration: none; }
.btn:hover { border-color: var(--ink); background: var(--bg); color: var(--ink); }
.btn.primary { background: var(--lime); color: var(--lime-ink); border-color: #12263a; }
.btn.primary:hover { background: var(--lime-hover); color: var(--lime-ink); }
.btn.secondary { border-color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--bg); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
.linkish:hover { color: var(--link-hover); }
.watch-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: transparent; }

/* chips / pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.lime { background: var(--lime); color: var(--lime-ink); }
.tape { display: inline-block; font: 600 13px/1.2 var(--font-body); background: var(--lime); color: var(--lime-ink); padding: 4px 8px; border-radius: 3px; transform: skew(-6deg); }
.tape > span { display: inline-block; transform: skew(6deg); }

/* deals layout */
.page-head { display: flex; gap: 16px; align-items: end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; }
.page-head p { margin: 4px 0 0; max-width: 62ch; color: var(--muted); }
/* Compact home hero, connected to the catalogue right below it. */
.page-head.hero h1 { font-size: 56px; line-height: 56px; }
.page-head.hero p { color: var(--ink); max-width: 60ch; margin-top: 10px; }
.page-head.hero .actions { margin-top: 16px; }
.descriptor { margin: 0 0 6px; font: 600 14px/20px var(--font-body); color: var(--muted); }
@media (max-width: 620px) { .page-head.hero h1 { font-size: 40px; line-height: 42px; } }
.deals { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .deals { grid-template-columns: minmax(0, 1fr); } }

.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 18px; position: sticky; top: 84px; }
/* Desktop: the pinned filter panel scrolls on its own (touchpad/wheel over it), never past its end into the page. */
@media (min-width: 861px) { .filters { max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; } }
.results-meta label, .results-meta select { max-width: 100%; }
.store-toggles { display: flex; gap: 14px; margin: 2px 0 4px; }
@media (max-width: 860px) { .filters { position: static; } .filters:not(.open) .filter-body { display: none; } }
.filters .toggle { display: none; }
@media (max-width: 860px) { .filters .toggle { display: flex; } }
.filter-body { display: grid; gap: 18px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 32px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
input[type="search"], input[type="number"], input[type="text"], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg label { flex: 1; text-align: center; cursor: pointer; min-height: 44px; display: grid; place-items: center; padding: 6px 8px; border-right: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.seg label:last-child { border-right: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--ink); color: var(--bg); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--lime); outline-offset: -3px; }

.profile-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 16px; }
.profile-bar .label { font-weight: 700; }
.results-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.results-meta select { width: auto; min-height: 40px; }

.notice { background: var(--info-bg); color: var(--info); border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.cheaper-here { background: var(--good-bg); color: var(--good); margin: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.alerts-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; margin-bottom: 20px; }
@media (max-width: 860px) { .alerts-layout { grid-template-columns: minmax(0, 1fr); } }
.alerts-layout > .panel, .alert-editor { min-width: 0; }
.alert-editor { margin-bottom: 20px; border-color: var(--ink); }
.alert-editor form { display: grid; gap: 14px; }
.alert-editor h3 { margin-top: 6px; }
.btn.danger { background: var(--bad); color: #fff; border-color: transparent; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] .muted { color: inherit; opacity: .75; }
.more { display: flex; justify-content: center; margin-top: 20px; }
.shop-nav { display: grid; gap: 10px; margin-bottom: 18px; }
.dept-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .dept-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dept { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 56px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--control); background: var(--surface); cursor: pointer; font: 700 22px/1 var(--font-display); text-align: left; }
.dept .num { font: 600 13px var(--font-body); font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 480px) { .dept { font-size: 19px; padding: 10px 12px; flex-wrap: wrap; } .dept .num { font-size: 12px; } }
.dept:hover { border-color: var(--ink); }
.dept.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); box-shadow: inset 0 -3px 0 var(--lime); }
.dept.on .num { color: var(--lime); }
.shop-nav .cat-chips { margin-bottom: 0; }
.store-prices { border: 2px solid var(--ink); border-radius: 8px; padding: 12px 14px; display: grid; gap: 8px; }
.store-prices tr.selected td { background: var(--info-bg); }
.store-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.store-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--line); }
.store-rows li:first-child { border-top: 0; }
.store-rows li.selected { background: var(--info-bg); border-radius: 6px; }
.store-rows .num { text-align: right; }
.store-rows .row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 720px) {
  .store-rows li { grid-template-columns: minmax(0, 1fr) auto auto; }
  .store-rows .row-actions { grid-column: auto; justify-content: flex-end; }
}
.actions.buy { display: grid; gap: 8px; justify-items: start; }
.actions.buy .note { margin: 0; max-width: 34ch; }
.dim-choice { margin: 12px 0 0; }
.coverage { margin: -6px 0 16px; color: var(--muted); }
details.coverage summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }
details.coverage ul { margin: 6px 0 8px; padding-left: 18px; display: grid; gap: 2px; }
.also-at { margin: 0; padding-left: 16px; display: grid; gap: 2px; }
.curve-brand { display: grid; gap: 4px; margin-bottom: 8px; }
details.advanced { border-top: 1px solid var(--line); padding-top: 10px; }
details.advanced > summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
details.deal-box > summary { cursor: pointer; }
.store-line { margin: 0; display: grid; gap: 4px; }
.price-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 0; align-items: baseline; }
.price-facts dt { color: var(--muted); font-size: 13px; }
.price-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.price-facts .save { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--good-bg); color: var(--good); font-size: 12px; font-weight: 600; white-space: nowrap; }
.deal-box { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--sunk); display: grid; gap: 6px; }
.deal-box ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.deal-reason { margin: 0; color: var(--muted); }
.pill.deal { font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card .media { aspect-ratio: 16 / 10; max-width: 100%; background: var(--sunk); display: grid; place-items: center; overflow: hidden; position: relative; }
.card .media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.card .media .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card .body { padding: 14px 16px 16px; display: grid; gap: 10px; flex: 1; align-content: start; }
.card h2 { font: 650 16px/22px var(--font-body); }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card .retailer { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font: 700 28px/32px var(--font-body); font-variant-numeric: tabular-nums; }
.price small { font: 600 12px/1 var(--font-body); color: var(--muted); margin-left: 3px; }
.match-line { font-size: 14px; display: grid; gap: 4px; }
.match-line strong { font-weight: 700; }
.card .foot { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--sunk); flex-wrap: wrap; }

.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); background: repeating-linear-gradient(135deg, var(--sunk) 0 14px, var(--bg) 14px 28px); }
.placeholder svg { width: 64%; max-width: 260px; height: auto; }
.placeholder svg path, .placeholder svg circle { fill: none; stroke: var(--muted); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }

.empty { background: var(--surface); border: 1px dashed var(--muted); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; }
.empty h2 { font-size: 26px; }
.empty ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.relax { display: flex; flex-wrap: wrap; gap: 8px; }

/* detail */
.back { margin-bottom: 12px; }
.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.detail.halves { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) {
  .detail, .detail.halves { grid-template-columns: minmax(0, 1fr); }
  .detail > .stack:first-child { order: 2; }
  .detail-media { aspect-ratio: 16 / 9; }
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.panel h2 { font-size: 24px; }
.panel h3 { font-size: 19px; }
.detail-media { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.detail-media img { width: 100%; height: 100%; object-fit: contain; }
.detail h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.stack { display: grid; gap: 16px; min-width: 0; }
.selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.selector label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.offer-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: start; }
.offer-head .price { font-size: 44px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-mono); }
.mark.ok { background: var(--good-bg); color: var(--good); }
.mark.no { background: var(--bad-bg); color: var(--bad); }
.mark.unk { background: var(--warn-bg); color: var(--warn); }
.mark.sim { background: var(--info-bg); color: var(--info); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.note { font-size: 13px; color: var(--muted); margin: 0; }
details { border-top: 1px solid var(--line); padding-top: 10px; }
summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.wrap-cells td, table.wrap-cells th { white-space: normal; }
/* Phones: each row becomes a small block, so the table never scrolls sideways. */
@media (max-width: 620px) {
  table.wrap-cells thead { display: none; }
  table.wrap-cells, table.wrap-cells tbody, table.wrap-cells tr, table.wrap-cells td { display: block; width: auto; }
  table.wrap-cells tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.wrap-cells tr:last-child { border-bottom: 0; }
  table.wrap-cells td { border: 0; padding: 2px 12px; text-align: left; }
  table.wrap-cells td:first-child { font-weight: 600; }
  table.wrap-cells td:first-child .small { font-weight: 400; }
  table.wrap-cells td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 400; }
}
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--sunk); }
tbody tr:last-child td { border-bottom: 0; }
tr.selected td { background: var(--info-bg); }
tr.pick { cursor: pointer; }
tr.pick:hover td { background: var(--sunk); }
.compare { display: grid; gap: 10px; }
.cmp { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 8px; }
.cmp-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.cmp ul { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .split { grid-template-columns: 1fr; } }
.build { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.build .v { font: 650 18px/1.3 var(--font-body); }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font: 11px var(--font-mono); }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .series { stroke: var(--ink); stroke-width: 2; fill: none; }
.chart .dot { fill: var(--lime); stroke: var(--ink); stroke-width: 1.5; }

/* setup */
.setup { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .setup { grid-template-columns: minmax(0, 1fr); } }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.curve-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.curve-chips label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; min-height: 40px; cursor: pointer; font: 600 14px var(--font-mono); }
.curve-chips input { accent-color: var(--ink); }
.curve-chips label:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* Blade packets: one box per cross-brand curve family. */
.curve-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; margin-bottom: 12px; }
.curve-pack { position: relative; display: grid; gap: 4px; align-content: start; padding: 10px 12px 10px 38px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; }
.curve-pack:hover { border-color: var(--muted); }
.curve-pack input { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.curve-pack:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--sunk); }
.curve-pack:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.pack-name { display: flex; align-items: baseline; gap: 8px; font: 700 17px/1.2 var(--font-mono); }
.pack-type { font: 600 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pack-eq { font-size: 13px; line-height: 1.35; color: var(--ink); }
.pack-count { font: 600 12px/1 var(--font-mono); color: var(--muted); }
.curve-pack.empty .pack-name, .curve-pack.empty .pack-eq { opacity: .7; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 20; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* watchlist */
.watch-list { display: grid; gap: 12px; }
.watch-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
@media (max-width: 620px) { .watch-row { grid-template-columns: 64px minmax(0, 1fr); } .watch-row .side { grid-column: 1 / -1; } }
.thumb { width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.side { display: grid; gap: 8px; justify-items: end; }
@media (max-width: 620px) { .side { justify-items: start; } }
.alert-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.alert-form input { width: 120px; }

/* about */
.prose { max-width: 70ch; display: grid; gap: 12px; }
.prose p, .prose li { margin: 0; }
.prose ul { padding-left: 20px; margin: 0; display: grid; gap: 6px; }

.loading { padding: 48px 0; color: var(--muted); }
footer.site { background: var(--brand); color: #dbe3ec; font-size: 13px; }
footer.site .wrap { padding-block: 28px; display: grid; gap: 8px; max-width: 1240px; }
footer.site .footer-logo { display: block; width: 180px; height: auto; aspect-ratio: 1000 / 240; margin-bottom: 8px; }
footer.site a { color: #fff; }
footer.site .footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
footer.site .footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 3px; }
.prose h2 { font-size: 22px; margin: 18px 0 6px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 10px; }
footer.site :focus-visible { outline-color: var(--lime); box-shadow: 0 0 0 2px var(--brand); }

@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .15s ease, box-shadow .15s ease; }
  .card:hover { transform: translateY(-2px); }
}

/* Retailer referral offer: a compact panel beside (never inside) the price. */
.referral { border: 1px dashed var(--line); border-radius: 8px; padding: 12px 14px; background: var(--sunk); display: grid; gap: 6px; }
.referral:focus { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.referral h3 { margin: 0; font-size: 15px; }
.referral p { margin: 0; }
.referral .btn { justify-self: start; }
.referral-preview { color: var(--warn); font-weight: 600; }

/* My setup: numbered steps and category buttons that show what's saved. */
.step { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.step b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand, #12263a); color: #fff; font-size: 12px; }
.step-title { margin: 4px 0 -4px; }
.chip.filled { border-color: var(--good); }
.chip .chip-sum { font-weight: 500; opacity: .85; }

/* Onboarding: how it works, account prompts, and the bottom nudge bar. */
.how-it-works { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.how-it-works li { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.how-it-works b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #12263a; color: #fff; font-size: 14px; }
.how-it-works li.done b { background: var(--lime); color: #12263a; }
.how-it-works strong { display: block; font-size: 15px; }
.how-it-works span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (max-width: 760px) { .how-it-works { grid-template-columns: minmax(0, 1fr); gap: 8px; } .how-it-works li { padding: 10px 12px; } }
.muted-on-lime { font-weight: 500; opacity: .75; }
.notice.account-nudge { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.notice.account-nudge .actions { margin: 0; }
.nudge { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.nudge-inner { pointer-events: auto; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; background: #12263a; color: #fff;
  border-radius: 12px; padding: 10px 10px 10px 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); font-weight: 600; font-size: 14px; }
.nudge-inner span { flex: 1; }
.nudge-inner .btn.primary { background: var(--lime); color: #12263a; border-color: var(--lime); white-space: nowrap; }
.nudge-close { background: transparent; border: 0; color: #fff; font-size: 22px; line-height: 1; width: 32px; height: 32px; cursor: pointer; border-radius: 8px; }
.nudge-close:hover { background: rgba(255, 255, 255, .12); }
body:has(.nudge:not([hidden])) footer.site { padding-bottom: 80px; }
/* Phones: Sign in / Account stays visible at the top right instead of scrolling off the menu. */
@media (max-width: 620px) {
  .site-header .wrap { position: relative; }
  #account-btn { position: absolute; top: 14px; right: 12px; background: var(--lime); color: #12263a; }
  #account-btn[aria-current="page"] { background: #12263a; color: #fff; }
}
.check.pro-toggle { align-items: flex-start; background: var(--sunk); border-radius: 8px; padding: 10px 12px; }
.check.pro-toggle .hint { margin: 2px 0 0; }
