:root {
  --ink: #101114;
  --muted: #5c6670;
  --line: #d8dde3;
  --soft-line: #e9edf1;
  --paper: #ffffff;
  --surface: #f6f7f8;
  --surface-strong: #eef1f4;
  --slate: #42484f;
  --red: #b5122b;
  --blue: #0b5ea8;
  --green: #127a55;
  --amber: #9a6500;
  --focus: #ffdd00;
  --radius: 8px;
  --max: 1160px;
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #073f73;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--focus);
  color: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}

.brand-name {
  font-size: 22px;
  font-weight: 750;
  line-height: 1;
}

.brand-tag {
  color: var(--muted);
  font-size: 13px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding: 24px 0 21px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--red);
}

.beta-bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.beta-bar .section-inner {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 14px;
}

.beta-label {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 8px;
  border-radius: 4px;
  background: var(--slate);
  color: #fff;
  font-weight: 700;
}

main {
  min-height: 60vh;
}

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 48px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 14px;
  font-weight: 760;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 790;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 760;
}

h3 {
  font-size: 21px;
  font-weight: 730;
}

.lead {
  color: #29313a;
  font-size: 21px;
  line-height: 1.46;
  max-width: 720px;
}

.hero .lead {
  margin: 16px 0 0;
}

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

.body-copy p {
  margin: 16px 0 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.badge::before,
.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
}

.badge.verified::before,
.status-badge.good::before {
  background: var(--green);
}

.badge.staged::before,
.status-badge.warn::before {
  background: var(--amber);
}

.badge.private::before,
.status-badge.info::before {
  background: var(--blue);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--slate);
  border-radius: 6px;
  color: var(--paper);
  background: var(--slate);
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  color: var(--paper);
  background: #242a30;
}

.button.secondary {
  color: var(--slate);
  background: var(--paper);
}

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

.boundary-note {
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  background: var(--surface);
  color: #20262d;
  font-weight: 650;
}

.visual-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.visual-card img {
  display: block;
  width: 100%;
  height: auto;
}

.visual-caption {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--soft-line);
}

.section.alt {
  background: var(--surface);
}

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

.section-head p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p,
.card li {
  color: #303943;
}

.card p {
  margin: 8px 0 0;
}

.card .meta,
.meta {
  color: var(--muted);
  font-size: 14px;
}

.answer-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.source-list {
  margin: 0;
  padding-left: 20px;
}

.source-list li {
  margin-top: 6px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

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

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

th {
  background: var(--surface);
  font-size: 13px;
  font-weight: 780;
}

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

.search-panel {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 720;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input,
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
}

.search-results {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.search-results li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 720;
}

.form-field .hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkbox input {
  margin-top: 5px;
}

.site-footer {
  background: #15191d;
  color: #f3f5f7;
  padding: 36px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
}

.site-footer a {
  color: #f3f5f7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-disclaimer {
  margin: 0;
  color: #d3d9de;
  max-width: 760px;
}

.tiny {
  font-size: 13px;
  color: #b9c0c6;
}

@media (max-width: 900px) {
  .header-inner,
  .section-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 16px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--soft-line);
  }

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

  .hero-grid,
  .grid.three,
  .grid.two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .search-row {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 18px;
  }

  .cta-row .button {
    width: 100%;
  }
}
