/* MailDNS. One family (Recursive): MONO 0 for prose, MONO 1 for anything a machine reads.
   Palette and rules: BRAND.md. No inline styles anywhere (the content policy blocks them). */

@font-face {
  font-family: "Recursive";
  src: url("fonts/recursive-latin.woff2") format("woff2");
  font-weight: 300 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F4F6F7;
  --sheet: #FFFFFF;
  --mist: #E3EAED;
  --rule: #CAD5DA;
  --ink: #0D2B35;
  --ink-2: #163A46;
  --ink-3: #2A5260;
  --slate: #4A626C;
  --lamp: #33D17A;
  --lamp-ink: #0A7542;
  --on-ink: #C4D4DA;
  --c-text: #DCE7EB;
  --c-dim: #86A2AC;
  --c-str: #F1CB93;
  --c-key: #93D3EC;
  --wrap: 1200px;
  --gutter: 24px;
  --header: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 20px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Recursive", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-variation-settings: "MONO" 0;
  text-rendering: optimizeLegibility;
}
code, pre, kbd, samp {
  font-family: "Recursive", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-variation-settings: "MONO" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
::selection { background: #BFEFD3; color: var(--ink); }

:focus-visible { outline: 3px solid var(--lamp-ink); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 30; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 246, 247, .96);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.word { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.word-dns { font-variation-settings: "MONO" 1; letter-spacing: -0.04em; margin-left: .04em; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 550; color: var(--ink); padding: 6px 0; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: 2px; text-underline-offset: 7px; }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-weight: 650; font-size: 15px;
  padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: 8px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(280px, calc(100vw - 32px));
  background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 12px; padding: 8px;
  display: flex; flex-direction: column;
}
.menu-panel a { text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 550; }
.menu-panel a:hover, .menu-panel a[aria-current] { background: var(--mist); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 8px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--small { padding: 8px 14px; font-size: 14px; }
.btn--quiet { background: transparent; color: var(--ink); }
.btn--quiet:hover { background: var(--mist); border-color: var(--ink); }
.btn--go::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--lamp); box-shadow: 0 0 0 3px rgba(51, 209, 122, .18);
}
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: #FFFFFF; border-color: #FFFFFF; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ home: hero */
.hero { padding: 76px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero h1 {
  font-size: clamp(44px, 6.1vw, 82px); line-height: .98; letter-spacing: -0.045em; font-weight: 860;
  max-width: 11ch;
}
.glue { white-space: nowrap; }
.root {
  display: inline-block; width: .17em; height: .17em; margin-left: .035em; border-radius: 50%;
  background: var(--lamp); color: transparent; overflow: hidden; vertical-align: baseline;
  box-shadow: 0 0 0 .05em rgba(51, 209, 122, .2);
}
.lede { font-size: 20px; line-height: 1.55; max-width: 33em; margin: 28px 0 34px; }

.panel {
  margin: 0; background: var(--ink); color: var(--c-text); border-radius: 14px;
  padding: 22px 24px 20px; font-size: 13.5px; line-height: 1.6;
  font-family: "Recursive", ui-monospace, monospace; font-variation-settings: "MONO" 1;
}
.panel p { margin: 0; }
.ph { color: var(--c-dim); margin-bottom: 8px !important; overflow-wrap: anywhere; }
.verb { color: var(--c-key); font-weight: 650; margin-right: .4em; }
.pl { overflow-wrap: anywhere; }
.pk { color: var(--c-dim); }
.pv { color: var(--c-text); }
.reply { color: var(--c-str); margin-top: 10px !important; overflow-wrap: anywhere; }
.panel-status { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--ink-3); }
.ns-list { list-style: none; margin: 4px 0 0; padding: 0; }
.ns { display: grid; grid-template-columns: minmax(0, 1fr) auto 3ch; align-items: center; gap: 12px; padding: 5px 0; }
.ns + .ns { border-top: 1px solid var(--ink-2); }
.ns-name { overflow-wrap: anywhere; }
.lamp {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--lamp); border: 1.5px solid var(--lamp);
  box-shadow: 0 0 0 3px rgba(51, 209, 122, .16), 0 0 14px rgba(51, 209, 122, .55);
}
.ans { color: var(--lamp); }
.live {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 3ch; align-items: center; gap: 12px;
  margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--ink-3);
  font-size: 16px; font-weight: 700; color: var(--paper);
}
.lamp--big { width: 14px; height: 14px; }
.panel-note { color: var(--slate); font-size: 15px; margin: 16px 2px 0; max-width: 36em; }
.panel-note code, .section-intro code, .rows code {
  background: var(--mist); padding: .06em .32em; border-radius: 4px; font-size: .9em; overflow-wrap: anywhere;
}

/* The one moving thing on the site: the reply arrives, each nameserver's lamp comes on, then "Live", then the
   dot of the headline. Final state is the default style, so reduced motion simply shows it lit. */
@keyframes lamp-on {
  from { background: transparent; border-color: #4E7482; box-shadow: none; }
  to { background: var(--lamp); border-color: var(--lamp); box-shadow: 0 0 0 3px rgba(51, 209, 122, .16), 0 0 14px rgba(51, 209, 122, .55); }
}
@keyframes text-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes root-on { from { background: var(--rule); box-shadow: none; } to { background: var(--lamp); box-shadow: 0 0 0 .05em rgba(51, 209, 122, .2); } }
@media (prefers-reduced-motion: no-preference) {
  .panel .reply { animation: text-on .35s ease-out .5s both; }
  .panel .lamp { animation: lamp-on .28s ease-out both; }
  .panel .ns .ans, .panel .live .ans { animation: text-on .2s ease-out both; }
  .ns--1 .lamp, .ns--1 .ans { animation-delay: 1.05s; }
  .ns--2 .lamp, .ns--2 .ans { animation-delay: 1.4s; }
  .ns--3 .lamp, .ns--3 .ans { animation-delay: 1.75s; }
  .ns--4 .lamp, .ns--4 .ans { animation-delay: 2.1s; }
  .live .lamp, .live .ans { animation-delay: 2.55s; }
  .hero .root { animation: root-on .4s ease-out 2.75s both; }
}

/* ------------------------------------------------------------------ home: sections */
.section { padding: 88px 0; border-top: 1px solid var(--rule); }
.section h2 { font-size: clamp(30px, 3.5vw, 46px); letter-spacing: -0.035em; line-height: 1.04; max-width: 22em; }
.section-intro { color: var(--slate); font-size: 18px; max-width: 38em; margin: 16px 0 36px; }
/* The six-style switchboard: radio inputs + labels, no script. The checked tab joins the petrol panel below. */
.switchboard { margin-top: 8px; }
.st-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.st-tabs {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px;
  background: var(--rule); border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0; overflow: hidden;
}
.st-tab { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 13px; background: var(--sheet); cursor: pointer; min-width: 0; }
.st-tab strong { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; }
.st-tab code { font-size: 13px; color: var(--slate); overflow-wrap: anywhere; }
.st-tab:hover { background: var(--mist); }
#st-dynadot:checked ~ .st-tabs .st-tab--dynadot,
#st-spaceship:checked ~ .st-tabs .st-tab--spaceship,
#st-cloudflare:checked ~ .st-tabs .st-tab--cloudflare,
#st-godaddy:checked ~ .st-tabs .st-tab--godaddy,
#st-porkbun:checked ~ .st-tabs .st-tab--porkbun,
#st-namecheap:checked ~ .st-tabs .st-tab--namecheap { background: var(--ink); color: var(--paper); }
#st-dynadot:checked ~ .st-tabs .st-tab--dynadot code, #st-spaceship:checked ~ .st-tabs .st-tab--spaceship code,
#st-cloudflare:checked ~ .st-tabs .st-tab--cloudflare code, #st-godaddy:checked ~ .st-tabs .st-tab--godaddy code,
#st-porkbun:checked ~ .st-tabs .st-tab--porkbun code, #st-namecheap:checked ~ .st-tabs .st-tab--namecheap code { color: var(--c-key); }
#st-dynadot:focus-visible ~ .st-tabs .st-tab--dynadot,
#st-spaceship:focus-visible ~ .st-tabs .st-tab--spaceship,
#st-cloudflare:focus-visible ~ .st-tabs .st-tab--cloudflare,
#st-godaddy:focus-visible ~ .st-tabs .st-tab--godaddy,
#st-porkbun:focus-visible ~ .st-tabs .st-tab--porkbun,
#st-namecheap:focus-visible ~ .st-tabs .st-tab--namecheap { outline: 3px solid var(--lamp); outline-offset: -4px; }
.st-panels { background: var(--ink); border: 1.5px solid var(--ink); border-top: 0; border-radius: 0 0 12px 12px; }
.st-panel { display: none; }
#st-dynadot:checked ~ .st-panels .st-panel--dynadot,
#st-spaceship:checked ~ .st-panels .st-panel--spaceship,
#st-cloudflare:checked ~ .st-panels .st-panel--cloudflare,
#st-godaddy:checked ~ .st-panels .st-panel--godaddy,
#st-porkbun:checked ~ .st-panels .st-panel--porkbun,
#st-namecheap:checked ~ .st-panels .st-panel--namecheap { display: block; }
.st-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-panel .code { margin: 0; border-radius: 0; }
.st-panel .code pre { font-size: 13px; }
.st-reply { margin: 0; padding: 2px 18px 18px; font-size: 14px; color: var(--on-ink); }
.st-reply code { color: var(--c-str); overflow-wrap: anywhere; }
.st-reply a { color: var(--paper); font-weight: 600; text-decoration-color: var(--lamp); text-underline-offset: 3px; margin-left: 4px; white-space: nowrap; }
.connect { margin: 18px 0 0; font-size: 15px; color: var(--slate); }
.agent-links a, .rows a { text-decoration-color: var(--lamp-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; font-weight: 600; }
.rows q { color: var(--ink); font-weight: 600; }

.rows { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.rows li {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px;
  padding: 28px 0; border-bottom: 1px solid var(--rule);
}
.row-name { margin: 0; padding-top: 3px; display: flex; flex-wrap: wrap; gap: 6px; }
.rows .row-name code { font-size: 16px; font-weight: 500; background: transparent; padding: 0; border-radius: 0; color: var(--ink); }
.rows .row-name code + code::before { content: ""; }
.rows h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.rows p { margin: 0; color: var(--slate); max-width: 38em; }

.agent-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.agent-grid .section-intro { margin-bottom: 20px; }
.agent-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
.agent-grid .code { margin: 6px 0 0; }

.band { background: var(--ink); color: var(--on-ink); padding: 80px 0; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.band h2 { color: var(--paper); font-size: clamp(30px, 3.5vw, 46px); letter-spacing: -0.035em; margin-bottom: 18px; }
.band p { max-width: 40em; margin: 0; font-size: 18px; }
.band-action { margin: 0; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: var(--on-ink); padding: 56px 0 36px; font-size: 15px; border-top: 1px solid var(--ink-3); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--lamp); text-underline-offset: 4px; }
.site-footer .brand { color: var(--paper); margin-bottom: 16px; }
.site-footer .brand svg { box-shadow: 0 0 0 1px var(--ink-3); border-radius: 7px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-brand p { max-width: 26em; }
.site-footer h2 { font-size: 14px; font-weight: 700; color: var(--paper); letter-spacing: 0; margin: 4px 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 6px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ink-3); font-size: 14px;
}
.footer-base p { margin: 0; }
.footer-base a { margin-left: 14px; }

/* ------------------------------------------------------------------ code blocks (docs + home) */
.code { background: var(--ink); border-radius: 10px; margin: 18px 0 24px; overflow: hidden; }
.code-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 36px; padding: 6px 8px 0 18px; color: var(--c-dim); font-size: 13px;
}
.code pre {
  margin: 0; padding: 8px 18px 16px; overflow-x: auto; color: var(--c-text);
  font-size: 13.5px; line-height: 1.62; tab-size: 4;
}
.code[data-lang="text"] pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.copy {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--c-text); cursor: pointer;
  background: transparent; border: 1px solid var(--ink-3); border-radius: 6px; padding: 3px 11px;
}
.copy:hover { border-color: var(--c-dim); }
.copy.is-done { color: var(--lamp); border-color: var(--lamp); }
.t-c { color: var(--c-dim); }
.t-s { color: var(--c-str); }
.t-k, .t-n { color: var(--c-key); }

/* ------------------------------------------------------------------ docs */
.docs.wrap, .is-docs .site-header .wrap, .is-docs .site-footer .wrap { max-width: 1400px; }
.docs {
  display: grid; grid-template-columns: 216px minmax(0, 1fr) 212px; gap: 52px;
  padding-top: 44px; padding-bottom: 104px; align-items: start;
}
.docnav, .toc {
  position: sticky; top: calc(var(--header) + 28px);
  max-height: calc(100vh - var(--header) - 48px); overflow-y: auto;
}
.docnav { font-size: 15px; padding-bottom: 12px; }
.docnav-group { font-size: 13px; font-weight: 650; color: var(--slate); margin: 22px 0 6px; }
.docnav-group:first-child { margin-top: 0; }
.docnav ul, .docnav-m ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.docnav a, .docnav-m a {
  display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 2px solid transparent;
  text-decoration: none; color: var(--ink);
}
.docnav a:hover, .docnav-m a:hover { border-left-color: var(--slate); }
.docnav a[aria-current], .docnav-m a[aria-current] { border-left-color: var(--ink); font-weight: 750; }
.docnav-m { display: none; }

.toc { font-size: 14px; }
.toc-head { font-weight: 700; margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0 0 20px; padding: 0; }
.toc li + li { margin-top: 5px; }
.toc .toc-sub { padding-left: 12px; font-size: 13px; }
.toc .toc-sub + li:not(.toc-sub) { margin-top: 9px; }
.toc a { color: var(--slate); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.toc-md a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lamp-ink); text-underline-offset: 3px; }

.doc { min-width: 0; max-width: 780px; }
.doc h1 { font-size: clamp(34px, 4.2vw, 48px); letter-spacing: -0.04em; line-height: 1.04; margin: 4px 0 18px; }
.doc h1 + p { font-size: 19px; line-height: 1.55; color: var(--ink); max-width: 40em; }
.doc h2 {
  font-size: 27px; letter-spacing: -0.03em; margin: 58px 0 14px; padding-top: 24px; border-top: 1px solid var(--rule);
}
.doc h3 { font-size: 20px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.doc h4 { font-size: 17px; letter-spacing: -0.01em; margin: 30px 0 8px; }
.doc h3 code, .doc h4 code { font-size: .95em; background: none; padding: 0; }
.doc p, .doc li { max-width: 70ch; }
.doc ul, .doc ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.doc li + li { margin-top: 5px; }
.doc li::marker { color: var(--slate); }
.doc a { text-decoration-color: var(--lamp-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.doc a:hover { text-decoration-thickness: 2.5px; }
.doc :not(pre) > code {
  background: var(--mist); padding: .07em .34em; border-radius: 4px; font-size: .88em; overflow-wrap: anywhere;
}
.doc a code { color: var(--ink); }
.headerlink {
  margin-left: .3em; font-weight: 500; color: var(--rule); text-decoration: none !important; opacity: 0;
  font-variation-settings: "MONO" 1;
}
.doc h2:hover .headerlink, .doc h3:hover .headerlink, .doc h4:hover .headerlink, .headerlink:focus { opacity: 1; }
.headerlink:hover { color: var(--lamp-ink); }

.table-wrap { overflow-x: auto; margin: 18px 0 26px; border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.doc th { text-align: left; font-weight: 700; padding: 10px 14px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.doc th:empty { padding: 0; }
.doc td { padding: 10px 14px; border-top: 1px solid var(--rule); vertical-align: top; }
.doc tbody tr:first-child td { border-top: 0; }
.doc td:first-child code { white-space: nowrap; }
.doc td code { overflow-wrap: normal; }

.doc blockquote {
  margin: 22px 0; padding: 14px 18px; background: var(--mist);
  border-left: 3px solid var(--ink); border-radius: 0 8px 8px 0;
}
.doc blockquote p { margin: 0; }
.doc blockquote p + p { margin-top: 8px; }
.doc blockquote code { background: rgba(255, 255, 255, .7); }

.doc-foot { margin-top: 72px; padding-top: 20px; border-top: 2px solid var(--ink); }
.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pager a { display: block; text-decoration: none; color: var(--slate); font-size: 14px; padding: 6px 0; }
.pager a strong { display: block; color: var(--ink); font-size: 19px; letter-spacing: -0.015em; margin-top: 2px; }
.pager a:hover strong { text-decoration: underline; text-decoration-color: var(--lamp-ink); text-underline-offset: 4px; }
.pager-next { grid-column: 2; text-align: right; }
.doc-md { margin: 22px 0 0; font-size: 14px; color: var(--slate); }

/* ------------------------------------------------------------------ plain pages */
.page-wrap { max-width: 820px; padding-top: 56px; padding-bottom: 104px; }
.nx { padding-top: 96px; }
.nx h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.045em; line-height: 1; margin: 12px 0 0; }
.nx-code code { font-size: 15px; color: var(--slate); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .docs { grid-template-columns: 200px minmax(0, 1fr); gap: 44px; }
  .toc { display: none; }
}
@media (max-width: 960px) {
  .st-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero h1 { max-width: 13ch; }
  .agent-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .band-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 20px; }
  .docnav { display: none; }
  .docnav-m { display: block; margin-bottom: 28px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--sheet); }
  .docnav-m summary { cursor: pointer; padding: 11px 16px; font-weight: 650; font-size: 15px; }
  .docnav-m[open] summary { border-bottom: 1px solid var(--rule); }
  .docnav-m nav { padding: 6px 16px 16px; font-size: 15px; }
  .docnav-m .docnav-group { margin-top: 16px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .hero { padding: 36px 0 56px; }
  .hero h1 { font-size: clamp(40px, 11.6vw, 56px); }
  .lede { font-size: 18px; margin: 20px 0 26px; }
  .panel { padding: 18px 16px 16px; font-size: 12.5px; border-radius: 12px; }
  .section { padding: 64px 0; }
  .rows li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .st-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-tab { padding: 11px 12px 10px; }
  .st-tab strong { font-size: 15.5px; }
  .st-tab code { font-size: 12px; }
  .band { padding: 64px 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .code pre { font-size: 12.5px; padding: 8px 14px 14px; }
  .code-bar { padding-left: 14px; }
  .doc h2 { font-size: 24px; margin-top: 48px; }
  .doc h1 + p { font-size: 17.5px; }
  .doc td:first-child code { white-space: normal; overflow-wrap: anywhere; }
  .doc td, .doc th { padding: 9px 10px; }
  .page-wrap { padding-top: 32px; }
  .nx { padding-top: 56px; }
}
