:root {
  --bg: #f8f6f0;
  --surface: #ffffff;
  --surface-2: #efeae0;
  --line: #d6cebe;
  --ink: #1b241f;
  --muted: #526058;
  --accent: #1f6f50;
  --accent-dark: #15513a;
  --yolk: #c97a16;
  --badge-bg: #e7f3ec;
  --alert: #b43c2f;
  --on-accent: #ffffff;
  --font-display: "Fredoka", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.nb-body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(214, 206, 190, 0.32) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(214, 206, 190, 0.32) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--yolk);
  outline-offset: 2px;
}
.nb-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.nb-skip {
  position: absolute; left: -9999px; top: 8px; padding: 8px 14px;
  background: var(--accent); color: var(--on-accent); border-radius: 8px; z-index: 90;
}
.nb-skip:focus { left: 12px; }
.nb-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.nb-topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 2px solid var(--line);
}
.nb-topbar-row {
  display: flex; align-items: center; gap: 18px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.nb-mark-link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
}
.nb-mark-link:hover { text-decoration: none; color: var(--accent); }
.nb-egg-stamp {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  border-bottom: 3px solid var(--yolk);
}
.nb-brand-stack { display: flex; flex-direction: column; line-height: 1.15; }
.nb-site-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.nb-site-tag { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.nb-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; overflow-x: auto; }
.nb-nav-pill {
  padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: 14px;
  color: var(--ink); white-space: nowrap; transition: background 0.15s ease;
}
.nb-nav-pill:hover { background: var(--badge-bg); color: var(--accent-dark); text-decoration: none; }
.nb-nav-pill[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

.nb-search-box { position: relative; min-width: 210px; }
.nb-search-box input {
  width: 100%; padding: 8px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-size: 14px;
}
.nb-search-box input:hover { border-color: var(--accent); }
.nb-search-drop {
  position: absolute; top: calc(100% + 6px); right: 0; left: 0; min-width: 280px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 26px rgba(27, 36, 31, 0.12); padding: 6px; z-index: 60;
}
.nb-search-drop a {
  display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none;
}
.nb-search-drop a:hover, .nb-search-drop a[data-active] { background: var(--badge-bg); }
.nb-r-title { font-weight: 600; font-size: 14px; }
.nb-r-meta { font-size: 12px; color: var(--muted); }
.nb-r-note { margin: 0; padding: 8px 10px; font-size: 13px; color: var(--muted); }

/* Hero */
.nb-hero-band {
  padding: 36px 0 28px;
  border-bottom: 1.5px solid var(--line);
  background: var(--surface);
}
.nb-hero-split {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; align-items: center;
}
.nb-coord-tag {
  display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 8px;
  background: var(--badge-bg); color: var(--accent-dark); border: 1px solid var(--accent);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.nb-stamp-chip {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
}
.nb-hero-h1, .nb-page-h1 {
  margin: 0 0 12px; font-family: var(--font-display); font-weight: 700;
  line-height: 1.16; color: var(--ink);
}
.nb-hero-h1 { font-size: clamp(32px, 4.2vw, 46px); }
.nb-page-h1 { font-size: clamp(28px, 3.6vw, 40px); }
.nb-hero-lead, .nb-page-lead { margin: 0 0 20px; font-size: 17px; color: var(--muted); max-width: 62ch; }
.nb-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.nb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 11px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease;
}
.nb-btn:hover { text-decoration: none; transform: translateY(-1px); }
.nb-btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.nb-btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.nb-btn-ghost { background: var(--surface); color: var(--accent-dark); border-color: var(--accent); }
.nb-btn-ghost:hover { background: var(--badge-bg); color: var(--accent-dark); }

/* Micro Hatch Card (Signature) */
.nb-micro-hatch {
  background: var(--bg); border: 2px solid var(--accent); border-radius: var(--radius);
  padding: 18px; box-shadow: 5px 5px 0 var(--surface-2);
}
.nb-micro-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.nb-micro-streak { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.nb-micro-streak strong { color: var(--accent-dark); }
.nb-micro-stage { display: flex; align-items: center; gap: 16px; }
.nb-egg-visual { flex: 0 0 auto; transition: transform 0.2s ease; }
.nb-egg-visual.nb-egg-pop { transform: scale(1.1) rotate(-4deg); }
.nb-micro-qa { flex: 1; min-width: 0; }
.nb-micro-label { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.nb-micro-eq { margin: 0 0 10px; font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--ink); }
.nb-micro-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nb-choice-btn {
  padding: 8px 10px; border-radius: 9px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font-family: var(--font-mono);
  font-size: 16px; font-weight: 700; cursor: pointer;
}
.nb-choice-btn:hover { border-color: var(--accent); background: var(--badge-bg); }
.nb-micro-msg { margin: 12px 0 8px; font-size: 13px; color: var(--muted); min-height: 20px; }
.nb-micro-msg.is-ok { color: var(--accent-dark); font-weight: 600; }
.nb-micro-msg.is-err { color: var(--alert); font-weight: 600; }
.nb-micro-more { font-size: 14px; font-weight: 700; color: var(--accent); }

/* Metrics strip */
.nb-metrics-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-top: 22px; margin-bottom: 8px;
}
.nb-metric-cell {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; border-left: 4px solid var(--yolk);
}
.nb-metric-num { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.nb-metric-lbl { font-size: 13px; color: var(--muted); }

/* Sections & bands */
.nb-section-band { padding: 28px 0 8px; }
.nb-band-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 18px;
}
.nb-h2 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--ink); }
.nb-band-tag { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-weight: 700; }
.nb-band-link { font-size: 14px; font-weight: 700; }

/* Quick ledger list (non-card) */
.nb-quick-ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nb-quick-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  color: var(--ink); text-decoration: none;
}
.nb-quick-row:hover { border-color: var(--accent); background: var(--badge-bg); text-decoration: none; }
.nb-quick-idx {
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  padding: 4px 8px; border-radius: 7px; background: var(--surface-2); color: var(--accent-dark);
}
.nb-quick-main { flex: 1; min-width: 0; }
.nb-quick-title { display: block; font-size: 16px; color: var(--ink); }
.nb-quick-text { display: block; font-size: 14px; color: var(--muted); }
.nb-quick-arrow { font-weight: 700; color: var(--accent); font-size: 18px; }

/* Chapter ledger rows */
.nb-chapter-rows { display: grid; gap: 14px; }
.nb-chapter-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px;
  padding: 18px 20px; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); border-top: 4px solid var(--accent);
}
.nb-chapter-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 21px; }
.nb-chapter-count { font-family: var(--font-mono); font-size: 12px; color: var(--yolk); font-weight: 700; }
.nb-chapter-desc { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.nb-chapter-links { margin: 0; padding-left: 18px; display: grid; gap: 6px; align-content: center; }
.nb-chapter-links a { font-weight: 600; font-size: 15px; }

/* Entry card grid */
.nb-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nb-entry-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden;
  color: var(--ink); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease;
}
.nb-entry-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.nb-card-thumb { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.nb-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nb-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nb-card-heading { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.nb-card-desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
.nb-card-date { margin-top: auto; padding-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* Article layout */
.nb-article-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 32px; padding-top: 26px; padding-bottom: 42px;
}
.nb-page-shell { padding-top: 26px; padding-bottom: 42px; }
.nb-narrow-shell { max-width: 820px; padding-top: 26px; padding-bottom: 42px; }

.nb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.nb-crumb-sep { color: var(--line); }
.nb-head-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.nb-updated-line { margin: 0 0 18px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.nb-cover-fig {
  margin: 0 0 22px; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.nb-cover-fig figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

.nb-quick-answer {
  margin: 0 0 24px; padding: 16px 18px; background: var(--badge-bg);
  border: 1.5px solid var(--accent); border-left: 6px solid var(--accent); border-radius: 12px;
}
.nb-qa-badge {
  margin: 0 0 4px; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--accent-dark); text-transform: uppercase;
}
.nb-quick-answer p:last-child { margin: 0; font-size: 16px; color: var(--ink); }

/* Prose */
.nb-prose { font-size: 16px; color: var(--ink); }
.nb-home-notes .nb-prose, .nb-legal-card {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px 26px;
}
.nb-prose h2 { margin: 28px 0 10px; font-family: var(--font-display); font-size: 24px; line-height: 1.25; }
.nb-prose h3 { margin: 22px 0 8px; font-family: var(--font-display); font-size: 19px; line-height: 1.3; }
.nb-prose p { margin: 0 0 14px; }
.nb-prose ul, .nb-prose ol { margin: 0 0 16px; padding-left: 22px; }
.nb-prose li { margin-bottom: 6px; }
.nb-prose figure, .nb-prose img { border-radius: 10px; }
.nb-prose blockquote {
  margin: 18px 0; padding: 12px 16px; background: var(--surface-2);
  border-left: 4px solid var(--yolk); border-radius: 8px; color: var(--ink);
}
.nb-scroll { overflow-x: auto; margin: 16px 0; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); }
.nb-prose table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.nb-prose th, .nb-prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.nb-prose th { background: var(--surface-2); font-weight: 700; color: var(--ink); }
.nb-prose code {
  font-family: var(--font-mono); font-size: 14px; padding: 2px 5px;
  border-radius: 5px; background: var(--surface-2);
}

/* Sidebar */
.nb-side-col { display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: 86px; }
.nb-side-card {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.nb-side-head {
  margin: 0 0 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  text-transform: uppercase; color: var(--accent-dark); border-bottom: 1px solid var(--line); padding-bottom: 6px;
}
.nb-info-dl { margin: 0; display: grid; gap: 8px; }
.nb-info-row { display: grid; gap: 2px; font-size: 14px; }
.nb-info-row dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.nb-info-row dd { margin: 0; color: var(--ink); font-weight: 600; }
.nb-toc-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.nb-toc-sub { margin-left: 12px; font-size: 13px; }
.nb-toc-list a { color: var(--muted); }
.nb-toc-list a:hover, .nb-toc-list a[data-active] { color: var(--accent-dark); font-weight: 700; }

/* Interactive Tools */
.nb-tool-card {
  margin: 0 0 24px; padding: 20px; background: var(--surface);
  border: 2px solid var(--accent); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--surface-2);
}
.nb-tool-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.nb-tool-title { margin: 6px 0 0; font-family: var(--font-display); font-size: 22px; }
.nb-tool-stats { display: flex; gap: 14px; align-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.nb-tool-stats strong { color: var(--accent-dark); }
.nb-ctrl-group { margin-bottom: 12px; }
.nb-ctrl-lbl { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.nb-preset-row, .nb-table-toggles, .nb-tracker-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.nb-chip-btn {
  padding: 6px 11px; border-radius: 8px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer;
}
.nb-chip-btn:hover { border-color: var(--accent); background: var(--badge-bg); }
.nb-chip-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.nb-drill-arena {
  margin-top: 14px; padding: 18px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
}
.nb-drill-hud {
  display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--font-mono); font-size: 13px;
  color: var(--muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.nb-drill-hud strong { color: var(--ink); }
.nb-drill-prompt { text-align: center; }
.nb-drill-eq { margin: 0 0 12px; font-family: var(--font-mono); font-size: 36px; font-weight: 700; color: var(--ink); }
.nb-drill-form { display: flex; justify-content: center; gap: 10px; max-width: 320px; margin: 0 auto; }
.nb-drill-form input {
  width: 130px; padding: 10px 14px; font-size: 22px; font-family: var(--font-mono); font-weight: 700;
  text-align: center; border-radius: 10px; border: 2px solid var(--accent); background: var(--surface); color: var(--ink);
}
.nb-drill-feedback { min-height: 22px; margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.nb-drill-summary { margin-top: 14px; padding: 18px; background: var(--badge-bg); border-radius: 12px; border: 1.5px solid var(--accent); }
.nb-sum-title { margin: 8px 0 6px; font-family: var(--font-display); font-size: 22px; }
.nb-sum-meta { margin: 0 0 12px; font-size: 15px; color: var(--ink); }
.nb-missed-box ul { margin: 4px 0 12px; padding-left: 18px; font-family: var(--font-mono); font-size: 14px; }

/* Calculator */
.nb-calc-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; }
.nb-calc-inputs { display: grid; gap: 12px; }
.nb-field { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.nb-field input, .nb-field select {
  padding: 9px 11px; border-radius: 9px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 15px; font-family: var(--font-mono);
}
.nb-calc-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.nb-kpi { background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.nb-kpi-lbl { display: block; font-size: 12px; color: var(--muted); }
.nb-kpi strong { font-family: var(--font-mono); font-size: 19px; color: var(--accent-dark); }
.nb-calc-eta { margin: 0 0 12px; padding: 10px 12px; background: var(--badge-bg); border-radius: 9px; font-size: 14px; }
.nb-calc-bars { display: grid; gap: 6px; }
.nb-bar-row { display: grid; grid-template-columns: 92px 1fr 78px; align-items: center; gap: 8px; font-size: 12px; font-family: var(--font-mono); }
.nb-bar-track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.nb-bar-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.nb-calc-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* Biome Tracker */
.nb-tracker-bar { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.nb-tracker-fill { height: 100%; background: var(--accent); transition: width 0.2s ease; }
.nb-tracker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nb-biome-check {
  display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 13px;
}
.nb-biome-check:hover { border-color: var(--accent); }
.nb-biome-check.is-done { background: var(--badge-bg); border-color: var(--accent); }
.nb-biome-code { font-family: var(--font-mono); font-size: 12px; color: var(--yolk); font-weight: 700; display: block; }

/* FAQ & Feed */
.nb-faq-band { margin-top: 28px; }
.nb-faq-list { display: grid; gap: 10px; }
.nb-faq-item {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px;
}
.nb-faq-item summary { cursor: pointer; font-weight: 700; font-size: 16px; color: var(--ink); list-style: none; }
.nb-faq-item summary:hover { color: var(--accent-dark); }
.nb-faq-body p { margin: 10px 0 2px; font-size: 15px; color: var(--muted); }

.nb-filter-bar { margin: 14px 0 20px; }
.nb-filter-bar input {
  width: 100%; max-width: 420px; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 15px; color: var(--ink);
}
.nb-feed-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.nb-feed-row {
  display: grid; gap: 4px; padding: 14px 18px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none;
}
.nb-feed-row:hover { border-color: var(--accent); background: var(--badge-bg); text-decoration: none; }
.nb-feed-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.nb-feed-desc { font-size: 14px; color: var(--muted); }
.nb-feed-date { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.nb-related-band { margin-top: 32px; }

/* Footer */
.nb-footer {
  margin-top: 36px; background: var(--surface); border-top: 2px solid var(--line); padding: 30px 0;
}
.nb-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.nb-footer-title { margin: 0 0 8px; font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.nb-footer-note, .nb-footer-copy { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.nb-footer-head { margin: 0 0 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--accent-dark); }
.nb-footer-nav { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* Responsive */
@media (max-width: 960px) {
  .nb-hero-split, .nb-article-shell, .nb-calc-grid, .nb-chapter-row { grid-template-columns: 1fr; }
  .nb-side-col { position: static; }
  .nb-card-grid, .nb-tracker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nb-metrics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nb-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nb-wrap { padding: 0 14px; }
  .nb-topbar-row { gap: 10px; }
  .nb-nav { order: 3; width: 100%; margin-left: 0; padding-bottom: 4px; }
  .nb-search-box { flex: 1; min-width: 140px; }
  .nb-card-grid, .nb-tracker-grid { grid-template-columns: 1fr; }
  .nb-micro-stage { flex-direction: column; text-align: center; }
  .nb-home-notes .nb-prose, .nb-legal-card { padding: 18px 16px; }
}
