/* ============================================================
   leon / leontoday.com — Ice Blue Editorial (Light Color 001)
   Technical-grotesk magazine layout, docked nav, masonry rhythm
   ============================================================ */

:root {
  --primary: #1769E8;
  --primary-deep: #0F4DAB;
  --accent: #0EA5A8;
  --accent-deep: #0B7E80;
  --background: #F4F8FF;
  --surface: #FFFFFF;
  --surface-2: #E8F1FF;
  --surface-3: #DCE9FB;
  --ink: #13213A;
  --ink-2: #2A3A56;
  --muted: #52647C;
  --muted-2: #6B7E96;
  --border: #C9D9F2;
  --border-soft: #DDE8F8;
  --success: #117A55;
  --warning: #8C4A00;
  --danger: #B32D2D;
  --shadow-sm: 0 1px 2px rgba(19, 33, 58, 0.06);
  --shadow-md: 0 6px 18px rgba(19, 33, 58, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --rail-w: 240px;
  --container: 1240px;
  --reading: 68ch;
  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'Menlo', monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary-deep); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--ink); margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.15rem); line-height: 1.18; letter-spacing: -0.005em; }
h3 { font-size: clamp(1.2rem, 1rem + 0.6vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.mono { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; border-radius: 4px; }

.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }

.main { display: block; padding-top: 88px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Site Header / Docked Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 0;
}
.brand-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 6px; }
.brand-mark .glyph {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-family: var(--font-mono); font-size: 16px;
  letter-spacing: 0.02em;
}
.brand-mark .name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--ink); }
.brand-mark .tag { display: block; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }

.main-nav { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.main-nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink-2);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a.active { background: var(--surface-2); color: var(--primary); }
.main-nav .cta-ghost { border: 1px solid var(--border); }
.main-nav .cta-primary {
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-weight: 600;
}
.main-nav .cta-primary:hover { background: var(--primary-deep); color: #fff; }

.header-cta-pair { display: flex; gap: 8px; align-items: center; }
.header-cta-ghost {
  text-decoration: none;
  color: var(--ink-2);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}
.header-cta {
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  position: relative;
  z-index: 300;
}
.hamburger:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hamburger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;          /* sits below the sticky header (~71-74px) */
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100dvh - 72px); /* mobile-friendly viewport unit fallback */
  max-height: calc(100vh - 72px);
  background: #fff;
  z-index: 240;
  padding: 24px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open { display: block; }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer li a {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.mobile-drawer li a:hover { background: var(--surface-2); }
.mobile-drawer .drawer-cta {
  display: block;
  text-align: center;
  margin-top: 18px;
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.mobile-drawer .drawer-footnote { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); margin-top: 16px; text-align: center; }

/* ===== Drawer close button (reachable inside open drawer) ===== */
.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}
.drawer-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.drawer-close span { display: inline-block; transform: translateY(-2px); }

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .hamburger { display: inline-block; }
  .header-cta-pair .header-cta-ghost { display: none; }
  .header-cta-pair .header-cta { display: none !important; }
  .header-cta-pair { gap: 6px; }
  .nav-bar { gap: 12px; padding: 12px 0; }
}
@media (max-width: 380px) {
  .brand-mark .name { font-size: 0.95rem; }
  .brand-mark .tag { font-size: 0.58rem; letter-spacing: 0.14em; }
  .brand-mark .glyph { width: 32px; height: 32px; font-size: 14px; }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; line-height: 1; transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; }

/* ===== Eyebrow / tag chips ===== */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary-deep); background: var(--surface-2); padding: 6px 12px; border-radius: 999px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.chip { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border-soft); padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.chip.is-accent { color: var(--primary-deep); background: rgba(23, 105, 232, 0.08); border-color: rgba(23, 105, 232, 0.18); }

/* ===== Hero (sidebar-led cover) ===== */
.hero {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  gap: 36px;
  padding: 48px 0 56px;
  align-items: start;
}
.hero-rail {
  position: sticky;
  top: 96px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-rail .rail-label { margin-bottom: 14px; }
.hero-rail ol { list-style: decimal; padding-left: 20px; margin: 0; line-height: 1.9; color: var(--ink-2); }
.hero-rail ol a { text-decoration: none; color: var(--ink-2); }
.hero-rail ol a:hover { color: var(--primary); }
.hero-rail .rail-meta { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.7rem; line-height: 1.8; }
.hero-rail .rail-meta strong { display: block; color: var(--ink); margin-bottom: 4px; letter-spacing: 0.06em; }

.hero-main .lede { font-size: 1.18rem; color: var(--ink-2); max-width: 60ch; margin: 0 0 20px; line-height: 1.6; }
.hero-main h1 { margin: 14px 0 16px; }
.hero-meta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; align-items: center; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
.hero-meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta-row span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--border); display: inline-block; }
.hero-meta-row span:first-child::before { display: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 28px; }

/* ===== Inline affiliate CTA inside hero (always visible on mobile widths) ===== */
.btn-affiliate { background: var(--accent); color: #06171B; border-color: var(--accent); font-weight: 700; }
.btn-affiliate:hover { background: #14C2C5; border-color: #14C2C5; color: #06171B; }
.hero-affiliate-cta { display: inline-flex; align-items: center; gap: 8px; }
.hero-affiliate-cta::after { content: '↗'; font-size: 0.9em; opacity: 0.7; }
@media (max-width: 1023px) {
  .hero-affiliate-cta { display: inline-flex; width: auto; flex: 1 1 100%; justify-content: center; padding: 14px 18px; font-size: 1rem; }
}

.hero-figure { position: relative; margin: 0; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border-soft); box-shadow: var(--shadow-md); }
.hero-figure figcaption { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); margin-top: 10px; letter-spacing: 0.04em; }

@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; padding: 28px 0 36px; }
  .hero-rail { position: static; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .hero-rail .rail-label { margin-bottom: 0; }
  .hero-rail ol { display: none; }
  .hero-rail .rail-meta { margin-top: 0; padding-top: 0; border-top: none; padding-left: 12px; border-left: 1px solid var(--border); }
}

/* ===== Generic section spacing ===== */
section.band { padding: 56px 0; border-top: 1px solid var(--border-soft); }
section.band:first-of-type { border-top: none; }
section.band.tight { padding: 36px 0; }
section.band.tonal { background: var(--surface-2); border-top: 1px solid var(--border-soft); }
section.band.paper { background: var(--surface); border-top: 1px solid var(--border-soft); }
section.band.deep { background: linear-gradient(180deg, var(--surface-2) 0%, var(--background) 100%); }

.section-head { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; margin-bottom: 28px; }
.section-head .label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: #08564E; margin-bottom: 6px; display: block; }
.section-head h2 { margin: 0; max-width: 28ch; }
.section-head .lede { color: var(--muted); margin: 0; max-width: 48ch; font-size: 0.95rem; }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }

/* ===== Quick-actions row (4 horizontal pill tiles) ===== */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qa-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.18s, border-color 0.18s, transform 0.16s;
  position: relative;
  overflow: hidden;
}
.qa-tile::before { content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: var(--primary); opacity: 0; transition: opacity 0.18s; }
.qa-tile:hover { background: #fff; border-color: var(--border); transform: translateY(-2px); }
.qa-tile:hover::before { opacity: 1; }
.qa-tile .qa-num { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.18em; }
.qa-tile .qa-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.qa-tile .qa-cta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-deep); margin-top: auto; }

@media (max-width: 900px) { .quick-actions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .quick-actions { grid-template-columns: 1fr; } }

/* ===== Deep-dive chapter card ===== */
.chapter {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}
.chapter-body p { font-size: 1.05rem; line-height: 1.8; }
.chapter-body p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.6rem; font-weight: 700; color: var(--primary); float: left; line-height: 1; padding: 6px 12px 0 0; }
.chapter-body figure { margin: 28px 0; }
.chapter-body figure img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border-soft); }
.chapter-body figcaption { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.chapter-body h3 { margin-top: 28px; }
.chapter-body ul, .chapter-body ol { padding-left: 22px; }
.chapter-body li { margin-bottom: 8px; }

.chapter-rail {
  border-left: 1px solid var(--border);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}
.chapter-rail h4 { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.02em; color: var(--ink); margin-bottom: 6px; }
.chapter-rail blockquote {
  margin: 0;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: 10px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.5;
  font-style: normal;
  border-left: 3px solid var(--accent);
}
.chapter-rail blockquote cite { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); font-style: normal; }
/* WCAG AA — primary link on surface-2 bg falls to 4.37:1; raise to primary-deep (6.91:1) */
.chapter-rail a { color: var(--primary-deep); }

@media (max-width: 900px) { .chapter { grid-template-columns: 1fr; } .chapter-rail { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 16px; } }

/* ===== Annotated visual ===== */
.annotated {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
.annotated-figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-soft); }
.annotated-figure img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; display: block; }
.annotated-figure .tag {
  position: absolute;
  background: rgba(15, 36, 65, 0.88);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.annotated-figure .tag.tl { top: 14px; left: 14px; }
.annotated-figure .tag.tr { top: 14px; right: 14px; }
.annotated-figure .tag.bl { bottom: 14px; left: 14px; }
.annotated-figure .tag.br { bottom: 14px; right: 14px; }

.annotated-keys { display: flex; flex-direction: column; gap: 14px; }
.annotated-keys .key { padding: 14px 14px 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 8px; }
.annotated-keys .key b { display: block; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 4px; }
.annotated-keys .key span { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) { .annotated { grid-template-columns: 1fr; } }

/* ===== Data poster (tabbed comparison ledger) ===== */
.data-poster {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px 28px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.data-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.data-tabs button {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
}
.data-tabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.data-pane { display: none; min-width: 0; overflow-x: auto; }
.data-pane.active { display: block; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th, .data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.92rem;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td:first-child { font-weight: 600; color: var(--ink); width: 36%; }
.data-table td .num { font-family: var(--font-mono); color: var(--accent-deep); font-weight: 600; }
.data-table td .badge { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; margin-right: 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.data-table td .badge.warm { background: rgba(194, 107, 0, 0.1); color: #7A4300; }
.data-table td .badge.cool { background: rgba(14, 165, 168, 0.12); color: #08564E; }
.data-table td .badge.ink { background: rgba(19, 33, 58, 0.08); color: var(--ink); }

.poster-footnote { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); margin-top: 14px; line-height: 1.6; }

/* ===== Community questions accordion ===== */
.community { display: grid; grid-template-columns: 1fr; gap: 0; }
.q-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.q-item:first-of-type { border-top: 1px solid var(--border); }
.q-item summary {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; list-style: none; cursor: pointer; user-select: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--ink);
}
.q-item summary::-webkit-details-marker { display: none; }
.q-item summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.4rem; color: var(--primary-deep); transition: transform 0.2s; }
.q-item[open] summary::after { content: '−'; }
.q-item[open] summary { color: var(--primary-deep); }
.q-item[open] summary .q-tag { color: #08564E; }
.q-item .q-body { padding-top: 10px; color: var(--ink-2); font-size: 0.98rem; line-height: 1.7; max-width: 68ch; }
.q-item .q-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: #08564E; margin-bottom: 4px; display: inline-block; }

/* ===== Related pathways (6-tile cross-link matrix) ===== */
.pathways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.path-tile {
  position: relative;
  padding: 24px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.18s;
}
.path-tile:hover { background: var(--surface-2); }
.path-tile .path-num { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.16em; }
.path-tile .path-title { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1.25; }
.path-tile .path-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.5; flex: 1; }
.path-tile .path-arrow { font-family: var(--font-mono); font-size: 0.78rem; color: var(--primary); letter-spacing: 0.08em; margin-top: 6px; }
.path-tile .path-arrow::after { content: ' →'; }

@media (max-width: 900px) { .pathways { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pathways { grid-template-columns: 1fr; } }

/* ===== Responsible-use close ===== */
.responsible-close {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.responsible-close::before { content: ''; position: absolute; left: 0; top: 32px; bottom: 32px; width: 4px; background: var(--accent); border-radius: 0 4px 4px 0; }
.responsible-close .rc-eyebrow { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: #08564E; margin-bottom: 8px; display: block; }
.responsible-close h3 { font-size: 1.6rem; margin-bottom: 12px; }
.responsible-close p { color: var(--ink-2); max-width: 70ch; margin-bottom: 14px; }
.help-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.help-line {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.help-line .hl-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); display: block; margin-bottom: 2px; font-size: 0.92rem; }
.help-line .hl-detail { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
@media (max-width: 720px) { .help-lines { grid-template-columns: 1fr; } }

/* ===== Trust strip / status row ===== */
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted);
}
.trust-strip .trust-item { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip .trust-item::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #C7D5EE; margin-top: 80px; padding: 56px 0 24px; }
.site-footer a { color: #C7D5EE; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-mark .tag { color: #B5C7E5; }
.site-footer .brand-mark .name { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: #95A8C2; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-grid .footer-about p { font-size: 0.92rem; line-height: 1.65; color: #95A8C2; }
.footer-meta {
  border-top: 1px solid #2A3A56;
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #95A8C2;
}
.footer-meta .legal-list { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Hub page reusable blocks ===== */
.hub-intro { padding: 36px 0 8px; }
.hub-intro h1 { max-width: 24ch; }
.hub-intro .lede { font-size: 1.1rem; color: var(--ink-2); max-width: 64ch; margin: 14px 0 22px; }

.toc-rail {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.toc-rail h3 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc-rail ol { list-style: decimal; padding-left: 22px; line-height: 1.9; margin: 0; }
.toc-rail a { color: var(--ink-2); text-decoration: none; }
.toc-rail a:hover { color: var(--primary); }

.definition-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.definition-list dt { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.definition-list dd { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 700px) { .definition-list { grid-template-columns: 1fr; } }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
}
.callout .callout-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; display: block; }
.callout p { margin: 0; color: var(--ink-2); }

.warning {
  background: rgba(140, 74, 0, 0.06);
  border: 1px solid rgba(140, 74, 0, 0.25);
  border-left: 4px solid var(--warning);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
}
.warning .warning-label { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warning); margin-bottom: 6px; display: block; }
.warning p { margin: 0; color: var(--ink-2); }

.checklist {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px dashed var(--border-soft); }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 10px; color: var(--success); font-weight: 700; font-family: var(--font-mono); }

.step-list { counter-reset: step; }
.step-list li {
  counter-increment: step;
  padding: 14px 14px 14px 56px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  margin-bottom: 12px;
  position: relative;
}
.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 14px; top: 14px;
  width: 32px; height: 32px;
  background: var(--primary); color: #fff;
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
}

.steps-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.steps-grid .step { padding: 18px 18px 18px 56px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; position: relative; }
.steps-grid .step .step-num { position: absolute; left: 14px; top: 18px; width: 32px; height: 32px; background: var(--surface-3); color: var(--primary); border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; }
.steps-grid .step h4 { font-size: 1rem; margin-bottom: 4px; }
.steps-grid .step p { margin: 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 720px) { .steps-grid { grid-template-columns: 1fr; } }

.related-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 18px; text-decoration: none; color: var(--ink); transition: transform 0.16s, border-color 0.16s; }
.related-card:hover { transform: translateY(-2px); border-color: var(--border); }
.related-card .rc-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.related-card .rc-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.35; margin-bottom: 8px; }
.related-card .rc-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 720px) { .related-posts { grid-template-columns: 1fr; } }

.review-ledger { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; table-layout: fixed; }
.review-ledger th, .review-ledger td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: 0.92rem; vertical-align: top; word-wrap: break-word; overflow-wrap: anywhere; }
.review-ledger thead th { background: var(--surface-2); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.review-ledger tbody tr:last-child td { border-bottom: none; }
.review-ledger .score { font-family: var(--font-mono); font-weight: 700; color: var(--primary-deep); }

.feature-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .feature-num { font-family: var(--font-mono); font-size: 2.4rem; color: var(--accent-deep); font-weight: 700; line-height: 1; }
.feature-row h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature-row p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .feature-row { grid-template-columns: 1fr; } }

.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}
.insight-card .ic-num { font-family: var(--font-mono); font-size: 1.6rem; color: var(--accent-deep); font-weight: 700; line-height: 1; }
.insight-card h4 { font-size: 0.98rem; margin-bottom: 4px; }
.insight-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.hub-cta-band {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.hub-cta-band h3 { margin: 0 0 6px; font-size: 1.25rem; }
.hub-cta-band p { margin: 0; color: var(--muted); }
.hub-cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 700px) { .hub-cta-band { grid-template-columns: 1fr; } }

/* ===== Mobile sticky affiliate CTA bar ===== */
.affiliate-bar {
  display: none;
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 280;
  background: rgba(15, 36, 65, 0.96);
  color: #fff;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #1F2F4D;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.affiliate-bar.is-active { display: block; }
@media (max-width: 1023px) {
  .affiliate-bar { display: block; }
}
.affiliate-bar .ab-row {
  display: flex; align-items: center; gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
}
.affiliate-bar .ab-meta { flex: 1 1 auto; min-width: 0; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; line-height: 1.4; color: #B5C7E5; }
.affiliate-bar .ab-meta b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: #fff; letter-spacing: 0; text-transform: none; margin-bottom: 2px; }
.affiliate-bar .ab-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: var(--accent);
  color: #06171B;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.affiliate-bar .ab-cta:hover { background: #14C2C5; color: #06171B; }

/* ===== Inline contextual CTAs (non-mobile) ===== */
.inline-cta {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
}
.inline-cta .ic-eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary-deep); margin-bottom: 4px; display: block; }
.inline-cta h4 { margin: 0 0 4px; font-size: 1.05rem; }
.inline-cta p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.inline-cta .ic-btn { background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
@media (max-width: 600px) { .inline-cta { grid-template-columns: 1fr; } }

/* ===== Comparison tabs (used in reviews and strategy) ===== */
.compare-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.compare-tabs button { background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--ink-2); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }
.compare-tabs button[aria-selected="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== News hub list ===== */
.news-list { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.news-feature { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; }
.news-feature img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-feature .nf-body { padding: 22px 24px; }
.news-feature h2 { margin-bottom: 8px; font-size: 1.55rem; }
.news-feature .nf-meta { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.news-feature p { color: var(--ink-2); margin-bottom: 12px; }
.news-stack { display: flex; flex-direction: column; gap: 12px; }
.news-row { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; text-decoration: none; color: var(--ink); transition: border-color 0.16s; }
.news-row:hover { border-color: var(--border); }
.news-row img { width: 88px; height: 64px; object-fit: cover; border-radius: 6px; }
.news-row .nr-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.news-row .nr-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
@media (max-width: 800px) { .news-list { grid-template-columns: 1fr; } .news-row { grid-template-columns: 72px 1fr; } .news-row img { width: 72px; height: 56px; } }

/* ===== Article (deep guide) layout ===== */
.article-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
  padding: 32px 0;
}
.article-aside { position: sticky; top: 96px; }
.article-body { max-width: 70ch; }
.article-body h2 { margin-top: 32px; }
.article-body h3 { margin-top: 24px; }
.article-body p, .article-body li { font-size: 1.02rem; line-height: 1.78; }
.article-body figure { margin: 28px 0; }
.article-body figure img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border-soft); }
.article-body figcaption { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.article-body blockquote { margin: 24px 0; padding: 18px 22px; background: var(--surface-2); border-left: 4px solid var(--accent); border-radius: 10px; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 1023px) { .article-shell { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* ===== MiniMax image test marker (internal) ===== */
img[data-latest-news-hero] { display: block; }