/* ===========================================================
   ICRBI Senior Connected Care Hub — Shared Design System
   Palette: warm beige, deep teal, dark teal, rust
   Type: Sentient (display serif) + Satoshi (body) via Fontshare
   =========================================================== */

:root {
  /* Palette */
  --beige:      #F7F6F2;
  --surface:    #FBFBF9;
  --surface-2:  #F1EFE8;
  --teal:       #01696F;
  --teal-dark:  #0C4E54;
  --rust:       #A84B2F;
  --rust-soft:  #C66A4A;
  --ink:        #28251D;
  --muted:      #7A7974;
  --faint:      #BAB9B4;
  --border:     #DEDBD2;
  --border-strong: #CFCBBF;
  --white:      #FFFFFF;

  /* Type scale */
  --text-xs:   clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --text-sm:   clamp(0.9rem, 0.88rem + 0.1vw, 0.95rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --text-lg:   clamp(1.15rem, 1.08rem + 0.4vw, 1.35rem);
  --text-xl:   clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --text-2xl:  clamp(2rem, 1.6rem + 1.9vw, 3.1rem);
  --text-hero: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);

  /* Spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-6: 1.5rem;  --space-8: 2rem;
  --space-12: 3rem;    --space-16: 4rem;   --space-20: 5rem;
  --space-24: 6rem;    --space-32: 8rem;

  --radius:    14px;
  --radius-lg: 22px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(40,37,29,.05), 0 2px 8px rgba(40,37,29,.04);
  --shadow-md: 0 4px 12px rgba(40,37,29,.07), 0 12px 32px rgba(40,37,29,.06);
  --shadow-lg: 0 12px 36px rgba(40,37,29,.10), 0 24px 64px rgba(40,37,29,.08);

  --maxw: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Sentient", Georgia, "Times New Roman", serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
ul { padding-left: 1.15rem; }
li { margin-bottom: .4rem; }
strong { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--surface-2); }
.section--ink { background: var(--teal-dark); color: #EAF1F1; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--space-3);
}
.section--ink .eyebrow { color: #7FC7CB; }
.section-title { font-size: var(--text-2xl); max-width: 20ch; }
.section-title--center { margin-inline: auto; text-align: center; max-width: 24ch; }
.lede { font-size: var(--text-lg); color: var(--muted); max-width: 60ch; margin-top: var(--space-4); }
.section--ink .lede { color: #C8DBDB; }
.center { text-align: center; }
.measure { max-width: 65ch; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,246,242,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--space-6); }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 38px; height: 38px; color: var(--teal); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.nav-links li { margin: 0; }
.nav-links a {
  font-size: var(--text-sm); font-weight: 500; color: var(--ink);
  padding: .5rem .7rem; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--teal-dark); }
.nav-links a.active { color: var(--teal); }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  padding: .72rem 1.25rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn--rust { background: var(--rust); color: #fff; }
.btn--rust:hover { background: #8e3d24; color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--light { background: #fff; color: var(--teal-dark); }
.btn--light:hover { background: #EAF1F1; color: var(--teal-dark); }
.btn--lg { padding: .9rem 1.6rem; font-size: var(--text-base); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-6); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.card p { color: var(--muted); font-size: var(--text-sm); }
.card .num {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--teal);
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--teal);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--space-4);
}
.card-icon { width: 30px; height: 30px; color: var(--teal); margin-bottom: var(--space-4); }
.card--ink { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.card--ink h3 { color: #fff; }
.card--ink p { color: #C8DBDB; }

/* Stat blocks */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.stat { }
.stat .figure { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 1.5rem + 3.5vw, 3.6rem); color: var(--teal); line-height: 1; letter-spacing: -0.02em; }
.section--ink .stat .figure { color: #fff; }
.stat .figure .accent { color: var(--rust); }
.stat .label { margin-top: var(--space-3); color: var(--muted); font-size: var(--text-sm); max-width: 28ch; }
.section--ink .stat .label { color: #C8DBDB; }

/* Two-col feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.split--reverse > :first-child { order: 2; }

/* Callout / disclaimer */
.callout {
  border-left: 4px solid var(--rust); background: #FBF1EC;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-6); color: var(--ink); font-size: var(--text-sm);
}
.callout strong { color: var(--rust); }
.callout--teal { border-left-color: var(--teal); background: #ECF3F3; }
.callout--teal strong { color: var(--teal-dark); }

/* Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.pill { font-size: var(--text-xs); font-weight: 600; padding: .35rem .8rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--border); }
.section--ink .pill { background: rgba(255,255,255,.08); color: #EAF1F1; border-color: rgba(255,255,255,.15); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 560px; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 700; background: var(--surface-2); color: var(--ink); font-size: var(--text-xs); letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: none; }
td strong { color: var(--teal-dark); }

/* Curriculum list */
.weeks { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-4); }
.week { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4) var(--space-6); display: flex; gap: var(--space-4); align-items: baseline; }
.week .wk { font-family: var(--font-display); font-weight: 600; color: var(--rust); font-size: var(--text-sm); flex: none; width: 3.4rem; }
.week .wt { font-weight: 600; font-size: var(--text-sm); }
.week .wd { color: var(--muted); font-size: var(--text-xs); margin-top: 2px; }

/* Download list */
.dl-list { display: grid; gap: var(--space-3); }
.dl-item {
  display: flex; align-items: center; gap: var(--space-4); justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-4) var(--space-6); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.dl-item:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.dl-meta { display: flex; gap: var(--space-4); align-items: center; min-width: 0; }
.dl-icon { width: 22px; height: 22px; color: var(--teal); flex: none; }
.dl-text strong { display: block; font-size: var(--text-base); color: var(--ink); }
.dl-text span { font-size: var(--text-xs); color: var(--muted); }
.dl-type { font-size: var(--text-xs); font-weight: 700; color: var(--rust); letter-spacing: .05em; flex: none; }

/* Source links */
.sources { font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-4); }
.sources a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.sources a:hover { color: var(--teal); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem,5vw,4rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero h1 { font-size: var(--text-hero); letter-spacing: -0.025em; }
.hero .lede { font-size: var(--text-lg); max-width: 48ch; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.hero-badge {
  position: absolute; left: -18px; bottom: 28px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: .9rem 1.1rem; max-width: 230px;
}
.hero-badge .hb-fig { font-family: var(--font-display); font-weight: 600; color: var(--teal); font-size: 1.5rem; }
.hero-badge .hb-label { font-size: var(--text-xs); color: var(--muted); }
.hero-grad { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 70% at 85% 0%, rgba(1,105,111,.07), transparent 70%),
  radial-gradient(50% 60% at 0% 100%, rgba(168,75,47,.06), transparent 70%); }

/* Pilot band */
.pilot-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pilot-cell { background: var(--surface); padding: var(--space-6); }
.pilot-cell .pc-k { font-family: var(--font-display); font-weight: 600; color: var(--teal-dark); font-size: var(--text-lg); }
.pilot-cell .pc-l { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: var(--space-2); }

/* Chart figure */
.figure-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-6); }
.figure-card img { border-radius: var(--radius-sm); width: 100%; }
.figure-card figcaption { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-4); }

/* CTA banner */
.cta-band { background: var(--teal-dark); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem,5vw,4rem); text-align: center; }
.cta-band h2 { color: #fff; font-size: var(--text-2xl); max-width: 22ch; margin-inline: auto; }
.cta-band p { color: #C8DBDB; max-width: 52ch; margin: var(--space-4) auto var(--space-8); }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--ink); color: #CFCCC4; padding-block: var(--space-16) var(--space-8); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-8); }
.footer-brand .mark { width: 40px; height: 40px; color: #7FC7CB; margin-bottom: var(--space-4); }
.footer-brand p { font-size: var(--text-sm); color: #9C998F; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-body); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: #807D74; margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--space-3); }
.footer-col a { color: #CFCCC4; font-size: var(--text-sm); }
.footer-col a:hover { color: #fff; }
.footer-contact a { display: block; color: #CFCCC4; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.footer-contact a:hover { color: #fff; }
.footer-bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid #3A3730; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); font-size: var(--text-xs); color: #807D74; }
.footer-disclaimer { font-size: var(--text-xs); color: #807D74; margin-top: var(--space-6); max-width: 80ch; line-height: 1.55; }

/* Page hero (interior) */
.page-hero { padding-block: clamp(2.8rem, 6vw, 5rem) clamp(2rem,4vw,3rem); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: var(--text-2xl); max-width: 22ch; }
.page-hero .lede { margin-top: var(--space-4); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Anchor offset for sticky header */
:target { scroll-margin-top: 90px; }
section[id] { scroll-margin-top: 80px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open + .mobile-menu, .mobile-menu.open { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .pilot-band { grid-template-columns: 1fr 1fr; }
  .weeks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pilot-band { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-badge { position: static; margin-top: var(--space-4); max-width: none; }
  .dl-item { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .btn { width: 100%; justify-content: center; }
  .btn-row .btn { width: auto; }
}

/* Mobile menu */
.mobile-menu { display: none; background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--space-4) 0 var(--space-6); }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu a { display: block; padding: .7rem clamp(1.1rem,4vw,2.5rem); font-size: var(--text-base); font-weight: 500; color: var(--ink); }
.mobile-menu a:hover { background: var(--surface-2); }
.mobile-menu .btn { margin: var(--space-4) clamp(1.1rem,4vw,2.5rem) 0; display: flex; justify-content: center; }

/* ===========================================================
   SPELL Impact Framework blocks
   Added per SPELL Impact Manifest v1.0 (R1-R9)
   =========================================================== */

/* R1 — attribution line */
.spell-attrib {
  font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; color: var(--teal); margin-top: var(--space-4);
}
.spell-attrib span { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: .02em; }
.section--ink .spell-attrib { color: #7FC7CB; }
.section--ink .spell-attrib span { color: #C8DBDB; }

/* R3 — five-pillar band */
.spell-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-8); }
.spell-item {
  display: flex; gap: var(--space-4); align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-6);
  transition: border-color .2s ease, transform .2s ease;
}
.spell-item:hover { border-color: var(--teal); transform: translateY(-2px); }
.spell-item:last-child { grid-column: 1 / -1; }
.spell-letter {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
}
.spell-item h3 { font-size: var(--text-base); margin-bottom: .3rem; }
.spell-item p { color: var(--muted); font-size: var(--text-sm); margin: 0; }

/* R7 — outcome commitment strip */
.spell-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-8); }
.spell-outcome {
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--teal); border-radius: var(--radius-sm);
  padding: var(--space-6);
}
.spell-outcome .lvl {
  font-size: var(--text-xs); letter-spacing: .11em; text-transform: uppercase;
  color: var(--teal); font-weight: 700; margin-bottom: var(--space-3);
}
.spell-outcome .val {
  font-family: var(--font-display); font-weight: 600; font-size: 2.2rem;
  color: var(--teal-dark); line-height: 1; margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}
.spell-outcome .what { font-size: var(--text-sm); margin-bottom: var(--space-3); }
.spell-outcome .cad { font-size: var(--text-xs); color: var(--muted); margin: 0; }

/* R5 — accountability notice */
.spell-accountability {
  border-left: 4px solid var(--teal); background: #ECF3F3;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-6); margin-top: var(--space-8);
}
.spell-accountability strong { display: block; color: var(--teal-dark); margin-bottom: .35rem; }
.spell-accountability p { margin: 0; max-width: 70ch; font-size: var(--text-sm); }

/* R8 — access bar */
.spell-access {
  display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center;
  padding: var(--space-6); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-top: var(--space-8);
}
.spell-access .langs { font-size: var(--text-sm); color: var(--muted); max-width: 46ch; }

/* Governance page */
.gov-toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-6); }
.gov-toc a {
  display: block; padding: var(--space-4) var(--space-6); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 600; font-size: var(--text-sm); color: var(--ink);
}
.gov-toc a:hover { border-color: var(--teal); color: var(--teal); }
.gov-block { padding-top: var(--space-12); border-top: 1px solid var(--border); margin-top: var(--space-12); }
.gov-block:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.gov-block h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.gov-block p, .gov-block li { max-width: 68ch; color: var(--ink); }
.gov-block ul { margin-top: var(--space-4); padding-left: 1.15rem; }
.gov-block li { margin-bottom: var(--space-3); font-size: var(--text-sm); }
.gov-block li strong { color: var(--teal-dark); }

/* Footer additions */
.footer-legal { font-size: var(--text-xs); color: #9BA8A6; margin-top: var(--space-4); line-height: 1.7; }
.footer-legal strong { color: #C8DBDB; }

@media (max-width: 860px) {
  .spell-grid, .spell-outcomes, .gov-toc { grid-template-columns: 1fr; }
  .spell-item:last-child { grid-column: auto; }
}

/* Nav density with the Governance link added */
@media (min-width: 861px) and (max-width: 1180px) {
  .nav { gap: var(--space-4); }
  .nav-links { gap: 2px; }
  .nav-links a { padding-inline: .55rem; font-size: 0.9rem; }
  .brand-sub { display: none; }
}
