:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #202b38;
  --muted: #526171;
  --line: #d7dfe5;
  --panel: #f3f6f8;
  --link: #075a85;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 system-ui, sans-serif; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: 1.4rem 2rem; border-bottom: 1px solid var(--line); }
.brand { font-size: 1.1rem; font-weight: 750; color: var(--text); text-decoration: none; }
.label { flex: 1; color: var(--muted); font-size: .85rem; }
.layout { display: grid; grid-template-columns: 13rem minmax(0, 48rem); gap: 3rem; max-width: 72rem; margin: auto; padding: 2.5rem 2rem; }
nav { display: flex; flex-direction: column; align-self: start; gap: .3rem; position: sticky; top: 2rem; }
nav a { padding: .5rem .75rem; border-radius: .3rem; text-decoration: none; color: var(--muted); font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { background: var(--panel); color: var(--link); }
nav a[aria-current="page"] { font-weight: 700; }
main { min-width: 0; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.025em; scroll-margin-top: 1.5rem; }
h1 { margin-top: 0; font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { margin-top: 2.5rem; font-size: 1.5rem; }
h3 { margin-top: 2rem; font-size: 1.2rem; }
li + li { margin-top: .4rem; }
code { padding: .12rem .3rem; border-radius: .2rem; background: var(--panel); font-size: .88em; overflow-wrap: anywhere; }
pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: .4rem; line-height: 1.5; }
pre code { padding: 0; overflow-wrap: normal; }
blockquote { margin: 1.5rem 0; padding: .1rem 1.2rem; border-left: 4px solid var(--link); background: var(--panel); }
table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--line); }
footer { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 4rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .75rem; background: var(--bg); z-index: 1; }
.skip-link:focus { top: .5rem; }
@media (max-width: 760px) {
  header { padding: 1rem; gap: .5rem 1rem; }
  .label { flex-basis: 100%; order: 1; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 1rem; }
  nav { position: static; flex-direction: row; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111820; --text: #e1e8ed; --muted: #a5b5c2; --line: #344350; --panel: #1c2732; --link: #80c9ee; }
}
