:root {
  --navy: #1a2744;
  --blue: #2d5fa8;
  --accent: #e8813a;
  --accent-text: #a85014; /* darkened for 4.5:1 contrast on light backgrounds */
  --red: #dc2626;
  --warn-text: #92400e;
  --green: #059669;
  --bg: #f5f6f8;
  --card-bg: #ffffff;
  --text: #1e1e1e;
  --muted: #5d6472;
  --border: #e2e5ea;
  --tag-bg: #eef2fb;
  --tag-text: #2d5fa8;
  --warn-bg: #fff7ed;
  --warn-border: #fed7aa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: white;
  padding: 0.6rem 1.1rem;
  z-index: 1000;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 0 6px 0;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
input[type=range]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

header {
  background: var(--navy);
  color: white;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: white; text-decoration: none; }
.logo span { color: var(--accent); }

nav { display: flex; gap: 1rem; align-items: center; }

nav > a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
nav > a:hover, nav > a.active { color: white; border-bottom-color: var(--accent); }

.nav-group { position: relative; }
.nav-group-btn {
  display: flex; align-items: center; gap: 0.3rem;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.8); font-size: 0.875rem; font-weight: 500;
  padding: 4px 0; cursor: pointer; white-space: nowrap;
  transition: color 0.15s, border-color 0.15s; font-family: inherit;
}
.nav-group-btn::after {
  content: ''; display: inline-block;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s;
  margin-left: 1px;
}
.nav-group-btn:hover, .nav-group-btn.active { color: white; border-bottom-color: var(--accent); }
.nav-group.open .nav-group-btn { color: white; border-bottom-color: var(--accent); }
.nav-group.open .nav-group-btn::after { transform: rotate(-135deg) translateY(2px); }

.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); left: 0;
  background: white; border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  min-width: 200px; z-index: 200; padding: 0.4rem 0;
}
.nav-group.open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 0.55rem 1.1rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--navy); text-decoration: none;
  transition: background 0.1s; white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--bg); }
.nav-dropdown a.active { color: var(--blue); background: var(--tag-bg); font-weight: 700; }

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
footer a { color: var(--blue); }

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

@media (max-width: 700px) {
  header { padding: 0 1rem; }
  .menu-btn { display: block; }
  nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 0.75rem 1.5rem 1.25rem; gap: 0; border-top: 1px solid rgba(255,255,255,0.1); z-index: 99; }
  nav.open { display: flex; }
  .nav-group { position: static; }
  .nav-group-btn { display: none; }
  .nav-dropdown { display: block; position: static; background: none; box-shadow: none; padding: 0; border-radius: 0; min-width: 0; }
  .nav-dropdown a, nav > a { display: block; padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.92rem; color: rgba(255,255,255,0.8); white-space: normal; }
  .nav-dropdown a:hover, nav > a:hover { background: none; }
  .nav-dropdown a.active, nav > a.active { color: white; background: none; }
}


/* ============================================================
   CONSOLIDATED PAGE STYLES
   Extracted from per-page <style> blocks
   ============================================================ */

/* ── Shared: .page-header (about.html, sources.html) ── */
.page-header {
  background: var(--navy);
  color: white;
  padding: 3rem 2rem 2.5rem;
  border-bottom: 3px solid var(--accent);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  max-width: 600px;
}

@media (max-width: 600px) {
  .page-header { padding: 2rem 1rem 1.75rem; }
  .page-header h1 { font-size: 1.5rem; }
}

/* ── Shared: .hero base (agendas, budget, calculator, data, meetings, summaries) ── */
/* Note: index.html, capital.html, history.html, whats-next.html each have distinct hero variants handled per-page below */
.hero {
  background: var(--navy);
  color: white;
  padding: 2.5rem 2rem 2rem;
  border-bottom: 3px solid var(--accent);
}

.hero h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.4rem; }
.hero p { color: rgba(255,255,255,0.72); font-size: 0.95rem; max-width: 560px; }

/* ── Shared: sidebar filter layout (agendas.html, meetings.html) ── */
.sidebar { position: sticky; top: 72px; }

.sidebar h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.filter-group { margin-bottom: 1.5rem; }

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.7rem;
  margin-bottom: 2px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.12s;
}

.filter-btn:hover { background: var(--border); }
.filter-btn.active { background: var(--tag-bg); color: var(--blue); font-weight: 600; }

.filter-btn .count {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--border);
  border-radius: 99px;
  padding: 0 6px;
  line-height: 1.6;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.result-count { font-size: 0.875rem; color: var(--muted); }

.search-box {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  width: 220px;
  outline: none;
  transition: border-color 0.15s;
}

.search-box:focus { border-color: var(--blue); }

/* ── Shared: mobile filters (agendas.html, meetings.html) ── */
.mobile-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  scrollbar-width: none;
}

.mobile-filters::-webkit-scrollbar { display: none; }

.mobile-pill {
  flex-shrink: 0;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.mobile-pill.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ── Shared: state message + spinner (agendas, meetings, summaries, property) ── */
.state-msg { text-align: center; padding: 3rem 1rem; color: var(--muted); font-size: 0.9rem; }

.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 0.75rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Shared: .tag (agendas.html) ── */
.tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--tag-bg);
  color: var(--tag-text);
}

.tag.minutes { background: #ecfdf5; color: #059669; }

/* ── Shared: .stat-row / .stat-chip (history.html, whats-next.html) ── */
.stat-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-chip {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
}

.stat-chip .val { font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-chip .lbl { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 0.2rem; }

/* ── Shared: .fn-ref / .footnotes / .fn-back (history.html, whats-next.html) ── */
.fn-ref {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
  font-weight: 700;
}
.fn-ref:hover { text-decoration: underline; }

.footnotes {
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.footnotes h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.footnotes ol {
  margin: 0;
  padding-left: 1.4rem;
}
.footnotes li {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.footnotes li a { color: var(--blue); }
.fn-back {
  font-size: 0.7rem;
  text-decoration: none;
  color: var(--muted);
  margin-left: 0.3rem;
}
.fn-back:hover { color: var(--blue); }

/* ── Shared: .source-note (history.html, whats-next.html) ── */
.source-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1rem;
  line-height: 1.6;
}
.source-note a { color: var(--blue); }

/* ── Shared: .driver-grid / .driver-card (history.html, whats-next.html) ── */
.driver-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}
.driver-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.driver-card .driver-icon { font-size: 1.4rem; margin-bottom: 0.4rem; }
.driver-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
.driver-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ── Shared: .options-grid / .option-card (history.html, whats-next.html) ── */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}
.option-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  text-align: center;
}
.option-card .opt-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.option-card h3 { font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
.option-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* ── Shared: .structural-box (history.html, whats-next.html) ── */
.structural-box {
  background: var(--tag-bg);
  border: 1px solid #c7d7f5;
  border-left: 5px solid var(--blue);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
}
.structural-box h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.structural-box .struct-badge {
  display: inline-block;
  background: var(--blue);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 0.4rem;
  position: relative;
  top: -1px;
}
.structural-box p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #1e2d4a;
  margin-bottom: 0.65rem;
}
.structural-box p:last-child { margin-bottom: 0; }
.structural-box .not-waste {
  background: white;
  border: 1px solid #c7d7f5;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--navy);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.6;
}
.structural-box .not-waste .check { color: var(--green); flex-shrink: 0; font-size: 1.05rem; }

/* ── Shared: .back-to-top (capital.html, whats-next.html) ── */
.back-to-top {
  display: block;
  text-align: right;
  font-size: 0.875rem;
  color: #3f4550;
  text-decoration: none;
  margin-top: 1.5rem;
}
.back-to-top:hover { text-decoration: underline; }


/* ============================================================
   PAGE-SPECIFIC STYLES
   ============================================================ */

/* --- about.html --- */
.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.about-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.about-section p:last-child { margin-bottom: 0; }

.about-section a { color: var(--blue); text-decoration: none; }
.about-section a:hover { text-decoration: underline; }

.link-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.link-btn {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid #d0daf0;
}

.link-btn:hover {
  background: #dde6f7;
  text-decoration: none;
}

/* about.html container */
.about-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

@media (max-width: 600px) {
  .about-container { padding: 2rem 1rem 3rem; }
}


/* --- agendas.html --- */
.agendas-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

.agendas-container > * { min-width: 0; }

#meetings-list { display: flex; flex-direction: column; gap: 0.75rem; }

.meeting-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.meeting-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-color: #c5cdd8; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.card-top > div { flex: 1; min-width: 0; }

.card-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.2rem; }

.card-title { font-weight: 600; font-size: 0.95rem; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--blue); text-decoration: underline; }

.card-desc { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }

.status-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1.5px solid;
}

.status-badge.minutes { color: #059669; border-color: #059669; background: #ecfdf5; }
.status-badge.agenda  { color: var(--blue); border-color: var(--blue); background: var(--tag-bg); }

.card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

@media (max-width: 700px) {
  .agendas-container { grid-template-columns: 1fr; padding: 1rem; gap: 0; }
  .agendas-container .sidebar { position: static; margin-bottom: 0; }
  .agendas-container .filter-group { display: none; }
}

@media (min-width: 701px) {
  .agendas-container ~ * .mobile-filters,
  .agendas-page .mobile-filters { display: none; }
}


/* --- budget.html --- */
.budget-hero { background: var(--navy); color: white; padding: 2.5rem 2rem 2rem; }
.budget-hero h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.4rem; }
.budget-hero p { color: rgba(255,255,255,0.72); font-size: 0.95rem; max-width: 580px; }

.budget-container { max-width: 1060px; margin: 0 auto; padding: 2rem 1.5rem; }

.year-tabs {
  display: flex; gap: 0.4rem; margin-bottom: 1.5rem; flex-wrap: wrap;
  align-items: center;
}
.year-tab {
  padding: 0.4rem 1rem; border-radius: 6px;
  border: 1px solid var(--border); background: white;
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all 0.12s;
}
.year-tab:hover { border-color: var(--blue); color: var(--blue); }
.year-tab.active { background: var(--navy); border-color: var(--navy); color: white; }
.year-tab-note { font-size: 0.78rem; color: var(--muted); margin-left: 0.5rem; font-style: italic; }

.total-callout {
  font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem;
}
.total-callout strong { font-size: 1.4rem; color: var(--navy); font-weight: 800; }

.explorer-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.budget-chart-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem;
}

.budget-chart-card h2 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin-bottom: 1rem;
}

.donut-wrap {
  position: relative; max-width: 320px; margin: 0 auto;
}

.donut-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; pointer-events: none;
}
.donut-center-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.donut-center-value { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.15; }
.donut-center-pct { font-size: 0.85rem; color: var(--accent-text); font-weight: 700; }

.back-btn {
  display: none; align-items: center; gap: 0.4rem;
  background: none; border: none; color: var(--blue);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  margin-bottom: 0.75rem; padding: 0;
}
.back-btn.visible { display: flex; }

.cat-list { display: flex; flex-direction: column; gap: 0; }

.cat-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.85rem; border-radius: 8px;
  cursor: pointer; transition: background 0.1s;
  border: 1px solid transparent;
}
.cat-item:hover { background: var(--bg); }
.cat-item.active { background: var(--tag-bg); border-color: var(--blue); }

.cat-swatch {
  width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0;
}

.cat-info { flex: 1; min-width: 0; }
.cat-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.cat-sub { font-size: 0.75rem; color: var(--muted); }

.cat-right { text-align: right; flex-shrink: 0; }
.cat-amount { font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.cat-pct { font-size: 0.72rem; color: var(--muted); }

.cat-arrow { color: var(--muted); font-size: 0.75rem; flex-shrink: 0; }
.cat-arrow.hidden { visibility: hidden; }

.trend-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem; margin-top: 1.5rem;
}
.trend-header {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.trend-title {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted);
}
.trend-subject {
  font-size: 1rem; font-weight: 700; color: var(--navy);
}

@media (max-width: 820px) {
  .explorer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .budget-container { padding: 1rem; }
}


/* --- calculator.html --- */
.calc-hero { background: var(--navy); color: white; padding: 2rem 2rem 1.5rem; }
.calc-hero h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.3rem; }
.calc-hero p { color: rgba(255,255,255,0.7); font-size: 0.92rem; max-width: 620px; }

.calc-container { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }

.lookup-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
}

.lookup-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--navy); }
.lookup-card .lookup-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }

.lookup-input-wrap {
  position: relative;
}

#addr-input {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s;
}

#addr-input:focus { border-color: var(--blue); }

#addr-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  z-index: 50;
  max-height: 240px;
  overflow-y: auto;
  display: none;
}

#addr-results.open { display: block; }

.addr-result {
  padding: 0.65rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
}

.addr-result:last-child { border-bottom: none; }
.addr-result:hover { background: var(--bg); }

.addr-result-addr { font-weight: 600; color: var(--navy); }
.addr-result-val { color: var(--muted); white-space: nowrap; font-size: 0.82rem; }

.lookup-selected {
  margin-top: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  font-size: 0.83rem;
  color: var(--green);
  display: none;
}

.lookup-selected.visible { display: block; }

.slider-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.slider-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--navy); }

.slider-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.slider-label { font-size: 0.85rem; color: var(--muted); min-width: 110px; }

input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}

.slider-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-text);
  min-width: 70px;
  text-align: right;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.impact-card.featured { grid-column: span 1; }

.featured-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-text);
  line-height: 1;
}

.impact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}

.impact-card.highlight { border-color: var(--accent); background: #fff8f3; }
.impact-card.good { border-color: var(--green); background: #f0fdf4; }
.impact-card.bad { border-color: var(--red); background: #fef2f2; }

.impact-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.impact-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.impact-num.accent { color: var(--accent-text); }
.impact-num.green { color: var(--green); }
.impact-num.red { color: var(--red); }

.impact-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.calc-chart-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.calc-chart-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.calc-chart-card p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.assumptions {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.assumptions strong { color: var(--text); }

.assumptions ul { margin: 0.4rem 0 0 1.1rem; }
.assumptions li { margin-bottom: 0.2rem; }

@media (max-width: 700px) {
  .calc-container { padding: 1rem; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .slider-row { flex-wrap: wrap; }
}


/* --- capital.html --- */
.capital-hero {
  background: var(--navy);
  color: white;
  padding: 3rem 2rem 2.5rem;
  border-bottom: 3px solid var(--accent);
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.capital-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.capital-hero p { color: rgba(255,255,255,0.72); font-size: 1rem; max-width: 660px; margin: 0; }

.capital-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.section-title:first-of-type { margin-top: 0; }

.body-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.capital-structural-box {
  background: #f0f4fb;
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}
.capital-structural-box p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 0.6rem;
}
.capital-structural-box p:last-child { margin-bottom: 0; }

.fund-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 2rem 0 0.5rem;
}

.project-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.project-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
}

.project-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}

.project-table tr:last-child td { border-bottom: none; }

.project-table .cost {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.project-table .note {
  font-size: 0.8rem;
  color: var(--muted);
}

.tbd { color: var(--muted); font-style: italic; font-weight: 400; }

.capital-chart-wrap {
  position: relative;
  height: 280px;
  margin: 1.5rem 0 0.5rem;
}

.chart-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.pressure-box {
  background: var(--warn-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}
.pressure-box p {
  font-size: 0.9rem;
  color: #6b4c1e;
  line-height: 1.7;
  margin: 0 0 0.6rem;
}
.pressure-box p:last-child { margin-bottom: 0; }

.tbd-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.tbd-list li {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text);
}

.tbd-list li span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.source-line {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

.source-line a { color: var(--blue); }

@media (max-width: 700px) {
  .capital-hero { padding: 2rem 1rem 1.5rem; }
  .capital-hero h1 { font-size: 1.45rem; }
  .capital-container { padding: 2rem 1rem; }
  .tbd-list { grid-template-columns: 1fr; }
  .project-table .note { display: none; }
}


/* --- data.html --- */
/* data.html uses a different --green shade, scoped locally */
.data-page { --green: #2e7d32; }

.data-hero { background: var(--navy); color: white; padding: 2.5rem 2rem 2rem; }
.data-hero h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.4rem; }
.data-hero p { color: rgba(255,255,255,0.72); font-size: 0.95rem; max-width: 600px; }

.data-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section-header {
  margin: 2.5rem 0 1rem;
}

.section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.section-header p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}

.chart-card.full { grid-column: 1 / -1; }

.chart-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.chart-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.chart-wrap {
  position: relative;
  height: 220px;
}

.chart-wrap.tall { height: 260px; }

.sustain-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.sustain-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}

.sustain-table th:not(:first-child) { text-align: right; }

.sustain-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.sustain-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

.sustain-table tr:last-child td { border-bottom: none; }

.trend-up   { color: var(--green); }
.trend-down { color: #c62828; }

.doc-links { display: flex; flex-direction: column; gap: 0.5rem; }

.doc-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.12s, border-color 0.12s;
}

.doc-link:hover { background: var(--tag-bg); border-color: var(--blue); }

.sources {
  margin-top: 2rem;
  font-size: 0.77rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  line-height: 1.8;
}

@media (max-width: 700px) {
  .data-container { padding: 1rem; }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-card.full { grid-column: unset; }
}


/* --- history.html --- */
.history-hero {
  background: var(--navy);
  color: white;
  padding: 3rem 2rem 2.5rem;
  border-bottom: 3px solid var(--accent);
}
.history-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.history-hero p { color: rgba(255,255,255,0.72); font-size: 1rem; max-width: 620px; }

.history-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.summary-box {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
  font-size: 0.95rem;
  line-height: 1.7;
}
.summary-box p + p { margin-top: 0.75rem; }

.history-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.timeline { position: relative; padding-left: 2rem; margin-bottom: 3rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--border);
  border-radius: 3px;
}

.timeline-entry { position: relative; margin-bottom: 2.5rem; }
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue);
  border: 2.5px solid white;
  box-shadow: 0 0 0 2px var(--blue);
}
.timeline-entry.warn::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.timeline-entry.crisis::before { background: var(--red); box-shadow: 0 0 0 2px var(--red); }

.timeline-year {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.timeline-entry.warn .timeline-year { color: var(--accent); }
.timeline-entry.crisis .timeline-year { color: var(--red); }

.timeline-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.timeline-body { font-size: 0.9rem; color: #374151; line-height: 1.65; }
.timeline-body p + p { margin-top: 0.6rem; }
.timeline-body ul { margin: 0.5rem 0 0.5rem 1.25rem; }
.timeline-body li { margin-bottom: 0.25rem; }

blockquote {
  margin: 0.75rem 0;
  padding: 0.7rem 1rem 0.7rem 1rem;
  border-left: 3px solid var(--blue);
  background: var(--tag-bg);
  border-radius: 0 6px 6px 0;
  font-size: 0.875rem;
  color: var(--navy);
  font-style: italic;
  line-height: 1.55;
}
blockquote.warn { border-left-color: var(--accent); background: var(--warn-bg); color: var(--warn-text); }
blockquote cite {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
}

.chart-section { margin-bottom: 3rem; }
.history-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.history-chart-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.history-chart-card.full { grid-column: 1 / -1; }
.history-chart-card h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.gap-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 3rem; }
.gap-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
}
.gap-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.gap-table tr:last-child td { border-bottom: none; }
.gap-table .gap-cell { font-weight: 700; color: var(--red); }
.gap-table .year-cell { font-weight: 600; color: var(--navy); }

@media (max-width: 700px) {
  .history-hero { padding: 2rem 1rem 1.5rem; }
  .history-hero h1 { font-size: 1.45rem; }
  .history-container { padding: 2rem 1rem; }
  .history-chart-grid { grid-template-columns: 1fr; }
  .driver-grid { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 0.75rem; }
  .stat-chip .val { font-size: 1.3rem; }
}


/* --- index.html --- */
.index-hero {
  background: var(--navy);
  color: white;
  padding: 4rem 2rem 3.5rem;
  border-bottom: 3px solid var(--accent);
  text-align: center;
}

.index-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.index-hero h1 span { color: var(--accent); }

.index-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-stat-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat { text-align: center; }

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-stat-connector {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.38);
  margin-top: 2rem;
  margin-bottom: -0.75rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.featured-card {
  background: var(--navy);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,39,68,0.18);
}

.featured-card .fc-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.1rem;
}

.featured-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

.featured-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  flex: 1;
}

.featured-card .fc-arrow {
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.index-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.nav-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
}

.nav-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.nav-card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.nav-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.nav-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.nav-card .card-arrow {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
}

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .index-hero { padding: 2.5rem 1rem 2rem; }
  .index-hero h1 { font-size: 1.8rem; }
  .hero-stat-row { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.5rem; }
  .index-container { padding: 2rem 1rem; }
  .featured-grid { grid-template-columns: 1fr; }
}


/* --- meetings.html --- */
.meetings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

.meetings-container > * { min-width: 0; }

#calendar-list { display: flex; flex-direction: column; gap: 0.75rem; }

.event-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.event-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-color: #c5cdd8; }

.event-date-block {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  padding: 6px 4px;
}

.event-date-block .month { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; }
.event-date-block .day  { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.event-date-block .dow  { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }

.event-body { flex: 1; min-width: 0; }

.event-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.event-title a { color: var(--text); text-decoration: none; }
.event-title a:hover { color: var(--blue); }

.event-detail { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }

.event-meet { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.meet-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--blue);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  transition: background 0.12s;
}

.meet-btn:hover { background: #1e4a8a; }
.meet-dial { font-size: 0.8rem; color: var(--muted); }

@media (max-width: 700px) {
  .meetings-container { grid-template-columns: 1fr; padding: 1rem; gap: 0; }
  .meetings-container .sidebar { position: static; margin-bottom: 0; }
  .meetings-container .filter-group { display: none; }
}

@media (min-width: 701px) {
  .meetings-page .mobile-filters { display: none; }
}


/* --- property.html --- */

/* Address search */
.map-search-box {
  position: relative;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.map-search-box .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.75rem;
  pointer-events: none;
}

#addr-search {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem 0.6rem 2.1rem;
  font-size: 0.8rem;
  border: none;
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

#addr-search:focus {
  background: #f0f4ff;
}

#search-results {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: calc(100% - 4px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 240px;
  overflow-y: auto;
}

#search-results[hidden] { display: none; }

#search-results li {
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

#search-results li:last-child { border-bottom: none; }
#search-results li:hover { background: var(--tag-bg); }

/* Parcel detail panel */
.parcel-panel {
  margin: 0.75rem;
  padding: 0.75rem;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  font-size: 0.78rem;
}

.parcel-panel-close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 2px 4px;
  line-height: 1;
}

.parcel-panel-close:hover { color: var(--text); }

.parcel-panel-addr {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
  padding-right: 1.5rem;
}

.parcel-panel-cat {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.property-page html,
.property-page body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
.property-page header { position: relative; z-index: 10; flex-shrink: 0; }

.map-page-wrap {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px);
}

.map-stats-bar {
  background: var(--navy);
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#app {
  flex: 1;
  display: flex;
  min-height: 0;
}

#sidebar {
  width: 240px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 5;
  display: flex;
  flex-direction: column;
}


.stat-chip .stat-num { font-size: 0.95rem; font-weight: 700; color: white; }
.stat-chip .stat-label { font-size: 0.62rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.05em; }

.sidebar-body { padding: 1rem; flex: 1; }

.panel-section { margin-bottom: 1.25rem; }
.panel-section h3 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.color-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.35rem 0.6rem;
  margin-bottom: 2px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 5px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.1s;
}
.color-btn:hover { background: var(--bg); }
.color-btn.active {
  background: #eef2fb;
  color: var(--blue);
  font-weight: 600;
  border-color: #c7d4f0;
}

.property-filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 0.3rem 0.55rem;
  margin-bottom: 2px;
  border: none;
  background: transparent;
  border-radius: 5px;
  font-size: 0.76rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.1s;
}
.property-filter-btn:hover { background: var(--bg); }
.property-filter-btn.active { background: #eef2fb; color: var(--blue); font-weight: 600; }
.property-filter-btn .cnt { font-size: 0.65rem; color: var(--muted); }

.legend-bar {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #4caf50, #cddc39, #ffc107, #f44336, #9c27b0);
  margin-bottom: 4px;
  margin-top: 0.5rem;
}
.legend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--muted);
}

#map { position: absolute; inset: 0; }

.tooltip {
  position: absolute;
  z-index: 20;
  background: rgba(255,255,255,0.97);
  color: #1a2744;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.78rem;
  pointer-events: none;
  max-width: 230px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: none;
}
.tooltip-addr { font-weight: 700; margin-bottom: 0.35rem; font-size: 0.82rem; line-height: 1.3; }
.tooltip-row { display: flex; justify-content: space-between; gap: 1rem; color: #555; margin-bottom: 0.18rem; }
.tooltip-row span:last-child { color: #1a2744; font-weight: 600; }
.tooltip-cat { font-size: 0.68rem; color: var(--accent); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.06em; }

#loading-msg {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  z-index: 30;
  flex-direction: column;
  gap: 0.75rem;
}
.property-spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.section-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

@media (max-width: 700px) {
  #sidebar { display: none; }
}


/* --- sources.html --- */
.sources-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.bib-section {
  margin-bottom: 3rem;
}

.bib-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.bib-entry {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0 0.75rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.bib-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 0.15rem;
  text-align: right;
}

.bib-body {}

.bib-title {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.bib-meta {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.bib-meta a {
  color: var(--blue);
  text-decoration: none;
}

.bib-meta a:hover { text-decoration: underline; }

.bib-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--tag-bg);
  color: var(--blue);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  margin-top: 0.35rem;
}

.bib-tag.tag-official { background: #eef6ee; color: #2e7d32; }
.bib-tag.tag-law { background: #fef3e2; color: #b45309; }
.bib-tag.tag-external { background: var(--tag-bg); color: var(--blue); }

.used-in {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.used-in a {
  color: var(--blue);
  text-decoration: none;
}

.used-in a:hover { text-decoration: underline; }

.disclaimer-box {
  background: var(--warn-bg);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: #6b4c1e;
  margin-bottom: 3rem;
}


/* --- summaries.html --- */
.summaries-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.summaries-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

.ai-notice {
  background: var(--warn-bg);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  font-size: 0.875rem;
  color: #6b4c1e;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.ai-notice a { color: #b45309; }

#summaries-list { display: flex; flex-direction: column; gap: 1rem; }

.summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.3rem 1.4rem;
}

.summary-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.ai-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--tag-bg);
  color: var(--tag-text);
}

.meta-badges { display: flex; align-items: center; gap: 0.5rem; }

.body-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--tag-bg);
  color: var(--navy);
}
.body-badge.school { background: #fdf2f8; color: #be185d; }

.filter-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.12s;
}
.filter-pill:hover { border-color: var(--blue); color: var(--blue); }
.filter-pill.active { background: var(--navy); border-color: var(--navy); color: white; }

.summary-headline {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.summary-bullets {
  margin: 0 0 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text);
}

.summary-bullets li { margin-bottom: 0.3rem; }

.summary-votes {
  background: var(--bg);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.summary-votes h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.summary-votes ul { margin-left: 1.1rem; font-size: 0.85rem; }
.summary-votes li { margin-bottom: 0.25rem; }

.summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.summary-footer a { color: var(--blue); text-decoration: none; font-weight: 500; }
.summary-footer a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .summaries-container { padding: 1rem; }
}


/* --- whats-next.html --- */
.whatsnext-hero {
  background: var(--navy); color: white;
  padding: 3rem 2rem 2.5rem;
  border-bottom: 3px solid var(--accent);
}
.whatsnext-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.whatsnext-hero p { color: rgba(255,255,255,0.72); font-size: 1rem; max-width: 620px; }

.whatsnext-container { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem; }

.whatsnext-section-title {
  font-size: 1.35rem; font-weight: 800; color: var(--navy);
  margin-bottom: 1.5rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.page-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: white;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
}

.page-nav a:hover {
  background: var(--navy);
  color: white;
}

.whatsnext-back-to-top {
  display: block;
  text-align: right;
  font-size: 0.875rem;
  color: #3f4550;
  text-decoration: none;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.whatsnext-back-to-top:hover { color: var(--blue); }

.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; color: var(--blue); text-decoration: none;
  margin-bottom: 2rem; font-weight: 500;
}
.back-link:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .whatsnext-hero { padding: 2rem 1rem 1.5rem; }
  .whatsnext-hero h1 { font-size: 1.45rem; }
  .whatsnext-container { padding: 2rem 1rem; }
  .options-grid { grid-template-columns: 1fr; }
  .driver-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 0.75rem; }
  .stat-chip .val { font-size: 1.3rem; }
}
