@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&family=Source+Serif+4:wght@600;700&display=swap");

:root {
  --background: #f7f9fb;
  --surface: #ffffff;
  --surface-muted: #eef1f4;
  --primary: #003461;
  --text: #191c1e;
  --muted: #545f73;
  --line: #c2c6d1;
  --good: #166534;
  --warning: #8a5a13;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.top-bar {
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 251, 0.96);
}

.top-bar-inner,
main,
.site-footer {
  width: min(var(--max-width), calc(100% - 128px));
  margin: 0 auto;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 64px;
  gap: 32px;
}

.brand {
  color: var(--primary);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a,
.section-heading a,
.site-footer a {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.section-heading a:hover,
.site-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

main {
  padding-bottom: 72px;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 96px 0 48px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: var(--primary);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(52px, 8vw, 84px);
  font-weight: 700;
  line-height: 0.98;
}

.hero p {
  max-width: 620px;
  margin: 24px auto 34px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.55;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 820px);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.hero-stats div {
  min-width: 0;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

dt,
.section-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--primary);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
}

.status-panel,
.section,
.date-strip {
  margin-top: 52px;
}

.status-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

h2 {
  margin: 0;
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
}

.snapshot-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
}

.snapshot-item {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.snapshot-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
}

.snapshot-item strong {
  display: block;
  color: var(--primary);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 26px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.metric-card {
  min-height: 136px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.metric-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
}

.metric-card span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 18px;
  text-transform: uppercase;
}

.table-frame {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 16px;
  text-transform: uppercase;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 20px;
}

td {
  color: var(--text);
  font-size: 15px;
  line-height: 21px;
}

.records-cell {
  color: var(--primary);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.simple-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.list-row strong {
  color: var(--primary);
  font-size: 16px;
  line-height: 22px;
}

.list-row span {
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
  white-space: nowrap;
}

.date-strip {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.date-strip h2 {
  margin-bottom: 16px;
}

#date-boundaries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.date-chip {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.coverage-load-failed main::before {
  display: block;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid #c88945;
  border-radius: 6px;
  background: #fff4df;
  content: "Coverage status could not be loaded.";
}

@media (max-width: 900px) {
  .top-bar-inner,
  main,
  .site-footer {
    width: min(var(--max-width), calc(100% - 32px));
  }

  .top-bar-inner,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-bar-inner {
    padding: 16px 0;
  }

  .main-nav {
    gap: 18px;
    overflow-x: auto;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 20px;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 62px);
  }

  .hero p {
    max-width: 100%;
    font-size: 18px;
    overflow-wrap: break-word;
  }

  .hero-stats,
  .status-panel,
  .snapshot-status,
  .metric-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .snapshot-item {
    padding-left: 0;
    border-left: 0;
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .list-row {
    flex-direction: column;
    gap: 6px;
  }
}
