/* Move Weight Foundation — shared Expose chapter stylesheet.
   Built from chapters/<key>.json by build.py; the accent placeholders are the
   only per-chapter difference. Edit this file, never a chapter's copy. */
:root {
  --bg:      #0c0f14;
  --bg2:     #131822;
  --bg3:     #1b2130;
  --bg4:     #232b3d;
  --border:  #2c3547;
  --border2: #3a4761;
  --text:    #eef2f8;
  --text2:   #a8b3c7;
  --text3:   #6f7d95;
  --accent:  #e03131;
  --accent2: #ff6b6b;
  --gold:    #f0a020;
  --green:   #02a95c;
  --blue:    #4c8dff;
  --water:   #22b8cf;
  --radius:  10px;
  --maxw:    1180px;
  --mono:    ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { margin: 0 0 1em; }

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* ── SKIP LINK ─────────────────────────────────────────── */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ── TOP BAR ───────────────────────────────────────────── */
.topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.topbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: baseline; gap: 2px;
  font-weight: 900; font-size: 1.12rem; letter-spacing: -.03em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .lo-1 { color: var(--accent); }
.logo .lo-2 { color: var(--text); }
.logo .lo-tld { color: var(--text3); font-weight: 700; font-size: .8em; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a {
  color: var(--text2); font-size: .855rem; font-weight: 600;
  padding: 7px 11px; border-radius: 7px; white-space: nowrap;
}
.nav a:hover { background: var(--bg3); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--bg4); color: var(--text); }
.nav a.nav-cta {
  background: var(--accent); color: #fff; font-weight: 800;
}
.nav a.nav-cta:hover { background: #c62828; color: #fff; }

.navtoggle {
  margin-left: auto; background: var(--bg3); color: var(--text);
  border: 1px solid var(--border); border-radius: 7px;
  padding: 7px 12px; font-size: .9rem; font-weight: 700; cursor: pointer;
  display: none;
}
@media (max-width: 900px) {
  .navtoggle { display: block; }
  .nav {
    display: none; width: 100%; margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding-top: 10px; border-top: 1px solid var(--border); margin-top: 8px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
}

/* ── DONATE BANNER ─────────────────────────────────────── */
.donate-banner {
  background: linear-gradient(135deg, #02a95c, #018a4a);
  color: #fff; text-align: center; padding: 13px 16px;
  font-size: .88rem; font-weight: 700;
  border-bottom: 1px solid #016b38;
}
.donate-banner a { color: #fff; text-decoration: underline; font-weight: 800; }
.donate-banner a:hover { color: #c8ffdf; }
.donate-banner .sep { opacity: .55; margin: 0 6px; }
@media (max-width: 640px) { .donate-banner .hide-sm { display: none; } }

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  padding: 54px 0 44px;
  background:
    radial-gradient(900px 380px at 18% -8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    radial-gradient(720px 340px at 88% 4%, rgba(34,184,207,.11), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .73rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent2);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 18px;
}
.hero p.lede { font-size: 1.1rem; color: var(--text2); max-width: 68ch; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 19px; border-radius: 8px;
  font-weight: 700; font-size: .92rem; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-red    { background: var(--accent); color: #fff; }
.btn-red:hover { background: #c62828; color: #fff; }
.btn-green  { background: var(--green); color: #fff; }
.btn-green:hover { background: #018a4a; color: #fff; }
.btn-ghost  { background: transparent; color: var(--text); border-color: var(--border2); }
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ── SECTIONS ──────────────────────────────────────────── */
section { padding: 46px 0; }
section + section { border-top: 1px solid var(--border); }
.section-head { margin-bottom: 26px; }
.section-head p { color: var(--text2); max-width: 72ch; margin: 0; }

/* ── STAT STRIP ────────────────────────────────────────── */
.stats {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.stat {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.stat .n {
  font-size: 1.75rem; font-weight: 900; letter-spacing: -.03em;
  font-family: var(--mono); line-height: 1.1;
}
.stat .l { font-size: .78rem; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-top: 5px; }
.stat .src { font-size: .72rem; margin-top: 8px; }
.stat.red .n    { color: var(--accent2); }
.stat.gold .n   { color: var(--gold); }
.stat.water .n  { color: var(--water); }
.stat.green .n  { color: #3ddc8a; }
.stat.blue .n   { color: var(--blue); }

/* ── CARDS ─────────────────────────────────────────────── */
.cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
}
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--border2); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text2); font-size: .93rem; flex: 1; }
.card .card-ico { font-size: 1.5rem; margin-bottom: 10px; }
.card .card-link { font-weight: 700; font-size: .9rem; margin-top: 6px; }

/* ── TIMELINE ──────────────────────────────────────────── */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline > li { position: relative; padding: 0 0 26px 34px; }
.timeline > li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg3); border: 3px solid var(--border2);
}
.timeline > li.hit::before  { border-color: var(--accent); background: var(--accent); }
.timeline > li.warn::before { border-color: var(--gold); background: var(--gold); }
.timeline .tl-date {
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
  color: var(--text3); text-transform: uppercase; letter-spacing: .05em;
}
.timeline .tl-title { font-weight: 800; font-size: 1.03rem; margin: 3px 0 5px; }
.timeline .tl-body { color: var(--text2); font-size: .93rem; }
.timeline .tl-body p:last-child { margin-bottom: 0; }

/* ── VOTE PILL ─────────────────────────────────────────── */
.vote {
  display: inline-block; font-family: var(--mono); font-weight: 800;
  font-size: .76rem; padding: 2px 9px; border-radius: 20px;
  background: var(--bg4); border: 1px solid var(--border2);
  color: var(--text2); margin-left: 8px; vertical-align: 2px;
}
.vote.split { background: rgba(240,160,32,.14); border-color: rgba(240,160,32,.45); color: var(--gold); }

/* ── CALLOUTS ──────────────────────────────────────────── */
.callout {
  border-left: 3px solid var(--border2);
  background: var(--bg2); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin: 20px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.red   { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.callout.gold  { border-left-color: var(--gold);   background: rgba(240,160,32,.07); }
.callout.water { border-left-color: var(--water);  background: rgba(34,184,207,.07); }
.callout .co-label {
  font-size: .72rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text3); display: block; margin-bottom: 5px;
}

blockquote {
  margin: 20px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-size: 1.06rem; color: var(--text);
}
blockquote cite { display: block; font-size: .85rem; color: var(--text3); font-style: normal; margin-top: 8px; }

/* ── SOURCE LINKS ──────────────────────────────────────── */
.src, .sources { font-size: .8rem; color: var(--text3); }
.src a, .sources a { color: var(--text2); border-bottom: 1px dotted var(--text3); text-decoration: none; }
.src a:hover, .sources a:hover { color: var(--accent2); border-bottom-color: var(--accent2); text-decoration: none; }
.sources { margin-top: 10px; }
.sources ul { margin: 6px 0 0; padding-left: 20px; }
.sources li { margin-bottom: 4px; }

/* ── TABLES ────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 540px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  background: var(--bg3); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text2); font-weight: 800; white-space: nowrap;
}
tbody tr:hover { background: var(--bg2); }
td.num { font-family: var(--mono); white-space: nowrap; }
td.up   { color: var(--accent2); font-family: var(--mono); white-space: nowrap; }
td.down { color: #3ddc8a; font-family: var(--mono); white-space: nowrap; }

/* ── FORMS ─────────────────────────────────────────────── */
.form-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.field { margin-bottom: 17px; }
.field label {
  display: block; font-size: .84rem; font-weight: 700;
  margin-bottom: 6px; color: var(--text);
}
.field .hint { font-size: .79rem; color: var(--text3); font-weight: 400; margin-top: 4px; }
.field .req { color: var(--accent2); }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 11px 13px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border2); border-radius: 8px;
  font-family: inherit; font-size: .94rem;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
select { cursor: pointer; }
.checkrow { display: flex; gap: 10px; align-items: flex-start; font-size: .89rem; color: var(--text2); }
.checkrow input { margin-top: 4px; flex-shrink: 0; }
.inline-form { display: flex; gap: 9px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 210px; }

.formmsg { padding: 13px 16px; border-radius: 8px; font-size: .9rem; font-weight: 600; margin-top: 16px; display: none; }
.formmsg.show { display: block; }
.formmsg.ok   { background: rgba(2,169,92,.13);  border: 1px solid rgba(2,169,92,.42);  color: #4ade9a; }
.formmsg.err  { background: color-mix(in srgb, var(--accent) 11%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); color: var(--accent2); }
.formmsg a { color: inherit; font-weight: 800; text-decoration: underline; }

/* ── BADGE ─────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 9px; border-radius: 20px;
  background: var(--bg4); border: 1px solid var(--border2); color: var(--text2);
}
.badge.email  { background: rgba(76,141,255,.14); border-color: rgba(76,141,255,.42); color: var(--blue); }
.badge.portal { background: rgba(240,160,32,.14); border-color: rgba(240,160,32,.42); color: var(--gold); }
.badge.mail   { background: color-mix(in srgb, var(--accent) 12%, transparent);  border-color: color-mix(in srgb, var(--accent) 42%, transparent);  color: var(--accent2); }
.badge.open   { background: rgba(2,169,92,.14);   border-color: rgba(2,169,92,.42);   color: #3ddc8a; }

/* ── NEWS LIST ─────────────────────────────────────────── */
.newslist { list-style: none; padding: 0; margin: 0; }
.newslist li {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
}
.newslist .nl-date { font-family: var(--mono); font-size: .78rem; color: var(--text3); white-space: nowrap; min-width: 84px; }
.newslist .nl-title { flex: 1; min-width: 240px; font-weight: 600; }
.newslist .nl-outlet { font-size: .76rem; color: var(--text3); white-space: nowrap; }

/* ── OUTLET GRID ───────────────────────────────────────── */
.outlets { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.outlet {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.outlet h3 { font-size: 1.05rem; margin-bottom: 2px; }
.outlet .o-meta { font-size: .78rem; color: var(--text3); margin-bottom: 10px; }
.outlet p { font-size: .88rem; color: var(--text2); margin-bottom: 10px; }

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 40px 0 26px; margin-top: 20px; font-size: .88rem;
}
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-col h4 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text3); margin-bottom: 11px;
}
.foot-col a { display: block; color: var(--text2); padding: 3px 0; font-size: .88rem; }
.foot-col a:hover { color: var(--accent2); }
.foot-bottom {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--text3); font-size: .8rem;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.foot-bottom a { color: var(--text2); }

/* ── UTIL ──────────────────────────────────────────────── */
.mono { font-family: var(--mono); }
.muted { color: var(--text2); }
.dim { color: var(--text3); }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.nowrap { white-space: nowrap; }
.grid2 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }

@media print {
  .topbar, .donate-banner, footer, .hero-btns, .navtoggle { display: none; }
  body { background: #fff; color: #000; }
}

/* ── CHAPTER BAR ───────────────────────────────────────────
   Shared Move Weight Foundation identity strip. This block is
   byte-identical on ExposeMiamiOK, ExposeSanAngelo and
   ExposeMississippi — only the .cur link differs per chapter. */
/* The masthead now reads "ExposeTexas.org  ·  Houston". The brand is the state
   site; the badge is which chapter you are standing in. Without it a reader on
   dallas.exposetexas.org and one on austin.exposetexas.org see the same header. */
.city-badge {
  margin-left: 10px; padding: 3px 10px; border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent2); font-weight: 800; font-size: .78rem;
  letter-spacing: .01em; white-space: nowrap;
}
@media (max-width: 560px) { .city-badge { display: none; } }

.small { font-size: .82rem; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent2); }
/* Long URLs printed under a link must wrap, or one govqa.us path pushes the
   whole card grid sideways on a phone. */
.card .mono { overflow-wrap: anywhere; }

/* ── VERDICT PANELS ────────────────────────────────────────
   Documented / Promised / Unanswered. The whole editorial stance
   of the chapter is that these three are never blurred together. */
.verdicts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.verdict {
  background: var(--bg2); border: 1px solid var(--border);
  border-top-width: 3px; border-radius: var(--radius); padding: 20px;
}
.verdict h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 4px; }
.verdict .v-sub { font-size: .8rem; color: var(--text3); margin-bottom: 14px; }
.verdict ul { list-style: none; padding: 0; margin: 0; }
.verdict li { padding: 9px 0; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text2); }
.verdict li:first-child { border-top: 0; }
.verdict li strong { color: var(--text); }
.verdict.documented { border-top-color: var(--green); }
.verdict.documented h3 { color: #3ddc8a; }
.verdict.promised   { border-top-color: var(--gold); }
.verdict.promised h3 { color: var(--gold); }
.verdict.unanswered { border-top-color: var(--accent); }
.verdict.unanswered h3 { color: var(--accent2); }

/* ── DOCUMENT QUOTE ────────────────────────────────────────
   Verbatim text lifted from a primary record. Deliberately looks
   like a document and not like site copy, so a reader can always
   tell our words from the City's. */
.docquote {
  background: #f7f5ef; color: #1a1a1a;
  border: 1px solid #d8d2c4; border-radius: var(--radius);
  padding: 20px 24px; margin: 20px 0;
  font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.6;
}
.docquote p { margin: 0 0 .7em; }
.docquote p:last-child { margin-bottom: 0; }
.docquote .dq-cite {
  display: block; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid #d8d2c4;
  font-family: var(--mono); font-size: .76rem; color: #5a5a5a;
}
.docquote .dq-cite a { color: #8a3b06; border-bottom: 1px dotted #8a3b06; }
.docquote mark { background: #ffe08a; padding: 0 2px; }

/* ── COMPARISON ROWS ───────────────────────────────────────
   "What they said" against "what the contract says". */
.compare { display: grid; gap: 0; margin: 22px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.compare-row:first-child { border-top: 0; }
.compare-cell { padding: 16px 18px; }
.compare-cell.said { background: var(--bg2); border-right: 1px solid var(--border); }
.compare-cell.signed { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.compare-cell .cc-label {
  font-size: .69rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text3); display: block; margin-bottom: 6px;
}
.compare-cell.signed .cc-label { color: var(--accent2); }
.compare-cell .cc-value { font-size: 1.02rem; font-weight: 700; }
.compare-cell .cc-note { font-size: .82rem; color: var(--text2); margin-top: 5px; }
@media (max-width: 700px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-cell.said { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* ── DOCUMENT LIBRARY ──────────────────────────────────────*/
.doclist { display: grid; gap: 14px; }
.doc {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.doc:hover { border-color: var(--border2); }
.doc-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.doc-date { font-family: var(--mono); font-size: .78rem; color: var(--text3); white-space: nowrap; }
.doc-title { font-weight: 800; font-size: 1.02rem; flex: 1; min-width: 220px; }
.doc-pages { font-family: var(--mono); font-size: .74rem; color: var(--text3); }
.doc p { font-size: .9rem; color: var(--text2); margin: 9px 0 0; }
.doc .doc-links { margin-top: 11px; display: flex; gap: 14px; flex-wrap: wrap; font-size: .84rem; font-weight: 700; }
.doc .doc-red {
  margin-top: 10px; font-size: .8rem; color: var(--gold);
  background: rgba(240,160,32,.08); border: 1px solid rgba(240,160,32,.3);
  border-radius: 7px; padding: 7px 11px;
}

/* ── BAR CHART (water use) ─────────────────────────────────*/
.barchart { margin: 20px 0; }
.barrow { display: grid; grid-template-columns: 122px 1fr 108px; gap: 12px; align-items: center; padding: 5px 0; }
.barrow .bl { font-family: var(--mono); font-size: .78rem; color: var(--text2); white-space: nowrap; }
.barrow .bt { background: var(--bg3); border-radius: 4px; height: 22px; overflow: hidden; }
.barrow .bf { height: 100%; background: linear-gradient(90deg, var(--water), #1098ad); border-radius: 4px; }
.barrow .bf.est { background: repeating-linear-gradient(45deg, #1098ad, #1098ad 6px, #0b7285 6px, #0b7285 12px); }
.barrow .bv { font-family: var(--mono); font-size: .8rem; color: var(--text); text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
  .barrow { grid-template-columns: 92px 1fr 88px; gap: 8px; }
  .barrow .bl, .barrow .bv { font-size: .72rem; }
}

/* ── PAGES ADDED WITH THE ELEVEN-CHAPTER EXPANSION ─────────────────────
   City Desk jump nav, the browser-side records letter builder, and the
   automation status table. Everything here inherits the chapter accent, so a
   Texas chapter and a Mississippi one are the same page in two colours. */

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jump a {
  font-size: .85rem; font-weight: 700; color: var(--text2);
  border: 1px solid var(--border); border-radius: 20px; padding: 5px 13px;
}
.jump a:hover {
  color: var(--text); background: var(--bg3);
  border-color: var(--border2); text-decoration: none;
}

/* Letter builder. Two columns on a desktop, stacked on a phone — and the output
   comes SECOND in the source order so a screen reader and a narrow screen both
   reach the form first, which is the half you have to interact with. */
.letter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .letter-grid { grid-template-columns: 1fr; } }

.letterform { display: flex; flex-direction: column; gap: 14px; }
.letterform label { display: flex; flex-direction: column; gap: 6px;
  font-weight: 700; font-size: .9rem; color: var(--text2); }
.letterform input[type=text], .letterform input[type=email], .letterform textarea {
  background: var(--bg2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; font: inherit; font-weight: 400;
}
.letterform input:focus, .letterform textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.letterform textarea { resize: vertical; min-height: 110px; }
.lf-checks { display: flex; flex-direction: column; gap: 8px; }
.letterform label.inline {
  flex-direction: row; align-items: flex-start; gap: 9px;
  font-weight: 500; color: var(--text2); font-size: .88rem;
}
.letterform label.inline input { margin-top: 3px; accent-color: var(--accent); }
.lf-status { font-size: .85rem; color: var(--accent2); min-height: 1.2em; }

.letterout {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px;
}
.letterout pre {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: .85rem; line-height: 1.62; color: var(--text2);
}

/* Numbered process list and the rules list used on About / The Question. */
.steps { margin: 18px 0; padding-left: 22px; }
.steps li { margin-bottom: 14px; color: var(--text2); }
.steps li strong { color: var(--text); }
.rules { list-style: none; padding: 0; margin: 18px 0; }
.rules li {
  position: relative; padding-left: 26px; margin-bottom: 14px; color: var(--text2);
}
.rules li::before {
  content: "\2014"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}
.rules li strong { color: var(--text); }

/* Automation table. A wide table has to scroll inside its own box; letting the
   page scroll sideways on a phone breaks every other section too. */
.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.datatable { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.datatable th, .datatable td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.datatable th {
  background: var(--bg2); color: var(--text3); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.datatable tr:last-child td { border-bottom: none; }

.status {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .78rem; font-weight: 800; white-space: nowrap;
  border: 1px solid transparent;
}
.st-ok      { color: #37b24d; border-color: rgba(55,178,77,.4);  background: rgba(55,178,77,.12); }
.st-warn    { color: #f59f00; border-color: rgba(245,159,0,.4);  background: rgba(245,159,0,.12); }
.st-bad     { color: #fa5252; border-color: rgba(250,82,82,.42); background: rgba(250,82,82,.12); }
.st-unknown { color: var(--text3); border-color: var(--border);  background: var(--bg3); }

/* Shared chapter-bar styles. Appended to every chapter's theme.css by
   build.py, and injected into Miami OK's hand-maintained stylesheet by
   provision.py --bars. Miami defines fewer custom properties than the
   template does, so every var() here carries a literal fallback. */

/* ── UNIVERSAL CHAPTER BAR ─────────────────────────────────────────────
   Sits above every chapter's own header and is byte-identical across all
   fourteen except for which link carries .cur. Generated by chapter_bar() in
   build.py; never hand-edit a chapter's copy.

   It is a disclosure rather than a row of pills because the row did not scale:
   Texas has seven chapters and the Foundation intends to cover fifty states.
   This is a fixed height whatever the count. <details> gives open/close,
   keyboard operation and a working no-JS fallback for free. */
.chapterbar {
  background: #080a0e;
  border-bottom: 1px solid var(--border, #2c3547);
  font-size: .78rem;
  position: relative;
  z-index: 120;               /* above the sticky topbar, or the panel is clipped */
}
.chapterbar-in {
  max-width: var(--maxw, 1180px); margin: 0 auto; padding: 6px 20px;
  display: flex; align-items: center; gap: 14px;
}

/* ── brand ── */
.cb-brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text3, #6f7d95); font-weight: 600; min-width: 0;
}
.cb-brand:hover { color: var(--text2, #a8b3c7); text-decoration: none; }
.cb-brand strong { color: var(--text2, #a8b3c7); font-weight: 800; }
.cb-brand:hover strong { color: var(--accent2, #ff922b); }
.cb-mark {
  flex: none; width: 20px; height: 20px; border-radius: 5px;
  background: var(--accent, #e8590c); color: #fff;
  font-size: .62rem; font-weight: 900; letter-spacing: -.02em;
  display: inline-flex; align-items: center; justify-content: center;
}
.cb-brand-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── picker ── */
.cb-picker { margin-left: auto; position: relative; }
.cb-picker > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border-radius: 20px;
  border: 1px solid var(--border, #2c3547); background: var(--bg2, #131822);
  color: var(--text, #eef2f8); font-weight: 700; white-space: nowrap;
}
.cb-picker > summary::-webkit-details-marker { display: none; }
.cb-picker > summary:hover { border-color: var(--border2, #3a4761); background: var(--bg3, #1b2130); }
.cb-picker > summary:focus-visible {
  outline: 2px solid var(--accent2, #ff922b); outline-offset: 2px;
}
.cb-here { color: var(--accent2, #ff922b); }
.cb-of { color: var(--text3, #6f7d95); font-weight: 600; }
.cb-chev {
  width: 0; height: 0; margin-left: 1px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--text3, #6f7d95);
  transition: transform .15s;
}
.cb-picker[open] > summary .cb-chev { transform: rotate(180deg); }

.cb-panel {
  position: absolute; right: 0; top: calc(100% + 7px); z-index: 130;
  background: var(--bg2, #131822); border: 1px solid var(--border2, #3a4761);
  border-radius: 12px; padding: 16px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .55);
  min-width: 520px;
}
.cb-cols { display: flex; gap: 26px; align-items: flex-start; }
.cb-cols section { display: flex; flex-direction: column; gap: 1px; min-width: 118px; }
.cb-state {
  display: flex; align-items: center; gap: 6px;
  color: var(--text, #eef2f8); font-weight: 800; font-size: .82rem;
  padding: 3px 7px; margin-bottom: 3px;
  border-bottom: 1px solid var(--border, #2c3547);
}
.cb-state:hover { color: var(--accent2, #ff922b); text-decoration: none; }
.cb-cols .cb-n {
  margin-left: auto; padding: 0 5px; border-radius: 9px;
  background: var(--bg3, #1b2130); color: var(--text3, #6f7d95);
  font-size: .72rem; font-weight: 700;
}
/* The reader's own state is tinted, so the panel answers "where am I" before
   it answers "where else can I go". */
.cb-cols section.cb-hi .cb-state {
  color: var(--accent2, #ff922b);
  border-bottom-color: color-mix(in srgb, var(--accent, #e8590c) 45%, transparent);
}
.cb-cols section > a:not(.cb-state) {
  color: var(--text2, #a8b3c7); padding: 3px 7px; border-radius: 6px; font-weight: 600;
}
.cb-cols section > a:not(.cb-state):hover {
  background: var(--bg3, #1b2130); color: var(--text, #eef2f8); text-decoration: none;
}
.cb-cols section > a.cur {
  background: color-mix(in srgb, var(--accent, #e8590c) 14%, transparent);
  color: var(--accent2, #ff922b); font-weight: 800;
}
.cb-cols section > a.cur::after { content: " ●"; font-size: .6em; vertical-align: middle; }
.cb-all {
  display: block; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border, #2c3547);
  color: var(--text2, #a8b3c7); font-weight: 700; font-size: .8rem;
}
.cb-all:hover { color: var(--accent2, #ff922b); text-decoration: none; }

@media (max-width: 700px) {
  .chapterbar-in { padding: 6px 14px; gap: 10px; }
  /* On a phone the standfirst is the first thing to go: the mark still says
     whose project this is, and the picker is the part you can act on. */
  .cb-brand-t { display: none; }
  .cb-of { display: none; }
  .cb-panel {
    min-width: 0;
    /* Pin to the viewport rather than the button, or a 3-column panel hangs
       off the right edge on a narrow screen. */
    position: fixed; left: 10px; right: 10px; top: 46px;
    max-height: 72vh; overflow-y: auto;
  }
  .cb-cols { flex-direction: column; gap: 14px; }
  .cb-cols section { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cb-chev { transition: none; } }
