:root {
  --ink: #0c1724;
  --muted: #5d6b7a;
  --blue: #2581c4;
  --blue-dark: #145982;
  --blue-pale: #e8f4fb;
  --paper: #f7f8f7;
  --card: #ffffff;
  --line: #dce3e8;
  --green: #166b4e;
  --green-pale: #e6f5ee;
  --amber: #8a5a08;
  --amber-pale: #fff4d9;
  --red: #9b3a3a;
  --red-pale: #fff0ef;
  --shadow: 0 16px 50px rgba(12, 23, 36, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-dark); }
a:hover { color: var(--blue); }
button, input, select { font: inherit; }
button, select, input { color: var(--ink); }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 50; padding: 10px 14px; background: #000; color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  background: rgba(247, 248, 247, .92);
  border-bottom: 1px solid rgba(220, 227, 232, .8);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.flag-mark { display: grid; width: 28px; height: 18px; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px rgba(12,23,36,.12); }
.flag-mark i:nth-child(1) { background: #4891d0; }
.flag-mark i:nth-child(2) { background: #111; }
.flag-mark i:nth-child(3) { background: #fff; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }

.hero { padding-top: 82px; padding-bottom: 74px; }
.eyebrow, .kicker { color: var(--blue-dark); font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.pulse { width: 8px; height: 8px; border-radius: 99px; background: var(--blue); box-shadow: 0 0 0 5px rgba(37,129,196,.13); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .72fr); align-items: end; gap: 54px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 810px; margin-bottom: 22px; font-size: clamp(44px, 6.8vw, 80px); line-height: .98; letter-spacing: -.055em; }
h2 { margin-bottom: 12px; font-size: clamp(31px, 4vw, 48px); line-height: 1.05; letter-spacing: -.04em; }
h3 { margin-bottom: 8px; font-size: 19px; line-height: 1.25; letter-spacing: -.018em; }
.lede { max-width: 760px; margin-bottom: 30px; color: #3c4b5a; font-size: clamp(18px, 2vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.button.primary { color: #fff; background: var(--ink); }
.button.primary:hover { color: #fff; background: var(--blue-dark); }
.button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.scope-alert { display: flex; gap: 15px; padding: 22px; background: var(--amber-pale); border: 1px solid #edcf8f; border-radius: var(--radius); }
.scope-alert p { margin: 5px 0 0; color: #654a19; font-size: 14px; }
.alert-icon { display: grid; flex: 0 0 28px; height: 28px; place-items: center; color: #fff; background: var(--amber); border-radius: 99px; font-weight: 900; }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 58px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-grid article { padding: 22px 20px 19px; border-right: 1px solid var(--line); }
.metric-grid article:first-child { padding-left: 0; }
.metric-grid article:last-child { border-right: 0; }
.metric-grid span { display: block; font-size: clamp(29px, 3.8vw, 44px); font-weight: 850; line-height: 1; letter-spacing: -.04em; }
.metric-grid p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.section { padding: 92px 0; scroll-margin-top: 64px; }
.section-tint, .records-section { background: #edf1f3; border-block: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .65fr); align-items: end; gap: 48px; margin-bottom: 42px; }
.section-heading.compact { margin-bottom: 28px; }
.section-heading p { margin-bottom: 3px; color: var(--muted); }
.kicker { display: block; margin-bottom: 11px; }
.logic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.logic-card { position: relative; min-height: 250px; padding: 28px; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 25px rgba(12,23,36,.035); }
.logic-card.accent { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.logic-card p { color: var(--muted); }
.logic-card.accent p { color: #d6ebf8; }
.step { display: inline-block; margin-bottom: 48px; color: var(--blue-dark); font-size: 12px; font-weight: 900; }
.accent .step { color: #9bd7fa; }
.source-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; padding: 16px 18px; color: var(--muted); background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.source-strip span { color: var(--ink); font-weight: 800; }

.done-open-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.summary-panel { padding: 28px 30px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.done-panel { border-top: 4px solid var(--green); }
.open-panel { border-top: 4px solid var(--amber); }
.panel-label { display: block; margin-bottom: 15px; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.summary-panel ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: #3f4d5b; }
.coverage-details { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.coverage-details summary { cursor: pointer; padding: 20px 24px; font-weight: 850; }
.coverage-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0 24px 22px; }
.coverage-item { padding: 17px 0; border-top: 1px solid var(--line); }
.coverage-item:nth-child(odd) { padding-right: 22px; }
.coverage-item:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
.coverage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.coverage-head strong { font-size: 15px; }
.coverage-item p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.coverage-badge, .status-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.coverage-badge.good, .status-badge.current { color: var(--green); background: var(--green-pale); }
.coverage-badge.partial, .status-badge.announced-future { color: var(--amber); background: var(--amber-pale); }
.coverage-badge.pending, .status-badge.former { color: var(--red); background: var(--red-pale); }

.future-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.future-card { padding: 20px; background: #fff; border: 1px solid #ecd8a9; border-radius: 14px; }
.future-card .date { margin: 13px 0 0; color: var(--amber); font-size: 12px; font-weight: 850; }
.future-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.loading { color: var(--muted); }

.explorer { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-row { display: grid; grid-template-columns: minmax(280px, 1.6fr) minmax(180px, .7fr) minmax(160px, .55fr); gap: 14px; }
.filter-row label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.filter-row input[type="search"], .filter-row select { width: 100%; min-height: 46px; padding: 0 13px; background: #fbfcfc; border: 1px solid #cfd8df; border-radius: 9px; outline: none; }
.filter-row input:focus, .filter-row select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,129,196,.13); }
.second-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.status-tabs { display: inline-flex; padding: 4px; background: #edf1f3; border-radius: 10px; }
.status-tabs button { padding: 7px 13px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-size: 13px; font-weight: 800; }
.status-tabs button[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(12,23,36,.1); }
.check-field { display: flex !important; grid-auto-flow: column; align-items: center; gap: 8px !important; cursor: pointer; }
.check-field input { width: 17px; height: 17px; accent-color: var(--blue-dark); }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin: 24px 2px 14px; }
.results-bar p { margin: 0; color: var(--muted); font-size: 14px; }
.results-bar strong { color: var(--ink); }
.text-button { padding: 4px; color: var(--blue-dark); background: transparent; border: 0; cursor: pointer; font-weight: 800; }
.record-list { display: grid; gap: 11px; }
.record-card { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.record-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.record-name { margin: 0; font-size: 19px; font-weight: 850; letter-spacing: -.02em; }
.record-role { margin: 3px 0 0; color: #364554; font-weight: 700; }
.record-entity { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.record-category { display: inline-block; margin-top: 10px; color: var(--blue-dark); font-size: 11px; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.record-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 17px; }
.date-cell { padding: 11px 12px; background: #f6f8f9; border-radius: 9px; }
.date-cell span { display: block; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.date-cell strong { display: block; margin-top: 4px; font-size: 13px; }
.date-cell .missing { color: #86919b; font-weight: 600; }
.record-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 15px; }
.source-link, .details-toggle { font-size: 12px; font-weight: 850; }
.details-toggle { padding: 0; color: var(--blue-dark); background: transparent; border: 0; cursor: pointer; }
.record-details { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.record-details.open { display: grid; gap: 8px; }
.record-details p { margin: 0; color: var(--muted); font-size: 13px; }
.record-details strong { color: var(--ink); }
.gap-note { padding: 8px 10px; color: var(--amber) !important; background: var(--amber-pale); border-radius: 7px; }
.empty-state { padding: 44px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #bcc8d0; border-radius: 14px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.pagination button { min-height: 40px; padding: 0 15px; background: #fff; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-weight: 800; }
.pagination button:disabled { cursor: not-allowed; opacity: .42; }
.pagination span { color: var(--muted); font-size: 13px; }

.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.download-card { display: grid; min-height: 160px; align-content: space-between; padding: 22px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.download-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.download-card span { justify-self: start; padding: 3px 8px; color: var(--blue-dark); background: var(--blue-pale); border-radius: 6px; font-size: 10px; font-weight: 900; }
.download-card strong { margin-top: 22px; }
.download-card small { margin-top: 4px; color: var(--muted); }
footer { padding: 34px 0; color: #c2ced8; background: var(--ink); }
.footer-grid { display: flex; justify-content: space-between; gap: 35px; }
footer p { margin: 0; font-size: 13px; }
footer a { color: #aadaf5; }
noscript { display: block; padding: 18px; text-align: center; background: var(--amber-pale); }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .hero { padding-top: 55px; }
  .hero-grid, .section-heading { grid-template-columns: 1fr; align-items: start; gap: 25px; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-grid article:nth-child(3) { border-right: 0; }
  .metric-grid article:nth-child(n+4) { border-top: 1px solid var(--line); }
  .logic-grid { grid-template-columns: 1fr; }
  .logic-card { min-height: 0; }
  .step { margin-bottom: 25px; }
  .future-list { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 58px; padding-inline: 13px; }
  .hero { padding: 42px 0 52px; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-grid { gap: 32px; }
  .hero-actions { display: grid; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .metric-grid article { border-top: 1px solid var(--line); border-right: 1px solid var(--line) !important; }
  .metric-grid article:nth-child(even) { border-right: 0 !important; }
  .metric-grid article:first-child, .metric-grid article:nth-child(2) { border-top: 0; }
  .metric-grid article:first-child { padding-left: 20px; }
  .metric-grid article:last-child { grid-column: 1 / -1; border-right: 0 !important; }
  .section { padding: 64px 0; }
  .done-open-grid, .coverage-list, .download-grid, .future-list { grid-template-columns: 1fr; }
  .coverage-item:nth-child(odd), .coverage-item:nth-child(even) { padding-inline: 0; border-left: 0; }
  .filter-row { grid-template-columns: 1fr; }
  .second-row { display: grid; justify-items: stretch; gap: 15px; }
  .status-tabs { display: grid; grid-template-columns: repeat(4, 1fr); }
  .status-tabs button { padding-inline: 6px; }
  .record-top { align-items: flex-start; }
  .record-dates { grid-template-columns: 1fr; }
  .record-card { padding: 18px 16px; }
  .footer-grid { display: grid; }
}
