:root {
  --ink: #17202a;
  --muted: #5f6b7a;
  --line: #d8dee8;
  --paper: #ffffff;
  --surface: #f5f7fb;
  --surface-2: #eaf0f6;
  --blue: #155eef;
  --blue-2: #dbe8ff;
  --green: #1f7a4d;
  --green-2: #ddf3e6;
  --amber: #a25a00;
  --amber-2: #fff0d5;
  --red: #b42318;
  --red-2: #ffe2df;
  --teal: #087b83;
  --teal-2: #dff6f7;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 42px;
  max-width: var(--max);
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 74px 28px 44px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  color: #384555;
  font-size: 19px;
}

.hero-actions,
.controls,
.segmented,
.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button,
.segmented button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button {
  padding: 10px 14px;
}

.button:hover,
.segmented button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--paper);
}

.button.secondary,
.segmented button {
  background: var(--paper);
  color: var(--ink);
}

.hero-status {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.status-header {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-2);
}

.deadline {
  display: grid;
  gap: 2px;
  margin: 30px 0;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.deadline.closed .deadline-number {
  font-size: 42px;
}

.deadline-number {
  font-size: 72px;
  line-height: 1;
  font-weight: 900;
}

.deadline-label {
  color: var(--muted);
  font-weight: 700;
}

.status-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}

.status-list div,
.source-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--max);
  margin: -28px auto 54px;
  padding: 0 28px;
}

.snapshot article,
.brief-card,
.rating-card,
.promise-card,
.funding-row,
.mandate-box,
.reaction-card,
.source-card,
.entity-detail {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(23, 32, 42, 0.05);
}

.snapshot article {
  padding: 18px;
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.snapshot strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.snapshot p,
.brief-card p,
.rating-card p,
.promise-card p,
.funding-row p,
.mandate-box p,
.reaction-card p,
.source-card p,
.entity-detail p {
  color: var(--muted);
}

.section-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 28px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading p {
  color: var(--muted);
}

.split-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

input[type="search"] {
  width: 220px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.segmented {
  padding: 4px;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.segmented button {
  min-height: 34px;
  padding: 7px 10px;
  border-color: transparent;
  font-size: 13px;
}

.segmented button.active {
  background: var(--ink);
  color: var(--paper);
}

.brief-grid,
.ratings,
.promise-grid,
.reaction-grid,
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.brief-card,
.rating-card,
.promise-card,
.reaction-card,
.source-card {
  padding: 20px;
}

.brief-card strong {
  display: block;
  margin: 14px 0;
}

.card-topline,
.promise-meta,
.rating-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-topline span,
.card-topline time,
.promise-meta span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: var(--blue-2);
  color: #0f3b86;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.source-pill.muted {
  background: var(--surface-2);
  color: var(--muted);
}

.rating-band {
  max-width: none;
  background: var(--ink);
  color: var(--paper);
}

.rating-band .section-heading,
.rating-band .ratings {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.rating-band .eyebrow {
  color: #7de1d7;
}

.rating-band .section-heading p,
.rating-band .rating-card p {
  color: #c9d3df;
}

.rating-card {
  background: #202b37;
  border-color: #314050;
}

.rating-heading h3 {
  margin: 0;
}

.rating-heading span {
  color: #7de1d7;
  font-weight: 900;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe5ed;
}

.bar-track span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.rating-card .bar-track {
  margin: 14px 0;
  background: #101820;
}

.rating-card .bar-track span {
  background: #7de1d7;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.tag.in-motion,
.tag.direct-support-visible,
.tag.promising {
  background: var(--green-2);
  color: var(--green);
}

.tag.announced,
.tag.needs-breakdown,
.tag.needs-recipient-detail,
.tag.high-scrutiny {
  background: var(--amber-2);
  color: var(--amber);
}

.tag.not-started,
.tag.unknown,
.tag.weak,
.tag.missing {
  background: var(--red-2);
  color: var(--red);
}

.timing {
  font-weight: 800;
}

details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 900;
}

.detail-content {
  padding-top: 6px;
}

.funding-section {
  max-width: none;
  background: var(--paper);
}

.funding-section .section-heading,
.funding-layout {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.funding-layout,
.commission-layout,
.entity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.funding-bars,
.timeline {
  display: grid;
  gap: 14px;
}

.funding-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  padding: 20px;
  align-items: center;
}

.funding-copy h3 {
  margin-top: 8px;
}

.funding-visual strong {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
}

.bar-track.money span {
  background: var(--blue);
}

.question-list {
  padding: 22px;
  border-left: 4px solid var(--amber);
  background: var(--amber-2);
  border-radius: var(--radius);
}

.question-list ul,
.methodology ol {
  margin: 0;
  padding-left: 20px;
}

.question-list li,
.methodology li {
  margin-bottom: 12px;
}

.timeline {
  position: relative;
  padding-left: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 24px 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -18px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 5px var(--blue-2);
}

.timeline-item time {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.mandate-box {
  padding: 24px;
}

.callout,
.accountability-box {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--red-2);
  color: var(--red);
}

.callout span,
.accountability-box span {
  color: var(--ink);
}

.relationship-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  padding: 18px;
  min-height: 430px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

.entity-node {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.entity-node:hover {
  border-color: var(--blue);
}

.entity-node span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.entity-node strong {
  align-self: end;
  font-size: 16px;
}

.entity-detail {
  align-self: start;
  padding: 24px;
  position: sticky;
  top: 88px;
}

.linked-entities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.linked-entities span {
  padding: 6px 8px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
}

.source-card dl {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.source-card dl div {
  padding-top: 8px;
}

.source-card .button {
  width: 100%;
}

.methodology {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 30px;
  max-width: var(--max);
  margin: 0 auto 48px;
  padding: 36px 28px;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.intake-section {
  max-width: none;
  background: var(--paper);
}

.intake-section .section-heading,
.intake-layout {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.evidence-form,
.intake-standard {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.evidence-form {
  display: grid;
  gap: 16px;
}

.evidence-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.evidence-form input,
.evidence-form select,
.evidence-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
}

.evidence-form textarea {
  resize: vertical;
}

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

.checkbox-label {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
}

.checkbox-label input {
  min-height: auto;
  margin: 3px 0 0;
  padding: 0;
}

.checkbox-label span {
  color: var(--muted);
  font-weight: 700;
}

.screen-reader-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.intake-standard {
  border-left: 4px solid var(--teal);
}

.intake-standard ul {
  margin: 0;
  padding-left: 20px;
}

.intake-standard li {
  margin-bottom: 12px;
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header,
  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 50px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 29px;
  }

  .snapshot,
  .brief-grid,
  .ratings,
  .promise-grid,
  .reaction-grid,
  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funding-layout,
  .commission-layout,
  .entity-layout,
  .intake-layout {
    grid-template-columns: 1fr;
  }

  .entity-detail {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 16px;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px;
    overflow-x: visible;
  }

  .site-nav a {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 13px;
  }

  .hero,
  .section-shell,
  .snapshot,
  .methodology {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 36px;
  }

  .lede {
    font-size: 17px;
  }

  .snapshot,
  .brief-grid,
  .ratings,
  .promise-grid,
  .reaction-grid,
  .source-grid,
  .relationship-board,
  .funding-row,
  .methodology,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .controls,
  input[type="search"] {
    width: 100%;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .segmented button {
    white-space: nowrap;
  }

  .status-list div,
  .source-card dl div,
  .site-footer {
    flex-direction: column;
  }

  dd {
    text-align: left;
  }
}
