/* =========================================================
   NULL docs
   Same brand tokens as the marketing site, plus a dark theme.
   Everything below reads from the variables in :root.
   ========================================================= */

:root{
  --bg:#ffffff;
  --bg-soft:#fafafa;
  --surface:#f4f4f4;
  --surface-2:#f7f7f7;
  --ink:#131313;
  --ink-2:#2b2b2b;
  --muted:#6e6e6e;
  --muted-2:#8f8f8f;
  --line:#e6e6e6;
  --line-soft:#efefef;
  --accent:#131313;
  --code-bg:#f7f7f7;
  --code-ink:#1d1d1d;
  --code-line:#e8e8e8;
  --shadow:0 18px 44px rgba(0,0,0,.10);
  --sel:rgba(19,19,19,.10);
  --glow:rgba(19,19,19,.10);
  --glow-ring:rgba(19,19,19,.06);

  --bar-h:60px;
  --tabs-h:46px;
  --side-w:262px;
  --toc-w:212px;
  --gutter:26px;

  --font-display:"Figtree",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --font-body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
}

:root[data-theme="dark"]{
  --bg:#0e0e0e;
  --bg-soft:#131313;
  --surface:#1a1a1a;
  --surface-2:#161616;
  --ink:#f2f2f2;
  --ink-2:#dcdcdc;
  --muted:#9b9b9b;
  --muted-2:#7c7c7c;
  --line:#262626;
  --line-soft:#1f1f1f;
  --accent:#ffffff;
  --code-bg:#141414;
  --code-ink:#e8e8e8;
  --code-line:#242424;
  --shadow:0 18px 44px rgba(0,0,0,.55);
  --sel:rgba(255,255,255,.14);
  --glow:rgba(255,255,255,.07);
  --glow-ring:rgba(255,255,255,.10);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:calc(var(--bar-h) + var(--tabs-h) + 24px); }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:15.5px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
h1,h2,h3,h4,p,ul,ol,figure,pre{ margin:0; }
ul,ol{ padding:0; }
a{ color:inherit; text-decoration:none; }
img,svg{ display:block; max-width:100%; }
button,input{ font:inherit; color:inherit; }
::selection{ background:var(--sel); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

.skip-link{
  position:absolute; left:0; top:0; z-index:200;
  background:var(--ink); color:var(--bg);
  padding:12px 18px; border-radius:0 0 10px 0;
  transform:translateY(-130%);
  transition:transform .15s ease;
}
.skip-link:focus{ transform:none; }
:where(a,button,input,summary):focus-visible{
  outline:2px solid var(--accent); outline-offset:3px; border-radius:6px;
}

.ico{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.6;
      stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; }

/* =========================================================
   TOP BAR
   ========================================================= */
.bar{
  position:sticky; top:0; z-index:60;
  height:var(--bar-h);
  display:flex; align-items:center; gap:18px;
  padding:0 var(--gutter);
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.bar__left{ display:flex; align-items:center; gap:12px; min-width:var(--side-w); }
/* Centres, not baselines. Sharing a baseline is typographically "correct"
   here but reads wrong: small lowercase next to large caps looks like it has
   sunk. Centring the two masses is what actually looks aligned. */
.bar__logo{ display:flex; align-items:center; gap:8px; }
.bar__logo .logo{ height:19px; width:auto; color:var(--ink); overflow:visible; }
.bar__docs{ line-height:1; }
.bar__docs{
  font-family:var(--font-display);
  font-size:14px; font-weight:600; letter-spacing:-.01em;
  color:var(--muted);
}
.bar__right{ display:flex; align-items:center; gap:6px; margin-left:auto; }
.bar__link{
  font-size:13.5px; color:var(--muted);
  padding:8px 12px; border-radius:8px;
  transition:color .15s ease, background .15s ease;
}
.bar__link:hover{ color:var(--ink); background:var(--surface); }

.bar__burger{
  display:none;
  width:34px; height:34px; padding:0;
  background:none; border:0; border-radius:8px; cursor:pointer;
  place-items:center;
}
.bar__burger span{ display:block; width:16px; height:1.6px; background:var(--ink); border-radius:2px; }
.bar__burger span + span{ margin-top:4px; }

.search{
  display:flex; align-items:center; gap:9px;
  width:min(380px, 38vw);
  height:36px; padding:0 10px 0 12px;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:10px;
  color:var(--muted-2);
  font-size:13.5px;
  cursor:pointer;
  transition:border-color .15s ease, color .15s ease;
}
.search:hover{ border-color:var(--muted-2); color:var(--muted); }
.search span{ flex:1; text-align:left; }
kbd{
  font-family:var(--font-mono); font-size:11px;
  padding:2px 6px; border-radius:5px;
  background:var(--bg); border:1px solid var(--line);
  color:var(--muted-2);
}
.theme{
  width:36px; height:36px; display:grid; place-items:center;
  background:none; border:1px solid var(--line); border-radius:10px;
  color:var(--muted); cursor:pointer;
  transition:color .15s ease, border-color .15s ease;
}
.theme:hover{ color:var(--ink); border-color:var(--muted-2); }
.theme__moon{ display:none; }
:root[data-theme="dark"] .theme__sun{ display:none; }
:root[data-theme="dark"] .theme__moon{ display:block; }

/* =========================================================
   TABS
   ========================================================= */
.tabs{
  position:sticky; top:var(--bar-h); z-index:55;
  height:var(--tabs-h);
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  padding:0 var(--gutter);
  overflow-x:auto; scrollbar-width:none;
}
.tabs::-webkit-scrollbar{ display:none; }
.tabs__inner{ display:flex; gap:24px; height:100%; align-items:stretch; }
.tabs a{
  position:relative;
  display:flex; align-items:center;
  font-size:13.5px; font-weight:500;
  color:var(--muted);
  white-space:nowrap;
  transition:color .15s ease;
}
.tabs a:hover{ color:var(--ink); }
.tabs a.is-active{ color:var(--ink); }
.tabs a.is-active::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px;
  height:2px; background:var(--accent); border-radius:2px 2px 0 0;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.shell{
  display:grid;
  grid-template-columns:var(--side-w) minmax(0,1fr) var(--toc-w);
  gap:44px;
  max-width:1420px;
  margin-inline:auto;
  padding:0 var(--gutter) 90px;
}

.side__inner,
.toc__inner{
  position:sticky;
  top:calc(var(--bar-h) + var(--tabs-h) + 26px);
  max-height:calc(100vh - var(--bar-h) - var(--tabs-h) - 52px);
  overflow-y:auto;
  padding:30px 0 40px;
  scrollbar-width:thin;
}
.side__group{
  font-family:var(--font-display);
  font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--muted-2);
  margin:26px 0 10px;
}
.side__group:first-child{ margin-top:0; }
.side__list{ list-style:none; display:grid; gap:1px; }
.side__list a{
  display:block;
  padding:7px 12px;
  margin-left:-12px;
  border-radius:8px;
  font-size:14px;
  color:var(--muted);
  transition:color .14s ease, background .14s ease;
}
.side__list a:hover{ color:var(--ink); background:var(--surface); }
.side__list a.is-active{
  color:var(--ink); font-weight:500;
  background:var(--surface);
  box-shadow:inset 2px 0 0 var(--accent);
}

/* =========================================================
   DOC
   ========================================================= */
.doc{ padding:36px 0 0; min-width:0; }
.crumbs{
  display:flex; align-items:center; gap:9px;
  font-size:12.5px; color:var(--muted-2);
  margin-bottom:14px;
}
.doc__h1{
  font-family:var(--font-display);
  font-size:clamp(30px, 4vw, 42px);
  font-weight:700; letter-spacing:-.035em; line-height:1.08;
}
.doc__lede{
  margin-top:14px;
  font-size:17.5px; line-height:1.6;
  color:var(--muted);
  max-width:64ch;
}

.prose{ margin-top:38px; max-width:none; }
.prose > * + *{ margin-top:20px; }
.prose p{ max-width:74ch; color:var(--ink-2); }
.prose h2{
  margin-top:52px;
  padding-top:4px;
  font-family:var(--font-display);
  font-size:25px; font-weight:600; letter-spacing:-.024em; line-height:1.25;
  scroll-margin-top:calc(var(--bar-h) + var(--tabs-h) + 24px);
}
.prose h3{
  margin-top:34px;
  font-family:var(--font-display);
  font-size:18px; font-weight:600; letter-spacing:-.015em;
  scroll-margin-top:calc(var(--bar-h) + var(--tabs-h) + 24px);
}
.prose h2 .anchor,
.prose h3 .anchor{
  float:left; margin-left:-24px; width:24px;
  color:var(--muted-2); opacity:0;
  font-weight:400; text-decoration:none;
  transition:opacity .15s ease;
}
.prose h2:hover .anchor,
.prose h3:hover .anchor,
.anchor:focus-visible{ opacity:1; }

.prose ul,
.prose ol{ padding-left:22px; max-width:74ch; color:var(--ink-2); }
.prose ul{ list-style:disc; }
.prose ol{ list-style:decimal; }
.prose li + li{ margin-top:8px; }
.prose li::marker{ color:var(--muted-2); }

.prose a:not(.card):not(.anchor){
  color:var(--ink);
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-color:var(--muted-2);
  transition:text-decoration-color .15s ease;
}
.prose a:not(.card):not(.anchor):hover{ text-decoration-color:var(--ink); }
.prose strong{ font-weight:600; color:var(--ink); }

.prose code{
  font-family:var(--font-mono);
  font-size:.86em;
  padding:.15em .42em;
  border-radius:5px;
  background:var(--surface);
  border:1px solid var(--line-soft);
  color:var(--ink);
}
.prose pre{
  position:relative;
  background:var(--code-bg);
  border:1px solid var(--code-line);
  border-radius:12px;
  padding:18px 20px;
  overflow-x:auto;
  font-family:var(--font-mono);
  font-size:13px; line-height:1.7;
  color:var(--code-ink);
}
.prose pre code{ background:none; border:0; padding:0; font-size:inherit; color:inherit; }
.copy{
  position:absolute; top:9px; right:9px;
  display:grid; place-items:center;
  width:30px; height:30px;
  background:var(--bg); border:1px solid var(--line); border-radius:8px;
  color:var(--muted); cursor:pointer;
  opacity:0; transition:opacity .15s ease, color .15s ease;
}
pre:hover .copy, .copy:focus-visible{ opacity:1; }
.copy:hover{ color:var(--ink); }
.copy.is-done{ opacity:1; color:var(--ink); }

.prose blockquote{
  border-left:2px solid var(--line);
  padding-left:18px;
  color:var(--muted);
}

/* callouts */
.note{
  display:flex; gap:13px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface-2);
  font-size:14.5px;
  max-width:74ch;
}
.note__i{
  width:19px; height:19px; margin-top:2px;
  display:grid; place-items:center;
  border-radius:50%;
  background:var(--ink); color:var(--bg);
  font-size:11px; font-weight:700; font-family:var(--font-display);
  flex:0 0 auto;
}
.note p{ margin:0; }
.note p + p{ margin-top:9px; }
.note--todo{ border-style:dashed; }
.note--todo .note__i{ background:var(--muted-2); }

/* cards */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(226px, 1fr));
  gap:14px;
}
.card{
  display:block;
  padding:20px 20px 22px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
  transition:border-color .2s ease, transform .2s ease, box-shadow .28s ease, background .2s ease;
}
a.card:hover{
  border-color:var(--muted-2);
  transform:translateY(-2px);
  background:var(--surface);
  box-shadow:0 0 0 1px var(--glow-ring), 0 8px 30px var(--glow);
}
/* these are spans, so they must be blockified or the title and the
   description run together on one line and the margin does nothing */
.card__t{
  display:block;
  font-family:var(--font-display);
  font-size:15.5px; font-weight:600; letter-spacing:-.012em;
  color:var(--ink);
}
.card__d{
  display:block;
  margin-top:7px; font-size:13.5px; line-height:1.55; color:var(--muted);
}

/* numbered steps. `.prose ol` sets a decimal marker, so this has to out-specify
   it or every step renders its number twice. */
.prose .steps{ list-style:none; padding:0; margin-left:0; counter-reset:s; }
.prose .steps > li{
  position:relative;
  counter-increment:s;
  padding-left:44px;
  margin-top:24px;
}
.prose .steps > li::before{
  content:counter(s, decimal-leading-zero);
  position:absolute; left:0; top:1px;
  width:28px; height:28px;
  display:grid; place-items:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--bg);
  font-family:var(--font-display);
  font-size:11px; font-weight:700;
  color:var(--muted);
}
.steps__t{
  font-family:var(--font-display);
  font-size:16px; font-weight:600; letter-spacing:-.012em;
  color:var(--ink);
}
.prose .steps p{ margin-top:6px; }

/* =========================================================
   FIGURES
   Diagrams are inline SVG using currentColor and the theme
   tokens, so they follow light/dark with no second asset.
   ========================================================= */
.fig{
  margin:30px 0;
  padding:26px 24px 22px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
}
.fig svg{ width:100%; height:auto; display:block; overflow:visible; }
.fig__cap{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--line);
  font-size:13px; line-height:1.55; color:var(--muted);
}
.fig__cap b{ color:var(--ink); font-weight:600; }

/* Figures reveal as they scroll in: a staggered fade, and the flow lines
   draw themselves. One pass only, no looping animation, because a docs page
   that never settles is exhausting to read. Skipped entirely under
   prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference){
  .js .fig svg > *{
    opacity:0;
    transition:opacity .55s ease calc(var(--i, 0) * 55ms);
  }
  .js .fig.is-in svg > *{ opacity:1; }

  /* pathLength="1" normalises the dash maths, so no measuring is needed */
  .js .f-draw{ stroke-dasharray:1; stroke-dashoffset:1; }
  .js .fig.is-in .f-draw{
    stroke-dashoffset:0;
    transition:stroke-dashoffset .85s cubic-bezier(.4,0,.2,1) calc(var(--i, 0) * 55ms + .1s),
               opacity .55s ease calc(var(--i, 0) * 55ms);
  }
}

/* the shared drawing language */
.f-box{ fill:var(--bg); stroke:var(--line); stroke-width:1.5; }
.f-box--fill{ fill:var(--surface); }
.f-box--ink{ fill:var(--ink); stroke:var(--ink); }
.f-line{ fill:none; stroke:var(--muted-2); stroke-width:1.5; stroke-linecap:round; }
.f-line--dash{ stroke-dasharray:4 5; }
.f-line--ink{ stroke:var(--ink); stroke-width:2; }
.f-t{
  font-family:var(--font-display);
  font-size:13px; font-weight:600;
  fill:var(--ink);
}
.f-t--sm{ font-size:11px; font-weight:500; fill:var(--muted); }
.f-t--inv{ fill:var(--bg); }
.f-t--mono{ font-family:var(--font-mono); font-size:10.5px; fill:var(--muted-2); font-weight:400; }
.f-arrow{ fill:var(--muted-2); }
.f-arrow--ink{ fill:var(--ink); }
.f-x{ stroke:var(--muted-2); stroke-width:1.6; stroke-linecap:round; }

/* tables */
.prose table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  display:block;
  overflow-x:auto;
}
.prose th,
.prose td{
  text-align:left;
  padding:12px 16px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.prose th{
  font-family:var(--font-display);
  font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:var(--muted-2);
  white-space:nowrap;
}
.prose td{ color:var(--ink-2); }
.prose tbody tr:last-child td{ border-bottom:0; }

/* definition list for the glossary */
.defs{ display:grid; gap:0; }
.defs__row{ padding:20px 0; border-bottom:1px solid var(--line); }
.prose .defs__row > * + *{ margin-top:6px; }
.defs__row:first-child{ padding-top:0; }
/* the glossary's terms are real headings, so they get anchors and show up in
   "on this page" - but they must not inherit the h3 section spacing */
.prose h3.defs__t{
  margin-top:0;
  font-family:var(--font-display);
  font-size:15.5px; font-weight:600; letter-spacing:-.012em;
  scroll-margin-top:calc(var(--bar-h) + var(--tabs-h) + 24px);
}
.prose h3.defs__t .anchor{ margin-left:-22px; width:22px; }
.defs__d{ margin-top:6px; color:var(--muted); max-width:74ch; }

/* prev / next */
.pnwrap{
  display:grid; grid-template-columns:1fr 1fr; gap:14px;
  margin-top:66px; padding-top:30px;
  border-top:1px solid var(--line);
}
.pn{
  display:flex; flex-direction:column; gap:4px;
  padding:16px 18px;
  border:1px solid var(--line); border-radius:12px;
  transition:border-color .2s ease, box-shadow .28s ease, background .2s ease;
}
.pn:hover{
  border-color:var(--muted-2);
  background:var(--surface-2);
  box-shadow:0 0 0 1px var(--glow-ring), 0 6px 24px var(--glow);
}
.pn span{ font-size:12px; color:var(--muted-2); }
.pn strong{
  font-family:var(--font-display);
  font-size:15px; font-weight:600; letter-spacing:-.012em; color:var(--ink);
}
.pn--next{ text-align:right; align-items:flex-end; }

/* =========================================================
   ON THIS PAGE
   ========================================================= */
.toc__h{
  font-family:var(--font-display);
  font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--muted-2);
  margin-bottom:12px;
}
.toc__list{ list-style:none; display:grid; gap:2px; border-left:1px solid var(--line); }
.toc__list a{
  display:block;
  padding:5px 0 5px 14px;
  margin-left:-1px;
  border-left:1px solid transparent;
  font-size:13px; line-height:1.45;
  color:var(--muted);
  transition:color .14s ease, border-color .14s ease;
}
.toc__list a:hover{ color:var(--ink); }
.toc__list .lvl3 a{ padding-left:26px; font-size:12.5px; }
.toc__list a.is-current{ color:var(--ink); border-left-color:var(--accent); }

/* =========================================================
   SEARCH PALETTE
   ========================================================= */
.scrim{
  position:fixed; inset:0; z-index:90;
  background:rgba(0,0,0,.42);
  backdrop-filter:blur(2px);
}
.pal{
  position:fixed; inset:0; z-index:100;
  display:grid; place-items:start center;
  padding:12vh 20px 20px;
  pointer-events:none;
}
/* an author `display` beats the UA rule for [hidden], so restate it */
.pal[hidden], .scrim[hidden]{ display:none; }
.pal__box{
  width:min(620px, 100%);
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  overflow:hidden;
  pointer-events:auto;
}
.pal__top{
  display:flex; align-items:center; gap:11px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  color:var(--muted-2);
}
.pal__top input{
  flex:1; border:0; background:none; outline:none;
  font-size:16px; color:var(--ink);
}
.pal__top input::placeholder{ color:var(--muted-2); }
.pal__results{ max-height:min(52vh, 440px); overflow-y:auto; padding:8px; }
.pal__item{
  display:block; width:100%; text-align:left;
  padding:11px 13px;
  border:0; border-radius:10px; background:none;
  cursor:pointer;
}
.pal__item[aria-selected="true"]{ background:var(--surface); }
.pal__t{
  font-family:var(--font-display);
  font-size:14.5px; font-weight:600; letter-spacing:-.012em; color:var(--ink);
}
.pal__crumb{ font-size:11.5px; color:var(--muted-2); margin-bottom:3px; }
.pal__snip{ font-size:13px; color:var(--muted); margin-top:3px; line-height:1.5; }
.pal__snip mark, .pal__t mark{ background:var(--sel); color:inherit; border-radius:3px; padding:0 2px; }
.pal__empty{ padding:26px 16px; text-align:center; color:var(--muted); font-size:14px; }

/* =========================================================
   HOME
   ========================================================= */
.home{ max-width:1120px; margin-inline:auto; padding:70px var(--gutter) 100px; }
.home__mark{
  height:clamp(30px, 4.4vw, 42px);
  width:auto;
  margin:0 auto;
  color:var(--ink);
  overflow:visible;
}
.home__h1{
  margin-top:30px;
  font-family:var(--font-display);
  font-size:clamp(34px, 6vw, 62px);
  font-weight:700; letter-spacing:-.04em; line-height:1.04;
  text-align:center;
}
.home__lede{
  margin:22px auto 0;
  max-width:64ch;
  text-align:center;
  font-size:17.5px; line-height:1.6;
  color:var(--muted);
}
.home__grid{
  margin-top:52px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:16px;
}
.home__card{
  position:relative;
  display:flex; flex-direction:column;
  padding:26px 26px 28px;
  border:1px solid var(--line); border-radius:16px;
  background:var(--surface-2);
  transition:border-color .2s ease, transform .2s ease, box-shadow .28s ease, background .2s ease;
}
.home__card:hover{
  border-color:var(--muted-2);
  transform:translateY(-3px);
  background:var(--surface);
  box-shadow:0 0 0 1px var(--glow-ring), 0 10px 40px var(--glow), 0 2px 10px var(--glow);
}
.home__card:hover .home__go{ color:var(--ink); }
.home__go{ transition:color .2s ease; }
.home__tag{
  font-family:var(--font-display);
  font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted-2);
}
.home__ct{
  margin-top:12px;
  font-family:var(--font-display);
  font-size:19px; font-weight:600; letter-spacing:-.02em;
}
.home__cd{ margin-top:9px; font-size:14px; line-height:1.6; color:var(--muted); flex:1; }
.home__go{ margin-top:20px; font-size:13.5px; font-weight:500; color:var(--ink); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
body.no-toc .shell{ grid-template-columns:var(--side-w) minmax(0,1fr); }
body.no-toc .toc{ display:none; }

@media (max-width:1180px){
  :root{ --toc-w:0px; }
  .shell{ grid-template-columns:var(--side-w) minmax(0,1fr); gap:38px; }
  .toc{ display:none; }
}
@media (max-width:900px){
  :root{ --gutter:18px; --bar-h:56px; }
  .bar__left{ min-width:0; }
  .bar__burger{ display:grid; }
  .bar__link{ display:none; }
  .search{ width:auto; flex:1; }
  .search span{ display:none; }
  .search kbd{ display:none; }

  .shell{ grid-template-columns:minmax(0,1fr); gap:0; }
  .side{
    position:fixed; z-index:95;
    top:calc(var(--bar-h) + var(--tabs-h));
    left:0; bottom:0; width:min(310px, 84vw);
    background:var(--bg);
    border-right:1px solid var(--line);
    transform:translateX(-102%);
    transition:transform .26s cubic-bezier(.22,.61,.36,1);
  }
  .side.is-open{ transform:none; }
  .side__inner{ position:static; max-height:none; padding:24px 22px 60px; overflow-y:auto; height:100%; }
  .doc{ padding-top:28px; }
  .doc__lede{ font-size:16.5px; }
  .pnwrap{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .home{ padding-top:48px; }
  .prose pre{ border-radius:10px; padding:16px; }
  .copy{ opacity:1; }
}
