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

:root {
  --bg: #f8f7f4;
  --surface: #f8f7f4;
  --border: #d4d1cb;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --accent: #0a0a0a;
  --highlight: #c4350a;
  --accent-light: #f2f1ed;
  --map-0: #eee9e0;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

html, body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  padding-top: 0;
}

.navbar .navbar_logo,
.navbar .navbar_link .navbar_link-text._1,
.navbar .navbar_link .navbar_link-text._2,
.navbar .button .button_gradient,
.navbar .button .button_gradient-glow {
  visibility: visible !important;
}

.navbar.transparent-nav .navbar_link {
  color: #ffffff;
}

/* Hover slide animation (mirrors Webflow IX3 behavior) */
.navbar_link .navbar_link-text._1,
.navbar_link .navbar_link-text._2 {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar_link:hover .navbar_link-text._1 {
  transform: translateY(-100%);
}

.navbar_link:hover .navbar_link-text._2 {
  transform: translateY(-100%);
}

.track-breadcrumb {
  padding: 40px 48px 0 !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}

.track-hero-section {
  padding: 48px 48px 28px !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}

.track-hero-content {
  max-width: 800px !important;
}

.policy-top-network {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.policy-top-network > *:not(.policy-hero-network) {
  position: relative;
  z-index: 1;
}

.policy-hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.5;
  background: var(--bg);
  z-index: 0;
}

@media (max-width: 991px) {
  .track-breadcrumb { padding: 40px 28px 0 !important; }
  .track-hero-section { padding: 48px 28px 24px !important; }
}

@media (max-width: 767px) {
  .track-breadcrumb { padding: 40px 20px 0 !important; }
  .track-hero-section { padding: 40px 20px 20px !important; }
}

.policy-intro,
.policy-landscape {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.policy-howto-strip,
.policy-watch-strip {
  /* full-bleed background; content aligned with max-width: 1280px sections */
  padding-left: max(48px, calc((100% - 1280px) / 2 + 48px));
  padding-right: max(48px, calc((100% - 1280px) / 2 + 48px));
}

.policy-intro {
  padding-bottom: 56px;
}

.policy-intro-eyebrow,
.policy-landscape-eyebrow,
.policy-howto-label,
.policy-watch-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--highlight);
}

.policy-intro-eyebrow,
.policy-landscape-eyebrow {
  margin-bottom: 20px;
}

.policy-intro-title,
.policy-landscape-title {
  font-family: 'Newsreader', serif;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.policy-intro-title {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.12;
  max-width: 860px;
  margin-bottom: 28px;
}

.policy-intro-lead,
.policy-howto-text,
.policy-landscape-body p,
.policy-watch-strip p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
}

.policy-intro-lead {
  max-width: 980px;
}

.policy-intro-lead-secondary {
  margin-top: 12px;
}

.policy-howto-strip,
.policy-watch-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #f2f0eb;
  padding-top: 36px;
  padding-bottom: 36px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.policy-howto-label {
  margin-bottom: 0;
  padding-top: 3px;
}

.policy-howto-text {
  max-width: 820px;
}

.policy-landscape {
  padding-top: 56px;
  padding-bottom: 56px;
}

.policy-landscape-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  margin-bottom: 28px;
  max-width: 900px;
}

.policy-landscape .stats-bar {
  margin-bottom: 28px;
}

.policy-landscape-body p {
  margin: 0;
}

.policy-landscape-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-bottom: 40px;
}

.policy-watch-label {
  margin-bottom: 0;
  padding-top: 3px;
}

.policy-blob-zone {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.policy-blob-zone > *:not(.ambient-balls) {
  position: relative;
  z-index: 1;
}

.policy-blob-zone .ambient-balls {
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  overflow: visible;
  z-index: 0;
  opacity: 1;
}

.policy-blob-zone .ambient-balls .ball1 {
  top: 32%;
  left: -14%;
  opacity: 0.22;
}

.policy-blob-zone .ambient-balls .ball2 {
  top: -12%;
  right: -17%;
  width: 680px;
  height: 680px;
  opacity: 0.2;
}

.tracker-header,
.filters,
.main-layout {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 96px);
}

.tracker-header {
  padding: 24px 48px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-shrink: 0;
}
.tracker-header h1 {
  font-family: 'Newsreader', serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  text-align: left;
}
#total-badge {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.filters {
  display: flex;
  gap: 12px;
  padding: 12px 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.filter-group label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
select, input[type="text"] {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
  min-width: 140px;
}
select:focus, input[type="text"]:focus {
  border-color: var(--accent);
  background: var(--surface);
}
input[type="text"] { min-width: 220px; }

.clear-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.15s;
  white-space: nowrap;
}
.clear-btn:hover { background: var(--bg); color: var(--text); border-color: #ccc; }

.main-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  min-height: 680px;
  height: 78vh;
  max-height: 860px;
  overflow: hidden;
  margin-bottom: 80px;
}

.map-section {
  padding: 16px 28px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

@media (max-width: 991px) {
  .policy-intro,
  .policy-landscape {
    padding-left: 28px;
    padding-right: 28px;
  }
  .policy-howto-strip {
    padding-left: 28px;
    padding-right: 28px;
  }

  .tracker-header,
  .filters,
  .main-layout {
    width: calc(100% - 56px);
  }

  .tracker-header {
    padding-left: 28px;
    padding-right: 28px;
  }

  .filters { padding-left: 28px; padding-right: 28px; }

  .main-layout {
    height: 72vh;
    min-height: 620px;
  }

  .policy-landscape-body {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 28px;
  }

  .policy-howto-strip,
  .policy-watch-strip {
    grid-template-columns: 180px 1fr;
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .policy-intro,
  .policy-landscape {
    padding-left: 20px;
    padding-right: 20px;
  }
  .policy-howto-strip {
    padding-left: 20px;
    padding-right: 20px;
  }

  .policy-landscape-title,
  .policy-intro-title {
    line-height: 1.16;
  }

  .policy-howto-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .tracker-header,
  .filters,
  .main-layout {
    width: calc(100% - 40px);
  }

  .tracker-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .main-layout {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .policy-watch-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .map-section {
    min-height: 420px;
  }

  .right-panel {
    min-height: 420px;
  }
}

.map-container {
  position: relative;
  flex: 1;
  min-height: 0;
}

#map {
  width: 100%;
  height: 100%;
}

.state-path {
  cursor: pointer;
  transition: opacity 0.15s;
}
.state-path:hover { opacity: 0.75; }
.state-path.selected { stroke: var(--accent) !important; stroke-width: 2px !important; }

.legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.legend-label { font-weight: 500; }
.legend-bar {
  display: flex;
  gap: 2px;
  align-items: center;
}
.legend-swatch {
  width: 28px;
  height: 10px;
  border-radius: 2px;
}

.tooltip {
  position: fixed;
  background: var(--text);
  color: white;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
  z-index: 100;
  white-space: nowrap;
}

.right-panel {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

.panel-header {
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.panel-title {
  font-family: 'Newsreader', serif;
  font-size: 17px;
  font-weight: 400;
}
.panel-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tab-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.recent-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.1s;
}
.recent-item:hover { background: var(--bg); }
.recent-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.recent-item-id {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.recent-item-date {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.recent-item-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 6px;
}
.recent-item-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.pill {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}
.pill.stage-passed { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }
.pill.stage-failed { background: #fce4ec; color: #c62828; border-color: #f8bbd0; }
.pill.stage-progress { background: #fff8e1; color: #e65100; border-color: #ffe0b2; }

.recent-item-link a {
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.recent-item-link a:hover { text-decoration: underline; }

.bills-table-wrap {
  padding: 0;
}
.bills-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.bills-empty strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 6px; }

.bill-row {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  cursor: default;
}
.bill-row:hover { background: var(--bg); }
.bill-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}
.bill-id { font-size: 11px; font-weight: 600; color: var(--accent); }
.bill-state { font-size: 11px; color: var(--muted); }
.bill-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 5px;
}
.bill-meta { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.bill-link { font-size: 11px; color: var(--accent); text-decoration: none; font-weight: 500; }
.bill-link:hover { text-decoration: underline; }

.results-count {
  padding: 10px 20px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  font-weight: 500;
}

#loading {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  flex-direction: column;
  gap: 12px;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading p { font-size: 13px; color: var(--muted); }

/* ── MAP DIVIDER ── */
.map-divider {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.map-divider hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── REPORT CARD ── */
.report-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 48px 80px;
}

.report-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 56px 64px;
}

.report-card-left .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4350a;
  margin-bottom: 20px;
}

.report-card-left h2 {
  font-family: 'Newsreader', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0a0a0a;
  margin-bottom: 20px;
}

.report-card-left p {
  font-size: 15px;
  line-height: 1.8;
  color: #6b6b6b;
  font-weight: 300;
  max-width: 580px;
  margin-bottom: 32px;
}

.report-cta {
  font-size: 14px;
  font-weight: 500;
  color: #0a0a0a;
  text-decoration: none;
  border-bottom: 1px solid #d4d1cb;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.report-cta:hover { border-color: #0a0a0a; }

.report-card-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
  border-left: 1px solid #ede9e0;
  padding-left: 56px;
}

.report-meta {
  font-size: 12px;
  color: #9b9890;
  line-height: 1.7;
}
.report-meta strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b5b2ab;
  margin-bottom: 3px;
}

.report-year {
  font-family: 'Newsreader', serif;
  font-size: 88px;
  font-weight: 300;
  line-height: 1;
  color: #ede9e0;
  letter-spacing: -0.04em;
  padding-left: 24px;
  user-select: none;
}

@media (max-width: 767px) {
  .report-card {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 32px;
  }
  .report-card-right {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
    border-left: none;
    padding-left: 0;
  }
  .report-year { font-size: 56px; }
  .report-section { padding: 40px 20px 60px; }
  .map-divider { padding: 0 20px; }
  .filters { padding: 12px 20px; }
}
