:root {
  --bg: #f7f8f5;
  --ink: #151712;
  --muted: #5d6357;
  --line: #d8ddd1;
  --surface: #ffffff;
  --surface-strong: #eef2e8;
  --accent: #1b6f54;
  --accent-strong: #0f4f3a;
  --accent-soft: #dceee5;
  --amber: #8a5a13;
  --amber-soft: #fbefd7;
  --blue: #285f86;
  --blue-soft: #e4edf3;
  --shadow: 0 18px 60px rgba(28, 35, 23, 0.11);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 248, 245, 0.94) 460px),
    var(--bg);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(216, 221, 209, 0.78);
  background: rgba(247, 248, 245, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 640;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  min-height: min(760px, calc(100vh - 70px));
  padding: 86px 0 52px;
}

.status-line {
  margin: 0 0 20px;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 760;
  text-transform: uppercase;
}

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

h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 9vw, 7.8rem);
  line-height: 0.89;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 740px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.14rem, 2vw, 1.42rem);
  line-height: 1.54;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 740;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.button.secondary:hover {
  border-color: #b9c3b0;
}

.status-card,
.panel,
.table-shell,
.metric-card,
.capability-item,
.closing-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-card {
  padding: 22px;
  box-shadow: var(--shadow);
}

.status-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.status-card-header strong {
  color: var(--ink);
}

.evidence-graphic {
  position: relative;
  height: 148px;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 31px, rgba(27, 111, 84, 0.13) 32px, transparent 33px),
    linear-gradient(180deg, #fbfcf9, #eef3e9);
  background-size: 34px 100%, 100% 100%;
  overflow: hidden;
}

.evidence-rail {
  position: absolute;
  top: 72px;
  left: 34px;
  right: 34px;
  height: 2px;
  background: var(--accent);
}

.evidence-node {
  position: absolute;
  top: 58px;
  width: 30px;
  height: 30px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}

.evidence-node:nth-of-type(2) {
  left: 28px;
}

.evidence-node:nth-of-type(3) {
  left: calc(50% - 15px);
}

.evidence-node:nth-of-type(4) {
  right: 28px;
}

.evidence-node.active {
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(27, 111, 84, 0.14);
}

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

.date-list dt {
  color: var(--ink);
  font-weight: 760;
}

.date-list dd {
  margin: -8px 0 4px;
  color: var(--muted);
  font-size: 0.94rem;
}

.live-status {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.live-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.live-status strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.live-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.live-status .live-meta {
  margin-top: 8px;
  font-weight: 700;
}

.live-in_progress .live-dot {
  background: #c47a18;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(196, 122, 24, 0.38);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(196, 122, 24, 0);
  }
}

.metrics-band {
  margin: 0 0 64px;
}

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

.metric-card {
  min-height: 188px;
  padding: 22px;
}

.metric-label {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.metric-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.section-block,
.split-section {
  margin: 0 0 74px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading h2,
.panel h2,
.closing-band h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.section-heading p,
.panel > p,
.closing-band p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.62;
}

.section-note {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 740;
}

.table-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  width: 29%;
  font-size: 1rem;
  line-height: 1.3;
}

tbody th span {
  display: block;
  font-weight: 800;
}

tbody th small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
}

.range-cell {
  width: 31%;
  color: var(--muted);
}

.records-cell {
  width: 24%;
  font-weight: 760;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 820;
  white-space: nowrap;
}

.status-good {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.status-partial,
.status-progress {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-research,
.status-planned,
.status-later {
  color: var(--blue);
  background: var(--blue-soft);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
}

.panel {
  padding: clamp(24px, 4vw, 34px);
}

.pipeline-list,
.evidence-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.pipeline-item,
.evidence-item {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.pipeline-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.pipeline-item h3,
.evidence-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.pipeline-item p,
.evidence-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.54;
}

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

.capability-item {
  display: grid;
  gap: 18px;
  min-height: 154px;
  padding: 20px;
}

.capability-index {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 820;
}

.capability-item p {
  align-self: end;
  margin: 0;
  font-size: 1.06rem;
  font-weight: 720;
  line-height: 1.38;
}

.closing-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 0 0 42px;
  padding: clamp(24px, 5vw, 40px);
  background: #11140f;
  color: #fff;
}

.closing-band p {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

code {
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.coverage-load-failed main::before {
  display: block;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid #c88945;
  border-radius: var(--radius);
  background: #fff4df;
  content: "Coverage status could not be loaded.";
}

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

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-section,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 58px;
  }

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

  .section-heading,
  .closing-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 15px 14px;
  }

  .hero-section {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 4.4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .metric-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: auto;
  }

  .pipeline-top {
    flex-direction: column;
  }
}
