/*
 * `optional`: a page is shown in the font it has when it is first painted, and
 * never reflows when the font arrives later. The fonts are preloaded with each
 * page and cached, so they are there for every page after the first.
 */
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
}

.harness-symbol-icon {
  display: inline-block;
  inline-size: 1rem;
  block-size: 1rem;
  flex: none;
  vertical-align: -0.125em;
  color: inherit;
}

.harness-symbol-icon[data-treatment='detail'] {
  inline-size: 1.5rem;
  block-size: 1.5rem;
}

.harness-symbol-help {
  box-sizing: border-box;
  position: fixed;
  position-anchor: --harness-symbol-help-anchor;
  position-area: bottom span-right;
  position-try-fallbacks:
    flip-block,
    flip-inline,
    flip-block flip-inline;
  margin: 0.5rem;
  inline-size: max-content;
  max-inline-size: min(60ch, calc(100vw - 2rem));
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--color-accent, #d9dde3);
  border-radius: 6px;
  background: var(--color-background, Canvas);
  color: var(--color-text, CanvasText);
  box-shadow: 0 3px 12px #0002;
  font:
    400 0.8125rem/1.5 'Geist',
    system-ui,
    sans-serif;
  text-align: start;
  text-wrap: pretty;
}
.harness-symbol-help strong {
  font-weight: 600;
}
.harness-symbol-help p {
  margin: 0.25rem 0 0;
}

.harness-symbol-help-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.harness-symbol-help dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.375rem 0.75rem;
  margin: 0.625rem 0 0;
}
.harness-symbol-help-part {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: start;
}
.harness-symbol-help dt {
  display: grid;
  grid-template-columns: 1.5rem auto;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.harness-symbol-help dt > svg {
  justify-self: start;
}
.harness-symbol-help-heading > svg {
  translate: 0 -0.125em;
}
.harness-symbol-help dd {
  margin: 0;
  color: var(--color-text-aside, GrayText);
}

/* Tokens follow the original reader's theme; light-dark() replaces per-theme rule copies. */
:root {
  color-scheme: light dark;
  --color-background: light-dark(#fff, #191c21);
  --color-background-secondary: light-dark(#f6f7f9, #22262d);
  --color-accent: light-dark(#e2e5e9, #363d48);
  --color-text: light-dark(#262b33, #e8ebef);
  --color-text-aside: light-dark(#626975, #aab2bf);
  --color-link: light-dark(#245e9c, #91bdf0);
  --code-ui-scheme: light dark;
  --code-ui-bg: var(--color-background);
  --code-ui-fg: var(--color-text);
  --code-ui-muted: var(--color-text-aside);
  --code-ui-border: var(--color-accent);
  --code-ui-soft: var(--color-background-secondary);
  --code-ui-accent: var(--color-link);
  --code-ui-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --code-ui-mono: 'Geist Mono', ui-monospace, monospace;
  --code-ui-shadow: 0 8px 24px rgb(0 0 0 / 0.14);
  --space-related: 0.75rem;
  --space-block: 1.5rem;
  --space-section: 2.5rem;
  --text-prose: 0.9375rem;
  /* 66ch of Geist at the 16px body size, in rem so the measure does not change if the font arrives late. */
  --measure-prose: 43.5rem;
  --text-section: 1.25rem;
  --header-height: 64px;
}
:root[data-theme='light'] {
  color-scheme: light;
  --code-ui-scheme: light;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --code-ui-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
  /* A classic scrollbar's space is kept on short pages too, so the layout stays put between pages. */
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
code,
pre {
  font-family: 'Geist Mono', ui-monospace, monospace;
}
/* Color identifies a link; the underline appears when the reader points at or focuses it. */
a {
  color: var(--color-link);
  text-decoration: none;
}
.content a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
:is(a, button, summary):focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 300;
  padding: 0.5rem 0.75rem;
  background: var(--color-background);
}
.skip-link:focus {
  top: 0.5rem;
}

/* Header: one rhythm across every section. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
  /* The header's edges line up with the page layout's, however wide the window. */
  padding-inline: max(28px, calc((100% - 90rem) / 2 + 28px));
  border-bottom: 1px solid var(--color-accent);
  background: var(--color-background);
  /* Controls are 32px targets around 18px glyphs; at an edge, the glyph is what aligns. */
  --control-inset: 7px;
}
.header-leading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-end: auto;
}
.header-leading > .header-control:first-child {
  margin-inline-start: calc(-1 * var(--control-inset));
}
.header-actions {
  margin-inline-end: calc(-1 * var(--control-inset));
}
.brand,
.brand-logo {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
}
.brand-logo img {
  display: block;
}
.brand-logo-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brand-logo-light {
    display: none;
  }
  :root:not([data-theme='light']) .brand-logo-dark {
    display: inline;
  }
}
:root[data-theme='dark'] .brand-logo-light {
  display: none;
}
:root[data-theme='dark'] .brand-logo-dark {
  display: inline;
}
.site-sections {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 6px;
  color: var(--color-text-aside);
  font-size: 13px;
  text-decoration: none;
}
.section-link:is(:hover, [aria-current]) {
  color: var(--color-text);
}
.section-link[aria-current] {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  text-decoration-color: var(--color-text-aside);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-control {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--color-text-aside);
  background: transparent;
  cursor: pointer;
}
.header-control:hover {
  color: var(--color-text);
  background: var(--color-background-secondary);
}
.theme-menu {
  position-area: block-end span-inline-start;
  position-try-fallbacks: flip-block;
  inset: auto;
  margin: 0.375rem 0;
  padding: 0.25rem;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: 0 4px 16px #00000014;
}
.theme-menu button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.375rem 0.75rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.theme-menu button:hover,
.theme-menu button[aria-pressed='true'] {
  background: var(--color-background-secondary);
}

/*
 * Layout. Wide windows dock one navigation panel beside the content; the scope
 * (Documentation or This page) chooses which, and the header's button collapses
 * it in place. Below 1000px, as in the original, both panels are popovers opened
 * from the header.
 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 48rem);
  justify-content: center;
  gap: 2.5rem;
  max-width: 90rem;
  margin-inline: auto;
  padding: 1.5rem 28px 4rem;
}
.site-menu,
.page-menu {
  position: fixed;
  inset: calc(var(--header-height) + 0.5rem) auto auto 1rem;
  width: min(21rem, calc(100vw - 2rem));
  max-height: calc(100dvh - var(--header-height) - 2rem);
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-accent);
  border-radius: 0.5rem;
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: 0 8px 24px #0002;
  overflow: auto;
  font-size: 0.8125rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) transparent;
}
.navigation-scopes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.25rem 0 0.875rem;
  border-bottom: 1px solid var(--color-accent);
  color: var(--color-text-aside);
  line-height: 1.5;
}
.navigation-scopes button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-link);
  font: inherit;
  cursor: pointer;
}
.navigation-scopes button[aria-pressed='true'] {
  color: var(--color-text);
  font-weight: 500;
  cursor: default;
}
.navigation-scopes button:disabled {
  color: var(--color-text-aside);
  cursor: default;
}
.navigation-scopes button[aria-pressed='false']:hover:not(:disabled) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@media (min-width: 1000px) {
  :root:not([data-navigation-collapsed]) .page-layout {
    grid-template-columns: clamp(15rem, 24vw, 17rem) minmax(0, 48rem);
  }
  /* The docked panel stays beside the content while the reader scrolls. */
  :root:not([data-navigation-collapsed]):not([data-navigation-scope='page']) .site-menu:not(:popover-open),
  :root:not([data-navigation-collapsed])[data-navigation-scope='page'] .page-menu:not(:popover-open) {
    display: block;
    position: sticky;
    inset: auto;
    top: calc(var(--header-height) + 1.5rem);
    grid-area: 1 / 1;
    width: auto;
    max-height: calc(100dvh - var(--header-height) - 3rem);
    padding: 0 0.5rem 0 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  /* Getting started's package-manager choice sits at the foot of its panel, as in the original. */
  :root:not([data-navigation-collapsed]):not([data-navigation-scope='page']) .site-menu:not(:popover-open):has(.reader-settings) {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--header-height) - 3rem);
  }
  :root:not([data-navigation-collapsed]) .content {
    grid-column: 2;
  }
}
/*
 * Getting started on a wide window shows the chapters and this page's outline at
 * once, as the original did (onboarding/style.css .layout and .on-this-page from
 * 1190px): the chapters beside the content, the outline at the right. Narrower,
 * the one docked panel and its scopes return; below 1000px both are popovers.
 */
.outline-heading {
  display: none;
}
@media (min-width: 1190px) {
  :root:not([data-navigation-collapsed]) .page-layout[data-section='getting-started'] {
    grid-template-columns: clamp(15rem, 20vw, 17rem) minmax(0, 48rem) 13rem;
  }
  :root[data-navigation-collapsed] .page-layout[data-section='getting-started'] {
    grid-template-columns: minmax(0, 48rem) 13rem;
  }
  :root:not([data-navigation-collapsed]) .page-layout[data-section='getting-started'] .site-menu:not(:popover-open),
  :root .page-layout[data-section='getting-started'] .page-menu:not(:popover-open):has(.page-outline li) {
    display: block;
    position: sticky;
    inset: auto;
    top: calc(var(--header-height) + 1.5rem);
    width: auto;
    max-height: calc(100dvh - var(--header-height) - 3rem);
    padding: 0 0.5rem 0 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  :root:not([data-navigation-collapsed]) .page-layout[data-section='getting-started'] .site-menu:not(:popover-open) {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--header-height) - 3rem);
  }
  :root:not([data-navigation-collapsed]) .page-layout[data-section='getting-started'] .content.content {
    grid-column: 2;
  }
  :root[data-navigation-collapsed] .page-layout[data-section='getting-started'] .content.content {
    grid-column: 1;
  }
  :root .page-layout[data-section='getting-started'] .page-menu:not(:popover-open) {
    grid-area: 1 / -2;
    font-size: 0.8125rem;
  }
  /* Both panels are in view, so neither needs the switch between them. */
  .page-layout[data-section='getting-started'] :is(.site-menu, .page-menu):not(:popover-open) .navigation-scopes {
    display: none;
  }
  .page-layout[data-section='getting-started'] .page-menu:not(:popover-open) .outline-heading {
    display: block;
    margin: 0 0 0.75rem;
    color: var(--color-text);
    font-weight: 600;
  }
}
@media (max-width: 700px) {
  .site-sections {
    display: none;
  }
  .site-header {
    padding-inline: 16px;
    gap: 16px;
  }
  .page-layout {
    padding-inline: 16px;
  }
}

/*
 * Documentation tree. Every row has the same chevron column, so labels start in
 * one place whether or not they can be expanded. A branch's line runs down from
 * the centre of its chevron; full names wrap within the column.
 */
.documentation-tree ul,
.file-tree ul,
.page-outline ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.documentation-tree {
  --chevron: 1rem;
  --chevron-gap: 0.25rem;
}
.documentation-tree details > ul {
  margin-inline-start: calc(var(--chevron) / 2);
  padding-inline-start: calc(var(--chevron) / 2 + var(--chevron-gap) - 1px);
  border-inline-start: 1px solid var(--color-accent);
}
.documentation-tree > ul > li {
  margin-bottom: 1rem;
}
.documentation-tree > ul > li > details > summary {
  font-weight: 600;
}
/* At the trailing edge of the Documentation / This page header (the original's 1de758b). */
.navigation-scopes #collapse-navigation {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  margin-inline: auto 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--color-text-aside);
  cursor: pointer;
}
.navigation-scopes #collapse-navigation[hidden] {
  display: none;
}
.navigation-scopes #collapse-navigation:disabled {
  opacity: 0.35;
  color: var(--color-text-aside);
  cursor: default;
}
.navigation-scopes #collapse-navigation:not(:disabled):hover {
  background: var(--color-background-secondary);
  color: var(--color-text);
}
/* Four pixels of trailing clearance keep the focus ring inside the sidebar. */
.navigation-scopes #collapse-navigation:focus-visible {
  outline-offset: 2px;
}
.documentation-tree summary {
  display: grid;
  grid-template-columns: var(--chevron, 1rem) minmax(0, 1fr);
  align-items: baseline;
  column-gap: var(--chevron-gap, 0.25rem);
  list-style: none;
  cursor: pointer;
}
.documentation-tree summary::-webkit-details-marker,
.file-tree summary::-webkit-details-marker {
  display: none;
}
.documentation-tree summary > svg {
  align-self: start;
  width: var(--chevron, 1rem);
  height: var(--chevron, 1rem);
  /* Centre the chevron on the first line of its label. */
  margin-top: calc((1.5em + 0.5rem - var(--chevron, 1rem)) / 2);
  color: var(--color-text-aside);
  transition: rotate 0.15s ease;
}
.documentation-tree details[open] > summary > svg {
  rotate: 90deg;
}
@media (prefers-reduced-motion: reduce) {
  .documentation-tree summary > svg {
    transition: none;
  }
}
.documentation-tree li > a,
.documentation-tree li > span {
  display: block;
}
/*
 * A nested list starts one chevron column in, just right of its parent's guide
 * line, so a leaf's label aligns with its parent's label. Only where siblings
 * have chevrons does a leaf move over to align with their labels, as in the
 * original (style.css:1069); the line itself adds no indentation.
 */
.documentation-tree ul:has(> li > details) > li > :is(a, span) {
  margin-inline-start: calc(var(--chevron, 1rem) + var(--chevron-gap, 0.25rem));
}
/*
 * A row's label is its link, or its text when it has no page. Only that box has
 * the row's padding: the text inside a linked label is not padded again, so a
 * linked branch's label starts where an unlinked one's does.
 * A name too long for the column breaks between its words (identifierBreaks);
 * continuation lines hang, so a broken name reads as one entry.
 */
.documentation-tree :is(li, summary) > :is(a, span),
.file-tree-root {
  padding: 0.25rem 0.375rem;
  border-radius: 3px;
  color: var(--color-text-aside);
  line-height: 1.5;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.documentation-tree :is(li, summary) > :is(a, span) {
  padding-inline-start: calc(0.375rem + 0.75rem);
  text-indent: -0.75rem;
}
.documentation-tree summary > :is(a, span) {
  min-width: 0;
}
.file-tree-root {
  display: block;
  margin-bottom: 0.25rem;
}
.documentation-tree > ul > li > details > summary > span {
  color: var(--color-text);
}
.documentation-tree a:hover,
.file-tree-root:hover {
  background: var(--color-background-secondary);
  color: var(--color-text);
}
/* Selection changes colour and background, never weight, so the label keeps its width. */
.documentation-tree a[aria-current='page'],
.file-tree-root[aria-current='page'] {
  background: var(--color-background-secondary);
  color: var(--color-link);
}
/* Declaration names are code because of what they are, wherever the link points. */
.documentation-tree code,
.page-outline code {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
/*
 * Files tree, with the original's row geometry (onboarding/style.css .file-tree,
 * narrowed by files/style.css .files-tree-nav): a directory's row is its chevron,
 * folder and name; a file's row is its glyph and name, the glyph in the column
 * where a sibling directory has its chevron. A nested list starts 24px in, its
 * guide line at its parent's chevron, so a child's first glyph sits under its
 * parent's folder.
 */
.file-tree {
  --tree-glyph: 16px;
  --tree-gap: 8px;
  --tree-inset: 8px;
}
.file-tree summary,
.file-tree-file {
  display: grid;
  grid-template-columns: var(--tree-glyph) var(--tree-glyph) minmax(0, 1fr);
  align-items: center;
  column-gap: var(--tree-gap);
  min-height: 29px;
  margin-block: 1px;
  padding-inline: var(--tree-inset);
  border-radius: 4px;
}
.file-tree summary {
  list-style: none;
  cursor: pointer;
}
.file-tree-file {
  grid-template-columns: var(--tree-glyph) minmax(0, 1fr);
}
.file-tree details > ul {
  margin-inline-start: var(--tree-inset);
  padding-inline-start: calc(var(--tree-glyph) - 1px);
  border-inline-start: 1px solid var(--color-accent);
}
/*
 * The row glyphs: the original's tree shapes (site/file-tree.ts treeIcons) and the
 * pinned Lucide chevron-right, drawn as masks in the text colour so each row
 * carries only an empty span.
 */
.tree-icon,
.file-tree-chevron {
  display: block;
  flex: none;
  width: var(--tree-glyph, 16px);
  height: var(--tree-glyph, 16px);
  background: currentColor;
  color: var(--color-text-aside);
  mask: var(--glyph) center / 100% 100% no-repeat;
}
.tree-icon[data-glyph='folder'] {
  --glyph: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 20H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2Z'/></svg>");
}
.tree-icon[data-glyph='tests'] {
  --glyph: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2'/><path d='M6.453 15h11.094M8.5 2h7'/></svg>");
}
/* A documentation root shows its section's glyph (Lucide book-open and compass, as in the header). */
.tree-icon[data-glyph='api'] {
  --glyph: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v16'/><path d='M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z'/></svg>");
}
.tree-icon[data-glyph='guide'] {
  --glyph: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z'/></svg>");
}
.tree-icon[data-glyph='file'] {
  --glyph: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z'/><path d='M14 2v6h6'/></svg>");
}
.file-tree-chevron {
  --glyph: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='m9 18 6-6-6-6'/></svg>");
  transition: rotate 0.15s ease;
}
.file-tree details[open] > summary > .file-tree-chevron {
  rotate: 90deg;
}
@media (prefers-reduced-motion: reduce) {
  .file-tree-chevron {
    transition: none;
  }
}
@media (forced-colors: active) {
  .tree-icon,
  .file-tree-chevron {
    forced-color-adjust: none;
    background: CanvasText;
  }
}
/* Names stay on one line, as in the original; a deep tree scrolls sideways in its panel. */
.site-menu .file-tree {
  min-width: max-content;
}
.file-tree :is(summary, .file-tree-file) > a {
  min-width: 0;
  color: var(--color-text-aside);
  text-decoration: none;
  white-space: nowrap;
}
.file-tree :is(summary, .file-tree-file) > a code {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.8125rem;
  line-height: 1.4;
}
/*
 * A documentation root's name leads to its documentation (the original's
 * file-tree-doc-link): it reads as a link, and says it leaves Files.
 */
.file-tree :is(summary, .file-tree-file) > a.file-tree-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-link);
}
.tree-doc-hint {
  flex: none;
  width: 11px;
  height: 11px;
  background: currentColor;
  color: var(--color-text-aside);
  mask: var(--glyph) center / 100% 100% no-repeat;
  --glyph: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17 17 7M7 7h10v10'/></svg>");
}
/* A source with tests says so after its name (the original's file-tree-test-hint). */
.file-tree a:has(> .tree-test-hint) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tree-test-hint {
  flex: none;
  width: 12px;
  height: 12px;
  background: currentColor;
  color: var(--color-text-aside);
  mask: var(--glyph) center / 100% 100% no-repeat;
  --glyph: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2'/><path d='M6.453 15h11.094M8.5 2h7'/></svg>");
}
@media (forced-colors: active) {
  .tree-doc-hint,
  .tree-test-hint {
    forced-color-adjust: none;
    background: CanvasText;
  }
}
.file-tree :is(summary, .file-tree-file):hover {
  background: var(--color-background-secondary);
}
.file-tree :is(summary, .file-tree-file):hover > a {
  color: var(--color-text);
}
.file-tree summary:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: -2px;
}
/*
 * The current row: colour and background, never weight, so the name keeps its
 * width. On a test's page its source's row is current (`aria-current="true"`).
 */
.file-tree :is(summary, .file-tree-file):has(> a[aria-current]) {
  background: var(--color-background-secondary);
}
.file-tree :is(summary, .file-tree-file) > a[aria-current] {
  color: var(--color-link);
}
/*
 * A directory without a README lists what it holds as the original's directory
 * rows (files/style.css .files-directory-content): full-width rows divided by rules.
 */
.directory-files {
  max-width: 900px;
  margin-block: 0 var(--space-related);
  padding: 12px 0;
  border-top: 1px solid var(--color-accent);
}
.directory-files ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.directory-files .file-tree-file {
  min-height: 38px;
  margin: 0;
  padding-inline: 12px;
  border-bottom: 1px solid var(--color-accent);
  border-radius: 0;
}
/*
 * A Files page's heading, as the original's (files/style.css .files-heading): its
 * path as a breadcrumb ending in its own name, then a rule and its actions. The
 * full path is the heading for assistive technology.
 */
.file-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  min-width: 0;
  margin-bottom: 20px;
}
.file-heading .file-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.file-heading .breadcrumb {
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 0.875rem;
}
.file-heading .breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
}
.file-heading .breadcrumb [aria-current] {
  color: var(--color-text);
}
.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding-inline-start: 20px;
  border-inline-start: 1px solid var(--color-accent);
  font-size: 0.8125rem;
}
.file-document,
.file-github {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--color-text-aside);
  text-decoration: none;
}
.file-document:is(:hover, :focus-visible),
.file-github:is(:hover, :focus-visible) {
  color: var(--color-link);
  text-decoration: underline;
}
.file-document > svg,
.file-github > svg {
  flex: none;
}
@media (max-width: 700px) {
  .file-actions {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}
.file-views,
.markdown-views {
  display: flex;
  gap: 1rem;
  margin-block: 0 var(--space-related);
  border-bottom: 1px solid var(--color-accent);
  font-size: 0.875rem;
}
.file-views a,
.markdown-views button {
  margin-bottom: -1px;
  padding: 0.25rem 0.125rem 0.5rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--color-text-aside);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.file-views a:hover,
.markdown-views button:hover {
  color: var(--color-text);
}
.file-views a[aria-current='page'],
.markdown-views button[aria-pressed='true'] {
  border-bottom-color: currentColor;
  color: var(--color-text);
}
.file-views a:focus-visible,
.markdown-views button:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}
.page-outline li a {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.375rem;
  padding: 0.25rem 0.375rem;
  border-radius: 3px;
  color: var(--color-text-aside);
  text-decoration: none;
}
.page-outline li a:not(:has(svg)) {
  grid-template-columns: minmax(0, 1fr);
}
.page-outline li a:hover {
  background: var(--color-background-secondary);
  color: var(--color-text);
}
.page-outline li[data-level='2'] a {
  padding-inline-start: 1.375rem;
}
.page-outline .outline-label > span {
  display: block;
  padding: 0.75rem 0.375rem 0.25rem;
  color: var(--color-text-aside);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Page content. */
.content {
  min-width: 0;
}
.page-title {
  margin-bottom: 1.5rem;
}
.page-title h1,
.prose h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.75rem, 2.5vw, 2.125rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.prose h1 {
  margin-bottom: var(--space-block);
}
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  color: var(--color-text-aside);
  font-size: 0.8125rem;
}
/* Parent links are quiet: no underline until the reader points at or focuses them. */
.breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-radius: 2px;
}
.breadcrumb a:is(:hover, :focus-visible) {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
  margin-top: var(--space-related);
  color: var(--color-text-aside);
  font-size: 0.875rem;
}
.related-icon {
  display: inline-flex;
}
/*
 * Guide and module prose reads at the body size, as the original's
 * `.tsd-typography` paragraphs did; the smaller --text-prose belongs to member
 * and parameter documentation and index summaries (original style.css:225-244).
 */
.prose {
  max-width: var(--measure-prose);
}
.prose :is(p, li) {
  line-height: 1.65;
}
.member .prose,
.parameters > li .prose,
.member-section > .prose {
  font-size: var(--text-prose);
}
:is(.member, .parameters > li) .prose :is(p, li) {
  line-height: 1.7;
}
.prose h2,
.member-section > h2 {
  margin: var(--space-section) 0 var(--space-related);
  font-size: var(--text-section);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.prose h3 {
  margin: var(--space-block) 0 var(--space-related);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}
.prose :not(pre) > code {
  font-size: 0.875em;
}
/*
 * Getting started reads at the original chapter scale (onboarding/style.css): larger
 * section headings and body text, and inline code matched to the text's x-height
 * rather than shrunk.
 */
.prose.chapter h2 {
  margin: 56px 0 18px;
  font-size: 26px;
  font-weight: 640;
  letter-spacing: -0.022em;
}
.prose.chapter h3 {
  margin: 34px 0 12px;
  font-size: 20px;
  letter-spacing: -0.015em;
}
.prose.chapter > :is(p, ul, ol) {
  font-size: 17px;
  line-height: 1.7;
}
.prose.chapter :is(p, li, td) {
  font-size-adjust: 0.52;
}
.prose.chapter :is(p, li, td) code {
  font-size: 1em;
  font-size-adjust: inherit;
}
@media (max-width: 520px) {
  .prose.chapter h2 {
    margin-top: 42px;
    font-size: 24px;
  }
  .prose.chapter > :is(p, ul, ol) {
    font-size: 16px;
  }
}
/* Inline code in prose sits on the code surface, as in the original; links keep their own treatment. */
.prose :is(p, li, td) > code,
.prose :is(p, li, td) > [data-package-manager-variant] > code {
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--color-background-secondary);
  overflow-wrap: anywhere;
}
.reference {
  text-decoration: none;
  white-space: normal;
}
/* The section glyph belongs to its link: even space on both sides, centered on the text. */
.reference > svg {
  inline-size: 1em;
  block-size: 1em;
  margin-inline: 0.05em 0.3em;
  vertical-align: -0.14em;
}
.reference:hover code,
.reference:hover {
  text-decoration: underline;
}
.reference[data-destination='source'] > svg {
  margin-inline: 0.15em 0.25em;
}
/*
 * A callout names its kind beside the original's info glyph; a quotation, such as a
 * prompt the reader sends, sits on the quiet surface with a rule (onboarding/style.css
 * .admonition and blockquote).
 */
.alert,
.prose blockquote {
  margin: 1.5rem 0;
  padding: 12px 20px;
  border-inline-start: 3px solid var(--color-accent);
  border-radius: 0 7px 7px 0;
  background: var(--color-background-secondary);
  color: var(--color-text-aside);
  font-size: 14px;
  line-height: 1.65;
}
.alert {
  border-inline-start-color: var(--color-link);
  border-radius: 0 6px 6px 0;
}
.prose :is(.alert, blockquote) p {
  font-size: inherit;
  line-height: inherit;
}
.prose :is(.alert, blockquote) > :last-child {
  margin-bottom: 0;
}
.alert-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--color-link);
  font-weight: 650;
}
.alert-title svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.expandable-image {
  position: relative;
  display: block;
}
.expandable-image img {
  display: block;
  max-width: 100%;
  height: auto;
}
.expand-image {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  background: var(--color-background);
  color: var(--color-text-aside);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.image-dialog {
  max-width: min(96vw, 80rem);
  padding: 1rem;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  background: var(--color-background);
}
.image-dialog img {
  display: block;
  max-width: 100%;
  height: auto;
}
.image-dialog::backdrop {
  background: #0008;
}

/* Highlighted code: TextMate tokens carry both theme colors. */
.highlighted span[style] {
  color: light-dark(var(--shiki-light), var(--shiki-dark));
}
.highlighted a {
  color: var(--color-link);
  text-decoration: none;
}
.highlighted a span[style] {
  color: inherit;
}
.highlighted a:hover {
  text-decoration: underline;
}
/*
 * A code panel, as in the original (code/code-blocks.css): its header inside the
 * panel names the code (language, package-manager choice or excerpted file) and
 * keeps Copy in view.
 */
.code-block {
  position: relative;
  margin-block: var(--space-related);
  border-radius: 8px;
  background: var(--color-background-secondary);
  overflow: hidden;
}
.code-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 29px;
  padding: 10px 20px 0;
  color: var(--color-text-aside);
  font-size: 12px;
  line-height: 1.4;
}
.code-source {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-width: 0;
  overflow-wrap: anywhere;
}
.code-actions .code-source > svg {
  flex: none;
  margin: 0;
}
.code-actions .code-source code {
  font-size: 1em;
}
.copy-code {
  flex-shrink: 0;
  padding: 3px 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.copy-code:hover {
  color: var(--color-text);
}
.copy-code:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}
/* Code shares the original's compact reading size: 0.8125rem with room between lines. */
.code-block pre,
.source-listing pre {
  margin: 0;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.65;
}
.code-block pre {
  padding: 8px 20px 14px;
}
/* A source file's frame holds its Copy above the code, as the original's source frame. */
.source-listing {
  border-radius: 8px;
  background: var(--color-background-secondary);
}
.source-listing > .code-actions {
  justify-content: flex-end;
}
.source-listing pre {
  padding: 8px 1.25rem 1rem;
}
.code-type-help {
  margin-top: 0.5rem;
  color: var(--color-text-aside);
  font-size: 12px;
  line-height: 1.5;
}

/* API definition: the compact definition with its reading controls in the chrome. */
.declaration {
  margin-block: var(--space-related) var(--space-section);
}
.definition {
  position: relative;
  display: block;
  border-radius: 4px;
  background: var(--color-background-secondary);
}
.definition-controls {
  position: absolute;
  z-index: 2;
  right: 0.5rem;
  top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--color-background-secondary);
}
.definition-controls:is(:hover, :focus-within) {
  border-color: var(--color-accent);
  background: var(--color-background);
}
/* Where the signature's glyphs would run under the controls, they head the definition instead (definition-layout.ts). */
.definition[data-controls-layout='header'] .definition-body {
  padding-top: var(--definition-controls-space);
}
.expansion-controls:not([hidden]) {
  display: flex;
  align-items: center;
}
.expansion-status,
.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.expansion-limit[data-ended] {
  color: var(--color-text);
}
.definition-action {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--color-text-aside);
  cursor: pointer;
}
.definition-action[hidden] {
  display: none;
}
.definition-action:hover,
.source-control:has(:popover-open) > button {
  background: var(--color-accent);
  color: var(--color-text);
}
.copy-definition[data-copied='true'] {
  color: var(--color-link);
}
.source-control {
  position: relative;
  display: inline-flex;
}
.source-popover {
  position: fixed;
  inset: auto;
  position-area: block-end span-inline-start;
  justify-self: end;
  position-try-fallbacks: flip-block, flip-inline;
  margin: 0.375rem 0;
  max-width: min(32rem, calc(100vw - 2rem));
  padding: var(--space-related) 1rem;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  background: var(--color-background);
  color: var(--color-text-aside);
  box-shadow: 0 4px 16px #00000014;
  font-size: 0.8125rem;
}
.source-popover a,
.source-popover .installed-source {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.definition-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}
.definition-symbol {
  color: var(--color-text-aside);
}
/* Added in this reader: why no further level is offered, as the inspector says it. */
.expansion-limit {
  margin: -0.5rem 0 0;
  padding: 0 1.25rem 0.75rem;
  color: var(--color-text-aside);
  font-size: 0.75rem;
  line-height: 1.5;
}
.signature {
  margin: 0;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.65;
}
.summary + .declaration {
  margin-top: var(--space-block);
}
.member-section .parameters {
  margin: 0;
  padding: 0;
  list-style: none;
}
.member-section .parameters > li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.25rem 0.5rem;
  align-items: start;
  margin-block: 0.5rem;
}
.member-section .parameters > li > .prose {
  grid-column: 2;
}
.parameter-signature {
  font-size: 0.8125rem;
  line-height: 1.65;
}
/* One compact row per member: its kind icon, then the member as written. */
.member-section .members {
  margin: 0;
  padding: 0;
  list-style: none;
}
.member-section .member {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  column-gap: 0.5rem;
  align-items: start;
  padding-block: 0.375rem;
  border-top: 1px solid var(--color-accent);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}
.member-section .member:first-child {
  border-top: 0;
}
/*
 * A row's kind glyph is centred on the first line of the code beside it: its box
 * is one line of that code tall, at the code's own size and line height.
 */
.row-icon {
  display: flex;
  align-items: center;
  block-size: 1lh;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--color-text-aside);
}
.member-anchor {
  display: block;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}
.member-signature {
  font-size: 0.8125rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.member-section .member > .prose {
  grid-column: 2;
  margin-top: 0.25rem;
}
.member-section .member > .prose > :first-child {
  margin-top: 0;
}
.member-section .member > .prose > :last-child {
  margin-bottom: 0;
}
.member:target {
  background: light-dark(#fff8c5, #3b3520);
}
/*
 * Module index: one row per entry, its name and what it is for, two columns when
 * the section is wide enough (original style.css:356-395).
 */
.api-index-section {
  container-type: inline-size;
}
.api-index {
  margin: var(--space-block) 0 0;
}
.api-index-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.375rem 1.5rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--color-accent);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}
.api-index-entry > :is(dt, dd) {
  margin: 0;
}
.api-index-entry > dt {
  display: flex;
  align-items: start;
  gap: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.65;
}
.api-index-entry > dt > a:first-child {
  display: inline-grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  column-gap: 0.5rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.api-index-entry > dt code {
  font-weight: 500;
}
/* A guide reads as a guide: proportional type, with the API reference glyph. */
.guide-entry > dt > a:first-child > span:last-child {
  font-size: 0.875rem;
}
.api-index-entry > dd {
  font-size: 0.875rem;
  line-height: 1.65;
}
.api-index-entry > dd > :first-child {
  margin-top: 0;
}
.api-index-entry > dd > :last-child {
  margin-bottom: 0;
}
.api-index-entry > dd:empty {
  display: none;
}
@container (min-width: 46rem) {
  .api-index {
    display: grid;
    grid-template-columns: fit-content(40%) minmax(0, 1fr);
    column-gap: 1.25rem;
  }
  .api-index-entry {
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    column-gap: inherit;
  }
}
.api-index-entry:target,
.supporting-name:target,
.section-name:target {
  background: light-dark(#fff8c5, #3b3520);
}

/* A permalink appears beside what it names when the reader points at or focuses it. */
.permalink {
  display: inline-grid;
  place-items: center;
  inline-size: 1.25rem;
  block-size: 1lh;
  color: var(--color-text-aside);
  opacity: 0;
}
.permalink svg {
  inline-size: 0.875rem;
  block-size: 0.875rem;
}
:is(.api-index-entry, h2):is(:hover, :focus-within) .permalink,
.permalink:focus-visible {
  opacity: 1;
}
.permalink:hover {
  color: var(--color-link);
}

/* Definitions presented on another declaration's page, and authored @page sections. */
.supporting-types {
  margin-top: var(--space-section);
  padding-top: var(--space-block);
  border-top: 1px solid var(--color-accent);
}
.supporting-type + .supporting-type,
.reference-section + .reference-section {
  margin-top: var(--space-section);
}
.supporting-name,
.section-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 var(--space-related);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}
.supporting-name > svg,
.section-name > svg {
  color: var(--color-text-aside);
}
.supporting-name code,
.section-name code {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.supporting-type .member-section,
.reference-section .member-section {
  margin-top: var(--space-related);
}

/* Source pages: native line destinations. Each row is one line, empty ones included. */
.source-line {
  display: block;
  min-height: 1lh;
  scroll-margin-top: calc(var(--header-height) + 2rem);
}
.source-line:target {
  background: light-dark(#fff8c5, #3b3520);
}
.line-number {
  display: inline-block;
  width: 3.5em;
  padding-inline-end: 1em;
  color: var(--color-text-aside);
  text-align: right;
  text-decoration: none;
  user-select: none;
}
.page-title h1 code {
  font-size: 0.8em;
}
.placeholder {
  color: var(--color-text-aside);
}

/* An update the reader chose not to apply automatically. */
.reader-update:not([hidden]) {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  margin-inline: auto;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  background: var(--color-background);
  box-shadow: 0 6px 24px #0002;
  font-size: 0.875rem;
}
.reader-update button {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  background: var(--color-background-secondary);
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
}

/* Getting started: the chapter's place, its media and its commands. */
.chapter-eyebrow {
  margin: 0 0 0.5rem;
  color: var(--color-text-aside);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.chapter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 3rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-accent);
}
.chapter-nav a {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  color: var(--color-text);
  text-decoration: none;
}
.chapter-nav a[rel='next'] {
  text-align: end;
}
.chapter-nav a:hover {
  border-color: var(--color-link);
}
.chapter-nav small {
  color: var(--color-text-aside);
}
.chapter-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.chapter-list a {
  display: flex;
  gap: 0.6rem;
  padding: 0.35rem 0.4rem;
  border-radius: 3px;
  color: var(--color-text-aside);
  text-decoration: none;
}
.chapter-list a[aria-current='page'] {
  color: var(--color-text);
  background: var(--color-background-secondary);
}
.chapter-list .step {
  min-width: 2.5em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-aside);
}
.prose figure.demo,
.prose figure.setup-figure,
.prose figure.source-excerpt {
  margin: 1.5rem 0;
}
.prose figure video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
}
/* The player page fills the frame; the frame keeps the recording's 3:2 terminal at any width (original style.css). */
.prose figure iframe.terminal-recording {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border: 0;
  border-radius: 8px;
}
.prose figcaption {
  margin-top: 0.5rem;
  color: var(--color-text-aside);
  font-size: 0.9rem;
}
.media-unavailable {
  padding: 1rem 1.25rem;
  border: 1px dashed var(--color-accent);
  border-radius: 8px;
  background: var(--color-background-secondary);
  color: var(--color-text-aside);
  font-size: 0.9rem;
}
.media-unavailable p {
  margin: 0.25rem 0;
}
.setup-capture {
  position: relative;
}
.setup-capture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.annotation-number {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-link);
  color: var(--color-background);
  font-size: 0.75rem;
  font-weight: 600;
}
.setup-pin {
  position: absolute;
  transform: translate(-50%, -50%);
}
.annotation-legend {
  padding: 0;
  list-style: none;
}
.annotation-legend li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0.75rem;
  margin: 0.5rem 0;
}
.source-excerpt + p {
  color: inherit;
}
/*
 * The pnpm/npm choice, from the original's onboarding/style.css: tabs in a command's
 * header, and a segmented control at the foot of Getting started's navigation.
 * The page's choice is styled from the root, so a stored choice shows before scripts run.
 */
.package-manager-tabs {
  display: inline-flex;
  gap: 8px;
}
.package-manager-tabs button {
  padding: 3px 4px 5px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-text-aside);
  font: inherit;
  cursor: pointer;
}
.package-manager-tabs button:hover {
  color: var(--color-link);
}
.package-manager-tabs button:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 3px;
}
:root:not([data-package-manager='npm']) .package-manager-tabs [data-package-manager-choice='pnpm'],
:root[data-package-manager='npm'] .package-manager-tabs [data-package-manager-choice='npm'] {
  color: var(--color-link);
  border-bottom-color: currentColor;
}
.site-menu [data-reader-part='navigation']:has(> .reader-settings) {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.reader-settings {
  margin-top: auto;
  padding-top: 1.5rem;
}
.reader-settings .package-manager-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: var(--color-background-secondary);
}
.reader-settings .package-manager-tabs button {
  flex: 1;
  padding: 5px 9px;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
}
.reader-settings .package-manager-tabs button:hover {
  color: var(--color-text);
}
:root:not([data-package-manager='npm']) .reader-settings [data-package-manager-choice='pnpm'],
:root[data-package-manager='npm'] .reader-settings [data-package-manager-choice='npm'] {
  color: var(--color-text);
  background: var(--color-background);
  box-shadow: 0 1px 3px #0002;
}
:root:not([data-package-manager='npm']) [data-package-manager-variant='npm'],
:root[data-package-manager='npm'] [data-package-manager-variant='pnpm'] {
  display: none;
}

/*
 * Screenshot targets and the prose that names them (the original's
 * figure-annotation presentation). A target is a box over the screenshot at its
 * authored percentages, numbered and colored like the prose link that points to
 * it; following either one brings the other into view and highlights it.
 */
.prose a.figure-annotation {
  --annotation-surface: color-mix(in srgb, var(--annotation-color) 10%, var(--color-background));
  color: var(--annotation-color);
  border: 2px solid var(--annotation-color);
  border-radius: 4px;
  text-decoration: none;
  box-sizing: border-box;
  scroll-margin-block: 15rem;
  outline: var(--annotation-outline-width, 0px) solid var(--annotation-color);
  outline-offset: -3px;
}
.prose a.figure-annotation.inline {
  display: inline-flex;
  align-items: center;
  vertical-align: baseline;
  padding: 0.1em 0.25em;
  background: var(--annotation-surface);
  font-weight: 600;
  line-height: 1.35;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.prose .figure-annotation-number {
  display: inline-grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  color: white;
  background: var(--annotation-color);
  font: 700 0.8em/1 'Geist', system-ui, sans-serif;
  vertical-align: 0.08em;
}
.prose .figure-annotation.inline .figure-annotation-number {
  margin-inline-end: 0.3em;
}
.prose a.figure-annotation.region {
  position: absolute;
  display: block;
  box-shadow: 0 0 0 1px white;
}
.prose .figure-annotation.region .figure-annotation-number {
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 2px solid white;
  box-sizing: border-box;
  font-size: 13px;
}
.prose a.figure-annotation:is(:hover, :focus-visible, :target) {
  --annotation-outline-width: 3px;
}
.prose a.figure-annotation.region:is(:hover, :focus-visible, :target) {
  background: color-mix(in srgb, var(--annotation-color) 12%, transparent);
}
@media (forced-colors: active) {
  .prose a.figure-annotation {
    border-color: LinkText;
  }
  .prose .figure-annotation-number {
    border: 1px solid ButtonText;
  }
}

/* A name in source the reader can inspect. */
.inspectable {
  border-radius: 2px;
  cursor: help;
}
.inspectable:is(:hover, :focus-visible, [aria-expanded='true']) {
  background: color-mix(in srgb, var(--color-link) 14%, transparent);
}
.inspectable:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 1px;
}
