:root {
  color-scheme: light;
  --ink: #202a36;
  --muted: #566375;
  --blue: #1746aa;
  --line: #dce1e8;
  --paper: #ffffff;
  --quiet: #f6f8fb;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .8rem 1rem; background: var(--paper); border: 1px solid var(--blue); }
.skip-link:focus { top: 1rem; }
.site-header { height: 76px; padding: 0 max(28px, calc((100vw - 1320px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1.2rem; font-weight: 750; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; color: white; background: var(--blue); border-radius: 5px; font-family: ui-monospace, monospace; font-size: 1rem; }
.header-note { color: var(--muted); font-size: .8rem; }
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); max-width: 1320px; margin: auto; }
.desktop-navigation { position: sticky; top: 76px; height: calc(100vh - 76px); overflow-y: auto; padding: 30px 22px 40px 28px; border-right: 1px solid var(--line); }
.nav-group + .nav-group { margin-top: 1.5rem; }
.nav-heading { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .55rem; }
nav ul { list-style: none; padding: 0; margin: 0; }
nav li + li { margin-top: .12rem; }
nav a { display: block; border-radius: 4px; padding: .38rem .6rem; font-size: .86rem; line-height: 1.45; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
nav a:hover { background: var(--quiet); }
nav a[aria-current="page"] { background: #eaf0fd; color: var(--blue); font-weight: 650; }
.mobile-navigation { display: none; }
main { padding: 52px 60px 32px; min-width: 0; max-width: 1000px; }
main:focus { outline: none; }
.page-heading { margin-bottom: 2.5rem; padding-bottom: 1.7rem; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .8rem; }
h1 { font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.12; font-weight: 700; letter-spacing: -.045em; margin: 0 0 1rem; overflow-wrap: anywhere; }
.page-description { color: var(--muted); max-width: 680px; font-size: 1.08rem; line-height: 1.65; margin: 0; }
article { line-height: 1.8; font-size: .97rem; }
article > :first-child { margin-top: 0; }
h2 { font-size: 1.4rem; line-height: 1.35; letter-spacing: -.025em; margin: 2.5rem 0 1rem; }
h2[id] { scroll-margin-top: 6rem; }
h3 { font-size: 1.08rem; margin-top: 1.8rem; }
p, ul, ol { margin-top: 0; margin-bottom: 1.15rem; }
li + li { margin-top: .35rem; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .86em; overflow-wrap: anywhere; }
:not(pre) > code { background: var(--quiet); border: 1px solid #e6eaf0; padding: .12em .32em; border-radius: 3px; }
pre { background: var(--quiet); border: 1px solid var(--line); border-left: 3px solid #9aafd5; border-radius: 4px; padding: 1.15rem 1.3rem; overflow-x: auto; max-width: 100%; line-height: 1.65; }
pre code { overflow-wrap: normal; font-size: .84rem; }
blockquote { border-left: 3px solid var(--blue); margin: 1.6rem 0; padding: .7rem 1.2rem; background: var(--quiet); }
blockquote > :last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; margin: 1.5rem 0; }
th, td { padding: .75rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { font-size: .8rem; background: var(--quiet); font-weight: 650; }
th:first-child, td:first-child { overflow-wrap: normal; }
.cycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 1.8rem 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.cycle li { padding: 1rem; margin: 0; background: var(--quiet); border-right: 1px solid var(--line); }
.cycle li:last-child { border-right: 0; }
.cycle small { display: block; font-family: ui-monospace, monospace; color: var(--muted); font-size: .7rem; margin-bottom: .4rem; }
.cycle a { font-weight: 650; text-decoration: none; }
.cycle p { font-size: .8rem; line-height: 1.6; margin: .4rem 0 0; }
.source-link { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; font-size: .85rem; }
.source-link code { color: var(--muted); max-width: 100%; }
.page-footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .76rem; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) {
  .site-header { position: static; height: 64px; padding: 0 22px; }
  .shell { display: block; }
  .desktop-navigation { display: none; }
  .mobile-navigation { display: block; background: var(--quiet); border-bottom: 1px solid var(--line); padding: 0 22px; }
  .mobile-navigation summary { padding: 1rem 0; cursor: pointer; font-size: .9rem; font-weight: 650; }
  .mobile-navigation nav { padding: 1rem 0 2rem; }
  main { padding: 34px 22px 28px; }
  .page-heading { margin-bottom: 2rem; }
  .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle li { border-bottom: 1px solid var(--line); }
  .cycle li:nth-child(2n) { border-right: 0; }
  .cycle li:nth-child(n+3) { border-bottom: 0; }
  th, td { padding: .55rem .4rem; font-size: .8rem; }
}
