/* Cadrix documentation site. Self-contained: tokens, base, layout, components. */
@font-face { font-family: 'Inter'; src: url('../fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/GeistMonoVariable-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #0b0e14;
  --navy: #0f1420;
  --orange: #ff7a1a;
  --orange-2: #ff9a4d;
  --orange-ink: #c4500a;
  --violet: #6d4aff;
  --teal: #19c3a6;

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

  --bg: #ffffff;
  --bg-2: #faf9f6;
  --bg-3: #f2f0ea;
  --fg: #10131a;
  --fg-2: #444c5c;
  --fg-3: #636c7e;
  --line: rgba(16, 19, 26, 0.1);
  --line-strong: rgba(16, 19, 26, 0.2);
  --link: #b24508;
  --accent: var(--orange-ink);
  --code-bg: #f5f3ee;
  --code-fg: #1b2130;
  --note: #2563eb;      --note-bg: rgba(37, 99, 235, 0.07);
  --tip: #0e8a73;       --tip-bg: rgba(25, 195, 166, 0.1);
  --warn: #b45309;      --warn-bg: rgba(255, 122, 26, 0.1);
  --shadow: 0 1px 2px rgba(11, 14, 20, 0.06), 0 8px 24px -8px rgba(11, 14, 20, 0.12);

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --top-h: 64px;
  --side-w: 288px;
  --toc-w: 232px;
  --content-w: 760px;
  --gutter: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --bg-2: #131a29;
    --bg-3: #1a2336;
    --fg: #eef0f6;
    --fg-2: #b4bccd;
    --fg-3: #8e98ad;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.2);
    --link: #ffa35c;
    --accent: var(--orange-2);
    --code-bg: #0a0e17;
    --code-fg: #e6e9f2;
    --note: #7aa7ff;  --note-bg: rgba(122, 167, 255, 0.1);
    --tip: #3fd9bd;   --tip-bg: rgba(25, 195, 166, 0.12);
    --warn: #ffb066;  --warn-bg: rgba(255, 122, 26, 0.13);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 20px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, pre, table, blockquote, dl { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255, 122, 26, 0.3); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -64px; z-index: 300; background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 100; height: var(--top-h); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar__in { height: 100%; display: flex; align-items: center; gap: 12px; padding-inline: var(--gutter); max-width: 1560px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 1.08rem; min-height: 40px; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand__tag { font-family: var(--font-mono); font-weight: 500; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 8px; }
.iconbtn { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--fg); border: 1px solid var(--line); flex: none; }
.iconbtn:hover { background: var(--bg-3); }
.iconbtn svg { width: 20px; height: 20px; }
.topbar__menu { display: none; }
.topbar__search-btn { display: none; }
.topbar__links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.toplink { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; color: var(--fg-2); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.toplink:hover { color: var(--fg); background: var(--bg-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; background: var(--orange); color: var(--ink); border: 1px solid transparent; white-space: nowrap; }
.btn:hover { background: var(--orange-2); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bg-3); }
.btn svg { width: 16px; height: 16px; }

/* ---------- search ---------- */
.search { position: relative; flex: 0 1 420px; margin-left: 18px; }
.search__field { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-2); }
.search__field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, .2); }
.search__field > svg { width: 18px; height: 18px; color: var(--fg-3); flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; font-size: .95rem; color: var(--fg); }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--fg-3); }
.search kbd { font-family: var(--font-mono); font-size: .72rem; color: var(--fg-3); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 7px; line-height: 1.5; }
.search__panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow), 0 24px 60px -20px rgba(0, 0, 0, .35); max-height: min(70vh, 520px); overflow-y: auto; padding: 6px; z-index: 120; min-width: min(560px, calc(100vw - 32px)); }
.search__panel[hidden] { display: none; }
.search__item { display: block; padding: 10px 12px; border-radius: 10px; color: var(--fg); text-decoration: none; min-height: 44px; }
.search__item:hover, .search__item[aria-selected='true'] { background: var(--bg-3); }
.search__item[aria-selected='true'] { outline: 2px solid var(--orange); outline-offset: -2px; }
.search__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.search__title small { font-family: var(--font-mono); font-weight: 500; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.search__snip { display: block; margin-top: 3px; font-size: .84rem; line-height: 1.5; color: var(--fg-2); }
.search mark { background: rgba(255, 122, 26, .28); color: inherit; border-radius: 3px; padding: 0 1px; }
.search__empty { padding: 14px 12px; color: var(--fg-2); font-size: .92rem; }
.search__hint { padding: 8px 12px 4px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--fg-3); }
.search--hero { flex: none; width: 100%; max-width: 620px; margin: 0; }
.search--hero .search__field { height: 54px; padding: 0 18px; background: var(--bg); box-shadow: var(--shadow); }
.search--hero input { font-size: 1.05rem; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); max-width: 1560px; margin-inline: auto; align-items: start; }
.sidebar { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 24px 16px 48px var(--gutter); border-right: 1px solid var(--line); overscroll-behavior: contain; }
.sidenav .grp { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); padding: 0 12px; margin: 22px 0 6px; line-height: 1.4; }
.sidenav .grp:first-child { margin-top: 0; }
.sidenav ul { list-style: none; }
.sidenav a { display: flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 10px; color: var(--fg-2); text-decoration: none; font-size: .94rem; font-weight: 500; line-height: 1.35; }
.sidenav a:hover { background: var(--bg-3); color: var(--fg); }
.sidenav a[aria-current='page'] { background: rgba(255, 122, 26, .12); color: var(--fg); font-weight: 600; box-shadow: inset 3px 0 0 var(--orange); }
.scrim { display: none; }

.main-col { display: grid; grid-template-columns: minmax(0, 1fr) var(--toc-w); gap: 48px; padding: 0 var(--gutter) 0 clamp(var(--gutter), 4vw, 56px); min-width: 0; }
.main-col--solo { grid-template-columns: minmax(0, 1fr); }
.page { min-width: 0; max-width: var(--content-w); padding: 36px 0 72px; }
.main-col--solo .page { max-width: 860px; }
.main-col--solo .page--wide, .page--wide { max-width: 980px; }

.crumbs { margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: .86rem; color: var(--fg-3); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--fg-3); text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }
.crumbs [aria-current] { color: var(--fg-2); }

.page h1 { font-size: clamp(2rem, 4.4vw, 2.7rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.lede { margin-top: 14px; font-size: 1.14rem; line-height: 1.6; color: var(--fg-2); max-width: 40em; }
.page > article > :first-child { margin-top: 0; }
.prose { margin-top: 28px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.4em; padding-top: 1.1em; border-top: 1px solid var(--line); font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.025em; font-weight: 650; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 1.9em; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose p, .prose li { color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ul.cards, .prose ul.linklist { list-style: none; padding-left: 0; }
.prose .prose--home h2 { }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--fg-3); }
.prose strong { font-weight: 650; }
.prose .anchor { margin-left: .4em; color: var(--fg-3); text-decoration: none; font-weight: 500; opacity: 0; font-size: .85em; padding: 0 .25em; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus-visible { opacity: 1; }
.prose code { font-family: var(--font-mono); font-size: .86em; background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px; padding: .12em .4em; overflow-wrap: anywhere; }
.prose kbd { font-family: var(--font-mono); font-size: .8em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: .05em .45em; background: var(--bg-2); }
.ui { font-weight: 600; color: var(--fg); }

/* steps */
.steps { list-style: none; padding: 0 !important; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; min-height: 32px; }
.steps > li + li { margin-top: 1.1em; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: .82rem; font-weight: 600; background: var(--ink); color: #fff; border: 1px solid var(--line-strong); }
@media (prefers-color-scheme: dark) { .steps > li::before { background: var(--orange); color: var(--ink); border-color: transparent; } }
.steps > li > :first-child { margin-top: 0; }
.steps > li > * + * { margin-top: .6em; }

/* callouts */
.callout { --c: var(--note); --cb: var(--note-bg); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); background: var(--cb); border-radius: var(--r-md); padding: 14px 16px 14px 16px; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.callout--tip { --c: var(--tip); --cb: var(--tip-bg); }
.callout--warning { --c: var(--warn); --cb: var(--warn-bg); }
.callout > svg { width: 22px; height: 22px; color: var(--c); margin-top: 2px; }
.callout__body > * + * { margin-top: .55em; }
.callout__title { display: block; font-weight: 700; font-size: .92rem; color: var(--c); letter-spacing: -0.005em; }
.callout p, .callout li { font-size: .96rem; line-height: 1.6; }

/* code */
.codeblock { position: relative; border-radius: var(--r-md); background: var(--code-bg); border: 1px solid var(--line); overflow: hidden; }
.codeblock__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.copy { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 8px; font-family: var(--font-sans); font-size: .82rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--fg-2); }
.copy:hover { background: var(--bg-3); color: var(--fg); }
.copy svg { width: 15px; height: 15px; }
.codeblock pre { overflow-x: auto; padding: 14px 16px; font-family: var(--font-mono); font-size: .86rem; line-height: 1.65; color: var(--code-fg); tab-size: 2; }
.codeblock pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
pre:not(.codeblock pre) { overflow-x: auto; background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; font-family: var(--font-mono); font-size: .86rem; line-height: 1.65; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 0; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
caption { text-align: left; padding: 12px 14px; font-weight: 600; font-size: .9rem; color: var(--fg-2); caption-side: top; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line); }
thead th { background: var(--bg-2); border-top: 0; font-weight: 650; font-size: .82rem; letter-spacing: .02em; color: var(--fg-2); white-space: nowrap; }
tbody th { font-weight: 600; white-space: nowrap; }
td .yes { color: var(--tip); font-weight: 700; }
td .no { color: var(--fg-3); }
.table-wrap td, .table-wrap th { min-width: 84px; }
.table-wrap td:first-child, .table-wrap th:first-child { min-width: 120px; }

/* figures */
figure { margin-top: 1.4em; }
figure img { width: 100%; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-2); }
figcaption { margin-top: 10px; font-size: .86rem; line-height: 1.5; color: var(--fg-3); }

/* definition list */
.defs { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.defs > div { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 4px 20px; padding: 12px 16px; border-top: 1px solid var(--line); }
.defs > div:first-child { border-top: 0; }
.defs dt { font-weight: 650; }
.defs dd { margin: 0; color: var(--fg-2); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; list-style: none; padding: 0 !important; }
.cards > li { margin: 0 !important; }
.card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); color: var(--fg); text-decoration: none; box-shadow: var(--shadow); transition: border-color .2s, transform .25s; }
.card:hover { border-color: var(--orange); transform: translateY(-2px); }
.card__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(255, 122, 26, .18), rgba(109, 74, 255, .16)); border: 1px solid var(--line); color: var(--accent); }
.card__ic svg { width: 22px; height: 22px; }
.card strong { display: block; font-size: 1.02rem; line-height: 1.3; letter-spacing: -0.01em; }
.card span.d { display: block; margin-top: 4px; font-size: .92rem; line-height: 1.5; color: var(--fg-2); }
.linklist { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 4px 20px; }
.linklist li { margin: 0 !important; }
.linklist a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 4px; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.linklist a:hover { color: var(--link); }
.linklist a svg { width: 16px; height: 16px; flex: none; color: var(--fg-3); }

/* home */
.prose--home { margin-top: 0; }
.prose--home h2 { margin-top: 52px; padding-top: 0; border-top: 0; font-size: 1.35rem; }
.prose--home > h2:first-child { margin-top: 40px; }
/* home hero */
.hero { padding: 56px 0 8px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.05; }
.hero .lede { max-width: 36em; }
.hero__search { margin-top: 26px; }
.hero__chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; color: var(--fg-3); }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--fg-2); text-decoration: none; font-weight: 500; font-size: .9rem; }
.chip:hover { background: var(--bg-3); color: var(--fg); }
.section-h { margin: 52px 0 16px; font-size: 1.35rem; letter-spacing: -0.025em; font-weight: 650; line-height: 1.2; }

/* pager + footer */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pager a { display: flex; flex-direction: column; gap: 4px; justify-content: center; min-height: 72px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--fg); }
.pager a:hover { border-color: var(--orange); }
.pager small { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.pager strong { font-size: 1rem; line-height: 1.3; }
.pager .next { text-align: right; grid-column: 2; }
.pager .prev:only-child { grid-column: 1; }
.feedback { margin-top: 36px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.feedback p { font-size: .94rem; color: var(--fg-2); }
.feedback strong { color: var(--fg); }
.feedback__links { display: flex; flex-wrap: wrap; gap: 8px; }
.sitefoot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .86rem; color: var(--fg-3); }
.sitefoot a { color: var(--fg-3); display: inline-flex; align-items: center; min-height: 40px; }
.sitefoot a:hover { color: var(--fg); }

/* on this page */
.toc { position: sticky; top: calc(var(--top-h) + 28px); align-self: start; max-height: calc(100vh - var(--top-h) - 56px); overflow-y: auto; padding: 36px 0 24px; }
.toc .toc__h { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 10px; }
.toc ul { list-style: none; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: .86rem; line-height: 1.4; color: var(--fg-3); text-decoration: none; }
.toc li.l3 a { padding-left: 28px; }
.toc li a:hover { color: var(--fg); }
.toc li a[aria-current='true'] { color: var(--fg); font-weight: 600; border-left-color: var(--orange); }
.toc-inline { display: none; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); }
.toc-inline summary { display: flex; align-items: center; min-height: 44px; padding: 0 16px; font-weight: 600; font-size: .94rem; cursor: pointer; list-style: none; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after { content: '+'; margin-left: auto; font-family: var(--font-mono); color: var(--fg-3); }
.toc-inline[open] summary::after { content: '\2212'; }
.toc-inline ul { list-style: none; padding: 0 16px 12px; }
.toc-inline li a { display: flex; align-items: center; min-height: 40px; color: var(--fg-2); text-decoration: none; font-size: .92rem; }
.toc-inline li.l3 a { padding-left: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .main-col { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-inline { display: block; }
}
@media (max-width: 960px) {
  :root { --side-w: min(86vw, 340px); }
  .topbar__menu { display: inline-flex; }
  .topbar__search-btn { display: inline-flex; }
  .brand__tag { display: none; }
  .topbar__links { margin-left: auto; }
  .toplink--site { display: none; }
  .search { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--top-h) - 2px); margin: 0; flex: none; display: none; z-index: 130; }
  .search__panel { min-width: 0; }
  .topbar.is-search .search { display: block; }
  .topbar.is-search .search__field { background: var(--bg); box-shadow: var(--shadow); }
  .search kbd { display: none; }
  .shell { display: block; }
  .main-col { padding-inline: var(--gutter); }
  .js .sidebar { position: fixed; z-index: 160; top: 0; left: 0; bottom: 0; width: var(--side-w); height: 100%; background: var(--bg); transform: translateX(-102%); transition: transform .3s cubic-bezier(.22, 1, .36, 1); padding-top: 18px; box-shadow: 0 0 60px rgba(0, 0, 0, .35); visibility: hidden; }
  .js .sidebar.is-open { transform: none; visibility: visible; }
  .js .scrim { display: block; position: fixed; inset: 0; z-index: 150; background: rgba(5, 8, 14, .55); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .js .scrim.is-open { opacity: 1; pointer-events: auto; }
  .sidebar__close { display: flex !important; }
  html.nav-open { overflow: hidden; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px var(--gutter); }
  .page { padding-top: 24px; }
}
.sidebar__close { display: none; align-items: center; justify-content: space-between; margin: 0 0 12px 4px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 960px) {
  .crumbs a, .crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 40px; }
  .prose .anchor { display: none; }
}
@media (max-width: 600px) {
  th, td { padding: 9px 9px; }
  .table-wrap td, .table-wrap th, .table-wrap td:first-child, .table-wrap th:first-child { min-width: 0; }
  tbody th { white-space: normal; }
  thead th { white-space: normal; }
  table { font-size: .88rem; }
  .btn--open span.lbl-long { display: none; }
  .topbar__in { gap: 8px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; text-align: left; }
  .defs > div { grid-template-columns: 1fr; }
  .callout { padding: 12px; gap: 10px; }
  .prose h2 { font-size: 1.4rem; }
  .hero { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
@media print {
  .topbar, .sidebar, .toc, .toc-inline, .pager, .feedback, .copy, .scrim { display: none !important; }
  .shell, .main-col { display: block; }
}
