/* Chicago Council Tracker — grassroots poster style.
   Chicago flag blue + red stars, sunflower yellow, deep ink navy, warm paper. */
:root {
  --bg: #fff6e6;          /* warm poster paper */
  --surface: #ffffff;
  --surface-2: #fdebc8;
  --text: #16123f;        /* ink navy */
  --muted: #5a5675;
  --border: #16123f;
  --ink: #16123f;
  --accent: #0a6ea8;      /* readable Chicago blue for links */
  --accent-soft: #d8f0fb;
  --chi-blue: #41b6e6;
  --chi-red: #e4002b;
  --sun: #ffc629;
  --pink: #ff6f91;
  --yea: #1a86c7;
  --nay: #e4002b;
  --absent: #9b98ad;
  --other: #e0b43c;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --radius: 18px;
  --seq-0: #fff1c9; --seq-1: #ffd36b; --seq-2: #7fcdee; --seq-3: #2f95cf; --seq-4: #16418a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110e33; --surface: #1c1850; --surface-2: #272265; --text: #fff6e6; --muted: #bdb8e0;
    --border: #fff6e6; --ink: #000; --accent: #7fd3f7; --accent-soft: #23306b;
    --yea: #4fb8f0; --nay: #ff4d6a; --absent: #77739a; --other: #e0b43c;
    --shadow: 4px 4px 0 var(--chi-blue); --shadow-lg: 6px 6px 0 var(--chi-blue);
    --seq-0: #2a2666; --seq-1: #3b4a9a; --seq-2: #2f8ac4; --seq-3: #6fcbef; --seq-4: #ffc629;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #110e33; --surface: #1c1850; --surface-2: #272265; --text: #fff6e6; --muted: #bdb8e0;
  --border: #fff6e6; --ink: #000; --accent: #7fd3f7; --accent-soft: #23306b;
  --yea: #4fb8f0; --nay: #ff4d6a; --absent: #77739a; --other: #e0b43c;
  --shadow: 4px 4px 0 var(--chi-blue); --shadow-lg: 6px 6px 0 var(--chi-blue);
  --seq-0: #2a2666; --seq-1: #3b4a9a; --seq-2: #2f8ac4; --seq-3: #6fcbef; --seq-4: #ffc629;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* faint halftone dots, like a screen-printed poster */
  background-image: radial-gradient(color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1.2px);
  background-size: 18px 18px;
}
a { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: "Bricolage Grotesque", Inter, sans-serif; line-height: 1.05; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 1.05rem; }
.vote-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.15; }
.display { font-size: clamp(2.4rem, 7vw, 4.6rem); text-transform: uppercase; line-height: .95; letter-spacing: -.02em; }
.display mark, h1 mark {
  background: var(--sun); color: #16123f; padding: 0 .12em; border-radius: 6px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  display: inline; font-style: italic;
}
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--sun); color: #16123f; padding: 8px; z-index: 2000; }
:focus-visible { outline: 3px solid var(--chi-red); outline-offset: 3px; }

/* Sticker badge */
.sticker {
  display: inline-block; transform: rotate(-3deg); margin-bottom: 14px;
  background: var(--chi-red); color: #fff; border: 2.5px solid var(--ink);
  padding: 6px 14px; border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  font: 800 .85rem/1 "Bricolage Grotesque", sans-serif; text-transform: uppercase; letter-spacing: .06em;
}

/* Header */
.site-header { background: #fff6e6; color: #16123f; position: sticky; top: 0; z-index: 1000; border-bottom: 3px solid #16123f; box-shadow: 0 4px 0 var(--chi-blue); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand img { display: block; height: 56px; width: auto; transition: transform .15s; }
.brand:hover img { transform: rotate(-2deg) scale(1.03); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff6e6; font: 800 1.35rem/1 "Bricolage Grotesque", sans-serif; text-transform: uppercase; letter-spacing: -.01em; }
.brand em { font-style: italic; color: var(--sun); }
.brand:hover { text-decoration: none; }
.stars { color: var(--chi-red); letter-spacing: -1px; font-size: 1rem; text-shadow: 0 0 1px #fff; }
.nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav a { white-space: nowrap; padding: 7px 12px; border-radius: 999px; color: #16123f; font-weight: 700; font-size: .88rem; border: 2px solid transparent; }
.nav a:hover { border-color: #16123f; text-decoration: none; }
.nav a.active { background: #16123f; color: #fff6e6; border-color: #16123f; }
.theme-toggle { border: 2px solid #16123f; background: transparent; color: #16123f;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
@media (max-width: 640px) {
  .brand img { height: 46px; }
  .nav { margin-left: 0; order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .theme-toggle { margin-left: auto; }
}

main, main.wrap { padding: 40px 16px 72px; min-height: 60vh; }
@media (max-width: 640px) { main, main.wrap { padding: 28px 16px 56px; } }
main:focus { outline: none; }
.loading, .error { padding: 48px 0; text-align: center; color: var(--muted); font-weight: 600; }

.site-footer { background: #16123f; color: #fff6e6; padding: 24px 0; font-size: .88rem; border-top: 4px solid var(--chi-red); }
.site-footer a { color: var(--sun); }
.site-footer .muted { color: #bdb8e0; }
.site-footer p { margin: 4px 0; }

/* Generic blocks */
.card { background: var(--surface); border: 2.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: 20px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .76rem; font-weight: 700; white-space: nowrap; border: 1.5px solid var(--border); }
.pill.blue { background: var(--accent-soft); color: var(--text); }
.pill.red { background: var(--chi-red); color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; border: 2.5px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--chi-red); color: #fff; }
input[type="search"], input[type="text"], select {
  font: inherit; font-weight: 500; color: var(--text); background: var(--surface); border: 2.5px solid var(--border);
  border-radius: 999px; padding: 9px 16px; min-width: 0;
}
input[type="checkbox"] { accent-color: var(--chi-red); width: 16px; height: 16px; vertical-align: -3px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.controls label { font-weight: 700; }
.controls input[type="search"] { flex: 1 1 200px; }
.back { display: inline-block; margin-bottom: 16px; font-weight: 800; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: end; margin-bottom: 24px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.hero p.lede { font-size: 1.1rem; margin: 10px 0 0; max-width: 58ch; }
.finder { padding: 20px; background: var(--chi-blue); color: #16123f; }
.finder h3 { font-size: 1.4rem; text-transform: uppercase; }
.finder a { color: #16123f; text-decoration: underline; font-weight: 800; }
.finder form { display: flex; gap: 8px; margin: 10px 0; }
.finder input { flex: 1; width: 100%; border-color: #16123f; background: #fff; color: #16123f; }
.finder .btn { border-color: #16123f; box-shadow: 3px 3px 0 #16123f; }
.finder .btn:not(.primary) { background: var(--sun); color: #16123f; }
.finder-result { min-height: 1.4em; font-size: .95rem; font-weight: 600; margin-top: 8px; }

/* Ticker */
.ticker { overflow: hidden; background: var(--sun); color: #16123f; border: 2.5px solid var(--border); border-radius: 999px;
  margin: 0 0 24px; box-shadow: var(--shadow); white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 18px; padding: 10px 18px; animation: ticker 60s linear infinite; }
.ticker-track .dup { display: inline-flex; gap: 18px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { color: #16123f; font-weight: 500; }
.ticker b { font-weight: 800; text-transform: uppercase; margin-right: 4px; }
.ticker span[aria-hidden] { color: var(--chi-red); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker { overflow-x: auto; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--surface); border: 2.5px solid var(--border); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.stat:nth-child(4n+1) { background: var(--chi-blue); color: #16123f; }
.stat:nth-child(4n+2) { background: var(--sun); color: #16123f; }
.stat:nth-child(4n+3) { background: var(--pink); color: #16123f; }
.stat:nth-child(4n+1) .sub, .stat:nth-child(4n+2) .sub, .stat:nth-child(4n+3) .sub,
.stat:nth-child(4n+1) .label, .stat:nth-child(4n+2) .label, .stat:nth-child(4n+3) .label { color: #16123f; }
.stat:nth-child(-n+3) a { color: #16123f; text-decoration: underline; }
.stat .label { color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.stat .value { font: 800 2rem/1.1 "Bricolage Grotesque", sans-serif; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--muted); font-size: .84rem; font-weight: 500; }

/* Council layout: map + grid */
.council { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .council { grid-template-columns: minmax(0, 1fr); } }
.map-panel { position: sticky; top: 84px; }
@media (max-width: 960px) { .map-panel { position: static; } }
.map { height: 620px; border-radius: var(--radius); border: 2.5px solid var(--border); background: var(--surface-2); z-index: 0; box-shadow: var(--shadow-lg); }
@media (max-width: 960px) { .map { height: 420px; } }
.legend { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.legend .sw { width: 22px; height: 12px; border-radius: 3px; display: inline-block; border: 1.5px solid var(--border); }
.leaflet-container { font: inherit; }
/* soften the basemap so ward colors pop */
.basemap { filter: grayscale(1) contrast(.9) brightness(1.05) opacity(.75); }
:root[data-theme="dark"] .basemap { filter: grayscale(1) invert(1) brightness(.8) opacity(.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .basemap { filter: grayscale(1) invert(1) brightness(.8) opacity(.6); } }
.leaflet-tooltip { font-size: .85rem; border: 2px solid #16123f; border-radius: 10px; box-shadow: 3px 3px 0 #16123f; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.alder-card { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border: 2.5px solid var(--border);
  border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s, background .12s; }
.alder-card:hover, .alder-card.hl { text-decoration: none; transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: 6px 6px 0 var(--chi-red); background: var(--surface-2); }
.alder-card img, .avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--chi-blue); flex: none; border: 2.5px solid var(--border); }
.avatar.tiny, img.tiny { border-radius: 50%; object-fit: cover; object-position: top; border-style: solid; border-color: var(--border); background: var(--chi-blue); flex: none; width: 28px; height: 28px; border-width: 1.5px; }
.alder-card .name { font: 800 1.02rem/1.15 "Bricolage Grotesque", sans-serif; }
.alder-card .meta { color: var(--muted); font-size: .8rem; font-weight: 500; margin-top: 3px; }
.ward-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 22px; padding: 0 6px;
  border-radius: 6px; background: var(--chi-red); color: #fff; font-weight: 800; font-size: .78rem; font-variant-numeric: tabular-nums; }

/* Profile */
.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-bottom: 28px; }
.profile-head > img, .profile-head > .avatar { width: 168px; height: 168px; border-radius: 24px; object-fit: cover; object-position: top;
  border: 3px solid var(--border); background: var(--chi-blue); box-shadow: 8px 8px 0 var(--sun), 8px 8px 0 2.5px var(--ink); transform: rotate(-2deg); }
@media (max-width: 560px) { .profile-head { grid-template-columns: 1fr; } .profile-head > img, .profile-head > .avatar { width: 120px; height: 120px; } }
.profile-head .kicker { display: inline-block; background: var(--chi-blue); color: #16123f; font-weight: 800; text-transform: uppercase; font-size: .8rem;
  letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--ink); margin-bottom: 10px; }
.profile-head .vote-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.15; }
.display { font-size: clamp(2.2rem, 6vw, 4rem); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: .9rem; }
.contact dt { color: var(--muted); font-weight: 700; }
.contact dd { margin: 0; overflow-wrap: anywhere; }
.ward-map { height: 260px; border-radius: 12px; border: 2.5px solid var(--border); margin-bottom: 14px; z-index: 0; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 2.5rem; gap: 8px; align-items: center; font-size: .88rem; font-weight: 600; }
.bar-row .track { height: 14px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 2px solid var(--border); }
.bar-row .fill { height: 100%; background: var(--chi-red); }
.bar-row:nth-child(even) .fill { background: var(--chi-blue); }
.bar-row .n { text-align: right; font-variant-numeric: tabular-nums; }
.bar-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; }
.tabs button { background: var(--surface); border: 2.5px solid var(--border); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 800;
  color: var(--text); cursor: pointer; white-space: nowrap; font-size: .88rem; }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.peer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.peer-list li { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.peer-list .pct { margin-left: auto; font: 800 1rem "Bricolage Grotesque", sans-serif; font-variant-numeric: tabular-nums; }
.notice { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; font-size: .9rem; border: 2px solid var(--border); }
.empty { color: var(--muted); font-style: italic; }

/* Lists of matters / votes */
.list { list-style: none; padding: 0; margin: 0; }
.list > li { padding: 14px 0; border-top: 2px dashed color-mix(in srgb, var(--text) 25%, transparent); }
.list > li:first-child { border-top: 0; }
.row-title { font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
a.row-title:hover { color: var(--accent); }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); font-size: .8rem; margin-top: 6px; font-weight: 500; }
.vote-chip { display: inline-block; min-width: 58px; text-align: center; padding: 2px 8px; border-radius: 999px; font-weight: 800; font-size: .74rem;
  color: #fff; text-transform: uppercase; letter-spacing: .04em; border: 1.5px solid var(--ink); }
.vote-Y { background: var(--yea); } .vote-N { background: var(--nay); } .vote-A { background: var(--absent); }
.vote-R, .vote-E, .vote-V { background: var(--other); color: #2a2205; }
.tally { display: flex; height: 12px; border-radius: 999px; overflow: hidden; width: 120px; background: var(--surface-2); border: 1.5px solid var(--border); }
.tally span { display: block; height: 100%; }

/* Vote detail */
.chamber { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.seat { aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800;
  color: #fff; border: 2px solid var(--ink); }
.seat:hover { transform: scale(1.12); text-decoration: none; }
.seat.vote- { background: var(--surface-2); color: var(--muted); }
.vote-groups { display: grid; gap: 14px; }
.vote-groups h3 { display: flex; align-items: center; gap: 8px; }
.name-list { display: flex; flex-wrap: wrap; gap: 6px; }
.name-list a { font-size: .85rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); border: 1.5px solid var(--border); }

/* Elections */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 20px 32px; }
.timeline li::before { content: "✶"; position: absolute; left: 0; top: -2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2.5px solid var(--border); color: var(--chi-red); font-size: .8rem; }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 3px; background: var(--border); opacity: .3; }
.timeline li:last-child::after { display: none; }
.timeline li.past::before { background: var(--chi-red); color: #fff; }
.timeline .date { font: 800 1.05rem "Bricolage Grotesque", sans-serif; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px 10px; border-top: 2px dashed color-mix(in srgb, var(--text) 20%, transparent); vertical-align: top; }
th { font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; border-top: 0; }
.table-wrap { overflow-x: auto; }
.prose { max-width: 70ch; }
.prose li { margin-bottom: 6px; }

html, body { overflow-x: hidden; }
@media (max-width: 480px) { .display { font-size: 2.3rem; } .stat .value { font-size: 1.6rem; } }

/* ---------- v2: committees, meetings, matter pages, accounts ---------- */
.lede { font-size: 1.08rem; margin: 10px 0 22px; }
.title-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.title-row h1 { flex: 1 1 420px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn.follow { background: var(--sun); color: #16123f; }
.btn.follow.on { background: var(--text); color: var(--bg); }
.btn.danger { background: transparent; color: var(--nay); border-color: var(--nay); box-shadow: 3px 3px 0 var(--nay); }
.btn.ghost { box-shadow: none; }
.btn.chosen-yes { background: var(--yea); color: #fff; }
.btn.chosen-no { background: var(--nay); color: #fff; }
.nav a.account-link { background: #ed0404; border-color: #16123f; color: #fff; box-shadow: 2px 2px 0 #16123f; }
.nav a.account-link.active { background: #16123f; color: #fff6e6; }
.small-sticker { font-size: .7rem; padding: 4px 10px; margin: 0; transform: rotate(-2deg); background: var(--chi-blue); color: #16123f; }
.narrow { max-width: 560px; margin: 0 auto; }
.signin form { display: grid; gap: 10px; margin: 18px 0 8px; }
.signin input[type="email"] { font: inherit; font-size: 1.05rem; padding: 12px 18px; border-radius: 999px; border: 2.5px solid var(--border); background: var(--surface); color: var(--text); }

/* AI summary */
.ai-card { margin-bottom: 20px; background: linear-gradient(135deg, var(--surface) 70%, var(--accent-soft)); }
.ai-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ai-summary { font-size: 1.15rem; line-height: 1.5; font-weight: 500; margin: 6px 0 10px; }
.ai-points { margin: 0 0 12px; padding-left: 20px; }
.ai-points li { margin-bottom: 4px; }
.ai-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ai-facts h3 { font-size: .95rem; margin-bottom: 4px; }
.ai-facts ul { margin: 0; padding-left: 18px; font-size: .9rem; }
.ai-facts p { margin: 0; font-size: .9rem; }

/* Documents */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-list a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 2px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); overflow-wrap: anywhere; }
.doc-list a:hover { background: var(--surface-2); text-decoration: none; }
.doc-icon { font-size: 1.3rem; line-height: 1; }

/* Residents' voice */
.vote-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.split { display: flex; height: 16px; border-radius: 999px; overflow: hidden; border: 2px solid var(--border); background: var(--surface-2); gap: 2px; }
.split-yes { background: var(--yea); } .split-no { background: var(--nay); }
.act-who { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.act-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.script { margin-top: 12px; font-size: .9rem; }
.script summary { cursor: pointer; font-weight: 700; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select { flex: 1 1 180px; }

/* Committees */
.committee-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.committee-card { display: grid; gap: 10px; padding: 16px; background: var(--surface); border: 2.5px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--text); transition: transform .12s, box-shadow .12s; }
.committee-card:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--chi-blue); }
.committee-card h3 { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.15rem; margin: 0; }
.cc-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cc-chair { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.cc-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.cc-stats b { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.05rem; }
.committee-card .track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1.5px solid var(--border); }
.committee-card .fill { display: block; height: 100%; background: var(--chi-red); }
.member-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.member-list .member { display: flex; gap: 10px; align-items: center; }
.member-list .pill { margin-left: auto; }

/* Meetings */
.meeting-list .row-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.meeting-list li.cancelled .row-title { color: var(--muted); }
.media-link { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 600; }
.media-link:hover { background: var(--sun); color: #16123f; text-decoration: none; }
.meeting-row { border-top: 2px dashed color-mix(in srgb, var(--text) 25%, transparent); padding-top: 10px; margin-top: 10px; }
.meeting-row:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.meeting-body { font-weight: 800; font-family: "Bricolage Grotesque", sans-serif; }
.meeting-row .list > li { padding: 4px 0 10px; }

/* Insights charts */
.chart-wrap { position: relative; }
.scatter { width: 100%; height: auto; display: block; }
.scatter .plot-bg { fill: var(--surface-2); opacity: .5; }
.scatter .hit { fill: transparent; cursor: pointer; }
.scatter .mark { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.scatter .dot-label { font-size: 9.5px; font-weight: 800; fill: var(--surface); text-anchor: middle; pointer-events: none; }
.scatter .dot:hover .mark, .scatter .dot:focus .mark, .scatter .dot.on .mark { fill: var(--chi-red); r: 13; }
.scatter .dot:focus { outline: none; }
.tip { position: absolute; background: var(--surface); color: var(--text); border: 2px solid var(--border); border-radius: 10px; padding: 6px 10px;
  font-size: .82rem; box-shadow: 3px 3px 0 var(--ink); pointer-events: none; max-width: 200px; }
.bar-row.backlog { color: var(--text); text-decoration: none; }
.bar-row.backlog:hover .lbl { text-decoration: underline; }
.bar-row .fill { position: relative; display: block; }
.bar-row .fill .old { position: absolute; right: 0; top: 0; bottom: 0; background: var(--chi-red); }
.bar-row.backlog .fill { background: var(--chi-blue); }

/* Keep the footer at the bottom of the window on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
