/* Colours follow the app's design tokens (src/ui/tokens.ts). */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --primary: #3b5bdb;
  --text: #1a1d23;
  --muted: #6b7280;
  --border: #e5e7eb;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #1a1d23;
    --primary: #7b93f5;
    --text: #f1f3f5;
    --muted: #9ca3af;
    --border: #2a2e36;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.55 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--primary);
}

header,
main,
footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 8px;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

nav.langs {
  display: flex;
  gap: 12px;
  font-size: 15px;
}

nav.langs a[aria-current='true'] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

main {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 20px 32px;
  margin-top: 8px;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 4px;
}

h2 {
  font-size: 21px;
  margin: 32px 0 8px;
}

.updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 20px;
}

.summary {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

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

.table {
  overflow-x: auto;
}

footer {
  color: var(--muted);
  font-size: 15px;
  padding-top: 20px;
  padding-bottom: 40px;
}

.docs {
  list-style: none;
  padding: 0;
}

.docs li {
  margin: 8px 0;
}
