/* Visual scale: html font-size 80% (12.8px). Design px converted to rem on a 16px base. Media-query breakpoints, 1px hairlines and 999px pill radii are unchanged. */
/* WIGGINS / AI — public site. Palette from the 4 Dec 2026 brief. */
:root {
  --navy: #192737;
  --lime: #cef34a;
  --cream: #fafaf6;
  --sage: #e7eee5;
  --muted: #7da18e;
  --slate: #64717a;
  --white: #fff;
  --line: rgba(25, 39, 55, 0.12);
  --shadow: 0 0.5rem 1.5rem rgba(25, 39, 55, 0.08);
  --radius: 1.125rem;
  --wrap: 73.75rem;
  --header-h: 5.25rem;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: Manrope, Inter, system-ui, sans-serif;
  --focus: 0.1875rem solid var(--lime);
}

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 80%; /* 12.8px when the browser default is 16px: 20% smaller site */
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  font-size: max(14px, 1.05rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: var(--navy); }
.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin-inline: auto; }
@media (min-width: 800px) { .wrap { width: min(var(--wrap), calc(100% - 3rem)); } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0.75rem; top: 0; transform: translateY(-160%);
  background: var(--lime); color: var(--navy); padding: 0.5rem 0.875rem;
  border-radius: 0.5rem; font-weight: 700; z-index: 30; text-decoration: none;
}
.skip-link:focus { transform: translateY(0.75rem); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: var(--focus); outline-offset: 0.1875rem;
}

/* Header */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 20; }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
  padding: 0.75rem 0 0.875rem;
  min-height: 4.5rem;
}
.wordmark { display: flex; align-items: center; text-decoration: none; grid-column: 1; grid-row: 1; }
.wordmark-img { display: none; height: 1.625rem; width: auto; }
.wordmark-img.is-loaded { display: block; }
.wordmark-img.is-loaded + .wordmark-text { display: none; }
.wordmark-text { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.02em; color: var(--white); }
.wm-slash, .wm-ai { color: var(--lime); }
.strapline {
  grid-column: 1; grid-row: 2;
  margin: 0.25rem 0 0;
  color: #c9d2d6;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  max-width: 16rem;
}
.nav-wrap { grid-column: 2; grid-row: 1 / span 2; position: relative; justify-self: end; }
.nav-checkbox { display: none; }
.menu-toggle {
  display: flex; cursor: pointer; width: 2.75rem; height: 2.75rem; border-radius: 0.5rem;
  align-items: center; justify-content: center; color: var(--white);
}
.menu-toggle-icon, .menu-toggle-icon::before, .menu-toggle-icon::after {
  display: block; width: 1.25rem; height: 0.125rem; background: currentColor; border-radius: 1px; position: relative;
}
.menu-toggle-icon::before, .menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle-icon::before { top: -0.375rem; }
.menu-toggle-icon::after { top: 0.375rem; }
.site-nav {
  display: none; position: absolute; right: 0; top: calc(100% + 0.5rem);
  background: #15202b; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.875rem; padding: 0.75rem; flex-direction: column; align-items: stretch;
  gap: 0.25rem; min-width: 14.375rem; box-shadow: 0 1rem 2.5rem rgba(0,0,0,0.28);
}
.nav-checkbox:checked ~ .site-nav { display: flex; }
.site-nav > a {
  text-decoration: none; color: var(--white); font-weight: 600; font-size: 0.98rem;
  padding: 0.625rem 0.75rem; border-radius: 0.5rem;
}
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: var(--lime); }
.site-nav > a[aria-current="page"] { background: rgba(206, 243, 74, 0.08); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  text-decoration: none; font-weight: 700; font-size: 0.98rem; line-height: 1;
  border-radius: 999px; padding: 0.8125rem 1.25rem; border: 0.125rem solid transparent;
  font-family: var(--font-body);
}
.btn-lime { background: var(--lime); color: var(--navy); border-color: var(--lime); }
.btn-lime:hover { background: #d6f56a; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: rgba(25, 39, 55, 0.04); }
.btn-follow { padding: 0.6875rem 1rem; font-size: 0.92rem; margin-top: 0.375rem; justify-content: center; }
.btn .icon { width: 1.125rem; height: 1.125rem; flex: 0 0 auto; }

/* Hero */
.hero {
  position: relative; padding: 1.75rem 0 1.125rem; overflow: hidden;
  background-image:
    linear-gradient(to right, rgba(25,39,55,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(25,39,55,0.045) 1px, transparent 1px);
  background-size: 1.375rem 1.375rem;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.kicker {
  margin: 0 0 0.75rem; color: #4e7a12; font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-head);
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 7.04vw, 2.5rem);
  text-wrap: balance;
}
.lede { margin: 0 0 1.375rem; max-width: 36rem; font-size: max(14px, 1.05rem); }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; }
.hero-actions .btn { width: 100%; padding: 0.9375rem 1.125rem; }
.hero-note { margin: 0; font-size: 0.85rem; color: var(--slate); }

/* Flow (reused) */
.flow { margin: 0; }
.flow-board { display: grid; grid-template-columns: minmax(0, 1fr) 3rem auto; align-items: center; }
.flow-sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.flow-node {
  display: flex; align-items: center; gap: 0.625rem; background: #dce6da;
  border-radius: 0.75rem; padding: 0.5rem 0.75rem; font-weight: 700; position: relative; font-size: 0.92rem;
}
.flow-node::after {
  content: ""; position: absolute; right: -0.375rem; top: 50%; width: 0.625rem; height: 0.625rem;
  background: var(--lime); border: 0.125rem solid var(--navy); border-radius: 50%; transform: translateY(-50%);
}
.flow-icon { width: 1.375rem; height: 1.375rem; display: grid; place-items: center; }
.flow-icon svg { width: 1.125rem; height: 1.125rem; }
.flow-lines { width: 100%; height: 12.5rem; }
.flow-lines path { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; }
.flow-end { display: flex; align-items: center; gap: 0.375rem; }
.flow-approval, .flow-result {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 3.5rem; min-height: 3.5rem; padding: 0.5rem; border-radius: 0.75rem; font-weight: 800; text-align: center;
}
.flow-approval { background: #f4f7ef; border: 0.1875rem solid #1d5c32; }
.approval-check { width: 1.875rem; height: 1.875rem; border-radius: 50%; background: var(--lime); color: var(--navy); display: grid; place-items: center; }
.approval-check svg { width: 1.125rem; height: 1.125rem; }
.flow-result { background: var(--navy); color: var(--white); }
.result-icon { color: var(--lime); width: 1.625rem; height: 1.625rem; display: grid; place-items: center; }
.result-icon svg { width: 1.5rem; height: 1.5rem; }
.flow-end-label { display: none; font-size: 0.95rem; }
.flow-arrow { width: 1.375rem; color: var(--navy); }
.flow-arrow svg { width: 1.375rem; height: 0.875rem; display: block; }

/* Stats */
.stats-section { padding: 0.25rem 0 0.5rem; }
.stats-bar {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem;
  background: var(--sage); border-radius: 1rem; padding: 1rem 0.875rem 0.875rem;
}
.stat { display: flex; flex-direction: row; align-items: flex-start; text-align: left; gap: 0.75rem; text-decoration: none; color: inherit; border-radius: 0.625rem; padding: 0.5rem 0.25rem; }
a.stat:hover { background: rgba(255,255,255,0.4); }
.stat-icon { width: 2.25rem; height: 2.25rem; color: #315545; display: grid; place-items: center; flex: 0 0 auto; }
.stat-icon svg { width: 1.875rem; height: 1.875rem; }
.stat-value { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.stat-label { display: block; margin: 0.125rem 0 0; font-size: 0.85rem; color: var(--navy); }
.stat-label-short { display: none; }
.stat-value-text { display: block; font-size: 1rem; }
.stat-value-short { display: none; }
.stats-note {
  grid-column: 1 / -1; margin: 0.375rem 0 0; text-align: center;
  font-style: italic; font-size: 0.88rem; color: #3e4a52;
}
.stats-empty { margin: 0; color: var(--navy); font-size: 0.95rem; }

/* Field / cards */
.section { padding: 1.25rem 0 2.25rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section h2 { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
.section-lead { margin: 0 0 1.375rem; max-width: 40rem; }
.section-aside { margin: 0; color: var(--slate); font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.section-aside:hover { color: var(--navy); }
.cards { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.card { background: var(--white); border-radius: 1rem; box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(25,39,55,0.04); }
.card > a, .card .card-link { text-decoration: none; color: inherit; display: flex; flex-direction: row; align-items: center; gap: 0.75rem; padding: 0.625rem; height: 100%; }
.card-media { flex: 0 0 5.75rem; width: 5.75rem; height: 4.5rem; border-radius: 0.75rem; overflow: hidden; position: relative; background: linear-gradient(145deg, #c8d9b0, #315545); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .card-tag { display: none; }
.card-body { padding: 0 0.375rem 0 0; min-width: 0; }
.card-tag {
  display: inline-flex; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.1875rem 0.5rem; border-radius: 999px; line-height: 1; margin-bottom: 0.125rem;
}
.card-tag--lime { background: var(--lime); color: var(--navy); }
.card-tag--olive { background: #315545; color: var(--white); }
.card h3 { margin: 0 0 0.125rem; font-size: 0.98rem; }
.card-blurb { display: none; margin: 0 0 0.75rem; font-size: 0.95rem; }
.card-meta { margin: 0; color: var(--slate); font-size: 0.78rem; font-weight: 500; }

/* Toolkit intro / tool cards */
.tool-cards { display: grid; grid-template-columns: 1fr; gap: 0.875rem; }
.tool-card { background: var(--white); border-radius: 1rem; padding: 1.125rem; border: 1px solid rgba(25,39,55,0.06); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.625rem; }
.tool-card h3 { margin: 0; font-size: 1.15rem; }
.tool-card .one-liner { margin: 0; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.badge { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.25rem 0.5rem; border-radius: 999px; }
.badge-planned { background: var(--sage); color: var(--navy); }
.badge-experimental { background: #f3e7b3; color: var(--navy); }
.badge-available { background: var(--lime); color: var(--navy); }
.audience { font-size: 0.85rem; color: var(--slate); }
.tool-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; background: var(--sage);
  color: #315545; display: grid; place-items: center;
}
.tool-icon svg { width: 1.75rem; height: 1.75rem; }

/* Tekbot-style banner / notice */
.banner {
  margin-top: 1rem; display: flex; align-items: center; gap: 0.75rem;
  background: #e8f3c4; border-radius: 1rem; padding: 0.75rem; text-decoration: none; color: var(--navy);
}
.banner:hover { background: #dceeb0; }
.empty-note { background: var(--sage); border-radius: 1rem; padding: 1.125rem 1.25rem; }
.empty-note p { margin: 0; }

/* Pages */
.page-hero { padding: 2rem 0 0.75rem; }
.page-hero h1 { margin: 0 0 0.75rem; font-size: clamp(1.8rem, 4.8vw, 2.8rem); }
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.prose h2 { margin: 1.6rem 0 0.7rem; font-size: 1.4rem; }
.prose h3 { margin: 1.3rem 0 0.5rem; font-size: 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem 0.875rem; color: var(--slate); font-size: 0.9rem; margin: 0 0 1.25rem; }
.article-layout { display: grid; gap: 1.5rem; }
.quick-take { background: var(--sage); border-radius: 1rem; padding: 1.125rem 1.25rem; margin-bottom: 1.5rem; }
.quick-take h2 { margin-top: 0; }
details.deep-dive { border: 1px solid var(--line); border-radius: 1rem; padding: 0.5rem 1.125rem 0.875rem; background: var(--white); }
details.deep-dive > summary { cursor: pointer; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; padding: 0.625rem 0; }

/* Depth control */
.depth-bar { margin: 0.5rem 0 1.5rem; }
.depth-bar p { margin: 0 0 0.5rem; font-weight: 600; }
.depth-control {
  display: flex; flex-wrap: wrap; gap: 0.375rem; background: var(--sage);
  padding: 0.375rem; border-radius: 999px; width: fit-content; max-width: 100%;
}
.depth-control button {
  appearance: none; border: 0; background: transparent; color: var(--navy);
  font-family: var(--font-body); font-weight: 700; font-size: 0.88rem;
  padding: 0.625rem 0.875rem; border-radius: 999px; cursor: pointer; min-height: 2.75rem;
}
.depth-control button[aria-checked="true"] { background: var(--navy); color: var(--cream); }
.depth-blurb { margin: 0.625rem 0 0; font-size: 0.92rem; color: #3e4a52; max-width: 36rem; }
[data-depth] { }
body[data-depth-pref="simple"] [data-depth]:not([data-depth~="simple"]) { display: none; }
body[data-depth-pref="practical"] [data-depth]:not([data-depth~="simple"]):not([data-depth~="practical"]) { display: none; }
/* nerd shows all */

/* Filters / search */
.filters { display: flex; flex-wrap: wrap; gap: 0.625rem; margin: 0 0 1.25rem; align-items: center; }
.filters input[type="search"], .filters select {
  font: inherit; padding: 0.625rem 0.75rem; border: 1px solid var(--line); border-radius: 0.625rem;
  background: var(--white); color: var(--navy); min-height: 2.75rem;
}
.filters input[type="search"] { flex: 1; min-width: 10rem; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 0.5rem 0.75rem; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.88rem; min-height: 2.5rem; }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* Tool page */
.tool-root, .being-built {
  background: var(--sage); border-radius: 1rem; padding: 1.25rem; margin: 1rem 0 1.5rem;
}
.being-built p { margin: 0 0 0.6rem; }
.authority-note { font-size: 0.95rem; background: #fff8d6; border-radius: 0.75rem; padding: 0.75rem 0.875rem; }

/* Footer */
.site-footer { background: var(--navy); color: var(--cream); padding: 1.375rem 0; margin-top: 0.75rem; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 0.625rem; }
.footer-tag { margin: 0; color: #c9d2d6; font-size: 0.88rem; }
.footer-links { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.875rem; font-size: 0.86rem; }
.footer-links a { text-decoration: none; color: #d5dadd; }
.footer-links a:hover { color: var(--lime); }
.wordmark-footer .wordmark-img { height: 1.25rem; }

.footer-legal { margin: 0.5rem 0 0; font-size: 0.8rem; color: #9aa6ac; }

/* Desktop */
@media (min-width: 861px) {
  :root { --header-h: 5rem; }
  .header-inner {
    display: flex; flex-wrap: nowrap; gap: 1.125rem; min-height: var(--header-h); padding: 0;
    align-items: center;
  }
  .strapline {
    margin: 0; padding-left: 1rem; border-left: 1px solid rgba(255,255,255,0.22);
    max-width: none; font-size: 0.88rem; color: #b8c2c6; white-space: nowrap;
  }
  .nav-wrap { margin-left: auto; display: flex; align-items: center; position: static; }
  .menu-toggle { display: none !important; }
  .site-nav { display: flex !important; position: static; background: none; border: 0; box-shadow: none; padding: 0; flex-direction: row; align-items: center; gap: 1.375rem; min-width: 0; }
  .site-nav > a { padding: 0; }
  .site-nav > a[aria-current="page"] { background: none; }
  .btn-follow { margin-top: 0; }

  .hero { padding: 3rem 0 1.75rem; background-size: 1.75rem 1.75rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(17.5rem, 0.95fr); gap: 2rem 1.5rem; align-items: center; }
  .hero h1 { font-size: clamp(2.4rem, 3.52vw, 3.75rem); }
  .lede { font-size: 1.12rem; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }

  .flow-board { grid-template-columns: minmax(10rem, 12.5rem) 4.5rem minmax(13.75rem, 1fr); min-height: 17.5rem; }
  .flow-sources { gap: 0.75rem; }
  .flow-node { padding: 0.6875rem 0.875rem; border-radius: 0.875rem; font-size: 1rem; }
  .flow-node::after { width: 0.75rem; height: 0.75rem; right: -0.4375rem; }
  .flow-icon { width: 1.75rem; height: 1.75rem; }
  .flow-icon svg { width: 1.375rem; height: 1.375rem; }
  .flow-lines { height: 17.5rem; }
  .flow-approval, .flow-result { min-width: 6.75rem; min-height: 6.75rem; padding: 0.875rem 0.75rem; border-radius: 1rem; }
  .flow-end-label { display: block; }
  .result-sub { display: block; font-weight: 600; font-size: 0.82em; opacity: 0.92; }
  .flow-arrow { width: 2.25rem; }
  .flow-arrow svg { width: 2.25rem; }
  .approval-check { width: 2.25rem; height: 2.25rem; }

  .stats-section { padding: 0.5rem 0 1.75rem; }
  .stats-bar { grid-template-columns: 1.15fr 1.15fr 1.15fr auto; padding: 1.125rem 1.75rem; gap: 0.5rem 1.25rem; border-radius: 1.25rem; align-items: center; }
  .stat { flex-direction: row; text-align: left; padding-right: 1rem; border-right: 1px solid var(--line); gap: 0.875rem; align-items: center; }
  .stat:last-of-type { border-right: 0; }
  .stat-icon { width: 3rem; height: 3rem; }
  .stat-icon svg { width: 2.5rem; height: 2.5rem; }
  .stat-value { font-size: 1.7rem; }
  .stat-value-text { display: block; font-size: 1.2rem; }
  .stat-value-short { display: none; }
  .stat-label { display: block; font-size: 0.88rem; }
  .stat-label-short { display: none; }
  .stats-note { grid-column: auto; border-left: 1px solid var(--line); padding: 0 0 0 1.125rem; text-align: left; margin: 0; font-size: 0.95rem; }

  .section { padding: 1rem 0 3.5rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }
  .card { border-radius: 1.25rem; }
  .card > a, .card .card-link { flex-direction: column; align-items: stretch; padding: 0; }
  .card-media { flex: none; width: auto; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
  .card-media .card-tag { display: inline-flex; position: absolute; left: 0.875rem; top: 0.875rem; z-index: 2; padding: 0.3125rem 0.625rem; font-size: 0.68rem; }
  .card-tag-mobile { display: none; }
  .card-body { padding: 1.125rem 1.25rem; }
  .card h3 { font-size: 1.28rem; margin-bottom: 0.5rem; }
  .card-blurb { display: block; }
  .card-meta { font-size: 0.86rem; }

  .tool-cards { grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-brand { display: flex; align-items: center; gap: 1rem; }
  .footer-tag { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,0.22); }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .strapline { white-space: normal; max-width: 12rem; }
  .site-nav { gap: 0.875rem; }
  .hero h1 { font-size: 2.8rem; }
}

/* Current nav item — lime underline, matching the toolkit mock-up */
.site-nav > a.is-current {
  box-shadow: inset 0 -0.125rem 0 var(--lime);
  color: var(--white);
}
@media (max-width: 860px) {
  .site-nav > a.is-current { box-shadow: none; background: rgba(206, 243, 74, 0.08); color: var(--lime); }
}

/* Evidence-strip qualifiers */
.stat-qualifier {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #3e4a52;
  font-weight: 500;
  font-style: italic;
}
@media (max-width: 860px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stats-note { font-size: 0.8rem; }
}

/* Depth cards (toolkit mock-up) */
.depth-heading, .toolkit-subhead {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 1.75rem 0 0.875rem;
  letter-spacing: -0.02em;
}
.depth-bar { margin: 0.5rem 0 0.5rem; }
.depth-control {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
  background: none;
  padding: 0;
  border-radius: 0;
  width: 100%;
  max-width: none;
}
.depth-control button.depth-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  background: var(--sage);
  color: var(--navy);
  border-radius: 1rem;
  padding: 1rem 1.125rem;
  min-height: 2.75rem;
  width: 100%;
  border: 0.125rem solid transparent;
}
.depth-control button.depth-card[aria-checked="true"] {
  background: var(--sage);
  color: var(--navy);
  border-color: var(--navy);
}
.depth-card-icon { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: 0 0 auto; color: var(--navy); }
.depth-card-icon svg { width: 1.5rem; height: 1.5rem; }
.depth-card-copy { display: flex; flex-direction: column; gap: 0.25rem; }
.depth-card-title { font-weight: 800; font-family: var(--font-head); font-size: 1rem; }
.depth-card-blurb { font-weight: 500; font-size: 0.88rem; color: #3e4a52; }
@media (min-width: 861px) {
  .depth-control { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .depth-control button.depth-card { flex-direction: column; min-height: 7.5rem; padding: 1.25rem 1.375rem; }
}

/* Illustrated tool cards */
.tool-card { padding: 0; overflow: hidden; }
.tool-card .card-media { flex: none; width: auto; height: auto; aspect-ratio: 16 / 10; border-radius: 1rem 1rem 0 0; }
.tool-card .card-body { padding: 1rem 1.125rem 1.125rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tool-card h3 { font-size: 1.15rem; }
.tool-action { font-weight: 700; text-decoration: none; margin-top: 0.375rem; color: var(--navy); }
.tool-action:hover { color: #4e7a12; }
.badge-audience { background: var(--sage); color: var(--navy); }
.card-media-fallback { display: grid; place-items: center; background: var(--sage); }

/* Planned list */
.planned-block { margin-top: 2.25rem; }
.planned-lead { margin: -0.5rem 0 1rem; color: #3e4a52; font-size: 0.95rem; }
.planned-grid { display: grid; grid-template-columns: 1fr; gap: 0.625rem; }
.planned-row {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 0.875rem; padding: 0.75rem 1rem; min-height: 3.25rem;
}
.planned-icon { width: 1.75rem; height: 1.75rem; color: var(--navy); display: grid; place-items: center; flex: 0 0 auto; }
.planned-icon svg { width: 1.5rem; height: 1.5rem; }
.planned-title { font-weight: 700; flex: 1; font-family: var(--font-head); }
@media (min-width: 861px) {
  .planned-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.125rem; }
  .tool-cards { grid-template-columns: repeat(3, 1fr); }
}

/* Tool mount */
#tool-root { margin: 1rem 0 1.5rem; }

/* After the 80% root scale, keep tap targets at least 40px. */
.menu-toggle,
.btn,
.btn-follow,
.hero-actions .btn,
.site-nav > a,
.depth-control button,
.depth-card,
.chip,
.filters input[type="search"],
.filters select,
.tool-action {
  min-height: max(40px, 2.75rem);
}
.menu-toggle {
  width: max(40px, 2.75rem);
  height: max(40px, 2.75rem);
}

/* Tools are rem-based, so they follow the 80% root. Floor their body type at 14px. */
#tool-root .wai-tool {
  font-size: max(14px, 1rem);
}
#tool-root .wai-question,
#tool-root .wai-lede,
#tool-root .wai-help,
#tool-root .wai-note,
#tool-root .wai-deeper p,
#tool-root .wai-label,
#tool-root label,
#tool-root input[type="text"],
#tool-root textarea,
#tool-root .wai-btn {
  font-size: max(14px, 1em);
}

/* Nav fit after 80% scale: keep link labels on one line */
@media (min-width: 861px) {
  .site-nav > a, .btn-follow { white-space: nowrap; }
}
@media (min-width: 861px) and (max-width: 1599px) {
  .strapline { white-space: normal; max-width: 11.5rem; line-height: 1.25; }
  .site-nav { gap: 1rem; }
}
