/* Williams Civic Hub v3 design system: "Valley Modern" (theme B, adopted Oct 19, 2026).
 * Mobile-first. Local WOFF2 fonts only (Outfit display + Figtree body, Latin + Latin-1 subsets, about 39 KB,
 * font-display: swap; no third-party requests). Warm cream, olive, golden-field and valley-sky tints.
 * Every text/background pair meets WCAG 2.1 AA. Dark mode via prefers-color-scheme.
 * Claim labels always use text + color, never color alone. The SVG landscape is on the home hero only;
 * inner pages get a small motif strip in their .page-head band.
 * Sections: 1 tokens · 2 component base (v2) · 3 shared polish (from themes/base.css)
 *           · 4 Valley Modern (from themes/b-valley-modern.css) · 5 v3: Valley Modern on every page.
 * The original theme files stay in themes/ for reference; they are not used by the build. */

/* ========== 1. tokens ========== */
@font-face { font-family: "WCG Outfit"; src: url("../fonts/outfit.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "WCG Figtree"; src: url("../fonts/figtree-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
:root {
  --font: "WCG Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --font-display: "WCG Outfit", "WCG Figtree", system-ui, sans-serif;
  --bg: #fbf7ef; --surface: #ffffff; --surface-2: #f5efe1; --surface-3: #ebe3d0;
  --ink: #1f2a1f; --muted: #4c574a; --line: #e8e0cd; --line-strong: #7a7461;
  --brand: #3f5320; --brand-2: #2f3f16; --brand-soft: #eef2df; --on-brand: #ffffff;
  --link: #275a80; --link-visited: #6a3d8f;
  --warm: #8a4510; --warm-2: #e3a940; --warm-soft: #fbefd2;
  --sky: #e3eff7; --sky-ink: #24557b; --gold: #fbefd2; --gold-ink: #7f4f08; --olive: #eaf0d8; --olive-ink: #43571d; --clay: #f8e6db; --clay-ink: #8a3d1d;
  --strip-bg: #f4e6c0; --strip-ink: #3b2a06;
  --focus: #ffbf47; --focus-ring: #1f2a1f;
  --v-bg: #e3f3e8; --v-fg: #12602f; --u-bg: #fdf0d4; --u-fg: #7a4300;
  --c-bg: #e4eefb; --c-fg: #1b4d8c; --s-bg: #ecebe8; --s-fg: #33302b;
  --danger: #a32020; --danger-soft: #fdeeee;
  --l1-bg: #eaf3f9; --l1-bd: #24557b; --l2-bg: #eef3de; --l2-bd: #43571d; --l3-bg: #fdf3dc; --l3-bd: #7f4f08;
  --shadow: 0 1px 2px rgba(63, 52, 20, .06), 0 8px 24px -6px rgba(63, 52, 20, .12);
  --shadow-lg: 0 2px 4px rgba(63, 52, 20, .06), 0 18px 40px -10px rgba(63, 52, 20, .22);
  --gutter: 1.125rem; --radius: 22px; --radius-sm: 14px;
  --hero-sky: linear-gradient(180deg, #d6e8f3 0%, #eaf1ee 45%, #f8efd6 100%);
  --head-sky: linear-gradient(170deg, #e2eef5 0%, #f1f3ea 55%, #f9f0da 100%);
  --hero-art: url("../img/valley-hero.svg");
  --motif: url("../img/valley-motif.svg");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141912; --surface: #1c2219; --surface-2: #232b20; --surface-3: #2e3829;
    --ink: #eef0e6; --muted: #bcc3b4; --line: #333d2e; --line-strong: #8d9784;
    --brand: #c4d88f; --brand-2: #d8e8ae; --brand-soft: #27311d; --on-brand: #161c10;
    --link: #9fcbef; --link-visited: #d3b5f2;
    --warm: #f2bb73; --warm-2: #e3a940; --warm-soft: #33291a;
    --sky: #1c2a35; --sky-ink: #a9d0ef; --gold: #332a17; --gold-ink: #f2cf83; --olive: #263020; --olive-ink: #c4d88f; --clay: #35231b; --clay-ink: #f2ae8c;
    --strip-bg: #2c2516; --strip-ink: #f3e6c6;
    --focus: #ffbf47; --focus-ring: #ffffff;
    --v-bg: #15361f; --v-fg: #a3e3b6; --u-bg: #3b2b0d; --u-fg: #f6cd80;
    --c-bg: #172b45; --c-fg: #acc9f4; --s-bg: #2b2f33; --s-fg: #e0ddd8;
    --danger: #ff9b9b; --danger-soft: #3a1c1c;
    --l1-bg: #1b2833; --l1-bd: #a9d0ef; --l2-bg: #222c1b; --l2-bd: #c4d88f; --l3-bg: #30271a; --l3-bd: #f2cf83;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -6px rgba(0, 0, 0, .45);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -10px rgba(0, 0, 0, .55);
    --hero-sky: linear-gradient(180deg, #17222c 0%, #1b2420 50%, #262315 100%);
    --head-sky: linear-gradient(170deg, #18232b 0%, #1b2219 55%, #241f14 100%);
    --hero-art: url("../img/valley-hero-dark.svg");
    --motif: url("../img/valley-motif-dark.svg");
    color-scheme: dark;
  }
}
/* spacing + type scales (from themes/base.css) */
:root {
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-md: 1.0625rem; --fs-lg: 1.25rem; --fs-xl: 1.5rem; --fs-2xl: 2rem;
  --fs-hero: clamp(2.35rem, 1.4rem + 4.2vw, 4.25rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ========== 2. component base ========== */
/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3, h4 { line-height: 1.22; margin: 1.8em 0 .5em; font-weight: 750; letter-spacing: -.012em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.4rem); margin-top: 1.5rem; letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.6rem); }
h3 { font-size: 1.18rem; }
p, li, dd { max-width: 70ch; }
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: .16em; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus); border-radius: 4px; }
img, svg { max-width: 100%; }
code { font-size: .9em; background: var(--surface-2); padding: .05em .35em; border-radius: 5px; word-break: break-word; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.small { font-size: .9rem; color: var(--muted); }
.big { font-size: 1.3rem; font-weight: 750; margin: .2em 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
main { padding-bottom: 3rem; }
main:focus { outline: none; }
.is-hidden { display: none !important; }
mark { background: #ffe066; color: #111; }

.skip-link { position: absolute; left: .5rem; top: -100px; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 50; font-weight: 700; border-radius: 6px; }
.skip-link:focus, .skip-link:visited { top: .5rem; color: var(--bg); }

/* ---------- disclaimer strip (one line) ---------- */
.banner { background: var(--strip-bg); color: var(--strip-ink); font-size: .8125rem; line-height: 1.4; }
.banner p { margin: 0 auto; padding-top: .34rem; padding-bottom: .34rem; max-width: 72rem; }
.banner strong { font-weight: 650; }
.banner a, .banner a:visited { color: var(--strip-ink); font-weight: 700; margin-left: .35rem; white-space: nowrap; }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; gap: .5rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; margin-right: auto; padding: .35rem 0; white-space: nowrap; min-width: 0; }
.brand:visited { color: var(--ink); }
.brand .logo { flex: 0 0 auto; width: 2rem; height: 2rem; }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
.site-nav { order: 3; }
.lang-switch { order: 2; display: inline-flex; align-items: center; min-height: 44px; padding: .25rem .8rem; border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.lang-switch:visited { color: var(--ink); }
.lang-switch:hover { background: var(--surface-2); }
.menu-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; min-width: 44px; justify-content: center; padding: .25rem .7rem; font: inherit; font-size: .9rem; font-weight: 700; color: var(--on-brand); background: var(--brand); border: 0; border-radius: 999px; cursor: pointer; }
.menu-btn[hidden] { display: none; }
.menu-btn .mb-close { display: none; }
.menu-btn[aria-expanded="true"] .mb-open { display: none; }
.menu-btn[aria-expanded="true"] .mb-close { display: inline; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:visited { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 800; }

/* phone / tablet: menu is a disclosure panel */
@media (max-width: 63.99rem) {
  html.js .nav { display: none; }
  html.js.menu-open .nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .5rem var(--gutter) 1rem; }
  html.js .nav li { max-width: none; border-bottom: 1px solid var(--line); }
  html.js .nav li:last-child { border-bottom: 0; }
  html.js .nav a { min-height: 52px; font-size: 1.05rem; }
  html.js .nav a[aria-current="page"]::before { content: ""; width: 4px; height: 1.4em; background: var(--brand); border-radius: 2px; margin-right: .6rem; }
  /* without JS the links simply wrap below the header row */
  html:not(.js) .header-row { flex-wrap: wrap; }
  html:not(.js) .site-nav { flex-basis: 100%; }
  html:not(.js) .nav { display: flex; flex-wrap: wrap; gap: 0 1rem; padding-bottom: .4rem; }
}
/* desktop: inline links */
@media (min-width: 64rem) {
  .menu-btn { display: none !important; }
  .site-nav { order: 1; margin-right: .75rem; }
  .nav { display: flex; gap: .15rem; }
  .nav .nav-home { display: none; }
  .nav a { padding: 0 .7rem; font-size: .95rem; border-radius: 8px; position: relative; }
  .nav a:hover { background: var(--surface-2); }
  .nav a[aria-current="page"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 4px; height: 3px; border-radius: 2px; background: var(--brand); }
}

/* translation review strip */
.review-note { border: 1px dashed var(--u-fg); background: var(--u-bg); color: var(--ink); padding: .45rem .9rem; margin: 1rem 0 0; border-radius: var(--radius-sm); font-size: .9rem; }
.review-note p { margin: 0; max-width: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 700; line-height: 1.2; padding: .75rem 1.25rem; min-height: 48px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; text-decoration: none; }
.btn-primary, .btn-primary:visited { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-2); color: var(--on-brand); }
.btn-lg { font-size: 1.1rem; padding: .9rem 1.6rem; min-height: 56px; }
.btn-ghost, .btn-ghost:visited { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-danger { border-color: var(--danger); color: var(--danger); background: var(--surface); }
.btn-danger:hover { background: var(--danger-soft); }

/* ---------- cards & callouts ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.25rem 0; box-shadow: var(--shadow); }
.card > :first-child, .card h2:first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card-soft { background: var(--surface); }
.card-fact { border-left: 5px solid var(--warm); }
.meeting-card { border-top: 5px solid var(--brand); }
.meeting-card h2 { margin-top: .1rem; }
.confirm { background: var(--surface-2); padding: .55rem .8rem; border-radius: var(--radius-sm); }
.callout { border-left: 5px solid var(--brand); background: var(--brand-soft); padding: .7rem 1rem; margin: 1.25rem 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.warning { border-left: 5px solid var(--danger); background: var(--danger-soft); padding: .7rem 1rem; margin: 1.25rem 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.notice { border: 1px solid var(--line-strong); background: var(--strip-bg); color: var(--strip-ink); padding: .8rem 1.1rem; margin: 1.25rem 0; border-radius: var(--radius-sm); }
.disclaimer-full { background: var(--strip-bg); color: var(--strip-ink); border: 1px solid var(--line); border-left: 5px solid var(--warm-2); border-radius: var(--radius-sm); padding: .9rem 1.2rem; }
.disclaimer-full p { margin: .4rem 0; }
.disclaimer-full a, .disclaimer-full a:visited { color: var(--strip-ink); font-weight: 700; }

/* ---------- claim labels (chips) ---------- */
.tag { display: inline-flex; align-items: center; gap: .25em; font-size: .78rem; font-weight: 750; padding: .05rem .5rem; border-radius: 999px; border: 1px solid currentColor; margin: 0 .15rem; line-height: 1.55; white-space: nowrap; vertical-align: .08em; letter-spacing: .01em; }
.tag::before { font-weight: 900; }
.tag-v { background: var(--v-bg); color: var(--v-fg); }
.tag-v::before { content: "✓" / ""; }
.tag-u { background: var(--u-bg); color: var(--u-fg); border-style: dashed; }
.tag-u::before { content: "?" / ""; }
.tag-c { background: var(--c-bg); color: var(--c-fg); }
.tag-c::before { content: "=" / ""; }
.tag-summary { background: var(--s-bg); color: var(--s-fg); }
.cite { font-size: .85rem; font-weight: 700; text-decoration: none; padding: 0 .1rem; }
.cite:hover { text-decoration: underline; }
.legend dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem .9rem; margin: .7rem 0; }
.legend dd { margin: 0; }
.chip-legend { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .6rem; }
.chip-legend li { display: flex; gap: .6rem; align-items: baseline; }
.chip-legend .tag { flex: 0 0 auto; margin: 0; }
details > summary { cursor: pointer; font-weight: 700; padding: .35rem 0; min-height: 44px; display: list-item; }

/* ---------- home ---------- */
.hero { display: grid; gap: 1.5rem; align-items: center; background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem 1.25rem; margin: 1.25rem 0 2.5rem; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3.6vw, 3.2rem); margin: .2rem 0 .8rem; line-height: 1.08; }
.eyebrow { font-size: .85rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--warm); margin: 0; }
.lead { font-size: 1.15rem; color: var(--ink); margin: 0 0 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 .9rem; }
.hero-note { font-size: .9rem; color: var(--muted); margin: 0; }
.home-sec h2 { margin-top: 0; }
.sec-lead { color: var(--muted); margin-top: -.2rem; }
.tools-line { margin-top: 1.25rem; color: var(--muted); }
.home-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.home-grid .card { margin: 0; }
section.home-sec + section.home-sec { margin-top: 2.5rem; }

/* course path cards */
.path { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; counter-reset: path; }
.path-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem; box-shadow: var(--shadow); max-width: none; transition: transform .15s ease, box-shadow .15s ease; }
.path-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(29, 39, 51, .06), 0 12px 28px rgba(29, 39, 51, .1); }
.path-card:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus); }
.path-card h3 { margin: .4rem 0 .35rem; font-size: 1.2rem; }
.path-card p { margin: 0 0 .5rem; }
.path-card p:last-child { margin-bottom: 0; }
.card-link { color: var(--ink); text-decoration: none; }
.card-link:visited { color: var(--ink); }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; box-shadow: none; }
.card-link:hover { text-decoration: underline; }
.path-kicker { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.path-num { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: .95rem; letter-spacing: 0; }
.path-progress { margin-top: .7rem; }
.path-progress p { margin: .35rem 0 0; }
.meter { height: .6rem; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width .3s ease; }
.meter-sm { height: .45rem; }

/* layers diagram */
.layers { margin: 1.25rem 0; }
.layers figcaption { margin-bottom: .6rem; font-size: .92rem; color: var(--muted); }
.layer { border: 2px solid var(--l1-bd); border-radius: 16px; padding: .7rem .9rem .9rem; margin-top: .55rem; }
.layer p { margin: .1rem 0; }
.layer-name { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.05rem; }
.layer-name a { color: inherit; }
.layer-desc { font-size: .93rem; }
.layer-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: var(--surface); flex: 0 0 auto; }
.layer-1 { background: var(--l1-bg); border-color: var(--l1-bd); }
.layer-1 > .layer-name .layer-icon { background: var(--l1-bd); }
.layer-2 { background: var(--l2-bg); border-color: var(--l2-bd); }
.layer-2 > .layer-name .layer-icon { background: var(--l2-bd); }
.layer-3 { background: var(--l3-bg); border-color: var(--l3-bd); }
.layer-3 > .layer-name .layer-icon { background: var(--l3-bd); }
.layer-1 > .layer-name { color: var(--l1-bd); }
.layer-2 > .layer-name { color: var(--l2-bd); }
.layer-3 > .layer-name { color: var(--l3-bd); }
@media (prefers-color-scheme: dark) { .layer-icon { color: #121619; } }
.layers-rule { display: flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 650; color: var(--muted); margin: .7rem 0 0; }
.layers-rule svg { flex: 0 0 auto; color: var(--brand); }
.layers-home { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; }

/* ---------- page sources / meta ---------- */
.page-sources { margin-top: 3rem; font-size: .92rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.page-sources li { margin-bottom: .45rem; word-break: break-word; }
.page-sources li:target { background: var(--strip-bg); outline: 2px solid var(--line-strong); }
.src-meta, .src-note { color: var(--muted); }
.updated { margin-top: 2rem; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .7rem; }

.site-footer { background: #15232b; color: #e6ecef; padding: 1.5rem 0 2rem; font-size: .92rem; }
.site-footer a, .site-footer a:visited { color: #ffffff; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1rem; }
.footer-brand .logo { width: 1.75rem; height: 1.75rem; --brand: #e6ecef; --on-brand: #15232b; }
@media (prefers-color-scheme: dark) { .site-footer { background: #0b0f12; border-top: 1px solid var(--line); } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.table-wrap table { margin: 0; }
main > table { display: block; overflow-x: auto; }
caption { text-align: left; font-weight: 700; padding: .55rem .7rem; }
th, td { border-bottom: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
thead th { background: var(--surface-2); font-size: .9rem; }
table.sources td { word-break: break-word; }

/* ---------- glossary / quiz ---------- */
details.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .35rem 1rem; margin: .7rem 0; }
details.quiz[open] { box-shadow: var(--shadow); }
details.quiz[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.gl-toc ul { columns: 2 12rem; padding-left: 1.2rem; }
dl.glossary .term { border-top: 1px solid var(--line); padding: .7rem 0; }
dl.glossary dt { font-weight: 800; font-size: 1.08rem; }
dl.glossary dd { margin: .2rem 0 0; }
dl.glossary .term:target { background: var(--strip-bg); outline: 2px solid var(--line-strong); border-radius: 6px; }
ul.dates { columns: 2 14rem; }

/* ---------- The Method: stepper ---------- */
.checklist { margin: 2rem 0; }
.checklist > h2 { margin-top: 0; }
.cl-note { background: var(--brand-soft); padding: .6rem .9rem; border-radius: var(--radius-sm); font-size: .95rem; }
.cl-field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.cl-field input, .cl-field textarea { width: 100%; font: inherit; padding: .7rem .8rem; min-height: 48px; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.cl-bar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); margin: 1rem calc(-1 * var(--gutter)) 1.25rem; padding: .6rem var(--gutter) .5rem; }
.cl-bar-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cl-progress { font-weight: 750; margin: 0 0 .35rem; font-size: .95rem; }
.stepper-nav ol { list-style: none; margin: .5rem 0 0; padding: 0 0 .3rem; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: thin; }
.stepper-nav li { flex: 0 0 auto; }
.stepper-nav a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .2rem .7rem .2rem .3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 650; white-space: nowrap; }
.stepper-nav a:visited { color: var(--ink); }
.stepper-nav a:hover { border-color: var(--brand); }
.sn-num { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--surface-3); font-weight: 800; }
.sn-count { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.stepper-nav a.is-done { border-color: var(--v-fg); background: var(--v-bg); }
.stepper-nav a.is-done .sn-num { background: var(--v-fg); color: var(--surface); }
@media (max-width: 40rem) { .sn-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } .stepper-nav a { padding-right: .65rem; } }
ol.steps { list-style: none; padding: 0; margin: 0; }
.step { position: relative; display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem; padding-bottom: 1.5rem; max-width: none; scroll-margin-top: 9rem; }
.step::before { content: ""; position: absolute; left: 1.2rem; top: 2.6rem; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step-marker span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 1.05rem; position: relative; z-index: 1; }
.step.is-done .step-marker span { background: var(--v-fg); color: var(--surface); }
.step.is-done .step-marker span::after { content: "✓" / ""; position: absolute; right: -4px; bottom: -4px; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--surface); color: var(--v-fg); font-size: .75rem; display: grid; place-items: center; border: 1px solid var(--v-fg); }
.step-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem 1rem; box-shadow: var(--shadow); min-width: 0; }
.step.is-done .step-body { border-color: var(--v-fg); }
.step h3 { margin: .15rem 0 .35rem; font-size: 1.2rem; }
.step-n { color: var(--brand); }
.step-intro { margin: 0 0 .7rem; color: var(--muted); }
.step fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
ul.checks { list-style: none; padding: 0; margin: .3rem 0; display: grid; gap: .5rem; }
ul.checks li { position: relative; display: flex; gap: .75rem; align-items: flex-start; padding: .8rem .9rem; min-height: 56px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); max-width: none; scroll-margin-top: 9rem; }
ul.checks li:hover { border-color: var(--brand); }
ul.checks li:has(input:checked) { background: var(--v-bg); border-color: var(--v-fg); }
ul.checks li:has(input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus); }
ul.checks input[type="checkbox"] { flex: 0 0 auto; width: 1.6rem; height: 1.6rem; margin: .05rem 0 0; accent-color: var(--brand); cursor: pointer; }
ul.checks input[type="checkbox"]:focus-visible { box-shadow: none; }
ul.checks label { cursor: pointer; flex: 1; }
ul.checks label::after { content: ""; position: absolute; inset: 0; }
.step-source { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line-strong); padding-left: .7rem; margin: .9rem 0 .6rem; }
.step-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin: .6rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .92rem; }
.step-count { font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.step-next { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.cl-end { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1.1rem 1rem; box-shadow: var(--shadow); }
.cl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

/* ---------- founding documents ---------- */
.crumbs { font-size: .9rem; margin-top: 1.25rem; color: var(--muted); }
.doc-search { background: var(--surface); border: 1px solid var(--line); padding: .8rem 1rem; border-radius: var(--radius); margin: 1rem 0; box-shadow: var(--shadow); }
.doc-search label { font-weight: 750; display: block; margin-bottom: .35rem; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.doc-search input { width: 100%; font: inherit; font-size: 1.05rem; padding: .7rem .8rem .7rem 2.6rem; min-height: 50px; border: 2px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--ink); }
.doc-search input:focus-visible { border-color: var(--brand); }
.doc-search [role="status"]:empty { display: none; }
.doc-search p { margin: .4rem 0 0; }
.doc-search-hero { border: 2px solid var(--brand); padding: 1.1rem 1.2rem; }
.doc-search-hero label { font-size: 1.15rem; }
.search-results { padding-left: 1.3rem; margin: .5rem 0 0; }
.search-results:empty { display: none; }
.search-results li { margin: .55rem 0; }
.search-results .snip { display: block; font-size: .88rem; color: var(--muted); }
.doc-cards { list-style: none; padding: 0; display: grid; gap: 1rem; margin: 1.5rem 0; }
.doc-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--l1-bd); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); max-width: none; }
.doc-card + .doc-card { border-top-color: var(--l2-bd); }
.doc-card h2 { font-size: 1.25rem; margin: .3rem 0 .4rem; }
.doc-card p { margin: .4rem 0; }
.doc-card:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus); }
.doc-card .small a, .doc-card .cite { position: relative; z-index: 1; }
.toc ol { padding-left: 1.4rem; }
.toc ol.plain { list-style: none; padding-left: 0; }
.toc li { margin: .3rem 0; }
.toc li.repealed { color: var(--muted); font-size: .9rem; }
.art-grid { display: grid; gap: .5rem; }
.art-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .8rem; margin: 0; max-width: none; }
.art-grid li.repealed { background: transparent; border-style: dashed; }
.summary { border-left: 4px solid var(--line-strong); background: var(--surface-2); padding: .4rem .9rem; margin: .7rem 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.source-box { font-size: .95rem; }
.doc-sec h2, .doc-sec h3, .doc-sec h4 { font-size: 1.05rem; margin: 1.2em 0 .3em; }
.doc-sec .caption { font-weight: 600; color: var(--muted); }
.doc-sec .self { color: inherit; }
.doc-part, .doc-sec, [id^="article-"], [id^="amendment-"] { scroll-margin-top: 10rem; }
.amend-h { font-size: 1.3rem; }
.doc-notes { margin: .3rem 0; }
.pager ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; }
.pager a { display: inline-flex; align-items: center; padding: .4rem .9rem; border: 1.5px solid var(--brand); border-radius: 999px; min-height: 44px; text-decoration: none; font-weight: 650; }

/* sticky search + contents (U.S. Constitution) */
.doc-aside { position: sticky; top: 0; z-index: 10; background: var(--bg); margin: 0 calc(-1 * var(--gutter)); padding: .5rem var(--gutter) .4rem; border-bottom: 1px solid var(--line); }
.doc-aside .doc-search { margin: 0 0 .4rem; padding: .55rem .7rem; box-shadow: none; }
.doc-aside .doc-search label { font-size: .88rem; margin-bottom: .25rem; }
.doc-aside .doc-search input { min-height: 46px; padding-top: .5rem; padding-bottom: .5rem; }
.toc-jump { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 .8rem; }
.toc-jump > summary { display: flex; align-items: center; gap: .4rem; list-style: none; }
.toc-jump > summary::-webkit-details-marker { display: none; }
.toc-jump > summary::before { content: "☰" / ""; font-size: 1rem; color: var(--brand); }
.toc-jump[open] > summary { border-bottom: 1px solid var(--line); }
.toc-jump ol { max-height: 55vh; overflow-y: auto; margin: .4rem 0 .6rem; font-size: .93rem; }
.toc-jump .small { font-weight: 400; }
.jump-bar { position: sticky; top: 0; z-index: 10; background: var(--bg); display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; padding: .5rem var(--gutter); margin: 1rem calc(-1 * var(--gutter)); border-bottom: 1px solid var(--line); }
.jump-bar .toc-jump { flex: 1 1 14rem; }
.jump-search { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 650; text-decoration: none; }
.page-doc-article .doc-sec { scroll-margin-top: 5rem; }
@media (min-width: 64rem) {
  .doc-layout { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .doc-aside { top: 1rem; margin: 0; padding: 0; border: 0; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; }
  .doc-aside .toc-jump { display: flex; flex-direction: column; min-height: 0; }
  .doc-aside .toc-jump > summary { pointer-events: none; }
  .doc-aside .toc-jump > summary::before { content: "" / ""; }
  .doc-aside .toc-jump nav { overflow-y: auto; min-height: 0; }
  .doc-aside .toc-jump ol { max-height: none; overflow: visible; }
  .doc-main { max-width: 46rem; }
  .doc-part, .doc-sec, [id^="article-"], [id^="amendment-"] { scroll-margin-top: 1rem; }
  .doc-cards { grid-template-columns: 1fr 1fr; }
  .art-grid { grid-template-columns: repeat(3, 1fr); }
  .page-doc-ca main > p, .page-doc-ca main > .card, .page-doc-ca main > .doc-search, .page-doc-index main > p, .page-doc-index main > ul:not(.doc-cards), .page-doc-index main > h2, .page-doc-index main > .doc-search { max-width: 46rem; }
}

/* ---------- larger screens ---------- */
@media (min-width: 40rem) {
  .path { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 2rem; }
  .chip-legend li { align-items: center; }
}
@media (min-width: 64rem) {
  body { font-size: 1.125rem; }
  :root { --gutter: 1.5rem; }
  .hero { grid-template-columns: 1.15fr 1fr; gap: 3rem; padding: 3rem; margin-top: 2rem; }
  .path { grid-template-columns: repeat(4, 1fr); }
  .home-grid { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .step::before { left: 1.45rem; top: 3rem; }
  .step-marker span { width: 3rem; height: 3rem; font-size: 1.2rem; }
  .step-body { padding: 1.2rem 1.4rem 1.2rem; }
  .step, ul.checks li { scroll-margin-top: 8rem; }
}

/* ---------- print & motion ---------- */
@media print {
  body { background: #fff; color: #000; }
  .banner { border: 1px solid #000; }
  .nav, .menu-btn, .skip-link, .lang-switch, .doc-search, .site-footer a, .cl-actions, .stepper-nav, .meter, .jump-bar, .hero-actions { display: none !important; }
  .cl-bar, .doc-aside { position: static; }
  .card, .path-card, .step-body { box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } .path-card:hover { transform: none; } }

/* ---------- fixes: containment, narrow header ---------- */
main { overflow-wrap: break-word; }
.source-box a, .page-sources a, table.sources a { overflow-wrap: anywhere; }
.stepper-nav a, .step-foot, .chip-legend li { position: relative; }
.home-grid section.home-sec + section.home-sec { margin-top: 0; }
@media (max-width: 29.99rem) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .menu-btn { padding: .25rem .65rem; }
}
@media (max-width: 24rem) {
  .brand { font-size: .9rem; gap: .4rem; }
  .brand .logo { width: 1.75rem; height: 1.75rem; }
  .lang-switch { padding: .25rem .55rem; font-size: .85rem; }
  :root { --gutter: .9rem; }
}
@media (max-width: 21rem) { .brand { font-size: .84rem; gap: .3rem; } .brand .logo { width: 1.6rem; height: 1.6rem; } .lang-switch { padding: .2rem .5rem; } .header-row { gap: .25rem; } }
@media (min-width: 40rem) { .stepper-nav ol { flex-wrap: wrap; overflow-x: visible; } }

/* ========== 3. shared polish ========== */
body { font-family: var(--font); font-size: var(--fs-md); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-kerning: normal; }
h1, h2, h3, .brand, .footer-brand { font-family: var(--font-display); }
@media (min-width: 64rem) { body { font-size: 1.125rem; } }

/* section rhythm */
.page-home main { padding-bottom: var(--sp-8); }
.page-home .hero { margin-bottom: var(--sp-8); }
.page-home section.home-sec + section.home-sec, .page-home .home-grid { margin-top: var(--sp-8); }
.page-home .home-grid section.home-sec + section.home-sec { margin-top: 0; }
.page-home .home-sec h2 { font-size: var(--fs-2xl); line-height: 1.15; margin-bottom: var(--sp-2); }
.page-home .home-grid h2 { font-size: var(--fs-xl); }
.page-home .sec-lead { margin: 0 0 var(--sp-5); }

/* course cards: icon slot */
.path { gap: var(--sp-4); }
.path-card { display: flex; flex-direction: column; padding: var(--sp-5); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease); }
.path-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: var(--sp-4); flex: 0 0 auto; transition: transform .25s var(--ease); }
.path-icon svg { width: 1.5rem; height: 1.5rem; }
.path-card:hover .path-icon { transform: translateY(-2px); }
.path-card .path-progress { margin-top: auto; padding-top: var(--sp-3); }
.path-card h3 { font-size: var(--fs-lg); margin: var(--sp-2) 0 var(--sp-2); }

@media (max-width: 39.99rem) {
  .path-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-4); align-items: start; }
  .path-card > * { grid-column: 2; }
  .path-card > .path-icon { grid-column: 1; grid-row: 1 / span 4; margin-bottom: 0; }
}

/* buttons: arrow nudge, pressed state */
.btn { transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.btn [aria-hidden="true"] { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover [aria-hidden="true"] { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.hero-actions { gap: var(--sp-3); margin-bottom: var(--sp-4); }

/* diagram: nested layers share one rhythm */
.page-home .layer { padding: var(--sp-3) var(--sp-4) var(--sp-4); margin-top: var(--sp-3); transition: box-shadow .2s var(--ease); }
.page-home .layer-name a { text-decoration-thickness: .06em; text-underline-offset: .2em; }
.page-home .layer-name a:hover { text-decoration-thickness: .14em; }

/* labels list */
.page-home .chip-legend { gap: var(--sp-3); margin: var(--sp-4) 0; }

@media (prefers-reduced-motion: reduce) { .path-card:hover .path-icon, .btn:hover [aria-hidden="true"], .btn:active { transform: none; } }

/* ========== 4. Valley Modern ========== */
body { background: var(--bg); }
h1, h2, h3 { font-weight: 650; letter-spacing: -.015em; }

/* header: frosted, friendly */
.banner { font-size: var(--fs-xs); }
.site-header { background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand .logo rect:first-child { rx: 10px; }
.nav a { font-weight: 600; }
@media (min-width: 64rem) {
  .nav { gap: .25rem; }
  .nav a { border-radius: 999px; padding: 0 .95rem; min-height: 40px; }
  .nav a:hover { background: var(--olive); color: var(--olive-ink); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
}
.lang-switch { border: 0; background: var(--olive); color: var(--olive-ink); font-weight: 700; }
.lang-switch:visited { color: var(--olive-ink); }
.lang-switch:hover { background: var(--brand); color: var(--on-brand); }

/* hero: valley sky + landscape */
.page-home .hero { position: relative; overflow: hidden; isolation: isolate; border: 0; border-radius: 28px; background: var(--hero-sky); box-shadow: var(--shadow-lg); padding: var(--sp-6) var(--sp-5) 9rem; margin: var(--sp-5) 0 var(--sp-8); gap: var(--sp-6); }
.page-home .hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 11rem; background: var(--hero-art) center bottom / cover no-repeat; z-index: -1; pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; width: fit-content; background: color-mix(in srgb, var(--surface) 75%, transparent); color: var(--warm); border: 1px solid color-mix(in srgb, var(--warm-2) 55%, transparent); border-radius: 999px; padding: .3rem .85rem .3rem .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.eyebrow::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--warm-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warm-2) 30%, transparent); }
.page-home .hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.8vw, 4rem); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; margin: var(--sp-4) 0 var(--sp-4); text-wrap: balance; }
.lead { font-size: 1.1875rem; line-height: 1.6; }
.btn { border-radius: 999px; font-weight: 700; }
.btn-primary, .btn-primary:visited { background: var(--brand); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-2); box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--brand) 80%, transparent); transform: translateY(-1px); }
.btn-ghost, .btn-ghost:visited { background: var(--surface); border-color: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.btn-ghost:hover { background: var(--surface); border-color: var(--brand); }
.hero-note { color: var(--ink); font-size: var(--fs-sm); }

/* diagram: three stacked, nested rounded tiles */
.page-home .layers-home { background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid color-mix(in srgb, var(--surface) 60%, transparent); border-radius: 24px; padding: var(--sp-5); box-shadow: var(--shadow-lg); }
.page-home .layers figcaption { font-size: .875rem; }
.page-home .layer { border-width: 0; border-radius: 18px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 0%, transparent); }
.page-home .layer-1 { background: linear-gradient(160deg, var(--l1-bg), color-mix(in srgb, var(--l1-bg) 70%, var(--surface))); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--l1-bd) 35%, transparent); }
.page-home .layer-2 { background: linear-gradient(160deg, var(--l2-bg), color-mix(in srgb, var(--l2-bg) 60%, var(--surface))); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--l2-bd) 35%, transparent), 0 4px 12px -6px rgba(63, 52, 20, .25); }
.page-home .layer-3 { background: linear-gradient(160deg, var(--l3-bg), color-mix(in srgb, var(--l3-bg) 50%, var(--surface))); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--l3-bd) 40%, transparent), 0 4px 12px -6px rgba(63, 52, 20, .25); }
.page-home .layer-name { font-family: var(--font-display); font-weight: 650; }
.page-home .layer-icon { width: 2.1rem; height: 2.1rem; border-radius: 12px; color: var(--surface); }
.page-home .layer-desc { font-size: .9rem; }
.page-home .layers-rule { color: var(--ink); background: var(--gold); border-radius: 999px; padding: .4rem .8rem; width: fit-content; }
.page-home .layers-rule svg { color: var(--gold-ink); }
@media (prefers-color-scheme: dark) { .page-home .layer-icon { color: #141912; } }

/* course: rounded cards with tinted icon tiles */
.path { gap: var(--sp-4); }
.path-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.path-card:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus); }
.path-icon { border-radius: 14px; width: 3rem; height: 3rem; }
.path-card:nth-child(1) .path-icon { background: var(--sky); color: var(--sky-ink); }
.path-card:nth-child(2) .path-icon { background: var(--olive); color: var(--olive-ink); }
.path-card:nth-child(3) .path-icon { background: var(--gold); color: var(--gold-ink); }
.path-card:nth-child(4) .path-icon { background: var(--clay); color: var(--clay-ink); }
.path-kicker { font-size: .75rem; letter-spacing: .08em; }
.path-num { width: 1.6rem; height: 1.6rem; font-size: .8rem; background: var(--surface-2); color: var(--ink); }
.path-card h3 { font-weight: 650; }
.meter { background: var(--surface-2); } .meter span { background: linear-gradient(90deg, var(--brand), var(--warm-2)); }
.tools-line { background: var(--surface-2); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); max-width: none; }

/* labels + fact */
.page-home .home-grid { gap: var(--sp-5); }
.page-home .home-grid .card { border-radius: var(--radius); padding: var(--sp-5) var(--sp-5); border: 1px solid var(--line); }
.page-home .card-fact { border-left: 1px solid var(--line); background: linear-gradient(160deg, var(--gold) 0%, var(--surface) 70%); position: relative; }
.page-home .card-fact::before { content: ""; position: absolute; top: var(--sp-5); right: var(--sp-5); width: 2.25rem; height: 2.25rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3cf, var(--warm-2)); opacity: .9; }
.page-home .card-fact h2 { padding-right: 3rem; }
.tag { border-width: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent); padding: .1rem .55rem; }
.tag-u { box-shadow: inset 0 0 0 1px currentColor; border: 1px dashed currentColor; }

.page-home .page-sources { border-top: 1px solid var(--line); margin-top: var(--sp-8); }
.page-home .page-sources h2 { font-size: var(--fs-lg); }
.site-footer { background: #26321c; color: #eef0e6; border-radius: 28px 28px 0 0; padding: var(--sp-6) 0 var(--sp-6); }
.footer-brand { font-weight: 700; font-size: 1.1rem; }
.footer-brand .logo { --brand: #c4d88f; --on-brand: #26321c; }
@media (prefers-color-scheme: dark) { .site-footer { background: #0d110b; } }
@media (min-width: 40rem) { .page-home .hero { padding: var(--sp-7) var(--sp-6) 10rem; } .page-home .hero::after { height: 13rem; } }
@media (min-width: 64rem) {
  .page-home .hero { grid-template-columns: 1.15fr 1fr; gap: var(--sp-7); padding: var(--sp-8) var(--sp-7) 11rem; margin-top: var(--sp-6); }
  .page-home .hero::after { height: 15rem; }
}

/* ========== 5. v3: Valley Modern on every page ========== */
/* headings */
h1, h2, h3, h4 { font-family: var(--font-display); }
h1 { font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
h4 { font-weight: 650; }
dl.glossary dt, .cl-progress, .step h3, .doc-card h2, .toc-jump > summary, caption { font-family: var(--font-display); }

/* inner-page header band: soft valley sky + a small landscape strip */
.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--head-sky); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: var(--radius); padding: var(--sp-5) var(--sp-5) 3rem; margin: var(--sp-4) 0 var(--sp-5); box-shadow: var(--shadow); }
.page-head::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2.25rem; background: var(--motif) center bottom / 100% 100% no-repeat; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.page-head h1 { margin: 0; font-size: clamp(1.85rem, 1.3rem + 2.6vw, 2.75rem); line-height: 1.1; }
.page-head .crumbs { margin: 0 0 var(--sp-3); }
.page-head + p { font-size: 1.0625em; }
@media (min-width: 40rem) { .page-head { padding: var(--sp-6) var(--sp-6) 3.5rem; margin-top: var(--sp-5); } .page-head::after { height: 2.75rem; } }
@media (min-width: 64rem) { .page-head::after { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, #000 60%); } }
main .review-note + .page-head { margin-top: var(--sp-4); }

/* cards and callouts */
.card { border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.card-fact { border-left: 1px solid var(--line); background: linear-gradient(160deg, var(--gold) 0%, var(--surface) 70%); }
.meeting-card { border-top: 4px solid var(--brand); }
.confirm { border-radius: var(--radius-sm); }
.callout { border-left: 0; background: var(--olive); border-radius: var(--radius-sm); box-shadow: inset 4px 0 0 var(--brand); padding: .85rem 1.1rem; }
.warning { border-left: 0; border-radius: var(--radius-sm); box-shadow: inset 4px 0 0 var(--danger); padding: .85rem 1.1rem; }
.notice { border-radius: var(--radius-sm); }
.disclaimer-full { border-left: 1px solid var(--line); border-radius: var(--radius); box-shadow: inset 4px 0 0 var(--warm-2); padding: 1rem 1.3rem; }
.summary { border-left: 0; border-radius: var(--radius-sm); box-shadow: inset 4px 0 0 var(--line-strong); padding: .55rem 1rem; }
.review-note { border-radius: var(--radius-sm); }
details.quiz, .legend { border-radius: var(--radius-sm); }
details.quiz[open] { box-shadow: var(--shadow); }
details > summary:hover { color: var(--brand); }

/* buttons */
.btn-ghost, .btn-ghost:visited { border-color: color-mix(in srgb, var(--brand) 45%, var(--surface)); }
.hero .btn-ghost, .hero .btn-ghost:visited { border-color: var(--surface); }
.btn-danger { border-radius: 999px; }
.pager a { background: var(--surface); box-shadow: var(--shadow); transition: background-color .2s var(--ease), color .2s var(--ease); }
.pager a:hover { background: var(--brand); color: var(--on-brand); }

/* tables */
.table-wrap, main > table { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); }
main > table { margin: 1.25rem 0; }
thead th { background: var(--olive); color: var(--olive-ink); font-weight: 700; }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
tbody tr:last-child > * { border-bottom: 0; }
caption { font-weight: 650; }

/* layers diagram, every page (home keeps its frosted panel) */
.layers-page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); box-shadow: var(--shadow); }
.layers .layer { border-width: 0; border-radius: 18px; padding: var(--sp-3) var(--sp-4) var(--sp-4); margin-top: var(--sp-3); }
.layers .layer-1 { background: linear-gradient(160deg, var(--l1-bg), color-mix(in srgb, var(--l1-bg) 70%, var(--surface))); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--l1-bd) 35%, transparent); }
.layers .layer-2 { background: linear-gradient(160deg, var(--l2-bg), color-mix(in srgb, var(--l2-bg) 60%, var(--surface))); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--l2-bd) 35%, transparent), 0 4px 12px -6px rgba(63, 52, 20, .25); }
.layers .layer-3 { background: linear-gradient(160deg, var(--l3-bg), color-mix(in srgb, var(--l3-bg) 50%, var(--surface))); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--l3-bd) 40%, transparent), 0 4px 12px -6px rgba(63, 52, 20, .25); }
.layers .layer-name { font-family: var(--font-display); font-weight: 650; }
.layers .layer-icon { width: 2.1rem; height: 2.1rem; border-radius: 12px; }
.layers-rule { color: var(--ink); background: var(--gold); border-radius: 999px; padding: .4rem .8rem; width: fit-content; max-width: 100%; }
.layers-rule svg { color: var(--gold-ink); }
@media (prefers-color-scheme: dark) { .layer-icon { color: #141912; } }

/* claim chips */
.chip-legend { gap: var(--sp-3); }

/* search boxes */
.doc-search { border-radius: var(--radius); }
.doc-search input { border-radius: 999px; background: var(--surface); }
.doc-search input:focus-visible { border-color: var(--brand); }
.doc-search-hero { border: 1px solid var(--line); background: var(--head-sky); box-shadow: var(--shadow); padding: 1.2rem 1.35rem; }
.doc-search-hero label { font-family: var(--font-display); font-weight: 650; }
.search-results li { padding-left: .2rem; }
.search-results li::marker { color: var(--muted); font-weight: 700; }

/* sticky search + contents, jump bar */
.doc-aside, .jump-bar, .cl-bar { background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.toc-jump { border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.toc-jump > summary { font-weight: 650; }
.toc-jump a { text-underline-offset: .2em; }
.jump-search { border-radius: 999px; box-shadow: var(--shadow); }
@media (min-width: 64rem) {
  .doc-aside { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .doc-aside .doc-search { box-shadow: var(--shadow); }
}

/* founding documents */
.doc-card { border-radius: var(--radius); border-top-width: 4px; padding: 1.15rem 1.35rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.art-grid li { border-radius: var(--radius-sm); transition: border-color .2s var(--ease); }
.art-grid li:hover { border-color: var(--brand); }
.crumbs a { font-weight: 600; }

/* The Method: stepper, progress bar, checklist */
.cl-note { background: var(--olive); border-radius: var(--radius-sm); }
.cl-field input, .cl-field textarea { border-radius: var(--radius-sm); }
.cl-field input:focus-visible, .cl-field textarea:focus-visible { border-color: var(--brand); }
.meter { background: var(--surface-3); }
.stepper-nav a { box-shadow: 0 1px 2px rgba(63, 52, 20, .06); }
.sn-num { background: var(--olive); color: var(--olive-ink); }
.step-body { border-radius: var(--radius); }
.step::before { background: linear-gradient(var(--line-strong), var(--line)); opacity: .55; }
.step-marker span { font-family: var(--font-display); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
ul.checks li { border-radius: var(--radius-sm); }
.cl-end { border-radius: var(--radius); }

/* glossary */
.gl-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .2rem 1.25rem .6rem; box-shadow: var(--shadow); }
.gl-toc h2 { margin-top: 1rem; }
dl.glossary dt { font-weight: 650; }
dl.glossary .term:target { background: var(--gold); outline: 2px solid var(--warm-2); border-radius: var(--radius-sm); padding-left: .6rem; padding-right: .6rem; }
.page-sources li:target { background: var(--gold); outline: 2px solid var(--warm-2); border-radius: 8px; }

/* phone menu panel */
@media (max-width: 63.99rem) {
  html.js.menu-open .nav { border-radius: 0 0 var(--radius) var(--radius); }
  html.js .nav a[aria-current="page"] { color: var(--brand); }
}

@media (prefers-reduced-motion: reduce) { .doc-card:hover { transform: none; } }
@media print { .page-head { background: none; box-shadow: none; border: 0; padding: 0; } .page-head::after { display: none; } }

/* ---------- Agenda Watch (tools/agenda-watch.js) ---------- */
.ag-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.ag-card h3 { margin: 0 0 .25rem; }
.ag-meta .ag-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.ag-section > h2 { margin-top: 2.25rem; border-bottom: 2px solid var(--line); padding-bottom: .3rem; }
.ag-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 1rem 1.15rem; margin: 1rem 0; overflow-wrap: anywhere; }
.ag-item.ag-flagged { border-left: 6px solid var(--warm); }
.ag-item h3 { margin: 0 0 .4rem; font-size: var(--fs-lg); }
.ag-num { display: inline-block; min-width: 2em; padding: .05em .45em; margin-right: .3em; border-radius: 8px; background: var(--brand); color: var(--on-brand); text-align: center; font-size: .9em; }
.flags { margin: .25rem 0 .5rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.flag { display: inline-block; padding: .1em .6em; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; border: 1px solid currentColor; white-space: nowrap; }
.flag-money { background: var(--gold); color: var(--gold-ink); }
.flag-contract { background: var(--sky); color: var(--sky-ink); }
.flag-pay { background: var(--clay); color: var(--clay-ink); }
.flag-fees { background: var(--olive); color: var(--olive-ink); }
.flag-consent { background: var(--danger-soft); color: var(--danger); }
.ag-watch { background: var(--warm-soft); border-radius: 10px; padding: .6rem .85rem; margin: .6rem 0; }
.ag-watch p { margin: 0; }
.vote { border-top: 1px dashed var(--line-strong); margin-top: .7rem; padding-top: .55rem; }
.vote p { margin: .2rem 0; }
.vote-badge { display: inline-block; padding: .1em .55em; border-radius: 6px; font-size: var(--fs-xs); font-weight: 700; background: var(--u-bg); color: var(--u-fg); }
.vote-official .vote-badge { background: var(--v-bg); color: var(--v-fg); }
.vote-tally { font-weight: 700; }
.ag-src { margin: .5rem 0 0; color: var(--muted); }
.ag-flagsum ul { padding-left: 1.1rem; }
.ag-flagsum li { margin: .3rem 0; }
.ag-legend { margin: 1rem 0; }
.ag-legend li { margin: .35rem 0; list-style: none; }
.ag-legend ul { padding-left: 0; }

/* ========== 6. UX rebuild (Oct 23, 2026): phone-first navigation ==========
 * Sticky compact header that hides while you scroll down and returns when you scroll up (JS sets --hdr-h and
 * html.hdr-hidden). Grouped menu drawer on phones, one-line section bar on desktop. Breadcrumbs, compact page
 * heads, "On this page" jump links (collapsible on phones, sticky rail on wide screens), lesson layout with a
 * lesson-list drawer, prev/next cards, reading progress, site search dialog, back-to-top. */
:root { --sticky-top: var(--hdr-h, 0px); }
html.hdr-hidden { --sticky-top: 0px; }
html { scroll-padding-top: calc(var(--sticky-top) + var(--bar-h, 0px) + .75rem); }
body { line-height: 1.6; }
.wrap { max-width: 46rem; }

/* header */
.banner p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 95%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: transform .25s var(--ease); }
html.hdr-hidden:not(.menu-open) .site-header { transform: translateY(-101%); }
.header-row { min-height: 3.5rem; gap: .4rem; }
.brand { font-size: 1.05rem; }
.search-btn { order: 1; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; min-width: 44px; padding: 0 .65rem; border-radius: 999px; color: var(--ink); background: var(--surface-2); text-decoration: none; font-weight: 650; font-size: .92rem; }
.search-btn:visited { color: var(--ink); }
.search-btn:hover { background: var(--olive); color: var(--olive-ink); }
.sb-label, .sb-key { display: none; }
.sb-key { font: inherit; font-size: .75rem; border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 .35rem; color: var(--muted); line-height: 1.4; }
.lang-switch { order: 2; min-height: 44px; padding: .2rem .8rem; }
.ls-short { display: none; }
.menu-btn { order: 3; }
@media (max-width: 29.99rem) { .ls-long { display: none; } .ls-short { display: inline; } .lang-switch { padding: .2rem .7rem; min-width: 44px; justify-content: center; } }
@media (max-width: 21rem) { .search-btn { min-width: 40px; padding: 0 .5rem; } }

/* menu: phones/tablets = drawer under the header */
.nav-short { display: none; }
.nav-d { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); line-height: 1.35; }
.nav-group-h { margin: 1rem 0 .25rem; font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--warm); }
.nav-group > ul { list-style: none; margin: 0; padding: 0; }
@media (max-width: 63.99rem) {
  html.js .nav li { border-bottom: 0; }
  html.js.menu-open .nav { max-height: calc(100vh - var(--hdr-h, 3.5rem)); max-height: calc(100dvh - var(--hdr-h, 3.5rem)); overflow-y: auto; overscroll-behavior: contain; padding: .25rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); max-width: none; }
  html.js .nav a { display: block; min-height: 0; padding: .6rem .75rem; margin: 0 -.75rem; border-radius: 12px; font-size: 1.02rem; }
  html.js .nav a:hover { background: var(--surface-2); }
  html.js .nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
  html.js .nav a[aria-current="page"]::before { display: none; }
  html.js .nav .nav-t { display: block; font-weight: 700; }
  html.js .nav-home a { padding-top: .75rem; }
  html.menu-open body { overflow: hidden; }
  html.menu-open main, html.menu-open footer { visibility: hidden; }
  html:not(.js) .nav-group-h { display: none; }
  html:not(.js) .nav-group > ul { display: contents; }
  html:not(.js) .nav-group { display: contents; }
  html:not(.js) .nav-d { display: none; }
}
@media (min-width: 30rem) and (max-width: 63.99rem) {
  html.js.menu-open .nav { display: grid !important; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; align-content: start; }
  html.js.menu-open .nav .nav-home { grid-column: 1 / -1; }
}
/* desktop: one row of sections under the brand row */
@media (min-width: 64rem) {
  .sb-label { display: inline; }
  .sb-key { display: inline; }
  .search-btn { padding: 0 .55rem 0 .8rem; min-width: 13rem; justify-content: flex-start; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
  .search-btn .sb-key { margin-left: auto; }
  .site-nav { border-top: 1px solid var(--line); }
  .site-nav .nav { display: flex; flex-wrap: nowrap; align-items: center; gap: .1rem; max-width: 72rem; margin: 0 auto; padding: .3rem calc(var(--gutter) - .8rem); overflow-x: auto; scrollbar-width: none; }
  .nav .nav-group, .nav .nav-group > ul { display: contents; }
  .nav-group-h, .nav-d { display: none; }
  .nav .nav-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .nav-short { display: inline; }
  .nav .nav-group + .nav-group > ul > li:first-child { margin-left: .5rem; padding-left: .6rem; border-left: 1px solid var(--line); }
  .nav a { min-height: 38px; padding: 0 .8rem; font-size: .93rem; white-space: nowrap; }
}

/* breadcrumbs + compact page head */
.page-head { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0 0 .9rem; margin: 1rem 0 1.25rem; overflow: visible; border-bottom: 1px solid var(--line); }
.page-head::after { display: none; }
@media (min-width: 40rem) { .page-head { padding: 0 0 1.1rem; margin-top: 1.5rem; } }
.page-head h1 { margin: .35rem 0 0; font-size: clamp(1.65rem, 1.2rem + 2vw, 2.4rem); line-height: 1.12; }
.crumbs { margin: 0; font-size: .875rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .4rem; }
.crumbs li { max-width: none; }
.crumbs li + li::before { content: "›" / ""; margin-right: .4rem; color: var(--line-strong); }
.crumbs a { font-weight: 600; display: inline-block; padding: .3rem 0; }
.crumbs [aria-current] { color: var(--ink); }
.page-head + .prose > p:first-child, .page-head + .onpage + .prose > p:first-child { font-size: 1.06em; }
.lesson-meta { margin: .5rem 0 0; font-size: .875rem; color: var(--muted); font-weight: 600; }
.lm-pos { color: var(--brand); }
main .review-note { margin-top: .75rem; }

/* prose: readable measure, lighter cards */
.prose { min-width: 0; }
.prose > h2 { margin-top: 2.4rem; scroll-margin-top: calc(var(--sticky-top) + var(--bar-h, 0px) + .75rem); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose blockquote { margin: 1.25rem 0; padding: .75rem 1rem; background: var(--surface); border-radius: var(--radius-sm); box-shadow: inset 4px 0 0 var(--l1-bd); font-family: Georgia, "Times New Roman", serif; font-size: 1.02em; }
.prose blockquote p { margin: .4rem 0; }
.prose .card { box-shadow: none; border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin: 1rem 0; }
.prose .card h3:first-child { margin-top: 0; }
.prose .table-wrap { margin: 1.25rem 0; box-shadow: none; }
.prose .table-wrap table { min-width: 32rem; }
.prose .table-wrap:focus-visible { outline: 3px solid var(--focus-ring); }
@media (max-width: 39.99rem) {
  h2 { font-size: 1.35rem; }
}

/* "On this page" (phones: collapsible) */
.onpage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 1.5rem; padding: 0 1rem; }
.onpage > summary { display: flex; align-items: center; gap: .5rem; min-height: 48px; list-style: none; font-weight: 700; font-family: var(--font-display); }
.onpage > summary::-webkit-details-marker { display: none; }
.onpage > summary::after { content: "" / ""; width: .55rem; height: .55rem; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.onpage[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.onpage[open] > summary { border-bottom: 1px solid var(--line); }
.onpage-n { font-weight: 500; color: var(--muted); font-family: var(--font); font-size: .88rem; }
.onpage-icon { width: 1.1rem; height: .8rem; border-top: 2px solid var(--brand); border-bottom: 2px solid var(--brand); position: relative; flex: 0 0 auto; }
.onpage-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--brand); transform: translateY(-50%); }
.onpage ol { margin: .4rem 0 .75rem; padding-left: 1.4rem; }
.onpage li { margin: 0; max-width: none; }
.onpage a { display: block; padding: .5rem 0; line-height: 1.35; }
/* wide screens: sticky rail */
.onpage-rail { display: none; }
.onpage-rail { position: sticky; top: calc(var(--sticky-top) + 1.25rem); max-height: calc(100vh - var(--sticky-top) - 2.5rem); overflow-y: auto; margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--line); font-size: .9rem; scrollbar-width: thin; transition: top .25s var(--ease); }
.rail-h { margin: 0 0 .4rem; font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.onpage-rail ol { list-style: none; margin: 0; padding: 0; }
.onpage-rail li { margin: 0; }
.onpage-rail a { display: block; padding: .35rem 0; color: var(--muted); text-decoration: none; line-height: 1.35; }
.onpage-rail a:hover { color: var(--link); text-decoration: underline; }
.onpage-rail a.is-active, .onpage a.is-active { color: var(--brand); font-weight: 700; }
.onpage-rail a.is-active { box-shadow: -1.1rem 0 0 -0.95rem var(--brand); }
.rail-top { margin: .9rem 0 0; font-size: .85rem; }
@media (min-width: 72rem) {
  .main-rail { max-width: 80rem; }
  .main-rail .page-grid { display: grid; grid-template-columns: minmax(0, 46rem) 14rem; gap: 3rem; justify-content: center; align-items: start; }
  .main-rail .onpage { display: none; }
  .main-rail .onpage-rail { display: block; }
}

/* lesson layout */
.main-lesson { max-width: 84rem; }
.lesson-bar { position: sticky; top: var(--sticky-top); z-index: 30; display: flex; align-items: center; gap: .6rem; margin: 0 calc(-1 * var(--gutter)); padding: .4rem var(--gutter); background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: top .25s var(--ease); }
html:not(.js) .lesson-bar { display: none; }
.lb-toggle { display: inline-flex; align-items: center; gap: .4rem; flex: 0 0 auto; min-height: 44px; padding: 0 .85rem; border-radius: 999px; border: 1.5px solid var(--brand); background: var(--surface); color: var(--brand); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.lb-toggle[hidden] { display: none; }
.lb-pos { flex: 1; min-width: 0; margin: 0; font-size: .88rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; }
.lb-pos span { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .25rem; }
.lb-read { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.lb-read span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--warm-2)); }
.lesson-side { font-size: .93rem; }
.ls-head { position: relative; margin-bottom: .5rem; }
.ls-kicker { margin: 0; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ls-title { margin: .1rem 2.75rem .5rem 0; font-family: var(--font-display); font-size: 1.12rem; font-weight: 650; line-height: 1.25; }
.ls-title a, .ls-title a:visited { color: var(--ink); text-decoration: none; }
.ls-title a:hover { text-decoration: underline; }
.ls-close { position: absolute; top: -.25rem; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 1.1rem; cursor: pointer; }
.ls-close[hidden] { display: none; }
.course-progress p { margin: .3rem 0 0; }
.ll-unit-h { margin: 1rem 0 .3rem; font-family: var(--font); font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--warm); }
.lesson-list ol { list-style: none; margin: 0; padding: 0; }
.lesson-list li { margin: 0; max-width: none; }
.lesson-list a { display: flex; gap: .6rem; align-items: flex-start; min-height: 44px; padding: .5rem .55rem; border-radius: 10px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.lesson-list a:visited { color: var(--ink); }
.lesson-list a:hover { background: var(--surface-2); }
.lesson-list a[aria-current="page"] { background: var(--brand-soft); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.ll-n { flex: 0 0 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-size: .74rem; font-weight: 750; font-variant-numeric: tabular-nums; margin-top: -.05rem; }
.lesson-list a[aria-current="page"] .ll-n { background: var(--brand); color: var(--on-brand); }
.ll-t { flex: 1; min-width: 0; }
.ll-sum { display: block; margin-top: .15rem; font-weight: 400; font-size: .88rem; color: var(--muted); }
.ll-state { flex: 0 0 auto; font-size: .8rem; color: var(--muted); }
.lesson-list a.is-done .ll-n { background: var(--v-fg); color: var(--surface); }
.lesson-list a.is-done .ll-state::before { content: "✓" / ""; color: var(--v-fg); font-weight: 800; }
.lesson-list a.is-visited:not(.is-done) .ll-state::before { content: "•" / ""; color: var(--muted); }
.lesson-list-full { margin: 1rem 0 1.5rem; }
.lesson-list-full .ll-unit-h { font-size: .8rem; margin-top: 1.5rem; }
.lesson-list-full a { border: 1px solid var(--line); background: var(--surface); padding: .75rem .85rem; margin-bottom: .5rem; border-radius: var(--radius-sm); }
.lesson-list-full a:hover { border-color: var(--brand); }
.lesson-list-units .ll-fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 .6rem; padding: 0 .85rem; }
.lesson-list-units .ll-fold > summary { display: block; list-style: none; position: relative; cursor: pointer; min-height: 48px; padding: .75rem 2.2rem .75rem 0; }
.lesson-list-units .ll-fold > summary::-webkit-details-marker { display: none; }
.lesson-list-units .ll-fold > summary::after { content: "+" / ""; position: absolute; right: 0; top: .8rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.lesson-list-units .ll-fold[open] > summary::after { content: "–" / ""; }
.lesson-list-units .ll-fold[open] { padding-bottom: .4rem; }
.ll-unit-name { display: block; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.ll-unit-sub { display: block; font-size: .88rem; color: var(--muted); }
.lesson-list-units .ll-fold a { margin-bottom: .45rem; }
details.by-article ul { padding-left: 1.1rem; }
details.by-article li { margin: .35rem 0; }
.lesson-pager { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 2rem 0 1rem; }
.pager-card { display: flex; flex-direction: column; gap: .2rem; min-height: 4.5rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; }
.pager-card:visited { color: var(--ink); }
.pager-card:hover { border-color: var(--brand); background: var(--brand-soft); }
.pager-next { text-align: right; border-color: var(--brand); }
.pager-empty { border: 0; background: none; }
.pc-dir { font-size: .78rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.pc-t { font-weight: 650; line-height: 1.3; }
@media (max-width: 29.99rem) { .lesson-pager { grid-template-columns: 1fr; } .pager-next { order: -1; } .pager-empty { display: none; } }
.lesson-done-wrap { margin: 2rem 0 0; max-width: none; }
.lesson-done { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .6rem 1.2rem .6rem .9rem; border-radius: 999px; border: 2px solid var(--v-fg); background: var(--surface); color: var(--v-fg); font: inherit; font-weight: 700; cursor: pointer; }
.lesson-done[hidden] { display: none; }
.ld-box { width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: .8rem; }
.lesson-done[aria-pressed="true"] { background: var(--v-bg); }
.lesson-done[aria-pressed="true"] .ld-box { background: var(--v-fg); color: var(--surface); border-color: var(--v-fg); }
.lesson-done[aria-pressed="true"] .ld-box::before { content: "✓" / ""; }
@media (max-width: 63.99rem) {
  .lesson-layout { display: flex; flex-direction: column; }
  html:not(.js) .lesson-side { order: 2; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
  html.js .lesson-side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: min(23rem, 88vw); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); padding: calc(1rem + env(safe-area-inset-top)) 1rem calc(2rem + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); transform: translateX(-105%); visibility: hidden; transition: transform .25s var(--ease), visibility 0s linear .25s; }
  html.lesson-open .lesson-side { transform: none; visibility: visible; transition: transform .25s var(--ease); }
  html.lesson-open body { overflow: hidden; }
  .drawer-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(15, 20, 12, .45); }
  .main-lesson .onpage-rail { display: none; }
}
@media (min-width: 64rem) {
  .lesson-layout { display: grid; grid-template-columns: 15.5rem minmax(0, 44rem); gap: 2.5rem; justify-content: center; align-items: start; }
  .lesson-bar, .ls-close { display: none !important; }
  .lesson-side { position: sticky; top: calc(var(--sticky-top) + 1rem); max-height: calc(100vh - var(--sticky-top) - 2rem); overflow-y: auto; margin-top: 1.5rem; padding: 0 .4rem 1rem 0; scrollbar-width: thin; transition: top .25s var(--ease); }
  .drawer-backdrop { display: none; }
}
@media (min-width: 80rem) {
  .lesson-layout.has-rail { grid-template-columns: 15rem minmax(0, 43rem) 13rem; gap: 2.25rem; }
  .lesson-layout.has-rail .onpage { display: none; }
  .main-lesson .onpage-rail { display: block; }
}

/* sticky bars elsewhere sit under the sticky header */
.cl-bar, .jump-bar, .doc-aside { top: var(--sticky-top); transition: top .25s var(--ease); }
@media (min-width: 64rem) { .doc-aside { top: calc(var(--sticky-top) + 1rem); max-height: calc(100vh - var(--sticky-top) - 2rem); } }

/* search: dialog, search page, home box */
.search-field { position: relative; }
.search-field > svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; font: inherit; font-size: 1.0625rem; padding: .7rem .9rem .7rem 2.75rem; min-height: 50px; border: 2px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); -webkit-appearance: none; appearance: none; }
.search-field input:focus-visible { border-color: var(--brand); }
.search-dialog { width: min(42rem, calc(100vw - 2rem)); max-height: min(80vh, 46rem); margin: 7vh auto auto; padding: 0; border: 0; border-radius: var(--radius); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog::backdrop { background: rgba(15, 20, 12, .5); }
.sd-head { display: flex; gap: .5rem; align-items: center; padding: .75rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.sd-head form { flex: 1; min-width: 0; }
.sd-close { flex: 0 0 auto; min-height: 44px; padding: 0 .9rem; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.sd-body { overflow-y: auto; padding: .5rem .75rem 1rem; overscroll-behavior: contain; }
.sd-status, #sp-status { margin: .4rem .25rem; }
@media (max-width: 39.99rem) {
  .search-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; padding-top: env(safe-area-inset-top); }
}
.sr-list { list-style: none; margin: 0; padding: 0; }
.sr-list li { margin: 0; max-width: none; border-bottom: 1px solid var(--line); }
.sr-list li:last-child { border-bottom: 0; }
.sr-list a { display: block; padding: .7rem .6rem; border-radius: 10px; color: var(--ink); text-decoration: none; }
.sr-list a:visited { color: var(--ink); }
.sr-list a:hover, .sr-list a:focus-visible, .sr-list a.is-sel { background: var(--surface-2); }
.sr-k { display: inline-block; margin-right: .4rem; padding: 0 .45rem; border-radius: 999px; background: var(--olive); color: var(--olive-ink); font-size: .7rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; vertical-align: .1em; }
.sr-t { font-weight: 700; }
.sr-s { display: block; color: var(--link); font-weight: 650; font-size: .95rem; }
.sr-x { display: block; margin-top: .15rem; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.sr-list mark, .sr-x mark { background: var(--gold); color: inherit; border-radius: 3px; padding: 0 .1em; }
.sr-more { margin: .75rem .25rem 0; font-size: .9rem; }
.site-search { margin: 0 0 .5rem; }
.site-search label { display: block; font-weight: 700; margin-bottom: .35rem; }
.home-quick { margin: 0 0 2.25rem; }
.hq-search { display: flex; gap: .5rem; align-items: stretch; }
.hq-search .search-field { flex: 1; min-width: 0; }
.hq-search .btn { min-height: 50px; padding: .5rem 1.2rem; }
.hq-label { margin: .9rem 0 .4rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.hq-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.hq-chips li { margin: 0; }
.hq-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .95rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 650; font-size: .93rem; }
.hq-chips a:visited { color: var(--ink); }
.hq-chips a:hover { border-color: var(--brand); background: var(--brand-soft); }
@media (max-width: 29.99rem) { .hq-search .btn { display: none; } }

/* home: shorter hero, content above the fold */
.page-home .hero { padding: 1.25rem 1.1rem 4.75rem; margin: 1rem 0 1.25rem; border-radius: 22px; gap: 1.25rem; }
.page-home .hero::after { height: 4.5rem; }
.page-home .hero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); margin: .6rem 0 .6rem; }
.page-home .lead { font-size: 1.06rem; margin-bottom: 1rem; }
.page-home .eyebrow { font-size: .7rem; padding: .2rem .7rem .2rem .5rem; }
.page-home .hero-actions { margin-bottom: .5rem; }
.page-home .hero-actions .btn-lg { font-size: 1.02rem; padding: .7rem 1.25rem; min-height: 48px; }
.page-home .hero-actions .btn-ghost { min-height: 48px; }
.page-home section.home-sec + section.home-sec, .page-home .home-grid { margin-top: 2.5rem; }
.page-home main { padding-bottom: 2.5rem; }
@media (max-width: 39.99rem) { .page-home .hero-art { display: none; } .page-home .hero-note { font-size: .82rem; } }
@media (min-width: 40rem) { .page-home .hero { padding: 2rem 2rem 6.5rem; } .page-home .hero::after { height: 6.5rem; } }
@media (min-width: 64rem) { .page-home .hero { padding: 2.25rem 3rem 6rem; margin-top: 1.5rem; gap: 2.5rem; } .page-home .hero::after { height: 6.5rem; } }

/* back to top */
.to-top { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 35; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; }
.to-top:visited { color: var(--on-brand); }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.to-top[hidden] { display: none; }

/* footer section list */
.footer-nav ul { list-style: none; margin: .75rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.footer-nav li { margin: 0; }
.footer-nav a { display: inline-block; padding: .35rem 0; }

@media print { .site-header { position: static; } .lesson-side, .lesson-bar, .onpage, .onpage-rail, .to-top, .lesson-pager, .lesson-done-wrap, .home-quick, .footer-nav { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .site-header, .lesson-side, .to-top { transition: none !important; } }
@media (max-width: 39.99rem) { .crumbs li[aria-current] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } }

/* ========== 7. Reading experience (Oct 23, 2026): one calm, continuous document ==========
 * One vertical rhythm (--flow), one heading scale, one callout style, quiet citation markers,
 * a single "official text" treatment, stacked tables on phones. Scoped to article text (.prose) outside the home page. */
:root { --flow: 1.1rem; --measure: 40rem; --callout-bg: color-mix(in srgb, var(--olive) 55%, var(--bg)); }
body:not(.page-home) .prose { font-size: 1.0625rem; line-height: 1.68; color: var(--ink); }
@media (min-width: 64rem) { body:not(.page-home) .prose { font-size: 1.09rem; } }
body:not(.page-home) .prose :is(p, li, dd) { max-width: var(--measure); }
/* rhythm: every block gets the same space below; headings carry their own space above */
body:not(.page-home) .prose :is(p, ul, ol, dl, figure, blockquote, .table-wrap, .takeaways, .callout, .warning, .quiz-set, details.legend) { margin: 0 0 var(--flow); }
body:not(.page-home) .prose :is(ul, ol) { padding-left: 1.3rem; }
body:not(.page-home) .prose li { margin: 0 0 .5rem; padding-left: .15rem; }
body:not(.page-home) .prose li:last-child { margin-bottom: 0; }
body:not(.page-home) .prose li > :is(ul, ol) { margin: .5rem 0 0; }
body:not(.page-home) .prose li > p { margin: 0 0 .5rem; }
body:not(.page-home) .prose ul > li::marker { color: var(--muted); }
body:not(.page-home) .prose ol > li::marker { color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
/* heading scale: h2 section, h3 sub-section, h4 run-in label; same family, weight and spacing everywhere */
body:not(.page-home) .prose :is(h2, h3, h4) { font-family: var(--font-display); color: var(--ink); text-wrap: balance; letter-spacing: -.012em; }
body:not(.page-home) .prose h2 { font-size: clamp(1.4rem, 1.25rem + .6vw, 1.6rem); font-weight: 650; line-height: 1.22; margin: calc(var(--flow) * 2.6) 0 calc(var(--flow) * .6); padding-top: 0; }
body:not(.page-home) .prose h3 { font-size: clamp(1.13rem, 1.08rem + .25vw, 1.22rem); font-weight: 650; line-height: 1.3; margin: calc(var(--flow) * 1.8) 0 calc(var(--flow) * .45); }
body:not(.page-home) .prose h4 { font-size: 1rem; font-weight: 700; line-height: 1.35; margin: calc(var(--flow) * 1.4) 0 calc(var(--flow) * .35); }
body:not(.page-home) .prose > :first-child, body:not(.page-home) .prose h2 + h3 { margin-top: 0; }
body:not(.page-home) .prose h2 + h3 { margin-top: calc(var(--flow) * .9); }
body:not(.page-home) .prose strong { font-weight: 650; }
body:not(.page-home) .prose em { font-style: italic; }
/* links in running text: thinner, quieter underline */
.prose a:not(.btn):not(.cite):not(.card-link) { text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.prose a:not(.btn):not(.cite):hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
/* the first paragraph reads as a standfirst */
body:not(.page-home) .prose > p:first-child { font-size: 1.06em; color: var(--ink); }

/* claim markers: small raised ✓ + source numbers, never a pill in running text */
.claim { font-size: .7em; line-height: 0; vertical-align: .55em; white-space: nowrap; margin-left: .12em; font-weight: 700; font-family: var(--font); letter-spacing: 0; }
.claim-l { color: var(--muted); font-weight: 650; }
.claim-v .claim-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.claim-v::before { content: "✓" / ""; color: var(--v-fg); margin-right: .1em; }
.claim-u .claim-l { color: var(--u-fg); font-style: italic; text-transform: lowercase; margin-right: .2em; }
.claim-c .claim-l { color: var(--c-fg); text-transform: lowercase; margin-right: .2em; }
.claim-refs { display: inline; }
.cite, .claim .cite { font-size: 1em; font-weight: 700; color: var(--link); text-decoration: none; padding: 0 .08em; border-radius: 3px; }
.cite:hover { text-decoration: underline; }
.cite:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.cite-sep { color: var(--muted); }
:target { scroll-margin-top: calc(var(--sticky-top) + var(--bar-h, 0px) + 1rem); }
.page-sources li:target { background: var(--gold); border-radius: 6px; }

/* official text: one quiet "paper" block with a small label row */
.prose figure.official { margin-left: 0; margin-right: 0; padding: .95rem 1.1rem 1rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--l1-bd); border-radius: 4px 12px 12px 4px; }
.official-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; margin: 0 0 .55rem; font-family: var(--font); font-size: .8rem; line-height: 1.4; }
.official-k { font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--l1-bd); }
.official-t { font-weight: 650; color: var(--ink); }
.official-ctx { margin-left: auto; font-weight: 600; white-space: nowrap; }
.official-body { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.06rem; line-height: 1.62; color: var(--ink); }
.official-body p { margin: 0 0 .7rem; max-width: none; }
.official-body p:last-child { margin-bottom: 0; }
.official-body em { font-style: italic; }
.official-body strong { font-weight: 700; }
.clause-n { font-family: var(--font); font-size: .74rem; font-weight: 750; letter-spacing: .04em; color: var(--muted); margin-right: .15rem; white-space: nowrap; }
.official-src { margin: .7rem 0 0 !important; padding-top: .55rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); max-width: none !important; }
/* plain quotations (short excerpts) */
.prose blockquote { padding: .1rem 0 .1rem 1rem; background: none; border-radius: 0; box-shadow: none; border-left: 3px solid var(--line-strong); font-family: inherit; font-size: 1em; color: var(--ink); }
.prose blockquote p { margin: 0 0 .5rem; }
.prose blockquote p:last-child { margin-bottom: 0; }

/* one callout style: tinted panel with a thin brand rule (callout, key takeaways, the old cards' callouts) */
.prose :is(.callout, .takeaways) { background: var(--callout-bg); border: 0; box-shadow: inset 3px 0 0 var(--brand); border-radius: 4px 12px 12px 4px; padding: .9rem 1.1rem; }
.prose .warning { border: 0; box-shadow: inset 3px 0 0 var(--danger); border-radius: 4px 12px 12px 4px; padding: .9rem 1.1rem; }
.prose :is(.callout, .warning, .takeaways) > :last-child { margin-bottom: 0; }
.prose :is(.callout, .warning) p { margin-bottom: .6rem; }
.takeaways-h { margin: 0 0 .5rem !important; font-family: var(--font); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.takeaways ul { margin: 0; padding-left: 1.15rem; }
.takeaways li { margin-bottom: .4rem; }
.takeaways li strong { font-weight: 650; }
/* "Our reading" opinion label: same look whether the Markdown used bold or italics */
.our-reading { font-weight: 700; font-style: normal; color: var(--warm); font-size: .95em; }

/* hand-made cards inside articles become plain sections divided by a hairline */
body:not(.page-home) .prose .card { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0; margin: calc(var(--flow) * 2) 0; }
body:not(.page-home) .prose .card + .card { border-top: 1px solid var(--line); padding-top: calc(var(--flow) * 1.6); }
body:not(.page-home) .prose .card > h3:first-child { margin-top: 0; }

/* self-check: one list with dividers instead of a stack of boxes */
.prose .quiz-set { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose .quiz-set details.quiz { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0; }
.prose .quiz-set details.quiz + details.quiz { border-top: 1px solid var(--line); }
.prose .quiz-set details.quiz > summary { display: block; position: relative; min-height: 48px; padding: .75rem 0 .75rem 2.2rem; list-style: none; cursor: pointer; font-weight: 600; line-height: 1.45; border: 0; margin: 0; }
.prose .quiz-set details.quiz > summary::-webkit-details-marker { display: none; }
.prose .quiz-set details.quiz > summary::before { content: "+" / ""; position: absolute; left: 0; top: .78rem; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-top: .05rem; }
.prose .quiz-set details.quiz[open] > summary::before { content: "–" / ""; }
.prose .quiz-set details.quiz[open] { box-shadow: none; }
.prose .quiz-set details.quiz[open] > summary { border: 0; margin: 0; }
.prose .quiz-set details.quiz > :not(summary) { margin: 0 0 .9rem 2.2rem; }

/* tables: quiet grid on wide screens; on phones, 3+ column tables become stacked entries */
.prose .table-wrap { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose .table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.prose .table-wrap th { text-align: left; font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.prose .table-wrap td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; background: none; }
.prose .table-wrap tr:last-child td { border-bottom: 0; }
.prose .table-wrap table.t-2 { min-width: 0; }
@media (max-width: 39.99rem) {
  .prose .table-wrap[data-stack] { border: 0; background: none; border-radius: 0; overflow: visible; }
  .prose table.t-stack, .prose table.t-stack tbody, .prose table.t-stack tr, .prose table.t-stack td { display: block; width: auto; min-width: 0 !important; }
  .prose table.t-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .prose table.t-stack tr { padding: .8rem 0; border-top: 1px solid var(--line); }
  .prose table.t-stack tr:last-child { border-bottom: 1px solid var(--line); }
  .prose table.t-stack td { padding: .1rem 0 .35rem; border: 0; font-size: 1rem; }
  .prose table.t-stack td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .05rem; }
  .prose table.t-stack td:first-child { font-weight: 650; font-size: 1.05rem; }
  .prose table.t-stack td:first-child::before { display: none; }
  .prose table.t-stack td:empty { display: none; }
}
/* lesson head and "On this page" sit closer to the text */
.is-lesson .page-head { margin-bottom: 1rem; }
.is-lesson .onpage { margin-bottom: calc(var(--flow) * 1.4); }
/* sources list: smaller, calmer */
.page-sources { margin-top: calc(var(--flow) * 3); padding-top: var(--flow); border-top: 1px solid var(--line); font-size: .9rem; }
.page-sources h2 { font-size: 1.1rem !important; margin: 0 0 .6rem !important; }
.page-sources li { margin-bottom: .45rem; }
@media print { .claim-v .claim-l { position: static; width: auto; height: auto; clip: auto; clip-path: none; } .claim-v::before { content: ""; } }

/* ---------- The Method: quick check + collapsed full checklist (Oct 23, 2026) ---------- */
.page-method .prose > .lead { margin-bottom: .4rem; }
body:not(.page-home) .prose .quick-check { margin: 0 0 1rem; }
body:not(.page-home) .prose .quick-check .qc-open { margin: 0 0 .35rem; font-size: .97rem; }
body:not(.page-home) .prose .quick-check ol.qc-list { list-style: none; margin: 0; padding: 0; }
body:not(.page-home) .prose .quick-check .qc-item { display: flex; gap: .6rem; padding: .55rem 0; margin: 0; border-top: 1px solid var(--line); }
.qc-num { flex: 0 0 auto; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand, #fff); font-weight: 800; font-size: .9rem; margin-top: .05rem; }
.qc-body { min-width: 0; }
body:not(.page-home) .prose .quick-check h2.qc-q { font-size: 1.05rem; line-height: 1.3; margin: 0 0 .15rem; padding: 0; border: 0; }
body:not(.page-home) .prose .quick-check .qc-a { margin: 0 0 .2rem; font-size: .93rem; line-height: 1.45; }
body:not(.page-home) .prose .quick-check ul.qc-links { list-style: none; margin: 0; padding: 0; font-size: .93rem; line-height: 1.6; }
body:not(.page-home) .prose .quick-check ul.qc-links li { display: inline; margin: 0; white-space: nowrap; }
body:not(.page-home) .prose .quick-check ul.qc-links li:not(:last-child)::after { content: " ·" / ""; color: var(--muted); margin-right: .3rem; }
.qc-links a { font-weight: 600; padding: .15rem 0; }
body:not(.page-home) .prose .quick-check .qc-ask { margin: .55rem 0 .3rem; padding: .5rem .8rem; background: var(--brand-soft); border-radius: var(--radius-sm); font-size: .93rem; line-height: 1.45; }
body:not(.page-home) .prose .quick-check .qc-foot { margin: 0; line-height: 1.45; }
details.method-deeper { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 1rem; margin: 1.25rem 0; }
details.method-deeper > summary { display: block; list-style: none; position: relative; padding: .8rem 2rem .8rem 0; min-height: 48px; }
details.method-deeper > summary::-webkit-details-marker { display: none; }
details.method-deeper > summary::after { content: "+" / ""; position: absolute; right: 0; top: .8rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
details.method-deeper[open] > summary::after { content: "–" / ""; }
details.method-deeper .md-title { display: block; font-weight: 800; }
details.method-deeper .md-sub { display: block; font-weight: 400; font-size: .9rem; color: var(--muted, inherit); }
details.method-deeper .checklist { margin-top: .5rem; }
details.method-deeper .cl-bar { margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
/* Home: The Constitution Course card spans the full row */
.path-card-wide { grid-column: 1 / -1; }

/* Collapsible detail sections on short "records" pages (same look as the Method's "go deeper" box). */
details.more { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 1rem; margin: 1rem 0; }
details.more > summary { display: block; list-style: none; position: relative; padding: .8rem 2rem .8rem 0; min-height: 48px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+" / ""; position: absolute; right: 0; top: .8rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
details.more[open] > summary::after { content: "–" / ""; }
details.more .md-title { display: block; font-weight: 800; }
details.more .md-sub { display: block; font-weight: 400; font-size: .9rem; color: var(--muted, inherit); }
details.more[open] { padding-bottom: .5rem; }
.rec-cards { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.rec-cards li { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: .9rem 1rem; }
/* Get it done: compact link cards that fit one phone screen. */
.gid, body:not(.page-home) .prose ul.gid { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .45rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gid li { margin: 0; min-width: 0; }
.gid a { display: flex; flex-direction: column; justify-content: center; min-height: 48px; height: 100%; box-sizing: border-box; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; line-height: 1.25; overflow-wrap: anywhere; }
.gid a:hover { border-color: var(--brand); }
.gid a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gid .gid-t { display: block; font-weight: 800; font-size: .95rem; color: var(--brand); }
.gid .gid-s { display: block; font-size: .8rem; color: var(--muted); margin-top: .1rem; }
@media (min-width: 40rem) { .gid, body:not(.page-home) .prose ul.gid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rec-cards li h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.rec-cards li p { margin: 0; font-size: .95rem; }

/* ========== 6. v4 portal home (Oct 28, 2026; tools/portal.js, UPDATING.md §17) ========== */
/* Phone-first at 390px. The old .page-home .hero / .path rules above are unused by the portal but kept. */
.pt-hero { position: relative; margin: var(--sp-4) calc(-1 * var(--gutter)) 0; padding: var(--sp-6) var(--gutter) var(--sp-5); background: var(--hero-sky); border-bottom: 1px solid var(--line); }
.pt-hero h1 { font-family: var(--font-display); font-size: clamp(1.85rem, 7.4vw, 3rem); line-height: 1.08; letter-spacing: -.01em; margin: var(--sp-2) 0 var(--sp-3); max-width: 22ch; }
.pt-lead { font-size: var(--fs-lg); color: var(--ink); margin: 0 0 var(--sp-4); max-width: 40rem; }
.pt-search { max-width: 40rem; }
.pt-now { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.pt-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5) var(--sp-5); box-shadow: var(--shadow); min-width: 0; }
.pt-card > :first-child { margin-top: 0; }
.pt-card > :last-child { margin-bottom: 0; }
.pt-card h2 { font-size: var(--fs-xl); line-height: 1.2; margin: var(--sp-1) 0 var(--sp-2); }
.pt-k { font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--warm); margin: 0; }
.pt-meeting { border-top: 6px solid var(--brand); }
.pt-latest { border-top: 6px solid var(--warm-2); }
.pt-date { font-family: var(--font-display); }
.pt-when { margin: 0 0 var(--sp-2); }
.pt-badge { display: inline-block; font-size: var(--fs-xs); font-weight: 750; padding: .15em .65em; border-radius: 999px; background: var(--c-bg); color: var(--c-fg); border: 1px solid currentColor; margin-right: .35em; }
.pt-badge-ok { background: var(--v-bg); color: var(--v-fg); }
.pt-status, .pt-confirm { font-size: var(--fs-sm); color: var(--muted); margin: var(--sp-2) 0; }
.pt-card .btn { margin-top: var(--sp-3); width: 100%; }
.pt-hls { list-style: none; padding: 0; margin: var(--sp-3) 0 0; display: grid; gap: var(--sp-3); }
.pt-hl { padding: var(--sp-3) 0 0; border-top: 1px solid var(--line); }
.pt-hl:first-child { border-top: 0; padding-top: 0; }
.pt-hl-t { margin: 0; }
.pt-hl-t a { font-weight: 650; display: block; overflow-wrap: anywhere; }
.pt-hl-m { display: flex; flex-wrap: wrap; gap: .3rem .4rem; align-items: center; margin: .35rem 0 0; font-size: var(--fs-sm); }
.pt-vote { font-weight: 700; color: var(--muted); }
.pt-latest-note { color: var(--muted); margin: 0 0 var(--sp-2); }
.pt-sec { margin-top: var(--sp-7, 2.5rem); }
.pt-sec > h2, .pt-kyr > h2 { font-size: var(--fs-2xl); line-height: 1.15; margin: 0 0 var(--sp-3); }
.pt-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.pt-tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-4); box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.pt-tile:hover { border-color: var(--line-strong); }
.pt-tile:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.pt-wide { grid-column: 1 / -1; }
.pt-tile h3 { font-size: var(--fs-lg); line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.pt-tile p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.pt-ti { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--olive); color: var(--olive-ink); }
.pt-ti svg { width: 1.35rem; height: 1.35rem; }
.pt-wide .pt-ti { background: var(--sky); color: var(--sky-ink); }
.pt-sub { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pt-sub a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .9rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 650; font-size: var(--fs-sm); }
.pt-sub a:hover { background: var(--brand-soft); border-color: var(--brand); }
.pt-kyr { margin-top: var(--sp-7, 2.5rem); }
.pt-sec-lead { margin: 0 0 var(--sp-3); color: var(--muted); }
.kyr-list { display: grid; gap: var(--sp-2); }
details.kyr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
details.kyr > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 52px; padding: .7rem var(--sp-4); font-weight: 700; font-size: var(--fs-md, 1.05rem); }
details.kyr > summary::-webkit-details-marker { display: none; }
details.kyr > summary::after { content: "+"; flex: 0 0 auto; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
details.kyr[open] > summary::after { content: "−"; }
details.kyr[open] { border-color: var(--brand); }
.kyr-a { padding: 0 var(--sp-4) var(--sp-4); }
.kyr-lead { margin: 0 0 var(--sp-3); font-size: var(--fs-md, 1.05rem); line-height: 1.5; overflow-wrap: anywhere; }
.kyr-h { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: var(--sp-3) 0 .35rem; }
.kyr-todo { margin: 0 0 var(--sp-3); padding-left: 1.4rem; }
.kyr-todo li, .kyr-sec li { margin: .35rem 0; line-height: 1.5; overflow-wrap: anywhere; }
.kyr-secs { display: grid; gap: .4rem; margin: 0 0 var(--sp-3); }
details.kyr-sec { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2, var(--surface)); }
details.kyr-sec > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: .5rem .75rem; font-weight: 700; }
details.kyr-sec[open] > summary { border-bottom: 1px solid var(--line); }
details.kyr-sec > ul { margin: .25rem 0 .5rem; padding: 0 .75rem 0 1.9rem; }
.kyr-links { list-style: none; margin: 0; padding: var(--sp-3) 0 0; border-top: 1px solid var(--line); display: grid; gap: .35rem; font-size: var(--fs-sm); font-weight: 650; }
.rule-behind { font-size: var(--fs-sm); margin: .5rem 0 0; padding: .45rem .7rem; border-left: 4px solid var(--olive-ink); background: var(--olive); border-radius: 0 10px 10px 0; overflow-wrap: anywhere; }
.rb-k { font-weight: 750; color: var(--olive-ink); margin-right: .25em; }
.rb-en { color: var(--muted); font-size: .92em; }
.prose .rule-behind { margin: -.25rem 0 var(--sp-4); }
.continue-card { margin-top: var(--sp-7, 2.5rem); border-top: 6px solid var(--sky-ink); }
.continue-card .meter { margin: var(--sp-2) 0; }
.cl-next { margin: var(--sp-2) 0 0; font-weight: 650; }
.cl-method, .cl-more { margin: var(--sp-2) 0 0; }
.continue-learn { margin: var(--sp-4) 0 var(--sp-5); }
.pt-foot { margin-top: var(--sp-7, 2.5rem); }
@media (min-width: 40rem) {
  .pt-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-card .btn { width: auto; }
}
@media (min-width: 64rem) {
  .nav .nav-xd { display: none; }
  .pt-hero { margin-top: var(--sp-5); border-radius: var(--radius); margin-left: 0; margin-right: 0; padding: var(--sp-7, 2.5rem) var(--sp-7, 2.5rem) var(--sp-6); border: 1px solid var(--line); }
  .pt-now { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; }
  .pt-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pt-wide { grid-column: span 2; }
  .kyr-list { max-width: 52rem; }
}
@media (prefers-color-scheme: dark) { .pt-hero { background: var(--surface-2); } }

/* ========== 7. Williams Arch photo in the home hero (Oct 29, 2026; tools/portal.js archFigure) ========== */
/* Phone: full-bleed band at the top of the hero, caption laid over the bottom of the photo. Desktop: framed photo right of the headline. */
.pt-hero:has(.pt-arch) { padding-top: 0; }
.pt-arch { position: relative; margin: 0 calc(-1 * var(--gutter)) var(--sp-3); aspect-ratio: 780 / 300; overflow: hidden; background: #6f9fcf; }
.pt-arch picture, .pt-arch img { display: block; width: 100%; height: 100%; }
.pt-arch img { object-fit: cover; object-position: 50% 40%; }
.pt-arch figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .1rem .6rem; padding: 1.6rem .7rem .3rem; font-size: .72rem; line-height: 1.3; color: #fff; background: linear-gradient(180deg, rgba(14, 18, 10, 0) 0%, rgba(14, 18, 10, .78) 62%); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.pt-arch-t { font-weight: 700; }
.pt-arch-c { opacity: 1; }
.pt-arch a, .pt-arch .cite, .pt-arch .claim .cite { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.pt-arch .claim-v::before { color: #b8f0c8; }
.pt-arch .claim-l { color: #fff; }
.pt-hero-text > .eyebrow { margin-top: 0; }
@media (min-width: 64rem) {
  .pt-hero:has(.pt-arch) { padding-top: var(--sp-7, 2.5rem); display: grid; grid-template-columns: minmax(0, 1fr) 28rem; gap: var(--sp-6); align-items: center; }
  .pt-arch { order: 2; margin: 0; aspect-ratio: 640 / 397; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
  .pt-arch figcaption { font-size: .78rem; padding: 2rem .9rem .5rem; }
}

/* ========== 8. Simpler menu, quieter home (Oct 29, 2026; UPDATING.md §18) ========== */
/* Disclaimer strip: one slim line */
.banner { font-size: .75rem; }
.banner p { padding-top: .22rem; padding-bottom: .22rem; }
/* Header menu: 5 sections only. Phone drawer = 5 roomy rows with a one-line description. */
@media (max-width: 63.99rem) {
  html.js.menu-open .nav { padding-top: .5rem; }
  html.js .nav li + li { border-top: 1px solid var(--line); }
  html.js .nav a { padding: .8rem .75rem; }
  html.js .nav a[aria-current] { background: var(--brand-soft); color: var(--brand); }
}
@media (min-width: 30rem) and (max-width: 63.99rem) {
  html.js.menu-open .nav { display: block !important; }
}
@media (min-width: 64rem) {
  .site-nav .nav { gap: .2rem; } /* 9 sections since Oct 31, 2026 (How the council voted) */
  .nav a { font-size: .95rem; padding: 0 .6rem; }
  .nav a[aria-current="true"] { background: var(--brand-soft); color: var(--brand); }
}
/* Footer: three labelled columns with every page */
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: var(--sp-4) var(--sp-5); margin: var(--sp-4) 0; }
.fn-h { font-family: var(--font); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #d9e3c4; margin: 0 0 .35rem; }
.footer-nav ul { display: block; margin: 0; }
.footer-nav li { margin: 0; }
.footer-nav a { display: inline-block; padding: .4rem 0; min-height: 24px; }
.footer-fine { font-size: .85rem; }
/* Source markers: one small raised symbol + number. ✓ read in the source, ? not confirmed, Σ calculated.
   The word (Verified / Unverified / Calculated) stays in the text for screen readers and print. */
.claim-u .claim-l, .claim-c .claim-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; }
.claim-u::before { content: "?" / ""; color: var(--u-fg); margin-right: .1em; font-weight: 800; }
.claim-c::before { content: "Σ" / ""; color: var(--c-fg); margin-right: .1em; }
.claim .cite-sep { color: var(--muted); }
@media print { .claim-u .claim-l, .claim-c .claim-l { position: static; width: auto; height: auto; clip: auto; clip-path: none; } .claim-u::before, .claim-c::before { content: ""; } }
.pt-legend { color: var(--muted); margin: var(--sp-6) 0 0; display: flex; flex-wrap: wrap; gap: .2rem .8rem; align-items: baseline; }
.pl-k { font-weight: 700; color: var(--ink); }
.pl-s { font-weight: 800; margin-right: .2em; }
.pl-v { color: var(--v-fg); } .pl-u { color: var(--u-fg); } .pl-c { color: var(--c-fg); }
/* Next meeting card: quieter */
.pt-badge { font-size: .72rem; font-weight: 700; padding: 0 .45em; border: 0; border-radius: 6px; margin-right: .2em; }
.pt-meeting .pt-when { margin-bottom: .25rem; }
.pt-status { margin: .25rem 0; }
.pt-confirm { margin: .5rem 0 0; font-size: var(--fs-sm); }
.pt-confirm a { font-weight: 650; }
.pt-card { padding: var(--sp-4) var(--sp-4) var(--sp-4); }
.pt-card h2 { margin: .1rem 0 .3rem; }
.pt-now { margin-top: var(--sp-4); gap: var(--sp-3); }
/* Home hero: tighter on phones */
.pt-hero { padding-bottom: var(--sp-4); }
.pt-hero h1 { margin: var(--sp-1) 0 var(--sp-2); }
.pt-lead { font-size: var(--fs-md); margin-bottom: var(--sp-3); }
@media (max-width: 63.99rem) { .pt-hero-text > .eyebrow { display: none; } .pt-arch { aspect-ratio: 780 / 260; } }
/* Constitution Course strip */
.course-strip { border-top: 6px solid var(--sky-ink); background: linear-gradient(180deg, var(--sky) 0%, var(--surface) 70%); }
.course-strip h2 a { color: var(--ink); text-decoration: none; }
.course-strip h2 a:hover { text-decoration: underline; }
.cs-sub { margin: 0 0 .5rem; font-size: var(--fs-sm); color: var(--muted); }
.course-strip .meter { margin: .4rem 0 .5rem; }
.cs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: 0; }
.cs-actions .btn { margin-top: 0; width: auto; min-width: 8.5rem; }
.cs-all { font-weight: 650; }
/* Three big doors */
.pt-doors-sec { margin-top: var(--sp-5); }
.pt-doors { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.pt-door { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-4); box-shadow: var(--shadow); min-width: 0; }
.pt-door .pt-ti { grid-row: span 2; width: 2.8rem; height: 2.8rem; }
.pt-door h3 { margin: 0; font-size: var(--fs-lg); line-height: 1.2; }
.pt-door p { margin: .15rem 0 0; font-size: var(--fs-sm); color: var(--muted); }
.pt-door:hover { border-color: var(--line-strong); }
.pt-door:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.pt-door .card-link::before { content: "→"; float: right; margin-left: .5rem; color: var(--brand); }
.pt-latest { margin-top: var(--sp-5); }
.pt-hls { gap: var(--sp-2); }
/* "Lesson:" lines (were "The rule behind this") */
.rule-behind { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; padding: .35rem .65rem; }
.rb-ico { align-self: center; display: inline-flex; color: var(--olive-ink); }
.page-kicker { font-size: var(--fs-lg); color: var(--muted); margin: -.25rem 0 var(--sp-4); }
@media (min-width: 40rem) { .pt-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pt-door { grid-template-columns: 1fr; align-items: start; } .pt-door .pt-ti { grid-row: auto; margin-bottom: .5rem; } }
@media (min-width: 64rem) {
  .pt-now { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .pt-latest { max-width: none; }
}
@media (max-width: 39.99rem) {
  .pt-lead { display: none; }
  .pt-arch { aspect-ratio: 780 / 240; }
  .pt-hero { padding-bottom: var(--sp-3); }
  .pt-hero h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); margin-bottom: var(--sp-3); }
  .pt-meeting .pt-date { font-size: 1.4rem; }
  .pt-meeting .pt-when { font-size: var(--fs-sm); }
}
.rule-behind { display: block; }
.rb-ico { display: inline-block; vertical-align: -.15em; margin-right: .25em; }
.ps-fold > summary { font-weight: 650; }
.footer-nav { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--sp-4) var(--sp-4); }
.footer-nav a { padding: .3rem 0; }

/* ========== home core section (Oct 29, 2026): How power works + three layers ========== */
.pt-core { display: grid; gap: var(--sp-4); }
.pt-power { border-top: 6px solid var(--brand); }
.pt-layers { border-top: 6px solid var(--gold); }
.pt-power-lead { font-size: var(--fs-lg); margin: 0 0 var(--sp-3); }
.pt-power-list { margin: 0 0 var(--sp-3); padding-left: 1.1rem; display: grid; gap: var(--sp-2); }
.pt-power-list li { overflow-wrap: anywhere; }
.pt-power-parts { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; font-size: var(--fs-sm); }
.pt-power-parts a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 650; }
.pt-power-parts a:hover { border-color: var(--brand); }
.page-home .pt-layers .layers-home { margin: var(--sp-2) 0 0; padding: var(--sp-3); box-shadow: none; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.page-home .pt-layers .layers-home figcaption { margin-bottom: var(--sp-2); }
.page-home .search-btn .sb-label { display: inline; }
/* pt-core now holds one card per section (power moved below Know your rights, Oct 30, 2026) */

/* Oct 30, 2026: visible "(en inglés)" on Spanish links that open English-only pages */
.en-tag { font-weight: 400; font-size: .9em; white-space: nowrap; }
.btn .en-tag { margin-left: .3em; opacity: .95; }

/* Oct 30, 2026: pick-an-answer quizzes (each choice is a 48px+ full-width target) */
.prose .quiz-set-mc { border: 0; }
.quiz-mc { border-top: 1px solid var(--line); padding: .9rem 0 .4rem; }
.quiz-mc:first-child { border-top: 0; }
.qm-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.qm-q { font-weight: 600; line-height: 1.45; padding: 0; margin: 0 0 .55rem; }
.qm-n { color: var(--muted); font-weight: 700; }
.qm-opts { display: grid; gap: .45rem; }
.qm-opt { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; line-height: 1.35; }
.qm-opt input { width: 1.25rem; height: 1.25rem; flex: none; margin: 0; accent-color: var(--brand); }
.qm-opt:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.qm-done .qm-opt.qm-right { border-color: var(--v-fg); background: var(--v-bg); }
.qm-done .qm-opt.qm-right .qm-t::after { content: " ✓" / ""; color: var(--v-fg); font-weight: 800; }
.qm-done .qm-opt.qm-wrong { border-color: var(--u-fg); background: var(--u-bg); }
.qm-done .qm-opt.qm-wrong .qm-t::after { content: " ✗" / ""; color: var(--u-fg); font-weight: 800; }
.qm-fb { font-weight: 700; margin: .5rem 0 0; min-height: 0; }
.qm-fb:empty { display: none; }
.prose .quiz-set-mc details.qm-ans > summary { font-weight: 600; color: var(--brand); }
.lesson-done-quiz { margin: 1.25rem 0 2rem; }

/* Mixed-format extra question (Oct 30, 2026) */
.qx-kind { font-weight: 700; color: var(--brand); }
.qx-sample { margin: .5rem 0 1rem; padding: .75rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.qx-sample figcaption { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.qx-sample p { margin: .25rem 0 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; }
.qx-help { margin: .25rem 0 .5rem; color: var(--muted); font-size: .95rem; }
.qx-list { list-style: decimal; margin: 0 0 .75rem; padding-left: 1.75rem; display: grid; gap: .5rem; }
.qx-step { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem .5rem .5rem .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; background: var(--surface); }
.qx-step-t { flex: 1 1 12rem; }
.qx-btns { display: flex; gap: .4rem; }
.qx-mv, .qx-check { min-height: 44px; min-width: 44px; padding: .4rem .8rem; border: 1px solid var(--brand); border-radius: var(--radius-sm); background: #fff; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
.qx-check { background: var(--brand); color: #fff; min-height: 48px; padding: .5rem 1.1rem; }
.qx-mv:disabled { opacity: .35; cursor: default; }
.qx-mv:focus-visible, .qx-check:focus-visible, .qx-sel:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.qx-rows { display: grid; gap: .75rem; margin-bottom: .75rem; }
.qx-row { display: grid; gap: .35rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.qx-issue { font-weight: 600; }
.qx-sel { min-height: 44px; width: 100%; font: inherit; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.qx-step.qx-right, .qx-row.qx-right { background: var(--v-bg); color: var(--v-fg); border-color: currentColor; }
.qx-step.qx-wrong, .qx-row.qx-wrong { background: var(--u-bg); color: var(--u-fg); border-color: currentColor; }
.qx-step.qx-right .qx-step-t::after, .qx-row.qx-right .qx-issue::after { content: " ✓"; }
.qx-step.qx-wrong .qx-step-t::after, .qx-row.qx-wrong .qx-issue::after { content: " ✗"; }
.qx-src { font-size: .95rem; color: var(--muted); }
.qx [hidden] { display: none !important; }
/* Homepage: site name as the heading, tagline below it */
.pt-tag { font-family: var(--font-display); font-size: clamp(1.15rem, 4.2vw, 1.5rem); line-height: 1.2; margin: 0 0 var(--sp-2); }

/* ---------- Oct 30, 2026: homepage order, tap targets, citation chips, new pages ---------- */
/* Meeting card stands alone now that "Start here" sits right under it */
@media (min-width: 64rem) { .pt-now.pt-now-solo { grid-template-columns: minmax(0, 1fr); } }
.pt-speak { margin: var(--sp-3) 0 0; max-width: none; }
.pt-card .btn.pt-speak-btn { display: flex; width: 100%; max-width: none; margin-top: 0; justify-content: center; }
@media (min-width: 40rem) { .pt-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .pt-doors { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Tap targets: links and buttons at least 44px tall (padding grows the hit area; negative margins keep the layout) */
.brand { min-height: 44px; }
.banner a { display: inline-block; padding: 15px 0; margin: -15px 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-fine a { display: inline-block; padding: 14px 0; margin: -14px 0; }
.page-home .pt-arch-c a { display: inline-block; padding: 15px 0; margin: -15px 0; }
.page-home .pt-confirm a, .page-home .rule-behind a, .page-home .pt-legend a { display: inline-block; padding: 13px 0; margin: -13px 0; }
.page-home .pt-confirm { line-height: 2; }
.page-home .pt-door .card-link { display: block; padding: 10px 0; margin: -10px 0; }
.page-home .pt-card h2 a { display: inline-block; padding: 8px 0; margin: -8px 0; }
.page-home .cs-all { display: inline-flex; align-items: center; min-height: 44px; margin-right: .75rem; }
.page-home .layer-name a { display: inline-block; padding: 9px 0; margin: -9px 0; }
.page-home .kyr-a li a { display: inline-block; padding: 13px 0; margin: -13px 0; }
.page-home .kyr-a li { margin: .7rem 0; }
.page-home .cite { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; padding: 0 2px; height: 44px; margin: -22px 0; vertical-align: baseline; }
.page-home .ps-fold li a { display: inline-block; padding: 13px 0; margin: -13px 0; }

/* Get it done and Take part: smaller chips, sources grouped at the end of a list or section */
.page-get-it-done .claim, .page-take-part .claim { font-size: .6em; }
.src-line { font-size: var(--fs-sm); color: var(--muted); margin: .4rem 0 1rem; }
.src-line .claim { font-size: .85em; vertical-align: baseline; line-height: inherit; }

/* Report a problem: quick table */
.rp-quick { width: 100%; }
.rp-quick td a { display: inline-block; padding: 10px 0; }

/* Who decides? lookup */
.wd-filter { margin: var(--sp-4) 0; }
.wd-filter label { display: block; font-weight: 700; margin-bottom: .3rem; }
.wd-filter input { width: 100%; max-width: 28rem; min-height: 44px; font: inherit; padding: .5rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.wd-table caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
@media (max-width: 39.99rem) { .prose .wd-table caption { display: block; width: auto; } }
.wd-table th[scope="row"] { text-align: left; }
.wd-table tr[hidden] { display: none !important; }
.wd-table td a, .wd-table th a { display: inline-block; padding: 10px 0; margin: -6px 0; }

/* Essentials track */
.ess-list { list-style: none; padding: 0; margin: var(--sp-4) 0; display: grid; gap: var(--sp-3); }
.ess-item { display: grid; gap: .25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-4); }
.ess-link { display: block; min-height: 44px; font-weight: 700; font-size: var(--fs-lg); }
.ess-n { display: block; font-size: var(--fs-sm); color: var(--muted); font-weight: 650; }
.ess-meta { color: var(--muted); }

/* ===== r2 (Oct 30, 2026): approved homepage cleanup. Everything below overrides earlier homepage rules. ===== */
/* 1. Header: no logo anywhere; the homepage header has no name (the page heading carries it) */
.brand { gap: 0; }
.brand-name { overflow: visible; text-overflow: clip; }
@media (max-width: 23rem) { .brand { font-size: .95rem; } }

/* 1. Arch photo: only "Built 1917" on the image; credit and sources in one small line under it */
.page-home .pt-arch { aspect-ratio: auto; overflow: visible; background: none; box-shadow: none; border: 0; border-radius: 0; }
.pt-arch-img { position: relative; aspect-ratio: 780 / 240; overflow: hidden; background: #6f9fcf; }
.pt-arch-img picture, .pt-arch-img img { display: block; width: 100%; height: 100%; }
.pt-arch-img img { object-fit: cover; object-position: 50% 40%; }
.pt-arch-t { position: absolute; left: .6rem; bottom: .5rem; padding: .2rem .65rem; border-radius: 999px; background: rgba(14, 18, 10, .78); color: #fff; font-size: .8rem; font-weight: 700; line-height: 1.3; }
.page-home .pt-arch figcaption.pt-arch-c { position: static; display: block; padding: .35rem var(--gutter) 0; background: none; color: var(--muted); text-shadow: none; font-size: .75rem; line-height: 1.5; }
.page-home .pt-arch-c a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.page-home .pt-arch-c .cite, .page-home .pt-arch-c .claim .cite { color: var(--link); text-decoration: none; }
.page-home .pt-arch-c .claim-l { color: var(--muted); }
.page-home .pt-arch-c .claim-v::before { color: var(--v-fg); }
.pt-arch-src { white-space: nowrap; }
@media (min-width: 40rem) { .pt-arch-img { aspect-ratio: 780 / 260; } }
@media (min-width: 64rem) {
  .page-home .pt-arch { order: 2; margin: 0; }
  .pt-arch-img { aspect-ratio: 640 / 397; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
  .page-home .pt-arch figcaption.pt-arch-c { padding-left: 0; padding-right: 0; }
}

/* 2. One "Sources:" line at the end of each homepage box */
.page-home .pt-src { font-size: var(--fs-sm); color: var(--muted); margin: var(--sp-3) 0 0; line-height: 1.6; }
.page-home .pt-src .claim { font-size: 1em; vertical-align: baseline; line-height: inherit; margin-left: .15em; }
.page-home .pt-src .claim + .claim { margin-left: .6em; }
.page-home .pt-src .cite-sep { display: none; }
.page-home .kyr-part .pt-src { margin: .25rem 0 var(--sp-2); }

/* 3. One homepage look: one box style, one accent (brand green), one button style, plain headings, one spacing step */
.page-home .prose > * + * { margin-top: var(--sp-5); }
.page-home .pt-now, .page-home .pt-doors-sec, .page-home .pt-sec, .page-home .pt-kyr { margin-top: var(--sp-5); }
.page-home .pt-card, .page-home .pt-door, .page-home .pt-kyr {
  background: var(--surface); border: 1px solid var(--line); border-top: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.page-home .pt-card, .page-home .pt-kyr { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.page-home .course-strip { background: var(--surface); }
.page-home .pt-meeting, .page-home .pt-latest, .page-home .pt-power, .page-home .pt-layers, .page-home .course-strip { border-top: 1px solid var(--line); }
.page-home .pt-k { color: var(--olive-ink); }
.page-home .pt-card h2, .page-home .pt-sec > h2, .page-home .pt-kyr > h2 { font-size: var(--fs-xl); line-height: 1.2; margin: var(--sp-1) 0 var(--sp-2); color: var(--ink); }
.page-home .pt-card h2 a { color: inherit; text-decoration: none; }
/* Know your rights: the six questions sit inside the box as rows, not boxes in a box */
.page-home .pt-kyr .kyr-list { gap: 0; }
.page-home .pt-kyr details.kyr { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.page-home .pt-kyr details.kyr > summary { padding-left: 0; padding-right: 0; }
.page-home .pt-kyr .kyr-a { padding: 0 0 var(--sp-3); }
/* one button style: every homepage button is the filled green pill, full width on phones */
.page-home .btn-ghost, .page-home .btn-ghost:visited { background: var(--brand); color: var(--on-brand); border-color: transparent; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.page-home .btn-ghost:hover { background: var(--brand-2); color: var(--on-brand); }
.page-home .pt-card .btn { width: 100%; margin-top: var(--sp-3); }
.page-home .cs-actions .btn { width: 100%; }
@media (min-width: 40rem) { .page-home .pt-card .btn, .page-home .cs-actions .btn { width: auto; } }
/* power section's three parts: plain links, not a second kind of button */
.page-home .pt-power-parts { gap: 0 1.1rem; }
.page-home .pt-power-parts a { border: 0; border-radius: 0; background: none; padding: 0; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
/* meeting box: the two follow-up links stack as two clean lines (no dot left at a line start) */
.page-home .pt-confirm { line-height: 1.5; margin-top: var(--sp-3); }
.page-home .pt-confirm a { display: block; width: fit-content; padding: .7rem 0; margin: 0; }
.page-home .pt-confirm .pt-sep { display: none; }
/* arch credit: no stray commas between source numbers */
.page-home .pt-arch-src .cite-sep { display: none; }
.page-home .pt-arch-src .cite + .cite { margin-left: .35em; }

/* "What I've seen" (Oct 31, 2026): the site author's own view, styled as a quote so it never looks like a Key takeaways box */
.prose .seen { margin: 0 0 var(--flow); padding: .2rem 0 .2rem 1.1rem; border-left: 3px solid var(--line-strong); background: none; box-shadow: none; font-style: italic; color: var(--ink); }
.prose .seen > :last-child { margin-bottom: 0; }
.prose .seen .seen-k { margin: 0 0 .35rem; font-family: var(--font); font-style: normal; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prose .seen .seen-k::before { content: "\201C"; margin-right: .3rem; font-size: 1.1rem; line-height: 0; vertical-align: -.15em; }

/* Homepage fixes (Oct 31, 2026, approved) */
/* 1. No name in the homepage top bar: Search becomes a wide search-field button that fills the left side, ES and the menu stay right */
.header-home .search-btn { flex: 1 1 auto; justify-content: flex-start; margin-right: 0; padding: 0 1rem; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (min-width: 64rem) { .header-home .search-btn { flex: 0 1 30rem; margin-right: auto; } }
/* 2. Photo credit: source numbers sit on the text baseline as a plain list, "Sources: 1, 2, 3" */
.page-home .pt-arch-src .claim { font-size: 1em; line-height: inherit; vertical-align: baseline; margin-left: .2em; font-weight: inherit; font-family: inherit; }
.page-home .pt-arch-src .claim-v::before { content: none; }
.page-home .pt-arch-src .cite, .page-home .pt-arch-src .claim .cite { display: inline; min-width: 0; height: auto; margin: 0; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.page-home .pt-arch-src .cite + .cite { margin-left: 0; }
.page-home .pt-arch-src .cite-sep { display: inline; color: var(--muted); margin-right: .3em; }
/* 3. Phone and tablet: the arch photo starts right under the top bar, no empty strip */
@media (max-width: 63.99rem) { .page-home .pt-hero { margin-top: 0; } }

/* Nov 9, 2026: valley landscape restored on the home page, along the bottom of the Constitution Course banner (bino). */
.page-home .course-strip { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 4.5rem; }
.page-home .course-strip::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4rem; background: var(--hero-art) center bottom / cover no-repeat; z-index: -1; pointer-events: none; }
@media (min-width: 64rem) { .page-home .course-strip { padding-bottom: 6.5rem; } .page-home .course-strip::after { height: 6rem; } }

/* ========== Nov 10, 2026: final-quiz surprise card ========== */
.fq-egg { margin: var(--sp-5, 1.5rem) 0 0; padding: .85rem 1.1rem; background: var(--olive); border-radius: var(--radius-sm); box-shadow: inset 4px 0 0 var(--brand); }
.fq-egg[hidden] { display: none; }
.fq-egg p { margin: 0; }
.fq-egg .fq-egg-t { font-size: 1.0625rem; }
.fq-egg .fq-egg-n { margin-top: .25rem; color: var(--muted); }

/* ========== Nov 10, 2026: valley flair, economics section only (city-records/numbers/, all 8 pages EN + ES) ==========
 * Scoped by the body class (page-city-records-numbers, page-city-records-numbers-<lesson>).
 * Colors: dry grass and rice green, both >= 4.5:1 on the page backgrounds in light and dark mode. */
body[class*="page-city-records-numbers"] {
  --econ-grass: #7a5a10; --econ-rice: #3d6a2a; --econ-furrow: #7a5a10;
}
@media (prefers-color-scheme: dark) {
  body[class*="page-city-records-numbers"] { --econ-grass: #e0c77a; --econ-rice: #a9d58a; --econ-furrow: #e0c77a; }
}
/* 1) a thin, faded strip of the existing valley art under the section title (replaces the header's corner strip on these pages) */
body[class*="page-city-records-numbers"] .page-head { padding-bottom: var(--sp-5); }
body[class*="page-city-records-numbers"] .page-head::after { content: none; }
body[class*="page-city-records-numbers"] .page-head h1::after {
  content: ""; display: block; height: 1.75rem; margin-top: .65rem; opacity: .6; pointer-events: none;
  background: var(--motif) left bottom / auto 100% repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 72%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
}
/* 2) lesson numbers in dry grass; the numbered list of lessons in rice green */
body[class*="page-city-records-numbers"] .lesson-n { color: var(--econ-grass); }
body.page-city-records-numbers .prose ol > li::marker { color: var(--econ-rice); font-weight: 700; }
/* 3) faint furrow lines above section headings and on dividers */
body[class*="page-city-records-numbers"] {
  --econ-furrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='8' viewBox='0 0 60 8'%3E%3Cg fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M0 1 Q15 -1 30 1 T60 1'/%3E%3Cpath d='M0 4 Q15 2 30 4 T60 4'/%3E%3Cpath d='M0 7 Q15 5 30 7 T60 7'/%3E%3C/g%3E%3C/svg%3E");
}
body[class*="page-city-records-numbers"] .prose h2::before {
  content: ""; display: block; height: 8px; margin-bottom: .55rem; opacity: .32; background: var(--econ-furrow);
  -webkit-mask: var(--econ-furrow-mask) left center / 60px 8px repeat-x; mask: var(--econ-furrow-mask) left center / 60px 8px repeat-x;
}
body[class*="page-city-records-numbers"] .prose hr {
  border: 0; height: 8px; margin: 2rem 0; opacity: .32; background: var(--econ-furrow);
  -webkit-mask: var(--econ-furrow-mask) left center / 60px 8px repeat-x; mask: var(--econ-furrow-mask) left center / 60px 8px repeat-x;
}
@media print { body[class*="page-city-records-numbers"] .page-head h1::after, body[class*="page-city-records-numbers"] .prose h2::before, body[class*="page-city-records-numbers"] .prose hr { display: none; } }
