/**
 * PIEDAP Consent documentation.
 *
 * Follows the console's design system: blue is structure and brand, green
 * only ever means "allowed", amber is a caution and red is refusal or danger.
 * IBM Plex Sans carries the text, Archivo the headings, IBM Plex Mono code.
 *
 * Every font size, weight and line height is one of the tokens below; the
 * reasons for the values are in STANDARDS.md. tests/theme.test.mjs fails on
 * a size that is not a token.
 */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url(fonts/plex-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url(fonts/plex-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url(fonts/plex-sans-latin-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/plex-mono-400.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: var(--fw-medium);
  font-display: swap;
  src: url(fonts/plex-mono-500.woff2) format("woff2");
}

/* ---------- tokens ---------- */
:root {
  --blue: #0b2fa8;
  --blue-strong: #071e6e;
  --blue-soft: #eef2fe;
  --blue-line: #cdd8fb;
  --green: #0f7a20;
  --green-soft: #eafbec;
  --amber: #8a5500;
  --amber-soft: #fdf4e3;
  --red: #b3273f;
  --red-soft: #fdeef0;
  --ink: #0c1424;
  --ink-2: #2a3654;
  --muted: #4a5572;
  --faint: #5c6885;
  --paper: #ffffff;
  --wash: #f5f7fb;
  --wash-2: #edf1f8;
  --line: #dfe4ee;
  --line-strong: #c6cede;
  --code-bg: #0c1424;
  --code-ink: #e6eaf5;
  --code-line: #223052;
  --mark: #fff0b8;
  --shadow: 0 18px 48px -16px rgba(12, 20, 36, 0.32), 0 2px 6px rgba(12, 20, 36, 0.06);
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
  --display: "Archivo", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* type scale: 17px text, nothing under 13px */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-md: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h4: 1.125rem;
  --fs-h3: 1.375rem;
  --fs-h2: 1.75rem;
  --fs-h1: 2.5rem;
  --fw-medium: 500;
  --fw-bold: 600;
  --fw-heading: 700;
  --lh-body: 1.6;
  --lh-snug: 1.45;
  --lh-heading: 1.2;

  /* text lines stop near 75 characters; code, tables and figures use the column */
  --measure: 39rem;
  --column: 47.5rem;

  --top-h: 104px;
  --side-w: 280px;
  --toc-w: 240px;
  --r: 8px;
  --r-sm: 5px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --blue: #9db4ff;
  --blue-strong: #c3d1ff;
  --blue-soft: #18244a;
  --blue-line: #2b3b70;
  --green: #6fdc83;
  --green-soft: #12301b;
  --amber: #f0b95a;
  --amber-soft: #33270f;
  --red: #ff8fa2;
  --red-soft: #3a1820;
  --ink: #e8ecf6;
  --ink-2: #c9d1e4;
  --muted: #a3adc5;
  --faint: #8894b0;
  --paper: #0e1528;
  --wash: #0a101f;
  --wash-2: #141d35;
  --line: #222d4a;
  --line-strong: #334063;
  --code-bg: #060b17;
  --code-ink: #e6eaf5;
  --code-line: #1c2845;
  --mark: #5a4a12;
  --shadow: 0 18px 48px -16px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --blue: #9db4ff;
    --blue-strong: #c3d1ff;
    --blue-soft: #18244a;
    --blue-line: #2b3b70;
    --green: #6fdc83;
    --green-soft: #12301b;
    --amber: #f0b95a;
    --amber-soft: #33270f;
    --red: #ff8fa2;
    --red-soft: #3a1820;
    --ink: #e8ecf6;
    --ink-2: #c9d1e4;
    --muted: #a3adc5;
    --faint: #8894b0;
    --paper: #0e1528;
    --wash: #0a101f;
    --wash-2: #141d35;
    --line: #222d4a;
    --line-strong: #334063;
    --code-bg: #060b17;
    --code-line: #1c2845;
    --mark: #5a4a12;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}
img,
svg {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
kbd {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--blue);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-weight: var(--fw-bold);
}
.skip:focus {
  top: 12px;
}

/* ---------- top bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding-inline: 20px;
  max-width: 1480px;
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  white-space: nowrap;
}
.logo {
  display: block;
  height: 21px;
  width: auto;
}
.logo-dark,
:root[data-theme="dark"] .logo-light {
  display: none;
}
:root[data-theme="dark"] .logo-dark {
  display: block;
}
.brand-name {
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  line-height: 1.2;
}
.brand-docs {
  color: var(--faint);
  font-weight: var(--fw-medium);
}
.search-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 1 380px;
  margin-inline: auto;
  height: 36px;
  padding: 0 10px 0 12px;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--faint);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  text-align: left;
}
.search-btn:hover {
  border-color: var(--line-strong);
  color: var(--muted);
}
.search-btn-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--wash);
  color: var(--ink);
}
.icon-moon,
:root[data-theme="dark"] .icon-sun {
  display: none;
}
:root[data-theme="dark"] .icon-moon {
  display: block;
}
.nav-toggle {
  display: none;
}
.btn-console {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--blue);
  border: 1px solid var(--blue-line);
  border-radius: var(--r);
  text-decoration: none;
  white-space: nowrap;
}
.btn-console:hover {
  background: var(--blue-soft);
}
.tabs {
  display: flex;
  gap: 4px;
  height: 45px;
  padding-inline: 12px;
  max-width: 1480px;
  margin-inline: auto;
}
.tab-menu {
  position: relative;
  display: flex;
}
.tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  list-style: none;
}
.tab::-webkit-details-marker {
  display: none;
}
summary.tab::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
}
.tab:hover,
.tab-menu[open] > .tab {
  color: var(--ink);
}
.tab[aria-current] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 45;
  display: grid;
  gap: 2px;
  width: 340px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.menu a {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  text-decoration: none;
  border-radius: var(--r-sm);
}
.menu a:hover,
.menu a[aria-current] {
  background: var(--blue-soft);
}
.menu-title {
  font-weight: var(--fw-bold);
  color: var(--ink);
}
.menu a[aria-current] .menu-title {
  color: var(--blue);
}
.menu-blurb {
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--muted);
}

/* ---------- shell ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr) var(--toc-w);
  max-width: 1480px;
  margin-inline: auto;
  align-items: start;
}
.layout-home .shell {
  display: block;
  max-width: none;
}
.layout-wide .shell {
  grid-template-columns: var(--side-w) minmax(0, 1fr);
}

.side {
  position: sticky;
  top: var(--top-h);
  height: calc(100vh - var(--top-h));
  overflow-y: auto;
  padding: 26px 14px 40px 20px;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}
.layout-home .side {
  display: none;
}
.side-all {
  display: none;
}
.side-pages .side-home {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--ink);
}
.side-group {
  margin-top: 4px;
}
.side-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-sm);
}
.side-group > summary::-webkit-details-marker {
  display: none;
}
.side-group > summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-right: 1.6px solid var(--faint);
  border-bottom: 1.6px solid var(--faint);
  transform: rotate(-45deg);
}
.side-group[open] > summary::after {
  transform: rotate(45deg);
}
.side-group > summary:hover {
  background: var(--wash);
}
.side ul {
  list-style: none;
  margin: 0 0 6px;
  padding: 0 0 0 8px;
}
.side-pages a {
  display: block;
  padding: 6px 10px;
  font-size: var(--fs-md);
  line-height: 1.35;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.side-pages a:hover {
  background: var(--wash);
  color: var(--ink);
}
.side-pages a[aria-current] {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: var(--fw-bold);
}

.main {
  min-width: 0;
  padding: 34px clamp(20px, 4vw, 56px) 72px;
}
.doc {
  max-width: var(--column);
  margin-inline: auto;
}
.crumbs {
  display: flex;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--faint);
  margin-bottom: 14px;
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.doc-head {
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  font-weight: var(--fw-heading);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede {
  margin: 14px 0 0;
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--muted);
  max-width: var(--measure);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 16px 0 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.meta-type {
  padding: 2px 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 99px;
}
.meta-tutorial,
.meta-how-to {
  color: var(--green);
  background: var(--green-soft);
}
.meta-troubleshooting {
  color: var(--amber);
  background: var(--amber-soft);
}
.meta-reference,
.meta-release-notes {
  color: var(--ink-2);
  background: var(--wash-2);
}

/* a guide's landing page */
.guide-contents {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.prose .contents-group h2 {
  margin: 32px 0 8px;
  font-size: var(--fs-h4);
}
.prose .contents-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.prose .contents-group li {
  display: grid;
  grid-template-columns: minmax(180px, 250px) 1fr;
  gap: 2px 24px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.contents-group li a {
  font-weight: var(--fw-bold);
}
.contents-group li span {
  color: var(--muted);
  font-size: var(--fs-md);
}

/* ---------- prose ---------- */
.prose > :first-child {
  margin-top: 0;
}
.prose h2 {
  margin: 48px 0 16px;
  font-family: var(--display);
  font-size: var(--fs-h2);
  line-height: 1.25;
  font-weight: var(--fw-heading);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.prose h3 {
  margin: 32px 0 10px;
  font-family: var(--display);
  font-size: var(--fs-h3);
  line-height: 1.3;
  font-weight: var(--fw-bold);
}
.prose h4 {
  margin: 24px 0 8px;
  font-family: var(--display);
  font-size: var(--fs-h4);
  line-height: 1.35;
  font-weight: var(--fw-bold);
}
.prose p,
.prose ul,
.prose ol,
.prose dl {
  margin: 0 0 1em;
}
.prose p,
.prose li,
.prose dd,
.prose blockquote {
  max-width: var(--measure);
}
.prose li > :is(figure, .code-group, .table-wrap),
.prose td p,
.prose .contents-group li,
.prose .flow-steps > li {
  max-width: none;
}
.prose ul,
.prose ol {
  padding-left: 24px;
}
.prose li {
  margin: 5px 0;
}
.prose li > ul,
.prose li > ol {
  margin: 5px 0;
}
.prose li::marker {
  color: var(--faint);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.prose strong {
  font-weight: var(--fw-bold);
}
.prose blockquote {
  margin: 0 0 16px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
}
.anchor {
  margin-left: 8px;
  font-weight: 400;
  color: var(--faint);
  text-decoration: none;
  opacity: 0;
}
h2:hover .anchor,
h3:hover .anchor,
h4:hover .anchor,
.anchor:focus-visible {
  opacity: 1;
}
a.ext::after {
  content: "↗";
  display: inline-block;
  margin-left: 2px;
  font-size: 0.8em;
  text-decoration: none;
}
.btn-console.ext::after {
  margin-left: 6px;
}
:not(pre) > code {
  font-family: var(--mono);
  font-size: 0.875em;
  padding: 2px 5px;
  background: var(--wash-2);
  border-radius: 4px;
  overflow-wrap: anywhere;
}
a > code {
  color: inherit;
}
.contains-task-list {
  list-style: none;
  padding-left: 4px;
}
.task-list-item-checkbox {
  margin-right: 8px;
}
.footnotes {
  margin-top: 40px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* tables */
.table-wrap {
  margin: 0 0 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
}
th,
td {
  padding: 9px 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: var(--fw-bold);
  background: var(--wash);
  white-space: nowrap;
}
tr:last-child > td {
  border-bottom: 0;
}
td code {
  white-space: nowrap;
}
.ta-right {
  text-align: right;
}
.ta-center {
  text-align: center;
}

/* callouts */
.callout {
  margin: 0 0 20px;
  padding: 13px 16px 14px;
  border: 1px solid var(--blue-line);
  border-radius: var(--r);
  background: var(--blue-soft);
}
.callout > :last-child {
  margin-bottom: 0;
}
.prose .callout-title,
.callout-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
  font-weight: var(--fw-bold);
  color: var(--blue-strong);
}
.callout-title::before {
  content: "i";
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: var(--fs-xs);
  font-weight: var(--fw-heading);
  line-height: 1;
  color: var(--paper);
  background: var(--blue);
}
.callout-tip {
  border-color: color-mix(in srgb, var(--green) 30%, transparent);
  background: var(--green-soft);
}
.callout-tip .callout-title {
  color: var(--green);
}
.callout-tip .callout-title::before {
  content: "✓";
  background: var(--green);
}
.callout-warning {
  border-color: color-mix(in srgb, var(--amber) 35%, transparent);
  background: var(--amber-soft);
}
.callout-warning .callout-title {
  color: var(--amber);
}
.callout-warning .callout-title::before {
  content: "!";
  background: var(--amber);
}
.callout-danger {
  border-color: color-mix(in srgb, var(--red) 35%, transparent);
  background: var(--red-soft);
}
.callout-danger .callout-title {
  color: var(--red);
}
.callout-danger .callout-title::before {
  content: "!";
  background: var(--red);
}

/* steps */
.steps > ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 20px;
}
.steps > ol > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 2px 0 18px 44px;
}
.steps > ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
}
.steps > ol > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 32px;
  bottom: 4px;
  width: 1px;
  background: var(--line-strong);
}
.steps > ol > li > :last-child {
  margin-bottom: 0;
}

details.more {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 16px;
}
details.more > summary {
  padding: 11px 0;
  font-weight: var(--fw-bold);
  cursor: pointer;
}
details.more[open] > summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

/* code */
.code {
  margin: 0 0 20px;
  border-radius: var(--r);
  background: var(--code-bg);
  border: 1px solid var(--code-line);
  overflow: hidden;
}
.code figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 6px 0 14px;
  font-size: var(--fs-xs);
  color: #9aa7c7;
  border-bottom: 1px solid var(--code-line);
}
.code-name {
  font-family: var(--mono);
  color: #cdd6ee;
}
.code-lang {
  color: #8391b3;
}
.copy {
  margin-left: auto;
  padding: 4px 10px;
  font: inherit;
  font-weight: var(--fw-medium);
  color: #cdd6ee;
  background: none;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  visibility: hidden;
}
.js .copy {
  visibility: visible;
}
.copy:hover {
  background: #17223f;
  border-color: var(--code-line);
}
.copy[data-copied] {
  color: #7fe394;
}
.code pre {
  margin: 0;
  padding: 14px 16px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--code-ink);
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: #34446e transparent;
}
.code pre:focus-visible {
  outline-offset: -3px;
  outline-color: #9db4ff;
}
.code code {
  font: inherit;
}
.hljs-comment,
.hljs-quote,
.hljs-meta {
  color: #8391b3;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-tag,
.hljs-name,
.hljs-section,
.hljs-doctag {
  color: #94b3ff;
}
.hljs-string,
.hljs-addition,
.hljs-regexp,
.hljs-template-string {
  color: #9be3a8;
}
.hljs-number,
.hljs-literal,
.hljs-symbol,
.hljs-bullet,
.hljs-variable.constant_ {
  color: #f5c26b;
}
.hljs-title,
.hljs-title.function_,
.hljs-title.class_ {
  color: #d5bcff;
}
.hljs-attr,
.hljs-attribute,
.hljs-property,
.hljs-built_in,
.hljs-type,
.hljs-selector-class,
.hljs-selector-id {
  color: #7fd6e8;
}
.hljs-variable,
.hljs-template-variable,
.hljs-params {
  color: #e6eaf5;
}
.hljs-deletion {
  color: #ff9cae;
}
.hljs-emphasis {
  font-style: italic;
}
.hljs-strong {
  font-weight: var(--fw-bold);
}

.code-group {
  margin: 0 0 20px;
}
.code-group .code {
  margin-bottom: 10px;
}
.code-group.is-tabbed {
  border-radius: var(--r);
  background: var(--code-bg);
  border: 1px solid var(--code-line);
  overflow: hidden;
}
.code-group.is-tabbed .code {
  margin: 0;
  border: 0;
  border-radius: 0;
}
.code-group.is-tabbed .code-name {
  display: none;
}
.tablist {
  display: flex;
  gap: 2px;
  padding: 6px 8px 0;
  border-bottom: 1px solid var(--code-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tablist button {
  padding: 7px 12px 8px;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: #9aa7c7;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
}
.tablist button:hover {
  color: #e6eaf5;
}
.tablist button[aria-selected="true"] {
  color: #ffffff;
  border-bottom-color: #9db4ff;
}
.tablist button:focus-visible {
  outline-color: #9db4ff;
  outline-offset: -2px;
}

/* screenshots */
.shot {
  margin: 0 0 22px;
}
.shot-link {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--wash);
  cursor: zoom-in;
}
.shot img {
  display: block;
  max-width: 100%;
  height: auto;
}
.shot figcaption {
  margin-top: 8px;
  font-size: var(--fs-sm);
  color: var(--faint);
}
.lightbox {
  width: fit-content;
  max-width: min(96vw, 1500px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: auto;
}
.lightbox::backdrop {
  background: rgba(6, 11, 23, 0.72);
}
.lightbox img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  cursor: zoom-out;
}

/* ---------- page footer ---------- */
.doc-foot {
  margin-top: 56px;
}
.updated {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 0 18px;
  font-size: var(--fs-sm);
  color: var(--faint);
}
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pager a {
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
}
.pager a:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.pager-next {
  text-align: right;
}
.pager-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--faint);
}
.pager-next .pager-label {
  justify-content: flex-end;
}
.pager-title {
  font-weight: var(--fw-bold);
  color: var(--blue);
}

/* ---------- on this page ---------- */
.toc {
  position: sticky;
  top: var(--top-h);
  max-height: calc(100vh - var(--top-h));
  overflow-y: auto;
  padding: 38px 20px 40px 8px;
  font-size: var(--fs-sm);
  scrollbar-width: thin;
}
.toc-title {
  margin: 0 0 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--faint);
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.toc a {
  display: block;
  padding: 4px 0 4px 14px;
  margin-left: -1px;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.toc-3 a {
  padding-left: 28px;
}
.toc a:hover {
  color: var(--ink);
}
.toc a.is-active {
  color: var(--blue);
  border-left-color: var(--blue);
  font-weight: var(--fw-bold);
}

/* ---------- site footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--wash);
}
.foot-inner {
  max-width: 1480px;
  margin-inline: auto;
  padding: 26px 20px 34px;
  display: grid;
  gap: 12px;
}
.foot-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px 24px;
  font-size: var(--fs-sm);
}
.foot-col {
  display: grid;
  gap: 5px;
  align-content: start;
}
.foot-col p {
  margin: 0 0 2px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--faint);
}
.foot-links a {
  color: var(--ink-2);
  text-decoration: none;
}
.foot-links a:hover {
  text-decoration: underline;
}
.foot-note {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 80ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  font: inherit;
  font-weight: var(--fw-bold);
  color: #ffffff;
  background: #0b2fa8;
  border: 1px solid #0b2fa8;
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: #071e6e;
}
.btn-quiet {
  color: var(--blue);
  background: none;
  border-color: var(--blue-line);
}
.btn-quiet:hover {
  background: var(--blue-soft);
}

/* ---------- search ---------- */
.search {
  width: min(680px, calc(100vw - 24px));
  max-height: min(640px, calc(100vh - 80px));
  margin: 64px auto auto;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.search[open] {
  display: flex;
  flex-direction: column;
}
.search::backdrop {
  background: rgba(6, 11, 23, 0.55);
}
.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--line);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  color: var(--faint);
}
.search-field input {
  flex: 1;
  min-width: 0;
  height: 40px;
  font: inherit;
  font-size: var(--fs-base);
  color: var(--ink);
  background: none;
  border: 0;
  outline: 0;
}
.search-field input::-webkit-search-cancel-button {
  display: none;
}
.search-close {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  padding: 4px 8px;
  color: var(--muted);
  background: var(--wash);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  cursor: pointer;
}
.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
}
.search-filters button {
  padding: 3px 11px;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  cursor: pointer;
}
.search-filters button:hover {
  color: var(--ink);
}
.search-filters button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.search-body {
  flex: 1;
  overflow-y: auto;
  min-height: 80px;
}
.search-status {
  margin: 0;
  padding: 14px 18px 6px;
  font-size: var(--fs-sm);
  color: var(--faint);
}
.search-status:empty {
  display: none;
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 6px 8px 10px;
}
.search-results a {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ink);
}
.search-results li.is-selected a,
.search-results a:hover {
  background: var(--blue-soft);
}
.result-path {
  font-size: var(--fs-xs);
  color: var(--faint);
}
.result-title {
  font-weight: var(--fw-bold);
}
.result-text {
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
mark {
  background: var(--mark);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.search-hint {
  margin: 0;
  padding: 9px 16px;
  font-size: var(--fs-sm);
  color: var(--faint);
  border-top: 1px solid var(--line);
  background: var(--wash);
}
.search-hint kbd {
  margin-right: 3px;
}

/* ---------- home and standalone pages ---------- */
.home {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0 20px 80px;
}
.not-found {
  padding-top: 64px;
}
.not-found .lede {
  margin-bottom: 22px;
}
.section-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.section-list li {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.section-list a {
  font-weight: var(--fw-bold);
}
.section-list span {
  color: var(--muted);
}

/* ---------- small screens ---------- */
@media (max-width: 1180px) {
  .shell {
    grid-template-columns: var(--side-w) minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
}
@media (max-width: 860px) {
  :root {
    --top-h: 58px;
    --fs-h1: 2rem;
    --fs-h2: 1.5rem;
    --fs-h3: 1.25rem;
    --fs-h4: 1.0625rem;
  }
  .tabs {
    display: none;
  }
  .nav-toggle {
    display: grid;
    margin-left: -8px;
  }
  .btn-console,
  .search-btn kbd {
    display: none;
  }
  .search-btn {
    flex: 0 1 auto;
    margin-left: auto;
    margin-right: 0;
  }
  .shell,
  .layout-wide .shell {
    display: block;
  }
  .side,
  .layout-home .side {
    display: block;
    position: fixed;
    inset: var(--top-h) auto 0 0;
    z-index: 35;
    width: min(320px, 86vw);
    height: auto;
    padding: 18px 14px 40px;
    background: var(--paper);
    border-right: 1px solid var(--line);
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform 0.18s ease, visibility 0.18s;
  }
  .nav-open .side {
    transform: none;
    visibility: visible;
    box-shadow: var(--shadow);
  }
  .scrim {
    position: fixed;
    inset: var(--top-h) 0 0 0;
    z-index: 30;
    background: rgba(6, 11, 23, 0.45);
  }
  .side-all {
    display: grid;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .side-area {
    display: grid;
    gap: 1px;
  }
  .side-area-title {
    margin: 0;
    padding: 0 10px 2px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--faint);
  }
  .side-all a {
    padding: 6px 10px;
    font-weight: var(--fw-bold);
    font-size: var(--fs-md);
    color: var(--ink-2);
    text-decoration: none;
    border-radius: var(--r-sm);
  }
  .side-all a[aria-current] {
    color: var(--blue);
    background: var(--blue-soft);
  }
  .prose .contents-group li {
    grid-template-columns: 1fr;
  }
  .main {
    padding-top: 24px;
  }
  .section-list li {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .search-btn-text {
    display: none;
  }
  .search-btn {
    width: 36px;
    padding: 0;
    justify-content: center;
    background: none;
    border-color: transparent;
    color: var(--muted);
  }
  .brand-name {
    font-size: var(--fs-md);
  }
  .pager {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .top,
  .side,
  .toc,
  .foot,
  .pager,
  .copy,
  .anchor,
  .scrim {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .main {
    padding: 0;
  }
  .doc {
    max-width: none;
  }
  .code {
    border: 1px solid #999;
    background: #fff;
  }
  .code pre,
  .code pre * {
    color: #000 !important;
    white-space: pre-wrap;
  }
  .code-group.is-tabbed .code[hidden] {
    display: block !important;
  }
  a.ext::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
