:root {
  color-scheme: light;
  --bg: #f7f8f8;
  --panel: #ffffff;
  --panel-strong: #f1f4f4;
  --ink: #19262d;
  --muted: #858a8f;
  --brand-dark: #19262d;
  --brand-blue-gray: #2d3f4a;
  --brand-gray: #858a8f;
  --brand-gray-dark: #4c636e;
  --brand-gold: #ffbc39;
  --brand-gold-light: #ffd088;
  --brand-teal: #00af9d;
  --brand-teal-dark: #009485;
  --brand-red: #cd3926;
  --brand-red-bright: #ff2c39;
  --white: #ffffff;
  --line: rgba(25, 38, 45, 0.14);
  --legislation: var(--brand-teal);
  --projects: #c93827;
  --meetings: var(--brand-red);
  --misc: var(--brand-gray);
  --shadow: 0 18px 46px rgba(25, 38, 45, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Outfit, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(45, 63, 74, 0.06), transparent 360px),
    linear-gradient(135deg, var(--white) 0%, var(--panel-strong) 52%, var(--white) 100%);
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 18px clamp(16px, 3vw, 44px) 44px;
}

a {
  color: inherit;
}

.orientation-advice {
  display: none;
}

.return-to-timeline {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid color-mix(in srgb, var(--brand-teal) 54%, var(--line));
  border-radius: 999px;
  color: var(--white);
  background: var(--brand-dark);
  box-shadow: 0 14px 34px rgba(25, 38, 45, 0.24);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.return-to-timeline:hover,
.return-to-timeline:focus {
  background: var(--brand-teal-dark);
  transform: translateY(-2px);
}

.brand-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 76px;
  padding: 12px 0 20px;
}

.brand-mark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--brand-dark);
  text-decoration: none;
}

.brand-mark img {
  display: block;
  width: clamp(190px, 22vw, 270px);
  height: auto;
}

.brand-mark small {
  display: block;
}

.brand-mark small {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.quick-nav a {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 260px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(25, 38, 45, 0.98), rgba(45, 63, 74, 0.94)),
    linear-gradient(90deg, var(--brand-teal), var(--brand-gold), var(--brand-red));
  box-shadow: var(--shadow);
}

.hero--compact {
  min-height: 210px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h1,
.hero__stats span {
  font-family: "Barlow Condensed", Outfit, sans-serif;
  text-transform: uppercase;
}

.hero__lede {
  max-width: 660px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  line-height: 1.55;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.hero__stats div {
  min-height: 88px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.hero__stats span {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
}

.hero__stats small {
  color: rgba(255, 255, 255, 0.72);
}

.controls,
.timeline-panel,
.details-grid {
  animation: rise-in 680ms cubic-bezier(0.2, 0.9, 0.18, 1) both;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-control-group {
  display: grid;
  gap: 10px;
}

.filter-instruction {
  margin: 0;
  color: var(--brand-gray-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.filter-button,
.ghost-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.filter-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 0 14px;
}

.filter-button--financial {
  border-style: dashed;
}

.filter-button strong {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--white);
  background: var(--category-color);
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
}

.filter-button::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--category-color);
  content: "";
  box-shadow: 0 0 18px var(--category-color);
}

.filter-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 63, 74, 0.36);
}

.filter-button[aria-pressed="false"] {
  color: var(--muted);
  background: var(--panel-strong);
}

.timeline-subfilters {
  display: grid;
  flex-basis: 100%;
  gap: 8px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--brand-teal) 32%, var(--line));
  border-radius: 8px;
  background: var(--panel-strong);
}

.timeline-subfilters__header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--brand-gray-dark);
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-subfilters__header button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font: inherit;
}

.timeline-subfilters__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subfilter-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--category-color) 42%, var(--line));
  border-radius: 999px;
  color: var(--brand-gray-dark);
  background: var(--white);
  cursor: pointer;
  font-family: "Fira Code", monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.subfilter-button strong {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--white);
  background: var(--category-color);
  font-size: 0.66rem;
  text-align: center;
}

.subfilter-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--category-color);
}

.subfilter-button[aria-pressed="true"] strong {
  color: var(--category-color);
  background: var(--white);
}

.zoom-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.zoom-control output {
  min-width: 76px;
  color: var(--ink);
  text-align: right;
}

input[type="range"] {
  accent-color: var(--brand-teal);
}

.timeline-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 175, 157, 0.1), transparent 34%),
    var(--white);
  box-shadow: var(--shadow);
}

.time-ruler {
  display: none;
}

.ruler-year {
  position: absolute;
  top: 17px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.ruler-year::before {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 1px;
  height: 14px;
  background: var(--line);
  content: "";
}

.timeline-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: var(--brand-teal) rgba(25, 38, 45, 0.08);
}

.timeline-track {
  --timeline-axis-y: calc(100% - 62px);
  position: relative;
  min-width: 100%;
  height: 760px;
  isolation: isolate;
  transition: width 320ms ease;
}

.timeline-track::before {
  position: absolute;
  top: var(--timeline-axis-y);
  left: 0;
  right: 0;
  z-index: 0;
  height: 18px;
  transform: translateY(-50%);
  border-block: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(25, 38, 45, 0.18), var(--brand-teal), rgba(25, 38, 45, 0.18));
  box-shadow: 0 10px 28px rgba(0, 175, 157, 0.2);
  content: "";
}

.timeline-track::after {
  position: absolute;
  top: var(--timeline-axis-y);
  left: 0;
  right: 0;
  z-index: 1;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.72);
  content: "";
}

.financial-chart {
  position: absolute;
  inset: 24px 0 54px;
  z-index: 1;
  width: 100%;
  height: calc(100% - 78px);
  overflow: visible;
  pointer-events: none;
}

.financial-chart__grid {
  stroke: rgba(25, 38, 45, 0.1);
  stroke-width: 0.18;
}

.financial-chart__area {
  opacity: 0.18;
}

.financial-chart__line {
  fill: none;
  stroke: var(--series-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5.4;
  opacity: 0.86;
  filter: drop-shadow(0 6px 10px rgba(25, 38, 45, 0.12));
}

.financial-chart-legend {
  position: sticky;
  left: 16px;
  z-index: 8;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0 16px;
  pointer-events: none;
}

.financial-chart-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(25, 38, 45, 0.08);
}

.financial-chart-legend span::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--series-color);
  content: "";
}

.financial-chart-axis {
  position: absolute;
  top: 24px;
  bottom: 54px;
  left: 10px;
  z-index: 1;
  width: 70px;
  pointer-events: none;
}

.financial-chart-axis span {
  position: absolute;
  left: 0;
  transform: translateY(50%);
  color: rgba(25, 38, 45, 0.58);
  font-family: "Fira Code", monospace;
  font-size: 0.62rem;
  font-weight: 800;
}

.financial-chart-points {
  position: absolute;
  inset: 24px 0 54px;
  z-index: 7;
  pointer-events: none;
}

.financial-chart__point {
  position: absolute;
  width: 14px;
  height: 14px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--series-color);
  box-shadow: 0 6px 16px rgba(25, 38, 45, 0.18);
  cursor: pointer;
  pointer-events: auto;
}

.financial-chart__point:focus-visible {
  outline: 3px solid rgba(25, 38, 45, 0.32);
  outline-offset: 3px;
}

.financial-chart__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 30;
  display: none;
  min-width: 150px;
  padding: 9px 10px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  font-family: Outfit, sans-serif;
  font-size: 0.76rem;
  line-height: 1.25;
  text-align: left;
}

.financial-chart__tooltip strong,
.financial-chart__tooltip span,
.financial-chart__tooltip b {
  display: block;
}

.financial-chart__tooltip strong {
  color: var(--series-color);
  font-family: "Fira Code", monospace;
  font-size: 0.7rem;
}

.financial-chart__tooltip b {
  margin-top: 3px;
}

.financial-chart__point:hover .financial-chart__tooltip,
.financial-chart__point:focus-visible .financial-chart__tooltip,
.financial-chart__point.is-active .financial-chart__tooltip {
  display: block;
}

.timeline-year {
  position: absolute;
  top: var(--timeline-axis-y);
  z-index: 4;
  min-width: 54px;
  padding: 4px 7px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: var(--white);
  background: var(--brand-dark);
  box-shadow: 0 8px 20px rgba(25, 38, 45, 0.18);
  font-family: "Fira Code", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.timeline-stem {
  position: absolute;
  left: 0;
  z-index: 3;
  width: 1px;
  height: var(--stem-height);
  transform: translateX(-50%);
  background: var(--category-color);
  pointer-events: none;
}

.timeline-stem[data-lane-side="top"] {
  top: calc(var(--timeline-axis-y) - var(--stem-height));
}

.timeline-stem[data-lane-side="bottom"] {
  top: var(--timeline-axis-y);
}

.timeline-dot {
  position: absolute;
  top: var(--timeline-axis-y);
  left: 0;
  z-index: 5;
  width: 17px;
  height: 17px;
  transform: translate(-50%, -50%);
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--category-color);
  box-shadow: 0 0 24px var(--category-color);
  pointer-events: none;
}

.timeline-dot.is-active {
  z-index: 8;
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--category-color) 28%, transparent),
    0 0 34px var(--category-color);
}

.event-node {
  --lane-offset: -150px;
  position: absolute;
  top: calc(var(--timeline-axis-y) + var(--lane-offset));
  z-index: 6;
  width: 180px;
  min-height: 94px;
  max-height: 116px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--category-color) 48%, var(--line));
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(25, 38, 45, 0.16);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 190ms ease, background 190ms ease, border-color 190ms ease, width 190ms ease, max-height 190ms ease;
  animation: pop-in 520ms cubic-bezier(0.2, 0.9, 0.18, 1) both;
}

.event-node[data-category="projects"] {
  border-width: 2px;
  background:
    linear-gradient(180deg, rgba(201, 56, 39, 0.14), transparent 52%),
    var(--white);
}

.event-node[data-category="projects"] .event-node__category {
  color: #c93827;
}

.event-node:hover,
.event-node:focus-visible,
.event-node.is-active {
  z-index: 10;
  transform: translate(-50%, -50%) scale(1.05);
  background: var(--panel-strong);
  border-color: var(--category-color);
}

.event-node.is-active {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--category-color) 34%, transparent),
    0 18px 40px rgba(25, 38, 45, 0.2);
}

.event-node:hover,
.event-node:focus-visible {
  z-index: 20;
  width: min(390px, 86vw);
  max-height: 500px;
  overflow-y: auto;
}

.event-node__meta {
  display: block;
  margin-bottom: 6px;
  color: var(--category-color);
  font-family: "Fira Code", monospace;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-node__title {
  display: block;
  line-height: 1.22;
  font-weight: 800;
  font-size: 0.76rem;
}

.event-node__sponsors {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.event-node__bullets {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.68rem;
  line-height: 1.3;
}

.event-node__bullets span {
  position: relative;
  padding-left: 11px;
}

.event-node__bullets span::before {
  position: absolute;
  left: 0;
  color: var(--category-color);
  content: "-";
}

.event-node__category {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-node__hover {
  display: none;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.event-node:hover .event-node__hover,
.event-node:focus-visible .event-node__hover {
  display: grid;
}

.event-node__hover-section {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.38;
}

.event-node__hover-section strong {
  color: var(--ink);
  font-family: "Fira Code", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.pdf-link {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--category-color) 42%, var(--line));
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.pdf-link:hover {
  border-color: var(--category-color);
  background: var(--panel-strong);
}

.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.source-documents-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--brand-teal);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.source-documents-button:hover {
  background: var(--panel-strong);
}

.source-documents-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 18px;
  margin-top: 18px;
}

.detail-panel,
.event-list,
.report-section {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.detail-panel {
  padding: clamp(20px, 3vw, 34px);
}

.detail-panel__kicker {
  color: var(--detail-color, var(--brand-gold));
  font-family: "Fira Code", monospace;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.detail-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.event-navigator {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.event-navigator label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--brand-gray-dark);
  font-family: "Fira Code", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-navigator select {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  text-transform: none;
}

.event-navigator__buttons {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.event-navigator__buttons button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--detail-color, var(--brand-teal)) 46%, var(--line));
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
}

.event-navigator__buttons button:hover:not(:disabled) {
  color: var(--white);
  background: var(--detail-color, var(--brand-teal));
}

.event-navigator__buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.event-navigator__buttons strong {
  min-width: 86px;
  color: var(--brand-gray-dark);
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  text-align: center;
}

.change-bullets {
  margin-top: 22px;
}

.change-bullets h3 {
  margin: 0 0 10px;
  font-size: 0.94rem;
  text-transform: uppercase;
}

.change-bullets ul,
.source-notes ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.55;
}

.change-bullets li + li,
.source-notes li + li {
  margin-top: 8px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.source-notes {
  margin-top: 18px;
  color: var(--muted);
}

.source-notes summary {
  cursor: pointer;
  font-weight: 800;
}

.source-notes ul {
  margin-top: 10px;
  color: var(--muted);
  font-family: "Fira Code", monospace;
  font-size: 0.82rem;
}

.detail-meta li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel-strong);
  font-family: "Fira Code", monospace;
  font-size: 0.84rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.event-list {
  padding: 18px;
}

.event-list__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.event-list__header h2 {
  margin-bottom: 0;
  font-size: 1rem;
}

.ghost-button {
  padding: 0 14px;
}

.list-item {
  display: block;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.list-item span {
  display: block;
  color: var(--muted);
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.list-item strong {
  display: block;
  margin-top: 4px;
  line-height: 1.25;
}

.empty-state {
  color: var(--muted);
}

.report-content {
  margin-top: 18px;
  scroll-margin-top: 18px;
}

.report-section {
  padding: clamp(20px, 3vw, 34px);
}

.report-section h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.report-section h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  text-transform: uppercase;
}

.report-section p {
  color: var(--muted);
  line-height: 1.65;
}

.report-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

#mida-legislative-changes,
#mida-organization,
#mida-projects,
#mida-meeting-materials,
#mida-board-history,
#mida-acfr-data {
  grid-column: 1 / -1;
}

#mida-key-powers {
  grid-column: 1 / -1;
}

#mida-legislative-changes h3,
#mida-organization h3,
#mida-projects h3,
#mida-meeting-materials h3,
#mida-board-history h3,
#mida-acfr-data h3,
#mida-key-powers h3 {
  margin-bottom: 10px;
  font-family: "Barlow Condensed", Outfit, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.95;
}

#mida-legislative-changes h3 {
  color: var(--brand-teal);
}

#mida-organization h3 {
  color: var(--brand-blue-gray);
}

#mida-projects h3 {
  color: #c93827;
}

#mida-meeting-materials h3 {
  color: var(--brand-gray-dark);
}

#mida-acfr-data h3 {
  color: var(--brand-blue-gray);
}

#mida-key-powers h3 {
  color: var(--brand-gold);
}

#mida-board-history h3 {
  color: var(--brand-gold);
}

.report-section__grid section {
  padding-top: 16px;
  border-top: 3px solid var(--brand-teal);
  scroll-margin-top: 18px;
}

#mida-projects {
  border-top-color: #c93827;
}

#mida-organization {
  border-top-color: var(--brand-blue-gray);
}

#mida-meeting-materials {
  border-top-color: var(--brand-gray-dark);
}

#mida-acfr-data {
  border-top-color: var(--brand-blue-gray);
}

#mida-key-powers {
  border-top-color: var(--brand-gold);
}

#mida-board-history {
  border-top-color: var(--brand-gold);
}

.bill-summaries,
.project-summaries,
.meeting-materials {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.legislation-tag-filter {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.meeting-category-filter {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.legislation-tag-filter__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.meeting-category-filter__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.legislation-tag-filter__header button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font: inherit;
}

.meeting-category-filter__header button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font: inherit;
}

.legislation-tag-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meeting-category-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legislation-tag-filter__group {
  display: grid;
  gap: 8px;
}

.legislation-tag-filter__group > strong {
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.legislation-tag-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--brand-teal) 42%, var(--line));
  border-radius: 999px;
  color: var(--brand-gray-dark);
  background: var(--white);
  cursor: pointer;
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.meeting-category-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--brand-gray-dark) 42%, var(--line));
  border-radius: 999px;
  color: var(--brand-gray-dark);
  background: var(--white);
  cursor: pointer;
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.legislation-tag-button strong {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--white);
  background: var(--brand-teal);
  font-size: 0.68rem;
  text-align: center;
}

.meeting-category-button strong {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--white);
  background: var(--brand-gray-dark);
  font-size: 0.68rem;
  text-align: center;
}

.legislation-tag-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--brand-teal);
}

.meeting-category-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--brand-gray-dark);
}

.legislation-tag-button[aria-pressed="true"] strong {
  color: var(--brand-teal-dark);
  background: var(--white);
}

.meeting-category-button[aria-pressed="true"] strong {
  color: var(--brand-gray-dark);
  background: var(--white);
}

.legislation-year-dropdown {
  position: relative;
  width: min(320px, 100%);
}

.legislation-year-dropdown summary {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--brand-blue-gray) 42%, var(--line));
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.legislation-year-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(360px, 86vw);
  max-height: 280px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-y: auto;
  background: var(--white);
  box-shadow: var(--shadow);
}

.legislation-year-option {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--brand-gray-dark);
  cursor: pointer;
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.legislation-year-option:hover {
  background: var(--panel-strong);
}

.legislation-year-option input {
  accent-color: var(--brand-blue-gray);
}

.legislation-year-option strong {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--white);
  background: var(--brand-blue-gray);
  font-size: 0.68rem;
  text-align: center;
}

.bill-summary,
.project-summary,
.meeting-material {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.bill-summary__meta,
.bill-summary__sponsors,
.project-summary__meta,
.meeting-material__meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
}

.bill-summary h4,
.project-summary h4,
.meeting-material h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.bill-summary h4 a {
  color: var(--brand-dark);
  text-decoration-color: var(--brand-teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.project-summary {
  border-color: color-mix(in srgb, #c93827 34%, var(--line));
}

.project-map {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, #c93827 34%, var(--line));
  border-radius: 8px;
  background: var(--white);
}

.project-map-note {
  max-width: 980px;
  margin: 8px 0 0;
  color: var(--brand-gray-dark);
  line-height: 1.6;
}

.project-map__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.project-map__toolbar strong {
  color: #c93827;
  font-size: 1rem;
}

.project-map__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.project-map__controls button,
.project-map__controls span {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, #c93827 38%, var(--line));
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.project-map__controls button {
  cursor: pointer;
}

.project-map__controls button:hover {
  border-color: #c93827;
  background: var(--panel-strong);
}

.project-map__viewport {
  position: relative;
  height: min(72vh, 760px);
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(201, 56, 39, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(201, 56, 39, 0.06) 1px, transparent 1px),
    var(--panel-strong);
  background-size: 34px 34px;
  cursor: grab;
  touch-action: none;
}

.project-map__viewport:active {
  cursor: grabbing;
}

.project-map__viewport:focus {
  outline: 3px solid color-mix(in srgb, #c93827 48%, transparent);
  outline-offset: 2px;
}

.project-map__viewport img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  transform-origin: 0 0;
  transition: transform 80ms linear;
  user-select: none;
  -webkit-user-drag: none;
}

.org-chart {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--brand-blue-gray) 34%, var(--line));
  border-radius: 8px;
  background: var(--white);
}

.org-chart__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.org-chart__toolbar strong {
  color: var(--brand-blue-gray);
  font-size: 1rem;
}

.org-chart__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.org-chart__controls button,
.org-chart__controls span {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--brand-blue-gray) 38%, var(--line));
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.org-chart__controls button {
  cursor: pointer;
}

.org-chart__controls button:hover {
  border-color: var(--brand-blue-gray);
  background: var(--panel-strong);
}

.org-chart__viewport {
  position: relative;
  height: min(78vh, 780px);
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(25, 38, 45, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(25, 38, 45, 0.06) 1px, transparent 1px),
    var(--white);
  background-size: 38px 38px;
  cursor: grab;
  touch-action: none;
}

.org-chart__viewport:active {
  cursor: grabbing;
}

.org-chart__viewport:focus {
  outline: 3px solid color-mix(in srgb, var(--brand-blue-gray) 48%, transparent);
  outline-offset: 2px;
}

.org-chart__canvas {
  position: absolute;
  inset: 0 auto auto 0;
  transform-origin: 0 0;
}

.org-chart__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.org-chart__links path {
  fill: none;
  stroke: rgba(25, 38, 45, 0.26);
  stroke-width: 2px;
}

.org-chart__link--branch-0 {
  stroke: var(--brand-teal);
}

.org-chart__link--branch-1 {
  stroke: var(--brand-gold);
}

.org-chart__link--branch-2 {
  stroke: #c93827;
}

.org-chart__link--branch-3 {
  stroke: var(--brand-blue-gray);
}

.org-node {
  position: absolute;
  display: grid;
  align-content: start;
  width: 250px;
  min-height: 118px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 5px solid var(--org-accent, var(--brand-teal));
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.org-node h4 {
  margin: 0 0 7px;
  color: var(--brand-dark);
  font-size: 0.9rem;
  line-height: 1.15;
}

.org-node__type {
  margin: 0 0 7px;
  color: var(--org-accent, var(--brand-teal));
  font-family: "Fira Code", monospace;
  font-size: 0.61rem;
  font-weight: 900;
  text-transform: uppercase;
}

.org-node ul {
  display: grid;
  gap: 3px;
  margin: 0 0 8px;
  padding: 0;
  color: var(--brand-gray-dark);
  font-size: 0.72rem;
  font-weight: 700;
  list-style: none;
}

.org-node__citation {
  align-self: end;
  color: var(--muted);
  font-family: "Fira Code", monospace;
  font-size: 0.62rem;
}

.org-node--toggleable {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.org-node--toggleable:hover,
.org-node--toggleable:focus {
  transform: translateY(-3px);
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.26);
  outline: 3px solid color-mix(in srgb, var(--org-accent) 45%, transparent);
  outline-offset: 2px;
}

.org-node__toggle {
  justify-self: start;
  min-height: 28px;
  margin: 2px 0 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: var(--org-accent, var(--brand-teal));
  font-family: "Fira Code", monospace;
  font-size: 0.64rem;
  font-weight: 900;
}

.org-node--authority {
  --org-accent: var(--brand-teal);
}

.org-node--category {
  --org-accent: var(--brand-gold);
}

.org-node--project {
  --org-accent: #c93827;
}

.org-node--pid {
  --org-accent: var(--brand-red-bright);
}

.org-node--committee {
  --org-accent: var(--brand-blue-gray);
}

.org-node--facility {
  --org-accent: var(--brand-gray-dark);
}

.org-node--branch-0 {
  --org-accent: var(--brand-teal);
}

.org-node--branch-1 {
  --org-accent: var(--brand-gold);
}

.org-node--branch-2 {
  --org-accent: #c93827;
}

.org-node--branch-3 {
  --org-accent: var(--brand-blue-gray);
}

.org-node--branch--1 {
  --org-accent: var(--brand-teal);
  border-left-width: 8px;
}

.project-summary h4 {
  color: var(--brand-dark);
}

.project-summary__location,
.project-summary__note {
  margin-bottom: 8px;
  color: var(--brand-gray-dark);
  font-weight: 700;
}

.project-summary__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.project-summary__links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, #c93827 44%, var(--line));
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.project-summary__links a:hover {
  border-color: #c93827;
  background: var(--panel-strong);
}

.project-summary__footnotes {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.project-summary__footnotes summary {
  cursor: pointer;
  font-weight: 800;
}

.project-summary__footnotes ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.meeting-material {
  border-color: color-mix(in srgb, var(--brand-gray-dark) 32%, var(--line));
}

.meeting-overview {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.meeting-overview__intro {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-gray-dark) 32%, var(--line));
  border-radius: 8px;
  background: var(--white);
}

.meeting-overview__intro p {
  max-width: 1120px;
  margin-bottom: 12px;
  color: var(--brand-gray-dark);
  line-height: 1.65;
}

.meeting-overview__intro p:last-child {
  margin-bottom: 0;
}

.meeting-overview__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.meeting-overview__stats div {
  min-height: 82px;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel-strong);
}

.meeting-overview__stats dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-family: "Fira Code", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meeting-overview__stats dd {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.meeting-stat-tables {
  display: grid;
  gap: 14px;
}

.meeting-stat-table {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--brand-gray-dark) 30%, var(--line));
  border-radius: 8px;
  background: var(--white);
}

.meeting-stat-table h4 {
  margin: 0 0 10px;
  color: var(--brand-gray-dark);
  font-size: 1rem;
}

.meeting-stat-table__scroll {
  overflow-x: auto;
}

.meeting-stat-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.meeting-stat-table th,
.meeting-stat-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.meeting-stat-table th {
  color: var(--brand-dark);
  background: var(--panel-strong);
  font-family: "Fira Code", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.meeting-stat-table tbody tr:last-child td {
  border-bottom: 0;
}

.meeting-material__category {
  margin-bottom: 8px;
  color: var(--brand-gray-dark);
  font-weight: 800;
}

.meeting-footnotes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.meeting-footnotes .footnote-ref {
  min-height: 28px;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.board-history {
  margin-top: 18px;
}

.board-history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}

.board-history-panel,
.board-member-card {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-gold) 34%, var(--line));
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.board-history-panel h4 {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.board-member-list {
  display: grid;
  gap: 10px;
}

.board-member-card {
  box-shadow: none;
}

.board-member-card__header {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.board-member-card__portrait {
  width: 75px;
  height: 75px;
  border: 3px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(25, 38, 45, 0.16);
}

.board-member-card__meta {
  margin: 0 0 6px;
  color: var(--brand-gray-dark);
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.board-member-card h5 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.board-member-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.board-claim-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.board-history-detail {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--brand-gold) 28%, var(--line));
  border-radius: 8px;
  background: var(--panel);
}

.board-history-detail summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 900;
}

.board-citations {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.board-citations a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--brand-gold) 44%, var(--line));
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-family: "Fira Code", monospace;
  font-size: 0.66rem;
  font-weight: 800;
  text-decoration: none;
}

.board-citations a:hover {
  border-color: var(--brand-gold);
  background: var(--panel-strong);
}

.key-powers {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.key-powers__intro {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-gold) 38%, var(--line));
  border-radius: 8px;
  background: var(--white);
}

.key-powers__intro h4 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 1.2rem;
}

.key-powers__intro p {
  max-width: 1100px;
  margin: 0 0 10px;
  color: var(--brand-gray-dark);
  line-height: 1.65;
}

.key-powers__intro p:last-child {
  margin-bottom: 0;
}

.key-powers__code-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--brand-gold) 44%, var(--line));
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.key-powers__code-link:hover {
  border-color: var(--brand-gold);
  background: var(--panel-strong);
}

.key-powers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.key-power-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-gold);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.key-power-card summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 14px 16px;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
  list-style: none;
}

.key-power-card summary::-webkit-details-marker {
  display: none;
}

.key-power-card summary::before {
  color: var(--brand-gold);
  font-size: 1.1rem;
  content: "▸";
  transition: transform 160ms ease;
}

.key-power-card[open] summary::before {
  transform: rotate(90deg);
}

.key-power-card summary span {
  flex: 1;
}

.key-power-card summary strong {
  min-width: 30px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--brand-gold) 34%, var(--white));
  font-family: "Fira Code", monospace;
  font-size: 0.7rem;
  text-align: center;
}

.key-power-card summary:hover {
  background: var(--panel-strong);
}

.key-power-card[open] summary {
  border-bottom: 1px solid var(--line);
}

.key-power-card h4 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.key-power-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px 16px 16px 34px;
}

.key-power-card li {
  color: var(--brand-dark);
  line-height: 1.5;
}

.key-power-citation {
  display: block;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--brand-teal) 38%, var(--line));
  border-radius: 999px;
  color: var(--brand-gray-dark);
  background: var(--panel-strong);
  font-family: "Fira Code", monospace;
  font-size: 0.66rem;
  font-weight: 800;
}

.acfr-table-wrap {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  background: var(--white);
}

.acfr-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.acfr-table th,
.acfr-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.acfr-table th:first-child,
.acfr-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: var(--white);
}

.acfr-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--white);
  background: var(--brand-blue-gray);
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.acfr-table thead th:first-child {
  z-index: 3;
  background: var(--brand-dark);
}

.acfr-table tfoot th,
.acfr-table tfoot td {
  position: sticky;
  bottom: 0;
  border-top: 2px solid var(--brand-blue-gray);
  color: var(--ink);
  background: var(--panel-strong);
  font-weight: 900;
}

.acfr-table tfoot th:first-child {
  z-index: 2;
  background: var(--panel-strong);
}

.acfr-chart-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.acfr-chart-card h4 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.acfr-chart-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.acfr-series-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel-strong);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.acfr-series-button::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--series-color);
  content: "";
}

.acfr-series-button:hover {
  transform: translateY(-1px);
}

.acfr-series-button[aria-pressed="false"] {
  opacity: 0.46;
  background: var(--white);
}

.acfr-chart-scroll {
  overflow-x: auto;
}

.acfr-chart {
  display: block;
  min-width: 980px;
  width: 100%;
  height: auto;
}

.acfr-chart__grid {
  stroke: rgba(25, 38, 45, 0.12);
  stroke-width: 1;
}

.acfr-chart__line {
  fill: none;
  stroke: var(--series-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  opacity: 0.86;
}

.acfr-chart__point {
  fill: var(--series-color);
  stroke: var(--white);
  stroke-width: 2;
}

.acfr-chart__point-group {
  outline: none;
}

.acfr-chart__point-hit {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
}

.acfr-chart__point-group:hover .acfr-chart__point,
.acfr-chart__point-group:focus .acfr-chart__point {
  r: 7px;
  filter: drop-shadow(0 0 7px var(--series-color));
}

.acfr-chart__tooltip {
  display: none;
  pointer-events: none;
}

.acfr-chart__point-group:hover .acfr-chart__tooltip,
.acfr-chart__point-group:focus .acfr-chart__tooltip {
  display: block;
}

.acfr-chart__tooltip rect {
  fill: var(--white);
  stroke: var(--series-color);
  stroke-width: 1.5;
  filter: drop-shadow(0 8px 14px rgba(25, 38, 45, 0.22));
}

.acfr-chart__tooltip text {
  fill: var(--brand-dark);
  font-family: "Fira Code", monospace;
  font-size: 11px;
  font-weight: 800;
}

.acfr-chart__tooltip .acfr-chart__tooltip-value {
  fill: var(--series-color);
  font-family: Outfit, sans-serif;
  font-size: 15px;
  font-weight: 900;
}

.acfr-chart__label,
.acfr-chart__year {
  fill: var(--muted);
  font-family: "Fira Code", monospace;
  font-size: 12px;
  font-weight: 800;
}

.acfr-notes {
  margin-top: 14px;
  color: var(--muted);
}

.acfr-notes summary {
  cursor: pointer;
  font-weight: 800;
}

.acfr-notes ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.bill-summary__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0;
}

.bill-summary__tags span {
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--brand-teal) 34%, var(--line));
  border-radius: 999px;
  color: var(--brand-gray-dark);
  background: var(--panel-strong);
  font-family: "Fira Code", monospace;
  font-size: 0.68rem;
  font-weight: 800;
}

.summary-bullets {
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.55;
}

.summary-bullets li + li {
  margin-top: 8px;
}

.summary-detail {
  margin: 12px 0 0;
}

.summary-detail strong {
  color: var(--ink);
}

.bill-summary__citations,
.bill-summary__source-text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.bill-summary__citations summary,
.bill-summary__source-text summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.bill-summary__citations ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.bill-summary__citations li + li {
  margin-top: 6px;
}

.bill-summary__citations .footnote-ref {
  color: var(--brand-teal-dark);
}

.bill-summary__source-text p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.footnote-ref {
  position: relative;
  display: inline-flex;
  margin-left: 4px;
  color: var(--brand-teal-dark);
  font-family: "Fira Code", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.footnote-ref:hover,
.footnote-ref:focus {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footnote-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 30;
  display: none;
  width: min(280px, 78vw);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  font-family: Outfit, sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
  transform: translateX(-50%);
}

.footnote-ref:hover .footnote-bubble,
.footnote-ref:focus .footnote-bubble {
  display: block;
}

.legislation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.legislation-main,
.legislation-sidebar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.legislation-main {
  padding: clamp(20px, 3vw, 34px);
}

.legislation-sidebar {
  position: sticky;
  top: 18px;
  padding: 18px;
}

.legislation-sidebar h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.section-anchor {
  display: block;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.section-anchor:hover {
  color: var(--brand-teal-dark);
}

.legislation-group {
  scroll-margin-top: 22px;
}

.legislation-group + .legislation-group {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 3px solid var(--brand-teal);
}

.legislation-group h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.legislation-links {
  display: grid;
  gap: 10px;
}

.legislation-link {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
}

.legislation-link:hover {
  border-color: var(--brand-teal);
  background: var(--panel-strong);
}

.legislation-link span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.legislation-link strong {
  display: block;
  line-height: 1.25;
}

.project-index-month {
  margin-top: 18px;
  scroll-margin-top: 22px;
}

.project-index-month h3 {
  margin: 0 0 10px;
  color: #c93827;
  font-size: 1rem;
  text-transform: uppercase;
}

.project-index-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-index-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-index-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, #c93827 42%, var(--line));
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.project-index-links a:hover {
  border-color: #c93827;
  background: var(--panel-strong);
}

.project-index-note {
  color: var(--brand-gray-dark);
  font-weight: 700;
}

.meeting-index-card {
  border-left: 5px solid var(--brand-blue-gray);
}

.meeting-index-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}

.meeting-index-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--brand-blue-gray) 34%, var(--line));
  border-radius: 999px;
  color: var(--brand-blue-gray);
  background: var(--panel-strong);
  font-family: "Fira Code", monospace;
  font-size: 0.66rem;
  font-weight: 800;
}

.meeting-index-links a {
  border-color: color-mix(in srgb, var(--brand-blue-gray) 42%, var(--line));
}

.meeting-index-links a:hover {
  border-color: var(--brand-blue-gray);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 900px) {
  .brand-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-nav {
    justify-content: flex-start;
  }

  .hero,
  .controls,
  .details-grid,
  .legislation-layout,
  .board-history-grid,
  .key-powers__grid {
    grid-template-columns: 1fr;
  }

  .legislation-sidebar {
    position: static;
    order: -1;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-map__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .org-chart__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-map__controls {
    justify-content: flex-start;
  }

  .org-chart__controls {
    justify-content: flex-start;
  }

  .meeting-overview__stats {
    grid-template-columns: 1fr;
  }

  .event-node {
    width: 170px;
  }
}

@media (max-width: 820px) and (orientation: portrait) {
.orientation-advice {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    gap: 3px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(25, 38, 45, 0.16);
    color: var(--white);
    background: var(--brand-dark);
    box-shadow: 0 10px 24px rgba(25, 38, 45, 0.18);
  }

  .orientation-advice strong,
  .orientation-advice span {
    display: block;
  }

  .orientation-advice span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding-inline: 12px;
  }

  .hero__stats,
  .zoom-control {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px;
  }

  .zoom-control output {
    text-align: left;
  }

  .timeline-track {
    height: 760px;
  }

  .event-node {
    width: 155px;
    font-size: 0.86rem;
  }
}
