:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --bg: #f6f8fb;
  --card-bg: #ffffff;
  --surface: #f1f5f9;
  --surface-2: #e2e8f0;
  --border: #dce3ec;
  --hero-bg: #1e2b3c;
  --hero-border: #31435a;
  --hero-text: #f8fafc;
  --hero-muted: #9eb0c7;
  --accent: #0e7490;
  --accent-hover: #0891b2;
  --accent-soft: #ecfeff;
  --safe-text: #065f46;
  --warn-bg: #fffbeb;
  --warn-border: #f59e0b;
  --warn-text: #78350f;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="dark"] {
  --ink: #f1f5f9;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --bg: #0f172a;
  --card-bg: #162032;
  --surface: #1e293b;
  --surface-2: #334155;
  --border: #283548;
  --hero-bg: #131c2e;
  --hero-border: #263449;
  --accent: #22d3ee;
  --accent-hover: #67e8f9;
  --accent-soft: rgba(34, 211, 238, 0.14);
  --safe-text: #34d399;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --warn-border: #f59e0b;
  --warn-text: #fde68a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Sticky Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(25, 37, 52, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hero-border);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.72rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }

.brand-svg {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.brand-axon {
  font-weight: 400;
  color: #62a0e3;
}

.brand-rack {
  font-weight: 700;
  background: linear-gradient(90deg, #27c2e8, #14e5f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.88rem;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  text-decoration: none;
}

.cmd-btn, .theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
}
.cmd-btn:hover, .theme-btn:hover { background: rgba(255, 255, 255, 0.16); }

.theme-btn {
  padding: 0.28rem 0.52rem;
  font-size: 0.9rem;
  line-height: 1;
}

.kbd {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.06rem 0.32rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

/* Contrasting Editorial Hero Band */
.hero-band {
  background: linear-gradient(180deg, #1d2a3a 0%, #26374b 100%);
  color: var(--hero-text);
  border-bottom: 1px solid var(--hero-border);
  padding: 2.65rem 1.5rem 2.4rem;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-with-photo {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-photo {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.4);
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-photo figcaption {
  padding: 0.4rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--hero-muted);
}

.hero-content {
  max-width: 68ch;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #67e8f9;
  background: rgba(20, 229, 240, 0.12);
  border: 1px solid rgba(103, 232, 249, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-band h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-lead {
  margin: 0 0 1.2rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--hero-muted);
}

/* Compact Playbook Strip */
.playbook-strip {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.5rem;
}

.playbook-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.playbook-strip strong { color: var(--ink); }

/* Main Container */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4.5rem;
}

/* Reading Column + Right Sticky TOC */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 68ch) minmax(220px, 260px);
  justify-content: space-between;
  gap: 2.75rem;
  align-items: start;
}

/* Top Summary Jump Box (Mobile & Quick Scan) */
.mobile-toc {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
}

.mobile-toc summary {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
}

.mobile-toc ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.mobile-toc li {
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

/* Framed Tool Section Cards */
.tool-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: 5.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.tool-eyebrow {
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.tool-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.tool-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tool-monogram {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
}

.tool-head h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 7px;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.visit-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.replaces-line {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: -0.2rem 0 0.85rem;
  padding: 0.38rem 0.7rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

.replaces-label {
  font-weight: 700;
  color: var(--ink);
}

.tool-prose {
  margin: 0 0 1.05rem;
  color: var(--ink-soft);
  font-size: 1.01rem;
}

/* Spec Strip */
.spec-strip {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.95rem;
}

.spec-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.spec-value {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.45;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}

/* Callout Box */
.callout {
  padding: 0.8rem 1rem;
  background: var(--warn-bg);
  border-left: 3px solid var(--warn-border);
  border-radius: 0 7px 7px 0;
  font-size: 0.9rem;
  color: var(--warn-text);
}

/* Follow / Subscribe Callout */
.follow-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  margin: 2rem 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}
.follow-box strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.follow-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 54ch;
}
.follow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Desktop Sticky Sidebar TOC */
.toc-aside {
  position: sticky;
  top: 5rem;
}

.toc-box {
  padding: 1.15rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.toc-title {
  margin: 0 0 0.8rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.toc-list a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  gap: 0.45rem;
}
.toc-list a:hover { color: var(--accent); text-decoration: none; }
.toc-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.toc-foot {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

/* Related Cards at Bottom */
.related-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}

.related-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.related-card strong {
  font-size: 1.02rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.related-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Radar & Live Repo Health Bar */
.health-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.health-bar .pill {
  font-family: var(--sans);
  font-size: 0.76rem;
  padding: 0.14rem 0.55rem;
}

.health-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.45rem;
}

.health-item {
  white-space: nowrap;
}

.health-sep {
  color: var(--muted);
  opacity: 0.55;
  user-select: none;
}

.health-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.health-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.health-safe {
  color: var(--safe-text);
  font-weight: 600;
  text-decoration: none;
}
.health-safe:hover {
  text-decoration: underline;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.75rem;
}

.pill-active { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.pill-stale { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.pill-archived { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.pill-high, .pill-critical { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.pill-medium { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.pill-low { background: var(--surface-2); border-color: var(--border); color: var(--muted); }

[data-theme="dark"] .pill-active { background: rgba(16, 185, 129, 0.15); border-color: rgba(52, 211, 153, 0.35); color: #6ee7b7; }
[data-theme="dark"] .pill-stale, [data-theme="dark"] .pill-medium { background: rgba(245, 158, 11, 0.15); border-color: rgba(251, 191, 36, 0.35); color: #fcd34d; }
[data-theme="dark"] .pill-archived, [data-theme="dark"] .pill-high, [data-theme="dark"] .pill-critical { background: rgba(239, 68, 68, 0.16); border-color: rgba(248, 113, 113, 0.4); color: #fca5a5; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.stat-num {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 0.25rem;
}

.radar-table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  background: var(--card-bg);
  margin-bottom: 2.5rem;
}

.radar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}

.radar-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.radar-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.radar-table tr:last-child td { border-bottom: none; }
.radar-table tr:hover td { background: var(--surface); }

/* Directory Controls, Search, Sort & Filters */
.dir-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.dir-search-input {
  flex: 1 1 320px;
  padding: 0.58rem 0.9rem;
  font-size: 0.9rem;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
}
.dir-search-input:focus {
  border-color: var(--accent);
}

.dir-sort-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.dir-sort-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.2rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.filter-btn {
  background: var(--card-bg);
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.dir-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-bg);
}

.dir-row {
  display: grid;
  grid-template-columns: 220px 140px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.dir-row:last-child { border-bottom: none; }
.dir-row:hover { background: var(--surface); }

.dir-telemetry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.dir-replaces {
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.dir-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cat-badge {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Archive List */
.archive-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.archive-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.94rem;
}

/* Search Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1rem 1rem;
}
.modal-backdrop.open { display: flex; }

.modal {
  width: 100%;
  max-width: 580px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.modal-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--ink);
}

.modal-results { max-height: 380px; overflow-y: auto; padding: 0.4rem; }

.search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  color: var(--ink);
}
.search-item:hover { background: var(--surface); text-decoration: none; }
.search-item small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.15rem; }
.search-replaces {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 500;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .toc-aside { display: none; }
  .mobile-toc { display: block; }
  .hero-with-photo { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar-inner { padding: 0.7rem 0.9rem; gap: 0.55rem; }
  .nav-group { width: 100%; justify-content: space-between; gap: 0.4rem; font-size: 0.79rem; overflow-x: auto; scrollbar-width: none; }
  .nav-group::-webkit-scrollbar { display: none; }
  .cmd-btn { padding: 0.22rem 0.48rem; font-size: 0.76rem; }
  .theme-btn { padding: 0.22rem 0.42rem; font-size: 0.82rem; }
  .cmd-btn .kbd { display: none; }
  .hero-band { padding: 2rem 1rem 1.85rem; }
  .hero-lead { font-size: 0.98rem; }
  .playbook-strip { padding: 0.6rem 1rem; }
  .wrap { padding: 1.5rem 0.9rem 3.5rem; }
  .tool-section { padding: 1.2rem 1.1rem; }
  .tool-head h2 { font-size: 1.3rem; }
  .spec-strip { grid-template-columns: 1fr; gap: 0.75rem; }
  .dir-row { grid-template-columns: 1fr; gap: 0.45rem; }
}

/* Type refresh: serif for reading and headings, mono for machine data. Colours untouched. */
:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: "Cascadia Mono", "JetBrains Mono", "SF Mono", Consolas, Menlo, monospace;
}
.hero-band h1, .tool-head h2, .related-title, .related-card strong, .follow-box strong, .article-layout h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.hero-lead, .tool-prose, .related-card p, .follow-box p {
  font-family: var(--serif);
}
.tool-prose { font-size: 1.06rem; line-height: 1.7; }
.hero-lead { font-size: 1.14rem; }
.replaces-line, .health-bar, .nav-link, .stat-num, .radar-table td, .dir-telemetry, .dir-replaces, footer {
  font-family: var(--mono);
}
.replaces-line, .health-bar { font-size: 0.8rem; }
.nav-link { font-size: 0.82rem; }
