/* Layout concept: a pro-shop counter — sticky rink-navy header, filter rail
   beside a product wall, and a spec sheet for each stick with a lime
   "tape label" for the configuration code. */
:root {
  --bg: #eef3f6;          /* rink ice */
  --surface: #ffffff;
  --sunk: #e3eaef;
  --ink: #0f1b2c;         /* navy charcoal */
  --muted: #536276;
  --line: #d3dce4;
  --brand: #13233a;       /* header navy */
  --brand-ink: #f2f6f9;
  --lime: #b8e62a;
  --lime-ink: #18230a;
  --accent-text: #4c6e00; /* lime readable on light */
  --good: #17734a; --good-bg: #e2f3ea;
  --warn: #8f5200; --warn-bg: #fbefdc;
  --bad: #b42318;  --bad-bg: #fbe5e3;
  --info: #24548f; --info-bg: #e3edf8;
  --redline: #c8102e;
  --shadow: 0 1px 2px rgba(15, 27, 44, .06), 0 4px 16px rgba(15, 27, 44, .06);
  --font-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a121e; --surface: #111c2c; --sunk: #0d1724; --ink: #e6edf4; --muted: #95a5b8; --line: #23324a;
    --brand: #07101b; --brand-ink: #eef3f8; --lime: #c4f03c; --lime-ink: #15200a; --accent-text: #c4f03c;
    --good: #5fd39a; --good-bg: #10301f; --warn: #f0b45a; --warn-bg: #33240c; --bad: #ff8a80; --bad-bg: #3a1513;
    --info: #8db8ef; --info-bg: #13243b; --redline: #ff5a6e;
    --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;
  --brand: #07101b; --brand-ink: #eef3f8; --lime: #c4f03c; --lime-ink: #15200a; --accent-text: #c4f03c;
  --good: #5fd39a; --good-bg: #10301f; --warn: #f0b45a; --warn-bg: #33240c; --bad: #ff8a80; --bad-bg: #3a1513;
  --info: #8db8ef; --info-bg: #13243b; --redline: #ff5a6e;
  --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: 15px/1.5 var(--font-body); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); 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(--brand); color: var(--brand-ink); border-bottom: 3px solid var(--redline); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.logo { display: flex; align-items: baseline; gap: 2px; text-decoration: none; font: 800 italic 26px/1 var(--font-display); letter-spacing: .01em; color: var(--brand-ink); }
.logo b { color: var(--lime); font-weight: 800; }
.logo small { font: 600 13px/1 var(--font-mono); color: #9fb0c4; margin-left: 2px; font-style: normal; }
nav.main { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
nav.main button { background: transparent; border: 0; color: #c9d5e2; padding: 10px 12px; min-height: 44px; border-radius: 8px; cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
nav.main button:hover { color: #fff; background: rgba(255, 255, 255, .07); }
nav.main button[aria-current="page"] { color: var(--lime-ink); background: var(--lime); }
@media (max-width: 620px) {
  .site-header .wrap { gap: 6px; padding-block: 8px 6px; }
  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; font-size: 14px; }
}
.count { font: 600 12px/1 var(--font-mono); background: rgba(255, 255, 255, .14); padding: 3px 6px; border-radius: 99px; }
nav.main button[aria-current="page"] .count { background: rgba(0, 0, 0, .12); }

.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(--line); background: var(--surface); cursor: pointer; font-weight: 600; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(.96); }
.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; }
.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-mono); 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(30px, 5vw, 44px); font-weight: 800; font-style: italic; }
.page-head p { margin: 4px 0 0; max-width: 62ch; color: var(--muted); }
.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; }
@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); }
.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(--line); background: var(--surface); cursor: pointer; font: 700 italic 22px/1 var(--font-display); text-align: left; }
.dept .num { font: 600 13px var(--font-mono); color: var(--muted); font-style: normal; }
.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); }
.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; }
.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-size: 22px; font-weight: 700; }
.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/1 var(--font-display); font-variant-numeric: tabular-nums; }
.price small { font: 600 12px/1 var(--font-mono); 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; }
@media (max-width: 900px) {
  .detail { 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; 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 { 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; }
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: 700 20px/1.2 var(--font-display); }
.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 { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer.site .wrap { padding-block: 20px; display: grid; gap: 6px; }

@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; }
