
:root {
  color-scheme: light dark;

  /* Surfaces, from the page ground up to a raised panel. */
  --canvas: #f8fafc;
  --paper: #ffffff;
  --wash: #f1f5f9;
  --row-alt: #fafbfd;

  /* Text, from primary reading colour down to small labels. */
  --ink: #1e293b;
  --muted: #475569;
  --faint: #5b6b7f;

  /* Lines: --line separates regions, --line-soft separates rows. */
  --line: #e2e8f0;
  --line-soft: #eef2f7;

  /* Accent and status. Each pairs with its own tinted surface. */
  --accent: #155e75;
  --accent-soft: #e0f2fe;
  --warn: #b45309;
  --warn-wash: #fef6e7;
  --danger: #b91c1c;
  --danger-wash: #fdeeee;

  /* Syntax highlighting, kept in the same ramp as the body text. */
  --code-keyword: #7c3aed;
  --code-string: #0f766e;
  --code-comment: #5b6b7f;
  --code-number: #b45309;

  /* Type: the browser's own base size is respected and scaled from. */
  --font-sans:
    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
    "Segoe UI", "Apple SD Gothic Neo", Pretendard, "Malgun Gothic", system-ui,
    sans-serif;
  --font-mono:
    "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular,
    Menlo, Consolas, monospace;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.1875rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --leading-body: 1.7;
  --leading-tight: 1.3;

  /* Spacing, on a 4px grid. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;

  --radius: 0.375rem;
  --measure: 72ch;
  --head-h: 3.5rem;
  --ease: 160ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --canvas: #0b1120;
    --paper: #0f172a;
    --wash: #1b2336;
    --row-alt: #141d31;
    --ink: #f8fafc;
    --muted: #94a3b8;
    --faint: #8b9ab0;
    --line: #334155;
    --line-soft: #1e293b;
    --accent: #67e8f9;
    --accent-soft: #164e63;
    --warn: #fbbf24;
    --warn-wash: #2b2110;
    --danger: #f87171;
    --danger-wash: #2c1618;
    --code-keyword: #c4b5fd;
    --code-string: #5eead4;
    --code-comment: #8b9ab0;
    --code-number: #fcd34d;
  }
}
:root:where([data-theme="dark"]) {
  color-scheme: dark;
  --canvas: #0b1120;
  --paper: #0f172a;
  --wash: #1b2336;
  --row-alt: #141d31;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --faint: #8b9ab0;
  --line: #334155;
  --line-soft: #1e293b;
  --accent: #67e8f9;
  --accent-soft: #164e63;
  --warn: #fbbf24;
  --warn-wash: #2b2110;
  --danger: #f87171;
  --danger-wash: #2c1618;
  --code-keyword: #c4b5fd;
  --code-string: #5eead4;
  --code-comment: #8b9ab0;
  --code-number: #fcd34d;
}
:root:where([data-theme="light"]) {
  color-scheme: light;
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --ease: 1ms linear;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: var(--font-sans);
  font-size: 100%;
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  font-size: var(--text-base);
  background: var(--canvas);
}
a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: color var(--ease);
}
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip {
  position: absolute;
  left: var(--space-4);
  top: -6rem;
  z-index: 6;
  padding: var(--space-3) var(--space-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
}
.skip:focus {
  top: var(--space-2);
}

/* ---------- shell ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  height: var(--head-h);
  padding: 0 var(--space-6);
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: -0.015em;
}
header a {
  color: inherit;
}
header a:hover {
  color: var(--accent);
  text-decoration: none;
}
header > a,
header > span {
  flex: none;
}
/* Header links, the language menu and the theme menu, at the right. */
.header-end {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: auto;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
}
.header-links {
  display: flex;
  gap: var(--space-4);
}
/* Header navigation draws as plain links, not as the sidebar's rows. */
.header-end nav a {
  border: 0;
  border-radius: var(--radius);
}
.header-links a {
  padding: var(--space-1) 0;
  color: var(--muted);
}
.header-links a:hover {
  background: none;
  color: var(--accent);
}
/*
 * The language and theme menus: a <details> whose summary shows the current
 * choice and opens a list under it. The language menu is written into the
 * page; cudoc-theme.js adds the theme menu when themeSwitch is on.
 */
.menu {
  position: relative;
  max-inline-size: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
}
header > .menu {
  margin-left: auto;
}
.menu > summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 1.875rem;
  padding: 0 var(--space-3) 0 var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition:
    border-color var(--ease),
    color var(--ease);
}
.menu > summary::-webkit-details-marker {
  display: none;
}
.menu > summary:hover,
.menu[open] > summary {
  margin: 0;
  border-color: var(--accent);
  color: var(--accent);
}
.menu svg {
  flex: none;
  width: 1rem;
  height: 1rem;
}
/* The chevron, pointing down while the menu is closed and up while open. */
.menu > summary::after {
  content: "";
  flex: none;
  width: 0.375rem;
  height: 0.375rem;
  margin: 0 0 0.1875rem var(--space-1);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--ease);
}
.menu[open] > summary::after {
  transform: translateY(0.1875rem) rotate(225deg);
}
/*
 * While a menu is open, a clear layer over the page takes a click anywhere
 * else and closes it, without a script. The list sits above the layer, and
 * the header rises above the review runtime's controls (z-index 39 to 43) so
 * the layer covers them too.
 */
.menu[open] > summary::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  cursor: default;
}
header:has(.menu[open]) {
  z-index: 44;
}
.menu-list {
  position: absolute;
  top: calc(100% + var(--space-1));
  right: 0;
  z-index: 2;
  min-width: max(100%, 9rem);
  margin: 0;
  padding: var(--space-1);
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.menu-list li {
  margin: 0;
}
.menu-list a,
.menu-list span,
.menu-list button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.menu-list a:hover,
.menu-list button:hover {
  background: var(--wash);
  color: var(--ink);
  text-decoration: none;
}
.menu-list [aria-current],
.menu-list [aria-pressed="true"],
.menu-list [aria-pressed="true"]:hover {
  color: var(--accent);
  font-weight: 600;
}
/* The page's own language, and every entry once links are removed. */
.menu-list span {
  cursor: default;
}
/* A check after the current choice. */
.menu-list [aria-current]::after,
.menu-list [aria-pressed="true"]::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.25rem;
  margin: 0 0 0.125rem auto;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 58rem) 13rem;
  align-items: start;
  gap: var(--space-8);
  max-width: 90rem;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) 40vh;
}
.sidebar,
.toc {
  position: sticky;
  top: calc(var(--head-h) + var(--space-4));
  max-height: calc(100vh - var(--head-h) - var(--space-8));
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: var(--text-sm);
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav li {
  margin: 1px 0;
}
nav a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  transition:
    background var(--ease),
    color var(--ease);
}
nav a:hover {
  background: var(--wash);
  color: var(--ink);
  text-decoration: none;
}
nav a[aria-current="page"] {
  background: var(--accent-soft);
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.nav-title {
  margin: 0 0 var(--space-2);
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.toc a {
  padding: var(--space-1) var(--space-3);
  border-left: 2px solid var(--line-soft);
  border-radius: 0;
}
.toc li[data-depth="3"] a {
  padding-left: var(--space-6);
}
/* A group of the navigation folds without a script. */
.nav-group summary {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding-left: var(--space-2);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.nav-group summary::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--ease);
}
.nav-group details[open] > summary::before {
  transform: rotate(45deg);
}
.nav-group summary > a,
.nav-group summary > span {
  flex: 1;
  min-width: 0;
}
.nav-group summary > span,
.nav-group summary > a {
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-1);
}
.nav-group ul {
  margin-left: var(--space-3);
  border-left: 1px solid var(--line-soft);
}
.layout.no-toc {
  grid-template-columns: 15rem minmax(0, 58rem);
}
.layout.single {
  grid-template-columns: minmax(0, 58rem) 13rem;
  justify-content: center;
}
.layout.single.no-toc {
  grid-template-columns: minmax(0, 58rem);
}
/* A generated landing page: its list of documents is the body. */
.layout.no-nav {
  grid-template-columns: minmax(0, 1fr);
}
.landing {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) 30vh;
}

/* ---------- prose ---------- */
main {
  min-width: 0;
}
main > p,
main > ul,
main > ol,
main > dl,
main > blockquote {
  max-inline-size: var(--measure);
}
.cudoc-callout,
details {
  max-inline-size: calc(var(--measure) + 6ch);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--leading-tight);
  font-weight: 650;
  text-wrap: balance;
  scroll-margin-top: calc(var(--head-h) + var(--space-2));
}
h1 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.024em;
}
h2 {
  margin: var(--space-12) 0 var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--text-2xl);
  letter-spacing: -0.018em;
}
h3 {
  margin: var(--space-8) 0 var(--space-2);
  font-size: var(--text-xl);
  letter-spacing: -0.012em;
}
h4,
h5,
h6 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: var(--text-base);
  color: var(--muted);
}
.header-anchor {
  margin-left: 0.35em;
  color: var(--faint);
  font-weight: 400;
  opacity: 0;
  transition: opacity var(--ease);
}
h1:hover > .header-anchor,
h2:hover > .header-anchor,
h3:hover > .header-anchor,
h4:hover > .header-anchor,
.header-anchor:focus-visible {
  opacity: 1;
}
p {
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}
ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.4em;
}
li {
  margin: var(--space-1) 0;
}
li > ul,
li > ol {
  margin: var(--space-1) 0 0;
}
li::marker {
  color: var(--faint);
}
hr {
  height: 0;
  margin: var(--space-8) 0;
  border: 0;
  border-top: 1px solid var(--line);
}
/* A rule already separates what follows it; the heading after one draws no second. */
hr + h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
strong {
  font-weight: 650;
}
abbr {
  text-underline-offset: 0.25em;
}

/* ---------- code ---------- */
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  font-variant-ligatures: none;
}
:not(pre) > code {
  padding: 0.1em 0.32em;
  background: var(--wash);
  border: 1px solid var(--line-soft);
  border-radius: 0.25em;
  /* A signature or an address longer than the column wraps inside it rather
     than running under the contents beside it or widening a phone's page;
     each line keeps the padding and the border. A table column stays as wide
     as its longest word, so a narrow table scrolls rather than splitting one. */
  overflow-wrap: break-word;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
pre {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--wash);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.6;
  tab-size: 2;
}
pre code {
  white-space: pre;
}
pre .line.highlighted {
  display: inline-block;
  min-width: 100%;
  margin: 0 calc(-1 * var(--space-4));
  padding: 0 var(--space-4);
  background: var(--accent-soft);
}
.cudoc-code {
  margin: 0 0 var(--space-4);
}
.cudoc-code > pre {
  margin: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.cudoc-code-title {
  padding: var(--space-1) var(--space-4);
  background: var(--wash);
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-built_in {
  color: var(--code-keyword);
}
.hljs-string,
.hljs-attr,
.hljs-addition {
  color: var(--code-string);
}
.hljs-comment,
.hljs-quote {
  color: var(--code-comment);
  font-style: italic;
}
.hljs-number,
.hljs-literal,
.hljs-title {
  color: var(--code-number);
}

/* ---------- tabs ---------- */
.cudoc-tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 var(--space-4);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.cudoc-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cudoc-tab-label {
  padding: var(--space-2) var(--space-4);
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  cursor: pointer;
}
.cudoc-tab {
  order: 1;
  flex-basis: 100%;
  min-width: 0;
  padding: var(--space-4) var(--space-4) 0;
  border-top: 1px solid var(--line-soft);
}
.cudoc-tab-input:focus-visible + .cudoc-tab-label {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
@supports selector(:has(*)) {
  .cudoc-tab-label + .cudoc-tab {
    display: none;
  }
  .cudoc-tab-input:checked + .cudoc-tab-label + .cudoc-tab,
  .cudoc-tabs:not(:has(> .cudoc-tab-input:checked)) > .cudoc-tab-default + .cudoc-tab-label + .cudoc-tab {
    display: block;
  }
  .cudoc-tab-input:checked + .cudoc-tab-label,
  .cudoc-tabs:not(:has(> .cudoc-tab-input:checked)) > .cudoc-tab-default + .cudoc-tab-label {
    border-bottom-color: var(--accent);
    color: var(--ink);
    font-weight: 600;
  }
}

/* ---------- tables ---------- */
table {
  display: block;
  max-width: 100%;
  margin: 0 0 var(--space-4);
  border-collapse: collapse;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
thead th {
  padding: var(--space-2) var(--space-3);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--faint);
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--ease);
}
tbody tr:nth-child(even) {
  background: var(--row-alt);
}
tbody tr:hover {
  background: var(--accent-soft);
}
tbody tr:last-child {
  border-bottom: 0;
}
td {
  padding: var(--space-2) var(--space-3);
  vertical-align: top;
}
td p,
td ul,
td ol {
  margin: var(--space-1) 0;
}
td ul,
td ol {
  padding-left: 1.2em;
}
td > :first-child {
  margin-top: 0;
}
td > :last-child {
  margin-bottom: 0;
}

/* ---------- blocks ---------- */
blockquote {
  margin: var(--space-6) 0;
  padding: 0 var(--space-4);
  border-left: 2px solid var(--line);
  color: var(--muted);
}
blockquote > :last-child {
  margin-bottom: 0;
}
details {
  margin: var(--space-4) 0;
  padding: var(--space-2) var(--space-4);
  background: var(--wash);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
details summary {
  padding: var(--space-1) 0;
  font-weight: 600;
  cursor: pointer;
}
details[open] summary {
  margin-bottom: var(--space-2);
}
/* A navigation group folds like an authored details, without its box. */
.nav-group details,
.nav-group details[open] summary {
  max-inline-size: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.nav-group summary {
  padding: 0 0 0 var(--space-2);
}
/* A tree embed is an outline: an item with children folds its list in a
   details whose summary is the item's line, the disclosure triangle where a
   leaf's bullet is, and none of the box an authored details gets. */
.cudoc-tree,
.cudoc-tree ul {
  margin: 0;
  padding-left: 1.5em;
}
.cudoc-tree {
  margin: var(--space-4) 0;
}
.cudoc-tree li:not(.cudoc-tree-leaf) {
  list-style: none;
}
.cudoc-tree details {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.cudoc-tree details summary,
.cudoc-tree details[open] summary {
  margin: 0 0 0 -1.1em;
  padding: 0;
  font-weight: inherit;
}
.cudoc-badge {
  display: inline-block;
  margin-left: 0.35em;
  padding: 0.1em 0.5em;
  background: var(--accent-soft);
  border-radius: 0.75em;
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: 0.08em;
}
.cudoc-callout {
  margin: var(--space-6) 0;
  padding: var(--space-3) var(--space-4);
  background: var(--wash);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.cudoc-callout > :first-child {
  margin-top: 0;
}
.cudoc-callout > :last-child {
  margin-bottom: 0;
}
.cudoc-callout-title {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--ink);
  font-weight: 700;
}
.cudoc-table-note {
  margin: calc(-1 * var(--space-2)) 0 var(--space-6);
  color: var(--faint);
  font-size: var(--text-sm);
}
.cudoc-table-note > p {
  margin: var(--space-1) 0;
}
.cudoc-callout-warning {
  background: var(--warn-wash);
  border-left-color: var(--warn);
}
.cudoc-callout-caution,
.cudoc-callout-danger,
.cudoc-callout-error {
  background: var(--danger-wash);
  border-left-color: var(--danger);
}
footer {
  margin-top: var(--space-12);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: var(--text-sm);
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .layout,
  .layout.no-toc {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: var(--space-6);
  }
  .layout.single,
  .layout.single.no-toc,
  .layout.no-nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
}
@media (max-width: 768px) {
  header {
    padding: 0 var(--space-4);
  }
  .layout {
    display: block;
    padding: var(--space-4) var(--space-4) 20vh;
  }
  .landing {
    padding: var(--space-6) var(--space-4) 20vh;
  }
  .sidebar {
    position: static;
    max-height: none;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--line);
  }
  .sidebar > ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
  }
  .sidebar .nav-group {
    flex-basis: 100%;
  }
  .header-links {
    display: none;
  }
  nav a,
  .menu-list a,
  .menu-list span,
  .menu-list button {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }
  h1 {
    font-size: var(--text-2xl);
  }
  h2 {
    margin-top: var(--space-8);
    font-size: var(--text-xl);
  }
  h3 {
    font-size: var(--text-lg);
  }
}
@media print {
  html,
  body {
    background: var(--paper);
    color: var(--ink);
    font-size: 10.5pt;
  }
  header,
  .sidebar,
  .toc,
  .skip {
    display: none;
  }
  .layout {
    display: block;
    max-width: none;
    padding: 0;
  }
  main,
  .prose,
  .prose > *,
  .cudoc-callout,
  details {
    max-inline-size: none;
  }
  .cudoc-table-note {
    break-before: avoid;
  }
  .cudoc-tabs {
    display: block;
  }
  .cudoc-tab-input {
    display: none;
  }
  .cudoc-tab-label {
    display: block;
    padding: var(--space-2) var(--space-4) 0;
    break-after: avoid;
    color: var(--ink);
    font-weight: 600;
  }
  .cudoc-tabs .cudoc-tab {
    display: block;
    border-top: 0;
  }
  p,
  li,
  blockquote,
  dd {
    orphans: 3;
    widows: 3;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    break-after: avoid;
    break-inside: avoid;
  }
  h2 + *,
  h3 + *,
  h4 + * {
    break-before: avoid;
  }
  pre {
    break-inside: auto;
    orphans: 2;
    widows: 2;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow: visible;
    print-color-adjust: exact;
  }
  pre code {
    white-space: inherit;
    overflow-wrap: inherit;
  }
  .cudoc-callout,
  details {
    break-inside: auto;
    orphans: 2;
    widows: 2;
    box-decoration-break: clone;
    print-color-adjust: exact;
  }
  .cudoc-callout-title,
  summary {
    break-after: avoid;
  }
  table {
    display: table;
    width: 100%;
    table-layout: auto;
    overflow: visible;
    break-inside: auto;
  }
  thead {
    display: table-header-group;
  }
  tfoot {
    display: table-footer-group;
  }
  tr {
    break-inside: avoid;
  }
  thead th,
  tbody tr:nth-child(even) {
    print-color-adjust: exact;
  }
  img,
  svg,
  figure {
    break-inside: avoid;
    max-height: 245mm;
    height: auto;
  }
  figcaption {
    break-before: avoid;
  }
  .cudoc-page-break {
    display: block;
    height: 0;
    break-after: page;
  }
  .cudoc-cover {
    break-after: page;
  }
  .cudoc-contents {
    break-after: page;
  }
  .cudoc-doc {
    break-before: page;
  }
  .cudoc-contents-list {
    list-style: none;
    padding: 0;
  }
  .cudoc-contents-list a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 0.4em;
    text-decoration: none;
  }
  .cudoc-contents-fill {
    border-bottom: 1px dotted var(--line);
    transform: translateY(-0.3em);
  }
  .cudoc-contents-page {
    min-width: 4ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
  }
}
