:root {
  --text: #1a1a1a;
  --muted: #555;
  --accent: #1a5c3a;
  --rule: #ddd;
  --bg: #fdfdfb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
nav {
  max-width: 65ch;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
}
nav .brand {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
nav a {
  color: var(--accent);
  text-decoration: none;
}
nav a:hover { text-decoration: underline; }
nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}
main {
  max-width: 65ch;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.subtitle {
  color: var(--muted);
  margin: 0 0 2rem;
}
h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
h1 + h2, .subtitle + h2 { border-top: none; padding-top: 0; margin-top: 1.5rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.aside {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: var(--muted);
}
.note {
  border-left: 3px solid var(--rule);
  padding-left: 1rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.table-scroll { overflow-x: auto; margin: 0 0 1rem; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.5;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  min-width: 9rem;
}
th:first-child, td:first-child {
  min-width: 7rem;
  color: var(--muted);
  font-weight: 400;
}
thead th { font-weight: 600; color: var(--text); }
figure { margin: 0 0 2rem; }
figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  display: block;
}
figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}
footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Language switcher: pushed to the far end of the nav. */
nav a.lang { margin-left: auto; }
