/* ══════════════════════════════════════
   sudostack — design system & responsive styles
   ══════════════════════════════════════ */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-tight-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
}

/* ── Tokens ── */
:root {
  --coral: #FF5E2B;
  --coral-lt: #FF8A5C;
  --coral-dk: #C2410C;
  --ink: #1A1410;
  --ink-soft: #3D332A;
  --mute: #8B7E6F;
  --paper: #FBF6EE;
  --paper-warm: #F5EDE0;
  --bg-dark: #141110;
  --bg-dark-soft: #1F1B17;
  --rule: rgba(26,20,16,.10);
  --rule-dk: rgba(255,255,255,.08);
  --nav-height: 76px;
  --page-pad: 56px;
}

/* ── Dark theme ── */
[data-theme="dark"] {
  --ink: #F2EBDC;
  --ink-soft: #C9BFA9;
  --mute: #7A6F5C;
  --paper: #15110D;
  --paper-warm: #1E1813;
  --bg-dark: #0B0907;
  --bg-dark-soft: #15110D;
  --rule: rgba(255,255,255,.08);
  --rule-dk: rgba(255,255,255,.04);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }

/* ── Theme transition (only after initial paint) ── */
body.transitions-ready,
body.transitions-ready *,
body.transitions-ready *::before,
body.transitions-ready *::after {
  transition: background-color .6s ease, color .6s ease, border-color .6s ease, box-shadow .6s ease;
}
body {
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
input { font-family: inherit; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ── Buttons ── */
.btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-coral { background: var(--coral); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--rule); color: var(--ink); }

[data-theme="dark"] .btn-primary {
  background: var(--paper-warm);
  color: var(--ink);
  border: 1px solid var(--rule);
}

/* ── Eyebrow ── */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral-dk);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--coral);
}
[data-theme="dark"] .eyebrow { color: var(--coral-lt); }

/* ── Pill ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,94,43,.10);
  color: var(--coral-dk);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 26px;
}
.pill .dot { width: 6px; height: 6px; background: var(--coral); border-radius: 50%; }
[data-theme="dark"] .pill { background: rgba(255,94,43,.14); color: var(--coral-lt); }

/* ── Tag ── */
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--mute);
  padding: 3px 7px;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.tag.coral {
  color: var(--coral-dk);
  border-color: rgba(255,94,43,.3);
  background: rgba(255,94,43,.05);
}
[data-theme="dark"] .tag.coral {
  color: var(--coral-lt);
  border-color: rgba(255,138,92,.3);
  background: rgba(255,94,43,.08);
}

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */
nav.nav {
  height: var(--nav-height);
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 100;
  backdrop-filter: blur(12px);
}
[data-theme="dark"] nav.nav { background: rgba(21,17,13,.92); }

.nav-left { display: flex; align-items: center; gap: 56px; }
.lockup { display: flex; align-items: center; gap: 12px; }
.lockup img { height: 32px; width: auto; }
.lockup .word {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.035em;
}
.nav-links { display: flex; }
.nav-links ul.nav { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links li { list-style: none; }
.nav-links li + li::before {
  content: "|";
  color: var(--mute);
  margin: 0 16px;
  font-size: 13px;
  opacity: .5;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover,
.nav-links .nav-current a { color: var(--coral); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  padding: 8px;
}
.nav-toggle .icon-close { display: none; }
/* Search */
.search-wrap { position: relative; }
.search-toggle {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 7px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s;
}
.search-toggle:hover { border-color: var(--coral); }
.search-box {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  z-index: 200;
  overflow: hidden;
}
[data-theme="dark"] .search-box {
  background: var(--paper-warm);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.search-box.open { display: block; }
.search-input {
  width: 100%;
  height: 44px;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  padding: 0 16px;
  outline: none;
}
.search-input::placeholder { color: var(--mute); }
.search-results {
  max-height: 380px;
  overflow-y: auto;
}
.search-result-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background .1s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover,
.search-result-item.active { background: var(--paper-warm); }
[data-theme="dark"] .search-result-item:hover,
[data-theme="dark"] .search-result-item.active { background: #251D17; }
.search-result-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 2px;
}
.search-result-title mark {
  background: rgba(255,94,43,.15);
  color: var(--coral-dk);
  padding: 0 1px;
  border-radius: 2px;
}
[data-theme="dark"] .search-result-title mark {
  background: rgba(255,94,43,.2);
  color: var(--coral-lt);
}
.search-result-excerpt {
  font-size: 12px;
  color: var(--mute);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-see-all {
  background: var(--paper-warm);
  text-align: center;
}
.search-see-all .search-result-title {
  color: var(--coral-dk);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
[data-theme="dark"] .search-see-all .search-result-title { color: var(--coral-lt); }
.search-no-results {
  padding: 20px 16px;
  font-size: 13px;
  color: var(--mute);
  text-align: center;
}

/* Search results page */
.post-hero-section:empty { display: none; padding: 0; }
.search-page { padding: 48px var(--page-pad) 64px; max-width: 760px; margin: 0 auto; min-height: 50vh; }
.search-page h1 { font-size: clamp(26px,4vw,40px); margin-bottom: 8px; }
.search-page-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 24px;
}
.search-page-input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  padding: 0 20px;
  outline: none;
  margin-bottom: 32px;
}
[data-theme="dark"] .search-page-input { background: var(--paper-warm); }
.search-page-input:focus { border-color: var(--coral); }
.search-page-input::placeholder { color: var(--mute); }
.search-page-item {
  display: block;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: opacity .1s;
}
.search-page-item:last-child { border-bottom: 1px solid var(--rule); }
.search-page-item:hover { opacity: .75; }
.search-page-item-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}
.search-page-item-title mark {
  background: rgba(255,94,43,.15);
  color: var(--coral-dk);
  padding: 0 2px;
  border-radius: 2px;
}
[data-theme="dark"] .search-page-item-title mark {
  background: rgba(255,94,43,.2);
  color: var(--coral-lt);
}
.search-page-item-excerpt {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 8px;
}
.search-page-item-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.theme-toggle {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 7px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s;
}
.theme-toggle:hover { border-color: var(--coral); }
.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: var(--paper);
  z-index: 99;
  padding: 32px var(--page-pad);
  flex-direction: column;
  gap: 8px;
}
.nav-overlay.open { display: flex; }
.nav-overlay ul.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nav-overlay li { list-style: none; }
.nav-overlay a {
  font-size: 20px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  display: block;
}
.nav-overlay .btn { margin-top: 16px; height: 48px; width: 100%; }

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  padding: 96px var(--page-pad) 88px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
}
.hero h1 .accent { color: var(--coral); }
.hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 540px;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; align-items: center; margin-bottom: 40px; flex-wrap: wrap; }
.hero-cta .btn { height: 46px; padding: 0 22px; font-size: 14px; }
.hero-meta {
  display: flex;
  gap: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--mute);
  flex-wrap: wrap;
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* ── Terminal panel ── */
.term {
  background: var(--bg-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 50px -22px rgba(0,0,0,.35);
}
[data-theme="dark"] .term {
  box-shadow: 0 24px 50px -22px rgba(0,0,0,.7);
  border: 1px solid var(--rule);
}
.term-bar {
  height: 32px;
  background: #221E18;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.term-dots { display: flex; gap: 6px; }
.term-dots span { width: 9px; height: 9px; border-radius: 50%; }
.term-dots span:nth-child(1) { background: #FF6259; }
.term-dots span:nth-child(2) { background: #FFC130; }
.term-dots span:nth-child(3) { background: #28C940; }
.term-bar .title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,.4);
  margin: 0 auto;
}
.term-body {
  padding: 22px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #E6DFD0;
}
.term-line { display: flex; gap: 10px; }
.term-line .prompt { color: var(--coral); flex-shrink: 0; }
.term-line .out { color: rgba(230,223,208,.65); padding-left: 18px; }
.term-line .ok { color: #6FCF8C; }
.term-line .num { color: var(--coral-lt); }
.term-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--coral);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1.05s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ══════════════════════════════════════
   SECTION (shared)
   ══════════════════════════════════════ */
.section {
  padding: 72px var(--page-pad);
  border-bottom: 1px solid var(--rule);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  max-width: 560px;
}
.section-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--coral-dk);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
[data-theme="dark"] .section-link { color: var(--coral-lt); }

/* ══════════════════════════════════════
   TOOLS GRID
   ══════════════════════════════════════ */
.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.tool {
  padding: 26px 24px 22px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .15s;
}
.tool:hover { background: var(--paper-warm); }
[data-theme="dark"] .tool { background: var(--paper-warm); }
[data-theme="dark"] .tool:hover { background: #251D17; }

.tool-head { display: flex; justify-content: space-between; align-items: flex-start; }
.tool-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--paper-warm);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--rule);
}
[data-theme="dark"] .tool-icon { background: #2A211A; }

.tool-rating { display: flex; align-items: baseline; gap: 4px; font-family: 'JetBrains Mono', monospace; }
.tool-rating .score { font-size: 18px; color: var(--coral); font-weight: 600; }
.tool-rating .of { font-size: 11px; color: var(--mute); }
.tool-name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.tool-desc { font-size: 13px; line-height: 1.5; color: var(--ink-soft); flex: 1; }
.tool-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tool-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}
.tool-foot .price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
}
.tool-foot .price small { color: var(--mute); font-weight: 400; }
.tool-foot a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--coral-dk);
  font-weight: 500;
}
[data-theme="dark"] .tool-foot a { color: var(--coral-lt); }

/* ══════════════════════════════════════
   POSTS
   ══════════════════════════════════════ */
.posts-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}
.post-card { display: flex; flex-direction: column; gap: 14px; cursor: pointer; }
.post-thumb {
  aspect-ratio: 16/10;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--paper-warm), #E8DFCC);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .post-thumb { background: linear-gradient(135deg, #2A211A, #1E1813); }
.post-thumb.dark { background: linear-gradient(140deg, #2A2520, var(--bg-dark)); }
.post-thumb.coral { background: linear-gradient(140deg, var(--coral-lt), var(--coral-dk)); }
.post-thumb-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 5px;
  font-weight: 600;
}
[data-theme="dark"] .post-thumb-tag {
  background: rgba(20,17,13,.85);
  color: #F2EBDC;
}
.post-meta {
  display: flex; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--mute);
}
.post-meta .cat { color: var(--coral-dk); font-weight: 500; }
[data-theme="dark"] .post-meta .cat { color: var(--coral-lt); }
.post-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}
.post-card.feature .post-title { font-size: 30px; line-height: 1.1; }
.post-excerpt {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ── Trending list ── */
.trending {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
}
.trending-intro p {
  color: var(--ink-soft);
  margin-top: 18px;
  line-height: 1.6;
}
.post-list { display: flex; flex-direction: column; }
.list-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  align-items: center;
}
.list-item:last-child { border-bottom: 1px solid var(--rule); }
.list-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--mute);
}
.list-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.list-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--mute);
  white-space: nowrap;
}

/* ══════════════════════════════════════
   GHOST CONTENT — Koenig editor width classes
   ══════════════════════════════════════ */
.kg-width-wide {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.kg-width-full {
  max-width: none;
  margin-left: calc(-1 * var(--page-pad));
  margin-right: calc(-1 * var(--page-pad));
}
.kg-width-full img {
  width: 100%;
}
.article .kg-image-card img,
.article .kg-gallery-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.kg-image-card figcaption,
.kg-gallery-card figcaption,
.kg-embed-card figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--mute);
  text-align: center;
  margin-top: 8px;
}
.kg-bookmark-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0;
}
.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: var(--ink);
}
.kg-bookmark-content {
  padding: 16px;
  flex: 1;
}
.kg-bookmark-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.kg-bookmark-description {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--mute);
}
.kg-bookmark-icon {
  width: 16px;
  height: 16px;
}
.kg-bookmark-thumbnail {
  width: 180px;
  flex-shrink: 0;
}
.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ══════════════════════════════════════
   NEWSLETTER
   ══════════════════════════════════════ */
.newsletter {
  background: var(--bg-dark);
  color: var(--paper);
  padding: 72px var(--page-pad);
}
[data-theme="dark"] .newsletter { background: #050403; }
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1480px;
  margin: 0 auto;
}
.newsletter h2 {
  color: #FBF6EE;
  font-size: clamp(26px, 3vw, 38px);
}
.newsletter p { color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.6; }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; gap: 8px; }
.form-row input[type=email] {
  flex: 1;
  height: 48px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #FBF6EE;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 14px;
  outline: none;
}
.form-row input[type=email]::placeholder { color: rgba(255,255,255,.4); }
.form-row input[type=email]:focus { border-color: var(--coral); }
.newsletter-form .btn-coral { height: 48px; padding: 0 26px; }
.newsletter-meta {
  display: flex;
  gap: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
}
.newsletter-meta strong { color: #FBF6EE; font-weight: 500; }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer { padding: 48px var(--page-pad) 36px; }
.footer-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.footer-simple .lockup .word { font-size: 18px; }
.footer-simple p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 400px;
}
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--mute);
  margin-top: 8px;
}
.footer-affiliate {
  font-size: 11px;
  color: var(--mute);
  margin-top: 6px;
  opacity: .7;
}
.do-badge {
  display: inline-block;
  margin-top: 10px;
}
.do-badge img {
  height: 40px;
}

/* ══════════════════════════════════════
   POST PAGE — Hero
   ══════════════════════════════════════ */
.post-hero-section {
  padding: 56px var(--page-pad) 32px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-warm);
}
.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--mute);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--coral-dk); }
[data-theme="dark"] .breadcrumb a { color: var(--coral-lt); }
.breadcrumb .sep { color: rgba(0,0,0,.2); margin: 0 8px; }
[data-theme="dark"] .breadcrumb .sep { color: rgba(255,255,255,.2); }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 22px;
}
.tag-editorial {
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--mute);
}
.post-hero-section h1 {
  max-width: 820px;
  margin: 0 auto 24px;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.05;
}
.post-hero-section .deck {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto 32px;
  text-wrap: pretty;
}
.post-byline {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
}
.byline-date {
  text-align: right;
  flex-shrink: 0;
}
.byline-date .name {
  font-weight: 600;
  font-size: 13px;
}
.byline-date .meta {
  color: var(--mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.byline-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px 32px;
  background: var(--paper);
}
.byline-card .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral-lt), var(--coral-dk));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
  object-fit: cover;
  margin-bottom: 12px;
}
.byline-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}
.byline-bio {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 280px;
}

/* ── Post cover ── */
.post-cover {
  aspect-ratio: 3/1;
  background: linear-gradient(135deg, #1F1B17 0%, #2A211A 50%, var(--coral-dk) 100%);
  margin: 0 var(--page-pad);
  border-radius: 12px;
  margin-top: -32px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}
.post-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 22% 80%, rgba(255,94,43,.45), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.06), transparent 40%);
}
.post-cover .cover-cap {
  position: absolute;
  bottom: 18px; left: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  z-index: 2;
}

/* ── Post body (3-col) ── */
.post-body {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 56px;
  padding: 48px var(--page-pad) 64px;
  max-width: 1280px;
  margin: 0 auto;
}

/* TOC */
.toc { position: sticky; top: calc(var(--nav-height) + 24px); align-self: start; }
.toc h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 14px;
  font-weight: 500;
}
.toc ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  font-size: 13px;
  color: var(--ink-soft);
  padding-left: 24px;
  position: relative;
  line-height: 1.4;
  cursor: pointer;
  transition: color .15s;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--mute);
  top: 2px;
}
.toc li:hover { color: var(--coral); }
.toc li.active { color: var(--coral-dk); font-weight: 500; }
.toc li.active::before { color: var(--coral); }
[data-theme="dark"] .toc li.active { color: var(--coral-lt); }

/* Article */
.article {
  font-size: 17px;
  line-height: 1.65;
  max-width: 640px;
}
.article { overflow-wrap: break-word; }
.article p { margin: 0 0 22px; }
.article h2 {
  font-size: 28px;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 48px 0 18px;
  line-height: 1.15;
}
.article ul, .article ol {
  padding-left: 24px;
  margin: 0 0 22px;
}
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li {
  font-size: inherit;
  line-height: 1.65;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.article pre {
  overflow-x: auto;
  background: var(--bg-dark);
  color: #E6DFD0;
  padding: 18px 22px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 14px;
}
.article table th,
.article table td {
  padding: 10px 14px;
  border: 1px solid var(--rule);
  text-align: left;
}
.article table th {
  background: var(--paper-warm);
  font-weight: 600;
  font-size: 13px;
}
.article p:not(.affiliate-disclosure):first-child::first-letter,
.article .affiliate-disclosure + p::first-letter {
  font-size: 64px;
  float: left;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  font-weight: 600;
  color: var(--coral);
  letter-spacing: -0.04em;
}
.article h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 40px 0 16px;
  line-height: 1.2;
}
.article a {
  color: var(--coral-dk);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
[data-theme="dark"] .article a { color: var(--coral-lt); }
.article code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  background: var(--paper-warm);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--rule);
}
.article blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--coral);
  background: var(--paper-warm);
  font-style: italic;
  font-size: 18px;
}

.affiliate-disclosure {
  font-size: 13px;
  color: var(--mute);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 24px;
}

/* ══════════════════════════════════════
   PRODUCT CARDS & COMPARISON TABLES
   ══════════════════════════════════════ */

.product-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0;
  background: var(--paper);
}
[data-theme="dark"] .product-card { background: var(--paper-warm); }

.product-card-image {
  text-align: center;
  margin-bottom: 16px;
}
.product-card-image img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.product-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.product-card-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(255,94,43,.10);
  color: var(--coral-dk);
}
[data-theme="dark"] .product-card-badge {
  background: rgba(255,94,43,.14);
  color: var(--coral-lt);
}
.product-card-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: 1;
  margin: 0;
}
.product-card-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--coral);
}

.product-card-specs {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  margin-bottom: 20px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.spec-label {
  color: var(--mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.spec-value { font-weight: 500; }

.product-card-verdict {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.product-card-pros h4,
.product-card-cons h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
  font-weight: 500;
}
.product-card-pros ul,
.product-card-cons ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card-pros li::before { content: "\2713  "; color: #28C940; font-weight: 600; }
.product-card-cons li::before { content: "\2717  "; color: #FF6259; font-weight: 600; }
.product-card-pros li,
.product-card-cons li {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  background: var(--coral);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
  width: 100%;
}
.btn-cta:hover { opacity: .85; color: white; }

.comparison-table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.comparison-table thead {
  background: var(--paper-warm);
}
[data-theme="dark"] .comparison-table thead { background: #251D17; }
.comparison-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}
.comparison-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--rule);
}
.comparison-table tr.pick {
  background: rgba(255,94,43,.04);
}
[data-theme="dark"] .comparison-table tr.pick { background: rgba(255,94,43,.06); }
.comparison-table tr.pick td:first-child {
  font-weight: 600;
  color: var(--coral-dk);
}
[data-theme="dark"] .comparison-table tr.pick td:first-child { color: var(--coral-lt); }

.quick-picks {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  background: var(--paper-warm);
}
[data-theme="dark"] .quick-picks { background: #1E1813; }
.quick-picks h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral-dk);
  margin: 0 0 16px;
  font-weight: 500;
}
[data-theme="dark"] .quick-picks h3 { color: var(--coral-lt); }
.quick-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.quick-pick:first-of-type { border-top: 0; padding-top: 0; }
.quick-pick-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--mute);
  min-width: 120px;
}
.quick-pick-name { font-weight: 600; flex: 1; }
.quick-pick-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--coral-dk);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
[data-theme="dark"] .quick-pick-link { color: var(--coral-lt); }

/* Footer links */
.footer-links {
  display: flex;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--mute);
  margin-top: 8px;
}
.footer-links a { color: var(--coral-dk); }
[data-theme="dark"] .footer-links a { color: var(--coral-lt); }
.footer-links .sep { opacity: .5; }

/* Promo card */
.promo {
  margin: 28px 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px;
  background: var(--paper);
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
}
[data-theme="dark"] .promo { background: var(--paper-warm); }
.promo-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral-lt), var(--coral-dk));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 18px;
}
.promo-body .promo-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral-dk);
  margin-bottom: 4px;
}
.promo-body .promo-title { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 2px; }
.promo-body .promo-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.side-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px;
  background: var(--paper);
}
[data-theme="dark"] .side-card { background: var(--paper-warm); }
.side-card h4 {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
  font-weight: 500;
}
.side-card.dark {
  background: var(--bg-dark);
  color: #FBF6EE;
  border: none;
}
.side-card.dark h4 { color: var(--coral-lt); }
.side-card.dark p { color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.55; margin-bottom: 14px; }
.side-card.dark input[type=email] {
  width: 100%;
  height: 40px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #FBF6EE;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
  margin-bottom: 8px;
}
.side-card.dark .btn { width: 100%; }

.side-rec {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.side-rec:first-of-type { border-top: 0; padding-top: 0; }
.side-rec-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  color: white;
}
.side-rec-thumb.a { background: linear-gradient(135deg, #1F1B17, #2A211A); color: var(--coral-lt); }
.side-rec-thumb.b { background: linear-gradient(135deg, var(--coral-lt), var(--coral-dk)); }
.side-rec-thumb.c { background: linear-gradient(135deg, #2A6FDB, #1F45A8); }
.side-rec-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--mute); margin-bottom: 3px; letter-spacing: .05em; }
.side-rec-title { font-size: 13px; font-weight: 500; line-height: 1.35; }

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.stat-row:first-of-type { border-top: 0; padding-top: 0; }
.stat-row .k { color: var(--ink-soft); }
.stat-row .v { font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.stat-row .v.coral { color: var(--coral-dk); }
[data-theme="dark"] .stat-row .v.coral { color: var(--coral-lt); }

/* ══════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --page-pad: 32px; }

  .nav-left { gap: 32px; }
  .nav-links ul.nav { gap: 20px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 64px var(--page-pad) 56px;
    gap: 40px;
  }

  .tools { grid-template-columns: repeat(2, 1fr); }

  .posts-row {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .post-card.feature { grid-column: 1 / -1; }
  .post-card.feature .post-title { font-size: 26px; }

  .trending {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* post page */
  .post-body {
    grid-template-columns: 1fr 260px;
    gap: 40px;
  }
  .toc { display: none; }
  .post-cover { margin: 0 var(--page-pad); margin-top: -24px; margin-bottom: 40px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — Mobile (≤ 640px)
   ══════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --page-pad: 20px; --nav-height: 60px; }

  /* mobile containment — prevent grid children from overflowing viewport */
  .section,
  .hero,
  .newsletter,
  .post-hero-section,
  .post-body,
  .footer { overflow-x: hidden; max-width: 100vw; }

  .post-body > *,
  .posts-row > *,
  .trending > *,
  .newsletter-inner > *,
  .tools > *,
  .hero > * { min-width: 0; }

  .article { min-width: 0; overflow-wrap: anywhere; }

  /* nav */
  .nav-links { display: none; }
  .nav-left { gap: 0; }
  .nav-right .btn-primary,
  .nav-right .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .lockup .word { font-size: 18px; }
  .lockup img { height: 26px; }
  .search-box {
    position: fixed;
    top: calc(var(--nav-height) + 4px);
    left: var(--page-pad);
    right: var(--page-pad);
    width: auto;
  }

  /* hero */
  .hero {
    padding: 40px var(--page-pad) 40px;
    gap: 32px;
  }
  .hero .lede { font-size: 16px; margin-bottom: 24px; }
  .hero-cta .btn { height: 42px; padding: 0 18px; font-size: 13px; width: 100%; }
  .hero-cta { flex-direction: column; }
  .hero-meta { gap: 16px; }
  .term { display: none; }

  /* tools */
  .tools { grid-template-columns: 1fr; }

  /* posts */
  .posts-row { grid-template-columns: 1fr; gap: 32px; }
  .post-card.feature .post-title { font-size: 22px; }

  /* trending */
  .list-item { grid-template-columns: 40px 1fr; gap: 12px; }
  .list-meta { display: none; }
  .list-title { font-size: 14px; }

  /* newsletter */
  .newsletter { padding: 48px var(--page-pad); }
  .form-row { flex-direction: column; }
  .form-row input[type=email] { width: 100%; }
  .newsletter-form .btn-coral { width: 100%; }


  /* section */
  .section { padding: 48px var(--page-pad); }
  .section-head { flex-direction: column; align-items: flex-start; }

  /* post page */
  .post-hero-section { padding: 32px var(--page-pad) 24px; }
  .post-hero-section .deck { font-size: 16px; }
  .byline-card { padding: 20px 24px; }
  .byline-card .avatar { width: 48px; height: 48px; font-size: 16px; }
  .byline-bio { max-width: 240px; }
  .post-cover {
    margin: 0 var(--page-pad);
    margin-top: -16px;
    margin-bottom: 32px;
    aspect-ratio: 16/9;
    border-radius: 8px;
  }
  .post-body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px var(--page-pad) 48px;
  }
  .toc { display: none; }
  .sidebar { order: unset; }
  .article { font-size: 16px; }
  .article p:not(.affiliate-disclosure):first-child::first-letter,
  .article .affiliate-disclosure + p::first-letter { font-size: 48px; }
  .article h3 { font-size: 20px; margin: 28px 0 12px; }
  .article blockquote { font-size: 16px; padding: 14px 18px; }
  .promo {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
    max-width: 100%;
    overflow-x: hidden;
  }
  .promo-icon { margin: 0 auto; }
  .promo .btn { width: 100%; }

  /* article content */
  .article { font-size: 16px; overflow-wrap: break-word; word-break: break-word; }
  .article h2 { font-size: 22px; margin: 32px 0 14px; }
  .article h3 { font-size: 18px; margin: 24px 0 10px; }
  .article pre { overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 13px; padding: 14px; }
  .article code { font-size: 13px; }
  .article blockquote { font-size: 16px; padding: 14px 18px; }
  .article ul, .article ol { padding-left: 20px; }
  .article table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article img { border-radius: 6px; }

  /* Ghost Koenig width overrides */
  .kg-width-wide { max-width: 100%; }
  .kg-width-full { margin-left: 0; margin-right: 0; }
  .kg-bookmark-container { flex-direction: column; }
  .kg-bookmark-thumbnail { width: 100%; height: 160px; }

  /* product cards */
  .product-card { padding: 16px; margin: 24px 0; border-radius: 10px; max-width: 100%; overflow-x: hidden; }
  .product-card-header { gap: 6px; }
  .product-card-name { font-size: 17px; flex-basis: 100%; order: -1; word-break: break-word; }
  .product-card-badge { font-size: 9px; padding: 3px 8px; }
  .product-card-price { font-size: 15px; }
  .product-card-specs { padding: 12px 0; margin-bottom: 16px; }
  .product-card-verdict { grid-template-columns: 1fr; gap: 14px; }
  .spec-row { flex-direction: column; gap: 2px; padding: 5px 0; font-size: 13px; }
  .spec-label { font-size: 10px; }
  .spec-value { font-size: 13px; }
  .product-card-pros li, .product-card-cons li { font-size: 13px; }
  .btn-cta { height: 42px; font-size: 13px; }

  /* quick picks */
  .quick-picks { padding: 14px; margin: 24px 0; border-radius: 10px; max-width: 100%; overflow-x: hidden; }
  .quick-pick { flex-direction: column; gap: 2px; align-items: flex-start; padding: 8px 0; }
  .quick-pick-label { min-width: unset; font-size: 10px; }
  .quick-pick-name { font-size: 14px; }
  .quick-pick-link { font-size: 11px; }

  /* comparison table */
  .comparison-table-wrap { margin: 24px 0; border-radius: 8px; -webkit-overflow-scrolling: touch; max-width: 100%; overflow-x: auto; }
  .comparison-table { font-size: 12px; min-width: 620px; }
  .comparison-table th { padding: 10px 10px; font-size: 10px; }
  .comparison-table td { padding: 10px 10px; }

  /* sidebar */
  .sidebar { gap: 20px; }
  .side-card { padding: 18px; border-radius: 10px; }

  /* footer */
  .footer { padding: 36px var(--page-pad) 28px; }
  .footer-simple p { font-size: 13px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 6px; }

  /* about page bio card (inline styles override) */
  .post-hero-section div[style*="display:flex"] { flex-direction: column; text-align: center; padding: 18px !important; }

  /* author page */
  .post-hero-section .avatar { margin: 0 auto 12px !important; }

  /* internal links "You Might Also Like" */
  .article .related-posts { padding: 18px; }
  .article .related-posts ul { padding-left: 16px; }

  /* hamburger → X toggle */
  .nav-toggle .icon-close { display: none; }
  .nav-toggle.open .icon-menu { display: none; }
  .nav-toggle.open .icon-close { display: flex; }

  /* prevent iOS auto-zoom on input focus */
  .search-input,
  .search-page-input,
  .form-row input[type=email],
  .side-card.dark input[type=email] { font-size: 16px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — Small mobile (≤ 380px)
   ══════════════════════════════════════ */
@media (max-width: 380px) {
  :root { --page-pad: 16px; }
  .hero-meta { flex-direction: column; gap: 8px; }
}

/* ══════════════════════════════════════
   AJAX PAGINATION
   ══════════════════════════════════════ */
#latest .posts-row {
  position: relative;
  overflow: hidden;
}
#latest .posts-row.slide-out-left {
  animation: slideOutLeft 0.3s ease-in forwards;
}
#latest .posts-row.slide-in-right {
  animation: slideInRight 0.3s ease-out forwards;
}
#latest .posts-row.slide-out-right {
  animation: slideOutRight 0.3s ease-in forwards;
}
#latest .posts-row.slide-in-left {
  animation: slideInLeft 0.3s ease-out forwards;
}
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-60px); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(60px); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
.pagination-btn {
  transition: opacity 0.2s;
}
.pagination-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.pagination-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
}
