/* ── Variables ── */
:root {
    --navy: #0d2b4a;
    --navy-mid: #1a4a78;
    --civic-blue: #1d6fa4;
    --civic-blue-light: #dbeeff;
    --accent: #d4572a;
    --accent-hover: #b8461f;
    --accent-light: #fef0ec;
    --amber: #b45309;
    --amber-light: #fef3c7;
    --red: #be2d2d;
    --red-light: #fee2e2;
    --green: #166534;
    --green-light: #dcfce7;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f7f6f2;
    --card: #ffffff;
    --text: #1e293b;
    --text-soft: #475569;
    --radius: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,.10);

    /* Type scale */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Menlo', monospace;
    --font-system: 'IBM Plex Sans', system-ui, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;

    /* Spacing */
    --section-gap: 5rem;
    --section-gap-sm: 3rem;
}

/* Skip link */
.skip-link { position: absolute; top: -100%; left: 1rem; z-index: 999; background: var(--navy); color: white; padding: .6rem 1.2rem; border-radius: 0 0 var(--radius) var(--radius); font-family: var(--font-system); font-size: var(--text-sm); font-weight: 600; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 0; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65; min-height: 100vh; }
a { color: var(--civic-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header { background: var(--navy); color: white; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 1.5rem; }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: white; display: flex; align-items: center; gap: 0.6rem; letter-spacing: -.01em; }
.logo-icon { width: 30px; height: 30px; background: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--font-system); font-size: 0.65rem; font-weight: 800; letter-spacing: -.02em; color: white; }
.logo-icon-img { width: 30px; height: 30px; flex-shrink: 0; }
.logo-wordmark { font-family: var(--font-display); font-size: 1.15rem; }
.logo-wordmark-img { height: 22px; width: auto; filter: brightness(0) invert(1); }
.header-tagline { font-family: var(--font-system); font-size: 0.62rem; color: rgba(255,255,255,.4); font-weight: 600; margin-left: 0.25rem; letter-spacing: .06em; text-transform: uppercase; }
.header-tagline::before { content: ''; display: inline-block; width: 1px; height: .7em; background: rgba(255,255,255,.2); margin-right: .5rem; vertical-align: middle; }
.header-nav { display: flex; align-items: center; gap: .25rem; }
.header-nav-link { font-family: var(--font-system); font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.75); text-decoration: none; padding: .35rem .75rem; border-radius: 6px; transition: background .15s, color .15s; white-space: nowrap; }
.header-nav-link:hover { background: rgba(255,255,255,.12); color: white; }
.header-nav-hot { color: #fca5a5; }
.header-nav-hot:hover { background: rgba(252,165,165,.15); color: #fca5a5; }
.header-nav-dropdown { position: relative; }
.header-nav-dropdown summary { list-style: none; cursor: pointer; }
.header-nav-dropdown summary::-webkit-details-marker { display: none; }
.header-nav-dropdown-panel { position: absolute; top: calc(100% + 6px); right: 0; background: var(--navy); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: .4rem; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,.35); z-index: 200; }
.header-nav-dropdown-item { display: block; font-family: var(--font-system); font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.85); text-decoration: none; padding: .45rem .75rem; border-radius: 5px; }
.header-nav-dropdown-item:hover { background: rgba(255,255,255,.1); color: white; }

/* Layout */
.page-wrapper { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.meeting-layout { display: grid; grid-template-columns: 1fr 230px; gap: 2.5rem; align-items: start; }
.meeting-main { min-width: 0; }

/* TOC Sidebar */
.toc-sidebar { position: sticky; top: 72px; display: flex; flex-direction: column; gap: .75rem; }
.toc-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow); }
.toc-card h4 { font-family: var(--font-system); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.toc-list a { display: block; font-size: .82rem; color: var(--text-soft); padding: .45rem .6rem; border-radius: 4px; transition: background .15s, color .15s; min-height: 36px; display: flex; align-items: center; }
.toc-list a:hover, .toc-list a.active { background: var(--civic-blue-light); color: var(--civic-blue); text-decoration: none; font-weight: 600; }
/* ── Sidebar Posts Link ── */
a.sidebar-posts-link { margin-top: .35rem; background: var(--civic-blue-light); color: var(--civic-blue); font-weight: 600; border-radius: var(--radius); }
a.sidebar-posts-link:hover { background: #bfdbfe; }
/* ── Sidebar Decisions Card ── */
.sidebar-decisions-card { border-color: var(--border); padding: 0; overflow: hidden; }
.sidebar-decisions-header { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem .6rem; border-bottom: 1px solid var(--border); }
.sidebar-decisions-title { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--navy); }
.sidebar-decisions-count { font-size: .65rem; font-weight: 700; background: var(--navy); color: white; border-radius: 999px; padding: .1rem .45rem; line-height: 1.4; }
.sidebar-decision-list { display: flex; flex-direction: column; }
.sidebar-decision-item { display: flex; flex-direction: column; gap: .18rem; padding: .6rem 1rem .6rem .85rem; border-left: 3px solid #e5e7eb; border-bottom: 1px solid var(--border); margin-left: 0; transition: background .1s; }
.sidebar-decision-item:last-child { border-bottom: none; }
.sidebar-decision-item:hover { background: #f9fafb; }
/* Vote type left-rule colors */
.sidebar-decision-item.vote-passed  { border-left-color: #10b981; }
.sidebar-decision-item.vote-split   { border-left-color: #f59e0b; }
.sidebar-decision-item.vote-deferred { border-left-color: #f97316; }
.sidebar-decision-item.vote-failed  { border-left-color: #ef4444; }
.sidebar-decision-item.vote-admin   { border-left-color: #94a3b8; }
/* Decision text — primary element */
.sidebar-decision-text { font-size: .8rem; font-weight: 600; color: var(--text); line-height: 1.4; }
/* Vote label — secondary, below the text */
.sidebar-vote-label { font-size: .65rem; color: var(--muted); line-height: 1.3; }
.vote-passed  .sidebar-vote-label { color: #059669; }
.vote-split   .sidebar-vote-label { color: #b45309; }
.vote-deferred .sidebar-vote-label { color: #c2410c; }
.vote-failed  .sidebar-vote-label { color: #dc2626; }
.vote-admin   .sidebar-vote-label { color: #64748b; }

/* Breadcrumb */
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--civic-blue); }

/* Meeting Hero */
.meeting-hero { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.meeting-hero h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; letter-spacing: -.02em; color: var(--navy); margin-bottom: .25rem; line-height: 1.15; }
.meeting-meta-line { font-family: var(--font-system); color: var(--muted); font-size: var(--text-sm); margin-bottom: 1.25rem; }
.hero-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-value { font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: 600; color: var(--navy); line-height: 1; }
.hero-stat-label { font-family: var(--font-system); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .2rem; font-weight: 600; }


/* Alert banner */
.alert-banner { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.5rem; border: 1px solid; font-size: .875rem; }
.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }
.alert-text strong { display: block; margin-bottom: .15rem; }
.alert-routine { background: #f0fdf4; border-color: #86efac; color: #14532d; }
.alert-mild { background: var(--amber-light); border-color: #fcd34d; color: #78350f; }
.alert-contentious { background: #fff7ed; border-color: #fb923c; color: #9a3412; }
.alert-highly { background: var(--red-light); border-color: #fca5a5; color: #7f1d1d; }
.alert-pending { background: var(--civic-blue-light); border-color: #93c5fd; color: #1e3a5f; }

/* Sections */
.report-section { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); scroll-margin-top: 72px; }
.section-heading { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--border); }
.section-heading h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.section-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.icon-blue { background: var(--civic-blue-light); color: var(--civic-blue); }
.icon-amber { background: var(--amber-light); color: var(--amber); }
.icon-red { background: var(--red-light); color: var(--red); }
.icon-green { background: var(--green-light); color: var(--green); }
.icon-purple { background: #f3e8ff; color: #7c3aed; }

.subsection-title { font-family: var(--font-system); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.25rem 0 .75rem; display: flex; align-items: center; gap: .5rem; }
.subsection-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Topics */
.topic-list { display: flex; flex-direction: column; gap: .6rem; }
.topic-card { border: 1px solid var(--border); border-left: 3px solid var(--civic-blue); border-radius: var(--radius); padding: .85rem 1rem; background: #fafcff; }
.topic-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--navy); margin-bottom: .25rem; }
.topic-summary { font-size: .85rem; color: var(--text-soft); }
.topic-speakers { font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.topic-list-more { display: flex; flex-direction: column; gap: .6rem; max-height: 0; overflow: hidden; transition: max-height .35s ease; margin-top: 0; }
.topic-list-more.expanded { max-height: 2000px; margin-top: .6rem; }
.topics-expand-btn { margin-top: .5rem; background: none; border: 1px solid var(--border); border-radius: 6px; padding: .4rem 1rem; font-family: var(--font-system); font-size: .8rem; font-weight: 600; color: var(--civic-blue); cursor: pointer; transition: background .15s, color .15s; }
.topics-expand-btn:hover { background: var(--civic-blue-light); }

/* Decisions */
.decision-list { display: flex; flex-direction: column; gap: .5rem; }
.decision-item { display: flex; align-items: flex-start; gap: .75rem; padding: .7rem .85rem; background: var(--green-light); border-radius: var(--radius); border: 1px solid #86efac; }
.decision-vote { font-size: .75rem; font-weight: 700; background: var(--green); color: white; padding: .15rem .5rem; border-radius: 999px; white-space: nowrap; flex-shrink: 0; margin-top: .1rem; }
.decision-text { font-size: .875rem; }
.decision-detail { font-size: .78rem; color: var(--text-soft); margin-top: .15rem; }

/* Action items */
.action-list { display: flex; flex-direction: column; gap: .45rem; }
.action-item { display: flex; align-items: flex-start; gap: .75rem; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); }
.action-who { font-size: .75rem; font-weight: 600; color: var(--civic-blue); white-space: nowrap; flex-shrink: 0; padding-top: .1rem; }
.action-text { font-size: .875rem; }
.action-deadline { font-size: .75rem; color: var(--muted); margin-top: .1rem; }

/* Community speak */
.cs-stats-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; padding: .9rem 1.25rem; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.cs-stat { text-align: center; }
.cs-stat-num { font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: 600; line-height: 1; color: var(--navy); }
.cs-stat-num.red { color: var(--red); }
.cs-stat-num.amber { color: var(--amber); }
.cs-stat-num.green { color: var(--green); }
.cs-stat-label { font-family: var(--font-system); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: .2rem; font-weight: 600; }
.cs-items { display: flex; flex-direction: column; gap: .7rem; }
.cs-card { border: 1px solid var(--border); border-left: 4px solid var(--muted); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.cs-card.addressed-yes { border-left-color: var(--green); }
.cs-card.addressed-partially { border-left-color: var(--amber); }
.cs-card.addressed-no { border-left-color: var(--red); }
.cs-card-header { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem .5rem; }
.cs-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--civic-blue-light); color: var(--civic-blue); font-weight: 700; font-size: .75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-name { font-weight: 600; font-size: .88rem; flex: 1; }
.cs-card-body { padding: 0 1rem .85rem; }
.cs-summary { font-size: .85rem; color: var(--text-soft); margin-bottom: .45rem; }
.cs-field-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cs-field-text { font-size: .83rem; margin-bottom: .35rem; }
.cs-explanation { font-size: .75rem; color: var(--muted); font-style: italic; }

/* Controversy */
.controversy-grid { display: flex; flex-direction: column; gap: .75rem; }
.controversy-card { border: 1px solid #fca5a5; border-left: 4px solid var(--red); border-radius: var(--radius); padding: .9rem 1rem; background: #fff9f9; }
.controversy-card.medium { border-color: #fcd34d; border-left-color: var(--amber); background: #fffdf5; }
.controversy-card.low { border-color: var(--border); border-left-color: var(--muted); background: var(--card); }
.controversy-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .4rem; }
.controversy-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--navy); }
.controversy-why { font-size: .83rem; color: var(--text-soft); margin-bottom: .4rem; }
.controversy-board { font-size: .83rem; margin-bottom: .3rem; }
.controversy-board strong { color: var(--navy); }
.dissent-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--red-light); color: var(--red); margin-top: .2rem; }
.dissent-details { font-size: .78rem; color: var(--text-soft); margin-top: .3rem; padding: .35rem .6rem; background: rgba(190,45,45,.05); border-radius: 4px; border-left: 2px solid #fca5a5; }

.split-vote-list { display: flex; flex-direction: column; gap: .4rem; }
.split-vote-item { display: flex; align-items: flex-start; gap: .75rem; padding: .6rem .75rem; background: #fff9f9; border: 1px solid #fca5a5; border-radius: var(--radius); font-size: .83rem; }
.vote-result-pill { font-weight: 700; font-size: .75rem; padding: .15rem .5rem; border-radius: 999px; background: var(--red); color: white; white-space: nowrap; flex-shrink: 0; }

.unity-bar { padding: .65rem 1rem; border-radius: var(--radius); font-size: .875rem; display: flex; align-items: center; gap: .6rem; margin: .75rem 0; }
.unity-unanimous { background: var(--green-light); color: var(--green); }
.unity-mostly { background: var(--amber-light); color: var(--amber); }
.unity-divided { background: var(--red-light); color: var(--red); }

/* Gap analysis */
.gap-list { display: flex; flex-direction: column; gap: .45rem; }
.gap-item { display: flex; align-items: flex-start; gap: .75rem; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .875rem; background: var(--card); }
.gap-item.high { border-left: 3px solid var(--red); }
.gap-item.medium { border-left: 3px solid var(--amber); }
.gap-item.low { border-left: 3px solid #94a3b8; }
.gap-label { font-weight: 600; }
.gap-explanation { color: var(--text-soft); font-size: .8rem; margin-top: .1rem; }

/* Badges */
.badge { display: inline-flex; align-items: center; font-family: var(--font-system); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .18rem .5rem; border-radius: 999px; white-space: nowrap; }
.badge-yes, .badge-complete { background: var(--green-light); color: var(--green); }
.badge-partially { background: var(--amber-light); color: var(--amber); }
.badge-no, .badge-not { background: var(--red-light); color: var(--red); }
.badge-high { background: var(--red-light); color: var(--red); }
.badge-medium { background: var(--amber-light); color: var(--amber); }
.badge-low { background: #f1f5f9; color: var(--muted); }
.badge-pending { background: var(--civic-blue-light); color: var(--civic-blue); }

/* Social */
.copyable { position: relative; background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; padding-right: 5rem; margin-bottom: .75rem; }
.copyable pre { white-space: pre-wrap; word-wrap: break-word; font-family: inherit; font-size: .875rem; color: var(--text); line-height: 1.6; }
.copy-btn { position: absolute; top: .6rem; right: .6rem; background: var(--navy); color: white; border: none; border-radius: 4px; padding: .3rem .75rem; font-size: .72rem; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.copy-btn:hover { opacity: .85; }
.copy-btn.copied { background: var(--green); }

/* Document links */
.doc-links { display: flex; gap: .6rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: .5rem; }
.doc-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--civic-blue); background: var(--civic-blue-light); padding: .3rem .75rem; border-radius: 999px; text-decoration: none; transition: background .12s; }
.doc-link:hover { background: #b8dcf8; text-decoration: none; }
.doc-link-btn { border: none; cursor: pointer; font-family: inherit; }
.doc-icon { font-size: .9rem; }

/* Trends page */
.watchpoint-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: .6rem; box-shadow: var(--shadow); }
.watchpoint-high { border-left: 4px solid var(--red); }
.watchpoint-medium { border-left: 4px solid var(--amber); }
.watchpoint-low { border-left: 4px solid #94a3b8; }
.badge-urgent { background: var(--red-light); color: var(--red); }
.badge-amber { background: var(--amber-light); color: var(--amber); }
.badge-muted { background: #f1f5f9; color: var(--muted); }
.badge-concern-high { background: var(--red-light); color: var(--red); }
.badge-concern-medium { background: var(--amber-light); color: var(--amber); }
.badge-concern-low { background: #f1f5f9; color: var(--muted); }

/* ── Trends page structured classes ── */
.trends-hero-badge { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.trends-hero-badge-icon { font-size: 1.3rem; }
.trends-hero-badge-text { font-family: var(--font-system); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--civic-blue); }
.trends-disclaimer { background: var(--amber-light); border: 1px solid #fcd34d; border-radius: var(--radius); padding: .6rem 1rem; margin-bottom: 1.5rem; font-size: .8rem; color: var(--amber); }
.trends-topic-row { border-bottom: 1px solid var(--border); padding: 1rem 0; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.trends-topic-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.trends-topic-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); }
.trends-trajectory { font-family: var(--font-system); font-size: .75rem; font-weight: 700; }
.trends-topic-summary { font-size: var(--text-sm); color: var(--text-soft); }
.trends-topic-dates { font-size: var(--text-xs); color: var(--muted); margin-top: .3rem; }
.trends-topic-count { text-align: right; flex-shrink: 0; }
.trends-topic-count-num { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 600; color: var(--navy); }
.trends-topic-count-label { font-family: var(--font-system); font-size: .7rem; color: var(--muted); }
.trends-bordered-card { border-left: 4px solid var(--muted); padding: .75rem 1rem; margin-bottom: .75rem; background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.trends-bordered-card.border-red { border-left-color: var(--red); }
.trends-bordered-card.border-amber { border-left-color: var(--amber); }
.trends-card-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .25rem; flex-wrap: wrap; }
.trends-card-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); }
.trends-card-status { font-family: var(--font-system); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.trends-card-body { font-size: var(--text-sm); color: var(--text-soft); }
.trends-card-meta { font-size: var(--text-xs); color: var(--muted); margin-top: .35rem; }
.trends-responsiveness { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; padding: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.trends-resp-label { font-family: var(--font-system); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .15rem; }
.trends-resp-value { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; }
.trends-resp-explanation { flex: 1; font-size: .85rem; color: var(--text-soft); border-left: 1px solid var(--border); padding-left: .75rem; }
.trends-concern-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.trends-concern-tag { background: var(--civic-blue-light); color: var(--civic-blue); padding: .25rem .65rem; border-radius: 12px; font-family: var(--font-system); font-size: .8rem; font-weight: 600; }
.trends-ignored-box { margin-top: 1rem; padding: 1rem; background: var(--red-light); border: 1px solid #fca5a5; border-radius: var(--radius); }
.trends-ignored-title { font-family: var(--font-system); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin-bottom: .5rem; }
.trends-dynamics-trend { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.trends-dynamics-label { font-family: var(--font-system); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.trends-dissenters-box { padding: .75rem 1rem; background: var(--amber-light); border: 1px solid #fcd34d; border-radius: var(--radius); }
.trends-dissenters-title { font-family: var(--font-system); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); margin-bottom: .5rem; }
.trends-meeting-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.trends-meeting-chip { font-family: var(--font-mono); font-size: .85rem; background: var(--civic-blue-light); color: var(--civic-blue); padding: .3rem .75rem; border-radius: 12px; font-weight: 600; }

/* Footer */
footer { background: var(--navy); color: rgba(255,255,255,.45); padding: 1.5rem; font-family: var(--font-system); font-size: .78rem; text-align: center; margin-top: 0; }
footer a { color: rgba(255,255,255,.7); }

/* ── Homepage ── */
.index-hero { background: var(--navy); color: white; }
.index-hero-inner { max-width: 860px; margin: 0 auto; padding: 5rem 1.5rem 3.5rem; text-align: center; }
.index-hero-logo { display: block; margin: 0 auto 2rem; width: 320px; height: auto; filter: drop-shadow(0 2px 12px rgba(0,0,0,.25)); }
.index-hero-eyebrow { font-family: var(--font-mono); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: center; gap: .6rem; }
.index-hero-eyebrow::before { content: ''; display: inline-block; width: 24px; height: 2px; background: var(--accent); }
.index-hero-headline { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; color: white; margin-bottom: 1.5rem; }
.index-hero-sub { font-family: var(--font-body); font-size: var(--text-lg); line-height: 1.7; color: rgba(255,255,255,.55); max-width: 580px; margin: 0 auto 2.5rem; }
.index-hero-cta { display: inline-flex; align-items: center; gap: .6rem; background: var(--accent); color: white; font-family: var(--font-system); font-weight: 700; font-size: var(--text-base); padding: .9rem 2rem; border-radius: var(--radius); text-decoration: none; transition: background .15s, transform .1s; box-shadow: 0 2px 8px rgba(212,87,42,.3); }
.index-hero-cta:hover { background: var(--accent-hover); transform: translateY(-1px); text-decoration: none; color: white; box-shadow: 0 4px 14px rgba(212,87,42,.35); }
.index-stats-band { display: flex; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; margin-top: 1rem; }
.index-stat { flex: 1; padding: 1.4rem 1rem; text-align: center; }
.index-stat-value { display: block; font-family: var(--font-mono); font-size: var(--text-3xl); font-weight: 600; color: white; line-height: 1; letter-spacing: -.02em; }
.index-stat-label { display: block; font-family: var(--font-system); font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); margin-top: .4rem; }
.index-stat-divider { width: 1px; height: 2.5rem; background: rgba(255,255,255,.1); flex-shrink: 0; }

.index-why { background: #eeeee8; border-bottom: 1px solid var(--border); }
.index-why-inner { max-width: 1060px; margin: 0 auto; padding: 4rem 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.index-section-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--navy); letter-spacing: -.015em; margin-bottom: .5rem; }
.index-why-text p { font-size: var(--text-base); line-height: 1.75; color: var(--text-soft); margin-bottom: 1rem; }
.index-why-text p:last-child { margin-bottom: 0; }
.index-why-text strong { color: var(--text); }
.index-pullquote { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; font-style: normal; line-height: 1.4; color: var(--navy); border-left: 3px solid var(--accent); padding-left: 1.25rem; margin-bottom: 2rem; }
.index-how-steps { display: flex; flex-direction: column; gap: .85rem; }
.index-step { display: flex; align-items: flex-start; gap: .85rem; }
.index-step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: white; font-family: var(--font-mono); font-size: .7rem; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .15rem; }
.index-step strong { display: block; font-family: var(--font-system); font-size: var(--text-sm); color: var(--text); margin-bottom: .1rem; }
.index-step span { font-size: .78rem; color: var(--muted); line-height: 1.45; }

.index-section { padding: var(--section-gap-sm) 0; }
.index-section-alt { background: white; }
.index-section-inner { max-width: 920px; margin: 0 auto; padding: 0 1.5rem; }
.index-section-sub { font-family: var(--font-system); font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem; }

.index-dept-grid { display: flex; flex-direction: column; gap: .6rem; }
.index-dept-card { display: flex; align-items: flex-start; gap: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; text-decoration: none; color: var(--text); transition: box-shadow .12s, transform .1s; box-shadow: var(--shadow); }
.index-dept-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; }
.index-dept-icon { font-size: 1.4rem; flex-shrink: 0; }
.index-dept-name { font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: .1rem; }
.index-dept-town { font-size: .78rem; color: var(--muted); margin-bottom: .2rem; }
.index-dept-count { font-size: .72rem; color: var(--civic-blue); font-weight: 600; }
.index-dept-arrow { margin-left: auto; font-size: 1.2rem; color: var(--border); flex-shrink: 0; align-self: flex-start; margin-top: .2rem; }
.index-dept-highlights { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.index-dept-highlights li { font-size: .73rem; color: var(--text-soft); line-height: 1.4; padding-left: .85rem; position: relative; }
.index-dept-highlights li::before { content: "\2022"; position: absolute; left: 0; color: var(--civic-blue); font-weight: 700; }

.index-report-feed { display: flex; flex-direction: column; gap: .6rem; }
.index-report-card { display: flex; align-items: stretch; background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .2s ease, transform .2s ease; box-shadow: var(--shadow); }
.index-report-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.index-report-tempbar { width: 5px; flex-shrink: 0; position: relative; }
.index-report-card[data-temp="highly_contentious"] .index-report-tempbar { width: 12px; }
.index-report-card[data-temp="contentious"] .index-report-tempbar { width: 10px; }
.index-report-tempbar::after { content: ''; position: absolute; inset: 0; background: inherit; opacity: .08; width: 100vw; pointer-events: none; }
.index-report-body { flex: 1; padding: .9rem 1.25rem; min-width: 0; }
.index-report-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .25rem; }
.index-report-date { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; color: var(--muted); }
.index-report-temp { font-family: var(--font-system); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.index-report-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--navy); margin-bottom: .1rem; display: flex; align-items: center; gap: .5rem; }
.index-report-title::before { content: ''; display: inline-block; width: 20px; height: 20px; background: url('img/meeting-icon.svg') no-repeat center / contain; flex-shrink: 0; }
.index-report-town { font-family: var(--font-system); font-size: .775rem; color: var(--muted); margin-bottom: .35rem; }
.index-report-facts { display: flex; flex-wrap: wrap; gap: .6rem; font-family: var(--font-system); font-size: .72rem; color: var(--text-soft); }
.index-report-awaiting { color: var(--civic-blue); font-weight: 600; }
.index-report-dept { font-size: .7rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.index-report-synopsis { font-size: .8rem; color: var(--text-soft); line-height: 1.6; margin: .3rem 0 .45rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.index-report-chevron { display: flex; align-items: center; padding: 0 1.1rem; font-family: var(--font-system); font-size: .8rem; font-weight: 600; color: var(--civic-blue); flex-shrink: 0; opacity: .75; transition: opacity .2s; }
.index-report-card:hover .index-report-chevron { opacity: 1; }
.index-report-card[data-temp="highly_contentious"] .index-report-chevron { color: #c0392b; }
.index-report-card[data-temp="contentious"] .index-report-chevron { color: #b45309; }

/* ── Index: What's Heating Up ── */
.index-hot-section { padding: 1.25rem 0 2rem; background: #fff8f6; border-top: 1px solid #fde8e3; border-bottom: 1px solid #fde8e3; }
.index-hot-header { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.index-hot-header h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: #c0392b; letter-spacing: -.01em; margin: 0; }
.index-hot-icon { font-size: 1.1rem; color: #c0392b; }
.index-hot-count { font-size: .7rem; font-weight: 700; color: var(--red); background: var(--red-light); padding: .15rem .5rem; border-radius: 999px; margin-left: auto; }

/* ── Index: Town Card Grid (multi-town directory) ── */
.index-towns-section { padding: 3rem 0; }
.index-recent-section { padding: 2.5rem 0; background: white; border-top: 1px solid var(--border); }
.index-town-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1.25rem; }
.index-town-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; text-decoration: none; color: var(--text); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; box-shadow: var(--shadow); min-height: 220px; }
.index-town-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; border-color: var(--civic-blue); }
.index-town-card-header { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.index-town-card-seal { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.index-town-card-icon { font-size: 1.6rem; flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.index-town-card-name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.index-town-card-location { font-family: var(--font-system); font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: .1rem; }
.index-town-card-hooks { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; padding: .75rem; background: #fff8f6; border: 1px solid #fde8e3; border-radius: var(--radius); }
.index-town-card-hooks-issues { background: var(--accent-light); border-color: #f5c6b5; }
.index-town-card-hook { display: flex; align-items: flex-start; gap: .5rem; font-size: .8rem; line-height: 1.45; color: var(--text-soft); }
.index-town-hook-icon { flex-shrink: 0; font-size: .85rem; }
.index-town-hook-text strong { color: var(--navy); font-weight: 700; }
.index-town-hook-badge { display: inline-block; font-size: .65rem; font-weight: 700; color: var(--accent); background: #fde0d5; padding: .05rem .4rem; border-radius: 999px; margin-left: .35rem; text-transform: capitalize; vertical-align: middle; }
.index-town-card-stats { font-size: .78rem; color: var(--muted); font-weight: 600; display: flex; gap: .4rem; flex-wrap: wrap; }
.index-town-card-hot { color: var(--red); font-weight: 700; }
.index-town-card-monitoring { color: var(--civic-blue); font-style: italic; }
.index-town-card-cta { margin-top: auto; padding-top: 1rem; font-family: var(--font-system); font-size: .85rem; font-weight: 700; color: var(--accent); }
.index-town-card:hover .index-town-card-cta { text-decoration: underline; }

/* ── Town Landing Page ── */
.town-hero { background: var(--navy); color: white; }
.town-hero-inner { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.5rem 0; }
.town-hero-identity { display: flex; align-items: center; gap: 1rem; margin-bottom: .25rem; }
.town-hero-seal { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255,255,255,.2); background: white; }
.town-hero-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -.02em; color: white; }
.town-hero-sub { font-family: var(--font-system); font-size: var(--text-sm); color: rgba(255,255,255,.5); margin-bottom: 1.5rem; }
.town-stats-band { display: flex; align-items: center; background: rgba(0,0,0,.2); border-radius: var(--radius) var(--radius) 0 0; margin-top: .5rem; }
.town-stat { flex: 1; padding: 1rem; text-align: center; }
.town-stat-value { display: block; font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: 600; color: white; line-height: 1; letter-spacing: -.02em; }
.town-stat-value.town-stat-hot { color: #f87171; }
.town-stat-label { display: block; font-family: var(--font-system); font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.35); margin-top: .3rem; }
.town-stat-divider { width: 1px; height: 2rem; background: rgba(255,255,255,.1); flex-shrink: 0; }

.town-section { padding: 2.5rem 0; }
.town-section-alt { background: white; border-top: 1px solid var(--border); }
.town-section-inner { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
.town-section-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--navy); letter-spacing: -.015em; margin-bottom: .25rem; }
.town-section-sub { font-family: var(--font-system); font-size: .82rem; color: var(--muted); margin-bottom: 1.25rem; }

/* Town: Responsiveness Leaderboard */
.resp-leaderboard { display: flex; flex-direction: column; gap: .4rem; }
.resp-lb-row { display: flex; align-items: center; gap: .75rem; padding: .65rem .85rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .12s, box-shadow .12s; }
.resp-lb-row:hover { border-color: var(--civic-blue); box-shadow: 0 2px 8px rgba(29,111,164,.08); text-decoration: none; }
.resp-lb-rank { font-size: 1rem; width: 1.5rem; text-align: center; flex-shrink: 0; }
.resp-lb-info { flex: 1; min-width: 0; }
.resp-lb-name { font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resp-lb-bar-track { height: 5px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.resp-lb-bar-fill { height: 100%; border-radius: 999px; transition: width .3s ease; }
.resp-lb-right { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.resp-lb-pct { font-family: var(--font-mono); font-size: .9rem; font-weight: 700; }
.resp-lb-trend { font-size: .8rem; color: var(--muted); }
.resp-lb-trend-up { color: #22c55e; }
.resp-lb-trend-down { color: #ef4444; }
.resp-lb-footnote { font-size: .68rem; color: var(--muted); margin-top: .6rem; }

/* Town: What's Heating Up */
.town-hotspot { background: #fff8f6; border-top: 1px solid #fde8e3; border-bottom: 1px solid #fde8e3; }
.town-hotspot-header { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.town-hotspot-header h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: #c0392b; letter-spacing: -.01em; margin: 0; }
.town-hotspot-icon { font-size: 1.1rem; color: #c0392b; }
.town-hotspot-count { font-size: .7rem; font-weight: 700; color: var(--red); background: var(--red-light); padding: .15rem .5rem; border-radius: 999px; margin-left: auto; }

/* Town: Key Issues (promoted section) */
.town-key-issues-section { background: var(--accent-light); border-top: 1px solid #f5c6b5; border-bottom: 1px solid #f5c6b5; }
.town-key-issues-header { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.town-key-issues-header h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--accent); letter-spacing: -.01em; margin: 0; }
.town-key-issues-icon { font-size: 1.1rem; color: var(--accent); }
.town-key-issues-count { font-size: .7rem; font-weight: 700; color: var(--accent); background: #fde0d5; padding: .15rem .5rem; border-radius: 999px; margin-left: auto; }
.town-key-issue-hidden { display: none; }
.town-key-issues-toggle { display: block; margin: 1rem auto 0; padding: .5rem 1.25rem; font-family: var(--font-system); font-size: .82rem; font-weight: 700; color: var(--accent); background: white; border: 1px solid var(--accent); border-radius: var(--radius); cursor: pointer; transition: background .15s, color .15s; }
.town-key-issues-toggle:hover { background: var(--accent); color: white; }

/* Town: Department Grid */
.town-dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .85rem; }
.town-dept-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.1rem 1.25rem; text-decoration: none; color: var(--text); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; box-shadow: var(--shadow); }
.town-dept-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; border-color: var(--civic-blue); }
.town-dept-card.town-dept-hot { border-left: 3px solid var(--red); }
.town-dept-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.town-dept-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--navy); }
.town-dept-heat-badge { font-size: .65rem; font-weight: 700; color: var(--red); background: var(--red-light); padding: .12rem .45rem; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.town-dept-stats { font-size: .75rem; color: var(--muted); font-weight: 600; }
.town-dept-empty { color: var(--civic-blue); font-style: italic; font-weight: 400; }
.town-dept-highlights { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.town-dept-highlights li { font-size: .73rem; color: var(--text-soft); line-height: 1.4; padding-left: .85rem; position: relative; }
.town-dept-highlights li::before { content: "\2022"; position: absolute; left: 0; color: var(--civic-blue); font-weight: 700; }
.town-dept-cta { margin-top: auto; padding-top: .75rem; font-family: var(--font-system); font-size: .8rem; font-weight: 700; color: var(--accent); }
.town-dept-card:hover .town-dept-cta { text-decoration: underline; }

.index-footer-cta { background: #0a2240; padding: 2.5rem 1.5rem; }
.index-footer-cta-inner { max-width: 860px; margin: 0 auto; }
.index-footer-cta h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: white; margin-bottom: .5rem; }
.index-footer-cta p { font-size: .85rem; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 560px; }

/* ── Department page ── */
.dept-header { background: var(--navy); color: white; }
.dept-header-inner { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.5rem 0; }
.breadcrumb-light { color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.breadcrumb-light a { color: rgba(255,255,255,.6); }
.breadcrumb-light a:hover { color: white; text-decoration: none; }
.dept-header-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; color: white; margin-bottom: .2rem; }
.dept-header-town { font-family: var(--font-system); font-size: var(--text-sm); color: rgba(255,255,255,.5); margin-bottom: 1.5rem; }
.dept-header-stats { display: flex; align-items: center; gap: 0; background: rgba(0,0,0,.2); border-radius: var(--radius) var(--radius) 0 0; margin-top: .5rem; }
.dept-hstat { flex: 1; padding: .9rem 1rem; text-align: center; }
.dept-hstat-value { display: block; font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: 600; color: white; line-height: 1; letter-spacing: -.02em; }
.dept-hstat-label { display: block; font-family: var(--font-system); font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.35); margin-top: .3rem; }
.dept-hstat-div { width: 1px; height: 2rem; background: rgba(255,255,255,.1); flex-shrink: 0; }
/* Community responsiveness bar (dark header) */
.dept-responsiveness { margin-top: 1rem; padding: .75rem 1rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.dept-resp-header { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .35rem; }
.dept-resp-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.7); }
.dept-resp-pct { font-family: var(--font-mono); font-size: var(--text-lg); font-weight: 700; line-height: 1; }
.dept-resp-trend { font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.65); margin-left: auto; }
.dept-resp-trend-up { color: #4ade80; }
.dept-resp-trend-down { color: #f87171; }
.dept-resp-bar { height: 7px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; }
.dept-resp-fill { height: 100%; border-radius: 999px; transition: width .3s ease; }
.dept-resp-detail { font-size: .68rem; color: rgba(255,255,255,.6); margin-top: .35rem; }

.dept-trends-btn { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; text-decoration: none; margin-top: 1.25rem; margin-bottom: 1.5rem; transition: background .12s; }
.dept-trends-btn:hover { background: rgba(255,255,255,.18); text-decoration: none; color: white; }
.dept-body { padding: 2rem 0 3rem; }
.dept-body-inner { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
.dept-feed-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.dept-feed-header h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.dept-feed-header span { font-size: .75rem; color: var(--muted); }

/* ── Upcoming meetings (subdued) ── */
.dept-upcoming { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.dept-upcoming-title { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .5rem; }
.dept-upcoming-list { list-style: none; padding: 0; margin: 0; }
.dept-upcoming-list li { font-size: .82rem; color: var(--muted); padding: .3rem 0; border-bottom: 1px solid var(--border-light, #f1f5f9); }
.dept-upcoming-list li:last-child { border-bottom: none; }
.dept-upcoming-date { font-family: var(--font-mono); font-weight: 600; color: var(--text); margin-right: .5rem; }
.dept-upcoming-detail { color: var(--muted); }

/* ── Donation placements ── */
/* 1. Inline callout — between Controversy and Board Summary */
.donate-inline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; background: var(--accent-light); border: 1px solid #f5cdc0; border-radius: var(--radius); }
.donate-inline-text { font-size: var(--text-sm); color: var(--text); line-height: 1.5; }
.donate-inline-text strong { color: var(--navy); }
.donate-inline-btn { flex-shrink: 0; font-family: var(--font-system); font-size: var(--text-sm); font-weight: 700; background: var(--accent); color: white; padding: .5rem 1.1rem; border-radius: var(--radius); text-decoration: none; transition: background .15s; white-space: nowrap; }
.donate-inline-btn:hover { background: var(--accent-hover); text-decoration: none; color: white; }

/* 2. Sidebar card */
.donate-sidebar-card { text-align: center; padding: 1rem !important; margin-top: .75rem; background: #fafafa; border-color: var(--border); }
.donate-sidebar-icon { font-size: 1.25rem; color: var(--accent); margin-bottom: .35rem; }
.donate-sidebar-text { font-size: .78rem; color: var(--text-soft); line-height: 1.45; margin-bottom: .6rem; }
.donate-sidebar-btn { display: block; font-family: var(--font-system); font-size: .78rem; font-weight: 700; background: var(--accent); color: white; padding: .45rem .75rem; border-radius: var(--radius); text-decoration: none; transition: background .15s; }
.donate-sidebar-btn:hover { background: var(--accent-hover); text-decoration: none; color: white; }

/* 3. Bottom cost banner (already in markup, just style it) */
.report-cost-banner { text-align: center; padding: 1.25rem 1.5rem; margin-top: 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.report-cost-line { font-size: var(--text-sm); color: var(--text); margin-bottom: .25rem; }
.report-cost-line strong { font-family: var(--font-mono); color: var(--navy); }
.cost-breakdown { color: var(--muted); font-size: var(--text-xs); }
.report-cost-cta { font-size: var(--text-sm); color: var(--text-soft); margin-bottom: .75rem; }
.kofi-button { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-system); font-size: var(--text-sm); font-weight: 700; background: var(--accent); color: white; padding: .55rem 1.25rem; border-radius: var(--radius); text-decoration: none; transition: background .15s; }
.kofi-button:hover { background: var(--accent-hover); text-decoration: none; color: white; }

/* ── Fade-in animation ── */
.fade-in-ready { opacity: 0; transform: translateY(16px); transition: opacity .5s cubic-bezier(0.4, 0, 0.2, 1), transform .5s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in-visible { opacity: 1; transform: translateY(0); }

/* ── Temperature-tinted report cards ── */
.index-report-card[data-temp="highly_contentious"] { background: #fff2f0; border-color: #fecaca; }
.index-report-card[data-temp="contentious"] { background: #fff6ef; border-color: #fed7aa; }
.index-report-card[data-temp=""] .index-report-title { color: #374151; }

/* ── Section card (used in trends) ── */
.section-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); scroll-margin-top: 72px; }
.section-card .section-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--navy); margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: .5rem; }

/* ── Mobile TOC ── */
.mobile-toc-toggle { display: none; }
.mobile-toc-panel { display: none; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .fade-in-ready { opacity: 1; transform: none; }
}

/* ── Tablet ── */
@media (max-width: 1024px) {
    .meeting-layout { grid-template-columns: 1fr 200px; gap: 1.5rem; }
    .index-stats-band, .town-stats-band { flex-wrap: wrap; }
    .index-stat, .town-stat { flex: 0 0 50%; }
    .index-stat-divider, .town-stat-divider { display: none; }
    .index-town-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .town-dept-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .index-why-inner { gap: 2rem; }
    .dept-hstat-div { display: none; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .meeting-layout { grid-template-columns: 1fr; }
    .toc-sidebar { display: none; }
    .hero-stats { gap: 1rem; }
    .hero-stat-value { font-size: 1.25rem; }
    .page-hero h1 { font-size: 1.5rem; }
    .meeting-hero h1 { font-size: var(--text-2xl); }
    .meeting-hero { padding: 1.25rem; }
    .report-section { padding: 1.1rem; }
    .section-card { padding: 1.1rem; }
    .dept-grid { grid-template-columns: 1fr; }
    .meeting-row { flex-wrap: wrap; }
    .header-tagline { display: none; }
    .index-hero-inner { padding: 3rem 1.25rem 2.5rem; }
    .index-hero-headline { font-size: var(--text-3xl); }
    .index-why-inner { grid-template-columns: 1fr; gap: 2rem; }
    .index-stats-band, .town-stats-band { flex-wrap: wrap; border-radius: var(--radius); }
    .index-stat, .town-stat { flex: 0 0 50%; }
    .index-stat-divider, .town-stat-divider { display: none; }
    .index-town-grid { grid-template-columns: 1fr; }
    .town-dept-grid { grid-template-columns: 1fr; }
    .index-report-chevron { padding: 0 .75rem; }
    .donate-inline { flex-direction: column; text-align: center; gap: .6rem; }
    .donate-inline-btn { width: 100%; text-align: center; }

    /* Mobile TOC — sticky bottom button + slide-up panel */
    .mobile-toc-toggle { display: flex; align-items: center; justify-content: center; gap: .4rem; position: fixed; bottom: 1rem; right: 1rem; z-index: 200; background: var(--navy); color: white; border: none; border-radius: 999px; padding: .65rem 1.1rem; font-family: var(--font-system); font-size: .78rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
    .mobile-toc-panel { display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 199; background: white; border-top: 2px solid var(--navy); border-radius: 12px 12px 0 0; padding: 1rem 1.25rem 2rem; transform: translateY(100%); transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 -4px 24px rgba(0,0,0,.15); max-height: 60vh; overflow-y: auto; }
    .mobile-toc-panel.mobile-toc-open { transform: translateY(0); }
    .mobile-toc-panel h4 { font-family: var(--font-system); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; }
    .mobile-toc-panel a { display: block; padding: .55rem .5rem; font-size: var(--text-sm); color: var(--text); border-radius: 4px; text-decoration: none; }
    .mobile-toc-panel a:hover, .mobile-toc-panel a:active { background: var(--civic-blue-light); color: var(--civic-blue); }
}

/* ── Report cost / donation banner ── */
.report-cost-banner { text-align: center; padding: 1.25rem 1rem; margin-top: 1.5rem; background: var(--accent-light); border: 1px solid var(--accent); border-radius: var(--radius); }
.report-cost-line { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-soft); margin-bottom: .35rem; }
.report-cost-line strong { color: var(--text); }
.cost-breakdown { font-size: var(--text-xs); color: var(--muted); }
.report-cost-cta { font-family: var(--font-body); font-size: var(--text-sm); color: var(--text-soft); margin-bottom: .75rem; }
.kofi-button { display: inline-block; background: var(--accent); color: white; font-family: var(--font-system); font-size: var(--text-sm); font-weight: 600; padding: .5rem 1.25rem; border-radius: 999px; text-decoration: none; transition: background .15s; }
.kofi-button:hover { background: var(--accent-hover); color: white; }

/* ── Timestamp badges ── */
.ts-badge {
    display: inline-flex; align-items: center; gap: .25rem;
    font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
    color: var(--civic-blue); background: var(--civic-blue-light);
    padding: .15rem .45rem; border-radius: 999px;
    white-space: nowrap; text-decoration: none; flex-shrink: 0;
    transition: background .15s, color .15s;
}
.ts-badge:hover { background: var(--civic-blue); color: white; }
.ts-badge-plain { color: var(--muted); background: #f1f5f9; cursor: default; }
.ts-badge-plain:hover { color: var(--muted); background: #f1f5f9; }

/* ── Topic title row (title + timestamp inline) ── */
.topic-title-row {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: .5rem; flex-wrap: wrap; margin-bottom: .3rem;
}

/* ── Notable statements ── */
.notable-list { display: flex; flex-direction: column; gap: .85rem; }
.notable-item { border: 1px solid var(--border); border-left: 3px solid var(--navy-mid); border-radius: var(--radius); padding: .75rem 1rem; background: var(--card); }
.notable-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.notable-speaker { font-size: .8rem; font-weight: 700; color: var(--navy); }
.notable-quote { font-size: .92rem; color: var(--text); border-left: none; font-style: italic; margin: 0 0 .3rem; padding: 0; }
.notable-context { font-size: .78rem; color: var(--muted); }

/* ── Board Member Positions (meeting page) ── */
.member-positions-summary { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; padding: .5rem .75rem; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.member-grid { display: flex; flex-direction: column; gap: .6rem; }
.member-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.member-card-header { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; }
.member-name-link { font-weight: 600; font-size: .9rem; color: var(--navy); text-decoration: none; }
.member-name-link:hover { text-decoration: underline; }
.member-role-tag { font-size: .7rem; color: var(--muted); }
.member-attendance-badge { margin-left: auto; }
.badge-present { background: var(--green-light); color: var(--green); }
.badge-absent { background: var(--red-light); color: var(--red); }
.badge-unknown { background: #f1f5f9; color: var(--muted); }
.badge-role { background: var(--navy); color: white; font-size: .65rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.member-positions-list { padding: .5rem 1rem .75rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .4rem; }
.member-position-row { display: flex; align-items: center; gap: .6rem; padding: .4rem 0 0; font-size: .83rem; }
.position-issue { flex: 1; min-width: 120px; color: var(--text-soft, var(--text)); }
.position-indicators { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; }
.position-stance { font-size: .75rem; color: var(--muted); padding: .1rem 0 .4rem .25rem; }
.vote-pill-yes { background: var(--green); color: white; font-size: .65rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; white-space: nowrap; }
.vote-pill-no { background: var(--red); color: white; font-size: .65rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; white-space: nowrap; }
.vote-pill-abstain { background: var(--amber); color: white; font-size: .65rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; white-space: nowrap; }
.attribution-explicit { font-size: .65rem; color: var(--civic-blue); font-weight: 600; }
.attribution-inferred { font-size: .65rem; color: var(--amber); font-weight: 600; }
.member-positions-disclaimer { font-size: .72rem; color: var(--muted); font-style: italic; margin-top: .75rem; padding-top: .6rem; border-top: 1px solid var(--border); }

/* Meeting-page responsiveness bar (light bg) */
.meeting-responsiveness { padding: .65rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1.25rem; }
.meeting-resp-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .3rem; }
.meeting-resp-row { display: flex; align-items: center; gap: .6rem; }
.meeting-resp-bar-track { flex: 1; height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.meeting-resp-bar-fill { height: 100%; border-radius: 999px; }
.meeting-resp-pct { font-family: var(--font-mono); font-size: var(--text-lg); font-weight: 700; flex-shrink: 0; }
.meeting-resp-detail { font-size: .65rem; color: var(--muted); margin-top: .25rem; }

/* ── Department Roster (department page) ── */
.dept-roster { margin-bottom: 1.5rem; }
.dept-roster-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .6rem; }

/* Card grid for active members */
.dept-roster-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.roster-card { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); text-decoration: none; color: var(--text); transition: border-color .12s, box-shadow .12s; }
.roster-card:hover { border-color: var(--civic-blue); box-shadow: 0 2px 8px rgba(29,111,164,.1); text-decoration: none; }
.roster-card-dissent { border-left: 3px solid var(--amber); }
.roster-card-top { display: flex; align-items: center; gap: .4rem; }
.roster-card-name { font-weight: 700; font-size: .85rem; color: var(--navy); flex: 1; }
.roster-dissent-badge { font-size: .85rem; line-height: 1; title: attr(title); }
.roster-card-role { font-size: .65rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.roster-card-stats { display: flex; gap: .6rem; margin-top: .15rem; }
.roster-stat { font-size: .7rem; color: var(--muted); }
.roster-card-votes { display: flex; gap: .35rem; margin-top: .1rem; }
.roster-vote-yes { font-size: .6rem; font-weight: 700; color: var(--green); background: var(--green-light); padding: .05rem .35rem; border-radius: 999px; }
.roster-vote-no { font-size: .6rem; font-weight: 700; color: var(--red); background: var(--red-light); padding: .05rem .35rem; border-radius: 999px; }
.roster-vote-abstain { font-size: .6rem; font-weight: 700; color: var(--amber); background: #fef3c7; padding: .05rem .35rem; border-radius: 999px; }
.roster-card-nodata { font-size: .72rem; color: var(--muted); font-style: italic; margin-top: .1rem; }
.roster-card-cta { font-size: .68rem; color: var(--civic-blue); font-weight: 600; margin-top: auto; padding-top: .25rem; }

/* Historical members (still pills) */
.dept-roster-pills { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.dept-roster-pill { display: inline-flex; align-items: center; gap: .35rem; background: #dbeafe; color: var(--navy); font-size: .78rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; text-decoration: none; transition: background .12s; }
.dept-roster-pill:hover { background: #bfdbfe; text-decoration: none; }
.dept-roster-pill-historical { background: #f1f5f9; color: var(--muted); }
.dept-roster-pill-historical:hover { background: #e2e8f0; }
.dept-roster-toggle { background: none; border: 1px dashed var(--border); border-radius: 999px; font-size: .75rem; color: var(--muted); padding: .25rem .7rem; cursor: pointer; margin-top: .6rem; display: block; }
.dept-roster-toggle:hover { background: var(--bg); }
.dept-roster-historical { margin-top: .5rem; }
.hidden { display: none !important; }

/* ── Member Profile Page ── */
.member-hero { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.member-hero h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; letter-spacing: -.02em; color: var(--navy); margin-bottom: .25rem; }
.member-status-line { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.badge-active-member { background: var(--green-light); color: var(--green); }
.badge-former-member { background: #f1f5f9; color: var(--muted); }
.member-term-dates { font-size: .82rem; color: var(--muted); }
.member-vote-breakdown { display: flex; gap: .5rem; margin-top: .75rem; }
.member-meeting-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: .7rem; background: var(--card); }
.member-meeting-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.member-meeting-link { font-weight: 600; color: var(--civic-blue); font-size: .9rem; text-decoration: none; }
.member-meeting-link:hover { text-decoration: underline; }
.member-no-data { color: var(--muted); font-style: italic; font-size: .875rem; padding: 1rem 0; }

/* ── State-grouped nav dropdown ── */
.header-nav-dropdown-state { font-family: var(--font-system); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); padding: .5rem .75rem .2rem; }
.header-nav-dropdown-divider { height: 1px; background: rgba(255,255,255,.1); margin: .25rem .5rem; }

/* ── State group headings on homepage ── */
.index-state-group { margin-bottom: 2.5rem; }
.index-state-heading { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem; }
.index-state-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Coverage map ── */
.index-map-section { padding: 2rem 0; background: #f1f5f9; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.index-map-container { position: relative; max-width: 960px; margin: 0 auto; }
.index-map-container svg { width: 100%; height: auto; display: block; }
.index-map-container svg path { fill: #d1d5db; stroke: #fff; stroke-width: 1; cursor: default; transition: fill .15s; }
.index-map-container svg path.map-covered { fill: var(--civic-blue); cursor: pointer; }
.index-map-container svg path.map-covered:hover { fill: var(--navy-mid); }
.index-map-container svg path.map-uncovered { cursor: pointer; }
.index-map-container svg path.map-uncovered:hover { fill: #9ca3af; }

/* ── Map popover ── */
.map-popover { position: absolute; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: .85rem 1rem; box-shadow: var(--shadow-md); min-width: 200px; max-width: 260px; z-index: 50; font-family: var(--font-system); font-size: .82rem; transform: translate(-50%, -100%); margin-top: -12px; }
.map-popover[aria-hidden="true"] { display: none; }
.map-popover-close { position: absolute; top: .4rem; right: .5rem; background: none; border: none; font-size: 1rem; cursor: pointer; color: var(--muted); line-height: 1; padding: .1rem .3rem; }
.map-popover-state-name { font-weight: 700; color: var(--navy); margin-bottom: .5rem; font-size: .9rem; }
.map-popover-links { display: flex; flex-direction: column; gap: .4rem; }
.map-popover-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--civic-blue); text-decoration: none; padding: .3rem .5rem; border-radius: 4px; border: 1px solid var(--border); }
.map-popover-link:hover { background: var(--civic-blue-light); text-decoration: none; }
.map-popover-link--sponsor { color: var(--accent); border-color: var(--accent-light); }
.map-popover-link--sponsor:hover { background: var(--accent-light); }

@media (max-width: 480px) {
    .map-popover { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: none; top: auto !important; transform: none; margin-top: 0; }
}
