:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-muted: #eef3f8;
  --text: #17202b;
  --muted: #5f6f82;
  --line: #d9e2ec;
  --line-strong: #b9c7d6;
  --brand: #1f5f8b;
  --brand-dark: #174967;
  --ok: #1f8a4c;
  --warn: #a05f00;
  --bad: #b42318;
  --shadow: 0 12px 30px rgba(16, 35, 55, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: grid;
  gap: 2px;
  min-width: max-content;
}

.brand strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

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

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.menu a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 10px;
}

.menu a:hover,
.menu a[aria-current="page"] {
  background: var(--surface-muted);
  border-color: var(--line);
  color: var(--text);
}

.hero {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.page {
  padding: 48px 0;
}

.section {
  padding: 36px 0;
}

.section + .section {
  padding-top: 16px;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.section-head h2,
.page-head h1,
.hero h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 860px;
  font-size: 56px;
}

.page-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.page-head h1 {
  font-size: 44px;
}

.section-head h2 {
  font-size: 32px;
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 840px;
  color: var(--muted);
  font-size: 20px;
  margin: 0;
}

.subtle {
  color: var(--muted);
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 14px;
}

.btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.btn.primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #ffffff;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px 10px;
}

.pill.ok,
.badge.ok {
  background: #e9f7ef;
  border-color: #bbdfc9;
  color: var(--ok);
}

.pill.warn,
.badge.warn {
  background: #fff5df;
  border-color: #f1d7a5;
  color: var(--warn);
}

.pill.neutral {
  background: var(--surface-muted);
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

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

.card {
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.card.compact {
  padding: 16px;
}

.card.half {
  grid-column: span 6;
}

.card.large {
  grid-column: span 8;
}

.card.full {
  grid-column: 1 / -1;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: 0;
}

.card h2 {
  font-size: 24px;
}

.card h3 {
  font-size: 19px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.facts {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.fact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.fact span {
  color: var(--muted);
}

.fact strong {
  color: var(--text);
  font-weight: 800;
  text-align: right;
}

.status-list,
.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-row,
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.status-row:last-child,
.check-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.domain-list,
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.domain-list li,
.link-grid a,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.link-grid a {
  display: grid;
  gap: 4px;
}

.link-grid strong {
  color: var(--brand);
}

.link-grid span {
  color: var(--muted);
  font-size: 14px;
}

.metric strong {
  display: block;
  color: var(--text);
  font-size: 26px;
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

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

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

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

.table th {
  background: var(--surface-muted);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.code,
pre.code {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.55;
  margin: 14px 0 0;
  padding: 14px;
  white-space: pre-wrap;
}

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

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-updated {
  color: var(--muted);
  font-size: 14px;
}

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

.report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.report-card h3 {
  margin: 0 0 10px;
}

.report-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  padding: 16px;
}

.json-details {
  display: none;
}

.json-details.is-open {
  display: block;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  margin-top: 36px;
  padding: 24px 0 34px;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .menu {
    justify-content: flex-start;
  }

  .hero {
    padding: 44px 0 28px;
  }

  .hero h1,
  .page-head h1 {
    font-size: 38px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .card,
  .card.half,
  .card.large {
    grid-column: 1 / -1;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .menu {
    width: 100%;
  }

  .menu a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero h1,
  .page-head h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 18px;
  }

  .domain-list,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .fact,
  .status-row,
  .check-row,
  .report-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .fact strong {
    text-align: left;
  }

  .btn {
    width: 100%;
  }
}
