:root {
  color-scheme: light;
  --paper: #f2f0e8;
  --paper-raised: #faf9f4;
  --ink: #152522;
  --muted: #61706b;
  --line: #cdd1c9;
  --line-strong: #9ba8a2;
  --teal: #006f65;
  --teal-dark: #004c46;
  --lime: #b7e342;
  --amber: #d89012;
  --red: #ba4b3c;
  --blue: #376fb5;
  --shadow: 0 18px 50px rgb(26 48 43 / 10%);
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101816;
  --paper-raised: #17211e;
  --ink: #eef5f0;
  --muted: #9dadA6;
  --line: #33413d;
  --line-strong: #586b65;
  --teal: #66d1c1;
  --teal-dark: #8ee2d5;
  --lime: #b7e342;
  --amber: #f0b44b;
  --red: #ef8b7c;
  --blue: #85afe7;
  --shadow: 0 18px 50px rgb(0 0 0 / 28%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}
button, input, select { font: inherit; }
a { color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 7px;
}
.skip-link:focus { top: 16px; }

.site-header {
  min-height: 70px;
  padding: 0 clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: -.02em;
}
.brand strong { color: var(--teal); }
.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); gap: 3px; align-items: end; height: 22px; }
.brand-mark i { width: 5px; display: block; background: var(--teal); border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 10px; }
.brand-mark i:nth-child(2) { height: 22px; }
.brand-mark i:nth-child(3) { height: 15px; background: var(--lime); }
.site-header nav { display: flex; gap: clamp(16px, 3vw, 34px); }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-header nav a:hover { color: var(--ink); }
.icon-button {
  justify-self: end;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
}

main { overflow: hidden; }
.hero {
  max-width: 1440px;
  min-height: 620px;
  margin: 0 auto;
  padding: clamp(76px, 10vw, 142px) clamp(20px, 6vw, 88px) 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr);
  align-items: center;
  gap: clamp(50px, 9vw, 130px);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  width: 650px;
  height: 650px;
  right: -300px;
  top: -250px;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 70px color-mix(in srgb, var(--line) 30%, transparent), 0 0 0 140px color-mix(in srgb, var(--line) 15%, transparent);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, p { text-wrap: pretty; }
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 6.5vw, 94px);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 720;
}
h1 em { color: var(--teal); font-style: normal; }
.lede { max-width: 690px; margin: 30px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.button {
  padding: 12px 17px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.button.primary { background: var(--teal-dark); color: #fff; }
[data-theme="dark"] .button.primary { color: #0c1815; }
.button.secondary { border: 1px solid var(--line-strong); }
.hero-status {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper-raised) 78%, transparent);
  box-shadow: var(--shadow);
}
.asof { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.asof strong { color: var(--teal); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat-grid div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-grid strong { display: block; font: 650 34px/1 var(--mono); letter-spacing: -.06em; }
.stat-grid span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.signal { display: flex; gap: 5px; height: 34px; align-items: end; margin-top: 18px; }
.signal span { flex: 1; background: var(--teal); opacity: .18; border-radius: 2px 2px 0 0; }
.signal span:nth-child(1) { height: 25%; }
.signal span:nth-child(2) { height: 43%; }
.signal span:nth-child(3) { height: 68%; }
.signal span:nth-child(4) { height: 83%; }
.signal span:nth-child(5) { height: 100%; background: var(--lime); opacity: .8; }

.section { padding: 92px clamp(20px, 6vw, 88px); }
.section-heading { max-width: 1260px; margin: 0 auto 38px; display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: 40px; align-items: end; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1; letter-spacing: -.05em; }
.section-heading > p { margin: 0; color: var(--muted); }
.readiness { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .readiness { background: #e8ede8; color: #16231f; }
.readiness .eyebrow { color: var(--lime); }
.readiness .section-heading > p { color: color-mix(in srgb, currentColor 66%, transparent); }
.matrix-wrap { max-width: 1260px; overflow-x: auto; margin: 0 auto; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: var(--radius); }
.matrix { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13px; }
.matrix th, .matrix td { padding: 15px 13px; border-right: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); text-align: center; }
.matrix th:first-child { text-align: left; position: sticky; left: 0; background: var(--ink); z-index: 2; }
[data-theme="dark"] .matrix th:first-child { background: #e8ede8; }
.matrix thead th { font: 600 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.matrix tbody th { font-size: 15px; }
.matrix button { width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 20%); }
.matrix button.empty { background: transparent; border: 1px dashed color-mix(in srgb, currentColor 30%, transparent); cursor: default; }
.matrix button.final { background: var(--lime); }
.matrix button.approved { background: #65cbbc; }
.matrix button.review { background: #efb64e; }
.matrix button.active { background: #82aee1; }
.matrix button.early { background: #a99bd1; }
.matrix button.inactive, .matrix button.unknown { background: #6d7774; }
.legend { max-width: 1260px; margin: 22px auto 0; display: flex; gap: 16px; flex-wrap: wrap; font: 11px var(--mono); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--legend); }

.explorer { max-width: 1440px; margin: 0 auto; }
.filter-panel {
  max-width: 1260px;
  margin: 0 auto 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(5, minmax(130px, 1fr)) auto;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgb(20 40 35 / 5%);
}
.filter-panel label { position: relative; display: grid; gap: 6px; }
.filter-panel label > span { color: var(--muted); font: 600 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.filter-panel input, .filter-panel select {
  width: 100%;
  height: 41px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  outline: 0;
  font-size: 13px;
}
.filter-panel input:focus, .filter-panel select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 16%, transparent); }
.search-field kbd { position: absolute; right: 10px; bottom: 10px; color: var(--muted); font: 11px var(--mono); }
.clear-button { align-self: end; height: 41px; padding: 0 13px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 6px; cursor: pointer; }
.clear-button:hover { color: var(--ink); border-color: var(--line-strong); }
.active-filters { max-width: 1260px; min-height: 30px; margin: 0 auto 10px; display: flex; gap: 7px; flex-wrap: wrap; }
.active-filters button { border: 0; border-radius: 20px; padding: 5px 10px; background: color-mix(in srgb, var(--teal) 13%, var(--paper)); color: var(--teal-dark); font-size: 11px; cursor: pointer; }
.table-wrap { max-width: 1260px; margin: 0 auto; border-top: 2px solid var(--ink); }
.standards-table { width: 100%; border-collapse: collapse; }
.standards-table th { padding: 11px 12px; text-align: left; color: var(--muted); font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line); }
.standards-table td { padding: 19px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.standards-table tbody tr { cursor: pointer; transition: background .15s ease; }
.standards-table tbody tr:hover { background: color-mix(in srgb, var(--teal) 6%, transparent); }
.doc-title { display: block; max-width: 610px; font-weight: 720; line-height: 1.25; letter-spacing: -.015em; }
.doc-id { display: block; margin-top: 6px; color: var(--teal); font: 11px var(--mono); }
.domain-list { display: flex; flex-wrap: wrap; gap: 5px; max-width: 220px; }
.tag { display: inline-block; padding: 3px 7px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font-size: 10px; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; font-weight: 650; }
.status-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--status-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-color) 15%, transparent); }
.status-badge.final { --status-color: #39976b; }
.status-badge.approved { --status-color: #168d80; }
.status-badge.review { --status-color: var(--amber); }
.status-badge.active { --status-color: var(--blue); }
.status-badge.early { --status-color: #8a68b0; }
.status-badge.inactive { --status-color: var(--red); }
.status-badge.unknown { --status-color: var(--muted); }
.date-cell { white-space: nowrap; color: var(--muted); font: 11px/1.5 var(--mono); }
.open-mark { color: var(--teal); font-size: 20px; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); font-size: 18px; }

.changes { background: var(--paper-raised); border-top: 1px solid var(--line); }
.change-list { max-width: 1260px; margin: 0 auto; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.change-list li { display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.change-list time { color: var(--muted); font: 11px var(--mono); }
.change-list a { text-decoration: none; font-weight: 680; }
.change-list a:hover { color: var(--teal); }
.change-list small { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }
.method-strip { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1440px; margin: 0 auto; border-top: 1px solid var(--line); }
.method-strip > div { padding: 52px clamp(24px, 5vw, 72px); border-right: 1px solid var(--line); }
.method-strip span { display: block; color: var(--teal); font: 11px var(--mono); }
.method-strip strong { display: block; margin-top: 20px; font-size: 19px; }
.method-strip p { color: var(--muted); margin-bottom: 0; font-size: 14px; }
footer { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 50px clamp(20px, 6vw, 88px); background: var(--ink); color: var(--paper); }
footer p { max-width: 600px; margin: 7px 0 0; opacity: .65; font-size: 13px; }

dialog { width: min(760px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: var(--radius); background: var(--paper-raised); color: var(--ink); box-shadow: 0 28px 90px rgb(0 0 0 / 35%); }
dialog::backdrop { background: rgb(7 18 15 / 66%); backdrop-filter: blur(5px); }
.dialog-shell { position: relative; padding: clamp(26px, 5vw, 52px); }
.dialog-close { position: absolute; right: 18px; top: 16px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; }
.detail-org { margin: 0 50px 12px 0; color: var(--teal); font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.detail h2 { max-width: 650px; margin: 0; font-size: clamp(29px, 5vw, 46px); line-height: 1.02; letter-spacing: -.045em; }
.detail-id { color: var(--teal); font: 12px var(--mono); }
.detail-badges { display: flex; gap: 10px; margin: 22px 0; }
.detail-summary { font-size: 17px; color: var(--muted); }
.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 28px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail-facts div { padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-facts dt { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }
.detail-facts dd { margin: 5px 0 0; font-size: 13px; }
.detail-section { margin-top: 23px; }
.detail-section h3 { margin: 0 0 9px; font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-dependencies { display: grid; gap: 6px; }
.detail-dependencies button { padding: 8px 10px; text-align: left; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--teal); cursor: pointer; }
.detail-links { display: flex; gap: 10px; margin-top: 30px; }
.detail-links a { padding: 10px 13px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 700; background: var(--teal-dark); color: #fff; }
[data-theme="dark"] .detail-links a { color: #0b1714; }

@media (max-width: 1050px) {
  .filter-panel { grid-template-columns: 2fr repeat(3, 1fr); }
  .clear-button { align-self: end; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
  .hero::before { width: 380px; height: 380px; }
  .hero-status { max-width: 500px; }
  .section { padding-top: 70px; padding-bottom: 70px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .standards-table thead { display: none; }
  .standards-table, .standards-table tbody, .standards-table tr, .standards-table td { display: block; }
  .standards-table tr { position: relative; padding: 19px 42px 19px 0; border-bottom: 1px solid var(--line); }
  .standards-table td { padding: 5px 0; border: 0; }
  .standards-table td:last-child { position: absolute; right: 8px; top: 22px; }
  .domain-list { max-width: none; }
  .change-list li { grid-template-columns: 1fr; gap: 5px; }
  .method-strip { grid-template-columns: 1fr; }
  .method-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .filter-panel { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .stat-grid strong { font-size: 28px; }
  .detail-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

