/* ════════════════════════════════════════════════════════════════════════
   CoinSynaptic — Axion edition
   Editorial crypto magazine theme. Dark-first, serif-bodied, content-forward.
   Magazine-grade hierarchy with the editorial soul of Ghost / Atlantic-style.
   Mirrors the Axion design handoff token-for-token.
   ──────────────────────────────────────────────────────────────────── */

:root {
  /* Color — dark first */
  --bg:               #0a0a0b;
  --bg-elev:          #111114;
  --surface:          #15151a;
  --surface-2:        #1c1c22;
  --hairline:         #23232a;
  --hairline-strong:  #2e2e36;
  --text:             #ececef;
  --text-strong:      #ffffff;
  --muted:            #8a8a92;
  --muted-2:          #5e5e66;

  /* Signature accent — electric lime */
  --accent:      oklch(0.86 0.18 128);
  --accent-ink:  #0a0a0b;
  --accent-dim:  oklch(0.86 0.18 128 / 0.14);

  /* Direction colors (numbers only) */
  --up:   oklch(0.82 0.17 150);
  --down: oklch(0.68 0.21 24);

  /* Type */
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans:  "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rhythm */
  --container: 1320px;
  --gutter:    28px;
  --radius:    4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a   { color: inherit; text-decoration: none; }
a:hover { color: var(--text-strong); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ─── Utility ────────────────────────────────────────────────────────── */
.container       { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-1080  { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.serif           { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.mono            { font-family: var(--mono); font-feature-settings: "tnum" 1, "ss01" 1; }
.muted           { color: var(--muted); }
.tnum            { font-variant-numeric: tabular-nums; }

/* ─── Type scale ─────────────────────────────────────────────────────── */
.h-display {
  font-family: var(--serif); font-weight: 600;
  letter-spacing: -0.025em; line-height: 0.98;
  color: var(--text-strong);
}
.h-1 { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.04; letter-spacing: -0.02em;  color: var(--text-strong); }
.h-2 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1;  letter-spacing: -0.015em; color: var(--text-strong); }
.h-3 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.18; letter-spacing: -0.01em;  color: var(--text-strong); }
.h-4 { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.22; color: var(--text-strong); }

.kicker {
  font-family: var(--sans); font-weight: 600;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow {
  font-family: var(--sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.meta {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted); letter-spacing: 0.02em;
}

/* ─── Pills / badges ─────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 2px;
}
.pill.accent { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.pill.ghost  { background: transparent; color: var(--muted); }
.pill .dot   { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.9; }

/* Per-category accents — only on pills, dividers, section heads; never body. */
.cat-ai      { --catc: oklch(0.86 0.18 128); }
.cat-agents  { --catc: oklch(0.78 0.16 200); }
.cat-bit     { --catc: oklch(0.80 0.18 60);  }
.cat-gpu     { --catc: oklch(0.75 0.20 320); }
.cat-infra   { --catc: oklch(0.82 0.14 250); }
.cat-render  { --catc: oklch(0.78 0.20 30);  }
.cat-market  { --catc: oklch(0.85 0.16 100); }
.cat-pill {
  color: var(--catc);
  border-color: color-mix(in oklab, var(--catc) 40%, var(--hairline));
  background:   color-mix(in oklab, var(--catc) 10%, transparent);
}

/* ─── Top bar (ticker) ───────────────────────────────────────────────── */
.topbar {
  background: #050506;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
}
.topbar-inner {
  display: flex; align-items: center; gap: 24px;
  height: 30px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.topbar .label {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-right: 16px;
  border-right: 1px solid var(--hairline);
}
.ticker {
  flex: 1; display: flex; gap: 24px;
  white-space: nowrap; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
.ticker-item { display: inline-flex; align-items: baseline; gap: 6px; color: var(--text); }
.ticker-item .sym  { color: var(--muted); }
.ticker-item .up   { color: var(--up); }
.ticker-item .down { color: var(--down); }
.topbar .right { display: flex; gap: 16px; color: var(--muted); }

/* ─── Site header / masthead ─────────────────────────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
}
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.brand .mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), oklch(0.55 0.18 128));
  position: relative;
  flex-shrink: 0;
}
.brand .mark::after  { content: ""; position: absolute; inset: 6px;  border-radius: 50%; background: var(--bg); }
.brand .mark::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--accent); }
.brand sup {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
  margin-left: 6px;
  text-transform: uppercase;
}
.masthead .left,
.masthead .right {
  display: flex; align-items: center; gap: 18px;
  font-size: 12px; color: var(--muted);
  font-family: var(--mono);
}
.masthead .right { justify-content: flex-end; }
.icon-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.masthead .cta {
  padding: 9px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* Primary navigation row */
.primary-nav { border-top: 1px solid var(--hairline); }
.primary-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  height: 44px;
}
.primary-nav ul {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  position: relative;
  padding: 12px 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.primary-nav a:hover, .primary-nav a.current-menu-item { color: var(--accent); }
.primary-nav a.current-menu-item::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--accent);
}
.primary-nav .live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--down);
  font-weight: 500;
  /* Headline can be long; clip it so it never pushes the masthead off-screen */
  max-width: 480px;
  min-width: 0;
  overflow: hidden;
}
.primary-nav .live > span:not(.pulse) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Don't let the nav row itself horizontally overflow the viewport */
.primary-nav-inner { overflow: hidden; }
.primary-nav ul { min-width: 0; flex: 0 1 auto; }
.primary-nav .live .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--down);
  animation: nc-pulse 1.6s infinite;
}
@keyframes nc-pulse {
  0%   { box-shadow: 0 0 0 0  oklch(0.68 0.21 24 / 0.6); }
  70%  { box-shadow: 0 0 0 10px oklch(0.68 0.21 24 / 0); }
  100% { box-shadow: 0 0 0 0  oklch(0.68 0.21 24 / 0); }
}

/* ─── Image placeholders (when post has no thumbnail) ─────────────────── */
.img {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #1a1a20 0 12px, #15151a 12px 24px);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  display: block;
  isolation: isolate;
}
.img::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, oklch(0.86 0.18 128 / 0.10), transparent 60%),
    radial-gradient(80%  60% at 0%   100%, oklch(0.55 0.10 200 / 0.18), transparent 60%);
  z-index: 0;
}
.img > img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.img .label {
  position: absolute; left: 12px; bottom: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  background: rgba(0,0,0,0.55);
  padding: 4px 8px; border-radius: 2px;
  z-index: 2;
  letter-spacing: 0.04em;
}
.img.aspect-16x9 { aspect-ratio: 16 / 9; }
.img.aspect-16x10{ aspect-ratio: 16 / 10; }
.img.aspect-4x3  { aspect-ratio: 4 / 3; }
.img.aspect-3x2  { aspect-ratio: 3 / 2; }
.img.aspect-1x1  { aspect-ratio: 1; }
.img.aspect-21x9 { aspect-ratio: 21 / 9; }

/* Subtle scanline on hero images for an editorial feel */
.img.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,0.06) 3px 4px);
  pointer-events: none; z-index: 1;
}

/* ─── Article cards ──────────────────────────────────────────────────── */
.card           { display: block; transition: transform .25s ease; }
.card .meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card h2, .card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }
.card .byline {
  display: flex; gap: 12px; align-items: center; margin-top: 12px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  flex-wrap: wrap;
}
.card .byline .dot-sep { color: var(--muted-2); }
.card-link:hover h2, .card-link:hover h3 { color: var(--accent); }
.card-link { transition: opacity .2s; }

/* Featured hero card */
.hero-card .img { aspect-ratio: 16/9; }
.hero-card h2 { font-size: 44px; line-height: 1.02; letter-spacing: -0.022em; margin-top: 18px; }
.hero-card p  { font-size: 16px; line-height: 1.5; color: var(--text); margin-top: 12px; max-width: 56ch; }

/* List card */
.list-card {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 22px; padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.list-card:last-child { border-bottom: 0; }
.list-card .img { aspect-ratio: 4/3; }
.list-card h3 { font-size: 22px; line-height: 1.15; }
.list-card p  { font-size: 14px; line-height: 1.55; }
@media (max-width: 700px) {
  .list-card { grid-template-columns: 1fr; }
}

/* Mini card (sidebar) */
.mini {
  display: grid; grid-template-columns: 72px 1fr;
  gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.mini:last-child { border-bottom: 0; }
.mini .img { aspect-ratio: 1; }
.mini h4 {
  margin: 0 0 6px;
  font-family: var(--serif); font-weight: 600;
  font-size: 15px; line-height: 1.25;
  color: var(--text-strong); letter-spacing: -0.005em;
}
.mini .meta { font-size: 10.5px; }

/* Numbered trending card */
.idx {
  display: grid; grid-template-columns: 28px 1fr;
  gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.idx:last-child { border-bottom: 0; }
.idx .num {
  font-family: var(--serif); font-size: 26px; line-height: 0.9;
  color: var(--accent); font-weight: 600;
}
.idx h4 {
  margin: 0 0 6px;
  font-family: var(--serif); font-weight: 600;
  font-size: 15px; line-height: 1.25;
  color: var(--text-strong); letter-spacing: -0.005em;
}
.idx .meta { font-size: 10.5px; }

/* ─── Section heads ──────────────────────────────────────────────────── */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 14px;
  margin-bottom: 26px;
  gap: 16px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 600;
  font-size: 26px; letter-spacing: -0.015em;
  color: var(--text-strong);
  display: flex; align-items: center; gap: 12px;
}
.section-head h2 .accent-square {
  width: 10px; height: 10px; background: var(--accent); display: inline-block;
}
.section-head .view-all {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.section-head .view-all:hover { color: var(--accent); }
.section { margin: 60px 0; }

/* ─── Sidebar widgets ────────────────────────────────────────────────── */
.widget {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 22px;
  border-radius: var(--radius);
}
.widget + .widget { margin-top: 24px; }
.widget h3 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.widget h3::before {
  content: ""; width: 8px; height: 8px;
  background: var(--accent); display: inline-block;
}

/* Market widget */
.market-row {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 12px;
}
.market-row:last-child { border-bottom: 0; }
.market-row .name { display: flex; align-items: center; gap: 10px; color: var(--text); }
.market-row .name .icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--hairline);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 700; font-size: 10px;
  color: var(--text-strong);
}
.market-row .symbol { color: var(--muted); margin-left: 6px; font-size: 11px; }
.market-row .price  { color: var(--text-strong); }
.market-row .chg    { text-align: right; }
.market-row .chg.up   { color: var(--up); }
.market-row .chg.down { color: var(--down); }

/* Newsletter widget */
.newsletter {
  background: linear-gradient(160deg, var(--accent-dim), transparent 60%), var(--surface);
  border: 1px solid var(--hairline-strong);
}
.newsletter h3::before { background: transparent; width: 0; }
.newsletter h3 { color: var(--accent); font-family: var(--sans); letter-spacing: 0.14em; }
.newsletter .pitch {
  font-family: var(--serif); font-size: 20px;
  line-height: 1.18; color: var(--text-strong);
  letter-spacing: -0.01em; margin: 0 0 14px;
}
.newsletter .pitch em { font-style: italic; color: var(--accent); font-weight: 500; }
.newsletter .form { display: flex; gap: 8px; }
.newsletter input {
  flex: 1; min-width: 0;
  background: var(--bg);
  border: 1px solid var(--hairline);
  color: var(--text);
  padding: 11px 12px;
  font-family: var(--mono); font-size: 12px;
  outline: none; border-radius: 2px;
}
.newsletter input:focus { border-color: var(--accent); }
.newsletter button {
  background: var(--accent); color: var(--accent-ink);
  padding: 11px 16px;
  font-family: var(--sans); font-weight: 600;
  font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}
.newsletter .fineprint {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  margin-top: 10px; line-height: 1.5;
}
.subscribe-feedback {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.04em; min-height: 16px; margin-top: 8px;
}
.subscribe-feedback.success { color: var(--up); }
.subscribe-feedback.error   { color: var(--down); }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: #050506;
  border-top: 1px solid var(--hairline);
  padding: 60px 0 40px;
  margin-top: 80px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text); margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal {
  margin-top: 50px; padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 18px;
  font-family: var(--mono); font-size: 11px; color: var(--muted-2);
  flex-wrap: wrap;
}

/* ─── Pagination ─────────────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 50px 0;
  font-family: var(--mono); font-size: 13px;
}
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline);
  color: var(--text);
  padding: 0 12px;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}

/* ─── Article page ───────────────────────────────────────────────────── */
.article-hero {
  border-bottom: 1px solid var(--hairline);
  padding: 60px 0 36px;
}
.article-hero .crumbs {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-bottom: 22px;
}
.article-hero .crumbs a:hover { color: var(--accent); }
.article-hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  max-width: 22ch;
  margin: 0 0 22px;
}
.article-hero .dek {
  font-family: var(--serif);
  font-size: 22px; line-height: 1.38;
  color: var(--muted); max-width: 56ch; margin: 0 0 32px; font-weight: 400;
}
.author-line {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 12px;
  color: var(--muted);
}
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), oklch(0.55 0.18 128));
  border: 1px solid var(--hairline);
  flex-shrink: 0;
}
.author-line .name { color: var(--text-strong); font-family: var(--sans); font-weight: 600; font-size: 13px; }
.author-line .sep  { color: var(--muted-2); }
.author-line .spacer { flex: 1; }
.author-line .actions { display: flex; gap: 8px; }
.author-line .actions a, .author-line .actions button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--hairline);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); transition: border-color .15s, color .15s;
}
.author-line .actions a:hover, .author-line .actions button:hover { border-color: var(--accent); color: var(--accent); }

.article-grid {
  display: grid;
  grid-template-columns: 64px 1fr 320px;
  gap: 56px;
  margin: 56px auto;
  max-width: var(--container);
  padding: 0 var(--gutter);
  align-items: start;
}
@media (max-width: 1100px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 32px; margin: 32px auto;
  }
  .share-rail, .toc-rail { display: none !important; }
}

.share-rail {
  position: sticky; top: 120px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.share-rail .label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 8px;
}
.share-rail a, .share-rail button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--hairline);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); transition: all .15s; background: transparent;
}
.share-rail a:hover, .share-rail button:hover { border-color: var(--accent); color: var(--accent); }
.share-rail .count {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  margin-top: 8px; text-align: center; line-height: 1.3;
}
.share-rail .count strong { color: var(--accent); font-weight: 600; display: block; font-size: 14px; }

.toc-rail { position: sticky; top: 120px; }
.toc {
  border: 1px solid var(--hairline);
  background: var(--surface);
  padding: 22px;
}
.toc h4 {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.toc h4::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.toc li {
  counter-increment: toc;
  font-family: var(--serif); font-size: 14px; line-height: 1.4;
  margin-bottom: 12px;
  padding-left: 24px; position: relative;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono); font-size: 10px;
  color: var(--muted-2);
  position: absolute; left: 0; top: 3px;
  letter-spacing: 0.06em;
}
.toc a:hover { color: var(--accent); }
.toc li.active { color: var(--accent); }

/* ─── Article hero: two-column variant ───────────────────────────────
 * Used by single.php to mirror Article.html — text-left + image-right
 * (collapses to single column below 900px via the responsive block).
 * ──────────────────────────────────────────────────────────────────── */
.article-hero .hero-two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-top: 8px;
}
.article-hero .hero-two-col h1 { margin-top: 18px; }
.article-hero .hero-two-col .img.hero { aspect-ratio: 3/2; }
@media (max-width: 900px) {
  .article-hero .hero-two-col {
    grid-template-columns: 1fr;
    gap: 28px; align-items: start;
  }
}

/* Stacked author-avatar treatment (overlap) when there are co-authors */
.author-line .author-avatar.b {
  background: linear-gradient(135deg, oklch(0.78 0.16 200), oklch(0.55 0.15 200));
  margin-left: -16px;
}
.author-line .role { font-size: 11px; }

/* ─── Article body — serif, magazine-grade ───────────────────────────── */
.article-content {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  max-width: 680px;
}
.article-content > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 78px;
  line-height: 0.85;
  margin: 8px 12px 0 0;
  padding-top: 4px;
  color: var(--accent);
}
.article-content > p:first-of-type::first-line {
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.article-content p { margin: 0 0 24px; }
.article-content h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 30px; line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  margin: 48px 0 18px;
  padding-top: 10px;
  position: relative;
}
.article-content h2::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 28px; height: 2px; background: var(--accent);
}
.article-content h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 22px; line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 36px 0 14px;
}
.article-content a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
}
.article-content a:hover { border-color: var(--accent); }
.article-content strong { color: var(--text-strong); font-weight: 700; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 36px 0;
  padding: 4px 0 4px 28px;
  font-size: 24px;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.article-content blockquote cite {
  display: block; margin-top: 14px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  font-style: normal; letter-spacing: 0.1em; text-transform: uppercase;
}
.article-content ul, .article-content ol { padding-left: 28px; }
.article-content li { margin-bottom: 8px; }
.article-content hr {
  border: 0;
  text-align: center;
  margin: 40px 0;
  color: var(--muted-2);
  font-family: var(--mono);
  letter-spacing: 1em;
}
.article-content hr::after { content: "* * *"; }
.article-content img { margin: 32px 0; }

/* Figures with credit-aligned caption */
.article-content figure { margin: 36px 0; }
.article-content figure .img { aspect-ratio: 16 / 10; }
.article-content figcaption {
  font-family: var(--sans); font-size: 12px;
  color: var(--muted); margin-top: 12px; line-height: 1.5;
  display: flex; gap: 12px;
}
.article-content figcaption .credit {
  font-family: var(--mono); text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-2);
  margin-left: auto;
}

/* Inline-related callout — used by the [nc_related] shortcode */
.article-content .inline-related {
  margin: 40px 0;
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  font-family: var(--sans);
}
.article-content .inline-related .label {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.article-content .inline-related h4 {
  font-family: var(--serif); font-size: 18px; line-height: 1.25;
  color: var(--text-strong); margin: 6px 0 0;
}

/* Pull-quote — large display quote with attribution */
.article-content .pullquote {
  margin: 56px 0;
  padding: 36px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
.article-content .pullquote .attr {
  display: block;
  margin-top: 18px;
  font-family: var(--mono); font-size: 12px;
  color: var(--accent); letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Embedded data tables */
.article-content .data-table {
  margin: 36px 0;
  border: 1px solid var(--hairline);
  background: var(--bg-elev);
  font-family: var(--mono);
  font-size: 12.5px;
}
.article-content .data-table .head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap;
}
.article-content .data-table .head .title {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.article-content .data-table .head .src { color: var(--muted); font-size: 10.5px; }
.article-content .data-table table {
  width: 100%; border-collapse: collapse; margin: 0;
}
.article-content .data-table th,
.article-content .data-table td {
  padding: 11px 18px; text-align: right;
  border-bottom: 1px solid var(--hairline);
}
.article-content .data-table th:first-child,
.article-content .data-table td:first-child { text-align: left; }
.article-content .data-table th {
  font-family: var(--sans); font-weight: 500; font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.article-content .data-table td { color: var(--text); }
.article-content .data-table tr:last-child td { border-bottom: 0; }
.article-content .data-table .up   { color: var(--up); }
.article-content .data-table .down { color: var(--down); }
.article-content .data-table .bar {
  display: inline-block; height: 6px; background: var(--accent);
  vertical-align: middle; margin-left: 8px; border-radius: 1px;
}
.article-content table {
  width: 100%; border-collapse: collapse; margin: 36px 0;
  font-family: var(--mono); font-size: 13px;
}
.article-content th {
  text-align: left; padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-strong);
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
}

/* FAQ block */
.faq { margin: 56px 0; }
.faq h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 26px; letter-spacing: -0.015em;
  color: var(--text-strong);
  margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.faq h2 .accent-square { width: 10px; height: 10px; background: var(--accent); }
.faq details {
  border-top: 1px solid var(--hairline);
  padding: 22px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 600;
  font-size: 18px; color: var(--text-strong);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono);
  font-size: 22px; color: var(--accent);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p {
  margin: 14px 0 0;
  font-family: var(--serif); font-size: 17px; line-height: 1.6;
  color: var(--muted);
}

/* Tags + related at article foot */
.tag-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 32px 0;
  align-items: center;
}
.tag-row .label {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-right: 8px;
}

/* Author bio block (after body, before tags) */
.author-bio {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: 48px 0;
}
.author-bio .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), oklch(0.55 0.18 128));
  border: 1px solid var(--hairline);
}
.author-bio h4 {
  font-family: var(--serif); font-size: 22px;
  color: var(--text-strong); margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.author-bio .role {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 10px; display: block;
}
.author-bio p {
  color: var(--muted); font-size: 14px; line-height: 1.55;
  margin: 0 0 12px;
}
.author-bio .links {
  display: flex; gap: 14px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  flex-wrap: wrap;
}
.author-bio .links a:hover { color: var(--accent); }

/* Inline newsletter CTA (in-article) */
.article-cta {
  margin: 56px 0;
  padding: 48px;
  background:
    linear-gradient(160deg, var(--accent-dim), transparent 60%),
    var(--surface);
  border: 1px solid var(--hairline-strong);
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
  align-items: center;
}
.article-cta h3 {
  font-family: var(--serif); font-size: 28px; line-height: 1.15;
  color: var(--text-strong); margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.article-cta p { color: var(--muted); margin: 0; max-width: 50ch; }
.article-cta .form { display: flex; gap: 8px; min-width: 360px; }
.article-cta input {
  flex: 1; min-width: 0; background: var(--bg);
  border: 1px solid var(--hairline);
  color: var(--text); padding: 13px 14px;
  font-family: var(--mono); font-size: 12px; outline: none;
}
.article-cta input:focus { border-color: var(--accent); }
.article-cta button {
  background: var(--accent); color: var(--accent-ink);
  padding: 13px 22px;
  font-family: var(--sans); font-weight: 600;
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 0; cursor: pointer;
}
@media (max-width: 800px) {
  .article-cta { grid-template-columns: 1fr; padding: 28px; }
  .article-cta .form { min-width: 0; }
}

/* TOC: numbered list with active-section highlight (set by JS scrollspy) */
.toc ol li.active { color: var(--accent); }
.toc ol li.active::before { color: var(--accent); }

/* Related section — full-width band with bg-elev and 4-col grid */
.related-section {
  background: var(--bg-elev);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 60px 0;
  margin-top: 60px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
@media (max-width: 1100px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .related-grid { grid-template-columns: 1fr; } }

/* ─── Category page (category.php) — Axion Category.html ─────────────
 * Category hero with pill + huge serif title + inline count, optional
 * editor avatars; horizontal subnav strip below; featured row of
 * 1.4fr feature + 1fr side rail; archive 2-col grid + 360px sidebar.
 * ──────────────────────────────────────────────────────────────────── */

.cat-hero {
  border-bottom: 1px solid var(--hairline);
  padding: 64px 0 48px;
  background:
    radial-gradient(60% 100% at 95% 0%, var(--accent-dim), transparent 70%),
    var(--bg);
}
.cat-hero .crumbs {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 22px; flex-wrap: wrap;
}
.cat-hero .crumbs a:hover { color: var(--accent); }
.cat-hero > .container > .pill { margin-bottom: 18px; display: inline-flex; }
.cat-hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.96; letter-spacing: -0.03em;
  color: var(--text-strong);
  margin: 0;
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
}
.cat-hero h1 .count {
  font-family: var(--mono); font-size: 16px; color: var(--accent);
  letter-spacing: 0.06em; font-weight: 500;
}
.cat-hero .desc {
  font-family: var(--serif); font-size: 22px;
  line-height: 1.4; color: var(--muted);
  max-width: 64ch;
  margin: 24px 0 0;
  font-weight: 400;
}
.cat-meta {
  margin-top: 36px;
  display: flex; gap: 36px; align-items: center;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted); letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.cat-meta .stat strong {
  display: block; color: var(--text-strong);
  font-size: 18px; font-family: var(--sans); font-weight: 600;
  letter-spacing: -0.005em;
}
.cat-meta .spacer { flex: 1; }
.cat-meta .editors { display: flex; align-items: center; gap: 10px; }
.cat-meta .editors .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), oklch(0.55 0.18 128));
  border: 1px solid var(--hairline);
}
.cat-meta .editors .av:nth-child(3) {
  background: linear-gradient(135deg, oklch(0.78 0.16 200), oklch(0.55 0.15 200));
  margin-left: -12px;
}
.cat-meta .editors .av:nth-child(4) {
  background: linear-gradient(135deg, oklch(0.80 0.18 60), oklch(0.55 0.15 60));
  margin-left: -12px;
}

/* Subnav — horizontal scroll pill strip + sort cluster */
.subnav {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-elev);
}
.subnav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 16px;
  height: 52px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav .group { display: flex; gap: 4px; flex-shrink: 0; }
.subnav a {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.subnav a:hover { color: var(--text); }
.subnav a.active {
  color: var(--accent); border-color: var(--accent);
  background: var(--accent-dim);
}
.subnav .pipe { color: var(--muted-2); flex-shrink: 0; }
.subnav .sort {
  margin-left: auto; display: flex; gap: 12px; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  flex-shrink: 0;
}
.subnav .sort a { padding: 0; border-radius: 0; border: 0; }
.subnav .sort a.active { color: var(--accent); background: transparent; }
.subnav .sort .sep { color: var(--muted-2); }

/* Featured row: 1.4fr main + 1fr side rail */
.cat-featured {
  margin: 48px 0 16px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
.cat-featured .main .img.hero { aspect-ratio: 16/9; }
.cat-featured .main h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 42px; line-height: 1.04; letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 16px 0 12px;
}
.cat-featured .main p {
  color: var(--muted); font-size: 16px; line-height: 1.55;
  max-width: 60ch;
}
.cat-featured .main .byline {
  margin-top: 18px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cat-featured .main .byline .sep { color: var(--muted-2); }
.cat-featured .side {
  display: flex; flex-direction: column; gap: 0;
  border-left: 1px solid var(--hairline);
  padding-left: 36px;
}
.cat-featured .side a {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  display: block;
}
.cat-featured .side a:first-child { padding-top: 0; }
.cat-featured .side a:last-child { border-bottom: 0; }
.cat-featured .side h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 20px; line-height: 1.18;
  color: var(--text-strong);
  margin: 6px 0 0;
  letter-spacing: -0.005em;
}
@media (max-width: 900px) {
  .cat-featured {
    grid-template-columns: 1fr; gap: 24px;
  }
  .cat-featured .side {
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--hairline); padding-top: 16px;
  }
  .cat-featured .main h2 { font-size: 28px; }
}

/* Archive grid + sidebar (renamed from .archive to avoid clashing with
 * WordPress's body.archive body class on archive pages) */
.cat-archive {
  display: grid; grid-template-columns: 1fr 360px; gap: 48px;
  align-items: start;
  margin: 60px 0;
}
@media (max-width: 1000px) {
  .cat-archive { grid-template-columns: 1fr; }
}
.archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 28px;
}
@media (max-width: 700px) {
  .archive-grid { grid-template-columns: 1fr; gap: 22px; }
}
.grid-card { display: block; }
.grid-card .img { aspect-ratio: 4/3; }
.grid-card .meta-row { margin: 14px 0 8px; }
.grid-card h3 {
  font-family: var(--serif); font-size: 22px;
  line-height: 1.15; color: var(--text-strong);
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.grid-card p {
  color: var(--muted); font-size: 14px;
  line-height: 1.5; margin: 0;
}
.grid-card .byline {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  margin-top: 12px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.grid-card .byline .sep { color: var(--muted-2); }

/* ─── Archive / category hero ────────────────────────────────────────── */
.archive-hero {
  border-bottom: 1px solid var(--hairline);
  padding: 64px 0 44px;
  background:
    radial-gradient(60% 100% at 80% 0%, var(--accent-dim), transparent 70%),
    var(--bg);
}
.archive-hero .crumbs {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 18px; flex-wrap: wrap;
}
.archive-hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin: 0 0 22px;
}
.archive-hero .lede {
  font-family: var(--serif);
  font-size: 22px; line-height: 1.42;
  color: var(--muted); max-width: 64ch; margin: 0; font-weight: 400;
}
.archive-meta {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 20px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}

/* ─── Search page (search.php) ─────────────────────────────────────────
 * Mirrors Search.html: editorial search hero + filters bar + 2-col
 * results grid with Top hit / Token / Authors / Articles sections, plus
 * a 320px sidebar of trending searches and syntax help.
 * ──────────────────────────────────────────────────────────────────── */

.search-hero {
  border-bottom: 1px solid var(--hairline);
  padding: 56px 0 0;
  background:
    radial-gradient(70% 100% at 100% 0%, var(--accent-dim), transparent 70%),
    var(--bg);
}
.search-hero .crumbs {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 24px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.search-hero .crumbs a:hover { color: var(--accent); }

.search-form {
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  display: flex; align-items: center; gap: 14px;
  padding: 22px 24px;
  position: relative;
}
.search-form .ic-search {
  width: 26px; height: 26px;
  color: var(--accent); stroke-width: 1.5; stroke: currentColor; fill: none;
  flex-shrink: 0;
}
.search-form input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--text-strong);
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.search-form input::placeholder { color: var(--muted-2); }
.search-form .caret {
  width: 2px; height: 32px; background: var(--accent);
  animation: nc-blink 1s steps(2, end) infinite;
  margin-left: -10px; flex-shrink: 0;
}
@keyframes nc-blink { 50% { opacity: 0; } }
.search-form .kbd {
  display: inline-flex; gap: 4px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  flex-shrink: 0;
}
.search-form .kbd span {
  border: 1px solid var(--hairline); padding: 3px 6px; border-radius: 3px;
}
.search-form button[type="submit"] {
  display: none; /* form submits on Enter; visual hint is the caret */
}

.search-meta {
  margin-top: 20px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  flex-wrap: wrap;
}
.search-meta strong { color: var(--text-strong); font-weight: 600; }
.search-meta .accent { color: var(--accent); }
.search-meta .spacer { flex: 1; }
.search-meta .kbd-hint {
  font-family: var(--mono); font-size: 11px;
}
.search-meta .kbd-hint kbd {
  border: 1px solid var(--hairline); padding: 2px 5px;
  border-radius: 3px; color: var(--text);
  font-family: var(--mono);
}

/* Result-type tabs */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--hairline);
  margin: 36px 0 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  font-family: var(--sans); font-size: 13px;
  color: var(--muted);
  padding: 14px 22px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--accent); border-color: var(--accent); }
.tabs a .pill {
  background: var(--surface-2); border-color: var(--hairline);
  color: var(--muted); font-size: 9.5px; padding: 2px 6px;
}
.tabs a.active .pill { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* Filters strip */
.filters {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-elev);
}
.filters-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.filters .filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filters .filter-label {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.filters .chip {
  font-family: var(--sans); font-size: 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 6px 11px;
  border-radius: 100px;
  display: inline-flex; align-items: center; gap: 6px;
  line-height: 1;
}
.filters .chip:hover { border-color: var(--accent); color: var(--accent); }
.filters .chip.active {
  background: var(--accent-dim); border-color: var(--accent); color: var(--accent);
}
.filters .chip.active::before {
  content: ""; width: 5px; height: 5px;
  background: currentColor; border-radius: 50%;
}
.filters .chip.active .x { font-family: var(--mono); font-size: 11px; }
.filters .clear {
  color: var(--muted); font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-left: auto;
}
.filters .clear:hover { color: var(--down); }
.filters .dot-sep { color: var(--muted-2); }

/* Search grid: results + sidebar */
.search-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 48px;
  margin: 48px 0;
}
@media (max-width: 1000px) { .search-grid { grid-template-columns: 1fr; } }

/* Result card */
.result {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}
.result:last-of-type { border-bottom: 0; }
.result .img { aspect-ratio: 4/3; }
.result .top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.result .url {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.result .url .host { color: var(--accent); }
.result h3 {
  font-family: var(--serif); font-size: 22px;
  line-height: 1.18; color: var(--text-strong);
  margin: 0 0 8px; letter-spacing: -0.005em;
}
.result h3 mark, .result p mark {
  background: oklch(0.86 0.18 128 / 0.22);
  color: var(--text-strong);
  padding: 0 2px;
}
.result p {
  color: var(--muted); margin: 0 0 12px;
  font-size: 14px; line-height: 1.55;
}
.result p mark {
  background: oklch(0.86 0.18 128 / 0.16);
  color: var(--text);
}
.result .byline {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.result .byline .sep { color: var(--muted-2); }
.result.top-hit { grid-template-columns: 240px 1fr; }

/* Token inline card */
.result.token-row {
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 22px 24px;
  margin: 12px 0;
  border-radius: var(--radius);
}
.result.token-row .top { margin-bottom: 12px; }
.result.token-row h3 { font-family: var(--mono); font-size: 18px; }
.result.token-row .stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 14px;
  font-family: var(--mono); font-size: 12px;
  border-top: 1px solid var(--hairline); padding-top: 14px;
}
.result.token-row .stats .l {
  display: block; font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.result.token-row .stats .v {
  color: var(--text-strong); font-size: 16px;
}
.result.token-row .stats .v.up { color: var(--up); }
.result.token-row .stats .v.down { color: var(--down); }

/* Section dividers in results */
.result-section {
  margin: 36px 0 14px;
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.result-section h4 {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  display: flex; align-items: center; gap: 8px;
}
.result-section h4::before {
  content: ""; width: 8px; height: 8px;
  background: var(--accent); display: inline-block;
}
.result-section .count {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.result-section a {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.result-section a:hover { color: var(--accent); }

/* No results / suggested-queries card */
.no-results {
  text-align: center;
  padding: 60px 32px;
  border: 1px dashed var(--hairline);
  background: var(--surface);
  border-radius: var(--radius);
}
.no-results h3 {
  font-family: var(--serif); font-size: 36px;
  color: var(--text-strong); margin: 14px 0 12px;
  letter-spacing: -0.015em;
}
.no-results p { color: var(--muted); max-width: 50ch; margin: 0 auto 28px; }
.no-results .suggestions {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}

/* Author tile */
.author-tile {
  display: flex; align-items: center; gap: 16px;
  padding: 18px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  margin: 8px 0;
  border-radius: var(--radius);
}
.author-tile .av {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), oklch(0.55 0.18 128));
  border: 1px solid var(--hairline);
  flex-shrink: 0;
}
.author-tile h4 {
  font-family: var(--serif); font-size: 20px; color: var(--text-strong);
  margin: 0 0 4px; letter-spacing: -0.005em;
}
.author-tile .role {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.author-tile .count {
  margin-left: auto; font-family: var(--mono); font-size: 12px;
  color: var(--muted); text-align: right;
}
.author-tile .count strong {
  color: var(--text-strong); font-size: 18px; display: block;
}

/* Trending searches widget */
.trending-list {
  list-style: none; margin: 0; padding: 0;
  font-family: var(--mono); font-size: 13px;
}
.trending-list li {
  display: flex; gap: 14px; padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
}
.trending-list li:last-child { border-bottom: 0; }
.trending-list .num { color: var(--accent); font-weight: 600; min-width: 18px; }
.trending-list a { color: var(--text); flex: 1; }
.trending-list a:hover { color: var(--accent); }
.trending-list .count { color: var(--muted); }

/* Search-syntax widget */
.syntax-row {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 8px; padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
}
.syntax-row:last-child { border-bottom: 0; }
.syntax-row code { color: var(--accent); }
.syntax-row span { color: var(--muted); }

/* Legacy thin search-box (used by 404, etc.) */
.search-box {
  display: flex;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  margin: 28px 0;
}
.search-box input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  padding: 16px 18px; color: var(--text);
  font-family: var(--mono); font-size: 14px;
}
.search-box button {
  padding: 16px 24px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--sans); font-weight: 600;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* Reading progress bar (single articles) */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; background: transparent;
  z-index: 60; pointer-events: none;
}
.read-progress .bar {
  height: 100%; width: 0%;
  background: var(--accent);
  transition: width .1s linear;
}

/* Generic SVG icons */
.ic    { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.ic-sm { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.5; fill: none; }

/* Helpers / overrides */
.hidden-mobile  { display: initial; }
.show-mobile    { display: none; }

/* ──────────────────────────────────────────────────────────────────────
 * Mobile (≤ 700px) — Axion mobile design (Mobile.html)
 *   - compact masthead (brand + 2 iconb)
 *   - horizontal-scroll category tabs
 *   - vertical stacking for every multi-col grid
 *   - .list-card pattern becomes text-left + 78px square image-right
 *   - sticky bottom tab bar (Home · Discover · Markets · Saved · You)
 *   - share FAB on articles
 * ──────────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  :root { --gutter: 18px; }

  .hidden-mobile  { display: none !important; }
  .show-mobile    { display: initial; }

  /* ─── Topbar (ticker) — smaller, no date stamp ─── */
  .topbar-inner   { height: 30px; gap: 12px; padding: 0 14px; }
  .topbar .label  { padding-right: 10px; font-size: 10px; }
  .ticker         { gap: 14px; font-size: 10.5px; }
  .topbar .right  { display: none; }

  /* ─── Masthead → mobile-bar ─── */
  .masthead {
    grid-template-columns: 1fr auto;
    padding: 14px 18px; gap: 12px;
  }
  .masthead .left { display: none; }
  .masthead .right { gap: 10px; }
  .brand          { font-size: 19px; }
  .brand .mark    { width: 18px; height: 18px; }
  .brand .mark::after  { inset: 4px; }
  .brand .mark::before { inset: 7px; }
  .brand sup      { font-size: 7px; }
  .icon-btn       { width: 30px; height: 30px; }
  .icon-btn .ic   { width: 13px; height: 13px; }
  .masthead .cta  { padding: 8px 12px; font-size: 11px; }

  /* Primary nav → scrollable category tabs */
  .primary-nav-inner {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    height: auto; padding: 4px 18px 8px;
    scrollbar-width: none;
  }
  .primary-nav-inner::-webkit-scrollbar { display: none; }
  .primary-nav ul { gap: 18px; flex-shrink: 0; flex-wrap: nowrap; }
  .primary-nav a  { font-size: 12px; padding: 8px 0; }
  .primary-nav .live { display: none; }

  /* ─── Hero — stack feature on top, secondaries below ─── */
  .container { padding: 0 var(--gutter); }
  section.container > div[style*="1.6fr"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  section.container > div[style*="1.6fr"] > div[style*="border-left"] {
    border-left: 0 !important;
    padding-left: 0 !important;
    margin-top: 6px;
  }

  /* Hero card */
  .hero-card .img { aspect-ratio: 16/10; border-radius: 4px; }
  .hero-card h2   { font-size: 24px; line-height: 1.1; margin-top: 12px; letter-spacing: -0.012em; }
  .hero-card p    { font-size: 13px; line-height: 1.45; margin-top: 8px; }
  .hero-card .byline { font-size: 10px; margin-top: 10px; gap: 8px; }

  /* Secondary stack — text left, 78px image right */
  .container a[style*="120px 1fr"] {
    grid-template-columns: 1fr 78px !important;
    gap: 14px !important;
    padding: 14px 0 !important;
  }
  .container a[style*="120px 1fr"] > .img:first-child {
    order: 2;
  }
  .container a[style*="120px 1fr"] > div:not(.img) {
    order: 1;
  }
  .container a[style*="120px 1fr"] .img.aspect-1x1 { aspect-ratio: 1; border-radius: 3px; }
  .container a[style*="120px 1fr"] h3 { font-size: 16px; line-height: 1.22; margin: 0 0 6px !important; }
  .container a[style*="120px 1fr"] .meta { font-size: 10px; }

  /* Hero pill row */
  .hero-card + * .pill, .hero-card .pill { font-size: 9px; padding: 2px 6px; }

  /* ─── Divider tightening ─── */
  .container > div[style*="background: var(--hairline)"][style*="margin: 40px 0 0"] {
    margin: 24px 0 0 !important;
  }

  /* ─── Editor's Desk — stack label, horizontal-scroll cards ─── */
  section.container > div[style*="220px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding-top: 18px;
  }
  section.container > div[style*="220px 1fr"] > div:last-child {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: 70%;
    grid-template-columns: none !important;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 14px !important;
    margin: 0 calc(-1 * var(--gutter));
    padding: 2px var(--gutter);
    scrollbar-width: none;
  }
  section.container > div[style*="220px 1fr"] > div:last-child::-webkit-scrollbar { display: none; }

  /* ─── Main grid — stack feed + sidebar ─── */
  div.container > div[style*="1fr 360px"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  /* Sidebar widgets each get full width with vertical spacing */
  aside { margin-top: 32px; }
  .widget { padding: 18px; }
  .widget + .widget { margin-top: 16px; }
  .widget h3 { font-size: 10.5px; }

  /* Latest News list cards — text-left + 78px square thumbnail */
  .list-card {
    grid-template-columns: 1fr 78px !important;
    gap: 14px !important;
    padding: 14px 0 !important;
  }
  .list-card .img {
    order: 2;
    aspect-ratio: 1 !important;
    border-radius: 3px;
  }
  .list-card .img.aspect-4x3 { aspect-ratio: 1 !important; }
  .list-card > div:not(.img) { order: 1; min-width: 0; }
  .list-card h3 { font-size: 17px !important; line-height: 1.22; margin: 0 0 6px !important; }
  .list-card p  { display: none; } /* excerpt hidden on mobile cards */
  .list-card .byline { font-size: 10px; gap: 6px; margin-top: 6px; }
  .list-card .meta { font-size: 10px; }

  /* Section heads — accent eyebrow style */
  .section-head { padding-bottom: 10px; margin-bottom: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); border-bottom: 0; margin-top: 0; }
  .section-head h2 {
    font-family: var(--sans); font-size: 11px; font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.14em; text-transform: uppercase;
    gap: 8px;
  }
  .section-head h2 .accent-square { width: 7px; height: 7px; }
  .section-head .view-all { font-size: 10px; }
  .section { margin: 28px 0; }

  /* ─── AI Agents block — 3-col → stack ─── */
  section.section > div[style*="1.5fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  /* The feature card image gets taller on mobile */
  section.section > div[style*="1.5fr 1fr 1fr"] > a .img.hero {
    aspect-ratio: 16/10 !important;
    border-radius: 4px;
  }
  section.section > div[style*="1.5fr 1fr 1fr"] > a h3 {
    font-size: 22px !important; line-height: 1.1 !important;
  }
  section.section > div[style*="1.5fr 1fr 1fr"] a.card-link h3.h-3 {
    font-size: 16px !important;
  }

  /* ─── Bittensor + GPU side-by-side → stack ─── */
  section.section > div[style*="grid-template-columns: 1fr 1fr"],
  section.section > div[style="display:grid; grid-template-columns: 1fr 1fr; gap: 48px;"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  section.section h3.serif[style*="font-size: 24px"] {
    font-size: 20px !important; line-height: 1.15 !important;
  }
  /* Mini cards in side-by-side: smaller image, tighter rhythm */
  .mini { grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; }
  .mini h4 { font-size: 14px; }
  .mini .meta { font-size: 10px; }

  /* ─── Long Read — 3-col → stack ─── */
  section[style*="bg-elev"][style*="border-top"] > .container > div[style*="1fr 1fr 1fr"],
  section > .container > div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  section > .container > div[style*="1fr 1fr 1fr"] h3.serif {
    font-size: 22px !important; line-height: 1.1 !important;
  }

  /* ─── Topic pills strip ─── */
  .section-tight { padding-top: 8px; padding-bottom: 32px; }

  /* ─── Hide ad slot on mobile ─── */
  aside .widget[style*="dashed"] { display: none; }

  /* ─── Footer — 5-col → 2-col → 1 ─── */
  .site-footer { padding: 40px 0 100px; margin-top: 40px; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer .legal { flex-direction: column; gap: 8px; margin-top: 32px; }

  /* ─── Article page (single.php) on mobile ─── */
  .article-hero { padding: 24px 0 22px; }
  .article-hero .crumbs { font-size: 10px; margin-bottom: 14px; gap: 6px; }
  .article-hero h1 { font-size: 26px !important; line-height: 1.06; letter-spacing: -0.018em; }
  .article-hero .dek { font-size: 14px; line-height: 1.4; margin: 0 0 18px; }
  .author-line { padding: 12px 0; gap: 10px; font-size: 11px; flex-wrap: wrap; }
  .author-line .actions a { width: 32px; height: 32px; }
  .article-grid { gap: 24px; margin: 24px auto; }
  .article-content { font-size: 15px; line-height: 1.65; max-width: 100%; }
  .article-content > p:first-of-type::first-letter { font-size: 44px; margin: 4px 8px 0 0; }
  .article-content h2 { font-size: 22px; margin: 32px 0 12px; padding-top: 12px; }
  .article-content h3 { font-size: 18px; margin: 24px 0 10px; }
  .article-content blockquote { font-size: 18px; margin: 24px 0; padding-left: 18px; }
  .article-content .pullquote { font-size: 22px; padding: 20px 0; margin: 32px 0; }
  .article-content .data-table { font-size: 11px; }
  .article-content .data-table th,
  .article-content .data-table td { padding: 9px 10px; }
  .article-content .data-table .head { padding: 10px 12px; }
  .author-bio { grid-template-columns: 1fr; padding: 22px 0; margin: 28px 0; gap: 14px; }
  .author-bio .avatar { width: 52px; height: 52px; }
  .related-section { padding: 32px 0; margin-top: 32px; }
  .faq h2 { font-size: 22px; }
  .faq summary { font-size: 16px; }

  /* ─── Bottom tab bar (mobile-only sticky nav) ─── */
  .m-tabbar { display: grid !important; }

  /* Push page content above the bottom tab bar */
  body { padding-bottom: 64px; }

  /* ─── Share FAB ─── */
  .m-share-fab { display: inline-flex !important; }

  /* ─── Archive (category) hero on mobile ─── */
  .archive-hero { padding: 28px 0 24px; }
  .archive-hero h1 { font-size: 40px !important; line-height: 0.98; }
  .archive-hero .lede { font-size: 14px; line-height: 1.45; }
  .archive-meta { margin-top: 18px; padding-top: 14px; gap: 14px; font-size: 11px; }

  /* ─── Category page (category.php) on mobile ─── */
  .cat-hero { padding: 24px 0 22px; }
  .cat-hero h1 { font-size: 40px !important; gap: 10px; }
  .cat-hero h1 .count { font-size: 12px; }
  .cat-hero .desc { font-size: 14px; line-height: 1.45; margin-top: 14px; }
  .cat-meta { margin-top: 18px; padding-top: 14px; gap: 18px; font-size: 11px; }
  .cat-meta .stat strong { font-size: 16px; }
  .subnav-inner { padding: 0 var(--gutter); gap: 12px; height: 44px; }
  .subnav a { padding: 6px 10px; font-size: 11px; }
  .subnav .pipe { display: none; }
  .subnav .sort { display: none; } /* keep filter pills, drop sort on mobile */
  .cat-archive { gap: 24px; margin: 24px 0; }
  .cat-featured { margin: 22px 0 8px; }
  .cat-featured .main h2 { font-size: 22px; line-height: 1.12; }
  .grid-card h3 { font-size: 17px; line-height: 1.22; }
  .grid-card p { display: none; }
  .grid-card .byline { margin-top: 8px; font-size: 10px; }

  /* ─── Search page on mobile ─── */
  .search-hero { padding: 24px 0 0; }
  .search-form { padding: 14px 16px; gap: 10px; }
  .search-form .ic-search { width: 18px; height: 18px; }
  .search-form input { font-size: 18px; }
  .search-form .kbd { display: none; }
  .search-form .caret { height: 22px; }
  .search-meta { font-size: 11px; gap: 8px; margin-top: 14px; }
  .search-meta .kbd-hint { display: none; }
  .tabs { margin-top: 18px; }
  .tabs a { padding: 12px 14px; font-size: 12px; }
  .filters-inner { padding: 12px 18px; gap: 12px; }
  .filters .clear { margin-left: 0; }
  .search-grid { gap: 32px; margin: 28px 0; }
  .result {
    grid-template-columns: 1fr 78px !important;
    gap: 14px; padding: 14px 0;
  }
  .result .img { aspect-ratio: 1 !important; order: 2; }
  .result > div:not(.img) { order: 1; min-width: 0; }
  .result h3 { font-size: 17px; line-height: 1.22; margin-bottom: 6px; }
  .result p { display: none; }
  .result .url { display: none; }
  .result .byline { font-size: 10px; }
  .result.token-row {
    grid-template-columns: 1fr !important;
    padding: 16px;
  }
  .result.token-row .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .author-tile { padding: 14px; gap: 12px; }
  .author-tile .av { width: 44px; height: 44px; }
  .author-tile h4 { font-size: 16px; }
  .no-results { padding: 40px 18px; }
  .no-results h3 { font-size: 22px; }
}

/* ──────────────────────────────────────────────────────────────────────
 * Bottom tab bar — hidden by default, shown via media query above.
 * Markup lives in footer.php so it's available site-wide.
 * ──────────────────────────────────────────────────────────────────── */
.m-tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 64px;
  background: rgba(10, 10, 11, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-top: 1px solid var(--hairline);
  grid-template-columns: repeat(5, 1fr);
  align-items: center; justify-items: center;
  padding-bottom: env(safe-area-inset-bottom, 8px);
  z-index: 80;
}
.m-tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--muted);
  font-family: var(--sans); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 8px;
}
.m-tabbar a.active { color: var(--accent); }
.m-tabbar a svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.m-tabbar a.active svg { fill: color-mix(in oklab, var(--accent) 30%, transparent); }

/* Share FAB — visible only on mobile single articles via media query */
.m-share-fab {
  display: none;
  position: fixed; right: 16px; bottom: 80px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  align-items: center; justify-content: center;
  box-shadow: 0 8px 24px oklch(0.86 0.18 128 / 0.45);
  z-index: 70;
}
.m-share-fab svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.m-share-fab:hover { transform: translateY(-2px); transition: transform .15s; }
