/* Wagyu Docs. Colours, font and radii follow wagyu.xyz (its design tokens are mirrored below). */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/nunito-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/nunito-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg-app: #f6f9fe;
  --bg-surface: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-raised: #eef4fd;
  --stroke: #e1e8f1;
  --stroke-strong: #cbd5e1;
  --fg: #0b172d;
  --fg-2: #61748e;
  --fg-3: #8ca3bb;
  --brand: #0081ff;
  --brand-hover: #0070db;
  --brand-soft: #0081ff14;
  --brand-ink: #0064c8;
  --code-bg: #f8fafd;
  --inline-code-bg: #0081ff12;
  --inline-code-fg: #0b4f99;
  --ok: #16a34a;
  --warn: #c2410c;
  --danger: #dc2626;
  --info: #3b82f6;
  --nav-pill: #0404044d;
  --nav-fg: #ffffff;
  --nav-fg-muted: #e1e8f1cc;
  --sky: url('/brand/sky-light.webp');
  --shadow: 0 1px 2px #0b172d0d, 0 8px 24px #0b172d0f;
  --radius-card: 1.5rem;
  --radius-panel: 0.75rem;
  --font: 'Nunito', 'Nunito Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --topbar-h: 76px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg-app: #141e33;
  --bg-surface: #1e293b;
  --bg-muted: #1a2438;
  --bg-raised: #2a3950;
  --stroke: #2c3a52;
  --stroke-strong: #475569;
  --fg: #f1f5f9;
  --fg-2: #cbd5e1;
  --fg-3: #8ca3bb;
  --brand: #2c7fff;
  --brand-hover: #4b93ff;
  --brand-soft: #2c7fff22;
  --brand-ink: #7db4ff;
  --code-bg: #111a2c;
  --inline-code-bg: #2c7fff26;
  --inline-code-fg: #b9d6ff;
  --ok: #4ade80;
  --warn: #fb923c;
  --danger: #f87171;
  --info: #60a5fa;
  --sky: url('/brand/sky-dark.webp');
  --shadow: 0 1px 2px #0000004d, 0 10px 30px #00000040;
  color-scheme: dark;
}
@font-face {
  font-family: 'Nunito Fallback';
  src: local('Arial');
  ascent-override: 99.71%;
  descent-override: 34.82%;
  line-gap-override: 0%;
  size-adjust: 101.39%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--topbar-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in oklab, var(--brand) 30%, transparent); }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bg-surface); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 12px; }

/* ---------- Top bar: Wagyu's pill navigation over the sky ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  background: var(--sky) center 18% / cover no-repeat, #3d8fe0;
  border-bottom: 1px solid #ffffff22;
}
:root[data-theme='dark'] .topbar { background-color: #10204a; }
.topbar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #0000001a); pointer-events: none; }
.topbar-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pill {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 48px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--nav-pill);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: var(--nav-fg);
  border: 1px solid #ffffff1f;
}
.pill-main { flex: 0 1 auto; min-width: 0; }
.pill-actions { flex: none; }
.pill-actions { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 8px; padding: 0 14px 0 8px; color: var(--nav-fg); font-weight: 800; font-size: 17px; line-height: 1; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: auto; border-radius: 6px; }
.brand-sub { font: inherit; color: inherit; margin-left: -3px; }
.tab {
  position: relative;
  padding: 0 14px;
  height: 48px;
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--nav-fg-muted);
  white-space: nowrap;
}
.tab:hover { color: var(--nav-fg); text-decoration: none; }
.tab.active { color: var(--nav-fg); }
.tab.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #fff; }
.search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 999px;
  background: #ffffff1f;
  color: var(--nav-fg);
  font: 700 14px var(--font);
  cursor: pointer;
}
.search-btn:hover { background: #ffffff33; }
.search-btn kbd, .search kbd {
  font: 700 11px var(--font);
  padding: 2px 7px;
  border-radius: 6px;
  background: #ffffff26;
  color: var(--nav-fg-muted);
}
.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--nav-fg);
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:hover { background: #ffffff1f; }
.icon { flex: none; display: block; }
.i-sun { display: none; }
:root[data-theme='dark'] .i-sun { display: block; }
:root[data-theme='dark'] .i-moon { display: none; }
.app-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: #0b172d;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 1px 2px #0003;
}
.app-btn:hover { text-decoration: none; background: #f1f5f9; }
.menu-btn { display: none; }

/* ---------- Layout ---------- */
.layout {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr) 232px;
  gap: 0;
}
body.home .layout { grid-template-columns: 272px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 22px 14px 40px 20px;
  border-right: 1px solid var(--stroke);
  scrollbar-width: thin;
}
.nav-section { margin-bottom: 18px; }
.nav-title { margin: 0 0 6px 10px; font-size: 12px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--fg-2);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}
.sidebar a:hover { background: var(--bg-muted); color: var(--fg); text-decoration: none; }
.sidebar a.active { background: var(--brand-soft); color: var(--brand-ink); }
.sidebar a.ref { font-size: 14px; font-weight: 650; padding: 5px 8px; }
.nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3); transform: rotate(-45deg); transition: transform 0.15s; margin-right: 4px; }
.nav-group[open] summary::after { transform: rotate(45deg); }
.nav-group summary:hover { background: var(--bg-muted); }
.nav-group ul { padding: 2px 0 6px 8px !important; }

/* Method badges */
.m {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font: 800 10.5px var(--font);
  letter-spacing: 0.03em;
}
.m-get { background: #16a34a1f; color: #15803d; }
.m-post { background: #0081ff1c; color: #0064c8; }
.m-put { background: #f973161f; color: #c2410c; }
.m-delete { background: #ef44441f; color: #b91c1c; }
:root[data-theme='dark'] .m-get { color: #4ade80; }
:root[data-theme='dark'] .m-post { color: #7db4ff; }
:root[data-theme='dark'] .m-put { color: #fdba74; }
:root[data-theme='dark'] .m-delete { color: #fca5a5; }

/* ---------- Article ---------- */
.content { min-width: 0; padding: 30px 48px 0; }
.doc { max-width: 780px; margin: 0 auto; }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand); }
.page-actions { display: flex; gap: 6px; }
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg-surface);
  color: var(--fg-2);
  font: 700 13px var(--font);
  cursor: pointer;
}
.ghost-btn:hover { color: var(--fg); border-color: var(--stroke-strong); text-decoration: none; }
.ghost-btn.done { color: var(--ok); border-color: var(--ok); }
.doc h1 { font-size: 40px; line-height: 1.15; font-weight: 900; letter-spacing: -0.02em; margin: 6px 0 14px; }
.doc h2 { font-size: 26px; line-height: 1.25; font-weight: 900; letter-spacing: -0.01em; margin: 46px 0 12px; padding-top: 4px; }
.doc h3 { font-size: 20px; line-height: 1.3; font-weight: 850; margin: 32px 0 8px; }
.doc h4 { font-size: 17px; font-weight: 850; margin: 24px 0 6px; }
.doc h2, .doc h3, .doc h4 { position: relative; }
.anchor { position: absolute; left: -0.9em; padding-right: 0.2em; color: var(--fg-3); opacity: 0; font-weight: 700; }
.doc h2:hover .anchor, .doc h3:hover .anchor { opacity: 1; text-decoration: none; }
.doc h1 + p { font-size: 19px; line-height: 1.6; color: var(--fg-2); margin-top: 0; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
.doc li > ul, .doc li > ol { margin: 4px 0 0; }
.doc li::marker { color: var(--fg-3); }
.doc strong { font-weight: 850; }
.doc em { color: var(--fg-2); }
.doc hr { border: 0; border-top: 1px solid var(--stroke); margin: 36px 0; }
.doc :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--inline-code-bg);
  color: var(--inline-code-fg);
  overflow-wrap: anywhere;
}
.doc a code { color: inherit; }
.doc a.ext::after { content: '↗'; font-size: 0.75em; margin-left: 2px; vertical-align: 0.15em; opacity: 0.7; }
.doc blockquote { margin: 0 0 16px; padding: 4px 16px; border-left: 3px solid var(--stroke-strong); color: var(--fg-2); }
.doc details { margin: 0 0 16px; border: 1px solid var(--stroke); border-radius: var(--radius-panel); background: var(--bg-surface); padding: 0 16px; }
.doc details > summary { cursor: pointer; padding: 12px 0; font-weight: 800; }
.doc details[open] > summary { border-bottom: 1px solid var(--stroke); margin-bottom: 12px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--stroke); border-radius: var(--radius-panel); background: var(--bg-surface); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.doc th { text-align: left; font-weight: 850; font-size: 13px; color: var(--fg-2); background: var(--bg-muted); padding: 9px 14px; border-bottom: 1px solid var(--stroke); white-space: nowrap; }
.doc td { padding: 9px 14px; border-bottom: 1px solid var(--stroke); vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc td code { white-space: nowrap; }
.doc td:last-child code { white-space: normal; }

/* Callouts */
.callout { margin: 0 0 18px; padding: 14px 18px 2px; border-radius: var(--radius-panel); border: 1px solid var(--stroke); background: var(--bg-surface); border-left: 4px solid var(--info); }
.callout-title { display: flex; align-items: center; gap: 7px; margin: 0 0 4px !important; font-weight: 900; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; }
.callout-note { border-left-color: var(--info); }
.callout-note .callout-title { color: var(--info); }
.callout-tip { border-left-color: var(--ok); }
.callout-tip .callout-title { color: var(--ok); }
.callout-warning { border-left-color: var(--warn); background: color-mix(in oklab, var(--warn) 5%, var(--bg-surface)); }
.callout-warning .callout-title { color: var(--warn); }
.callout-danger { border-left-color: var(--danger); background: color-mix(in oklab, var(--danger) 5%, var(--bg-surface)); }
.callout-danger .callout-title { color: var(--danger); }

/* Code */
.code { margin: 0 0 18px; border: 1px solid var(--stroke); border-radius: var(--radius-panel); background: var(--code-bg); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--stroke); background: var(--bg-muted); }
.code-title { font-size: 12.5px; font-weight: 800; color: var(--fg-2); }
.copy { border: 0; background: transparent; color: var(--fg-2); font: 700 12.5px var(--font); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.copy:hover { background: var(--bg-raised); color: var(--fg); }
.copy.done { color: var(--ok); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 13.5px/1.6 var(--mono); background: transparent !important; tab-size: 2; }
.code pre code { font-family: inherit; }
.code[data-lang='text'] pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.shiki span { color: var(--shiki-light); }
:root[data-theme='dark'] .shiki span { color: var(--shiki-dark); }
.code-group { margin: 0 0 18px; border: 1px solid var(--stroke); border-radius: var(--radius-panel); overflow: hidden; background: var(--code-bg); }
.code-group > .code { margin: 0; border: 0; border-radius: 0; }
.code-group > .code .code-head { display: none; }
.code-group .tabs { display: flex; align-items: center; gap: 2px; padding: 5px 6px 0; border-bottom: 1px solid var(--stroke); background: var(--bg-muted); }
.tab-btn { border: 0; background: transparent; color: var(--fg-2); font: 800 13px var(--font); padding: 7px 12px 9px; border-radius: 8px 8px 0 0; cursor: pointer; position: relative; }
.tab-btn[aria-selected='true'] { color: var(--brand-ink); }
.tab-btn[aria-selected='true']::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px; }
.code-group .tabs::after { content: ''; flex: 1; }
.code-group:not(:has(.tabs)) > .code .code-head { display: flex; }

/* Endpoint line on reference pages */
.endpoint { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 10px 12px; border: 1px solid var(--stroke); border-radius: 999px; background: var(--bg-surface); box-shadow: var(--shadow); width: fit-content; max-width: 100%; }
.endpoint code { font: 600 14.5px var(--mono); overflow-wrap: anywhere; }
.endpoint .m { height: 24px; min-width: 52px; font-size: 12px; }
.copy-inline { border: 0; background: transparent; color: var(--fg-3); cursor: pointer; display: grid; place-items: center; padding: 4px; border-radius: 6px; }
.copy-inline:hover { color: var(--fg); background: var(--bg-muted); }
.copy-inline.done { color: var(--ok); }
body.ref .doc h1 + .endpoint + p, body.ref .doc .endpoint ~ p:first-of-type { color: var(--fg-2); }
body.ref .doc pre + p, body.ref .doc .code:first-of-type { }
body.ref .doc > .code:first-of-type:has(code.language-http) { display: none; }

/* Pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 48px 0 0; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--stroke); border-radius: var(--radius-panel); background: var(--bg-surface); color: var(--fg); }
.pager a:hover { border-color: var(--brand); text-decoration: none; }
.pager span { font-size: 13px; font-weight: 800; color: var(--fg-3); }
.pager strong { font-weight: 850; color: var(--brand-ink); }
.pager .next { text-align: right; grid-column: 2; }

/* On this page */
.toc { position: sticky; top: calc(var(--topbar-h) + 24px); align-self: start; max-height: calc(100vh - var(--topbar-h) - 48px); overflow-y: auto; padding: 30px 20px 30px 8px; font-size: 13.5px; }
.toc-title { margin: 0 0 8px; font-size: 12px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--stroke); }
.toc li { margin: 0; }
.toc a { display: block; padding: 4px 0 4px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--fg-2); font-weight: 650; line-height: 1.4; }
.toc li.d3 a { padding-left: 24px; font-size: 13px; }
.toc a:hover { color: var(--fg); text-decoration: none; }
.toc a.active { color: var(--brand-ink); border-left-color: var(--brand); }

/* Footer */
.site-footer { max-width: 780px; margin: 64px auto 0; padding: 22px 0 40px; border-top: 1px solid var(--stroke); font-size: 13.5px; color: var(--fg-3); }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--fg-2); font-weight: 700; }

/* ---------- Home ---------- */
body.home .topbar { border-bottom: 0; }
.doc-home { max-width: none; }
.doc-home > :not(.hero) { max-width: 1040px; margin-left: auto; margin-right: auto; }
.hero {
  position: relative;
  margin: -30px -48px 0;
  padding: 64px max(48px, calc((100% - 1040px) / 2 + 48px)) 150px;
  background: var(--sky) center 64% / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, #0b172d8c 0%, #0b172d4d 42%, #0b172d00 75%); }
:root[data-theme='dark'] .hero::before { background: linear-gradient(100deg, #060e1c73 0%, #060e1c26 50%, transparent 80%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 110px; background: linear-gradient(180deg, transparent, var(--bg-app)); }
.hero > * { position: relative; z-index: 1; max-width: 720px; }
.hero .eyebrow { color: #ffffffd9; margin-bottom: 6px; }
.doc .hero h1 { color: #fff; font-size: 54px; line-height: 1.08; margin: 0 0 14px; text-shadow: 0 2px 18px #0b172d55; }
.doc .hero p:not(.eyebrow) { font-size: 20px; line-height: 1.55; color: #fffffff2; text-shadow: 0 1px 12px #0b172d66; margin: 0 0 26px; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 850; font-size: 16px; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px #0081ff55; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-glass { background: #0b172d59; color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid #ffffff38; }
.btn-glass:hover { background: #0b172d80; }
.doc-home > .hero + .code { position: relative; z-index: 2; margin-top: -96px; border-radius: var(--radius-card); box-shadow: var(--shadow); }
.doc-home > .hero + .code .code-head { padding-left: 18px; }
.doc-home > .hero + .code pre { padding: 16px 20px 18px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px !important; margin-bottom: 6px !important; }
.fact { padding: 16px 18px; border: 1px solid var(--stroke); border-radius: var(--radius-panel); background: var(--bg-surface); }
.fact b { display: block; font-size: 27px; font-weight: 900; line-height: 1.2; letter-spacing: -0.01em; }
.fact span { font-size: 13.5px; color: var(--fg-2); font-weight: 700; }
.doc-home .facts + p { font-size: 13px; margin-bottom: 8px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px !important; }
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: var(--radius-card);
  border: 1px solid var(--stroke);
  background: var(--bg-surface);
  color: var(--fg);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--brand) 45%, var(--stroke)); text-decoration: none; }
.card .card-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 4px; }
.card strong { font-size: 18px; font-weight: 900; }
.card span:last-child { color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.doc-home h2 { margin-top: 34px; }

/* ---------- Search ---------- */
.search {
  width: min(680px, calc(100vw - 32px));
  max-height: min(70vh, 640px);
  margin: 10vh auto auto;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: var(--bg-surface);
  color: var(--fg);
  box-shadow: 0 30px 80px #0b172d59;
  overflow: hidden;
}
.search[open] { display: flex; flex-direction: column; }
.search::backdrop { background: #0b172d66; backdrop-filter: blur(3px); }
.search-box { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--stroke); }
.search-icon { color: var(--fg-3); display: grid; }
.search input { flex: 1; height: 56px; border: 0; outline: 0; background: transparent; color: var(--fg); font: 700 17px var(--font); }
.search kbd { background: var(--bg-muted); color: var(--fg-3); }
.results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.results li a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--fg); }
.results li a:hover, .results li[aria-selected='true'] a { background: var(--brand-soft); text-decoration: none; }
.results strong { display: block; font-weight: 850; font-size: 15px; }
.results code { display: inline-block; margin: 2px 0; font: 600 12px var(--mono); color: var(--brand-ink); }
.results span { display: block; font-size: 13.5px; color: var(--fg-2); line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results mark { background: #0081ff2e; color: inherit; border-radius: 3px; }
.results .empty { padding: 18px 14px; color: var(--fg-2); font-size: 14.5px; }
.search-hint { margin: 0; padding: 10px 18px; border-top: 1px solid var(--stroke); font-size: 13px; color: var(--fg-3); }

.scrim { position: fixed; inset: 0; z-index: 44; background: #0b172d66; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .layout, body.home .layout { grid-template-columns: 256px minmax(0, 1fr); }
  .toc { display: none; }
  .content { padding: 28px 36px 0; }
  .hero { margin: -28px -36px 0; padding-left: 36px; padding-right: 36px; }
}
@media (max-width: 900px) {
  :root { --topbar-h: 64px; }
  .pill { height: 42px; }
  .tab { display: none; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 38px; padding: 0; justify-content: center; background: transparent; }
  .menu-btn { display: grid; flex: none; width: 42px; height: 42px; padding: 0; }
  .topbar-inner { padding: 0 12px; gap: 8px; }
  .app-btn { height: 32px; padding: 0 12px; font-size: 14px; }
  .layout, body.home .layout { display: block; }
  .sidebar {
    position: fixed;
    z-index: 45;
    top: 0;
    left: 0;
    width: min(320px, 86vw);
    height: 100vh;
    background: var(--bg-app);
    transform: translateX(-102%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
    padding-top: 20px;
  }
  body.nav-open .sidebar { transform: none; }
  .content { padding: 22px 16px 0; }
  .hero { margin: -22px -16px 0; padding: 40px 16px 130px; background-image: url('/brand/sky-mobile.webp'); background-position: center 60%; }
  :root[data-theme='dark'] .hero { background-image: var(--sky); }
  .doc .hero h1 { font-size: 36px; }
  .doc .hero p:not(.eyebrow) { font-size: 17px; }
  .doc h1 { font-size: 31px; }
  .doc h2 { font-size: 23px; }
  .doc-top { flex-wrap: wrap; }
  .facts { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .anchor { display: none; }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .brand { padding-right: 10px; }
  .pill-main { flex: none; }
  .app-btn { padding: 0 10px; }
  .app-btn svg { display: none; }
  .page-actions .ghost-btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .sidebar, .toc, .pager, .page-actions, .site-footer { display: none !important; }
  .layout { display: block; }
}
