/* PriceGenia public site.
   One family (Archivo) using its width axis: wide + heavy for the wordmark and
   prices, normal width for reading. One bold element: the shelf-tag yellow
   behind best prices. Everything else stays quiet. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-ext-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f4f6f5;
  --surface: #ffffff;
  --ink: #0f2b2a;
  --ink-2: #3d5654;
  --ink-3: #6a7f7c;
  --rule: #d3dcd9;
  --rule-strong: #a9b8b4;
  --tag: #ffd43b;
  --tag-ink: #2a2100;
  --down: #17784a;
  --down-bg: #e3f2ea;
  --up: #b3261e;
  --up-bg: #fbe9e7;
  --warn-bg: #fff6d6;
  --focus: #1f6feb;
  --radius: 4px;
  --wrap: 1180px;
  --gutter: clamp(16px, 3vw, 28px);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.125rem, 5vw, 3.25rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 750; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
small, .muted { color: var(--ink-3); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- masthead */
.masthead { background: var(--ink); color: #fff; }
.masthead a { color: #fff; }
.masthead-bar { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.wordmark-tag { width: 30px; height: 22px; flex-shrink: 0; }
.wordmark-text { font-stretch: 125%; font-weight: 900; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1; }
.masthead .search { flex: 1; max-width: 640px; }
.masthead-links { display: flex; gap: 16px; margin-left: auto; font-size: var(--step--1); white-space: nowrap; }
.masthead-links a { text-decoration: none; opacity: 0.9; }
.masthead-links a:hover { opacity: 1; text-decoration: underline; }
.count-badge { display: inline-block; min-width: 1.4em; padding: 0 4px; border-radius: 99px; background: var(--tag); color: var(--tag-ink); text-align: center; font-weight: 700; font-size: 0.75rem; line-height: 1.4; }
.count-badge:empty { display: none; }

.catnav { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.catnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a { display: block; padding: 10px 0; font-size: var(--step--1); text-decoration: none; white-space: nowrap; opacity: 0.85; }
.catnav a:hover, .catnav a[aria-current='page'] { opacity: 1; box-shadow: inset 0 -3px 0 var(--tag); }

/* ------------------------------------------------------------------ search */
.search { position: relative; display: flex; }
.search input {
  flex: 1; min-width: 0; font: inherit; font-size: var(--step-0);
  padding: 10px 14px; border: 2px solid transparent; border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius); background: #fff; color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--tag); }
.search button {
  font: inherit; font-weight: 700; padding: 0 18px; border: 0; cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0; background: var(--tag); color: var(--tag-ink);
}
.search button:hover { filter: brightness(0.95); }
.suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; background: #fff; color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15, 43, 42, 0.18);
  list-style: none; margin: 0; padding: 4px 0; max-height: 70vh; overflow: auto;
}
.suggest[hidden] { display: none; }
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; color: var(--ink); text-decoration: none; }
.suggest a:hover, .suggest [aria-selected='true'] a { background: var(--paper); }
.suggest .s-cat { color: var(--ink-3); font-size: var(--step--1); }
.suggest .s-price { font-weight: 700; white-space: nowrap; }

/* ------------------------------------------------------------------ banners */
.notice { padding: 10px 0; font-size: var(--step--1); border-bottom: 1px solid var(--rule); }
.notice-demo { background: var(--warn-bg); }
.notice-demo strong { font-weight: 750; }

/* -------------------------------------------------------------------- price */
.price { font-stretch: 112%; font-weight: 800; white-space: nowrap; letter-spacing: -0.01em; }
.price-tag {
  display: inline-block; background: var(--tag); color: var(--tag-ink); padding: 2px 8px 3px; border-radius: 2px;
  font-stretch: 118%; font-weight: 850; white-space: nowrap; letter-spacing: -0.015em;
}
.delta { font-size: var(--step--1); font-weight: 650; white-space: nowrap; padding: 1px 6px; border-radius: 2px; }
.delta-down { color: var(--down); background: var(--down-bg); }
.delta-up { color: var(--up); background: var(--up-bg); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700;
  padding: 9px 16px; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--ink); color: #fff;
  text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap;
}
.btn:hover { background: #1b4240; border-color: #1b4240; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-small { padding: 5px 10px; font-size: var(--step--1); border-width: 1px; }
.btn[aria-pressed='true'] { background: var(--tag); border-color: var(--tag); color: var(--tag-ink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* --------------------------------------------------------------------- home */
.hero { padding: clamp(36px, 7vw, 84px) 0 clamp(28px, 5vw, 56px); border-bottom: 1px solid var(--rule); background: var(--surface); }
.hero h1 { font-size: var(--step-4); font-stretch: 110%; font-weight: 850; max-width: 17ch; margin-bottom: 18px; letter-spacing: -0.025em; }
.hero p.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; }
.hero .search { max-width: 720px; margin-top: 24px; }
.hero .search input { border: 2px solid var(--ink); border-right: 0; padding: 14px 16px; font-size: var(--step-1); }
.hero .search input:focus { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--tag); }
.hero .search button { padding: 0 26px; font-size: var(--step-1); }
.quick { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; font-size: var(--step--1); align-items: baseline; }
.quick a { padding: 4px 10px; border: 1px solid var(--rule-strong); border-radius: 99px; text-decoration: none; background: var(--paper); }
.quick a:hover { border-color: var(--ink); }

.section { padding: clamp(28px, 5vw, 52px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-3); font-size: var(--step--1); }

.moves { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); }
.moves th, .moves td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.moves th { font-size: var(--step--1); font-weight: 600; color: var(--ink-3); background: var(--paper); }
.moves td.num, .moves th.num { text-align: right; }
.moves tr:last-child td { border-bottom: 0; }
.moves a { text-decoration: none; font-weight: 600; }
.moves a:hover { text-decoration: underline; }

.cat-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 32px; }
.cat-index h3 { font-size: var(--step-0); margin-bottom: 6px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; }
.cat-index h3 a { text-decoration: none; }
.cat-index h3 span { color: var(--ink-3); font-weight: 500; }
.cat-index ul { list-style: none; margin: 0; padding: 0; }
.cat-index li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dotted var(--rule); font-size: 0.9375rem; }
.cat-index li span { color: var(--ink-3); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 44px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-stretch: 120%; border-radius: 50%;
}
.steps h3 { font-size: var(--step-0); margin-bottom: 4px; }
.steps p { color: var(--ink-2); margin: 0; font-size: 0.9375rem; }

.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; }
.guide-list li { padding: 14px 0; border-top: 1px solid var(--rule); }
.guide-list a { font-weight: 700; text-decoration: none; font-size: var(--step-1); line-height: 1.25; }
.guide-list a:hover { text-decoration: underline; }
.guide-list p { margin: 6px 0 0; color: var(--ink-2); font-size: 0.9375rem; }

/* ---------------------------------------------------------- listing layout */
.page-head { padding: 24px 0 16px; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { color: var(--ink-2); max-width: 70ch; margin: 0; }
.crumbs { font-size: var(--step--1); color: var(--ink-3); margin-bottom: 10px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--rule-strong); }
.crumbs a { color: var(--ink-2); }

.listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding-bottom: 48px; }
.filters { font-size: 0.9375rem; }
.filters details { border-top: 1px solid var(--rule); padding: 10px 0; }
.filters summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: '+'; color: var(--ink-3); }
.filters details[open] summary::after { content: '−'; }
.filters .opts { margin-top: 8px; display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.filters label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.filters label span { margin-left: auto; color: var(--ink-3); font-size: var(--step--1); }
.filters input[type='checkbox'], .filters input[type='radio'] { accent-color: var(--ink); width: 16px; height: 16px; }
.filters .range { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.filters .range input { width: 100%; font: inherit; padding: 6px 8px; border: 1px solid var(--rule-strong); border-radius: var(--radius); }
.filters .apply { margin-top: 14px; width: 100%; }
.filters-toggle { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.active-filters a { font-size: var(--step--1); padding: 3px 10px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 99px; text-decoration: none; }
.active-filters a::after { content: ' ×'; color: var(--ink-3); }

.search-note { margin: 0 0 10px; padding: 10px 14px; background: var(--surface); border-left: 4px solid var(--tag); font-size: 0.9375rem; }
.search-note a { color: var(--ink-2); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; font-size: 0.9375rem; }
.results-bar select { font: inherit; padding: 6px 8px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--surface); }

.results { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); }
.result { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; padding: 16px; border-bottom: 1px solid var(--rule); align-items: center; }
.result:last-child { border-bottom: 0; }
.result h2 { font-size: var(--step-0); font-weight: 650; margin: 0 0 4px; }
.result h2 a { text-decoration: none; }
.result h2 a:hover { text-decoration: underline; }
.result h2 a::after { content: ''; position: absolute; inset: 0; } /* whole row clickable */
.result { position: relative; }
.result .specs { margin: 0; color: var(--ink-2); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.result .price-col { text-align: right; min-width: 140px; }
.result .price-col .from { font-size: var(--step--1); color: var(--ink-3); display: block; }
.result .price-col .meta { font-size: var(--step--1); color: var(--ink-3); display: block; margin-top: 4px; }
.result .actions { position: relative; z-index: 2; margin-top: 6px; display: flex; gap: 6px; justify-content: flex-end; }

.thumb { width: 88px; height: 88px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.thumb-initials { font-stretch: 125%; font-weight: 850; color: var(--ink-3); font-size: 1.25rem; letter-spacing: -0.02em; }

.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--rule-strong); border-radius: var(--radius); text-decoration: none; background: var(--surface); }
.pagination [aria-current='page'] { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty { background: var(--surface); border: 1px solid var(--rule); padding: 32px; }
.empty h2 { font-size: var(--step-1); }
.empty ul { margin: 0; padding-left: 20px; color: var(--ink-2); }

.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.subcats a { padding: 6px 12px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius); text-decoration: none; font-size: 0.9375rem; }
.subcats a span { color: var(--ink-3); margin-left: 4px; }

/* ------------------------------------------------------------------ product */
.product-top { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding: 8px 0 32px; align-items: start; }
.product-id { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
.product-image { width: 200px; height: 200px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-image .thumb-initials { font-size: 2.5rem; }
.product-id h1 { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-bottom: 8px; }
.product-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 14px; font-size: 0.9375rem; color: var(--ink-2); }
.product-facts dt { display: inline; color: var(--ink-3); }
.product-facts dd { display: inline; margin: 0 0 0 4px; font-weight: 600; color: var(--ink); }
.product-facts div { white-space: nowrap; }
.keyspecs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.keyspecs li { padding: 4px 10px; border: 1px solid var(--rule-strong); border-radius: 2px; font-size: 0.875rem; background: var(--surface); }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.best { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; }
.best .label { font-size: 0.9375rem; color: var(--ink-2); margin: 0 0 6px; }
.best .price-tag { font-size: clamp(2rem, 4vw, 2.5rem); padding: 4px 12px 6px; }
.best .where { margin: 10px 0 2px; font-size: var(--step-1); font-weight: 650; }
.best .checked { font-size: var(--step--1); color: var(--ink-3); margin: 0 0 14px; }
.best .btn { width: 100%; padding: 12px; font-size: var(--step-1); }
.best .spread { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--ink-2); }
.best-none { background: var(--surface); border: 1px dashed var(--rule-strong); padding: 20px; border-radius: var(--radius); }

.offers-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--surface); }
.offers { width: 100%; border-collapse: collapse; min-width: 720px; }
.offers caption { text-align: left; padding: 12px 16px; font-size: var(--step--1); color: var(--ink-3); caption-side: bottom; border-top: 1px solid var(--rule); }
.offers th, .offers td { padding: 14px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.offers th { font-size: var(--step--1); font-weight: 600; color: var(--ink-3); background: var(--paper); }
.offers .num { text-align: right; }
.offers tbody tr:last-child td { border-bottom: 0; }
.offers .shop { font-weight: 700; }
.offers .seller { display: block; font-size: var(--step--1); color: var(--ink-3); font-weight: 400; }
.offers .best-row { background: #fffbe8; }
.offers .stale td { color: var(--ink-3); }
.offers .stale .price { color: var(--ink-2); }
.offers .unavailable td { color: var(--ink-3); }
.offers .diff { display: block; font-size: var(--step--1); color: var(--ink-3); font-weight: 500; }
.offers .warn { display: block; font-size: var(--step--1); color: #7a5b00; }
.offers .total { font-weight: 700; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 650; padding: 1px 6px; border-radius: 2px; border: 1px solid var(--rule-strong); color: var(--ink-2); background: var(--paper); white-space: nowrap; }
.badge-new { border-color: #9cc9b2; color: var(--down); background: var(--down-bg); }
.badge-cond { border-color: #e2b8b4; color: var(--up); background: var(--up-bg); }
.badge-sponsored { border-color: #d6bf63; background: var(--warn-bg); color: #6a5300; }
.stock-in { color: var(--down); font-weight: 600; }
.stock-out { color: var(--up); }

.sponsored { border: 1px solid #d6bf63; background: #fffdf3; padding: 12px 16px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.chart { background: var(--surface); border: 1px solid var(--rule); padding: 16px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 10px 0 0; padding: 0; font-size: var(--step--1); }
.chart .legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 6px; }
.chart .legend .c0 { background: #0f2b2a; } .chart .legend .c1 { background: #1f6feb; } .chart .legend .c2 { background: #b3261e; }
.chart .legend .c3 { background: #7a5b00; } .chart .legend .c4 { background: #6e3fb0; } .chart .legend .c5 { background: #17784a; }
.stat-row { display: flex; gap: 24px; flex-wrap: wrap; margin: 0 0 12px; }
.stat-row div { font-size: var(--step--1); color: var(--ink-3); }
.stat-row strong { display: block; font-size: var(--step-1); color: var(--ink); font-stretch: 112%; }

.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); }
.spec-table th, .spec-table td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; vertical-align: top; }
.spec-table th { width: 40%; color: var(--ink-2); font-weight: 500; }

.panel { background: var(--surface); border: 1px solid var(--rule); padding: 16px 20px; }
.panel h3 { font-size: var(--step-0); }
.form-row { display: grid; gap: 4px; margin-bottom: 12px; }
.form-row label { font-weight: 600; font-size: 0.9375rem; }
.form-row input, .form-row select, .form-row textarea { font: inherit; padding: 9px 10px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: #fff; width: 100%; }
.form-row .hint { font-size: var(--step--1); color: var(--ink-3); }
.flash { padding: 12px 16px; margin: 16px 0; border-radius: var(--radius); border: 1px solid; }
.flash-ok { background: var(--down-bg); border-color: #9cc9b2; }
.flash-error { background: var(--up-bg); border-color: #e2b8b4; }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; border: 1px solid var(--rule); background: var(--surface); }
.related li { padding: 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); position: relative; }
.related a { text-decoration: none; font-weight: 600; display: block; margin-bottom: 6px; }
.related a::after { content: ''; position: absolute; inset: 0; }

/* compare */
.compare-table { border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); min-width: 600px; }
.compare-table th, .compare-table td { border: 1px solid var(--rule); padding: 10px 14px; vertical-align: top; text-align: left; min-width: 180px; }
.compare-table thead th { background: var(--paper); }
.compare-table tbody th { color: var(--ink-2); font-weight: 500; background: var(--paper); }

/* article */
.article { max-width: 70ch; padding-bottom: 56px; }
.article h1 { font-size: var(--step-4); font-stretch: 105%; font-weight: 800; }
.article .standfirst { font-size: var(--step-1); color: var(--ink-2); }
.article .byline { font-size: var(--step--1); color: var(--ink-3); border-bottom: 1px solid var(--rule); padding-bottom: 14px; margin-bottom: 24px; }
.article-body { font-size: 1.0625rem; line-height: 1.65; }
.article-body h2 { margin-top: 1.6em; font-size: var(--step-2); }
.article-body table { border-collapse: collapse; width: 100%; margin: 1em 0 1.5em; font-size: 0.9375rem; background: var(--surface); }
.article-body th, .article-body td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.article-body th { background: var(--paper); }
.article-body li { margin-bottom: 0.4em; }
.prose { max-width: 70ch; }

/* ads */
.ad-slot { margin: 24px 0; min-height: 100px; display: flex; flex-direction: column; align-items: center; }
.ad-slot .ad-label { font-size: 0.75rem; color: var(--ink-3); align-self: flex-start; }

/* footer */
.footer { background: var(--ink); color: #c8d6d3; margin-top: 48px; padding: 40px 0 28px; font-size: 0.9375rem; }
.footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h2 { font-size: var(--step-0); color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer .fine { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 28px; padding-top: 16px; font-size: var(--step--1); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .product-top { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .listing { grid-template-columns: 1fr; gap: 12px; }
  .filters { display: none; }
  .filters.open { display: block; background: var(--surface); border: 1px solid var(--rule); padding: 8px 16px 16px; }
  .filters-toggle { display: inline-flex; }
  .masthead-links .hide-sm { display: none; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .masthead-bar { flex-wrap: wrap; gap: 10px; }
  .masthead .search { order: 3; flex-basis: 100%; max-width: none; }
  .result { grid-template-columns: 64px minmax(0, 1fr); }
  .thumb { width: 64px; height: 64px; }
  .result .price-col { grid-column: 2; text-align: left; min-width: 0; }
  .result .actions { justify-content: flex-start; }
  .moves .hide-sm { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero .search { flex-wrap: wrap; }
  .hero .search input { flex-basis: 100%; border-right: 2px solid var(--ink); border-radius: var(--radius) var(--radius) 0 0; }
  .hero .search button { flex-basis: 100%; padding: 12px; border-radius: 0 0 var(--radius) var(--radius); }
  .product-id { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .product-image { width: 72px; height: 72px; }
  .product-image .thumb-initials { font-size: 1.5rem; }
  .product-id h1 { font-size: 1.375rem; }
  .product-id > div:last-child { grid-column: 1 / -1; }
  .product-id h1 { grid-column: auto; }
  .offers-wrap { border: 0; background: transparent; overflow: visible; }
  .offers { min-width: 0; }
  .offers thead { display: none; }
  .offers, .offers tbody, .offers tr, .offers td { display: block; width: 100%; }
  .offers caption { display: block; padding: 10px 0; border: 0; }
  .offers tr { background: var(--surface); border: 1px solid var(--rule); margin-bottom: 10px; padding: 10px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .offers td { padding: 0; border: 0; text-align: left; }
  .offers td.num { text-align: left; }
  .offers td[data-label='Shop'] { grid-column: 1 / -1; font-size: var(--step-1); }
  .offers td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; color: var(--ink-3); }
  .offers td[data-label='Shop']::before { display: none; }
  .offers td.go { grid-column: 1 / -1; margin-top: 6px; }
  .offers td.go .btn { width: 100%; padding: 10px; font-size: var(--step-0); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .masthead, .footer, .ad-slot, .filters, .product-actions { display: none; }
}
