/* =====================================================================
   StandLocal — "Town Hall" palette
   Civic paper, deep commons green, marigold signal.
   ===================================================================== */
:root {
  --paper:      #F5F1E8;
  --paper-2:    #ECE6D8;
  --card:       #FFFDF8;
  --ink:        #1C2826;
  --ink-2:      #44524F;
  --ink-3:      #6E7976;
  --rule:       #DAD2C1;
  --rule-2:     #C9BFA9;
  --brand:      #24584A;   /* commons green */
  --brand-2:    #1A4237;
  --brand-tint: #DCE8E1;
  --signal:     #E6A93A;   /* marigold */
  --signal-2:   #C98A19;
  --signal-tint:#FBEFD6;
  --danger:     #A63D33;
  --ok:         #2B7A55;
  --lit:        #6B4E9B;   /* litigation badge */

  --side-oppose:      #A6473C;
  --side-support:     #2B6F9E;
  --side-alternative: #7A6A2A;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(28,40,38,.04), 0 6px 18px -10px rgba(28,40,38,.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 2000; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.wrap.mid { max-width: 960px; }
.pad-y { padding-top: 48px; padding-bottom: 56px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.kicker { font: 700 .74rem/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--brand); margin-bottom: .9rem; display: inline-flex; gap: .5em; align-items: center; }
.kicker::before { content: ''; width: 18px; height: 2px; background: var(--signal); }
.center { text-align: center; }
.inline { display: inline; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font: 600 .95rem/1 var(--sans); padding: .78em 1.2em; border-radius: 999px;
  background: var(--brand); color: #fff; border: 1.5px solid var(--brand);
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--signal-2); border-color: var(--signal-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--card); color: var(--ink); border-color: var(--ink-3); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-sm { font-size: .85rem; padding: .55em .95em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; }
.linklike:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Masthead ---------- */
.masthead { background: var(--card); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 1000; }
.masthead::after { content: ''; display: block; height: 3px; background: linear-gradient(90deg, var(--brand) 0 70%, var(--signal) 70% 100%); }
.masthead-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-word { font: 600 1.35rem/1 var(--serif); letter-spacing: -.02em; }
.brand-word b { font-weight: 700; color: var(--brand); }
.sitenav { display: flex; align-items: center; gap: 4px; flex: 1; }
.sitenav > a, .sitenav .linklike { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.sitenav > a:hover { background: var(--paper); color: var(--ink); }
.sitenav > a.on { color: var(--brand); box-shadow: inset 0 -2px 0 var(--signal); border-radius: 0; }
.sitenav > a.btn { color: #fff; padding: .55em 1em; border-radius: 999px; margin-left: 4px; }
.nav-spacer { flex: 1; }
.nav-user { display: inline-flex !important; align-items: center; gap: 8px; }
.bell { font-style: normal; background: var(--signal); color: var(--ink); font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .sitenav { display: none; position: absolute; top: 67px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .sitenav.open { display: flex; }
  .sitenav > a.on { box-shadow: inset 3px 0 0 var(--signal); }
  .nav-spacer { display: none; }
}

/* ---------- Flash ---------- */
.flashes { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 8px; border: 1px solid; font-weight: 500; }
.flash-success { background: #E3F1E8; border-color: #B8DCC6; color: #1E5A3B; }
.flash-error   { background: #F8E4E1; border-color: #E8BDB7; color: #7C2A22; }
.flash-info    { background: var(--signal-tint); border-color: #EFD39A; color: #6A4A0C; }

/* ---------- Pills, badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 700 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px 6px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 80%, black); border: 1px solid color-mix(in srgb, var(--c) 35%, white); white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pill-lit { --c: var(--lit); }
.side { display: inline-block; font: 700 .7rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; padding: 5px 8px; border-radius: 4px; color: #fff; }
.side-oppose { background: var(--side-oppose); }
.side-support { background: var(--side-support); }
.side-alternative { background: var(--side-alternative); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--paper-2); border-radius: 4px; padding: 3px 8px; }
.role { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; background: var(--paper-2); color: var(--ink-2); }
.role-admin, .role-moderator { background: var(--brand); color: #fff; }
.role-trusted { background: var(--brand-tint); color: var(--brand-2); }
.local { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; background: var(--signal-tint); color: #7a5410; }

.avatar { --h: 160; display: inline-grid; place-items: center; border-radius: 50%; background: hsl(var(--h) 32% 38%); color: #fff; font-weight: 700; flex: none; font-family: var(--sans); }
.avatar-sm { width: 26px; height: 26px; font-size: .78rem; }
.avatar-md { width: 40px; height: 40px; font-size: 1rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.3rem; }

/* ---------- Cards & panels ---------- */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 16px; }
.panel-title h2, .panel-title h3 { margin: 0; }
.empty { padding: 24px; text-align: center; color: var(--ink-3); border: 1px dashed var(--rule-2); border-radius: var(--radius); background: rgba(255,255,255,.4); }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--ink-3); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--rule-2); border-radius: 8px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
.form-card { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0; }
details.disclose { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
details.disclose > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.disclose > summary::after { content: '+'; color: var(--brand); font-size: 1.2rem; line-height: 1; }
details.disclose[open] > summary::after { content: '–'; }
details.disclose > div { padding: 0 18px 18px; }

/* ---------- Home: hero + map shell ---------- */
.hero { padding: 40px 0 28px; border-bottom: 1px solid var(--rule); background:
  radial-gradient(circle at 92% 10%, rgba(230,169,58,.18), transparent 40%),
  repeating-linear-gradient(0deg, transparent 0 31px, rgba(36,88,74,.05) 31px 32px); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.hero h1 { max-width: 18ch; }
.hero .stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.hero .stat { padding: 14px 4px 0; }
.hero .stat b { display: block; font: 600 2rem/1 var(--serif); color: var(--brand); }
.hero .stat span { font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 24px; } }

.mapshell { display: grid; grid-template-columns: 380px 1fr; height: calc(100vh - 67px); min-height: 560px; border-bottom: 1px solid var(--rule); }
.mapside { background: var(--card); border-right: 1px solid var(--rule); display: flex; flex-direction: column; min-height: 0; }
.mapside-head { padding: 16px; border-bottom: 1px solid var(--rule); }
.mapside-head .row { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 600 .78rem/1 var(--sans); padding: 7px 10px; border-radius: 999px; border: 1px solid var(--rule-2); background: #fff; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; user-select: none; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.off { opacity: .45; text-decoration: line-through; }
.filter-label { font: 700 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 14px 0 8px; }
.caselist { overflow-y: auto; flex: 1; padding: 8px; }
.casecard { display: block; padding: 14px; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; color: var(--ink); cursor: pointer; }
.casecard + .casecard { border-top-color: var(--rule); border-top-left-radius: 0; border-top-right-radius: 0; }
.casecard:hover, .casecard.active { background: var(--paper); border-color: var(--rule); border-radius: var(--radius); }
.casecard h3 { font-size: 1.05rem; margin: 8px 0 4px; }
.casecard .loc { font-size: .82rem; color: var(--ink-3); }
.casecard .counts { display: flex; gap: 12px; margin-top: 8px; font-size: .8rem; color: var(--ink-2); flex-wrap: wrap; }
.casecard .counts b { font-weight: 700; }
.count-oppose b { color: var(--side-oppose); }
.count-support b { color: var(--side-support); }
.count-alternative b { color: var(--side-alternative); }
#map { width: 100%; height: 100%; background: #e8e3d6; }
.map-legend { position: absolute; bottom: 24px; right: 12px; z-index: 500; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 12px; font-size: .78rem; box-shadow: var(--shadow); }
.map-legend div { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.map-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mapwrap { position: relative; }
@media (max-width: 860px) {
  .mapshell { grid-template-columns: 1fr; height: auto; }
  .mapwrap { height: 62vh; order: -1; }
  .mapside { border-right: 0; }
  .caselist { max-height: none; }
}

/* Leaflet pins */
.sl-pin { --c: #888; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--c); transform: rotate(-45deg); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); position: relative; }
.sl-pin::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.sl-pin.lit { outline: 2.5px solid var(--lit); outline-offset: 1px; }
.sl-pin.big { width: 30px; height: 30px; }
.leaflet-popup-content-wrapper { border-radius: 12px; font-family: var(--sans); }
.leaflet-popup-content { margin: 14px 16px; min-width: 220px; }
.leaflet-popup-content h3 { font-size: 1.05rem; margin: 8px 0 4px; }
.leaflet-container a.btn { color: #fff; }
.leaflet-container { font-family: var(--sans); }

/* ---------- Home sections ---------- */
.how { padding: 64px 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.how-grid > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.how-grid .num { font: 600 2.4rem/1 var(--serif); color: var(--signal); }
@media (max-width: 760px) { .how-grid { grid-template-columns: 1fr; } }
.pledge { background: var(--brand); color: #EAF1EC; padding: 48px 0; }
.pledge h2 { color: #fff; }
.pledge .kicker { color: var(--signal); }
.pledge a { color: #fff; }

/* ---------- Case page ---------- */
.casehead { background: var(--card); border-bottom: 1px solid var(--rule); padding: 28px 0 0; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 12px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.casehead h1 { margin: 12px 0 10px; max-width: 24ch; }
.casehead .summary { max-width: 72ch; color: var(--ink-2); font-size: 1.08rem; }
.casehead-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 22px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 14px; font-weight: 600; font-size: .92rem; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); border-bottom-color: var(--rule-2); }
.tabs a.on { color: var(--brand); border-bottom-color: var(--signal); }
.tabs a .cnt { font-size: .75rem; color: var(--ink-3); margin-left: 4px; }
.casebody { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; padding: 32px 16px 64px; }
.casebody section { scroll-margin-top: 90px; margin-bottom: 44px; }
.aside-sticky { position: sticky; top: 88px; }
.minimap { height: 220px; border-radius: var(--radius); border: 1px solid var(--rule); overflow: hidden; }
.facts { margin: 0; }
.facts dt { font: 700 .7rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-top: 14px; }
.facts dd { margin: 5px 0 0; font-size: .94rem; }
.prose { font-size: 1.04rem; max-width: 70ch; }
.prose p { margin-bottom: 1.1em; }
@media (max-width: 960px) { .casebody { grid-template-columns: 1fr; } .aside-sticky { position: static; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--rule-2); }
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--brand); }
.timeline li:last-child::before { background: var(--signal); border-color: var(--signal-2); }
.timeline .when { font: 700 .74rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.timeline h3 { font-size: 1.08rem; margin: 6px 0 4px; }
.timeline p { color: var(--ink-2); margin: 0 0 4px; }
.timeline .src { font-size: .82rem; }

/* Positions */
.positions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.poscard { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); border-top: 4px solid var(--sc, var(--rule-2)); }
.poscard:hover { box-shadow: var(--shadow); color: var(--ink); }
.poscard.oppose { --sc: var(--side-oppose); }
.poscard.support { --sc: var(--side-support); }
.poscard.alternative { --sc: var(--side-alternative); }
.poscard h3 { margin: 0; font-size: 1.1rem; }
.poscard .big { font: 600 1.6rem/1 var(--serif); }
.meter { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--sc, var(--brand)); }
.balance { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--paper-2); margin: 10px 0 6px; }
.balance i { display: block; height: 100%; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.list > li:first-child { padding-top: 0; }
.list .meta { font-size: .82rem; color: var(--ink-3); }
.events li { display: grid; grid-template-columns: 58px 1fr; gap: 12px; }
.datebox { background: var(--ink); color: #fff; border-radius: 8px; text-align: center; padding: 6px 0; line-height: 1.1; }
.datebox b { display: block; font: 600 1.4rem/1 var(--serif); }
.datebox span { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Forums ---------- */
.forumtable { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.forumtable th { text-align: left; font: 700 .7rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 12px 16px; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.forumtable td { padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.forumtable tr:last-child td { border-bottom: 0; }
.forumtable td.num { text-align: right; white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; width: 90px; }
.forumtable td.last { width: 220px; font-size: .84rem; color: var(--ink-3); }
.forumtable .ttl { font-weight: 600; font-size: 1.02rem; text-decoration: none; color: var(--ink); }
.forumtable .ttl:hover { color: var(--brand); text-decoration: underline; }
.forumtable .desc { font-size: .86rem; color: var(--ink-3); margin-top: 2px; }
.forumtable .flag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; color: var(--signal-2); }
.forum-section { margin-bottom: 32px; }
.forum-section > h2 { font-size: 1.3rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) { .forumtable td.last, .forumtable th.last, .forumtable td.num.hide-sm, .forumtable th.hide-sm { display: none; } }

.post { display: grid; grid-template-columns: 170px 1fr; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 14px; scroll-margin-top: 90px; }
.post-author { padding: 18px; border-right: 1px solid var(--rule); background: rgba(236,230,216,.45); font-size: .85rem; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.post-author .who { font-weight: 700; font-size: .95rem; color: var(--ink); }
.post-main { padding: 18px 20px; min-width: 0; }
.post-meta { font-size: .8rem; color: var(--ink-3); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.post-body { overflow-wrap: anywhere; }
.post-body p:last-child { margin-bottom: 0; }
.post-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule); font-size: .84rem; align-items: center; }
.post-actions form { display: inline; }
.react { background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; font: 600 .78rem var(--sans); color: var(--ink-2); cursor: pointer; }
.react.on { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-2); }
.quote { border-left: 3px solid var(--signal); background: var(--paper); padding: 10px 14px; margin: 0 0 12px; border-radius: 0 8px 8px 0; font-size: .92rem; color: var(--ink-2); }
.quote cite { display: block; font-style: normal; font-weight: 700; font-size: .78rem; margin-bottom: 4px; color: var(--ink); }
.post.deleted .post-body { color: var(--ink-3); font-style: italic; }
.post.first { border-top: 3px solid var(--brand); }
@media (max-width: 720px) {
  .post { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--rule); padding: 12px 16px; flex-wrap: wrap; }
}

.pager { display: flex; gap: 4px; flex-wrap: wrap; margin: 20px 0; }
.pager a, .pager span { padding: 6px 11px; border-radius: 6px; border: 1px solid var(--rule); background: var(--card); text-decoration: none; font-size: .88rem; color: var(--ink-2); }
.pager .cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .gap { border: 0; background: none; }

/* ---------- Admin ---------- */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule-2); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; background: var(--card); }
.admin-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-tabs a em { font-style: normal; background: var(--signal); color: var(--ink); border-radius: 999px; padding: 0 7px; margin-left: 4px; font-size: .75rem; }
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); font-size: .9rem; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.tbl th { background: var(--paper-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.tbl-wrap { overflow-x: auto; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.statgrid .card b { display: block; font: 600 1.8rem/1 var(--serif); color: var(--brand); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #C9D2CF; padding: 44px 0 20px; margin-top: 0; }
.footer a { color: #E9EEEC; text-decoration: none; display: block; margin: 6px 0; font-size: .92rem; }
.footer a:hover { color: var(--signal); }
.footer h4 { color: #8FA19C; }
.footer .brand-word { color: #fff; }
.footer .brand-word b { color: var(--signal); }
.footer .brand { display: inline-flex; margin-bottom: 10px; }
.footer .muted { color: #9AAAA6; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Page header band (inner pages) ---------- */
.band { background: var(--card); border-bottom: 1px solid var(--rule); padding: 32px 0 26px; }
.band h1 { margin-bottom: 6px; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Soften OpenStreetMap tiles so they sit with the Town Hall palette */
.leaflet-tile-pane { filter: saturate(.72) sepia(.08) contrast(.96); }

/* ---------- Petitions ---------- */
.sl-pin.pet { border-radius: 4px; transform: rotate(45deg); background: var(--signal); }
.sl-pin.pet::after { inset: 6px; border-radius: 2px; background: var(--ink); }
.pill-pet { --c: var(--signal-2); }
.chip-pet i { background: var(--signal); border-radius: 2px; transform: rotate(45deg); }
.map-legend .lg-pet { background: var(--signal); border-radius: 2px; transform: rotate(45deg); width: 10px; height: 10px; }
.casecard.is-pet { box-shadow: inset 3px 0 0 var(--signal); }
.petcard { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); border-top: 4px solid var(--sc, var(--signal)); }
.petcard:hover { box-shadow: var(--shadow); color: var(--ink); }
.petcard.oppose { --sc: var(--side-oppose); }
.petcard.support { --sc: var(--side-support); }
.petcard.alternative { --sc: var(--side-alternative); }
.petcard h3 { margin: 4px 0 0; font-size: 1.1rem; }
.petcard .big { font: 600 1.6rem/1 var(--serif); }
.petcard .meter i { background: var(--sc, var(--signal)); }
.askbox { background: var(--signal-tint); border: 1px solid #EFD39A; border-left: 4px solid var(--signal); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.askbox h4 { margin-bottom: 6px; color: #7a5410; }
.askbox p { font: 500 1.15rem/1.45 var(--serif); margin: 0; color: var(--ink); }
.signcard { border-top: 4px solid var(--signal); box-shadow: var(--shadow); }
.signcard label { font-size: .85rem; }
.bignum { font: 600 2.4rem/1 var(--serif); color: var(--brand); }
.meter-lg { height: 10px; margin: 12px 0 6px; }
.meter-lg i { background: var(--signal); }
.filterbar { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: center; }
@media (max-width: 860px) { .filterbar { grid-template-columns: 1fr 1fr; } .filterbar input[type=search] { grid-column: 1 / -1; } }

/* Start-a-petition button in the main menu */
.sitenav > a.nav-cta { color: var(--ink); margin: 0 6px 0 0; padding: .55em 1em; border-radius: 999px; box-shadow: none; }
.sitenav > a.nav-cta:hover { color: var(--ink); background: var(--signal-2); }
@media (max-width: 880px) { .sitenav > a.nav-cta { margin: 6px 0; text-align: center; } }

/* Bot check widget */
.captcha { min-height: 65px; }
.signcard .captcha { overflow: hidden; }
