/* Hype5 Docs — one plain stylesheet. No external fonts, no framework.
   Colours come from the Hype5 logo: ink #1f1d1b, warm grey #625d58, teal #5cc1cf. */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f3f1ee;
  --surface-3: #ebe8e4;
  --border: #e2ded8;
  --border-strong: #cdc7c0;
  --control-border: #8f8880;
  --indicator: #0b5f6b;
  --text: #1f1d1b;
  --text-muted: #5c5752;
  --link: #0b5f6b;
  --link-hover: #073f47;
  --accent: #5cc1cf;
  --accent-soft: #e2f3f5;
  --accent-ink: #0b5f6b;
  --note-bg: #eef7f8;
  --note-border: #5cc1cf;
  --warn-bg: #fbf4e6;
  --warn-border: #c9902c;
  --warn-ink: #6d4a0c;
  --danger-bg: #fbeceb;
  --danger-border: #c2554d;
  --code-bg: #f3f1ee;
  --code-text: #2b2825;
  --focus: #0b5f6b;
  --logo-ink: #1f1d1b;
  --logo-sub: #625d58;
  --shadow: 0 1px 2px rgb(31 29 27 / 6%), 0 8px 24px rgb(31 29 27 / 8%);
  --radius: 10px;
  --radius-s: 6px;
  --header-h: 60px;
  --sidebar-w: 268px;
  --toc-w: 220px;
  --measure: 46rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #161514;
  --surface: #1c1b19;
  --surface-2: #242220;
  --surface-3: #2d2b28;
  --border: #34312d;
  --border-strong: #4a4641;
  --control-border: #77716a;
  --indicator: #5cc1cf;
  --text: #ecebe8;
  --text-muted: #b0a9a2;
  --link: #7dd2dd;
  --link-hover: #b4e7ee;
  --accent: #5cc1cf;
  --accent-soft: #17383c;
  --accent-ink: #9fe0e8;
  --note-bg: #152a2d;
  --note-border: #3e9aa6;
  --warn-bg: #2d2416;
  --warn-border: #b98a32;
  --warn-ink: #f0d39a;
  --danger-bg: #301b19;
  --danger-border: #c2655d;
  --code-bg: #22201e;
  --code-text: #e6e3df;
  --focus: #7dd2dd;
  --logo-ink: #ecebe8;
  --logo-sub: #b0a9a2;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 40%);
  color-scheme: dark;
}
/* Without JavaScript, follow the system setting. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #161514;
    --surface: #1c1b19;
    --surface-2: #242220;
    --surface-3: #2d2b28;
    --border: #34312d;
    --border-strong: #4a4641;
    --text: #ecebe8;
    --text-muted: #b0a9a2;
    --link: #7dd2dd;
    --link-hover: #b4e7ee;
    --accent: #5cc1cf;
    --accent-soft: #17383c;
    --accent-ink: #9fe0e8;
    --note-bg: #152a2d;
    --note-border: #3e9aa6;
    --warn-bg: #2d2416;
    --warn-border: #b98a32;
    --warn-ink: #f0d39a;
    --danger-bg: #301b19;
    --danger-border: #c2655d;
    --code-bg: #22201e;
    --code-text: #e6e3df;
    --focus: #7dd2dd;
    --logo-ink: #ecebe8;
    --logo-sub: #b0a9a2;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 40%);
    color-scheme: dark;
  }
}


/* Base ------------------------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 1.0625rem; } }
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--accent-soft); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: var(--radius-s);
  box-shadow: var(--shadow); font-weight: 600;
}
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

/* Pre-release notice ---------------------------------------------------------------------------------------- */
.prelaunch {
  background: var(--surface-2); color: var(--text-muted); border-bottom: 1px solid var(--border);
  font-size: 0.8125rem; line-height: 1.4; padding: 7px 16px; text-align: center;
}
.prelaunch a { color: inherit; }
.prelaunch-short { display: none; }

/* Header ---------------------------------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red, blue)) { .site-header { background: var(--bg); } }
.header-inner {
  max-width: 1480px; margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; gap: 20px; padding: 0 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; flex: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; }
.brand-text { font-weight: 680; font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-text span { font-weight: 420; color: var(--text-muted); }
.product-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.product-nav a {
  display: block; padding: 6px 11px; border-radius: 999px; color: var(--text-muted);
  text-decoration: none; font-size: 0.9375rem; font-weight: 520; white-space: nowrap;
}
.product-nav a:hover { color: var(--text); background: var(--surface-2); }
.product-nav a[aria-current] { color: var(--text); background: var(--surface-3); }

.icon-button {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid transparent; border-radius: 10px; background: none; color: var(--text-muted); cursor: pointer;
}
.icon-button:hover { color: var(--text); background: var(--surface-2); }
.menu-toggle, .menu-close { display: none; }
.theme-toggle svg { display: none; }
:root:not([data-theme-choice]) .theme-toggle .i-auto,
:root[data-theme-choice="auto"] .theme-toggle .i-auto,
:root[data-theme-choice="light"] .theme-toggle .i-light,
:root[data-theme-choice="dark"] .theme-toggle .i-dark { display: block; }

/* Search ---------------------------------------------------------------------------------------------------- */
.search { position: relative; margin-left: auto; width: min(340px, 34vw); display: none; }
.js .search { display: block; }
html:not(.js) .theme-toggle { visibility: hidden; }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-input {
  width: 100%; height: 40px; padding: 0 36px 0 36px;
  font: inherit; font-size: 0.9375rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--control-border); border-radius: 10px;
  -webkit-appearance: none; appearance: none;
}
.search-input::placeholder { color: var(--text-muted); opacity: 1; }
.search-input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-kbd {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font: 500 0.75rem/1 var(--mono); color: var(--text-muted);
  border: 1px solid var(--border-strong); border-radius: 5px; padding: 3px 6px; background: var(--surface-2);
}
.search-input:focus ~ .search-kbd { display: none; }
.search-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(560px, calc(100vw - 32px));
  max-height: min(70vh, 640px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px;
}
.search-status { margin: 4px 8px 6px; font-size: 0.8125rem; color: var(--text-muted); }
.search-status:empty { display: none; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { margin: 0; }
.search-results a {
  display: block; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; line-height: 1.4;
}
.search-results li[aria-selected="true"] a, .search-results a:hover { background: var(--surface-2); }
.search-results li[aria-selected="true"] a { box-shadow: inset 3px 0 0 var(--indicator); background: var(--surface-3); }
.sr-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sr-title { font-weight: 620; }
.sr-heading { color: var(--text-muted); font-size: 0.875rem; }
.sr-snippet { display: block; color: var(--text-muted); font-size: 0.8125rem; margin-top: 3px; }
.sr-snippet mark, .sr-title mark, .sr-heading mark { background: var(--accent-soft); color: inherit; border-radius: 2px; padding: 0 1px; }
.tag {
  display: inline-block; font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-muted); white-space: nowrap;
}
.tag--theater { background: var(--accent-soft); color: var(--accent-ink); }
.tag--stage { background: #ece8f6; color: #4a3d7a; }
:root[data-theme="dark"] .tag--stage { background: #2a2540; color: #c9bff0; }

/* Layout ---------------------------------------------------------------------------------------------------- */
.layout {
  max-width: 1480px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w); gap: 48px;
}
.layout.no-toc { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.sidebar { position: relative; }
.sidebar-inner {
  position: sticky; top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: 28px 8px 48px 0; scrollbar-width: thin;
}
.mobile-areas { display: none; }
.section-title { margin: 0 0 6px; font-weight: 680; font-size: 0.9375rem; }
.version-pill {
  display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px;
  font-size: 0.75rem; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 10px;
}
.version-pill .status { font-weight: 650; color: var(--warn-ink); }
.group-title {
  margin: 20px 0 4px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted);
}
.section-nav ul { list-style: none; margin: 0; padding: 0; }
.section-nav li a {
  display: block; padding: 5px 10px; margin-left: -10px; border-radius: 7px;
  color: var(--text-muted); text-decoration: none; font-size: 0.9375rem; line-height: 1.4;
}
.section-nav li a:hover { color: var(--text); background: var(--surface-2); }
.section-nav li a[aria-current="page"] { color: var(--text); background: var(--surface-3); font-weight: 600; }

.main { min-width: 0; padding: 28px 0 72px; outline: none; }
.doc { max-width: min(var(--measure), 72ch); }
.layout.single { display: block; max-width: 56rem; }
.doc-version { display: none; margin: -10px 0 14px; font-size: 0.8125rem; color: var(--text-muted); }
.no-toc .doc { max-width: 50rem; }

/* Breadcrumbs, header ------------------------------------------------------------------------------------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 0.8125rem; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
.doc-header h1 { margin: 0 0 10px; font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.022em; font-weight: 700; }
.lead { margin: 0 0 28px; font-size: 1.1875rem; line-height: 1.55; color: var(--text-muted); }
.doc-badges { margin: 0 0 10px; display: flex; gap: 6px; flex-wrap: wrap; }

/* Prose ------------------------------------------------------------------------------------------------------ */
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { position: relative; line-height: 1.25; letter-spacing: -0.012em; }
.prose h2 { margin: 2.4em 0 0.6em; font-size: 1.5rem; font-weight: 680; padding-top: 0.2em; }
.prose h3 { margin: 1.9em 0 0.5em; font-size: 1.1875rem; font-weight: 660; }
.prose h4 { margin: 1.6em 0 0.4em; font-size: 1rem; font-weight: 660; }
.prose p, .prose ul, .prose ol, .prose dl, .prose blockquote, .prose pre, .prose .table-wrap, .prose .callout { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.25em 0; }
.prose li > ul, .prose li > ol { margin: 0.25em 0; }
.prose strong { font-weight: 640; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.h-anchor {
  margin-left: 0.3em; color: var(--text-muted); text-decoration: none; font-weight: 400; opacity: 0;
}
.prose h2:hover .h-anchor, .prose h3:hover .h-anchor, .h-anchor:focus-visible { opacity: 1; }
.h-anchor:hover { color: var(--link); }
@media (hover: none) { .h-anchor { opacity: 0.6; } }

code, kbd, pre { font-family: var(--mono); }
:not(pre) > code {
  font-size: 0.875em; background: var(--code-bg); color: var(--code-text);
  border: 1px solid var(--border); border-radius: 5px; padding: 0.08em 0.36em; overflow-wrap: anywhere;
}
a > code { color: inherit; }
pre {
  background: var(--code-bg); color: var(--code-text); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; overflow-x: auto; font-size: 0.875rem; line-height: 1.6; tab-size: 4;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.code-block { position: relative; margin: 0 0 1.1em; }
.code-block pre { margin: 0; padding-right: 76px; }
.copy-code {
  position: absolute; top: 8px; right: 8px; min-height: 32px; font: 600 0.75rem/1 var(--font); color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px; padding: 6px 9px; cursor: pointer;
}
.copy-code:hover { color: var(--text); }
kbd {
  font-size: 0.8125em; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px;
  padding: 0.05em 0.4em; background: var(--surface);
}

/* Product screenshots ({% screenshot %}): shown at most at their natural size, with a caption and a full-size link. */
.prose .screenshot { margin: 1.4em 0 1.6em; }
.screenshot img {
  display: block; max-width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.screenshot figcaption { margin-top: 0.55em; font-size: 0.875rem; line-height: 1.45; color: var(--text-muted); }
.screenshot-full { white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 9px 14px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); font-weight: 640; font-size: 0.875rem; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child code { white-space: nowrap; }
@media (max-width: 640px) { td:first-child code { white-space: normal; } }

blockquote { border-left: 3px solid var(--border-strong); padding: 0.1em 0 0.1em 1em; color: var(--text-muted); }

.callout {
  border: 1px solid var(--border); border-left: 4px solid var(--note-border); background: var(--note-bg);
  border-radius: var(--radius-s); padding: 12px 16px;
}
.callout > :last-child { margin-bottom: 0; }
.callout--warning { border-left-color: var(--warn-border); background: var(--warn-bg); }
.callout--danger { border-left-color: var(--danger-border); background: var(--danger-bg); }
.callout-title { display: block; font-weight: 680; margin-bottom: 2px; }

.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 650; padding: 2px 9px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-muted); border: 1px solid var(--border); vertical-align: 0.12em; line-height: 1.5;
}
.badge--stable { background: #e6f4ea; color: #1e5b33; border-color: #bfdcc8; }
.badge--internal { background: var(--danger-bg); color: #7a2b25; border-color: #e7c2be; }
.badge--preview, .badge--pre-release { background: var(--warn-bg); color: var(--warn-ink); border-color: #ead4a8; }
.badge--public { background: #e8eef8; color: #24426e; border-color: #c4d3ea; }
:root[data-theme="dark"] .badge--public { background: #1b2638; color: #b9cdf0; border-color: #2c3d5a; }
.badge--developer { background: var(--accent-soft); color: var(--accent-ink); border-color: #bfe3e8; }
:root[data-theme="dark"] .badge--stable { background: #18301f; color: #a8dcb6; border-color: #2b4a33; }
:root[data-theme="dark"] .badge--internal { color: #f0b7b1; border-color: #4f2b28; }
:root[data-theme="dark"] .badge--preview, :root[data-theme="dark"] .badge--pre-release { border-color: #4d3d20; }
:root[data-theme="dark"] .badge--developer { border-color: #24575e; }

a[data-online-only]::after { content: " ↗"; font-size: 0.85em; }

/* Cards (home and hubs) ------------------------------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 0 1.5em; padding: 0; list-style: none; }
.card {
  position: relative; display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); text-decoration: none;
}
.cards li { margin: 0; }
.cards--areas { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card:hover { border-color: var(--border-strong); color: var(--text); box-shadow: var(--shadow); }
.card h2, .card h3 { margin: 0 0 6px !important; font-size: 1.0625rem !important; padding: 0 !important; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.5; }
.card .card-meta { display: block; margin-top: 10px; font-size: 0.8125rem; color: var(--text-muted); }

/* Product logo at the top of a landing page */
.page-logo { display: block; height: 38px; width: auto; margin: 0 0 18px; }
.archive-notice { background: var(--warn-bg); color: var(--warn-ink); }

/* Doc footer, pager ---------------------------------------------------------------------------------------- */
.doc-footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); }
.applies { font-size: 0.875rem; color: var(--text-muted); margin: 0 0 20px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager a {
  display: block; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text);
}
.pager a:hover { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.pager-next { text-align: right; grid-column: 2; }
.pager-label { display: block; font-size: 0.8125rem; color: var(--text-muted); }
.pager-title { font-weight: 620; }

/* TOC -------------------------------------------------------------------------------------------------------- */
.toc-inner { position: sticky; top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 32px 0 40px; }
.toc-title { margin: 0 0 8px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.toc ul, .toc-mobile ul { list-style: none; margin: 0; padding: 0; }
.toc li a, .toc-mobile li a { display: block; padding: 3px 0 3px 12px; border-left: 2px solid var(--border); color: var(--text-muted); text-decoration: none; font-size: 0.84375rem; line-height: 1.4; }
.toc li.l3 a, .toc-mobile li.l3 a { padding-left: 24px; }
.toc li a:hover { color: var(--text); }
.toc li a.is-active { color: var(--text); border-left-color: var(--indicator); }
.toc-mobile { display: none; margin: 0 0 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.toc-mobile summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 0.9375rem; }
.toc-mobile ul { padding: 0 14px 12px; }

/* Footer ----------------------------------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-2); }
.footer-inner { max-width: 1480px; margin: 0 auto; padding: 24px; font-size: 0.8125rem; color: var(--text-muted); display: grid; gap: 6px; }
.footer-inner p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.footer-mark { width: 20px; height: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links a { color: var(--text-muted); }

/* Home ------------------------------------------------------------------------------------------------------- */
.home .layout { display: block; max-width: 1480px; }
.home .main { max-width: 1120px; }
.home-hero { padding: 48px 0 20px; }
.home-hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.12; letter-spacing: -0.025em; }
.home-hero .lead { max-width: 44rem; }
.home section { margin: 0 0 40px; }
.home h2.home-h { font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; }
.product-card .card-logo { height: 34px; width: auto; margin: 0 0 12px; display: block; }
.product-card .product-name { font-size: 1.375rem !important; letter-spacing: -0.02em; margin-bottom: 8px !important; }
.product-card .stage-word { display: block; margin: 0 0 12px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 34px; }
.quick { columns: 2 260px; column-gap: 32px; padding: 0; list-style: none; margin: 0; }
.quick li { break-inside: avoid; margin: 0 0 6px; }
.status-table td:first-child { white-space: nowrap; }

/* Responsive ------------------------------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .layout { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .toc { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 1023px) {
  :root { --header-h: 56px; }
  .header-inner { padding: 0 12px; gap: 8px; }
  .js .menu-toggle { display: inline-grid; }
  .js .menu-close { display: inline-grid; float: right; margin: -4px -6px 0 8px; }
  .js .product-nav { display: none; }
  .product-nav { overflow-x: auto; }
  .search { width: auto; flex: 1; max-width: 420px; }
  .layout, .layout.no-toc { display: block; padding: 0 16px; }
  /* Without JavaScript the section navigation stays in the page, above the content. */
  .sidebar-inner { position: static; max-height: none; padding: 16px 0 0; }
  .js .sidebar {
    position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(320px, 86vw);
    background: var(--surface); border-right: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateX(-102%); visibility: hidden; transition: transform 0.22s ease, visibility 0s linear 0.22s;
  }
  .js .sidebar.is-open { transform: none; visibility: visible; transition: transform 0.22s ease; }
  .js .sidebar-inner { max-height: 100vh; height: 100%; overflow-y: auto; padding: 16px 16px 40px 20px; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 55; background: rgb(0 0 0 / 35%); }
  .js .mobile-areas { display: block; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--border); }
  .mobile-areas ul { list-style: none; margin: 0; padding: 0; }
  .mobile-areas a { display: block; padding: 9px 10px; margin-left: -10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 560; }
  .mobile-areas a[aria-current] { background: var(--surface-3); }
  .section-nav li a { padding: 9px 10px; }
  .main { padding-top: 18px; }
  .doc-version { display: block; }
  .js .sidebar .section-title { display: none; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 560px) {
  .prelaunch-long { display: none; }
  .prelaunch-short { display: inline; }
  .code-block pre { padding-top: 46px; padding-right: 16px; }
  .brand-text { display: none; }
  .search-kbd { display: none; }
  .search-panel { position: fixed; left: 12px; right: 12px; width: auto; top: calc(var(--header-h) + 8px); }
  .prelaunch { text-align: left; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { grid-column: 1; }
  .lead { font-size: 1.0625rem; }
  th, td { padding: 8px 10px; }
}

@media (pointer: coarse) {
  .breadcrumbs a, .footer-links a, .prelaunch a { display: inline-block; padding: 8px 0; }
  .toc-mobile li a { padding-top: 8px; padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .search-results li[aria-selected="true"] a { outline: 2px solid Highlight; }
  .section-nav li a[aria-current="page"], .product-nav a[aria-current] { outline: 1px solid CanvasText; }
}
@media print {
  .site-header, .sidebar, .toc, .toc-mobile, .pager, .prelaunch, .skip-link, .h-anchor { display: none !important; }
  .layout { display: block; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
}
