/*
 * Neutral fallback values for the platform theme variables (Appendix C §A, main §10.3).
 * Light and dark mirror the FALLBACK-TOKENS block of the skills site's old catalog page (its template.html, gone
 * since the catalog moved to the docs' Skills tab), extended with the variables the docs CSS consumes. These and the highlight palettes in
 * code.css are the only literal theme colours of the stylesheet. Declared inside a layer,
 * so every unlayered declaration from /theme.css (linked after docs.css) wins; when
 * /theme.css fails the page stays readable and the System/Light/Dark menu still works.
 */
@layer fallback {
	:root {
		--background: #f9f8f4;
		--foreground: #1a1a1a;
		--card: #ffffff;
		--card-foreground: #1a1a1a;
		--popover: #ffffff;
		--popover-foreground: #1a1a1a;
		--muted: #f5f4f1;
		--muted-foreground: #5c5c5a;
		--primary: #3a3a38;
		--primary-foreground: #ffffff;
		--border: #e2e2e0;
		--input: #cfcfc9;
		--ring: #3a3a38;
		--destructive: #b42318;
		--destructive-foreground: #ffffff;
		--success: #11734a;
		--success-foreground: #ffffff;
		--warning: #8a5a00;
		--warning-foreground: #ffffff;
		--info: #1d5bbf;
		--info-foreground: #ffffff;
		--font-sans: 'Helvetica Neue', Arial, ui-sans-serif, system-ui, sans-serif;
		--font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
		--tracking-normal: 0em;
		--radius: 0.5rem;
		--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
		--shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
		--shadow-lg: 0 12px 16px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
		--shadow-xl: 0 20px 24px -4px rgba(0, 0, 0, 0.1), 0 8px 8px -4px rgba(0, 0, 0, 0.04);
		--shadow-2xl: 0 24px 48px -12px rgba(0, 0, 0, 0.2);
	}
	:root.dark {
		--background: #161615;
		--foreground: #ededec;
		--card: #1f1f1e;
		--card-foreground: #ededec;
		--popover: #1f1f1e;
		--popover-foreground: #ededec;
		--muted: #262625;
		--muted-foreground: #a3a29e;
		--primary: #d8d8d4;
		--primary-foreground: #1a1a1a;
		--border: #343330;
		--input: #45443f;
		--ring: #d8d8d4;
		--destructive: #f97066;
		--destructive-foreground: #161615;
		--success: #47cd89;
		--success-foreground: #161615;
		--warning: #fdb022;
		--warning-foreground: #161615;
		--info: #84adff;
		--info-foreground: #161615;
		--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
		--shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.4);
		--shadow-lg: 0 12px 16px -4px rgba(0, 0, 0, 0.45);
		--shadow-xl: 0 20px 24px -4px rgba(0, 0, 0, 0.5);
		--shadow-2xl: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
	}
	@media (prefers-color-scheme: dark) {
		:root:not(.light) {
			--background: #161615;
			--foreground: #ededec;
			--card: #1f1f1e;
			--card-foreground: #ededec;
			--popover: #1f1f1e;
			--popover-foreground: #ededec;
			--muted: #262625;
			--muted-foreground: #a3a29e;
			--primary: #d8d8d4;
			--primary-foreground: #1a1a1a;
			--border: #343330;
			--input: #45443f;
			--ring: #d8d8d4;
			--destructive: #f97066;
			--destructive-foreground: #161615;
			--success: #47cd89;
			--success-foreground: #161615;
			--warning: #fdb022;
			--warning-foreground: #161615;
			--info: #84adff;
			--info-foreground: #161615;
			--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
			--shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.4);
			--shadow-lg: 0 12px 16px -4px rgba(0, 0, 0, 0.45);
			--shadow-xl: 0 20px 24px -4px rgba(0, 0, 0, 0.5);
			--shadow-2xl: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
		}
	}
}

/*
 * Derived docs tokens (Appendix C §A, main §10.2). Theme colours are never hard-coded here:
 * every --d-* colour is a color-mix() of the platform variables, so it re-resolves when
 * :root.dark or the dark media query flips --background / --foreground. Layout tokens are
 * fixed rem values from the measured Mintlify geometry (1440×900 and 390×844).
 */
:root {
	color-scheme: light;
	--d-font-sans: var(--font-sans, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif);
	--d-font-mono: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
	--d-heading-weight: 500;
	--d-radius: var(--radius, 0.5rem);
	--d-radius-sm: calc(var(--d-radius) - 2px);
	--d-radius-lg: calc(var(--d-radius) + 4px);
	--d-radius-xl: calc(var(--d-radius) + 6px);
	--d-border-soft: color-mix(in oklab, var(--border) 50%, transparent);
	--d-hover-bg: color-mix(in oklab, var(--foreground) 5%, transparent);
	--d-active-bg: color-mix(in oklab, var(--primary) 10%, transparent);
	--d-code-bg: color-mix(in oklab, var(--muted) 45%, var(--card));
	--d-inline-code-bg: color-mix(in oklab, var(--primary) 8%, transparent);
	--d-inline-code-fg: color-mix(in oklab, var(--primary) 70%, var(--foreground));
	--d-mark-bg: color-mix(in oklab, var(--primary) 20%, transparent);
	--d-backdrop: color-mix(in oklab, #000 50%, transparent);
	--d-method-post-bg: color-mix(in oklab, var(--info) 20%, transparent);
	--d-method-post-fg: color-mix(in oklab, var(--info) 75%, var(--foreground));
	--d-method-get-bg: color-mix(in oklab, var(--success) 20%, transparent);
	--d-method-get-fg: color-mix(in oklab, var(--success) 75%, var(--foreground));
	--d-method-delete-bg: color-mix(in oklab, var(--destructive) 20%, transparent);
	--d-method-delete-fg: color-mix(in oklab, var(--destructive) 75%, var(--foreground));
	--d-method-put-bg: color-mix(in oklab, var(--warning) 20%, transparent);
	--d-method-put-fg: color-mix(in oklab, var(--warning) 75%, var(--foreground));
	--d-callout-note-border: color-mix(in oklab, var(--info) 35%, var(--background));
	--d-callout-note-bg: color-mix(in oklab, var(--info) 8%, var(--background));
	--d-callout-note-fg: color-mix(in oklab, var(--info) 55%, var(--foreground));
	--d-callout-tip-border: color-mix(in oklab, var(--success) 35%, var(--background));
	--d-callout-tip-bg: color-mix(in oklab, var(--success) 8%, var(--background));
	--d-callout-tip-fg: color-mix(in oklab, var(--success) 55%, var(--foreground));
	--d-callout-warning-border: color-mix(in oklab, var(--warning) 35%, var(--background));
	--d-callout-warning-bg: color-mix(in oklab, var(--warning) 8%, var(--background));
	--d-callout-warning-fg: color-mix(in oklab, var(--warning) 55%, var(--foreground));
	--d-callout-check-border: color-mix(in oklab, var(--success) 35%, var(--background));
	--d-callout-check-bg: color-mix(in oklab, var(--success) 8%, var(--background));
	--d-callout-check-fg: color-mix(in oklab, var(--success) 55%, var(--foreground));
	--d-callout-info-border: color-mix(in oklab, var(--muted-foreground) 35%, var(--background));
	--d-callout-info-bg: color-mix(in oklab, var(--muted-foreground) 8%, var(--background));
	--d-callout-info-fg: color-mix(in oklab, var(--muted-foreground) 55%, var(--foreground));
	--d-tile-selected-bg: color-mix(in oklab, var(--primary) 6%, transparent);
	/* the site bar (--pn-h from core/core-design/site/bar.ts, 44px, 48px below 834px) plus the 3rem tab bar */
	--d-header-h: calc(3rem + var(--pn-h, 44px));
	--d-toc-top: calc(5.5rem + var(--pn-h, 44px));
	--d-sidebar-w: 18rem;
	--d-toc-w: 19rem;
	--d-assistant-w: 23rem;
}
:root.dark {
	color-scheme: dark;
	--d-backdrop: color-mix(in oklab, #000 65%, transparent);
	--d-tile-selected-bg: color-mix(in oklab, var(--primary) 10%, transparent);
}
@media (prefers-color-scheme: dark) {
	:root:not(.light) {
		color-scheme: dark;
		--d-backdrop: color-mix(in oklab, #000 65%, transparent);
		--d-tile-selected-bg: color-mix(in oklab, var(--primary) 10%, transparent);
	}
}
@media (max-width: 63.99rem) {
	:root {
		/* the site bar plus the 3.5rem mobile row */
		--d-header-h: calc(3.5rem + var(--pn-h, 44px));
	}
}
/*
 * K13: a custom property holding color-mix() cannot fall back by re-declaration (the last
 * declaration always wins and then fails at computed-value time), so browsers without
 * color-mix() get solid values here instead. The selector list outranks :root.dark.
 */
@supports not (color: color-mix(in oklab, black 50%, transparent)) {
	:root,
	:root.dark,
	:root:not(.light) {
		--d-border-soft: var(--border);
		--d-hover-bg: var(--muted);
		--d-active-bg: var(--muted);
		--d-code-bg: var(--muted);
		--d-inline-code-bg: var(--muted);
		--d-inline-code-fg: var(--foreground);
		--d-mark-bg: var(--muted);
		--d-backdrop: rgb(0 0 0 / 50%);
		--d-method-post-bg: var(--muted);
		--d-method-post-fg: var(--foreground);
		--d-method-get-bg: var(--muted);
		--d-method-get-fg: var(--foreground);
		--d-method-delete-bg: var(--muted);
		--d-method-delete-fg: var(--foreground);
		--d-method-put-bg: var(--muted);
		--d-method-put-fg: var(--foreground);
		--d-callout-note-border: var(--info);
		--d-callout-note-bg: var(--background);
		--d-callout-note-fg: var(--foreground);
		--d-callout-tip-border: var(--success);
		--d-callout-tip-bg: var(--background);
		--d-callout-tip-fg: var(--foreground);
		--d-callout-warning-border: var(--warning);
		--d-callout-warning-bg: var(--background);
		--d-callout-warning-fg: var(--foreground);
		--d-callout-check-border: var(--success);
		--d-callout-check-bg: var(--background);
		--d-callout-check-fg: var(--foreground);
		--d-callout-info-border: var(--border);
		--d-callout-info-bg: var(--background);
		--d-callout-info-fg: var(--foreground);
		--d-tile-selected-bg: var(--muted);
	}
}

/* Element defaults, focus, screen-reader utilities and motion preferences (Appendix C §F). */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}
body {
	margin: 0;
	min-height: 100dvh;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--d-font-sans);
	font-size: 1rem;
	line-height: 1.75;
	letter-spacing: var(--tracking-normal, 0em);
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	color: var(--foreground);
	font-weight: var(--d-heading-weight);
	line-height: 1.3;
}
a {
	color: var(--primary);
}
code,
pre,
kbd,
samp {
	font-family: var(--d-font-mono);
}
img,
video {
	max-width: 100%;
	height: auto;
}
button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}
button {
	-webkit-tap-highlight-color: transparent;
}
[hidden] {
	display: none !important;
}
:focus-visible {
	outline: 2px solid var(--ring);
	outline-offset: 2px;
}
::selection {
	background: var(--d-mark-bg);
}
.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-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 100;
	padding: 0.5rem 1rem;
	border-radius: var(--d-radius);
	background: var(--primary);
	color: var(--primary-foreground);
	font-weight: 500;
	text-decoration: none;
}
.skip-link:focus {
	top: 1rem;
}
.icon {
	display: inline-block;
	flex-shrink: 0;
	vertical-align: middle;
}
kbd {
	display: inline-flex;
	align-items: center;
	padding: 0 0.375rem;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-sm);
	background: var(--muted);
	color: var(--muted-foreground);
	font-size: 0.75rem;
	line-height: 1.25rem;
}
/*
 * Navigation is a full page load (F-235). With the cross-document view transition the old page stays on screen
 * until the new one is ready (render-blocked until its body is parsed, <link rel="expect"> in renderHead), then
 * cross-fades, so a click no longer flashes a blank frame or a half-painted one. Same-origin only; browsers
 * without it (Firefox) keep the plain load. The root group's 0.25 s cross-fade is the default animation; the
 * header and the sidebar are their own groups and swap without animation, so the app chrome stays put and only
 * the content column fades (a tab switch would otherwise dissolve the whole page, 2026-10-26). Their old
 * snapshot is hidden outright: both have see-through backgrounds, so an un-animated old image would still show
 * under the new one.
 */
@view-transition {
	navigation: auto;
}
#navbar {
	view-transition-name: navbar;
}
#sidebar {
	view-transition-name: sidebar;
}
::view-transition-group(navbar),
::view-transition-group(sidebar),
::view-transition-new(navbar),
::view-transition-new(sidebar) {
	animation: none;
}
::view-transition-old(navbar),
::view-transition-old(sidebar) {
	animation: none;
	opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) {
		animation: none !important;
	}
}

/*
 * Shell geometry (main §6.1, §6.2; Appendix C F-024 to F-043, F-048 to F-050, F-202, F-238).
 * Desktop: header = the site bar (--pn-h, fixed, core/core-design/site) + the 48px tab bar, sidebar 288px from
 * 64rem, TOC or API rail from 80rem, content 48rem (docs) / 39rem (API, MCP) / fluid (wide, no TOC).
 * Mobile below 64rem: fixed header (the bar + 56px row 2), single column, 16px gutter (--d-header-h, tokens.css).
 */

/* ── Header ─────────────────────────────────────────────────────────────── */
#navbar {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	height: var(--d-header-h);
	padding-top: var(--pn-h, 44px);
	border-bottom: 1px solid var(--d-border-soft);
}
/*
 * The row under the site bar gets its material from a layer, not from #navbar itself: a backdrop-filter on #navbar
 * would make it the containing block of the bar's fixed parts (the flyout curtain would end at the header's bottom).
 */
#navbar::before {
	content: '';
	position: absolute;
	inset: var(--pn-h, 44px) 0 0;
	z-index: -1;
	background: var(--background);
	background: color-mix(in oklab, var(--background) 85%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	height: 1.75rem;
	color: var(--foreground);
	text-decoration: none;
}
.logo-wordmark {
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.icon-button,
#mobile-menu-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: var(--d-radius-lg);
	background: none;
	color: var(--muted-foreground);
	cursor: pointer;
}
.icon-button:hover,
#mobile-menu-button:hover {
	background: var(--d-hover-bg);
	color: var(--foreground);
}
.theme-menu {
	position: relative;
}
#theme-toggle .theme-icon-dark,
#theme-toggle .theme-icon-system {
	display: none;
}
html[data-theme-preference='dark'] #theme-toggle .theme-icon-light,
html[data-theme-preference='system'] #theme-toggle .theme-icon-light {
	display: none;
}
html[data-theme-preference='dark'] #theme-toggle .theme-icon-dark,
html[data-theme-preference='system'] #theme-toggle .theme-icon-system {
	display: inline-block;
}
#theme-menu-list {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	z-index: 40;
	min-width: 12rem;
	margin: 0;
	padding: 0.25rem;
	list-style: none;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-lg);
	background: var(--popover);
	color: var(--popover-foreground);
	box-shadow: var(--shadow-md);
}
#theme-menu-list [role='menuitemradio'] {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.375rem 0.5rem;
	border: 0;
	border-radius: var(--d-radius);
	background: none;
	color: inherit;
	font-size: 0.875rem;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
#theme-menu-list [role='menuitemradio']:hover,
#theme-menu-list [role='menuitemradio']:focus-visible {
	background: var(--d-hover-bg);
}
#theme-menu-list [aria-checked='true'] {
	color: var(--primary);
	font-weight: 500;
}
/* ── Tab bar and mobile row 2 ───────────────────────────────────────────── */
.tab-bar {
	display: none;
	gap: 1.5rem;
	width: 100%;
	max-width: 92rem;
	height: 3rem;
	margin-inline: auto;
	padding-inline: 2rem;
	overflow-x: auto;
	scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar {
	display: none;
}
.tab {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 0.5rem;
	height: 100%;
	color: var(--muted-foreground);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: inset 0 -1.5px transparent;
}
.tab:hover {
	color: var(--foreground);
	box-shadow: inset 0 -1.5px var(--border);
}
.tab[aria-current='location'] {
	color: var(--primary);
	box-shadow: inset 0 -1.5px var(--primary);
}
.mobile-breadcrumb {
	display: flex;
	min-width: 0;
	font-size: 0.875rem;
}
.mobile-breadcrumb ol {
	display: flex;
	gap: 0.375rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	list-style: none;
	color: var(--muted-foreground);
	white-space: nowrap;
}
.mobile-breadcrumb li:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
}
.mobile-breadcrumb [aria-current='page'] {
	color: var(--foreground);
}
/* The " › " between group and page is aria-hidden; keep it out of a copied selection. */
.crumb-sep {
	color: var(--muted-foreground);
	user-select: none;
}

/* ── Shell ──────────────────────────────────────────────────────────────── */
.docs-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: 'main' 'rail';
	align-items: start;
	width: 100%;
	max-width: 92rem;
	margin-inline: auto;
	padding-inline: 1rem;
}
#sidebar {
	display: none;
	grid-area: sidebar;
}
#content-area {
	grid-area: main;
	container: content / inline-size;
	justify-self: center;
	width: 100%;
	min-width: 0;
	max-width: 48rem;
	padding-block: 1.5rem 4rem;
}
html[data-page-kind='api'] #content-area,
html[data-page-kind='mcp'] #content-area {
	max-width: 39rem;
}
html[data-toc='false']:not([data-page-kind='api']):not([data-page-kind='mcp']) #content-area,
html[data-page-mode='wide'] #content-area {
	max-width: none;
}
#toc {
	display: none;
	grid-area: rail;
}
.api-rail {
	grid-area: rail;
	justify-self: center;
	width: 100%;
	min-width: 0;
	max-width: 39rem;
	padding-bottom: 3rem;
}

/* ── TOC ────────────────────────────────────────────────────────────────── */
.toc-top {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted-foreground);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
}
.toc-top:hover {
	color: var(--foreground);
}
.toc-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.toc-item a {
	display: block;
	padding-block: 0.25rem;
	color: var(--muted-foreground);
	font-size: 0.875rem;
	line-height: 1.5rem;
	text-decoration: none;
}
.toc-item[data-depth='1'] a {
	padding-left: 1rem;
}
.toc-item[data-depth='2'] a {
	padding-left: 2rem;
}
.toc-item a:hover {
	color: var(--foreground);
}
.toc-item a[aria-current='location'] {
	color: var(--primary);
	text-shadow: 0 0 0.01em currentColor;
}

/* ── Pager (rendered on every doc page, hidden unless docs.json pagination: true) ── */
.pager {
	display: none;
}
html[data-pagination='true'] .pager {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}
html[data-pagination='true'][data-page-kind='api'] .pager,
html[data-pagination='true'][data-page-kind='mcp'] .pager {
	display: none;
}
.pager-prev,
.pager-next {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-lg);
	text-decoration: none;
}
.pager-next {
	grid-column: 2;
	text-align: right;
}
.pager-prev:hover,
.pager-next:hover {
	border-color: var(--primary);
}
.pager-label {
	color: var(--muted-foreground);
	font-size: 0.75rem;
}
.pager-title {
	color: var(--foreground);
	font-weight: 500;
}
.pager-prev:hover .pager-title,
.pager-next:hover .pager-title {
	color: var(--primary);
}

/* ── Assistant panel and ask bar (phase C, F-031, F-202; not rendered before C) ── */
#chat-assistant-sheet {
	display: none;
}
html[data-assistant-state='open'] #chat-assistant-sheet {
	position: fixed;
	top: var(--d-header-h);
	right: 0;
	bottom: 0;
	z-index: 25;
	display: flex;
	flex-direction: column;
	width: min(var(--d-assistant-w), 100vw);
	border-left: 1px solid var(--border);
	background: var(--background);
}
.ask-bar {
	position: sticky;
	bottom: 0;
	z-index: 20;
	display: flex;
	gap: 0.5rem;
	width: min(42rem, calc(100vw - 2rem));
	margin: 0 auto 1rem;
	padding: 0.5rem;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-lg);
	background: var(--card);
	box-shadow: var(--shadow-lg);
}

/* ── Mobile (below 64rem) ──────────────────────────────────────────────── */
@media (max-width: 63.99rem) {
	#navbar {
		position: fixed;
		right: 0;
		left: 0;
	}
	body {
		padding-top: var(--d-header-h);
	}
	#navbar > .mobile-bar,
	#navbar > .mobile-breadcrumb,
	#navbar > :has(> .mobile-breadcrumb) {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		height: 3.5rem;
		padding-inline: 1rem;
		border-top: 1px solid var(--d-border-soft);
	}
}

/* ── Desktop (64rem and up) ─────────────────────────────────────────────── */
@media (min-width: 64rem) {
	.mobile-only,
	#mobile-menu-button,
	.mobile-breadcrumb,
	#navbar > :has(> .mobile-breadcrumb) {
		display: none;
	}
	.tab-bar {
		display: flex;
	}
	.docs-shell {
		grid-template-columns: var(--d-sidebar-w) minmax(0, 1fr);
		grid-template-areas: 'sidebar main' 'sidebar rail';
		padding-inline: 2rem;
	}
	#sidebar {
		display: block;
	}
	#content-area {
		padding: 2.5rem 0 5rem 2rem;
	}
	.api-rail {
		padding-left: 2rem;
	}
	html[data-assistant-state='open'] body {
		padding-right: var(--d-assistant-w);
	}
}

/* ── Wide desktop (80rem and up): TOC and API rail ─────────────────────── */
@media (min-width: 80rem) {
	.docs-shell {
		grid-template-columns: var(--d-sidebar-w) minmax(0, 1fr) var(--d-toc-w);
		grid-template-areas: 'sidebar main rail';
	}
	#content-area {
		padding-left: 0;
	}
	html[data-page-mode='wide'] .docs-shell {
		padding-right: 0;
	}
	#toc {
		position: sticky;
		top: var(--d-toc-top);
		display: block;
		max-height: calc(100dvh - var(--d-toc-top));
		padding-left: 2.5rem;
		overflow-y: auto;
		scrollbar-width: none;
	}
	#toc::-webkit-scrollbar {
		display: none;
	}
	html[data-page-kind='api'] .docs-shell,
	html[data-page-kind='mcp'] .docs-shell {
		grid-template-columns: var(--d-sidebar-w) minmax(0, 1fr) minmax(0, 28rem);
	}
	.api-rail {
		position: sticky;
		top: var(--d-toc-top);
		max-width: 28rem;
		max-height: calc(100dvh - var(--d-toc-top) - 1rem);
		overflow-y: auto;
	}
	html[data-toc='false']:not([data-page-kind='api']):not([data-page-kind='mcp']) .docs-shell,
	html[data-page-mode='wide'] .docs-shell {
		grid-template-columns: var(--d-sidebar-w) minmax(0, 1fr);
		grid-template-areas: 'sidebar main' 'sidebar rail';
	}
	html[data-assistant-state='open'] #toc {
		display: none;
	}
	html[data-assistant-state='open'] .docs-shell {
		grid-template-columns: var(--d-sidebar-w) minmax(0, 1fr);
		grid-template-areas: 'sidebar main' 'sidebar rail';
	}
	html[data-assistant-state='open'] .api-rail {
		position: static;
		max-height: none;
	}
}

/* Sidebar tree, anchors, nested groups, method pills and the mobile drawer (main §6.4; Appendix C F-026, F-051 to F-061, F-041). */
#sidebar {
	position: sticky;
	top: var(--d-header-h);
	height: calc(100dvh - var(--d-header-h));
	padding: 1.25rem 1rem 3rem 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(to bottom, transparent, black 2rem);
	mask-image: linear-gradient(to bottom, transparent, black 2rem);
	font-size: 0.875rem;
}
#sidebar::-webkit-scrollbar {
	display: none;
}
.sidebar-anchors {
	display: grid;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}
.anchor {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-left: 1rem;
	color: var(--muted-foreground);
	font-weight: 500;
	text-decoration: none;
}
.anchor:hover {
	color: var(--foreground);
}
.anchor-icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-sm);
	color: var(--muted-foreground);
}
.anchor:hover .anchor-icon {
	border-color: var(--muted-foreground);
	color: var(--foreground);
}
.sidebar-group {
	margin-top: 1.5rem;
}
.sidebar-group-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.5rem;
	padding-left: 1rem;
	color: var(--foreground);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.5rem;
}
.sidebar-items {
	margin: 0;
	padding: 0;
	list-style: none;
}
.sidebar-nested > .sidebar-items {
	margin-top: 0.125rem;
}
.sidebar-item,
.sidebar-group-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.375rem 0.75rem 0.375rem 1rem;
	border: 0;
	border-radius: var(--d-radius-lg);
	background: none;
	color: var(--foreground);
	color: color-mix(in oklab, var(--foreground) 80%, var(--background));
	font-size: inherit;
	line-height: 1.25rem;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.sidebar-item:hover,
.sidebar-group-toggle:hover {
	background: var(--d-hover-bg);
	color: var(--foreground);
}
.sidebar-item[aria-current='page'] {
	background: var(--d-active-bg);
	color: var(--primary);
	text-shadow: 0 0 0.01em currentColor;
}
.sidebar-group-toggle > .icon:last-child {
	margin-left: auto;
	color: var(--muted-foreground);
	transition: transform 75ms ease-out;
}
.sidebar-group-toggle[aria-expanded='true'] > .icon:last-child {
	transform: rotate(90deg);
}
.sidebar-item .method-pill {
	flex: 0 0 2rem;
}
.sidebar-item .pill-soon {
	margin-left: auto;
}
.sidebar-item-label {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
}
.sidebar-item[aria-current='page'] .method-post {
	background: var(--info);
	color: var(--info-foreground);
}
.sidebar-item[aria-current='page'] .method-get {
	background: var(--success);
	color: var(--success-foreground);
}
.sidebar-item[aria-current='page'] .method-delete {
	background: var(--destructive);
	color: var(--destructive-foreground);
}
.sidebar-item[aria-current='page'] .method-put,
.sidebar-item[aria-current='page'] .method-patch {
	background: var(--warning);
	color: var(--warning-foreground);
}
@media (min-width: 64rem) {
	.sidebar-group {
		margin-top: 2rem;
	}
}

/* ── Mobile drawer: native <dialog>, left slide-in (F-041) ─────────────── */
#mobile-drawer {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(23rem, calc(100vw - 1.5rem));
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0 1rem 2rem;
	overflow-y: auto;
	border: 0;
	border-right: 1px solid var(--border);
	background: var(--background);
	color: var(--foreground);
	box-shadow: var(--shadow-xl);
	font-size: 0.875rem;
}
#mobile-drawer[open] {
	animation: docs-drawer-in 150ms ease-out;
}
#mobile-drawer::backdrop {
	background: var(--d-backdrop, rgb(0 0 0 / 50%));
}
@keyframes docs-drawer-in {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: none;
	}
}
.drawer-header {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
	background: var(--background);
}
#mobile-drawer .dialog-close {
	width: 2.25rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted-foreground);
}
.drawer-tabs {
	display: grid;
	gap: 0.125rem;
	margin: 0 0 1.25rem;
}
.drawer-tabs .tab {
	height: auto;
	padding: 0.5rem 1rem;
	border-radius: var(--d-radius-lg);
	box-shadow: none;
}
.drawer-tabs .tab:hover {
	background: var(--d-hover-bg);
	box-shadow: none;
}
.drawer-tabs .tab[aria-current='location'] {
	background: var(--d-active-bg);
	box-shadow: none;
}
#mobile-drawer .sidebar-anchors {
	margin-top: 0.5rem;
}
/* The drawer's copy of the tab tree (renderDrawer, ids suffixed -m); the API tab puts p.api-version-line on top. */
.drawer-sidebar {
	padding-bottom: 1rem;
}
.drawer-sidebar > .api-version-line {
	margin: 0 0 1rem;
}

/* Page header, prose typography, tables, the 404 page and phase-B page widgets (main §6.5, §6.7, §6.15; Appendix C F-017, F-037, F-043, F-063 to F-071, F-103, F-104, F-111, F-112, F-234, F-244). */
.page-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: 'eyebrow' 'title' 'desc' 'copy' 'deprecation';
	margin-bottom: 2rem;
}
.page-header > .eyebrow {
	grid-area: eyebrow;
}
.page-header > #page-title {
	grid-area: title;
}
.page-header > .page-description {
	grid-area: desc;
}
.page-header > .copy-page {
	grid-area: copy;
}
.page-header > .deprecation-line {
	grid-area: deprecation;
}
@container content (min-width: 520px) {
	.page-header {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: 'eyebrow eyebrow' 'title copy' 'desc desc' 'deprecation deprecation';
		column-gap: 1rem;
	}
	.page-header > .copy-page {
		margin-top: 0.25rem;
	}
}
.eyebrow {
	margin: 0 0 0.5rem;
	color: var(--primary);
	font-size: 0.875rem;
	font-weight: 600;
}
#page-title {
	color: var(--foreground);
	font-size: 1.875rem;
	font-weight: var(--d-heading-weight);
	line-height: 2.25rem;
	letter-spacing: calc(var(--tracking-normal, 0em) - 0.025em);
}
.page-description {
	margin: 0.5rem 0 0;
	color: var(--muted-foreground);
	font-size: 1.125rem;
	line-height: 1.75rem;
}
.deprecation-line {
	margin: 0.75rem 0 0;
	color: var(--muted-foreground);
	font-size: 0.875rem;
}
@media (min-width: 40rem) {
	#page-title {
		font-size: 2.25rem;
		line-height: 2.5rem;
	}
}

/* ── Prose ──────────────────────────────────────────────────────────────── */
.prose {
	color: var(--foreground);
	font-size: 1rem;
	line-height: 1.75;
}
.prose > :first-child {
	margin-top: 0;
}
.prose :where(p, ul, ol, blockquote) {
	margin: 1.25rem 0;
}
.prose h2 {
	margin: 2.5rem 0 1rem;
	font-size: 1.5rem;
	line-height: 2rem;
	letter-spacing: -0.01em;
}
.prose h3 {
	margin: 2rem 0 0.75rem;
	font-size: 1.25rem;
	line-height: 1.75rem;
}
.prose h4 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.0625rem;
	line-height: 1.5rem;
}
.prose :where(h2, h3, h4) {
	position: relative;
}
:where(h2, h3, h4, [id]) {
	scroll-margin-top: 8rem;
}
@media (max-width: 63.99rem) {
	:where(h2, h3, h4, [id]) {
		scroll-margin-top: 8.5rem;
	}
}
.heading-anchor {
	position: absolute;
	top: 50%;
	left: -2.25rem;
	display: none;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: var(--d-radius);
	color: var(--muted-foreground);
	text-decoration: none;
	opacity: 0;
	transform: translateY(-50%);
}
.heading-anchor:hover {
	color: var(--foreground);
}
:where(h2, h3, h4):hover > .heading-anchor {
	opacity: 1;
}
@media (min-width: 64rem) {
	.heading-anchor {
		display: inline-flex;
	}
}
.prose a:where(:not([class])) {
	color: var(--primary);
	font-weight: 400;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
.prose a:where(:not([class])):hover {
	text-decoration-thickness: 2px;
}
.prose ul {
	padding-left: 1.5rem;
	list-style: disc;
}
.prose ol {
	padding-left: 1.5rem;
	list-style: decimal;
}
.prose li + li {
	margin-top: 0.5rem;
}
.prose li::marker {
	color: var(--muted-foreground);
}
.prose blockquote {
	padding-left: 1rem;
	border-left: 3px solid var(--border);
	color: var(--muted-foreground);
}
.prose hr {
	margin: 2.5rem 0;
	border: 0;
	border-top: 1px solid var(--border);
}
.prose img {
	border-radius: var(--d-radius);
}
.prose :not(pre) > code,
.api-page :not(pre) > code:not(.endpoint-path) {
	padding: 0.125rem 0.375rem;
	border: 1px solid var(--d-active-bg);
	border-radius: var(--d-radius-sm);
	background: var(--d-inline-code-bg);
	color: var(--d-inline-code-fg);
	font-size: 0.875em;
	overflow-wrap: anywhere;
}

/* ── Tables ─────────────────────────────────────────────────────────────── */
.table-wrap {
	margin: 1.5rem 0;
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: var(--d-radius);
}
.table-wrap table,
.chooser-fallback,
#status-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	line-height: 1.5;
}
.table-wrap :where(th, td),
.chooser-fallback :where(th, td),
#status-table :where(th, td) {
	padding: 0.625rem 0.875rem;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}
.table-wrap th,
.chooser-fallback th,
#status-table th {
	background: var(--muted);
	font-weight: 600;
}
.table-wrap tr:last-child td,
.chooser-fallback tr:last-child td,
#status-table tr:last-child td {
	border-bottom: 0;
}
.pricing-summary td:first-child {
	width: 28%;
}
.pricing-summary td:nth-child(2) {
	width: 48%;
}

/* ── 404 (F-234) ────────────────────────────────────────────────────────── */
.not-found {
	padding-block: 4rem;
	text-align: center;
}
.not-found-big {
	margin: 0;
	color: var(--muted-foreground);
	font-size: 4.5rem;
	font-weight: 600;
	line-height: 1;
}
.not-found #page-title {
	margin-top: 1rem;
}
.not-found-line {
	margin: 1rem auto 0;
	max-width: 32rem;
	color: var(--muted-foreground);
}
.not-found-links,
#not-found-suggestions {
	display: grid;
	gap: 0.5rem;
	justify-content: center;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}
/* A retired URL with a known old page (render404 oldUrl, Task 3.12). */
.not-found-old {
	margin: 1.5rem 0 0;
	font-size: 0.875rem;
}
.not-found-old a {
	color: var(--primary);
	text-underline-offset: 0.2em;
}
/* 410, 500 and 503 (renderMinimalPage, Task 3.12): no header, sidebar or TOC, one centred column. */
#content-area.minimal-page {
	display: grid;
	align-content: center;
	min-height: 100dvh;
	max-width: 40rem;
	margin-inline: auto;
	padding-inline: 1rem;
}
/* A component or page that failed to render shows its escaped source (Tasks 3.5 and 3.13) instead of a blank gap. */
.render-fallback {
	margin: 1.25rem 0;
	padding: 1rem;
	overflow-x: auto;
	border: 1px dashed var(--destructive);
	border-radius: var(--d-radius);
	background: var(--d-code-bg);
	color: var(--foreground);
	font-family: var(--d-font-mono);
	font-size: 0.8125rem;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* ── Phase B page widgets: copy-page split button (F-066 to F-071), feedback (F-244) ── */
.copy-page {
	position: relative;
	display: inline-flex;
	align-self: start;
	justify-self: start;
	min-width: 9.75rem;
	margin-top: 1rem;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-lg);
	background: var(--background);
}
.copy-page-main {
	display: inline-flex;
	flex: 1;
	align-items: center;
	gap: 0.5rem;
	height: 2.25rem;
	padding: 0 0.75rem;
	border: 0;
	border-radius: var(--d-radius-lg) 0 0 var(--d-radius-lg);
	background: none;
	font-size: 0.875rem;
	cursor: pointer;
}
#copy-page-menu-trigger {
	width: 2.25rem;
	border: 0;
	border-left: 1px solid var(--border);
	border-radius: 0 var(--d-radius-lg) var(--d-radius-lg) 0;
	background: none;
	cursor: pointer;
}
.copy-page-main:hover,
#copy-page-menu-trigger:hover {
	background: var(--d-hover-bg);
}
#copy-page-menu {
	position: absolute;
	top: calc(100% + 0.375rem);
	right: 0;
	z-index: 40;
	min-width: 18rem;
	margin: 0;
	padding: 0.25rem;
	list-style: none;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-lg);
	background: var(--popover);
	color: var(--popover-foreground);
	box-shadow: var(--shadow-lg);
}
#copy-page-menu [role='menuitem'] {
	display: flex;
	gap: 0.75rem;
	padding: 0.5rem;
	border-radius: var(--d-radius);
	color: inherit;
	font-size: 0.875rem;
	text-decoration: none;
}
#copy-page-menu [role='menuitem']:hover,
#copy-page-menu [role='menuitem']:focus-visible {
	background: var(--d-hover-bg);
}
.feedback {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 3rem;
	color: var(--muted-foreground);
	font-size: 0.875rem;
}
.feedback button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-lg);
	background: none;
	color: var(--muted-foreground);
	cursor: pointer;
}
.feedback button[aria-pressed='true'] {
	border-color: var(--primary);
	color: var(--primary);
}
.feedback-thanks {
	margin: 0;
}

/* D-04 components, pills, dialogs and the A1 widgets (main §6.7, §6.12, §6.13; Appendix B markup; Appendix C F-081 to F-099, F-108, F-173 to F-192, F-257). */

/* ── Callouts ───────────────────────────────────────────────────────────── */
.callout {
	display: flex;
	gap: 0.75rem;
	margin: 1.25rem 0;
	padding: 0.875rem 1rem;
	border: 1px solid var(--d-callout-note-border);
	border-radius: var(--d-radius);
	background: var(--d-callout-note-bg);
	color: var(--d-callout-note-fg);
	font-size: 0.9375rem;
	line-height: 1.6;
}
.callout-note {
	border-color: var(--d-callout-note-border);
	background: var(--d-callout-note-bg);
	color: var(--d-callout-note-fg);
}
.callout-tip {
	border-color: var(--d-callout-tip-border);
	background: var(--d-callout-tip-bg);
	color: var(--d-callout-tip-fg);
}
.callout-warning {
	border-color: var(--d-callout-warning-border);
	background: var(--d-callout-warning-bg);
	color: var(--d-callout-warning-fg);
}
.callout-check {
	border-color: var(--d-callout-check-border);
	background: var(--d-callout-check-bg);
	color: var(--d-callout-check-fg);
}
.callout-info {
	border-color: var(--d-callout-info-border);
	background: var(--d-callout-info-bg);
	color: var(--d-callout-info-fg);
}
.callout-icon {
	flex: none;
	width: 1rem;
	height: 1rem;
	margin-top: 0.25rem;
}
.callout-body {
	flex: 1;
	min-width: 0;
}
.callout-body > :first-child {
	margin-top: 0;
}
.callout-body > :last-child {
	margin-bottom: 0;
}
.callout-title {
	margin: 0 0 0.25rem;
	font-weight: 600;
}
.callout a {
	color: inherit;
	text-decoration: underline;
}

/* ── Tabs, CodeGroup frame, variant tabs (roving tabindex in tabs.ts) ───── */
.tabs {
	margin: 1.5rem 0;
}
.tab-list {
	display: flex;
	gap: 1.25rem;
	overflow-x: auto;
	border-bottom: 1px solid var(--border);
	scrollbar-width: none;
}
.tab-list::-webkit-scrollbar {
	display: none;
}
.tab-list [role='tab'] {
	flex: none;
	padding: 0.5rem 0;
	border: 0;
	background: none;
	color: var(--muted-foreground);
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
	box-shadow: inset 0 -1.5px transparent;
	cursor: pointer;
}
.tab-list [role='tab']:hover {
	color: var(--foreground);
}
.tab-list [role='tab'][aria-selected='true'] {
	color: var(--primary);
	box-shadow: inset 0 -1.5px var(--primary);
}
/* oneOf / anyOf variants: the wrapper is div.tabs.variant-tabs, the inner .tab-list is the tablist (F-140). */
.variant-tabs > .tab-list {
	margin-top: 0.5rem;
}
.tab-panel {
	padding-top: 1rem;
}
.tab-panel > :first-child {
	margin-top: 0;
}
.tab-panel > :last-child {
	margin-bottom: 0;
}
.code-group {
	position: relative;
	margin: 1.5rem 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--d-radius);
	background: var(--d-code-bg);
}
.code-group > .tab-list {
	padding: 0 3rem 0 1rem;
}
.code-group > .tab-list [role='tab'] {
	padding-block: 0.625rem;
}
.code-group .tab-panel {
	padding-top: 0;
}
.code-group .code-block {
	margin: 0;
	border: 0;
	border-radius: 0;
}
.code-group > .code-toolbar {
	position: absolute;
	top: 0.375rem;
	right: 0.5rem;
	min-height: 0;
	padding: 0;
	border: 0;
}
.sample-group,
.response-group {
	margin-top: 0;
}

/* ── Steps ──────────────────────────────────────────────────────────────── */
.steps {
	margin: 1.5rem 0;
	padding: 0;
	list-style: none;
}
.step {
	position: relative;
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr);
	column-gap: 1rem;
	padding-bottom: 1.5rem;
}
.step::before {
	position: absolute;
	top: 2.5rem;
	bottom: 0.5rem;
	left: calc(1rem - 0.5px);
	width: 1px;
	background: var(--border);
	content: '';
}
.step:last-child::before {
	display: none;
}
.step-num {
	grid-row: 1 / span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: var(--muted);
	color: var(--foreground);
	font-size: 0.875rem;
	font-weight: 600;
}
.step-title {
	color: var(--foreground);
	font-weight: 600;
	line-height: 2rem;
}
.step-body {
	grid-column: 2;
	min-width: 0;
}
.step-body > :first-child {
	margin-top: 0.25rem;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card-group {
	display: grid;
	grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}
@media (max-width: 40rem) {
	.card-group {
		grid-template-columns: minmax(0, 1fr);
	}
}
@container content (max-width: 36rem) {
	.card-group {
		grid-template-columns: minmax(0, 1fr);
	}
}
.card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem;
	border: 1px solid var(--border);
	border-radius: var(--d-radius);
	background: var(--card);
	color: var(--card-foreground);
	text-decoration: none;
	transition: border-color 120ms ease-out;
}
a.card:hover {
	border-color: var(--primary);
}
.card-group > .card {
	margin: 0;
}
.card-icon {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--primary);
}
.card-title {
	color: var(--foreground);
	font-weight: 600;
}
.card-desc {
	color: var(--muted-foreground);
	font-size: 0.875rem;
	line-height: 1.5;
}
.card-desc > :first-child {
	margin-top: 0;
}
.card-desc > :last-child {
	margin-bottom: 0;
}

/* ── Accordions ─────────────────────────────────────────────────────────── */
.accordion {
	margin: 1rem 0;
	border: 1px solid var(--border);
	border-radius: var(--d-radius);
	background: var(--background);
}
.accordion-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: var(--d-radius);
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}
.accordion-summary::-webkit-details-marker {
	display: none;
}
.accordion-summary:hover {
	background: var(--d-hover-bg);
}
/* Optional leading icon (Accordion icon="…"): the title takes the free space so the chevron stays right. */
.accordion-icon {
	flex: none;
	color: var(--muted-foreground);
}
.accordion-icon + span {
	flex: 1;
	min-width: 0;
}
.chevron {
	color: var(--muted-foreground);
	transition: transform 120ms ease-out;
}
.accordion[open] > .accordion-summary .chevron {
	transform: rotate(180deg);
}
.accordion-body {
	padding: 0 1rem 1rem;
}
.accordion-body > :first-child {
	margin-top: 0;
}
.accordion-body > :last-child {
	margin-bottom: 0;
}
.accordion-group {
	margin: 1.5rem 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--d-radius);
}
.accordion-group > .accordion {
	margin: 0;
	border: 0;
	border-radius: 0;
}
.accordion-group > .accordion + .accordion {
	border-top: 1px solid var(--border);
}

/* ── Frame and Update ───────────────────────────────────────────────────── */
.frame {
	margin: 1.5rem 0;
	padding: 0.5rem;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-lg);
	background: var(--card);
}
.frame img {
	display: block;
	width: 100%;
	border-radius: var(--d-radius);
}
.frame figcaption {
	padding: 0.5rem 0.25rem 0;
	color: var(--muted-foreground);
	font-size: 0.875rem;
	text-align: center;
}
html:is([data-phase='B'], [data-phase='C']) img[data-zoom] {
	cursor: zoom-in;
}
.update {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-block: 2rem;
	border-bottom: 1px solid var(--border);
}
.update-label {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.625rem;
	border: 0;
	border-radius: var(--d-radius-lg);
	background: var(--d-active-bg);
	color: var(--primary);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
}
.update-body {
	flex: 1;
	min-width: 0;
	font-size: 0.9375rem;
}
.update-body > :first-child {
	margin-top: 0;
}
.update-description {
	margin: 0.5rem 0 0;
	color: var(--muted-foreground);
	font-size: 0.8125rem;
}
ul.update-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}
ul.update-tags > li + li {
	margin-top: 0;
}
@media (min-width: 64rem) {
	.update {
		flex-direction: row;
		gap: 2rem;
	}
	.update-aside {
		position: sticky;
		top: 10rem;
		flex: 0 0 10rem;
		align-self: flex-start;
	}
}

/* ── Pills (F-058, F-061, F-136) ────────────────────────────────────────── */
.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0 0.375rem;
	border-radius: var(--d-radius-sm);
	background: var(--muted);
	background: color-mix(in oklab, var(--muted) 60%, transparent);
	color: var(--muted-foreground);
	font-family: var(--d-font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.25rem;
	white-space: nowrap;
}
.pill-required {
	background: var(--muted);
	background: color-mix(in oklab, var(--destructive) 12%, transparent);
	color: var(--destructive);
}
.pill-soon,
.pill-tag,
.pill-location,
.pill-page-only {
	font-family: var(--d-font-sans);
}
/* A row the page documents but the served spec omits (overlay page-only additions, Appendix B B.2): outlined, not filled. */
.pill-page-only {
	border: 1px dashed var(--border);
	background: none;
}
.pill-tool,
.pill-read {
	font-size: 0.6875rem;
	letter-spacing: 0.02em;
}
.pill-read {
	background: var(--d-method-get-bg);
	color: var(--d-method-get-fg);
}
.method-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	padding: 0 0.25rem;
	border-radius: var(--d-radius-sm);
	font-family: var(--d-font-mono);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.25rem;
	text-transform: uppercase;
}
.method-post {
	background: var(--d-method-post-bg);
	color: var(--d-method-post-fg);
}
.method-get {
	background: var(--d-method-get-bg);
	color: var(--d-method-get-fg);
}
.method-delete {
	background: var(--d-method-delete-bg);
	color: var(--d-method-delete-fg);
}
.method-put,
.method-patch {
	background: var(--d-method-put-bg);
	color: var(--d-method-put-fg);
}
/* methodPill(…, { active: true }): the solid colours of the current sidebar entry (sidebar.css). */
.method-pill.active.method-post {
	background: var(--info);
	color: var(--info-foreground);
}
.method-pill.active.method-get {
	background: var(--success);
	color: var(--success-foreground);
}
.method-pill.active.method-delete {
	background: var(--destructive);
	color: var(--destructive-foreground);
}
.method-pill.active:is(.method-put, .method-patch) {
	background: var(--warning);
	color: var(--warning-foreground);
}

/* ── Dialogs: Planned (F-257), search palette (F-192, phase B), image lightbox (F-101, phase B) ── */
dialog {
	color: var(--popover-foreground);
}
dialog::backdrop {
	background: var(--d-backdrop, rgb(0 0 0 / 50%));
}
.planned-dialog {
	width: min(28rem, calc(100vw - 2rem));
	padding: 1.5rem;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-xl);
	background: var(--popover);
	color: var(--popover-foreground);
	box-shadow: var(--shadow-lg);
}
.planned-dialog[open],
#search-dialog[open] {
	animation: docs-dialog-in 150ms ease-out;
}
@keyframes docs-dialog-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.planned-dialog h2 {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
}
.planned-dialog p {
	margin: 0 0 1rem;
	color: var(--muted-foreground);
	font-size: 0.9375rem;
}
.planned-dialog ul {
	margin: 0 0 1.25rem;
	padding-left: 1.25rem;
}
.planned-dialog a {
	color: var(--primary);
}
.dialog-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	height: 2.25rem;
	padding: 0 0.875rem;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-lg);
	background: var(--background);
	color: var(--foreground);
	font-size: 0.875rem;
	cursor: pointer;
}
.dialog-close:hover {
	background: var(--d-hover-bg);
}
#search-dialog {
	width: min(40rem, calc(100vw - 2rem));
	max-width: none;
	max-height: min(36rem, calc(100dvh - 2rem));
	margin: 3.375rem auto auto;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-xl);
	background: var(--popover);
	color: var(--popover-foreground);
	box-shadow: var(--shadow-2xl);
}
#search-dialog[open] {
	display: flex;
	flex-direction: column;
}
#search-input {
	width: 100%;
	height: 3rem;
	padding: 0 1rem;
	border: 0;
	border-bottom: 1px solid var(--border);
	background: transparent;
	font-size: 1rem;
}
#search-input:focus-visible {
	outline-offset: -2px;
}
#search-results {
	flex: 1;
	padding: 0.5rem;
	overflow-y: auto;
}
#search-results [role='option'] {
	display: block;
	padding: 0.5rem 0.75rem;
	border-radius: var(--d-radius-lg);
	color: inherit;
	text-decoration: none;
}
#search-results [role='option']:hover,
#search-results [role='option'][aria-selected='true'] {
	background: var(--d-hover-bg);
}
#search-results mark {
	border-radius: 2px;
	background: var(--d-mark-bg);
	color: var(--foreground);
}
.search-count {
	margin: 0;
	padding: 0.5rem 1rem;
	border-top: 1px solid var(--border);
	color: var(--muted-foreground);
	font-size: 0.75rem;
}
dialog[aria-label='Image'] {
	max-width: calc(100vw - 2rem);
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 0;
	background: transparent;
}
dialog[aria-label='Image'] img {
	display: block;
	max-width: 100%;
	max-height: calc(100dvh - 2rem);
	cursor: zoom-out;
}
@media (max-width: 39.99rem) {
	#search-dialog {
		margin-top: 1rem;
	}
}

/* ── /skills catalog filter: client-built by skills-filter.ts (Task 4.10; Appendix B B.5.2) ── */
.skills-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 1rem 0 1.5rem;
}
.skills-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}
.skills-filter-chip {
	height: 2rem;
	padding: 0 0.75rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--background);
	color: var(--muted-foreground);
	font-size: 0.8125rem;
	font-weight: 500;
	cursor: pointer;
}
.skills-filter-chip:hover {
	background: var(--d-hover-bg);
	color: var(--foreground);
}
.skills-filter-chip[aria-pressed='true'] {
	border-color: var(--primary);
	background: var(--d-active-bg);
	color: var(--primary);
}
.skills-filter-text {
	flex: 1 1 14rem;
	min-width: 0;
	height: 2.25rem;
	padding: 0 0.75rem;
	border: 1px solid var(--input);
	border-radius: var(--d-radius-lg);
	background: var(--background);
	color: var(--foreground);
	font: inherit;
	font-size: 0.875rem;
}
.skills-filter-text::placeholder {
	color: var(--muted-foreground);
}
/* skills-filter.ts renders the count line .sr-only (announced, not shown); this rule only applies if that class is dropped. */
.skills-filter-status:not(.sr-only) {
	flex-basis: 100%;
	margin: 0;
	color: var(--muted-foreground);
	font-size: 0.8125rem;
}

/* ── A0 placeholder for widget tags until Task 9.1 (components-html.ts) ─── */
.widget-pending {
	margin: 1.25rem 0;
	padding: 1rem;
	border: 1px dashed var(--border);
	border-radius: var(--d-radius);
	color: var(--muted-foreground);
	font-family: var(--d-font-mono);
	font-size: 0.8125rem;
	white-space: pre-wrap;
}
.widget-pending pre {
	margin: 0;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* ── A1 overview widgets (F-172 to F-181) and ApiChooser (F-184 to F-188) ── */
.mcp-install {
	margin: 1.5rem 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-lg);
}
.tile-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-bottom: 1px solid var(--border);
}
.tile {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
	min-height: 4.6875rem;
	padding: 0.75rem 1rem;
	border: 0;
	border-top: 2px solid transparent;
	background: none;
	color: var(--foreground);
	text-align: left;
	cursor: pointer;
}
.tile:hover {
	background: var(--d-hover-bg);
}
.tile[aria-selected='true'] {
	border-top-color: var(--primary);
	background: var(--d-tile-selected-bg);
}
.tile-panel {
	padding: 1.25rem;
}
.onboard-prompt {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1.5rem 0;
	padding: 0.75rem 1rem;
	border-radius: var(--d-radius);
	background: var(--muted);
}
.prose .onboard-prompt code,
.onboard-prompt code {
	flex: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--foreground);
	font-size: 0.875rem;
	overflow-wrap: anywhere;
}
.copy-chip {
	flex: none;
	height: 2rem;
	padding: 0 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-lg);
	background: var(--background);
	font-size: 0.8125rem;
	cursor: pointer;
}
.example-panels {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 1.5rem 0;
}
.example-list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.example-list [role='tab'] {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.125rem;
	padding: 0.625rem 0.75rem;
	border: 0;
	border-radius: var(--d-radius-lg);
	background: none;
	color: var(--foreground);
	text-align: left;
	cursor: pointer;
}
.example-list [role='tab']:hover {
	background: var(--d-hover-bg);
}
.example-list [role='tab'][aria-selected='true'] {
	background: var(--muted);
}
.panel {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-lg);
}
.panel-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.75rem;
	background: var(--muted);
	font-family: var(--d-font-mono);
	font-size: 0.8125rem;
}
.panel pre {
	max-height: 21.25rem;
	margin: 0;
	overflow: auto;
	scrollbar-color: var(--border) transparent;
}
.api-chooser {
	margin: 1.5rem 0;
	padding: 1.5rem;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-lg);
	background: var(--card);
}
@media (min-width: 40rem) {
	.tile-row {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media (min-width: 64rem) {
	.example-panels {
		flex-direction: row;
	}
	.example-list {
		flex: 0 0 16.375rem;
	}
}

/*
 * Code blocks, the copy toolbar and the highlight.js palettes (main §6.7; Appendix C F-010, F-019, F-083 to F-091).
 * The palettes are fixed Primer GitHub light (comment darkened for 4.5:1 on --d-code-bg) / GitHub dark
 * hex values, not theme-derived: the live preset primary is achromatic, so a derived palette would be
 * grey (Appendix C F-010). fallback-contrast.test.ts holds every token colour to 4.5:1.
 */
:root {
	--hljs-keyword: #cf222e;
	--hljs-title: #8250df;
	--hljs-attr: #0550ae;
	--hljs-string: #0a3069;
	--hljs-built-in: #953800;
	--hljs-comment: #59636e;
	--hljs-name: #116329;
	--hljs-bullet: #953800;
	--hljs-addition-fg: #116329;
	--hljs-addition-bg: #f0fff4;
	--hljs-deletion-fg: #82071e;
	--hljs-deletion-bg: #ffeef0;
}
:root.dark {
	--hljs-keyword: #ff7b72;
	--hljs-title: #d2a8ff;
	--hljs-attr: #79c0ff;
	--hljs-string: #a5d6ff;
	--hljs-built-in: #ffa657;
	--hljs-comment: #8b949e;
	--hljs-name: #7ee787;
	--hljs-bullet: #f2cc60;
	--hljs-addition-fg: #aff5b4;
	--hljs-addition-bg: #033a16;
	--hljs-deletion-fg: #ffdcd7;
	--hljs-deletion-bg: #67060c;
}
@media (prefers-color-scheme: dark) {
	:root:not(.light) {
		--hljs-keyword: #ff7b72;
		--hljs-title: #d2a8ff;
		--hljs-attr: #79c0ff;
		--hljs-string: #a5d6ff;
		--hljs-built-in: #ffa657;
		--hljs-comment: #8b949e;
		--hljs-name: #7ee787;
		--hljs-bullet: #f2cc60;
		--hljs-addition-fg: #aff5b4;
		--hljs-addition-bg: #033a16;
		--hljs-deletion-fg: #ffdcd7;
		--hljs-deletion-bg: #67060c;
	}
}

/* ── Block and toolbar ──────────────────────────────────────────────────── */
.code-block {
	position: relative;
	margin: 1.25rem 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--d-radius);
	background: var(--d-code-bg);
}
.code-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	min-height: 2.5rem;
	padding: 0 0.375rem 0 1rem;
	border-bottom: 1px solid var(--border);
}
.code-block > .code-toolbar:not(:has(.code-title)) {
	position: absolute;
	top: 0.375rem;
	right: 0.375rem;
	z-index: 1;
	min-height: 0;
	padding: 0;
	border: 0;
}
.code-block > .code-toolbar:not(:has(.code-title)) + pre {
	padding-right: 3rem;
}
.code-title {
	margin-right: auto;
	color: var(--muted-foreground);
	font-family: var(--d-font-mono);
	font-size: 0.8125rem;
}
.copy-code,
.copy-url {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: var(--d-radius-sm);
	background: transparent;
	color: var(--muted-foreground);
	cursor: pointer;
}
.copy-code:hover,
.copy-url:hover {
	background: var(--d-hover-bg);
	color: var(--foreground);
}
.copy-code[aria-label='Copied'],
.copy-url[aria-label='Copied'] {
	color: var(--success);
}
.code-block pre,
pre.hljs {
	margin: 0;
	padding: 1rem 1.25rem;
	overflow-x: auto;
	background: transparent;
	color: var(--foreground);
	font-size: 0.875rem;
	line-height: 1.5rem;
	tab-size: 2;
}
.code-block pre code {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-family: var(--d-font-mono);
	white-space: pre;
}
.code-block.wrap pre code {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.code-block .line-highlight {
	display: inline-block;
	min-width: 100%;
	background: var(--d-active-bg);
	box-shadow: inset 2px 0 var(--primary);
}
html:is([data-phase='B'], [data-phase='C']) .code-block[data-expandable]:not([data-expanded='true']) pre {
	position: relative;
	max-height: 20rem;
	overflow: hidden;
}
html:is([data-phase='B'], [data-phase='C']) .code-block[data-expandable]:not([data-expanded='true']) pre::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 4rem;
	background: linear-gradient(to bottom, transparent, var(--d-code-bg));
	pointer-events: none;
}
.code-expand {
	display: block;
	width: 100%;
	padding: 0.5rem;
	border: 0;
	border-top: 1px solid var(--border);
	background: var(--d-code-bg);
	color: var(--muted-foreground);
	font-size: 0.8125rem;
	cursor: pointer;
}
.code-expand:hover {
	color: var(--foreground);
}

/* ── highlight.js token classes (github / github-dark) ──────────────────── */
.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
	color: var(--hljs-keyword);
}
.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
	color: var(--hljs-title);
}
.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-variable,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id,
.hljs-section {
	color: var(--hljs-attr);
}
.hljs-regexp,
.hljs-string,
.hljs-meta .hljs-string {
	color: var(--hljs-string);
}
.hljs-built_in,
.hljs-symbol {
	color: var(--hljs-built-in);
}
.hljs-comment,
.hljs-code,
.hljs-formula {
	color: var(--hljs-comment);
}
.hljs-name,
.hljs-quote,
.hljs-selector-tag,
.hljs-selector-pseudo {
	color: var(--hljs-name);
}
.hljs-subst {
	color: inherit;
}
.hljs-section,
.hljs-strong {
	font-weight: 600;
}
.hljs-bullet {
	color: var(--hljs-bullet);
}
.hljs-emphasis {
	font-style: italic;
}
.hljs-addition {
	background: var(--hljs-addition-bg);
	color: var(--hljs-addition-fg);
}
.hljs-deletion {
	background: var(--hljs-deletion-bg);
	color: var(--hljs-deletion-fg);
}

/* API operation and MCP tool pages (main §6.8, §6.9; Appendix C F-116 to F-143, F-121 in phase C). */
.endpoint-bar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	margin: 0 0 1.5rem;
	padding: 0.375rem;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-lg);
	background: var(--card);
}
.endpoint-bar .method-pill {
	padding-inline: 0.5rem;
	border-radius: var(--d-radius);
	font-size: 0.8125rem;
	line-height: 1.75rem;
}
.endpoint-path {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	color: var(--foreground);
	font-family: var(--d-font-mono);
	font-size: 0.875rem;
	white-space: nowrap;
	scrollbar-width: none;
}
.path-seg {
	color: var(--foreground);
}
.path-param {
	color: var(--primary);
}
.path-slash {
	color: var(--muted-foreground);
}
.api-version-line {
	margin: -0.75rem 0 1.5rem;
	color: var(--muted-foreground);
	font-size: 0.8125rem;
}
.mcp-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0 0 1rem;
}
.api-section {
	margin-top: 2rem;
}
.api-section-title,
.api-section > :is(h2, h3, h4):first-child {
	margin: 0;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
	font-size: 1rem;
	font-weight: 600;
}
.example-label {
	margin: 0.5rem 0 0;
	color: var(--muted-foreground);
	font-size: 0.75rem;
}
/* Section prose, "No authorization" (F-128) and the error code line of an error response. */
.api-section-desc,
.api-no-auth,
.api-error-code {
	margin: 0.75rem 0 0;
	color: var(--muted-foreground);
	font-size: 0.875rem;
	line-height: 1.6;
}
.api-error-code {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
}
/* Response status tabs in the main column (renderApiOperation, Task 3.7); the rail samples are .response-group. */
.response-tabs {
	margin: 1rem 0 0;
}
/* Request/response body content type (F-132): one type is a right-aligned badge, several a row. */
.content-type-badge {
	float: right;
	padding: 0 0.375rem;
	border-radius: var(--d-radius-sm);
	background: var(--muted);
	color: var(--muted-foreground);
	font-family: var(--d-font-mono);
	font-size: 0.75rem;
}
.content-type-list {
	display: flex;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ── MCP tool page (main §6.9): JSON-RPC method and tool name after the URL, then the tool prose ── */
.rpc-method,
.rpc-tool {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	font-family: var(--d-font-mono);
	font-size: 0.8125rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.rpc-method {
	flex-shrink: 0;
	color: var(--muted-foreground);
}
.rpc-tool {
	color: var(--primary);
	font-weight: 600;
}
.api-page .endpoint-bar :is(.rpc-method, .rpc-tool) > code {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: inherit;
}
.mcp-page > .mcp-prose {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

/* ── Field rows (ParamField, ResponseField, schema rows; F-134 to F-141) ── */
.field {
	position: relative;
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--border);
}
/* Hover anchor in front of the field name (F-134); aria-hidden and out of the tab order in the markup. */
.field-anchor {
	position: absolute;
	left: -1.5rem;
	color: var(--muted-foreground);
	opacity: 0;
}
.field:hover > .field-anchor {
	opacity: 1;
}
.field-name {
	margin-right: 0.5rem;
	color: var(--primary);
	font-family: var(--d-font-mono);
	font-size: 0.875rem;
	font-weight: 600;
}
.field > .pill {
	margin-right: 0.375rem;
}
.field-desc {
	margin-top: 0.5rem;
	color: var(--muted-foreground);
	font-size: 0.875rem;
	line-height: 1.6;
}
.field-desc > :first-child {
	margin-top: 0;
}
.field-desc > :last-child {
	margin-bottom: 0;
}
/* Titled row lists ("Query parameters", "Response headers"; renderParamRows heading). */
.field-list + .field-list {
	margin-top: 1rem;
}
.field-list-title {
	margin: 1.5rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
}
/* Per-row details inside .field-desc: enum values, default, constraints; an MCP "required for …" note. */
.field-enum,
.field-default,
.field-constraints {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
}
.field-constraints {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}
.field-required-note {
	margin: 0.375rem 0 0;
	color: var(--destructive);
	font-size: 0.8125rem;
}
/* A body with no rows shows its type; a oneOf variant with no rows shows its title. */
.field-type,
.field-variant-type {
	margin: 0.75rem 0 0;
	color: var(--muted-foreground);
	font-size: 0.875rem;
}
.expandable {
	margin-top: 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--d-radius);
}
.expandable > summary {
	padding: 0.375rem 0.75rem;
	color: var(--muted-foreground);
	font-size: 0.8125rem;
	cursor: pointer;
}
.expandable > summary:hover {
	color: var(--foreground);
}
.expandable[open] > summary {
	border-bottom: 1px solid var(--border);
}
/* Child rows sit in div.expandable-body (renderParamRow, Task 3.4), not directly under the details. */
.expandable-body > .field {
	padding-inline: 0.875rem;
}
.expandable-body > .field:last-child {
	border-bottom: 0;
}

/* ── Right rail samples (F-122 to F-127) ────────────────────────────────── */
.api-rail .code-group {
	margin: 0 0 1.5rem;
}
/* The rail's one block (request group, then response group); min-width 0 lets long sample lines scroll inside it. */
.api-samples {
	min-width: 0;
}
.api-samples > :last-child {
	margin-bottom: 0;
}
.api-rail pre {
	font-size: 0.75rem;
	line-height: 1.35rem;
}
@media (max-width: 79.99rem) {
	.api-rail pre {
		max-height: 30rem;
		overflow: auto;
	}
}

/* ── Try it (phase C, F-121) ────────────────────────────────────────────── */
.try-it {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 0.375rem;
	height: 2.25rem;
	padding: 0 0.875rem;
	border: 0;
	border-radius: var(--d-radius-lg);
	background: var(--info);
	color: var(--info-foreground);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}
.api-page[data-method='get'] .try-it {
	background: var(--success);
	color: var(--success-foreground);
}
.api-page[data-method='delete'] .try-it {
	background: var(--destructive);
	color: var(--destructive-foreground);
}
.api-page:is([data-method='put'], [data-method='patch']) .try-it {
	background: var(--warning);
	color: var(--warning-foreground);
}

/* ── Response status colours (Appendix C §A: 2xx --success, 4xx --warning, 5xx --destructive) ── */
/* A dot before the status label; the label keeps its text colour, so contrast is unchanged. The
   phase-C playground status line (F-166) reuses these three tokens in Task 11.6. */
[role='tab'][data-status]::before {
	content: '';
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-right: 0.375rem;
	border-radius: 50%;
	background: var(--muted-foreground);
	vertical-align: 0.0625rem;
}
[role='tab'][data-status^='2']::before {
	background: var(--success);
}
[role='tab'][data-status^='4']::before {
	background: var(--warning);
}
[role='tab'][data-status^='5']::before {
	background: var(--destructive);
}

/* ── Request-group language dropdown (Appendix C F-123; built by lang-select.ts) ── */
.sample-group[data-lang-menu='true'] {
	overflow: visible;
}
.sample-group[data-lang-menu='true'] > .tab-list {
	display: none;
}
.sample-group[data-lang-menu='true'] .code-block {
	background: transparent;
}
.lang-select {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 2.5rem;
	padding: 0 0.375rem 0 1rem;
	border-bottom: 1px solid var(--border);
}
.lang-select-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	height: 1.75rem;
	padding: 0 0.5rem;
	border: 0;
	border-radius: var(--d-radius-sm);
	background: none;
	color: var(--muted-foreground);
	font-size: 0.8125rem;
	font-weight: 500;
	cursor: pointer;
}
.lang-select-trigger:hover,
.lang-select-trigger[aria-expanded='true'] {
	background: var(--d-hover-bg);
	color: var(--foreground);
}
.lang-select-trigger[aria-expanded='true'] .chevron {
	transform: rotate(180deg);
}
.lang-menu {
	position: absolute;
	top: calc(100% + 0.25rem);
	right: 0.375rem;
	z-index: 20;
	min-width: 12rem;
	margin: 0;
	padding: 0.25rem;
	list-style: none;
	border: 1px solid var(--border);
	border-radius: var(--d-radius-lg);
	background: var(--popover);
	color: var(--popover-foreground);
	box-shadow: var(--shadow-md);
}
.lang-menu [role='menuitemradio'] {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	padding: 0.375rem 0.5rem;
	border: 0;
	border-radius: var(--d-radius);
	background: none;
	color: inherit;
	font-size: 0.8125rem;
	text-align: left;
	cursor: pointer;
}
.lang-menu [role='menuitemradio']:hover,
.lang-menu [role='menuitemradio']:focus-visible {
	background: var(--d-hover-bg);
}
.lang-menu [role='menuitemradio'] .lang-check {
	visibility: hidden;
}
.lang-menu [aria-checked='true'] {
	color: var(--primary);
	font-weight: 500;
}
.lang-menu [aria-checked='true'] .lang-check {
	visibility: visible;
}

/* Print (Appendix C F-237): content only, full code, link targets, black on white. */
@media print {
	:root {
		--background: #fff !important;
		--foreground: #000 !important;
		--card: #fff !important;
	}
	#navbar,
	#sidebar,
	#toc,
	footer[data-site-foot],
	.pn-curtain,
	dialog,
	.skip-link,
	.code-toolbar,
	.copy-code,
	.copy-url,
	.copy-page,
	.heading-anchor,
	.pager,
	.feedback,
	.try-it,
	.ask-bar,
	#chat-assistant-sheet {
		display: none !important;
	}
	body {
		padding-top: 0;
	}
	.docs-shell {
		display: block;
		max-width: none;
		padding: 0;
	}
	#content-area,
	.api-rail {
		max-width: none;
		padding: 0;
	}
	.code-block pre,
	.api-rail pre,
	.panel pre {
		max-height: none !important;
		overflow: visible;
		white-space: pre-wrap;
	}
	.tab-panel[hidden] {
		display: block !important;
	}
	.prose a[href^='http']::after {
		content: ' (' attr(href) ')';
		font-size: 0.8em;
	}
}

/*
 * The site bar on the docs (shared web layer Task 7). The bar and footer themselves are core/core-design/site's
 * (BAR_CSS, FOOTER_CSS, appended by build.sh as src/render/site-css.ts SITE_CSS); this sheet holds what is the docs'
 * own: the docs controls in the bar's right slot (search, assistant, theme; src/render/layout-header.ts). The bar's
 * palette on the docs' appearance is derived from BAR_CSS in site-css.ts. Sizes on Apple's scale with their tracking
 * (12 / 14 px), weights 400 / 600, colours only from the bar's tokens (--pn-*).
 */

/* ── The search box (src/client/search.ts) ───────────────────────────────── */
.pn .ds {
	position: relative;
	display: flex;
	align-items: center;
}
.pn .ds-field {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 200px;
	height: 28px;
	padding: 0 8px;
	border-radius: 8px;
	background: var(--pn-menu);
	background: color-mix(in srgb, var(--pn-ink) 9%, transparent);
	color: var(--pn-ink2);
	cursor: text;
}
.pn .ds-field:focus-within {
	outline: 2px solid var(--pn-link);
	outline-offset: 1px;
}
.pn .ds .icon {
	flex: none;
	width: 14px;
	height: 14px;
}
.pn .ds input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	background: none;
	color: var(--pn-ink);
	font-size: 12px;
	letter-spacing: -0.01em;
	/* the field draws the ring (:focus-within); transparent, so forced colours still show the input's own */
	outline: 2px solid transparent;
	-webkit-appearance: none;
	appearance: none;
}
.pn .ds input::placeholder {
	color: var(--pn-ink2);
	opacity: 1;
}
.pn .ds input::-webkit-search-cancel-button {
	display: none;
}
.pn .ds .kbd-mac,
.pn .ds .kbd-other {
	margin-left: auto;
	font-family: inherit;
	font-size: 12px;
	letter-spacing: -0.01em;
	color: var(--pn-ink2);
}
/* before the client keeps the one label that fits the platform (placeholder-dialog.ts pickShortcutLabels) */
.pn .ds .kbd-mac + .kbd-other {
	display: none;
}
.pn .ds-open {
	display: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	color: var(--pn-ink2);
}
.pn .ds-results {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 3;
	width: min(440px, calc(100vw - 24px));
	max-height: min(60vh, 480px);
	overflow-y: auto;
	padding: 6px;
	border-radius: var(--pn-r);
	background: var(--pn-menu);
	background: color-mix(in srgb, var(--pn-menu) 94%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	box-shadow: var(--shadow-xl);
}
.pn .ds-results[hidden] {
	display: none;
}
.pn .ds-results a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 10px;
	border-radius: calc(var(--pn-r) - 6px);
	color: var(--pn-ink);
}
.pn .ds-results a:hover,
.pn .ds-results a[aria-selected='true'] {
	background: var(--pn-fill);
	color: var(--pn-on);
}
.pn .ds-title {
	font-size: 14px;
	line-height: 1.2858;
	letter-spacing: -0.016em;
}
.pn .ds-crumbs {
	font-size: 12px;
	letter-spacing: -0.01em;
	color: var(--pn-ink2);
}
.pn .ds-results a:hover .ds-crumbs,
.pn .ds-results a[aria-selected='true'] .ds-crumbs {
	color: inherit;
	opacity: 0.8;
}
.pn .ds-none {
	padding: 8px 10px;
	font-size: 14px;
	letter-spacing: -0.016em;
	color: var(--pn-ink2);
}

/* ── The assistant and theme buttons ────────────────────────────────────── */
.pn .assistant-button,
.pn #theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	color: var(--pn-ink2);
}
.pn .assistant-button:hover,
.pn #theme-toggle:hover,
.pn .ds-open:hover {
	background: var(--pn-menu);
	background: color-mix(in srgb, var(--pn-ink) 9%, transparent);
	color: var(--pn-ink);
}
.pn .assistant-button .icon,
.pn #theme-toggle .icon {
	width: 16px;
	height: 16px;
}
.pn .theme-menu {
	position: relative;
}

@media (max-width: 1068px) {
	.pn .ds-field {
		width: 160px;
	}
	.pn .ds .kbd-mac,
	.pn .ds .kbd-other {
		display: none;
	}
}
/* Below 735px the field is behind an icon; opened, it covers the bar (search.ts toggles .ds-on). */
@media (max-width: 734px) {
	.pn .ds-field,
	.pn .assistant-button {
		display: none;
	}
	.pn .ds-open {
		display: inline-flex;
	}
	.pn .ds.ds-on {
		position: fixed;
		inset: 0 0 auto;
		z-index: 2;
		height: var(--pn-h);
		padding: 0 12px;
		background: var(--pn-mat-solid);
	}
	.pn .ds.ds-on .ds-field {
		display: flex;
		flex: 1;
		width: auto;
	}
	.pn .ds.ds-on .ds-open {
		display: none;
	}
	.pn .ds.ds-on .ds-results {
		right: 12px;
		width: calc(100vw - 24px);
	}
}
/*
 * At 480px and below the bar has room for its word, the waiting-list pill and its menu only (core/core-design/site/bar.ts
 * folds Sign in into the menu there), so the search icon and the theme menu sit at the right end of the docs row under
 * it (#navbar is fixed below 64rem, layout.css). The bar's backdrop-filter makes .pn the box they are fixed to: it is
 * the full-width bar at the top, so the offsets read as the viewport's. 14px centres the 28px icons in the 56px row.
 */
@media (max-width: 480px) {
	.pn .ds:not(.ds-on),
	.pn .theme-menu {
		position: fixed;
		top: calc(var(--pn-h) + 14px);
	}
	.pn .theme-menu {
		right: 16px;
	}
	.pn .ds:not(.ds-on) {
		right: 52px;
	}
	#navbar > .mobile-bar {
		padding-right: 88px;
	}
}

:root{--pn-h:44px}
@media (max-width:833px){:root{--pn-h:48px}}
.pn,.pn-curtain{--pn-page:var(--background,#000);--pn-ink:var(--foreground,#f5f5f7);--pn-ink2:var(--muted-foreground,#86868b);--pn-link:var(--ring,#2997ff);--pn-fill:var(--primary,#0071e3);--pn-on:var(--primary-foreground,#fff);--pn-fill-hover:var(--primary-hover,#0076df);--pn-fill-active:var(--primary-active,#006edb);--pn-menu:var(--popover,#161617);--pn-sep:var(--border,#38383a);--pn-mat:color-mix(in srgb,var(--card,#161617) 80%,transparent);--pn-mat-solid:color-mix(in srgb,var(--card,#161617) 88%,transparent);--pn-ease:var(--ease-chrome,cubic-bezier(.4,0,.6,1));--pn-r:var(--radius,14px);--pn-font:var(--font-sans,-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Helvetica,Arial,sans-serif)}
:root[data-appearance="light"] .pn:not(.pn-dark),:root[data-appearance="light"] .pn-curtain{--pn-page:var(--background,#f5f5f7);--pn-ink:var(--foreground,#1d1d1f);--pn-ink2:var(--muted-foreground,#6e6e73);--pn-link:var(--ring,#0066cc);--pn-menu:var(--popover,#fff);--pn-sep:var(--border,#d2d2d7);--pn-mat:rgba(250,250,252,.8);--pn-mat-solid:rgba(250,250,252,.88)}
.pn.pn-dark{--pn-page:#000;--pn-ink:#f5f5f7;--pn-ink2:#86868b;--pn-link:#2997ff;--pn-fill:#0071e3;--pn-on:#fff;--pn-fill-hover:#0076df;--pn-fill-active:#006edb;--pn-menu:#161617;--pn-sep:#38383a;--pn-mat:rgba(22,22,23,.8);--pn-mat-solid:rgba(22,22,23,.88)}
.pn,.pn *{box-sizing:border-box;margin:0;padding:0;font-family:var(--pn-font);letter-spacing:-.01em;line-height:normal;font-synthesis:none;-webkit-font-smoothing:antialiased}
.pn{position:fixed;inset:0 0 auto 0;z-index:9000;height:var(--pn-h);color:var(--pn-ink);background:var(--pn-mat);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);transition:background .3s var(--pn-ease)}
.pn a{text-decoration:none}
.pn button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.pn :focus-visible{outline:2px solid var(--pn-link);outline-offset:3px;border-radius:6px}
.pn .pn-bar{position:relative;width:87.5%;max-width:1260px;height:var(--pn-h);margin-inline:auto;display:flex;align-items:center;gap:4px}
.pn .pn-word{font-size:14px;font-weight:600;letter-spacing:-.016em;margin-right:20px;white-space:nowrap;color:var(--pn-ink)}
.pn .pn-word span{color:var(--pn-link);font-weight:400;letter-spacing:-.016em;margin:0 1px}
.pn .pn-word b{font-weight:600;letter-spacing:-.016em;margin-left:6px}
.pn .pn-items{display:flex;align-items:center}
.pn .pn-it{height:var(--pn-h);padding:0 10px;font-size:12px;color:var(--pn-ink2);display:inline-flex;align-items:center;gap:4px;white-space:nowrap;transition:color .3s var(--pn-ease)}
.pn .pn-it:hover,.pn .pn-it[aria-expanded="true"],.pn .pn-it[aria-current]{color:var(--pn-ink)}
.pn .pn-chev{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2.2;transition:transform .3s var(--pn-ease)}
.pn .pn-it[aria-expanded="true"] .pn-chev{transform:rotate(180deg)}
.pn .pn-right{margin-left:auto;display:flex;align-items:center;gap:16px;position:relative}
.pn .pn-link{font-size:12px;color:var(--pn-ink2);white-space:nowrap;transition:color .3s var(--pn-ease)}
.pn .pn-link:hover{color:var(--pn-ink)}
.pn .pn-pill{font-size:12px;font-weight:400;letter-spacing:-.01em;color:var(--pn-on);background:var(--pn-fill);border-radius:980px;padding:4px 11px;white-space:nowrap;transition:background .3s var(--pn-ease)}
.pn .pn-pill:hover{background:var(--pn-fill-hover)}
.pn .pn-pill:active{background:var(--pn-fill-active);transition-duration:.1s}
.pn .pn-av{width:24px;height:24px;border-radius:99px;display:grid;place-items:center;font-size:12px;font-weight:600;letter-spacing:-.01em;color:var(--pn-on);background:var(--pn-fill)}
.pn .pn-in,.pn[data-si] .pn-out{display:none}
.pn[data-si] .pn-pill.pn-in{display:inline-block}
.pn[data-si] .pn-av.pn-in{display:grid}
.pn .pn-menu{position:absolute;right:0;top:calc(var(--pn-h) - 6px);min-width:220px;padding:6px;border-radius:var(--pn-r);background:color-mix(in srgb,var(--pn-menu) 92%,transparent);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:var(--shadow-xl,0 24px 60px rgba(0,0,0,.45),0 4px 16px rgba(0,0,0,.25));transform-origin:top right;opacity:0;visibility:hidden;transform:scale(.96);transition:opacity .24s var(--pn-ease),transform .24s var(--pn-ease),visibility 0s .24s}
.pn .pn-menu.pn-open{opacity:1;visibility:visible;transform:none;transition:opacity .24s var(--pn-ease),transform .24s var(--pn-ease)}
.pn .pn-menu a,.pn .pn-menu button{display:flex;align-items:center;width:100%;height:32px;padding:0 10px;border-radius:calc(var(--pn-r) - 6px);color:var(--pn-ink);font-size:14px;letter-spacing:-.016em;text-align:left}
.pn .pn-menu a:hover,.pn .pn-menu button:hover{background:var(--pn-fill);color:var(--pn-on)}
.pn .pn-menu hr{border:0;height:1px;background:var(--pn-sep);margin:6px -6px}
.pn .pn-fly{position:absolute;left:0;right:0;top:var(--pn-h);background:color-mix(in srgb,var(--pn-menu) 92%,transparent);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);overflow:hidden;max-height:0;visibility:hidden;transition:max-height .4s var(--pn-ease),visibility 0s .4s}
.pn .pn-fly.pn-open{max-height:calc(100vh - var(--pn-h));overflow-y:auto;visibility:visible;transition:max-height .4s var(--pn-ease)}
.pn .pn-cols{width:87.5%;max-width:1260px;margin-inline:auto;padding:32px 0 56px;display:grid;grid-template-columns:repeat(3,260px);gap:24px 40px;opacity:0;transform:translateY(-8px);transition:opacity .32s var(--pn-ease) .08s,transform .32s var(--pn-ease) .08s}
.pn .pn-open .pn-cols{opacity:1;transform:none}
.pn .pn-h{margin:0 0 12px;font-size:12px;color:var(--pn-ink2)}
.pn .pn-fly a{display:block;color:var(--pn-ink);font-size:12px;font-weight:600;line-height:2;transition:color .3s var(--pn-ease)}
.pn .pn-fly a:hover{color:var(--pn-link)}
.pn .pn-lead a{font-size:24px;line-height:1.1667;letter-spacing:.009em;margin-bottom:10px}
.pn .pn-burger{display:none;width:32px;height:var(--pn-h);margin-left:8px;color:var(--pn-ink)}
.pn .pn-burger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.pn .pn-all .pn-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
.pn-curtain{position:fixed;inset:var(--pn-h) 0 0 0;z-index:8999;background:rgba(0,0,0,.48);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);opacity:0;pointer-events:none;transition:opacity .32s var(--pn-ease)}
:root[data-appearance="light"] .pn-curtain{background:rgba(232,232,237,.48)}
.pn-curtain.pn-open{opacity:1;pointer-events:auto}
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){.pn{background:var(--pn-mat-solid)}}
@media (max-width:1023px){.pn .pn-items{display:none}.pn .pn-burger{display:block}.pn .pn-right{gap:12px}.pn .pn-cols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:734px){.pn .pn-word{margin-right:8px}}
@media (max-width:480px){.pn .pn-cols,.pn .pn-all .pn-cols{grid-template-columns:1fr}.pn .pn-right{gap:10px}.pn .pn-bar>.pn-right>.pn-link.pn-out{display:none}}
.pn .pn-all a.pn-out{display:none}
@media (max-width:480px){.pn:not([data-si]) .pn-all a.pn-out:not(.pn-cta){display:block}}
@media (max-width:374px){.pn-bar:has(.pn-word b)>.pn-right>.pn-pill{display:none}.pn:not([data-si]):has(.pn-word b) .pn-all a.pn-cta{display:block}}
@media (prefers-reduced-motion:reduce){.pn,.pn *,.pn-curtain{transition:none!important;animation:none!important}}
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.pn,.pn .pn-fly,.pn .pn-menu,.pn-curtain{-webkit-backdrop-filter:none;backdrop-filter:none}.pn{background:var(--pn-page)}.pn .pn-fly,.pn .pn-menu{background:var(--pn-menu)}}
:root:not(.light) .pn:not(.pn-dark){--pn-mat:rgba(22,22,23,.8);--pn-mat-solid:rgba(22,22,23,.88)}
:root.light .pn:not(.pn-dark),:root.light .pn-curtain{--pn-page:var(--background,#f5f5f7);--pn-ink:var(--foreground,#1d1d1f);--pn-ink2:var(--muted-foreground,#6e6e73);--pn-link:var(--ring,#0066cc);--pn-menu:var(--popover,#fff);--pn-sep:var(--border,#d2d2d7);--pn-mat:rgba(250,250,252,.8);--pn-mat-solid:rgba(250,250,252,.88)}:root.light .pn-curtain{background:rgba(232,232,237,.48)}
@media (prefers-color-scheme:light){:root:not(.dark) .pn:not(.pn-dark),:root:not(.dark) .pn-curtain{--pn-page:var(--background,#f5f5f7);--pn-ink:var(--foreground,#1d1d1f);--pn-ink2:var(--muted-foreground,#6e6e73);--pn-link:var(--ring,#0066cc);--pn-menu:var(--popover,#fff);--pn-sep:var(--border,#d2d2d7);--pn-mat:rgba(250,250,252,.8);--pn-mat-solid:rgba(250,250,252,.88)}:root:not(.dark) .pn-curtain{background:rgba(232,232,237,.48)}}
footer.ft[data-site-foot]{display:block;margin:0;padding:0;border:0;background:#f5f5f7;color:#6e6e73;font-family:var(--font-sans,-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Helvetica,Arial,sans-serif);font-size:12px;line-height:1.3334;letter-spacing:-.01em;-webkit-font-smoothing:antialiased}
.ft .ft-in{width:87.5%;max-width:1260px;margin-inline:auto;padding:22px 0 28px}
.ft .ft-note{margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid #d2d2d7}
.ft .ft-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 24px}
.ft h2{margin:0 0 8px;font-size:12px;line-height:1.3334;font-weight:600;letter-spacing:-.01em;color:#1d1d1f}
.ft ul{list-style:none;margin:0;padding:0}
.ft li{margin:0 0 7px}
.ft a{color:#6e6e73;text-decoration:none}
.ft a:hover{color:#1d1d1f;text-decoration:underline}
.ft a[aria-current]{color:#1d1d1f}
.ft .ft-base{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:18px;padding-top:14px;border-top:1px solid #d2d2d7}
@media (max-width:734px){.ft .ft-in{max-width:420px}.ft .ft-cols{grid-template-columns:1fr 1fr}}
:root{--d-heading-weight:600;--d-backdrop:rgba(0,0,0,.48)}
:root.light{--d-backdrop:rgba(232,232,237,.48)}
body{font-size:17px;line-height:1.4706;letter-spacing:-.022em;font-synthesis:none}
.prose{font-size:17px;line-height:1.4706;letter-spacing:-.022em}
#page-title{font-size:48px;line-height:1.0835;letter-spacing:-.003em;font-weight:600}
@media (max-width:1068px){#page-title{font-size:40px;line-height:1.1;letter-spacing:0}}
@media (max-width:734px){#page-title{font-size:32px;line-height:1.125;letter-spacing:.004em}}
.prose h2{font-size:24px;line-height:1.1667;letter-spacing:.009em}
.prose h3{font-size:21px;line-height:1.1905;letter-spacing:.011em}
.prose h4{font-size:17px;line-height:1.2354;letter-spacing:-.022em}
.example-label,.pager-label,.search-count{letter-spacing:-.01em}
#assistant-entry,#copy-page-menu [role='menuitem'],#mobile-drawer,#sidebar,#theme-menu-list [role='menuitemradio'],#navbar-kebab-menu [role='menuitem'],.card-desc,.copy-page-main,.deprecation-line,.dialog-close,.eyebrow,.feedback,.field-desc,.field-list-title,.field-type,.field-variant-type,.frame figcaption,.mobile-breadcrumb,.navbar-cta,.navbar-link,.sidebar-group-title,.skills-filter-text,.step-num,.tab,.tab-list [role='tab'],.table-wrap table,.chooser-fallback,#status-table,.toc-item a,.toc-top,.try-it{letter-spacing:-.016em}
.pill-tool,.pill-read{font-size:12px;letter-spacing:-.01em}
.api-version-line,.callout,.copy-chip,.expandable > summary,.field-enum,.field-default,.field-constraints,.field-required-note,.lang-menu [role='menuitemradio'],.lang-select-trigger,.planned-dialog p,.skills-filter-chip,.update-body,.update-description,.update-label{font-size:14px;letter-spacing:-.016em}
.api-section-title,.api-section > :is(h2, h3, h4):first-child{font-size:17px;letter-spacing:-.022em}
.page-description,.planned-dialog h2{font-size:19px;letter-spacing:.012em}
.skip-link,.navbar-cta,.tab,.toc-top,.anchor,.tab-list [role='tab'],.pill,.skills-filter-chip,.lang-select-trigger{font-weight:400}
#theme-menu-list [aria-checked='true'],.lang-menu [aria-checked='true'],.pager-title,.accordion-summary,.method-pill,b,strong{font-weight:600}
