/* TerraCivic site design: the one set of colors, type, header and footer every page uses (homepage, Money Map,
   candidates, races, companies, legislators, money, about). Page-specific styles build on these tokens and never set
   their own colors. Linked by a fixed name (no version), so a design change ships as this one file. */
:root {
  --paper:#f6f7f9; --paper-2:#eceef2; --card:#ffffff; --ink:#0b0d10; --ink-2:#2e333b; --muted:#59606a; --line:#0b0d1024;
  --dem:#2f55e8; --rep:#d23a46; --other:#7a4fa3;
  --spectral:linear-gradient(100deg,#5f93c9 0%,#6d7cf7 45%,#e2566a 100%);
  --sun:#0b0d10; --mint:#eceef2; --sky:#eceef2; --blush:#eceef2; --lilac:#eceef2;
  --btn-bg:#0b0d10; --btn-fg:#ffffff; --shadow:#0b0d10; --edge:#0b0d10; --panel:#0b0d10; --panel-fg:#ffffff; --panel-chip:#ffffff14;
  color-scheme:light;
}
/* Night: follows the device unless the visitor chose day; the header toggle sets data-theme and remembers it. */
:root[data-theme="dark"] {
  --paper:#07080b; --paper-2:#151820; --card:#0d0f14; --ink:#ffffff; --ink-2:#d3d8df; --muted:#9ba2ad; --line:#ffffff24;
  --dem:#6f8bff; --rep:#ff6b78; --other:#b48ad6;
  --sun:#ffffff; --mint:#151820; --sky:#151820; --blush:#151820; --lilac:#151820;
  --btn-bg:#ffffff; --btn-fg:#07080b; --shadow:#000000; --edge:#ffffff; --panel:#1b2130; --panel-fg:#f4f0df; --panel-chip:#ffffff12;
  color-scheme:dark;
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --paper:#07080b; --paper-2:#151820; --card:#0d0f14; --ink:#ffffff; --ink-2:#d3d8df; --muted:#9ba2ad; --line:#ffffff24;
    --dem:#6f8bff; --rep:#ff6b78; --other:#b48ad6;
    --sun:#ffffff; --mint:#151820; --sky:#151820; --blush:#151820; --lilac:#151820;
    --btn-bg:#ffffff; --btn-fg:#07080b; --shadow:#000000; --edge:#ffffff; --panel:#1b2130; --panel-fg:#f4f0df; --panel-chip:#ffffff12;
    color-scheme:dark;
  }
}
* { box-sizing:border-box }
html { scroll-behavior:smooth }
body { margin:0; font-family:Montserrat,Manrope,sans-serif; color:var(--ink); background:var(--paper) }
a { color:inherit; text-decoration:none }
:focus-visible { outline:3px solid var(--dem); outline-offset:2px; border-radius:6px }
.skip-link { position:absolute; left:-999px; top:8px; padding:10px 14px; background:var(--btn-bg); color:var(--btn-fg); border-radius:8px; z-index:99 }
.skip-link:focus { left:8px }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap }
.wrap { width:min(1200px, 100% - 48px); margin:0 auto }

/* Header: the name in wide-spaced capitals with the slogan beside it, links and controls at the right. */
.head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--line) }
.mast-word { display:flex; align-items:center; gap:12px; color:var(--ink) }
.wm-name { font-size:18px; font-weight:700; letter-spacing:.34em; line-height:1; white-space:nowrap }
.wm-slogan { padding-left:12px; border-left:1px solid var(--line-strong,#0b0d1050); color:var(--muted); font-size:11px; font-weight:500; letter-spacing:.15em; line-height:1.3 }
.wm-slogan span { display:inline; white-space:nowrap }
.nav { display:flex; align-items:center; gap:22px; width:auto; font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-2) }
.nav .links { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 22px }
.nav .tools { display:flex; align-items:center; gap:10px }
.nav .theme-toggle { order:-1 }
.nav .pill { order:1 }
.nav a:hover { color:var(--ink) }
.pill { display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:999px; border:1px solid var(--line-strong,#0b0d1050); background:transparent; color:var(--ink) !important; font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; white-space:nowrap }
.pill:hover { border-color:var(--ink) }
.theme-toggle { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; border:1px solid var(--line); background:var(--card); color:var(--ink); cursor:pointer; font-size:17px }
.theme-toggle:hover { border-color:var(--edge) }
.pill i { width:9px; height:9px; border-radius:50%; background:conic-gradient(var(--dem) 0 50%, var(--rep) 0) }

.foot { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; padding:30px 0 60px; border-top:1px solid var(--line); color:var(--muted); font-size:13px }
.foot nav { display:flex; flex-wrap:wrap; gap:8px 16px }
.foot a { font-weight:700; color:var(--ink-2) }

@media (max-width:900px) {
  .wrap { width:calc(100% - 32px) }
  .nav .hide-sm { display:none }
  .head { padding:10px 0 }
  .wm-name { font-size:15px }
  .wm-slogan { font-size:10px }
  .wm-slogan span { display:block }
  .theme-toggle, .pill { height:36px; box-sizing:border-box }
  .theme-toggle { width:36px; padding:0; font-size:16px }
  .pill { padding:0 14px; font-size:11px }
}
@media (max-width:520px) { .wm-slogan { display:none } .wm-name { font-size:14px; letter-spacing:.28em } }


/* Extra tokens the content pages use. Night values follow the same rule as the main palette. */
:root { --line-strong:#15171c33; --gold-ink:#7a5a00; --card-shadow:0 14px 34px #15171c12;
  --blue:var(--dem); --blue-deep:var(--dem); --red:var(--rep); --purple:var(--other); --muted-2:var(--muted) }
:root[data-theme="dark"] { --line-strong:#ffffff33; --gold-ink:#f1d79c; --card-shadow:0 14px 34px #00000059 }
@media (prefers-color-scheme:dark) { :root:not([data-theme="light"]) { --line-strong:#ffffff33; --gold-ink:#f1d79c; --card-shadow:0 14px 34px #00000059 } }

/* Content pages (candidates, races, companies, legislators, money, about): the same width, type and links. */
.page-width { width:min(1200px, 100% - 48px); margin-inline:auto }
@media (max-width:900px) { .page-width { width:calc(100% - 32px) } }
h1, h2, h3 { font-family:Montserrat,Sora,sans-serif; color:var(--ink) }
.kicker { margin:0 0 12px; color:var(--muted); font-size:12px; font-weight:800; letter-spacing:.16em; text-transform:uppercase }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:0 20px; border:2px solid var(--btn-bg); border-radius:12px; background:var(--btn-bg); color:var(--btn-fg) !important; font-size:15px; font-weight:800; text-decoration:none !important; cursor:pointer }
.button-quiet { background:transparent; color:var(--ink) !important; border-color:var(--line-strong) }
.text-link { color:var(--ink); font-weight:800; border-bottom:2px solid var(--sun) }
main a:not(.button):not(.pill) { text-decoration-color:var(--sun); text-decoration-thickness:2px }
.final-cta { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; margin-bottom:40px; padding:40px; border-radius:24px; background:var(--panel); color:var(--panel-fg) }
.final-cta h2 { color:var(--panel-fg); font-size:clamp(1.6rem,3vw,2.4rem); margin:6px 0 0 }
.final-cta .kicker { color:var(--panel-fg); opacity:.7 }
.final-cta .button { background:var(--btn-bg); border-color:var(--btn-bg); color:var(--btn-fg) !important }
.skip-link:focus { left:8px }

/* townglobe.com link: header on desktop only (the tagline joins it on wide screens); the footer link shows on desktop and on the FAQ. */
.tg-head { display: none; align-items: center; gap: 8px; margin: 0 18px 0 auto; color: var(--ink-2, var(--ink)); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; white-space: nowrap; text-decoration: none; }
.tg-head:hover { color: var(--ink); }
.tg-text { display: flex; flex-direction: column; gap: 4px; line-height: 1.2; }
.tg-head b { font-weight: 700; letter-spacing: 0.08em; }
.tg-head .tg-tag { display: none; text-transform: uppercase; color: var(--muted); font-size: 10px; letter-spacing: 0.06em; }
.tg-globe { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: 0.75; flex: 0 0 auto; }
@media (min-width: 901px) { .tg-head { display: inline-flex; } }
@media (min-width: 1100px) { .tg-head .tg-tag { display: block; } }
.tg-foot { display: none; }
@media (min-width: 901px) { .tg-foot { display: inline; } }
