/* Dear Alhambra. Inter Tight (headings) + Inter (text), self-hosted; navy on cool white. No third-party requests. */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/fonts/inter-tight.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/fonts/inter-italic.woff2") format("woff2"); }

:root {
  /* paper: cool off-white, white cards */
  --paper: #f7f8fa;
  --paper-2: #eef1f5;
  --card: #ffffff;
  /* ink: blue-black */
  --ink: #1c2430;
  --ink-2: #4b5563;
  --ink-3: #6e7a89;
  --rule: #e1e6ec;
  --rule-2: #cfd6de;
  /* accent: the original navy */
  --accent: #1f4e79;
  --accent-dark: #173b5c;
  --accent-2: #e8eef5;
  --olive: #3f6b4e;
  --olive-2: #e6efe8;
  --ok: #2f6b3a;
  --ok-2: #e6f1e7;
  --warn: #8a5a00;
  --warn-2: #f7efdc;
  --bad: #8f2b2b;
  --bad-2: #f6e6e6;
  --serif: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --label: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* header: letterhead stripe + rule */
.top { border-top: 5px solid var(--accent); border-bottom: 1px solid var(--rule); background: var(--paper); }
.top .wrap { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding-top: 18px; padding-bottom: 14px; }
.brand { font-family: var(--serif); font-weight: 800; font-size: 24px; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand em { font-style: normal; font-weight: 800; color: var(--accent); }
nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 500; font-size: 15px; }
nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
nav a:hover { color: var(--accent-dark); }
.langs-nav { display: flex; gap: 6px; align-items: center; margin: 0 0 14px; font-size: 14px; }
.langs-nav a, .langs-nav span { padding: 4px 11px; border-radius: 999px; text-decoration: none; color: var(--ink-2); border: 1px solid var(--rule); }
.langs-nav a:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.langs-nav span[aria-current="page"] { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 600; }

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 800; }
h1 { font-size: clamp(32px, 6vw, 42px); line-height: 1.12; letter-spacing: -0.02em; margin: 40px 0 16px; }
h2 { font-size: clamp(23px, 4.2vw, 28px); line-height: 1.2; letter-spacing: -0.01em; margin: 48px 0 12px; }
h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; }
p { margin: 0 0 16px; }
.lede { font-size: 21px; line-height: 1.5; color: var(--ink-2); }
.next { font-size: 15.5px; line-height: 1.5; color: var(--ink-3); margin: 12px 0 0; }
.next strong { color: var(--ink-2); font-weight: 600; }
.next + .help { margin-top: 10px; }
.small { font-size: 15px; color: var(--ink-3); }
.muted { color: var(--ink-3); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }
ul.plain { padding-left: 20px; }
ul.plain li { margin-bottom: 10px; }
ul.plain li::marker { color: var(--accent); }
.kicker { text-transform: uppercase; letter-spacing: 0.09em; font-size: 12.5px; font-weight: 600; color: var(--accent); margin: 34px 0 6px; }
blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-2); font-family: var(--serif); font-size: 20px; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 6px; }
.stat { background: var(--paper-2); border-radius: 12px; padding: 16px 16px 14px; }
.stat b { display: block; font-family: var(--serif); font-weight: 800; font-size: 32px; line-height: 1; margin-bottom: 8px; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--ink-2); line-height: 1.35; display: block; }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr 1fr; } .stat:last-child { grid-column: span 2; } }

/* letter form */
.letter { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 28px 24px 24px; margin: 28px 0 8px; box-shadow: 0 1px 0 rgba(20,30,50,.04), 0 14px 34px -26px rgba(20,30,50,.35); }
.letter .salute { font-family: var(--serif); font-weight: 800; font-size: 28px; margin: 0 0 14px; color: var(--accent); }
label { display: block; font-weight: 600; font-size: 16px; margin: 20px 0 6px; }
label .opt { font-weight: 400; color: var(--ink-3); }
.help { font-size: 14.5px; color: var(--ink-3); margin: -2px 0 8px; line-height: 1.45; }
.help.langs { margin-top: 8px; }
.help.langs span { display: inline-block; margin-top: 4px; }
textarea, input[type=text], input[type=email], select {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1px solid var(--rule-2); border-radius: 8px; padding: 12px 12px;
}
textarea { min-height: 160px; resize: vertical; font-size: 17px; line-height: 1.55; }
textarea::placeholder, input::placeholder { color: #98a2ae; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 16px; margin-top: 16px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); }
.radios { display: flex; gap: 8px; flex-wrap: wrap; }
.radios label { margin: 0; font-weight: 500; font-size: 15.5px; border: 1px solid var(--rule-2); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.radios input { position: absolute; opacity: 0; width: 0; height: 0; }
.radios label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.radios label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary {
  display: inline-block; width: 100%; margin-top: 24px; font: inherit; font-weight: 700; font-size: 18px;
  background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 15px 18px; cursor: pointer;
}
button.primary:hover { background: var(--accent-dark); }
button.primary:disabled { opacity: .6; cursor: default; }
button.secondary { font: inherit; font-size: 16px; background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 10px; padding: 11px 16px; cursor: pointer; margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 10px; padding: 14px 16px; margin-top: 18px; font-size: 16.5px; }
.notice.ok { background: var(--ok-2); color: var(--ok); }
.notice.warn { background: var(--warn-2); color: var(--warn); }
.notice.bad { background: var(--bad-2); color: var(--bad); }
.notice p { margin: 0 0 8px; } .notice p:last-child { margin: 0; }
.done { text-align: center; padding: 26px 8px 10px; }
.done .big { font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
.privacy { font-size: 14.5px; color: var(--ink-3); margin-top: 16px; line-height: 1.5; }

/* candidates */
.cands { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 560px) { .cands { grid-template-columns: 1fr; } }
.cand { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; }
.cand .photo { display: block; width: 100%; max-width: 480px; height: auto; aspect-ratio: 1 / 1; border-radius: 12px; object-fit: cover; border: 1px solid var(--rule); background: var(--rule); margin: 0 0 14px; }
.cand h3 { margin: 0 0 8px; font-size: 26px; line-height: 1.15; }
.cand .role { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin-bottom: 10px; }
.cand .role p { margin: 0 0 8px; }
.cand .role p:last-child { margin-bottom: 0; }
.cand .role.clamp { display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.cand .more { background: none; border: 0; padding: 0; margin: 0 0 10px; font: inherit; font-size: 14.5px; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.cand .more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.cand .pending { font-size: 14.5px; color: var(--ink-3); border-top: 1px dashed var(--rule-2); padding-top: 10px; margin-top: 10px; }

/* dates */
.dates { list-style: none; padding: 0; margin: 18px 0; }
.dates li { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--rule); }
.dates li:last-child { border-bottom: 1px solid var(--rule); }
.dates .d { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--accent-dark); }
.dates .d small { display: block; font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }
.dates .t b { display: block; font-weight: 700; }
.dates .t span { color: var(--ink-2); font-size: 15.5px; }

/* footer */
footer { margin-top: 64px; border-top: 1px solid var(--rule); background: var(--paper-2); padding: 28px 0 44px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
footer p { margin-bottom: 8px; }
footer strong { font-weight: 800; font-size: 15px; color: var(--ink); }
.cta-inline { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 12px 18px; border-radius: 10px; font-weight: 700; margin-top: 6px; }
.cta-inline:hover { background: var(--accent-dark); color: #fff; }

/* district page */
.d1map { width: 100%; max-width: 520px; height: auto; display: block; margin: 8px auto 4px; }
.mapnote { font-size: 14px; color: var(--ink-3); text-align: center; margin-bottom: 26px; }
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 8px; }
@media (max-width: 600px) { .areas { grid-template-columns: 1fr; } }
.area { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 16px 14px; border-top: 4px solid var(--c); }
.area h3 { margin: 0 0 2px; font-size: 22px; }
.area h3 a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.area h3 a:hover { color: var(--accent-dark); }
.area h3 .arrow { font-size: 24px; line-height: 1; color: var(--ink-3); margin-left: 2px; }
.area h3 a:hover .arrow { color: var(--accent-dark); transform: translateX(2px); }
.area h3 b { display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 50%; background: var(--c); color: #fff; font-family: var(--label); font-size: 15px; font-weight: 600; margin-right: 8px; vertical-align: 3px; }
.area .where { color: var(--ink-2); font-size: 15px; margin-bottom: 10px; }
.area dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0 0 10px; font-size: 15px; }
.area dt { color: var(--ink-3); } .area dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.area .letters { font-size: 15px; background: var(--paper-2); border-radius: 8px; padding: 8px 10px; margin: 6px 0 10px; }
.area .letters b { font-family: var(--serif); font-weight: 800; font-size: 22px; margin-right: 6px; color: var(--accent-dark); }
.area .heard { font-size: 14.5px; color: var(--ink-2); border-top: 1px dashed var(--rule-2); padding-top: 10px; margin: 0; line-height: 1.5; }
.area .heard em { color: var(--ink-3); }
.fig { margin: 22px 0 8px; }
.fig .cap { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 170px 1fr 64px; align-items: center; gap: 10px; font-size: 15px; }
@media (max-width: 480px) { .bar { grid-template-columns: 120px 1fr 56px; font-size: 14px; } }
.bar .track { height: 18px; background: var(--paper-2); border-radius: 0 4px 4px 0; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.bar.muted .fill { background: #9fb3c8; }
.bar .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 4px; }
@media (max-width: 480px) { .hero { grid-template-columns: 1fr; } }
.hero .stat b { font-size: 38px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0 4px; }
table.data th, table.data td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data th { color: var(--ink-3); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
details.tbl summary { cursor: pointer; color: var(--accent); font-size: 15px; margin-top: 8px; }

/* from the record */
.rec { border-left: 3px solid var(--accent); padding: 2px 0 2px 18px; margin: 22px 0 26px; }
.rec .kicker { margin: 0 0 4px; }
.rec h3 { margin: 0 0 8px; font-size: 21px; }
.rec p { margin-bottom: 10px; }
.rec .cite { font-size: 14px; color: var(--ink-3); margin: 0; line-height: 1.45; }

.area .hoods { font-size: 15px; font-weight: 700; color: var(--ink); margin: -4px 0 10px; }
.area .topics { font-size: 14.5px; color: var(--ink-2); border-top: 1px dashed var(--rule-2); padding-top: 10px; margin: 0; line-height: 1.5; }
.area .topics em { color: var(--ink-3); }
.d1map path[data-area] { transition: fill-opacity .6s ease; }

/* stay in the loop (footer) */
.loop { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--rule-2); }
.loop-title { font-weight: 800; font-size: 17px; color: var(--ink); margin: 0 0 4px; }
.loop-help { margin: 0 0 10px; }
.loop-row { display: grid; grid-template-columns: 1.4fr 1.4fr auto; gap: 8px; }
@media (max-width: 600px) { .loop-row { grid-template-columns: 1fr; } }
.loop input[type=email], .loop select { font-size: 15px; padding: 10px 12px; }
.loop button { font: inherit; font-weight: 700; font-size: 15px; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer; }
.loop button:hover { background: var(--accent-dark); }
.loop button:disabled { opacity: .6; }
.loop-msg { margin: 8px 0 0; color: var(--ink); font-weight: 600; }

/* area pages */
.jump { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; background: var(--paper); border-bottom: 1px solid var(--rule); margin: 14px -16px 18px; padding: 8px 16px; font-size: 13.5px; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 5px 11px; border-radius: 999px; border: 1px solid transparent; border-bottom: 1px solid transparent; }
.jump a[aria-current="true"] { background: var(--accent-2); color: var(--accent-dark); }
.jump a:hover { color: var(--accent-dark); border-color: var(--rule-2); }
.zone-links.top { margin: 4px 0 0; }
.zone h2[id], details.sec[id] { scroll-margin-top: 64px; }
.zone-links a[aria-current="page"] { background: var(--c); color: #fff; border-color: var(--c); }
.zone-links a[aria-current="page"] b { background: #fff; color: var(--c); }
details.sec { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 0 18px; margin: 16px 0; }
details.sec summary { list-style: none; cursor: pointer; padding: 16px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
details.sec summary::-webkit-details-marker { display: none; }
details.sec summary .h { font-family: var(--serif); font-weight: 800; font-size: clamp(21px, 3.8vw, 25px); letter-spacing: -0.01em; }
details.sec summary .sum { grid-column: 1; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
details.sec summary::after { content: "+"; grid-column: 2; grid-row: 1 / span 2; font-family: var(--label); font-size: 26px; font-weight: 300; color: var(--ink-3); width: 32px; height: 32px; border: 1px solid var(--rule-2); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
details.sec[open] summary::after { content: "–"; }
details.sec[open] summary { border-bottom: 1px solid var(--rule); }
details.sec > :not(summary) { }
details.sec > .cmps, details.sec > .stats, details.sec > h3, details.sec > p { }
details.sec > *:last-child { margin-bottom: 18px; }
.hist p { font-size: 17px; line-height: 1.6; }
.cite { font-size: 12px; color: var(--ink-3); text-decoration: none; white-space: nowrap; vertical-align: 1px; }
.cite:hover { color: var(--accent-dark); }
.dock { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px 6px; margin: 12px 0; }
.dock-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.dock .status { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--accent); background: var(--accent-2); padding: 3px 9px; border-radius: 999px; }
.dock p { margin: 8px 0; }
.zone-head { display: grid; grid-template-columns: 1fr 240px; gap: 8px 36px; align-items: start; }
.zone-head .kicker { margin-top: 34px; }
.zone-fig { margin: 44px 0 0; }
.zone-fig .zone-map { max-width: 240px; margin: 0; }
.zone-fig figcaption { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 6px; }
.zone-fig figcaption a { color: inherit; }
.zone .kicker a { color: inherit; text-decoration: none; }
.zone h1 { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.zone h1 .dot { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--c); color: #fff; font-family: var(--label); font-size: 20px; font-weight: 600; flex: none; }
.zone .hoods { font-size: 16px; font-weight: 700; color: var(--ink-2); margin: 0 0 14px; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stat.live b { color: var(--c, var(--accent-dark)); }
.topics-box { font-size: 15px; color: var(--ink-2); background: var(--paper-2); border-radius: 10px; padding: 12px 14px; margin: 14px 0 0; line-height: 1.5; min-height: 1em; }
.topics-box:empty { display: none; }
.topics-box em { color: var(--ink-3); }
.cmps { display: grid; gap: 14px; margin: 14px 0 6px; }
.cmp { display: grid; grid-template-columns: 200px 1fr; gap: 6px 18px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cmp:last-child { border-bottom: 0; }
.cmp-label { font-size: 15px; font-weight: 600; padding-top: 1px; }
.cmp-note { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.cmp-bars { display: grid; gap: 4px; }
.cmp-bar { display: grid; grid-template-columns: 78px 1fr 46px; align-items: center; gap: 8px; font-size: 13.5px; }
.cmp-bar .tag { color: var(--ink-3); }
.cmp-bar .track { height: 12px; background: var(--paper-2); border-radius: 0 3px 3px 0; overflow: hidden; }
.cmp-bar .fill { height: 100%; border-radius: 0 3px 3px 0; }
.cmp-bar.here .fill { background: var(--c, var(--accent)); }
.cmp-bar.here .tag, .cmp-bar.here .n { color: var(--ink); font-weight: 700; }
.cmp-bar.d1 .fill { background: #8fa3b8; }
.cmp-bar.city .fill { background: #c5cfda; }
.cmp-bar .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.zone-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; }
.zone-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14.5px; font-weight: 600; }
.zone-links a b { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: var(--c); color: #fff; font-family: var(--label); font-size: 13px; }
.zone-links a:hover { border-color: var(--c); }
.area .more { margin: 10px 0 0; font-size: 14.5px; }
.area .more a { color: var(--accent-dark); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 640px) {
  .zone-head { grid-template-columns: 1fr; }
  .jump { margin-left: -16px; margin-right: -16px; }
  .zone-fig { margin: 4px 0 0; }
  .zone-fig .zone-map { max-width: 200px; margin: 0 auto; }
  .stats.four { grid-template-columns: 1fr 1fr; }
  .cmp { grid-template-columns: 1fr; gap: 6px; }
  .cmp-bar { grid-template-columns: 70px 1fr 42px; }
}
