:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --ink: #17201d;
  --muted: #64706c;
  --line: #d9e1de;
  --green: #126b4f;
  --green-2: #e4f4ed;
  --blue: #235f9c;
  --amber: #8a5a00;
  --red: #9a3131;
  --shadow: 0 18px 46px rgba(23, 32, 29, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  background:
    linear-gradient(rgba(11, 31, 24, 0.54), rgba(11, 31, 24, 0.34)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 20px;
}

.topbar-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.topbar-links a {
  text-decoration: none;
  opacity: 0.9;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 56px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: end;
}

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

.eyebrow {
  margin: 0 0 14px;
  font-weight: 700;
  color: #c9f4de;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy > p:last-child {
  margin: 22px 0 0;
  max-width: 680px;
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 22px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow);
}

.metric {
  display: block;
  font-size: 34px;
  font-weight: 800;
}

.metric-label {
  color: var(--muted);
  font-size: 14px;
}

.controls-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.controls {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 150px 170px;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

input,
select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

.content-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 48px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.summary-panel {
  position: sticky;
  top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

h2 {
  margin: 0 0 14px;
  font-size: 21px;
}

.summary-list {
  display: grid;
  gap: 8px;
}

.summary-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.summary-item:hover {
  border-color: var(--green);
  background: var(--green-2);
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.list-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cards {
  display: grid;
  gap: 14px;
}

.program-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(23, 32, 29, 0.04);
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.program-card:hover {
  border-color: rgba(18, 107, 79, 0.48);
  box-shadow: 0 14px 30px rgba(23, 32, 29, 0.08);
  transform: translateY(-1px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pill,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

.status-open {
  background: var(--green-2);
  color: var(--green);
}

.status-upcoming {
  background: #fff3d6;
  color: var(--amber);
}

.status-closed {
  background: #fae8e8;
  color: var(--red);
}

.program-card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.3;
}

.summary {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
}

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

dd {
  margin: 0;
  line-height: 1.5;
}

.card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.card-footer a {
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  text-decoration: none;
  padding: 10px 12px;
  font-weight: 800;
  white-space: nowrap;
}

.source-line {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.source-policy,
.candidate-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 48px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
}

.source-policy p,
.source-policy li {
  color: var(--muted);
  line-height: 1.7;
}

.candidate-section {
  display: block;
}

.candidate-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.candidate-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.candidate-header span {
  color: var(--green);
  font-weight: 800;
  white-space: nowrap;
}

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

.candidate-card {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
}

.candidate-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.candidate-card h3 {
  font-size: 17px;
  line-height: 1.38;
  margin: 10px 0;
}

.candidate-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.candidate-card .candidate-action {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  color: #9a3412;
  margin: 10px 0 14px;
  padding: 9px 10px;
}

.candidate-card a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
}

.empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

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

  .controls,
  .content-grid,
  .source-policy {
    grid-template-columns: 1fr;
  }

  .candidate-list {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: auto;
  }

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

  .topbar-links {
    flex-wrap: wrap;
  }

  .hero {
    padding: 36px 0 48px;
  }

  h1 {
    font-size: 40px;
  }

  .card-footer,
  .card-top,
  .list-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-footer a {
    width: 100%;
    text-align: center;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
