@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.08949f728d.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.01d2854474.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* Docs shell: sticky top bar with tabs, per-tab sidebar, reading column, on-page index. Fonts and code blocks follow the console (DESIGN.md). */
@font-face { font-family: "Denim"; src: url("/assets/fonts/Denim-Regular.03c491d029.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Denim"; src: url("/assets/fonts/Denim-Medium.3ec176b976.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
:root {
  --bg: #f9f9f9;
  --panel: #f0eee3;
  --raised: #ffffff;
  --raised: #ffffff;
  --ink: #151316;
  --ink-2: #48454b;
  --ink-3: #6f6c72;
  --line: #e3e1d7;
  --line-strong: #cfccc0;
  --accent: #cdf98a;
  --accent-soft: #eafcc9;
  --accent-ink: #151316;
  --link: #365a06;
  --caution: #7a5300;
  --caution-bg: #fbf0d5;
  --caution-line: #ead39a;
  --font-body: "Denim", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --border: rgb(21 19 22 / 0.1);
  --muted-ink: rgb(21 19 22 / 0.6);
  --code-surface: #f5f4ee;
  --hover: #ffffff;
  --error: #b42318;
  --hl-keyword: #d73a49; --hl-title: #6f42c1; --hl-constant: #005cc5; --hl-string: #032f62;
  --hl-variable: #e36209; --hl-comment: #6a737d; --hl-tag: #22863a;
  --gutter: 32px;
  --nav-hover: #ffffff;
  --nav-selected: #f0eee3;
  --topbar-h: 60px;
  --tabs-h: 44px;
  --header-h: calc(var(--topbar-h) + var(--tabs-h));
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151316; --panel: #232124; --raised: #1c1a1d; --ink: #f9f9f9; --ink-2: #c4c1c6; --ink-3: #96939a;
    --line: #2f2d31; --line-strong: #3e3c3f;
    --accent: #cdf98a; --accent-soft: #2a3320; --accent-ink: #151316; --link: #cdf98a;
    --caution: #f3c96f; --caution-bg: #2b2414; --caution-line: #5a4920; color-scheme: dark;
    --border: rgb(249 249 249 / 0.1); --muted-ink: rgb(249 249 249 / 0.5); --code-surface: #1c1a1d; --hover: #2a282b; --error: #f97066; --nav-hover: #2a282b; --nav-selected: #232124;
    --hl-keyword: #f97583; --hl-title: #b392f0; --hl-constant: #79b8ff; --hl-string: #9ecbff;
    --hl-variable: #ffab70; --hl-comment: #6a737d; --hl-tag: #85e89d;
  }
}
:root[data-theme="dark"] {
  --bg: #151316; --panel: #232124; --raised: #1c1a1d; --ink: #f9f9f9; --ink-2: #c4c1c6; --ink-3: #96939a;
  --line: #2f2d31; --line-strong: #3e3c3f;
  --accent: #cdf98a; --accent-soft: #2a3320; --accent-ink: #151316; --link: #cdf98a;
  --caution: #f3c96f; --caution-bg: #2b2414; --caution-line: #5a4920; color-scheme: dark;
  --border: rgb(249 249 249 / 0.1); --muted-ink: rgb(249 249 249 / 0.5); --code-surface: #1c1a1d; --hover: #2a282b; --error: #f97066; --nav-hover: #2a282b; --nav-selected: #232124;
  --hl-keyword: #f97583; --hl-title: #b392f0; --hl-constant: #79b8ff; --hl-string: #9ecbff;
  --hl-variable: #ffab70; --hl-comment: #6a737d; --hl-tag: #85e89d;
}
* { box-sizing: border-box; }
body { margin: 0; }
html { scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font-body);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Top bar, after docs.turnkey.com: brand, centered search, links and the primary action, then the tabs. The rows' content shares the page's container so it lines up with the sidebar; their rules run full width. */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1440px; margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.topbar-row { border-bottom: 1px solid var(--line); }
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 16px; }
.topbar-start { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; }
.topbar-end { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); flex: none; }
.brand .logo { height: 20px; width: auto; display: block; }
.brand .wordmark { font-weight: 500; font-size: 20px; }
.search { position: relative; flex: 0 1 320px; min-width: 0; }
.search input {
  width: 100%; height: 36px; padding: 0 56px 0 34px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--raised); color: var(--ink); font: inherit; font-size: 14px;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus-visible { outline: none; border-color: var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.search-icon { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.search-key {
  position: absolute; right: 10px; top: 0; height: 36px; display: flex; align-items: center;
  font-family: var(--font-body); font-size: 12px; color: var(--ink-3); pointer-events: none;
}
.search-results {
  position: absolute; top: 44px; left: 50%; width: 560px; margin-left: -280px; max-height: min(70vh, 520px); overflow-y: auto;
  background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px rgb(21 19 22 / 0.35); padding: 6px;
}
.search-results a {
  display: block; padding: 9px 11px; border-radius: 7px; text-decoration: none; color: var(--ink);
}
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--panel); }
.search-results .r-title { font-weight: 500; font-size: 14px; }
.search-results .r-path { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.search-results .r-snippet { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.search-results mark { background: var(--accent); color: var(--accent-ink); border-radius: 2px; }
.search-results .r-empty { padding: 12px; color: var(--ink-3); font-size: 14px; }
.topbar-links { display: flex; gap: 20px; font-size: 14px; }
.topbar-links a { text-decoration: none; color: var(--ink-2); }
.topbar-links a:hover { color: var(--ink); }
.cta {
  display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 8px 0 12px; flex: none;
  border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; text-decoration: none;
}
.cta svg { width: 14px; height: 14px; }
.cta:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.icon-button {
  width: 32px; height: 32px; display: grid; place-items: center; flex: none; border-radius: 8px;
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-button svg { width: 18px; height: 18px; }
.icon-button:hover { background: var(--nav-hover); color: var(--ink); }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}
.menu-button { display: none; }
.tabs {
  height: var(--tabs-h); display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: flex; align-items: center; flex: none; white-space: nowrap; text-decoration: none;
  font-size: 14.5px; color: var(--ink-2); border-bottom: 2px solid transparent; padding-top: 2px;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }

/* Layout */
.layout {
  display: grid; grid-template-columns: 272px minmax(0, 1fr) 232px; max-width: 1440px; margin: 0 auto;
  padding-left: max(0px, env(safe-area-inset-left, 0px)); padding-right: max(0px, env(safe-area-inset-right, 0px));
}
.sidebar {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); align-self: start;
  height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: 28px 20px 48px max(var(--gutter), env(safe-area-inset-left, 0px));
}
.nav-section + .nav-section { margin-top: 20px; }
.nav-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px;
}
/* Links bleed 8px left so their text lines up with the tab labels, as in the console's help center. */
.nav-list { list-style: none; margin: 0 0 0 -8px; padding: 0; display: grid; gap: 2px; }
.nav-list a {
  display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.3;
}
.nav-list a:hover { background: var(--nav-hover); }
.nav-list a[aria-current="page"] { background: var(--nav-selected); }
.main { min-width: 0; padding: 40px 48px 96px; outline: none; }
.page { max-width: 880px; margin: 0 auto; }
.toc {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); align-self: start;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 44px var(--gutter) 40px 0;
}
.toc-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a {
  display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 2px solid transparent;
  text-decoration: none; color: var(--ink-3); font-size: 13px; line-height: 1.4;
}
.toc li.level-3 a { padding-left: 26px; }
.toc li a:hover { color: var(--ink); }
.toc li a.active { color: var(--ink); border-left-color: var(--ink); }

/* Page header */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 10px; }
.crumbs {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
}
.page-copy {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; flex: none; margin-left: auto;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--raised); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.page-copy:hover { background: var(--panel); }
.page-copy svg { width: 14px; height: 14px; }
.page-copy .icon-done, .page-copy .icon-failed, .page-copy.copied .icon-copy { display: none; }
.page-copy.copied .icon-done { display: block; }
.page h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 500; margin: 0 0 14px; text-wrap: balance; }
.lede { font-size: 16px; line-height: 1.5; margin: 0 0 16px; }

/* Prose */
.prose { font-size: 16px; color: var(--ink); }
.prose { line-height: 1.5; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; margin-top: 48px; padding-top: 4px; text-wrap: balance; }
.prose h3 { font-size: 18.5px; line-height: 1.3; font-weight: 500; margin-top: 34px; text-wrap: balance; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 4px; }
.prose li > ul, .prose li > ol { margin-top: 6px; }
.prose ol > li::marker { font-family: var(--font-mono); font-size: 0.85em; color: var(--ink-3); }
.prose strong { font-weight: 500; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose :not(pre) > code {
  font-family: var(--font-mono); font-size: 0.82em; background: var(--panel);
  padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere;
}
.prose details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; background: var(--raised); }
.prose details[open] { padding-bottom: 14px; }
.prose summary { cursor: pointer; padding: 12px 0; font-weight: 500; font-size: 15px; }
.prose details > * + * { margin-top: 12px; }

/* Code: the console's CodeBlock (components/ui/code-block.tsx) with its GitHub light and dark token colors. */
.code { border: 1px solid var(--border); border-radius: 12px; background: var(--code-surface); overflow: hidden; }
.code-head {
  height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.code-label { padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--muted-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy {
  position: relative; width: 24px; height: 24px; margin-right: 4px; display: grid; place-items: center; flex: none;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted-ink); cursor: pointer;
}
.copy::after { content: ""; position: absolute; inset: -10px; }
.copy:hover { background: var(--hover); color: var(--ink); }
.copy.failed, .copy.failed:hover { color: var(--error); }
.copy svg { width: 14px; height: 14px; }
.copy .icon-done, .copy .icon-failed, .copy.copied .icon-copy, .copy.failed .icon-copy { display: none; }
.copy.copied .icon-done, .copy.failed .icon-failed { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.625; color: var(--ink); }
.code pre code { font-family: inherit; white-space: pre; }
.code pre.wrap code { white-space: pre-wrap; overflow-wrap: anywhere; }
.hljs-keyword, .hljs-doctag, .hljs-type, .hljs-template-tag, .hljs-meta .hljs-keyword { color: var(--hl-keyword); }
.hljs-title, .hljs-title.function_, .hljs-title.class_ { color: var(--hl-title); }
.hljs-attr, .hljs-attribute, .hljs-literal, .hljs-number, .hljs-meta, .hljs-operator, .hljs-variable.constant_ { color: var(--hl-constant); }
.hljs-string, .hljs-regexp, .hljs-meta .hljs-string { color: var(--hl-string); }
.hljs-built_in, .hljs-symbol, .hljs-variable, .hljs-params { color: var(--hl-variable); }
.hljs-comment, .hljs-code { color: var(--hl-comment); }
.hljs-name, .hljs-selector-tag, .hljs-quote { color: var(--hl-tag); }
.hljs-subst { color: var(--ink); }

/* API operation pages: the reference beside a sticky example panel, after docs.column.com. */
.api-layout .toc { display: none; }
.api-layout .layout { grid-template-columns: 272px minmax(0, 1fr); }
.page.api { max-width: 1180px; }
.api-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: start; }
.api-main { min-width: 0; }
.page.api .prose h2 { font-size: 19px; font-weight: 500; line-height: 1.3; margin-top: 36px; }
.api-panel {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px); display: grid; gap: 16px; min-width: 0;
  max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto;
}
.api-panel .code pre { max-height: 440px; overflow: auto; }
.prose .endpoint { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.method { font-family: var(--font-mono); font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); }
.prose .endpoint code { font-family: var(--font-mono); font-size: 14px; background: none; padding: 0; overflow-wrap: anywhere; }
.params { border-top: 1px solid var(--line); }
.param { padding: 12px 0; border-bottom: 1px solid var(--line); }
.param-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.prose .param-name code { font-size: 13.5px; font-weight: 500; background: none; padding: 0; color: var(--ink); }
.param-type { font-size: 13px; color: var(--ink-3); }
.prose .param-type code { font-size: 12px; }
.param-req { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.param-req.required { color: var(--ink); font-weight: 500; }
.param-desc { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.param-desc:empty { display: none; }
.code-tabs { display: flex; align-self: stretch; padding-left: 4px; }
.code-tab {
  font: inherit; font-size: 13px; font-weight: 500; color: var(--muted-ink); background: none; border: 0;
  border-bottom: 2px solid transparent; padding: 2px 8px 0; cursor: pointer;
}
.code-tab:hover { color: var(--ink); }
.code-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.code .tab-hidden { display: none !important; }
@media (max-width: 1279px) {
  .api-grid { grid-template-columns: minmax(0, 1fr); }
  .api-panel { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 860px) { .api-layout .layout { grid-template-columns: minmax(0, 1fr); } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 500; font-size: 13px; color: var(--ink-2); background: var(--panel); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td code { white-space: nowrap; }
.prose td:first-child code { overflow-wrap: normal; }

/* Callouts */
.callout { border: 1px solid var(--line-strong); background: var(--panel); border-radius: var(--radius); padding: 14px 16px; margin-left: 0; margin-right: 0; }
.callout > * + * { margin-top: 8px; }
.callout-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.callout.warning { border-color: var(--caution-line); background: var(--caution-bg); }
.callout.warning .callout-label { color: var(--caution); }
.prose blockquote:not(.callout) { margin: 0; padding-left: 16px; border-left: 2px solid var(--line-strong); color: var(--ink-2); }

/* Home cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 8px; }
.prose a.card {
  display: grid; gap: 4px; align-content: start; padding: 18px; border: 1px solid var(--line-strong);
  border-radius: 14px; background: var(--raised); text-decoration: none; color: var(--ink); min-width: 0;
}
.prose a.card:hover { border-color: var(--ink); }
.card-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.card strong { font-weight: 500; font-size: 17px; }
.card span:last-child { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* End of page: Up next for pages read in order (after docs.github.com), otherwise related pages, then the page's own details. */
.up-next { margin-top: 56px; }
.up-next a {
  display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--raised); text-decoration: none; color: var(--ink);
}
.up-next a:hover { border-color: var(--ink); }
.up-next .label, .related .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.up-next .title { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 17px; }
.up-next .title svg { width: 16px; height: 16px; flex: none; }
.up-next .desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.up-next .step { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.related { margin-top: 56px; }
.related ul { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: grid; gap: 2px; padding: 12px 0; text-decoration: none; color: var(--ink); }
.related a:hover .title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.related .title { font-weight: 500; font-size: 15px; }
.related .desc { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.page-meta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--ink-3); }
.page-meta a { color: var(--ink-3); text-decoration-color: color-mix(in srgb, var(--ink-3) 45%, transparent); text-underline-offset: 3px; }
.page-meta a:hover { color: var(--ink); }

/* Site footer: the same links and legal lines as catena.com, plus the docs' own. */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 14px; color: var(--ink-3); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; }
.footer-brand .brand { color: var(--ink); }
.footer-brand p { margin: 14px 0 0; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(4, auto); gap: 32px 56px; }
.footer-links h2 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1279px) {
  .layout { grid-template-columns: 260px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .menu-button { display: grid; margin-left: -6px; }
  .topbar-links, .cta { display: none; }
  .topbar-start, .topbar-end { flex: none; }
  .search { flex: 1 1 auto; }
  .search-key { display: none; }
  .search input { padding-right: 12px; }
  .search-results { left: 0; right: 0; width: auto; margin-left: 0; position: fixed; top: calc(var(--topbar-h) - 6px); margin: 0 16px; }
  .brand .logo { height: 17px; }
  .tabs { gap: 22px; }
  .tabs a { font-size: 14px; }
  .sidebar {
    position: fixed; z-index: 25; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); left: 0; bottom: 0;
    width: min(320px, 86vw); height: auto; background: var(--bg); border-right: 1px solid var(--line);
    transform: translateX(-102%); transition: transform 0.2s ease;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .sidebar.open { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 24; background: rgb(21 19 22 / 0.4); }
  .main { padding: 28px max(16px, env(safe-area-inset-right, 0px)) 72px max(16px, env(safe-area-inset-left, 0px)); }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
