/*
  Kontena — shared page shell.

  Every page on kontena.app links this file: the landing page, the docs, and whatever comes next.
  What lives here is the *stramien* — tokens, base typography, header, footer, buttons, cards and the
  docs layout. What is specific to one page stays in that page's own <style> block.

  SqlExplorer.Website keeps its CSS inline in every file; that works there because nothing shares a
  layout. Kontena has docs, so the shell has to change in one place or it will drift across pages.

  Colour values come from the app's DesignSystem.md — the same hex the app ships — so the site is the
  same palette rather than a lookalike. Do not eyeball a new shade here: add it there first.
*/

/* ── Tokens ─────────────────────────────────────────────────────────────────── */

:root{
  --bg:#0E1116; --surface:#171B22; --surface-2:#1E232C; --surface-3:#252C39; --raised:#141821;
  --border:#272E39; --border-soft:#1f2530; --border-strong:#38424F;
  --text:#E6EAF0; --text-dim:#9AA4B2; --text-faint:#808B9B;
  --primary:#22D3AA; --primary-dim:#0F9E7E; --primary-ink:#08201A; --primary-hover:#2EE0B7;
  --primary-soft:rgba(34,211,170,.10); --primary-line:rgba(34,211,170,.22); --primary-glow:rgba(34,211,170,.22);
  --accent:#7C6BF5; --success:#34D399; --warn:#F5B14C; --danger:#F87171; --info:#5AB8FF;
  --docker:#2496ED; --podman:#B96FD0; --apple:#8E8E93;

  /* Surfaces that are not a flat token: the sticky header's translucent fill, the faint tint on
     full-width strips, and the two ambient washes on <body>. Named because they differ per theme. */
  --header-bg:rgba(14,17,22,.78);
  --strip-tint:rgba(255,255,255,.012);
  --glow-primary:rgba(34,211,170,.06);
  --glow-accent:rgba(124,107,245,.05);
  --code-bg:#0E1116;

  --sans:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,Menlo,Consolas,monospace;

  --radius-sm:6px; --radius:10px; --radius-lg:14px;
  --shadow:0 4px 20px rgba(0,0,0,.35);
  --shadow-lg:0 24px 70px rgba(0,0,0,.55);
  --maxw:1120px;
  --ease:200ms cubic-bezier(.4,0,.2,1);
}

/*
  Two entrances, in this order — an explicit choice beats the system preference. The light block is
  written twice on purpose: [data-theme] always wins, and :not([data-theme="dark"]) makes sure a
  system-light visitor gets light unless the page forced dark. Same mechanism as the app mockups.
*/
:root[data-theme="light"]{
  --bg:#F6F8FA; --surface:#FFFFFF; --surface-2:#F0F3F6; --surface-3:#E5EAF0; --raised:#FFFFFF;
  --border:#DCE1E8; --border-soft:#E6EAF0; --border-strong:#C3CBD6;
  --text:#1B2430; --text-dim:#55606E; --text-faint:#65707F;
  --primary:#0F9E7E; --primary-dim:#0B7D63; --primary-ink:#FFFFFF; --primary-hover:#0B7D63;
  --primary-soft:rgba(15,158,126,.10); --primary-line:rgba(15,158,126,.24); --primary-glow:rgba(15,158,126,.20);
  --accent:#6D5CE0; --success:#0E9F6E; --warn:#956314; --danger:#E5484D; --info:#2F7FE0;
  --podman:#892CA0; --apple:#8E8E93;

  --header-bg:rgba(246,248,250,.82);
  --strip-tint:rgba(27,36,48,.02);
  --glow-primary:rgba(15,158,126,.07);
  --glow-accent:rgba(109,92,224,.06);
  --code-bg:#F0F3F6;

  --shadow:0 4px 20px rgba(27,36,48,.10);
  --shadow-lg:0 24px 70px rgba(27,36,48,.18);
}

@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]){
    --bg:#F6F8FA; --surface:#FFFFFF; --surface-2:#F0F3F6; --surface-3:#E5EAF0; --raised:#FFFFFF;
    --border:#DCE1E8; --border-soft:#E6EAF0; --border-strong:#C3CBD6;
    --text:#1B2430; --text-dim:#55606E; --text-faint:#65707F;
    --primary:#0F9E7E; --primary-dim:#0B7D63; --primary-ink:#FFFFFF; --primary-hover:#0B7D63;
    --primary-soft:rgba(15,158,126,.10); --primary-line:rgba(15,158,126,.24); --primary-glow:rgba(15,158,126,.20);
    --accent:#6D5CE0; --success:#0E9F6E; --warn:#956314; --danger:#E5484D; --info:#2F7FE0;
    --podman:#892CA0; --apple:#8E8E93;

    --header-bg:rgba(246,248,250,.82);
    --strip-tint:rgba(27,36,48,.02);
    --glow-primary:rgba(15,158,126,.07);
    --glow-accent:rgba(109,92,224,.06);
    --code-bg:#F0F3F6;

    --shadow:0 4px 20px rgba(27,36,48,.10);
    --shadow-lg:0 24px 70px rgba(27,36,48,.18);
  }
}

/* ── Base ───────────────────────────────────────────────────────────────────── */

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:88px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);
  font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;
  background-image:radial-gradient(1200px 600px at 72% -8%,var(--glow-primary),transparent 60%),
                   radial-gradient(900px 500px at 8% 4%,var(--glow-accent),transparent 55%);
  background-repeat:no-repeat;background-attachment:fixed}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0;line-height:1.12;letter-spacing:-.022em;font-weight:700}
p{margin:0}
img{max-width:100%;display:block}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.mono{font-family:var(--mono)}
.dim{color:var(--text-dim)}
.eyebrow{font-family:var(--mono);font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--primary);font-weight:500}

/* Keyboard users land on this before the nav; it stays out of the way until focused. */
.skip{position:absolute;left:-9999px;top:0;z-index:100;background:var(--surface);color:var(--text);
  border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 16px;font-weight:600}
.skip:focus{left:16px;top:12px}

/* ── Buttons ────────────────────────────────────────────────────────────────── */

.btn{display:inline-flex;align-items:center;gap:9px;font-family:inherit;font-size:14.5px;
  font-weight:600;padding:11px 18px;border-radius:var(--radius-sm);border:1px solid var(--border);
  background:var(--surface-2);color:var(--text);cursor:pointer;transition:var(--ease);white-space:nowrap}
.btn:hover{background:var(--surface-3);border-color:var(--border-strong);transform:translateY(-1px)}
.btn svg{width:17px;height:17px}
.btn.primary{background:var(--primary);border-color:var(--primary);color:var(--primary-ink);
  box-shadow:0 6px 24px -8px var(--primary-glow)}
.btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.btn.ghost{background:transparent;border-color:transparent}
.btn.ghost:hover{background:var(--surface-2);border-color:transparent}
.btn.lg{padding:14px 24px;font-size:15.5px}
@media (prefers-reduced-motion:reduce){.btn:hover{transform:none}}

/* Square icon-only control — theme toggle, menu button, and the ⌘K opener once it lands. */
.iconbtn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;
  border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface-2);
  color:var(--text-dim);cursor:pointer;transition:var(--ease)}
.iconbtn:hover{color:var(--text);background:var(--surface-3);border-color:var(--border-strong)}
.iconbtn svg{width:18px;height:18px}

/*
  One button, two glyphs: show the theme you would switch *to*, never both at once. The order matches
  the token blocks above — dark is the default, a system-light visitor flips it, and an explicit
  choice wins over both. Getting this wrong shows nothing at all rather than the wrong icon, which is
  why the default here is a visible glyph and not `display:none`.
*/
.themetoggle .sun{display:block}
.themetoggle .moon{display:none}
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]) .themetoggle .sun{display:none}
  :root:not([data-theme="dark"]) .themetoggle .moon{display:block}
}
:root[data-theme="dark"] .themetoggle .sun{display:block}
:root[data-theme="dark"] .themetoggle .moon{display:none}
:root[data-theme="light"] .themetoggle .sun{display:none}
:root[data-theme="light"] .themetoggle .moon{display:block}

/* ── Header ─────────────────────────────────────────────────────────────────── */

header.site{position:sticky;top:0;z-index:50;background:var(--header-bg);
  backdrop-filter:saturate(150%) blur(12px);border-bottom:1px solid var(--border-soft)}
.nav{display:flex;align-items:center;gap:24px;height:64px}
.brand{display:flex;align-items:center;gap:11px;font-weight:700;font-size:17px;letter-spacing:-.01em}
.brand .logo{width:28px;height:28px;flex:none}
.nav .links{display:flex;gap:4px;margin-left:12px}
.nav .links a{padding:8px 12px;border-radius:var(--radius-sm);color:var(--text-dim);
  font-size:14.5px;font-weight:500;transition:var(--ease)}
.nav .links a:hover{color:var(--text);background:var(--surface-2)}
.nav .links a.on{color:var(--text)}
.nav .spacer{flex:1}
.nav .right{display:flex;align-items:center;gap:10px}
.navtoggle{display:none}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

footer.site{border-top:1px solid var(--border-soft);padding:48px 0 40px;margin-top:20px}
.foot{display:flex;justify-content:space-between;gap:32px;flex-wrap:wrap;align-items:flex-start}
.foot .brand{margin-bottom:12px}
.foot .tag{color:var(--text-faint);font-size:13.5px;max-width:280px}
.foot .cols{display:flex;gap:64px;flex-wrap:wrap}
.foot .col h4{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--text-faint);
  font-weight:600;margin-bottom:14px}
.foot .col a{display:block;color:var(--text-dim);font-size:14px;padding:5px 0;transition:var(--ease)}
.foot .col a:hover{color:var(--primary)}
.foot-bottom{margin-top:40px;padding-top:22px;border-top:1px solid var(--border-soft);
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:var(--text-faint);font-size:13px}

/* ── Shared blocks ──────────────────────────────────────────────────────────── */

section{padding:92px 0}
.sec-head{max-width:640px;margin:0 auto 52px;text-align:center}
.sec-head h2{font-size:34px;margin:14px 0 12px}
.sec-head p{color:var(--text-dim);font-size:17px}

.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:24px;transition:var(--ease)}
.card:hover{border-color:var(--border-strong);transform:translateY(-3px);box-shadow:var(--shadow)}
.card .ico{width:42px;height:42px;border-radius:10px;background:var(--primary-soft);
  border:1px solid var(--primary-line);display:grid;place-items:center;margin-bottom:16px}
.card .ico svg{width:21px;height:21px;color:var(--primary)}
.card h3{font-size:17px;margin-bottom:8px}
.card p{color:var(--text-dim);font-size:14.5px;line-height:1.55}
@media (prefers-reduced-motion:reduce){.card:hover{transform:none}}

/* App window frame around a screenshot. Used on the landing page and in the docs. */
.frame{position:relative;border:1px solid var(--border);border-radius:var(--radius-lg);
  background:var(--surface);box-shadow:var(--shadow-lg);overflow:hidden}
.frame .bar{display:flex;align-items:center;gap:8px;padding:11px 15px;background:var(--raised);
  border-bottom:1px solid var(--border)}
.frame .bar i{width:11px;height:11px;border-radius:50%;background:var(--border-strong);display:block}
.frame .bar i:nth-child(1){background:#F87171AA}
.frame .bar i:nth-child(2){background:#F5B14CAA}
.frame .bar i:nth-child(3){background:#34D399AA}
.frame .bar .t{margin-left:8px;font-family:var(--mono);font-size:12px;color:var(--text-faint)}
.frame img{width:100%;height:auto;display:block}

/*
  A framed shot that opens its own file. The docs prose column is ~540px while the captured window
  is 1180 layout pixels wide, so even a 2x asset renders the app's own text at about half size —
  readable only once you can open it. The frame lifts on hover to say so.
*/
.prose a.shot{display:block;margin:24px 0}
/* .prose img has a 24px block margin; inside a frame that shows up as a band of frame background
   above and below the screenshot, because the frame clips it instead of collapsing it. */
.prose .frame img{margin:0}
.prose a.shot .frame{margin:0;transition:transform var(--ease),box-shadow var(--ease)}
.prose a.shot:hover .frame{transform:translateY(-2px);border-color:var(--border-strong)}
@media (prefers-reduced-motion:reduce){.prose a.shot:hover .frame{transform:none}}
.js .prose a.shot{cursor:zoom-in}

/*
  Lightbox. Built by site.js on first use; the markup it enhances is an ordinary link to the image,
  so with no JavaScript the screenshot still opens — just in a tab instead of here.

  The scrim is dark in both themes on purpose: it is what makes a light screenshot read as lifted off
  the page rather than merged into it.
*/
.lightbox{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;
  padding:24px;background:rgba(8,10,14,.82);backdrop-filter:blur(4px);cursor:zoom-out;
  animation:lightbox-in 140ms ease-out}
.lightbox[hidden]{display:none}
/* Capped at the window's own layout width, so the app renders at 1:1 rather than upscaled past it. */
.lightbox img{max-width:min(1180px,100%);max-height:100%;width:auto;height:auto;object-fit:contain;
  border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
  cursor:default;display:block}
.lightbox-close{position:absolute;top:16px;right:16px;width:40px;height:40px;display:flex;
  align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius-sm);background:rgba(255,255,255,.08);color:#fff;cursor:pointer;
  transition:var(--ease)}
.lightbox-close:hover{background:rgba(255,255,255,.16)}
.lightbox-close svg{width:20px;height:20px}
body.lightbox-open{overflow:hidden}
@keyframes lightbox-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.lightbox{animation:none}}

/*
  On a phone, fitting a 1180px window into the viewport lands within ~15px of the thumbnail it was
  opened from — no gain at all. Below this width the image keeps its own size and the box pans
  instead, which is the only way the app's text is legible on a small screen.
*/
@media (max-width:719px){
  .lightbox{overflow:auto;align-items:flex-start;justify-content:flex-start;padding:56px 16px 16px}
  .lightbox img{max-width:none;max-height:none;width:1180px}
  .lightbox-close{position:fixed}
}

/* ── Docs layout ────────────────────────────────────────────────────────────── */

/*
  Three columns on desktop: navigation, prose, table of contents. Starlight generated all three; here
  each page writes its own sidebar and TOC markup, so keep the classes stable — they are the contract
  between pages.
*/
.docs{display:grid;grid-template-columns:236px minmax(0,1fr) 200px;gap:48px;
  max-width:var(--maxw);margin:0 auto;padding:40px 24px 80px;align-items:start}

/*
  overflow-y:auto forces overflow-x to auto too, and that clips to the padding box. The links bleed
  10px left (margin-left:-10px) so their highlight sticks out past the text column, so pad this box
  by the same 10px — the bleed then lands exactly on the clip edge — and pull it back with a
  negative margin so nothing actually moves.
*/
.docs-nav{position:sticky;top:88px;max-height:calc(100vh - 108px);overflow-y:auto;
  margin-left:-10px;padding-left:10px}
.docs-nav h4{font-size:11.5px;text-transform:uppercase;letter-spacing:.1em;color:var(--text-faint);
  font-weight:600;margin:22px 0 8px}
.docs-nav h4:first-child{margin-top:0}
.docs-nav a{display:block;padding:6px 10px;margin-left:-10px;border-radius:var(--radius-sm);
  color:var(--text-dim);font-size:14px;transition:var(--ease)}
.docs-nav a:hover{color:var(--text);background:var(--surface-2)}
.docs-nav a[aria-current="page"]{color:var(--primary);background:var(--primary-soft);font-weight:600}

.docs-toc{position:sticky;top:88px;font-size:13.5px}
.docs-toc h4{font-size:11.5px;text-transform:uppercase;letter-spacing:.1em;color:var(--text-faint);
  font-weight:600;margin:0 0 8px}
.docs-toc a{display:block;padding:4px 0 4px 12px;border-left:2px solid var(--border);
  color:var(--text-dim);transition:var(--ease)}
.docs-toc a:hover{color:var(--text);border-left-color:var(--border-strong)}
.docs-toc a.on{color:var(--primary);border-left-color:var(--primary)}

/* Prose. Everything the docs pages write inside <article class="prose">. */
.prose{min-width:0;font-size:16px;color:var(--text-dim)}
.prose h1{font-size:38px;letter-spacing:-.03em;color:var(--text);margin-bottom:12px}
.prose > p.lede{font-size:18px;color:var(--text-dim);margin-bottom:34px}
.prose h2{font-size:25px;color:var(--text);margin:44px 0 14px;scroll-margin-top:88px}
.prose h3{font-size:19px;color:var(--text);margin:30px 0 10px;scroll-margin-top:88px}
.prose p{margin:0 0 16px}
.prose ul,.prose ol{margin:0 0 16px;padding-left:22px}
.prose li{margin:6px 0}
.prose a:not(.btn){color:var(--primary);text-decoration:underline;text-underline-offset:3px;
  text-decoration-color:var(--primary-line)}
.prose a:not(.btn):hover{text-decoration-color:var(--primary)}
.prose strong{color:var(--text);font-weight:600}
.prose img,.prose .frame{margin:24px 0}
.prose hr{border:0;border-top:1px solid var(--border);margin:36px 0}

/* A heading you can link to: the anchor appears on hover, and stays put for keyboard users. */
.prose .anchor{margin-left:8px;color:var(--text-faint);opacity:0;font-weight:400;text-decoration:none}
.prose h2:hover .anchor,.prose h3:hover .anchor,.prose .anchor:focus-visible{opacity:1}

.prose code{font-family:var(--mono);font-size:.88em;background:var(--surface-2);
  border:1px solid var(--border-soft);border-radius:var(--radius-sm);padding:2px 6px;color:var(--text)}
.prose pre{background:var(--code-bg);border:1px solid var(--border);border-radius:var(--radius);
  padding:16px 18px;overflow-x:auto;margin:0 0 20px;line-height:1.55}
.prose pre code{background:none;border:0;padding:0;font-size:13.5px;color:var(--text-dim)}

.prose table{width:100%;border-collapse:collapse;margin:0 0 22px;font-size:14.5px}
.prose th{text-align:left;font-size:11.5px;text-transform:uppercase;letter-spacing:.08em;
  color:var(--text-faint);font-weight:600;padding:0 12px 8px;border-bottom:1px solid var(--border)}
.prose td{padding:10px 12px;border-bottom:1px solid var(--border-soft);vertical-align:top}
/* Tables are the one thing that will not shrink; let them scroll rather than push the page wide. */
.prose .table-scroll{overflow-x:auto;margin:0 0 22px}
.prose .table-scroll table{margin:0}

/* Per-platform instructions. Without JavaScript every panel is simply visible, each under its own
   heading — the page loses the tabs, not the content. */
.tabs{margin:0 0 22px}
.tablist{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:18px}
.tablist button{font:inherit;font-size:14px;font-weight:600;color:var(--text-dim);background:none;
  border:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:9px 14px;cursor:pointer;
  transition:var(--ease)}
.tablist button:hover{color:var(--text)}
.tablist button[aria-selected="true"]{color:var(--primary);border-bottom-color:var(--primary)}
.tabpanel > h4{font-size:15px;color:var(--text);margin:0 0 12px}
.js .tablist{display:flex}
.js .tabpanel[hidden]{display:none}
.js .tabpanel > h4{display:none}

.cardgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 22px}
.cardgrid .card{padding:18px}
.cardgrid .card h4{font-size:15px;color:var(--text);margin:0 0 6px}
.cardgrid .card p{margin:0;font-size:14px}
.cardgrid .card:hover{transform:none;box-shadow:none;border-color:var(--border)}

/* A link that is a whole block. It opts out of .prose link styling for the same reason .docnav does. */
.linkcard,.prose .linkcard{display:block;border:1px solid var(--border);border-radius:var(--radius);
  padding:16px 18px;background:var(--surface);margin:0 0 14px;transition:var(--ease);
  color:var(--text);text-decoration:none}
.linkcard:hover{border-color:var(--border-strong);background:var(--surface-2)}
.linkcard b{display:block;font-size:15px;font-weight:600;margin-bottom:3px}
.linkcard span{font-size:14px;color:var(--text-dim)}
.linkcard b::after{content:" →";color:var(--primary)}

@media (max-width:720px){.cardgrid{grid-template-columns:1fr}}

kbd{font-family:var(--mono);font-size:.82em;background:var(--surface-2);border:1px solid var(--border);
  border-bottom-width:2px;border-radius:5px;padding:2px 6px;color:var(--text)}

/* Callout. Colour is never the only carrier — every callout keeps its label. */
.note{display:flex;gap:13px;background:var(--surface);border:1px solid var(--border);
  border-left:3px solid var(--info);border-radius:var(--radius);padding:16px 18px;margin:0 0 22px}
.note svg{width:18px;height:18px;flex:none;margin-top:2px;color:var(--info)}
.note b{display:block;color:var(--text);font-weight:600;margin-bottom:3px}
.note p{margin:0;font-size:14.5px}
.note.warn{border-left-color:var(--warn)} .note.warn svg{color:var(--warn)}
.note.danger{border-left-color:var(--danger)} .note.danger svg{color:var(--danger)}

/* Previous / next, mirroring the sidebar order. */
.docnav{display:flex;gap:14px;margin-top:56px;padding-top:26px;border-top:1px solid var(--border)}
/* These sit inside .prose, so they have to opt out of the link styling it applies to body text —
   a whole card underlined in teal reads as a link inside a link. */
.docnav a,.prose .docnav a{flex:1;border:1px solid var(--border);border-radius:var(--radius);
  padding:14px 16px;background:var(--surface);transition:var(--ease);font-weight:600;font-size:14.5px;
  color:var(--text);text-decoration:none}
.docnav a:hover{border-color:var(--border-strong);background:var(--surface-2)}
.docnav a.next{text-align:right}
.docnav .nl{display:block;font-size:11.5px;text-transform:uppercase;letter-spacing:.08em;
  color:var(--text-faint);font-weight:600;margin-bottom:4px}

.editlink{margin-top:26px;font-size:13.5px;color:var(--text-faint)}
.editlink a{color:var(--text-dim);text-decoration:underline;text-underline-offset:3px}
.editlink a:hover{color:var(--primary)}

/* ── Reveal on scroll ───────────────────────────────────────────────────────── */

/* Only hide-for-reveal once JS is running, so a no-JS visitor sees every section. */
.js .reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.js .reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.js .reveal{opacity:1;transform:none;transition:none}}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width:1080px){
  /* The TOC is the first thing to go: it is a convenience, the sidebar is navigation. */
  .docs{grid-template-columns:220px minmax(0,1fr);gap:36px}
  .docs-toc{display:none}
}

@media (max-width:860px){
  section{padding:68px 0}
  .nav .links{display:none}
  .navtoggle{display:inline-flex}
  .nav.open .links{display:flex;position:absolute;top:64px;left:0;right:0;flex-direction:column;
    background:var(--bg);border-bottom:1px solid var(--border);padding:12px 24px;gap:2px;z-index:50}

  /* Docs sidebar becomes a strip above the article — still navigation, no longer a column. */
  .docs{grid-template-columns:minmax(0,1fr);gap:0;padding-top:28px}
  .docs-nav{position:static;max-height:none;overflow:visible;margin-bottom:32px;
    margin-left:0;padding-left:0;padding-bottom:20px;border-bottom:1px solid var(--border)}
  .docs-nav h4{margin-top:16px}
  .prose h1{font-size:31px}
  .docnav{flex-direction:column}
  .docnav a.next{text-align:left}
}

@media (max-width:560px){
  .foot .cols{gap:32px}
}
