/* Layout: editorial review article - a verdict box up top, a reading column with a sticky
   contents rail beside it on desktop, a sticky buy bar on phones. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #151922;
  --muted: #5b6372;
  --line: #e1e4ea;
  --accent: #2343c9;      /* links, score, primary CTA */
  --accent-ink: #ffffff;
  --accent-soft: #e8ecfb;
  --pro: #11764f;
  --pro-soft: #e5f3ec;
  --con: #b4401a;
  --con-soft: #fbece5;
  --star: #e2a10b;
    --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11141a; --surface: #181c24; --ink: #e9ecf2; --muted: #9aa3b4; --line: #2a303c;
    --accent: #8ea2ff; --accent-ink: #0d1020; --accent-soft: #222a48;
    --pro: #5fd3a2; --pro-soft: #17332a; --con: #ff9b74; --con-soft: #3a2219;
    --star: #f5c04a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11141a; --surface: #181c24; --ink: #e9ecf2; --muted: #9aa3b4; --line: #2a303c;
  --accent: #8ea2ff; --accent-ink: #0d1020; --accent-soft: #222a48;
  --pro: #5fd3a2; --pro-soft: #17332a; --con: #ff9b74; --con-soft: #3a2219;
  --star: #f5c04a; color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.65; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.ui { font-family: var(--font-ui); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Site header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.logo { font: 800 22px/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-size: 15px; }
.nav { display: flex; gap: 20px; font: 600 15px var(--font-ui); flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } }

/* Article head */
.crumbs { font: 500 14px var(--font-ui); color: var(--muted); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.kicker { font: 700 13px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 18px; }
h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.025em; margin-top: 8px; max-width: 22ch; }
.dek { font-size: 21px; color: var(--muted); max-width: 60ch; margin: 14px 0 0; }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 22px; padding: 16px 0; border-block: 1px solid var(--line); font-family: var(--font-ui); font-size: 15px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 16px var(--font-ui); color: var(--accent-ink); background: var(--accent); }
.avatar.alt { background: var(--pro); }
.person b { display: block; color: var(--ink); }
.person span { color: var(--muted); font-size: 14px; }
.person .avatar { color: var(--accent-ink); font-size: 16px; }
.dates { color: var(--muted); font-size: 14px; display: flex; flex-direction: column; }
.dates time { color: var(--ink); font-weight: 600; }
.disclosure { font: 14px/1.5 var(--font-ui); color: var(--muted); margin: 14px 0 0; max-width: 80ch; }

/* Verdict box */
.verdict { margin-top: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.verdict-top { display: grid; grid-template-columns: 220px 1fr; }
.verdict-media { background: var(--accent-soft); display: grid; place-items: center; padding: 22px; }
.verdict-main { padding: 24px 26px; min-width: 0; }
.score-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.score { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--accent) calc(var(--v) * 1%), var(--line) 0); }
.score > div { width: 76px; height: 76px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.score b { font: 800 28px/1 var(--font-display); }
.score small { display: block; font: 500 11px var(--font-mono); color: var(--muted); }
.score-label { font-family: var(--font-ui); }
.score-label .badge { display: inline-block; font: 700 12px var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--pro); background: var(--pro-soft); padding: 4px 10px; border-radius: 999px; }
.score-label h2 { font-size: 24px; margin-top: 6px; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 16px; }
.bottom-line { margin: 14px 0 0; font-size: 17px; }
.pc { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pc > div { padding: 20px 26px; min-width: 0; }
.pc > div + div { border-left: 1px solid var(--line); }
.pc h3 { font: 700 13px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.pc .pros h3 { color: var(--pro); } .pc .cons h3 { color: var(--con); }
.pc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font: 16px/1.45 var(--font-ui); }
.pc li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; }
.pc .pros li::before { content: "+"; font-weight: 800; color: var(--pro); background: var(--pro-soft); border-radius: 6px; text-align: center; height: 22px; line-height: 22px; }
.pc .cons li::before { content: "\2212"; font-weight: 800; color: var(--con); background: var(--con-soft); border-radius: 6px; text-align: center; height: 22px; line-height: 22px; }
.fit { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); font: 15px/1.5 var(--font-ui); }
.fit > div { padding: 16px 26px; }
.fit > div + div { border-left: 1px solid var(--line); }
.fit b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px 26px; border-top: 1px solid var(--line); background: var(--bg); font-family: var(--font-ui); }
.price { font: 800 26px var(--font-display); }
.price s { font: 500 16px var(--font-ui); color: var(--muted); margin-left: 6px; }
.price small { display: block; font: 500 13px var(--font-ui); color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 13px 22px; font: 700 16px var(--font-ui); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.buy .btn-primary { margin-left: auto; }
.buy .fine { flex-basis: 100%; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .verdict-top { grid-template-columns: 1fr; }
  .verdict-media { padding: 18px; }
  .pc, .fit { grid-template-columns: 1fr; }
  .pc > div + div, .fit > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .buy .btn-primary { margin-left: 0; flex: 1; }
}

/* Product art placeholder */
.pouch { width: 130px; max-width: 100%; aspect-ratio: 3 / 4; }

/* Body: reading column + rail */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; margin-top: 40px; align-items: start; }
.rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 20px); display: grid; gap: 18px; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .rail { display: none; } }
.article > * + * { margin-top: 22px; }
.article h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.015em; margin-top: 46px; scroll-margin-top: 20px; }
.article h3 { font-size: 21px; margin-top: 30px; }
.article p { margin: 0; max-width: 68ch; }
.article p + p { margin-top: 16px; }

.toc-m { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-family: var(--font-ui); }
.toc-m summary { padding: 14px 18px; font-weight: 700; cursor: pointer; }
.toc-m ol { margin: 0; padding: 0 18px 16px 38px; display: grid; gap: 6px; font-size: 16px; }
@media (max-width: 980px) { .toc-m { display: block; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-family: var(--font-ui); }
.toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 15px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { background: var(--bg); color: var(--ink); }
.toc a.on { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.mini-buy { display: grid; gap: 10px; }
.mini-buy .row { display: flex; align-items: center; gap: 12px; }
.mini-buy .pouch { width: 48px; }
.mini-buy b { font-size: 15px; line-height: 1.3; }
.mini-buy .mono { font-size: 13px; color: var(--muted); }

figure { margin: 0; }
.photo { background: var(--accent-soft); border-radius: 14px; aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; overflow: hidden; }
.photo svg { width: 100%; height: 100%; }
figcaption { font: 14px/1.5 var(--font-ui); color: var(--muted); margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery div { aspect-ratio: 1; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font: 600 12px var(--font-ui); color: var(--muted); text-align: center; padding: 6px; }

.specs { width: 100%; border-collapse: collapse; font: 15px/1.45 var(--font-ui); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 38%; color: var(--muted); font-weight: 600; background: var(--bg); }

.tested { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--pro); border-radius: 12px; padding: 20px 22px; font-family: var(--font-ui); }
.tested h3 { font-size: 18px; margin: 0 0 10px; }
.tested ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; }
.tested .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tested .facts span { font: 500 13px var(--font-mono); background: var(--pro-soft); color: var(--pro); padding: 4px 10px; border-radius: 999px; }

blockquote { margin: 30px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font: italic 24px/1.4 var(--font-body); color: var(--ink); max-width: 40ch; }
blockquote cite { display: block; margin-top: 8px; font: normal 600 14px var(--font-ui); color: var(--muted); }

.bars { display: grid; gap: 14px; font-family: var(--font-ui); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.bar { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; gap: 14px; font-size: 15px; }
.bar .track { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar .fill { height: 100%; border-radius: inherit; background: var(--accent); width: calc(var(--v) * 10%); }
.bar .mono { text-align: right; font-weight: 500; }
@media (max-width: 520px) { .bar { grid-template-columns: 1fr 44px; } .bar .track { grid-column: 1 / -1; grid-row: 2; } }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font: 15px/1.45 var(--font-ui); }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg); }
.compare tr:last-child td { border-bottom: 0; }
.compare .us { background: var(--accent-soft); }
.compare .tag { display: inline-block; font: 700 11px var(--font-ui); text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); margin-left: 6px; }
.compare .btn { padding: 8px 14px; font-size: 14px; white-space: nowrap; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { padding: 16px 20px; font: 700 17px var(--font-ui); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; font-size: 17px; }

.final { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 14px; }
.final h2 { margin-top: 0 !important; }
.final .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.author { display: grid; grid-template-columns: 72px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; font-family: var(--font-ui); }
.author .avatar { width: 72px; height: 72px; font-size: 24px; }
.author h3 { font-size: 19px; margin: 0; }
.author .role { color: var(--muted); font-size: 14px; margin-top: 2px; }
.author p { font-size: 16px; line-height: 1.55; margin: 10px 0 0; }
.author .links { display: flex; gap: 14px; margin-top: 10px; font-size: 14px; font-weight: 600; }

.related { margin-top: 56px; padding-block: 40px 60px; border-top: 1px solid var(--line); }
.related h2 { font-size: 26px; margin-bottom: 18px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .rel-grid { grid-template-columns: 1fr; } }
.rel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); font-family: var(--font-ui); display: grid; }
.rel .thumb { aspect-ratio: 16 / 9; background: var(--accent-soft); display: grid; place-items: center; }
.rel .thumb .pouch { width: 60px; }
.rel .meta { padding: 14px 16px 16px; display: grid; gap: 6px; }
.rel .meta small { color: var(--accent); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.rel .meta b { font: 700 17px/1.3 var(--font-display); }
.rel .meta span { color: var(--muted); font-size: 14px; }

.site-foot { background: var(--surface); border-top: 1px solid var(--line); font: 14px/1.6 var(--font-ui); color: var(--muted); }
.site-foot .wrap { padding-block: 28px 90px; display: grid; gap: 8px; }

/* Phone buy bar */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: none; align-items: center; gap: 12px; font-family: var(--font-ui);
  box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
.buybar .pouch { width: 34px; flex: none; }
.buybar div { min-width: 0; flex: 1; }
.buybar b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar span { font-size: 13px; color: var(--muted); }
.buybar .btn { padding: 10px 16px; font-size: 15px; }
@media (max-width: 980px) { .buybar { display: flex; } }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Pages beyond the review: listings, author, info */
.page-head { padding-block: 34px 8px; }
.page-head h1 { max-width: 30ch; }
.page-head p { color: var(--muted); font-size: 19px; margin: 10px 0 0; max-width: 60ch; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }
.rel .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel .thumb .logo-tile { width: 72px; height: 72px; }
.niche-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-family: var(--font-ui); }
.niche-chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.niche-chips a:hover { border-color: var(--accent); color: var(--accent); }
.empty { margin-top: 30px; padding: 30px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; color: var(--muted); font-family: var(--font-ui); }
.prose { max-width: 70ch; padding-block: 10px 60px; }
.prose h2 { font-size: 26px; margin-top: 34px; }
.prose p, .prose li { font-size: 18px; }
.pager { margin-top: 26px; font-family: var(--font-ui); }

/* Logo tile: a store logo on white, or the product's initial */
.logo-tile { width: 130px; max-width: 100%; aspect-ratio: 1; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font: 800 44px var(--font-display); color: var(--accent); }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; padding: 12%; background: #fff; }
.mini-buy .logo-tile, .buybar .logo-tile { width: 44px; border-radius: 10px; font-size: 18px; flex: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.gallery .shot { padding: 0; overflow: hidden; }

/* Review type and first-hand notes */
.kind { display: inline-flex; align-items: center; gap: 6px; }
.tester { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 22px; font-family: var(--font-ui); }
.tester h3 { font-size: 18px; margin: 0 0 8px; }
.tester p { font: italic 18px/1.6 var(--font-body); margin: 0; }
.coupon { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--font-ui); background: var(--pro-soft); color: var(--pro); border: 1px dashed var(--pro); border-radius: 8px; padding: 6px 12px; }
.coupon code { font-family: var(--font-mono); font-size: 15px; }
.preview-bar { background: var(--con-soft); color: var(--con); font: 600 14px var(--font-ui); text-align: center; padding: 8px 16px; }

/* Review head: title on the left, "at a glance" card on the right (desktop) */
.head { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.head-text { min-width: 0; }
.head h1 { max-width: none; }
.glance { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 14px; font-family: var(--font-ui); box-shadow: 0 10px 30px -18px rgba(21, 25, 34, .35); }
.glance-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.glance-top .logo-tile { width: 52px; border-radius: 12px; font-size: 22px; flex: none; }
.glance-top b { display: block; font-size: 16px; line-height: 1.25; }
.glance-top span { font-size: 13px; color: var(--muted); }
.glance-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.glance-facts > div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.glance-facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.glance-facts dd { margin: 2px 0 0; font: 800 22px/1.2 var(--font-display); }
.glance-facts dd small { font: 500 13px var(--font-mono); color: var(--muted); margin-left: 3px; }
.glance .coupon { justify-self: start; }
.glance .btn { width: 100%; }
.glance-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.glance-note b { color: var(--ink); }
@media (max-width: 980px) {
  .head { grid-template-columns: 1fr; gap: 0; }
  .glance { display: none; }
}
