/* constitution.css V2026.11.16: forumplaybook.com/constitution/, the Nashville Forum Constitution Template.
   Loads after /interior.css (the top bar) and holds everything else this page needs: the Schematic Light ground
   (Linen page, white cards with 0.5px hairlines and square corners), the hero with the EO Nashville logo, the action
   bar (two-wave buttons, Teal then Blue), the compare block, the sticky "Jump to" column with the current topic
   marked in Burn, topic cards with Phosphor thin icons that draw in, tables that scroll or stack on a phone, the
   tinted callout boxes, fill-in blanks, signature lines, the credit and the site footer.
   Contrast, computed (tools/build-constitution.py prints the table on every build and stops on a fail):
   #0E0E0C on #FFFFFF 19.3:1, on #F0EBE0 16.3:1, on the tints #F6E9C9 16.0:1, #DCEBEA 15.7:1, #F8DFD3 15.2:1, #E8E2D6 15.0:1;
   #4A4038 on #FFFFFF 10.1:1, on #F0EBE0 8.5:1; #B83A14 labels on #FFFFFF 5.7:1; #FFFFFF on #2A6E9A 5.5:1 (button hover);
   #0E0E0C on #E8521A 5.2:1 (the first button); #F0EBE0 on #0E0E0C 16.3:1 (footer). */
:root {
  --pitch:#0E0E0C; --burn:#E8521A; --brick:#B83A14; --gold:#D4A832; --teal:#3A8A8A; --blue:#2A6E9A;
  --linen:#F0EBE0; --linen-dark:#E8E2D6; --line:#D4CCC0; --deep-dust:#4A4038; --white:#FFFFFF;
  --tint-gold:#F6E9C9; --tint-teal:#DCEBEA; --tint-burn:#F8DFD3;
  --ink-on-dark:#F0EBE0; --quiet-on-dark:#C9C2B6;
  --font-display:'Big Shoulders Display',sans-serif; --font-mono:'DM Mono',monospace; --font-body:'DM Sans',sans-serif;
  --spring:cubic-bezier(.2,.9,.3,1.3);
  --strip-h:0px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--linen); color: var(--pitch); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--white); padding: 8px; z-index: 200; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stampbar { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--linen); background: var(--pitch); padding: 8px 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.tick { position: relative; }
.tick::before { content: ''; position: absolute; left: -1px; top: -1px; width: 12px; height: 12px; border-left: 1px solid var(--burn); border-top: 1px solid var(--burn); pointer-events: none; }

/* ---------- hero ---------- */
.cx-hero { padding: 40px 0 28px; border-bottom: 0.5px solid var(--line); }
.cx-logo { display: block; width: 170px; height: auto; margin: 0 0 22px; }
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin: 0 0 10px; }
h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 8vw, 88px); line-height: .92; letter-spacing: -.5px; text-transform: uppercase; margin: 0 0 14px; text-wrap: balance; }
h1 b { color: var(--burn); font-weight: 900; display: block; }
.motto { font-size: 22px; font-weight: 500; margin: 0 0 10px; max-width: 760px; }
.lede { font-size: 18px; line-height: 1.55; color: var(--deep-dust); margin: 0 0 16px; max-width: 760px; }
.chip-ver { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--pitch); background: var(--white); border: 0.5px solid var(--line); padding: 6px 10px; }
.chip-ver svg { width: 18px; height: 18px; }

/* ---------- action bar ---------- */
.get { padding: 22px 0 6px; scroll-margin-top: calc(var(--ibar-h, 46px) + var(--strip-h) + 12px); }
.get-head { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--deep-dust); margin: 0 0 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
@keyframes cxWave { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.act { position: relative; max-width: 100%; overflow: hidden; display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; background: var(--white); color: var(--pitch); border: 1px solid var(--pitch); border-radius: 0; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .3s ease, box-shadow .5s ease; -webkit-appearance: none; appearance: none; }
.act::before, .act::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); }
.act::before { z-index: 0; background: var(--teal); }
.act::after { z-index: 1; background: var(--blue); }
.act:hover::before, .act:focus-visible::before { animation: cxWave .5s cubic-bezier(.4,0,.2,1) 0s forwards; }
.act:hover::after, .act:focus-visible::after { animation: cxWave .5s cubic-bezier(.4,0,.2,1) .32s forwards; }
.act:hover, .act:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(42,110,154,.45), 0 2px 8px rgba(42,110,154,.25); }
.act > span { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; transition: color .12s ease .32s; }
.act:hover > span, .act:focus-visible > span { color: var(--white); }
.act svg { width: 22px; height: 22px; flex: 0 0 auto; }
.act.primary { background: var(--burn); border-color: var(--burn); }
.act.is-copied { background: var(--tint-teal); border-color: var(--teal); }
.act.is-copied::before, .act.is-copied::after { animation: none; transform: translateX(-100%); }
.act.is-copied > span { color: var(--pitch); }
.act-note { font-size: 15px; color: var(--deep-dust); margin: 10px 0 0; min-height: 1.6em; }

/* ---------- compare block ---------- */
.compare { background: var(--tint-teal); border: 0.5px solid var(--line); padding: 20px 20px 18px; margin: 18px 0 8px; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .compare { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; } }
.compare-ic { display: block; width: 48px; height: 48px; color: var(--pitch); margin: 0 0 6px; }
.compare-ic svg { width: 48px; height: 48px; display: block; }
.compare h2 { font-family: var(--font-display); font-weight: 900; font-size: 34px; line-height: 1; text-transform: uppercase; margin: 0 0 8px; }
.compare p { margin: 0 0 10px; max-width: 560px; }
.prompt-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--deep-dust); margin: 0 0 6px; }
.prompt { margin: 0; background: var(--white); border: 0.5px solid var(--line); padding: 14px 16px; max-height: 300px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: 13px; line-height: 1.55; color: var(--pitch); }

/* ---------- the two columns ---------- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; padding-bottom: 40px; }
@media (min-width: 900px) { .shell { grid-template-columns: 260px minmax(0, 1fr); gap: 36px; } }
.toc { position: sticky; top: var(--ibar-h, 46px); z-index: 50; background: var(--linen); }
.toc .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--deep-dust); margin: 0 0 10px 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; color: var(--pitch); text-decoration: none; font-size: 15px; line-height: 1.3; border-left: 2px solid var(--line); transition: background .2s, border-color .2s; }
.toc a i { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--brick); min-width: 20px; }
.toc a:hover { background: var(--white); border-left-color: var(--deep-dust); }
.toc a.on { background: var(--white); border-left: 4px solid var(--burn); padding-left: 10px; font-weight: 500; }
.toc .grp { margin-top: 12px; }
@media (min-width: 900px) {
  .toc { top: calc(var(--ibar-h, 46px) + 16px); max-height: calc(100vh - var(--ibar-h, 46px) - 32px); overflow-y: auto; padding: 24px 0 24px; background: transparent; }
}
@media (max-width: 899px) {
  :root { --strip-h: 58px; }
  .toc { margin: 0 -16px; padding: 6px 0; border-bottom: 0.5px solid var(--line); border-top: 0.5px solid var(--line); }
  .toc .lbl { display: none; }
  .toc ol { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 0 16px; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc li { flex: 0 0 auto; }
  .toc .grp { margin-top: 0; }
  .toc a { border: 0.5px solid var(--deep-dust); background: var(--white); white-space: nowrap; font-size: 14px; padding: 6px 12px; }
  .toc a.on { border: 1px solid var(--burn); border-bottom: 4px solid var(--burn); padding-left: 12px; }
}

/* ---------- topics ---------- */
.topics { min-width: 0; padding-top: 22px; }
.topic { background: var(--white); border: 0.5px solid var(--line); padding: 22px 22px 16px; margin: 0 0 16px; scroll-margin-top: calc(var(--ibar-h, 46px) + var(--strip-h) + 14px); }
@media (max-width: 520px) { .topic { padding: 18px 14px 14px; } }
.topic-head { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 0.5px solid var(--line); }
.topic-ic { flex: 0 0 auto; width: 52px; height: 52px; color: var(--pitch); }
.topic-ic svg { width: 52px; height: 52px; display: block; }
.topic-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin: 0 0 2px; }
.topic h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 4vw, 38px); line-height: 1; text-transform: uppercase; margin: 0; text-wrap: balance; }
.topic h3 { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--deep-dust); margin: 22px 0 10px; }
.topic p { margin: 0 0 12px; max-width: 72ch; }
.topic p.lead { font-size: 20px; font-weight: 500; }
.topic ul { margin: 0 0 14px; padding-left: 22px; max-width: 72ch; }
.topic li { margin: 0 0 8px; }
.backtop { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--deep-dust); }

/* tables: multi-column tables scroll inside their own frame; two-column ones stack on a phone */
.tw { margin: 0 0 16px; border: 0.5px solid var(--line); background: var(--white); }
.tw.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.tw.wide table { min-width: 540px; }
caption { caption-side: top; text-align: left; padding: 12px 14px 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--deep-dust); }
th, td { text-align: left; padding: 10px 14px; border-top: 0.5px solid var(--line); vertical-align: top; }
thead th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--pitch); background: var(--linen-dark); border-top: 0; }
tbody th { font-weight: 700; width: 34%; }
td.n { font-family: var(--font-mono); font-size: 14px; white-space: nowrap; }
td.fine { font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
td.none { font-family: var(--font-mono); font-size: 14px; color: var(--deep-dust); }
td.ok { font-family: var(--font-mono); font-size: 14px; color: var(--deep-dust); }
.chip { display: inline-block; font-family: var(--font-mono); font-size: 13px; padding: 2px 8px; color: var(--pitch); }
.chip.miss { background: var(--tint-gold); }
.chip.out { background: var(--tint-burn); font-weight: 500; }
@media (max-width: 640px) {
  .tw.kv table, .tw.kv caption, .tw.kv tbody, .tw.kv tr, .tw.kv th, .tw.kv td { display: block; width: auto; }
  .tw.kv thead { display: none; }
  .tw.kv th { padding: 10px 14px 0; }
  .tw.kv td { border-top: 0; padding: 2px 14px 10px; }
}

/* blanks to fill in */
.blank { display: inline-block; min-width: 140px; height: 1.1em; border-bottom: 1px solid var(--pitch); vertical-align: -2px; }
.blank.short { min-width: 40px; }
td .blank { min-width: 160px; }

/* boxes: tinted color blocks */
.box { padding: 14px 18px; margin: 0 0 16px; border: 0.5px solid var(--line); border-left: 4px solid var(--gold); background: var(--tint-gold); }
.box .hd { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pitch); font-weight: 500; margin: 0 0 6px; }
.box p:last-child { margin-bottom: 0; }
.box.hard { background: var(--tint-burn); border-left-color: var(--brick); }
.box.gap { background: var(--tint-teal); border-left-color: var(--teal); }

/* the numbered ladder */
.ladder { counter-reset: step; list-style: none; padding: 0; margin: 0 0 16px; max-width: 72ch; }
.ladder li { counter-increment: step; position: relative; padding: 10px 0 10px 46px; border-top: 0.5px solid var(--line); margin: 0; }
.ladder li:first-child { border-top: 0; }
.ladder li::before { content: counter(step); position: absolute; left: 0; top: 10px; width: 30px; height: 30px; background: var(--tint-burn); color: var(--pitch); font-family: var(--font-mono); font-size: 14px; display: flex; align-items: center; justify-content: center; }

/* signatures */
.sig { border: 0.5px solid var(--line); padding: 4px 18px 12px; margin: 0 0 16px; }
.sigrow { display: flex; gap: 14px; align-items: flex-end; padding: 18px 0 6px; flex-wrap: wrap; }
.sigrow span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--deep-dust); }
.sigline { flex: 1 1 200px; min-width: 160px; border-bottom: 1px solid var(--pitch); height: 26px; }
.sigdate { flex: 0 0 130px; border-bottom: 1px solid var(--pitch); height: 26px; }

/* icon draw-in: the page script adds .cx-wait, then removes it when the topic scrolls into view */
.cx-wait .topic-ic svg { clip-path: inset(0 100% 0 0); }
.topic-ic svg { clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.65,0,.35,1) .1s; }

/* credit and footer */
.credit { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--deep-dust); text-align: center; padding: 18px 16px 26px; margin: 0; border-top: 0.5px solid var(--line); }
.credit a { color: var(--deep-dust); }
.cfoot { background: var(--pitch); color: var(--quiet-on-dark); padding: 28px 16px 36px; font-size: 14px; }
.cfoot .wrap > * { max-width: 1120px; }
.cfoot-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.cfoot-nav a { color: var(--linen); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.cfoot-nav a[aria-current="page"] { color: var(--burn); }
.cfoot p, .cfoot-line a, .cfoot-ver { color: var(--quiet-on-dark); }
.cfoot-ver { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topic-ic svg { transition: none; clip-path: none; }
  .act, .toc a { transition: none; }
  .act:hover, .act:focus-visible { transform: none; }
  .act:hover::before, .act:hover::after, .act:focus-visible::before, .act:focus-visible::after { animation-duration: .001s; animation-delay: 0s; }
  .act > span { transition: none; }
}
.act b { font-weight: 500; }
