:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --panel: #ffffff;
  --text: #1f2528;
  --muted: #657077;
  --border: #d8ddd9;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --warn: #8a5a00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 Arial, Helvetica, sans-serif;
}

a {
  color: var(--accent-dark);
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  background: #fbfbf9;
}

nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent-dark);
}

main {
  padding: 20px 28px 32px;
}

.site-footer {
  padding: 18px 28px 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--panel);
}

.intro,
.model-detail,
.article,
.article-list,
main > h1 + section,
main > h1 + ul {
  max-width: 980px;
}

.intro {
  margin-bottom: 18px;
}

.intro h1,
.model-detail h1,
.article h1,
main > h1 {
  margin: 0 0 8px;
}

.muted,
.eyebrow {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 220px)) 1fr;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

select {
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.summary {
  justify-self: end;
  color: var(--muted);
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  background: var(--panel);
}

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

.fact-table {
  min-width: 0;
}

.fact-table th {
  position: static;
  width: 220px;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef2ee;
  color: #2d3638;
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #f2faf8;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.badge {
  display: inline-block;
  min-width: 68px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-align: center;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.badge.preview {
  color: var(--warn);
  border-color: #d8b35f;
  background: #fff7df;
}

.badge.deprecated,
.badge.retired {
  color: #8b1e1e;
  border-color: #e4b5b5;
  background: #fff1f1;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sources a {
  white-space: nowrap;
}

.about {
  max-width: 820px;
}

.changelog {
  max-width: 920px;
}

.audit {
  max-width: 1180px;
}

.audit-intro,
.audit-method,
.audit-corrections {
  margin-bottom: 18px;
}

.audit-intro h2,
.audit-method h2,
.audit-corrections h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.audit-intro p,
.audit-method p,
.audit-corrections p {
  margin: 0;
  color: var(--muted);
}

.audit-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.audit-stats div {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 12px;
}

.audit-stats strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.audit-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.audit-table-wrap table {
  min-width: 1160px;
}

details summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 700;
}

blockquote {
  margin: 8px 0;
  padding-left: 10px;
  border-left: 3px solid var(--border);
  color: var(--text);
}

pre {
  overflow: auto;
  max-width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.source-list li,
.article-list li {
  margin-bottom: 16px;
}

.audit-note {
  margin: 8px 0 0;
  color: var(--muted);
}

.release {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--border);
}

.release:first-child {
  padding-top: 0;
}

.release h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.release-summary {
  margin: 0 0 12px;
  color: var(--muted);
}

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

.changes li {
  margin: 5px 0;
}

.about h2 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.about p {
  margin: 0 0 12px;
}

code {
  padding: 1px 4px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

@media (max-width: 760px) {
  .topbar {
    display: block;
    padding: 18px;
  }

  nav {
    margin-top: 14px;
  }

  main {
    padding: 16px 18px 24px;
  }

  .site-footer {
    padding: 16px 18px 24px;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .summary {
    justify-self: start;
  }

  .audit-stats {
    grid-template-columns: 1fr 1fr;
  }
}
