/* Engage Palm Beach network — pass 3 editorial redesign.
   Palette: ivory #FAF7F0 · ink navy #0E1B2C · palm green #1F5E4A · coral #E0644B · sand.
   Type: Fraunces (display, OFL) + Inter (UI, OFL), self-hosted. Mobile first. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/fonts/fraunces.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 900; font-display: swap; src: url('/fonts/fraunces-italic.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'); }

:root {
  --ivory: #FAF7F0;
  --ink: #0E1B2C;
  --ink-2: #44505F;
  --ink-3: #6B7480;
  --palm: #1F5E4A;
  --palm-d: #164536;
  --palm-l: #8FB8A4;
  --coral: #E0644B;
  --coral-d: #B9472F;
  --coral-l: #F2B5A3;
  --sand: #EFE5D3;
  --sand-2: #F5EEE1;
  --gold: #C9B98F;
  --line: rgba(14, 27, 44, .12);
  --line-inv: rgba(250, 247, 240, .16);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px;
  --r-s: 10px;
  --pad: clamp(20px, 5vw, 48px);
  --sec: clamp(72px, 12vw, 148px);
  --shadow: 0 1px 0 rgba(14,27,44,.04), 0 10px 30px -12px rgba(14,27,44,.18);
  --shadow-lg: 0 2px 0 rgba(14,27,44,.04), 0 30px 60px -24px rgba(14,27,44,.35);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -.02em; margin: 0; font-optical-sizing: auto; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Eyebrows, sources, buttons ---------- */
.eyebrow { font: 600 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; opacity: .55; }
.src { display: inline-flex; align-items: center; gap: 4px; font: 600 11.5px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: 5px 8px 5px 7px; border-radius: 999px; background: rgba(14,27,44,.06); color: var(--ink-2); vertical-align: 2px; white-space: nowrap; transition: background .2s, color .2s; }
.src::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.src:hover { background: var(--ink); color: var(--ivory); }
.inv .src { background: rgba(250,247,240,.1); color: rgba(250,247,240,.82); }
.inv .src:hover { background: var(--ivory); color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font: 600 16px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 12px 28px -12px rgba(224,100,75,.8); }
.btn-coral:hover { background: var(--coral-d); }
.btn-ink { background: var(--ink); color: var(--ivory); }
.btn-ink:hover { background: #1c2f47; }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-xl { min-height: 64px; padding: 0 32px; font-size: 18px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(250,247,240,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.mark-glyph { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--palm); display: grid; place-items: center; }
.mark-name { font: 500 19px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.mark-name em { font-style: italic; color: var(--coral); font-weight: 400; }
.mark-sub { display: block; font: 600 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.nav { display: none; gap: 4px; align-items: center; }
.nav a { font: 500 14.5px/1 var(--sans); text-decoration: none; padding: 10px 12px; border-radius: 999px; color: var(--ink-2); }
.nav a:hover { background: rgba(14,27,44,.06); color: var(--ink); }
.top .btn { min-height: 42px; padding: 0 16px; font-size: 14.5px; flex: none; }
@media (min-width: 1000px) { .nav { display: flex; } }

/* ---------- Hero (ink) ---------- */
.hero { position: relative; background: var(--ink); color: var(--ivory); overflow: hidden; padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 9vw, 110px); isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: auto -20% -55% auto; width: min(90vw, 900px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(224,100,75,.28), rgba(224,100,75,0) 70%); z-index: -1; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line-inv) 1px, transparent 1px); background-size: 100% 88px; opacity: .25; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); z-index: -1; }
.hero .eyebrow { color: var(--coral-l); }
.hero h1 { font-size: clamp(3.6rem, 16vw, 10.5rem); font-weight: 400; line-height: .88; letter-spacing: -.045em; font-variation-settings: 'SOFT' 50, 'WONK' 0; }
.hero h1 em { font-style: italic; color: var(--coral); font-weight: 300; }
.hero-grid { display: grid; gap: 40px; }
.hero-sub { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: rgba(250,247,240,.78); max-width: 34ch; margin: 26px 0 30px; }
.hero-sub strong { color: var(--ivory); font-weight: 600; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.hero-cta .btn-xl { width: 100%; }
.hero-cta .fine { font-size: 13.5px; color: rgba(250,247,240,.6); }
.hero-cta .fine a { color: rgba(250,247,240,.85); }
@media (min-width: 640px) { .hero-cta { flex-direction: row; align-items: center; flex-wrap: wrap; } .hero-cta .btn-xl { width: auto; } }

.clock { border: 1px solid var(--line-inv); border-radius: var(--r); padding: 22px 22px 20px; background: linear-gradient(180deg, rgba(250,247,240,.06), rgba(250,247,240,.02)); }
.clock-label { font: 600 11.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(250,247,240,.62); display: flex; align-items: center; gap: 8px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(224,100,75,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(224,100,75,0); } 100% { box-shadow: 0 0 0 0 rgba(224,100,75,0); } }
.clock-digits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 12px; }
.clock-digits div { background: rgba(250,247,240,.06); border-radius: var(--r-s); padding: 14px 6px 10px; text-align: center; }
.clock-digits b { display: block; font: 400 clamp(40px, 12vw, 64px)/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.03em; }
.clock-digits span { font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(250,247,240,.55); }
.clock-msg { font-size: 15px; color: rgba(250,247,240,.82); margin: 0; }
.clock-msg strong { color: var(--ivory); }

.bring { margin-top: 14px; border-radius: var(--r); background: var(--ivory); color: var(--ink); overflow: hidden; }
.bring summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; font: 600 16px/1.3 var(--sans); }
.bring summary::-webkit-details-marker { display: none; }
.bring summary .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; transition: transform .3s var(--ease); flex: none; }
.bring[open] summary .ic { transform: rotate(45deg); }
.bring-body { padding: 0 20px 20px; font-size: 15px; color: var(--ink-2); }
.bring-body ul { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.bring-body li { padding-left: 22px; position: relative; }
.bring-body li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--palm); transform: rotate(45deg); }
.bring-body .ids { font-size: 13.5px; color: var(--ink-3); }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; align-items: end; gap: 64px; }
}

/* ---------- Sections ---------- */
.sec { padding: var(--sec) 0; position: relative; }
.sec-sand { background: var(--sand-2); }
.sec-sand2 { background: var(--sand); }
.sec-palm { background: var(--palm); color: var(--ivory); }
.sec-ink { background: var(--ink); color: var(--ivory); }
.sec-coral { background: var(--coral); color: #fff; }
.sec-head { max-width: 820px; margin-bottom: clamp(36px, 6vw, 64px); }
.sec-head h2 { font-size: clamp(2.6rem, 9vw, 5.6rem); font-weight: 400; letter-spacing: -.035em; line-height: .95; }
.sec-head h2 em { font-style: italic; font-weight: 300; color: var(--coral); }
.sec-palm .sec-head h2 em { color: var(--coral-l); }
.sec-head p { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); margin: 22px 0 0; max-width: 60ch; }
.inv .sec-head p, .inv p { color: rgba(250,247,240,.78); }
.sec-head .eyebrow { color: var(--palm); }
.inv .sec-head .eyebrow { color: var(--coral-l); }
.sec-num { font: 400 italic 15px/1 var(--serif); color: var(--coral); margin-right: 2px; }

/* ---------- Candidate intro ---------- */
.intro-grid { display: grid; gap: 40px; }
.portrait { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; background: var(--palm); box-shadow: var(--shadow-lg); }
.portrait img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; color: var(--ivory); background:
  radial-gradient(120% 70% at 100% 0%, rgba(224,100,75,.35), transparent 60%),
  linear-gradient(160deg, var(--palm) 0%, var(--palm-d) 100%); }
.fallback .mono { font: 300 italic clamp(110px, 30vw, 230px)/.8 var(--serif); letter-spacing: -.06em; color: rgba(250,247,240,.95); }
.fallback .mono span { color: var(--coral-l); }
.fallback .cap { font: 600 11.5px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(250,247,240,.72); display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-inv); padding-top: 14px; }
.portrait.has-photo .fallback { display: none; }
.intro h2 { font-size: clamp(2.6rem, 8.5vw, 5.4rem); font-weight: 400; letter-spacing: -.035em; line-height: .96; }
.intro h2 em { font-style: italic; font-weight: 300; color: var(--palm); }
.intro .lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); margin: 24px 0 28px; max-width: 46ch; }
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.roles li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.roles b { font: 500 18px/1.3 var(--serif); letter-spacing: -.01em; }
.roles .meta { font-size: 13.5px; color: var(--ink-3); margin-top: -4px; order: 2; }
.roles .srcs { order: 3; }
@media (min-width: 640px) { .roles li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; } .roles .meta { grid-column: 1; order: 0; margin: 0; } .roles .srcs { grid-row: 1; grid-column: 2; justify-content: flex-end; } }
.roles .srcs { display: flex; gap: 6px; flex-wrap: wrap; }
@media (min-width: 980px) { .intro-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } .portrait { aspect-ratio: 4 / 5; position: sticky; top: 96px; } }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: clamp(48px, 8vw, 88px); }
.stat { background: var(--ivory); padding: 22px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat .n { font: 400 clamp(40px, 10vw, 76px)/.95 var(--serif); letter-spacing: -.04em; font-variant-numeric: lining-nums; color: var(--ink); }
.stat .n em { font-style: normal; color: var(--coral); }
.stat .l { font-size: 14px; color: var(--ink-2); line-height: 1.4; flex: 1; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } .stat { padding: 30px 26px 26px; } }

/* ---------- Record: filters + cards ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 calc(-1 * var(--pad)) 18px; padding-left: var(--pad); padding-right: var(--pad); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(14,27,44,.18); background: transparent; font: 600 14.5px/1 var(--sans); cursor: pointer; transition: all .2s var(--ease); }
.chip .ct { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.chip[aria-pressed="true"] .ct { color: rgba(250,247,240,.6); }
.filter-status { font-size: 14px; color: var(--ink-3); margin: -6px 0 22px; }
.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; background: var(--ivory); border-radius: var(--r); padding: 24px 22px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid rgba(14,27,44,.06); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card[hidden] { display: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.tag { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.tag-transportation { background: #DCE7F2; color: #1D3D63; }
.tag-housing { background: #FBE1D9; color: #8E3420; }
.tag-environment { background: #D8E8DF; color: var(--palm-d); }
.tag-jobs { background: #EFE3C6; color: #6B5114; }
.tag-waste { background: #E6E1EE; color: #463A63; }
.card-num { font: 400 italic 15px/1 var(--serif); color: var(--ink-3); }
.card h3 { font-size: clamp(25px, 3vw, 30px); font-weight: 500; line-height: 1.06; letter-spacing: -.02em; }
.card .sum { font-size: 15.5px; color: var(--ink-2); margin: 12px 0 18px; }
.card-detail { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 8px; font-size: 15px; color: var(--ink-2); }
.card-detail p { margin-bottom: .8em; }
.card-detail[hidden] { display: none; }
.card-actions { margin-top: auto; display: flex; gap: 8px; align-items: center; justify-content: space-between; padding-top: 6px; }
.more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer; font: 600 14.5px/1 var(--sans); }
.more .pm { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease), background .2s; }
.more[aria-expanded="true"] .pm { transform: rotate(45deg); background: var(--ink); color: var(--ivory); }
.share { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(14,27,44,.06); font: 600 13.5px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.share:hover { background: var(--coral); color: #fff; }
.inv .share { background: rgba(250,247,240,.1); color: var(--ivory); }
.inv .share:hover { background: var(--coral); }

/* ---------- Map ---------- */
.map-grid { display: grid; gap: 28px; }
.map-wrap { position: relative; border-radius: var(--r); background: #2A6B56; overflow: hidden; padding: 16px; box-shadow: inset 0 0 0 1px var(--line-inv); }
.map-wrap svg { width: 100%; height: auto; max-height: 78vh; margin: 0 auto; }
.map-wrap .ocean-l { font: 400 italic 26px/1 var(--serif); fill: rgba(250,247,240,.5); letter-spacing: .02em; }
.map-wrap .compass { font: 600 18px/1 var(--sans); fill: rgba(250,247,240,.6); letter-spacing: .14em; }
.ctx { fill: rgba(250,247,240,.05); stroke: none; }
.d4 { fill: rgba(14,27,44,.18); stroke: var(--ivory); stroke-width: 2.5; stroke-linejoin: round; }
.town { fill: var(--palm-l); fill-opacity: .55; stroke: var(--palm); stroke-width: 1.2; cursor: pointer; transition: fill .2s, fill-opacity .2s; outline: none; }
.town:hover, .town:focus-visible { fill-opacity: .9; fill: var(--ivory); }
.town.on { fill: var(--coral); fill-opacity: 1; }
.tlabel { font: 600 24px/1 var(--sans); fill: var(--ivory); pointer-events: none; paint-order: stroke; stroke: rgba(14,27,44,.55); stroke-width: 3px; stroke-linejoin: round; }
.tlabel.sm { font-size: 21px; }
.lead { stroke: rgba(250,247,240,.55); stroke-width: 1.5; fill: none; }
.lead-dot { fill: var(--ivory); }
.map-panel { background: var(--ivory); color: var(--ink); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow-lg); align-self: start; }
.map-panel .eyebrow { color: var(--palm); margin-bottom: 14px; }
.map-panel h3 { font-size: clamp(32px, 5vw, 46px); font-weight: 400; letter-spacing: -.03em; }
.map-panel .partial { display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); background: var(--sand); padding: 6px 12px; border-radius: 999px; }
.map-panel .dw { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.map-panel .dw h4 { font: 700 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.map-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; color: var(--ink-2); }
.map-panel li b { color: var(--ink); font-weight: 600; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.towns .chip { border-color: var(--line-inv); color: var(--ivory); min-height: 40px; font-size: 13.5px; padding: 0 14px; }
.towns .chip:hover { border-color: var(--ivory); }
.towns .chip[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #fff; }
.map-note { font-size: 13.5px; color: rgba(250,247,240,.68); margin-top: 16px; }
@media (min-width: 980px) { .map-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; } .map-panel { position: sticky; top: 96px; } }

/* ---------- Compare ---------- */
.issues { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 16px; padding: 2px var(--pad) 10px; scrollbar-width: none; }
.issues::-webkit-scrollbar { display: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); border-radius: 999px; padding: 5px; margin-bottom: 18px; position: relative; max-width: 560px; }
.seg button { position: relative; z-index: 1; min-height: 48px; border: 0; background: none; border-radius: 999px; font: 600 14.5px/1.15 var(--sans); cursor: pointer; padding: 0 10px; color: var(--ink-2); transition: color .25s; }
.seg button[aria-pressed="true"] { color: var(--ivory); }
.seg .thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--palm); transition: transform .4s var(--ease), background .3s; box-shadow: 0 8px 18px -8px rgba(14,27,44,.5); }
.seg.them .thumb { transform: translateX(100%); background: var(--ink); }
.cmp { display: grid; gap: 16px; }
.side { border-radius: var(--r); padding: 28px 24px 22px; position: relative; overflow: hidden; }
.side-us { background: var(--palm); color: var(--ivory); }
.side-them { background: var(--ivory); border: 1.5px solid var(--ink); }
.side .who { font: 700 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-bottom: 16px; display: block; }
.side h3 { font-size: clamp(26px, 4vw, 38px); font-weight: 400; letter-spacing: -.025em; line-height: 1.08; margin-bottom: 16px; }
.side p { font-size: 16px; }
.side-us p { color: rgba(250,247,240,.84); }
.side-them p { color: var(--ink-2); }
.side-us .src { background: rgba(250,247,240,.12); color: rgba(250,247,240,.9); }
.side-us .src:hover { background: var(--ivory); color: var(--ink); }
.side .none { font-style: italic; }
.agree { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); background: var(--sand); color: var(--ink); padding: 8px 12px; border-radius: 999px; margin-bottom: 16px; }
.agree::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--palm); }
.cmp [hidden] { display: none; }
@media (min-width: 900px) {
  .cmp { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cmp .side { transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .cmp .side[data-dim] { opacity: .72; }
  .cmp .side[hidden] { display: block !important; }
}
.timeline { list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; gap: 10px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline .yr { font: 300 italic clamp(44px, 8vw, 72px)/.9 var(--serif); color: var(--coral); letter-spacing: -.03em; }
.timeline h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 500; margin-bottom: 12px; line-height: 1.12; }
.timeline p { color: var(--ink-2); font-size: 16px; max-width: 70ch; }
.timeline .tl-act { margin-top: 4px; }
@media (min-width: 900px) { .timeline li { grid-template-columns: 180px 1fr; } }

/* ---------- Money ---------- */
.mstats { display: grid; gap: 1px; background: var(--line-inv); border-radius: var(--r); overflow: hidden; margin-bottom: clamp(40px, 6vw, 64px); border: 1px solid var(--line-inv); }
.mstat { background: var(--ink); padding: 22px 20px; }
.mstat .n { font: 400 clamp(46px, 11vw, 84px)/.95 var(--serif); letter-spacing: -.04em; display: block; }
.mstat .n.coral { color: var(--coral); }
.mstat .l { display: block; font-size: 15px; color: rgba(250,247,240,.78); margin-top: 10px; }
.mstat .l .src { margin-left: 4px; }
@media (min-width: 900px) { .mstats { grid-template-columns: repeat(3, 1fr); } .mstat { padding: 30px 28px; } }
.chart-card { background: #13243A; border-radius: var(--r); padding: 22px 18px; border: 1px solid var(--line-inv); }
.chart-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.chart-top h3 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 400; }
.seg-inv { background: rgba(250,247,240,.08); margin: 0; }
.seg-inv button { color: rgba(250,247,240,.72); min-height: 42px; padding: 0 16px; }
.seg-inv .thumb { background: var(--ivory); }
.seg-inv button[aria-pressed="true"] { color: var(--ink); }
.seg-inv.them .thumb { background: var(--ivory); }
.chart-grid { display: grid; gap: 24px; }
.donut-box { position: relative; max-width: 380px; width: 100%; margin: 0 auto; }
.donut-box svg { width: 100%; height: auto; overflow: visible; }
.seg-arc { cursor: pointer; transition: transform .35s var(--ease), opacity .25s; transform-origin: 160px 160px; outline: none; }
.seg-arc.dim { opacity: .55; }
.seg-arc.on { transform: scale(1.045); }
.seg-arc:focus-visible { opacity: 1; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.donut-center b { display: block; font: 400 clamp(34px, 9vw, 46px)/1 var(--serif); letter-spacing: -.03em; }
.donut-center span { display: block; font-size: 12.5px; color: rgba(250,247,240,.62); max-width: 16ch; margin: 6px auto 0; line-height: 1.35; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legend button { width: 100%; display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; text-align: left; background: rgba(250,247,240,.04); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--ivory); min-height: 52px; transition: background .2s, border-color .2s; }
.legend button:hover { background: rgba(250,247,240,.08); }
.legend button[aria-pressed="true"] { border-color: rgba(250,247,240,.5); background: rgba(250,247,240,.1); }
.legend .sw { width: 14px; height: 14px; border-radius: 4px; }
.legend .lb { font-size: 15px; font-weight: 500; }
.legend .am { font: 500 15px/1 var(--sans); font-variant-numeric: tabular-nums; }
.legend .pc { display: block; font-size: 12.5px; color: rgba(250,247,240,.55); margin-top: 3px; font-weight: 400; }
.bars { display: grid; gap: 12px; }
.bar { display: block; width: 100%; text-align: left; background: rgba(250,247,240,.04); border: 1px solid transparent; border-radius: 12px; padding: 14px; cursor: pointer; color: var(--ivory); transition: background .2s, border-color .2s; }
.bar:hover { background: rgba(250,247,240,.08); }
.bar[aria-pressed="true"] { border-color: rgba(250,247,240,.5); background: rgba(250,247,240,.1); }
.bar .row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.bar .row span:last-child { font-variant-numeric: tabular-nums; }
.bar .track { height: 14px; border-radius: 999px; background: rgba(250,247,240,.08); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; width: 0; transition: width 1s var(--ease); }
.detail { margin-top: 22px; background: var(--ivory); color: var(--ink); border-radius: var(--r); padding: 22px 20px; }
.detail h4 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 400; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.detail h4 span { font: 500 italic clamp(24px, 3.4vw, 32px)/1 var(--serif); color: var(--coral-d); }
.detail .dnote { font-size: 15px; color: var(--ink-2); margin: 10px 0 16px; }
.dlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dlist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dlist .w { font-weight: 600; }
.dlist .m { font-size: 13px; color: var(--ink-3); grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dlist .a { font-variant-numeric: tabular-nums; font-weight: 600; grid-row: 1; grid-column: 2; text-align: right; }
.detail .dfoot, .detail p { font-size: 13.5px; color: var(--ink-3); margin: 14px 0 0; }
.money-foot { font-size: 14px; color: rgba(250,247,240,.62); margin-top: 22px; max-width: 80ch; }
@media (min-width: 900px) {
  .chart-card { padding: 34px; }
  .chart-grid { grid-template-columns: 380px 1fr; gap: 40px; align-items: center; }
  .chart-grid.bars-mode { grid-template-columns: 1fr; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 16px; }
.gslot { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); box-shadow: var(--shadow); }
.gslot { margin: 0; }
.gslot.has-photo .fallback { display: flex; justify-content: flex-end; gap: 14px; background: linear-gradient(180deg, rgba(14,27,44,0) 35%, rgba(14,27,44,.88)) !important; }
.gslot.has-photo blockquote { font-size: clamp(19px, 2.2vw, 23px); }
.gslot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gslot .fallback { padding: 24px; }
.gslot:nth-child(2) .fallback { background: radial-gradient(100% 80% at 0% 100%, rgba(31,94,74,.7), transparent 60%), var(--ink); }
.gslot:nth-child(3) .fallback { background: radial-gradient(100% 80% at 100% 0%, rgba(250,247,240,.25), transparent 60%), var(--coral); }
.gslot blockquote { margin: 0; font: 400 clamp(24px, 3.2vw, 32px)/1.15 var(--serif); letter-spacing: -.02em; }
.gslot blockquote em { font-style: italic; color: var(--coral-l); }
.gslot .big { font: 300 clamp(56px, 10vw, 96px)/.9 var(--serif); letter-spacing: -.05em; }
@media (min-width: 900px) { .gallery { grid-template-columns: 1.4fr 1fr 1fr; } .gslot:first-child { aspect-ratio: auto; grid-row: span 1; } }

/* ---------- Vote ---------- */
.vote { padding: clamp(80px, 14vw, 160px) 0; }
.vote h2 { font-size: clamp(3.4rem, 14vw, 9rem); font-weight: 400; letter-spacing: -.045em; line-height: .88; }
.vote h2 em { font-style: italic; font-weight: 300; color: var(--ink); }
.vote p { font-size: clamp(18px, 2.2vw, 22px); color: rgba(255,255,255,.92); max-width: 46ch; margin: 26px 0 32px; }
.vote .src { background: rgba(14,27,44,.16); color: #fff; }
.vote .btn-ink { box-shadow: 0 18px 36px -16px rgba(14,27,44,.8); }
.vote-acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.vote .btn-line { color: #fff; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: rgba(250,247,240,.78); padding: 64px 0 40px; font-size: 14.5px; }
.foot-grid { display: grid; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line-inv); }
.foot .mark-name { color: var(--ivory); font-size: 26px; }
.foot p { max-width: 56ch; }
.disclaimer { border: 1.5px dashed var(--coral); border-radius: 12px; padding: 16px 18px; color: var(--ivory); font-weight: 500; }
.disclaimer .todo { display: block; font: 700 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.disclaimer .fill { background: var(--coral); color: #fff; padding: 1px 6px; border-radius: 4px; }
.foot h3 { font: 700 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(250,247,240,.55); margin: 32px 0 16px; }
.foot ol { margin: 0; padding-left: 22px; font-size: 13.5px; }
.foot ol li { margin-bottom: 8px; overflow-wrap: anywhere; }
.foot ol a { color: rgba(250,247,240,.85); text-underline-offset: 3px; text-decoration-color: rgba(250,247,240,.3); }
.foot ol a:hover { color: var(--ivory); text-decoration-color: var(--coral); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: rgba(250,247,240,.5); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; } .foot ol { columns: 2; column-gap: 40px; display: block; } .foot ol li { margin-bottom: 8px; break-inside: avoid; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%); background: var(--ink); color: var(--ivory); padding: 14px 20px; border-radius: 999px; font: 600 14.5px/1.2 var(--sans); box-shadow: var(--shadow-lg); z-index: 90; transition: transform .4s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast { visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Motion (JS adds .js; reduced motion opts out) ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: .08s; } .js .rv-d2 { transition-delay: .16s; } .js .rv-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- Share pages / 404 ---------- */
.fact-page { min-height: 70vh; display: grid; align-items: center; padding: 64px 0; }
.fact-page h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 400; letter-spacing: -.03em; line-height: 1; max-width: 18ch; }
.fact-page p { font-size: 18px; color: var(--ink-2); max-width: 56ch; margin: 22px 0 28px; }
.fact-page .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.fact-page img { border-radius: var(--r); box-shadow: var(--shadow-lg); margin-top: 40px; width: 100%; max-width: 720px; height: auto; }

.eb-palm { color: var(--palm); }

@media (max-width: 479px) {
  .mark-sub { display: none; }
  .mark-name { font-size: 18px; }
  .mark-glyph { display: none; }
  .top .btn .arr { display: none; }
  .top .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .top-in { height: 58px; }
}

.map-panel .src, .detail .src, .bring .src { background: rgba(14,27,44,.07); color: var(--ink-2); }
.map-panel .src:hover, .detail .src:hover, .bring .src:hover { background: var(--ink); color: var(--ivory); }
.map-wrap { padding: 8px; }

.gslot { aspect-ratio: auto; min-height: 320px; }
.gslot .fallback { position: relative; min-height: 320px; height: 100%; gap: 28px; }
.gslot .src, .fallback .src { background: rgba(250,247,240,.14); color: rgba(250,247,240,.92); }
.gslot .src:hover { background: var(--ivory); color: var(--ink); }
.gslot .cap { align-items: center; }
.vote .share.btn-xl { min-height: 64px; padding: 0 30px; font-size: 18px; background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.vote .share.btn-xl:hover { background: #fff; color: var(--coral-d); }
.fallback .who { font: 400 clamp(34px, 7vw, 52px)/.98 var(--serif); letter-spacing: -.03em; margin-top: auto; margin-bottom: 18px; }
.fallback .who em { font-style: italic; font-weight: 300; color: var(--coral-l); }
.stat .n { font-size: clamp(40px, 9vw, 64px); }

.map-panel p, .bring p { color: var(--ink-2); }
.detail .dnote { font-size: 15px; color: var(--ink-2); }
