/* MJI News — design tokens & base. Port of /design/styles.css.
   Editorial Verge-style magazine layout with lime accent, Inter, light/dark.
*/

:root {
  /* Light (default) */
  --paper: #F7F7F8;
  --card: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #1A1A1C;
  --muted: #6B6B72;
  --line: #E6E6EA;
  --line-2: #F0F0F2;
  --accent: #C4FF1F;
  --accent-ink: #0A0A0A;
  --accent-soft: #F5FFD1;
  --danger: #E0322C;
  --good: #18A957;
  --warn: #E89B1A;
  --ad-bg: #FFFEF2;
  --ad-line: #E9E2A8;
  --shadow-card: 0 1px 0 rgba(10,10,10,0.04), 0 1px 2px rgba(10,10,10,0.03);
  --shadow-hover: 0 6px 24px -8px rgba(10,10,10,0.18), 0 2px 6px -2px rgba(10,10,10,0.08);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1320px;
  --gutter: 24px;
}

html[data-theme="dark"] {
  --paper: #0B0B0D;
  --card: #141417;
  --ink: #F7F7F8;
  --ink-2: #E4E4E8;
  --muted: #8A8A92;
  --line: #232328;
  --line-2: #1A1A1E;
  --accent: #D8FF3D;
  --accent-ink: #0A0A0A;
  --accent-soft: #2A3000;
  --ad-bg: #1A1907;
  --ad-line: #3D3812;
  --shadow-card: 0 1px 0 rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 28px -10px rgba(0,0,0,0.6), 0 2px 8px -2px rgba(0,0,0,0.4);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --paper: #0B0B0D;
    --card: #141417;
    --ink: #F7F7F8;
    --ink-2: #E4E4E8;
    --muted: #8A8A92;
    --line: #232328;
    --line-2: #1A1A1E;
    --accent: #D8FF3D;
    --accent-ink: #0A0A0A;
    --accent-soft: #2A3000;
    --ad-bg: #1A1907;
    --ad-line: #3D3812;
    --shadow-card: 0 1px 0 rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 28px -10px rgba(0,0,0,0.6), 0 2px 8px -2px rgba(0,0,0,0.4);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  transition: background-color .2s ease, color .2s ease;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }

/* ─────────────── Layout helpers ─────────────── */
.shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.row { display: flex; gap: 16px; align-items: center; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 12px); }

/* ─────────────── Type system ─────────────── */
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kicker.on-accent { color: var(--accent-ink); }
.kicker .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block;
}
.kicker a:hover { text-decoration: underline; }

.h-hero {
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0;
}
.h-1 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1; font-weight: 800; letter-spacing: -0.035em; margin: 0; }
.h-2 { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.h-3 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.h-4 { font-size: 15px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.byline { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.byline .sep { opacity: 0.5; }
.byline a:hover { color: var(--ink); text-decoration: underline; }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.dim { color: var(--muted); }
.mono { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; }
.num { font-variant-numeric: tabular-nums; }

/* ─────────────── Top nav ─────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.topbar.scrolled { background: color-mix(in srgb, var(--paper) 86%, transparent); }
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 64px; }

.logo {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 900; letter-spacing: -0.03em;
  font-size: 22px;
}
.logo .slash { color: var(--accent-ink); background: var(--accent); padding: 1px 6px; border-radius: 4px; transform: skewX(-8deg); display: inline-block; }
.logo .news { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-left: 4px; padding-top: 4px; }

.nav-links { display: flex; gap: 4px; flex: 1; list-style: none; padding: 0; margin: 0; }
.nav-links li { display: inline-block; }
.nav-links a {
  font-size: 14px; font-weight: 600; padding: 6px 10px;
  border-radius: 6px; color: var(--ink-2);
  letter-spacing: -0.005em;
  display: inline-block;
}
.nav-links a:hover { background: var(--line-2); }
.nav-links a.active,
.nav-links li.current-menu-item > a,
.nav-links li.current-cat > a { color: var(--accent-ink); background: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 6px; }
.iconbtn {
  width: 36px; height: 36px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; background: transparent;
  border: 1px solid transparent; color: var(--ink-2);
  cursor: pointer;
}
.iconbtn:hover { background: var(--line-2); border-color: var(--line); }
.iconbtn svg { width: 18px; height: 18px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 600; padding: 8px 14px;
  border-radius: 8px; border: 0;
  transition: transform .15s ease;
  text-decoration: none;
}
html[data-theme="dark"] .btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 600; padding: 8px 14px;
  border-radius: 8px; border: 1px solid var(--line);
  text-decoration: none;
}
.btn-ghost:hover { background: var(--line-2); }

/* ─────────────── Ticker ─────────────── */
.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  overflow: hidden;
}
.ticker-inner {
  display: flex; align-items: center; gap: 16px; height: 38px;
}
.ticker-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--paper);
  font-size: 10px; font-weight: 800; padding: 4px 8px;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 4px; flex-shrink: 0;
}
html[data-theme="dark"] .ticker-label { background: var(--accent); color: var(--accent-ink); }
.ticker-label .pulse { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.ticker-track {
  display: flex; gap: 28px; flex: 1; overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 60px), transparent 100%);
}
.ticker-marquee {
  display: flex; gap: 28px; animation: scroll 60s linear infinite; white-space: nowrap;
}
@keyframes scroll { to { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 500; text-decoration: none; }
.ticker-item:hover { color: var(--ink); }
.ticker-item .bump { color: var(--good); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.ticker-item .bump.down { color: var(--danger); }

/* ─────────────── Hero + side rail (CoinSynaptic Axion style) ───────────
   Hero on left: large image on top, title + dek + byline BELOW the image
   (no overlay gradient). Side rail on right: 4 stacked article cards,
   each with a small square thumb left + colored category pill above
   title. Cards divided by 1px hairlines. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 400px;
  gap: 32px;
  align-items: start;
}

/* Left pane — image + body */
.hero-pane { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero-pane .hero-img {
  aspect-ratio: 16/10;
  max-height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-2);
}
.hero-pane .hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.hero-pane:hover .hero-img img { transform: scale(1.04); }

.hero-pane .hero-body {
  display: flex; flex-direction: column; gap: 12px;
}
.hero-pane .hero-body .h-hero {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 680px;
}
.hero-pane .hero-body .lede { color: var(--muted); max-width: 600px; font-size: 14.5px; line-height: 1.5; }

/* Category pill — colored outline + dot. Per-category accent via data-cat. */
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 4px;
  --pill-color: var(--accent);
  color: var(--pill-color);
}
.cat-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Per-category colors (slug-driven). Falls back to accent. */
.cat-pill[data-cat="smartphone"], .cat-pill[data-cat="android"]      { --pill-color: #4DABF7; color: #4DABF7; }
.cat-pill[data-cat="iphone"], .cat-pill[data-cat="mac"], .cat-pill[data-cat="tablet"] { --pill-color: #FFA94D; color: #FFA94D; }
.cat-pill[data-cat="laptop"]                                        { --pill-color: #38D9A9; color: #38D9A9; }
.cat-pill[data-cat="pc-components"]                                 { --pill-color: #FF6B6B; color: #FF6B6B; }
.cat-pill[data-cat="gaming"]                                        { --pill-color: #DA77F2; color: #DA77F2; }
.cat-pill[data-cat="smart-home"]                                    { --pill-color: #74C0FC; color: #74C0FC; }
.cat-pill[data-cat="camera"]                                        { --pill-color: #FCC419; color: #FCC419; }
.cat-pill[data-cat="ar-vr"]                                         { --pill-color: #C4FF1F; color: #C4FF1F; }
.cat-pill[data-cat="wearable"], .cat-pill[data-cat="smartwatch"], .cat-pill[data-cat="audio"] { --pill-color: #FFA8A8; color: #FFA8A8; }
.cat-pill[data-cat="reviews"]                                       { --pill-color: var(--accent); color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* Side rail — 4 stacked cards */
.hero-side {
  display: flex;
  flex-direction: column;
}
.side-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity .15s ease;
}
.side-card:first-child { padding-top: 0; }
.side-card:last-child { border-bottom: 0; padding-bottom: 0; }
.side-card:hover { opacity: 0.85; }
.side-card .side-media {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--line-2);
  border-radius: var(--radius-sm);
}
.side-card .side-media img { width: 100%; height: 100%; object-fit: cover; }
.side-card .side-body {
  display: flex; flex-direction: column; gap: 8px; justify-content: center;
  min-width: 0;
}
.side-card .side-body h3 {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-card .side-body .byline { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.hero {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 16/9; max-height: 620px;
  background: #111;
  display: block;
}
.hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.hero:hover img { transform: scale(1.04); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.85) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 36px 44px;
  color: #fff;
}
.hero-overlay .kicker { color: var(--accent); }
.hero-overlay .h-hero { color: #fff; max-width: 920px; }
.hero-overlay .lede { color: rgba(255,255,255,0.78); max-width: 720px; margin-top: 14px; font-size: 18px; }
.hero-overlay .byline { color: rgba(255,255,255,0.65); margin-top: 16px; }
.hero-overlay .byline a { color: rgba(255,255,255,0.9); }

/* ─────────────── Cards ─────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
.card-media { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--line-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .h-3 { line-height: 1.18; }
.card-body .byline { margin-top: auto; padding-top: 12px; }

.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 10px; font-weight: 800; padding: 5px 8px;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 4px;
  z-index: 1;
}
.badge.dark { background: var(--ink); color: var(--paper); }
.badge.review {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,0.78); color: #fff;
  backdrop-filter: blur(6px);
}
.badge.review .score { font-size: 13px; letter-spacing: 0; }

/* small inline tag */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--muted); text-transform: uppercase;
}
.tag.accent { color: var(--accent-ink); background: var(--accent); padding: 3px 7px; border-radius: 4px; }
.tag.outline { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }

/* ─────────────── Section headers ─────────────── */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin: 56px 0 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  gap: 16px;
}
.section-head h2 { font-size: 28px; font-weight: 900; letter-spacing: -0.03em; margin: 0; }
.section-head .more { font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.section-head .more:hover { color: var(--ink); }

/* ─────────────── Brand chips ─────────────── */
.brand-rail { display: flex; gap: 8px; flex-wrap: wrap; }
.brand-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: all .15s ease;
  text-decoration: none;
  cursor: pointer;
}
.brand-chip:hover { border-color: var(--ink); }
.brand-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
html[data-theme="dark"] .brand-chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.brand-chip .count { font-size: 11px; color: var(--muted); }
.brand-chip.active .count { color: rgba(255,255,255,0.7); }
html[data-theme="dark"] .brand-chip.active .count { color: rgba(10,10,10,0.6); }

/* ─────────────── Score bars ─────────────── */
.score-row { display: grid; grid-template-columns: 110px 1fr 38px; align-items: center; gap: 12px; font-size: 13px; }
.score-row .label { font-weight: 600; color: var(--ink-2); }
.score-row .track { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; position: relative; }
.score-row .fill { height: 100%; background: var(--ink); border-radius: 3px; transition: width 1s cubic-bezier(0.16, 1, 0.3, 1); }
.score-row .fill.accent { background: var(--accent); }
.score-row .val { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.score-big {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 900;
  flex-shrink: 0;
}
.score-big .n { font-size: 30px; letter-spacing: -0.03em; line-height: 1; }
.score-big .out { font-size: 10px; letter-spacing: 0.08em; opacity: 0.7; margin-top: 2px; }

/* ─────────────── Ad slots ─────────────── */
.ad {
  background: var(--ad-bg); border: 1px dashed var(--ad-line);
  border-radius: 8px; padding: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: color-mix(in srgb, var(--ad-line) 70%, var(--ink));
  text-align: center;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
}
.ad .ad-label { color: var(--muted); margin-bottom: 6px; font-size: 10px; }
.ad .ad-fake { font-weight: 800; font-size: 14px; letter-spacing: -0.01em; text-transform: none; color: var(--ink-2); }
.ad .ad-sub { font-size: 12px; color: var(--muted); margin-top: 4px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.ad.banner { aspect-ratio: 728/90; max-height: 100px; }
.ad.box { aspect-ratio: 300/250; }
.ad.skyscraper { aspect-ratio: 160/600; }
.ad.in-feed { padding: 28px; }

/* ─────────────── Footer ─────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  margin-top: 80px;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
.footer h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 14px; color: var(--ink); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer-tail {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted);
  gap: 16px;
}

/* ─────────────── Newsletter ─────────────── */
.newsletter {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
html[data-theme="dark"] .newsletter { background: var(--card); border: 1px solid var(--line); }
.newsletter .accent-blob {
  position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
.newsletter h2 { font-size: 40px; font-weight: 900; letter-spacing: -0.035em; line-height: 1; margin: 0; color: #fff; }
html[data-theme="dark"] .newsletter h2 { color: var(--ink); }
.newsletter p { color: rgba(255,255,255,0.7); margin: 14px 0 0; font-size: 16px; }
html[data-theme="dark"] .newsletter p { color: var(--muted); }
.newsletter-form { position: relative; z-index: 1; }
.newsletter-form input {
  width: 100%; padding: 16px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #fff; font-size: 15px;
  font-family: inherit; outline: none;
}
html[data-theme="dark"] .newsletter-form input { background: var(--paper); border-color: var(--line); color: var(--ink); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
html[data-theme="dark"] .newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form button {
  width: 100%; margin-top: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 15px;
  padding: 14px; border-radius: 10px; border: 0; cursor: pointer;
}
.newsletter-form .hint { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 12px; }
html[data-theme="dark"] .newsletter-form .hint { color: var(--muted); }

/* ─────────────── Pros / Cons box ─────────────── */
.pc-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin: 28px 0;
}
.pc-box > div { padding: 22px 24px; }
.pc-box .pros { background: color-mix(in srgb, var(--good) 6%, var(--card)); border-right: 1px solid var(--line); }
.pc-box .cons { background: color-mix(in srgb, var(--danger) 6%, var(--card)); }
.pc-box h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.pc-box .pros h4 { color: var(--good); }
.pc-box .cons h4 { color: var(--danger); }
.pc-box ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.pc-box li { display: flex; gap: 8px; align-items: flex-start; }
.pc-box li::before { content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; background-repeat: no-repeat; background-position: center; }
.pc-box .pros li::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2318A957'><path d='M13.5 4.5L6 12L2.5 8.5L3.91 7.09L6 9.17L12.09 3.09L13.5 4.5z'/></svg>"); }
.pc-box .cons li::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E0322C'><path d='M12.5 4.5L11.09 3.09L8 6.17L4.91 3.09L3.5 4.5L6.58 7.59L3.5 10.68L4.91 12.09L8 9.01L11.09 12.09L12.5 10.68L9.41 7.59L12.5 4.5z'/></svg>"); }

/* ─────────────── Specs table ─────────────── */
.specs { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.specs tr { border-bottom: 1px solid var(--line); }
.specs tr:last-child { border-bottom: 0; }
.specs td { padding: 12px 0; vertical-align: top; }
.specs td:first-child { width: 200px; color: var(--muted); font-weight: 500; }
.specs td:last-child { color: var(--ink); font-weight: 500; }
.specs caption { text-align: left; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }

/* ─────────────── Affiliate / Buy buttons ─────────────── */
.buy-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; background: var(--card);
  margin: 24px 0;
}
.buy-box h4 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.buy-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line-2); gap: 16px; }
.buy-row:first-of-type { border-top: 0; padding-top: 0; }
.buy-row .retailer { font-weight: 700; }
.buy-row .price { font-weight: 800; font-variant-numeric: tabular-nums; }
.buy-row .save { font-size: 11px; color: var(--good); margin-left: 8px; font-weight: 700; }
.buy-row .cta {
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 13px;
  padding: 9px 16px; border-radius: 8px; border: 0;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
html[data-theme="dark"] .buy-row .cta { background: var(--accent); color: var(--accent-ink); }
.buy-row .cta:hover { transform: translateY(-1px); }

/* ─────────────── Benchmark cards ─────────────── */
.bench-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.bench-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; background: var(--card);
}
.bench-card .label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.bench-card .value { font-size: 28px; font-weight: 900; letter-spacing: -0.025em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.bench-card .delta { font-size: 11px; color: var(--good); font-weight: 700; margin-top: 2px; }
.bench-card .delta.down { color: var(--danger); }
.bench-card .bar { margin-top: 10px; height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.bench-card .bar .fill { height: 100%; background: var(--accent); }

/* ─────────────── Author box ─────────────── */
.author-box {
  display: grid; grid-template-columns: 80px 1fr; gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 28px 0; margin: 40px 0;
}
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-box h4 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.author-box .name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.author-box p { font-size: 14.5px; color: var(--ink-2); margin: 8px 0 12px; }
.author-box .socials { display: flex; gap: 8px; }

/* ─────────────── Comments ─────────────── */
.comment {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--line-2);
}
.comment img, .comment .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--line-2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.comment .meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.comment .meta .name { font-weight: 700; }
.comment .meta .when { color: var(--muted); }
.comment .body { font-size: 14.5px; margin: 4px 0 8px; }
.comment .actions { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.comment .actions span:hover { color: var(--ink); cursor: pointer; }

/* ─────────────── Share rail (floating) ─────────────── */
.share-rail {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 6px;
  align-self: start;
}
.share-rail .iconbtn { background: var(--card); border: 1px solid var(--line); }
.share-rail .count { font-size: 10px; text-align: center; color: var(--muted); font-weight: 700; margin-top: 2px; }

/* ─────────────── TOC ─────────────── */
.toc {
  position: sticky; top: 84px;
  border-left: 2px solid var(--line);
  padding: 4px 0 4px 20px;
  font-size: 13.5px;
  align-self: start;
}
.toc h4 { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 800; }
.toc ul, .toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.toc a { color: var(--muted); transition: color .15s; display: block; }
.toc a:hover, .toc a.active { color: var(--ink); }
.toc a.active { font-weight: 700; }

/* ─────────────── Article body ─────────────── */
.prose { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 720px; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; margin: 2em 0 0.6em; color: var(--ink); }
.prose h3 { font-size: 20px; font-weight: 700; margin: 1.6em 0 0.4em; color: var(--ink); }
.prose blockquote {
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 28px 0;
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
  color: var(--ink); line-height: 1.3;
}
.prose blockquote cite { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 10px; font-style: normal; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose figure { margin: 32px 0; }
.prose figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { margin: 1em 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose img { border-radius: var(--radius-sm); margin: 16px 0; }
.prose iframe { max-width: 100%; border-radius: var(--radius-sm); margin: 16px 0; }
.prose > p:first-of-type::first-letter,
.prose .drop::first-letter {
  font-size: 4.5em; float: left; line-height: 0.85; padding: 6px 12px 0 0;
  font-weight: 900; color: var(--ink);
}

/* ─────────────── Bottom mobile nav ─────────────── */
.mob-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.mob-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px; font-size: 10px; color: var(--muted); font-weight: 600;
  letter-spacing: 0.04em; text-decoration: none;
}
.mob-nav a.active { color: var(--ink); }
.mob-nav a.active svg { color: var(--accent-ink); background: var(--accent); border-radius: 6px; padding: 4px; box-sizing: content-box; }
.mob-nav svg { width: 20px; height: 20px; }

/* ─────────────── Page layouts ─────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.split { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.split-narrow { display: grid; grid-template-columns: 60px 1fr 220px; gap: 32px; align-items: start; }

/* article body row */
.article-shell { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ─────────────── List card (small) ─────────────── */
.list-card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: start; cursor: pointer; text-decoration: none; color: inherit; }
.list-card:last-child { border-bottom: 0; }
.list-card .media { aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: var(--line-2); }
.list-card .media img { width: 100%; height: 100%; object-fit: cover; }
.list-card h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.list-card .byline { font-size: 11.5px; }
.list-card .num { font-size: 22px; font-weight: 900; color: var(--muted); letter-spacing: -0.03em; align-self: start; padding-top: 4px; }
.list-card.ranked { grid-template-columns: 28px 110px 1fr; }

/* ─────────────── Category header ─────────────── */
.cat-header {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 40px 0 28px;
  margin-bottom: 32px;
  gap: 16px;
}
.cat-header h1 { font-size: clamp(40px, 5vw, 72px); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; margin: 0; }
.cat-header .meta { font-size: 13px; color: var(--muted); margin-top: 12px; }
.cat-header .filters { display: flex; gap: 8px; align-items: center; }

/* ─────────────── Comparison page ─────────────── */
.vs-row { display: grid; grid-template-columns: 1fr 80px 1fr; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.vs-row .label { font-weight: 700; text-align: center; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.vs-row .a, .vs-row .b { font-size: 15px; padding: 12px 16px; border-radius: 8px; }
.vs-row .a.win, .vs-row .b.win { background: var(--accent-soft); position: relative; font-weight: 700; }
.vs-row .a.win::after, .vs-row .b.win::after {
  content: 'WIN'; position: absolute; top: -6px; right: 6px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 9px; font-weight: 800; letter-spacing: 0.1em;
  padding: 1px 5px; border-radius: 3px;
}
.vs-header { display: grid; grid-template-columns: 1fr 80px 1fr; gap: 24px; align-items: center; margin: 40px 0; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vs-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vs-circle { width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; letter-spacing: -0.04em; }
.vs-side { text-align: center; }
.vs-side .vs-image { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; max-width: 380px; margin: 0 auto; background: var(--line-2); }
.vs-side .vs-image img { width: 100%; height: 100%; object-fit: cover; }
.vs-side h2 { font-size: 32px; font-weight: 900; letter-spacing: -0.03em; margin: 8px 0 6px; }

.vs-score-row { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.vs-score-row .left { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.vs-score-row .right { display: flex; align-items: center; gap: 16px; }
.vs-score-row .tr { flex: 1; height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.vs-score-row .tr .f { height: 100%; }
.vs-score-row .left .tr .f { margin-left: auto; float: right; }
.vs-score-row .v { font-weight: 800; font-size: 18px; min-width: 36px; }
.vs-score-row .vlabel { text-align: center; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }

.vs-verdict {
  background: var(--ink); color: var(--paper);
  border-radius: 16px; padding: 48px;
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.vs-verdict h2 { font-size: 40px; font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; margin: 14px 0 18px; color: #fff; }
.vs-verdict p { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.55; margin: 0; }
.vs-verdict .kicker { color: var(--accent); }

/* ─────────────── Search ─────────────── */
.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 22px;
  margin: 16px 0 32px;
}
.search-bar input { flex: 1; border: 0; background: transparent; font-size: 20px; font-weight: 600; outline: none; color: var(--ink); font-family: inherit; }
.search-bar input::placeholder { color: var(--muted); font-weight: 500; }

/* ─────────────── Misc ─────────────── */
.divider { height: 1px; background: var(--line); margin: 32px 0; }
.spacer { height: 24px; }
.spacer.lg { height: 48px; }
.scroll-margin { scroll-margin-top: 80px; }

/* WP-specific: alignwide / alignfull for prose */
.alignwide { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

.wp-caption,
.wp-block-image figcaption,
.gallery-caption { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: center; }

/* Pagination */
.nc-pagination { display: flex; gap: 8px; justify-content: center; margin: 48px 0 24px; flex-wrap: wrap; }
.nc-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.nc-pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nc-pagination .page-numbers:hover { border-color: var(--ink); }

/* WP block-default fallbacks inside .prose */
.prose .wp-block-embed iframe { width: 100%; aspect-ratio: 16/9; }
.prose .wp-block-quote { border-left: 4px solid var(--accent); padding-left: 20px; margin: 24px 0; font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose .wp-block-table th,
.prose .wp-block-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose .wp-block-table th { font-weight: 700; }

/* ─────────────── Responsive ─────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:nth-child(4), .footer-grid > div:nth-child(5) { grid-column: span 1; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .bench-grid { grid-template-columns: repeat(2, 1fr); }
  .split-narrow { grid-template-columns: 1fr; }
  .share-rail { flex-direction: row; position: static; }
  .toc { display: none; }
  .newsletter { grid-template-columns: 1fr; padding: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-pane .hero-img { aspect-ratio: 16/9; }
  .side-card { grid-template-columns: 100px 1fr; padding: 14px 0; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .nav-links { display: none; }
  .side-card { grid-template-columns: 90px 1fr; gap: 12px; }
  .side-card .side-body h3 { font-size: 15px; }
  .topbar-inner { height: 56px; }
  .hero-overlay { padding: 20px; }
  .hero-overlay .h-hero { font-size: 32px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section-head { margin: 40px 0 18px; }
  .section-head h2 { font-size: 22px; }
  .mob-nav { display: flex; }
  body.has-mob-nav { padding-bottom: 80px; }
  .pc-box { grid-template-columns: 1fr; }
  .pc-box .pros { border-right: 0; border-bottom: 1px solid var(--line); }
  .vs-row { grid-template-columns: 1fr; gap: 8px; }
  .vs-row .label { text-align: left; }
  .vs-header { grid-template-columns: 1fr; gap: 32px; }
  .vs-verdict { grid-template-columns: 1fr; padding: 28px; }
  .newsletter { padding: 28px; }
  .newsletter h2 { font-size: 28px; }
  .cat-header { grid-template-columns: 1fr; }
}

/* ─────────────── Page entry ─────────────── */
.page { animation: fadeUp .35s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
