:root {
  --bg: #ffffff; --bg-2: #f5f6f8; --card: #ffffff; --ink: #19232e; --ink-2: #4a5563; --muted: #7a8595; --rule: #e4e7ec; --rule-2: #cfd5dd;
  --navy: #1e2d3b; --on-navy: #ffffff; --accent: #0e7c86; --accent-ink: #0b616a; --accent-tint: #e3f2f3; --coral: #e8463a;
  --gap: #b7791f; --gap-tint: #fff6e5; --img-light: block; --img-dark: none; --focus: #0e7c86;
  --sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0f141a; --bg-2: #151b23; --card: #1a212b; --ink: #eef1f4; --ink-2: #b9c2cc; --muted: #8b96a3; --rule: #273039; --rule-2: #39434f;
  --navy: #eef1f4; --on-navy: #0f141a; --accent: #3fb3bd; --accent-ink: #8bdbe2; --accent-tint: #173039; --coral: #ff6f64;
  --gap: #e2a84a; --gap-tint: #33281a; --img-light: none; --img-dark: block; --focus: #3fb3bd; color-scheme: dark }
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.6; padding-inline: 16px; padding-block: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
img.img-light { display: var(--img-light) !important; } img.img-dark { display: var(--img-dark) !important; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(34px, 4.5vw, 48px); letter-spacing: -0.03em; }
h2 { font-size: 24px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); }
h3 { font-size: 18px; margin-top: 22px; }
p, ul, ol { margin: 12px 0 0; }
ul, ol { padding-left: 22px; }
li { margin-top: 6px; }
li::marker { color: var(--muted); }
.wrap { max-width: 1200px; margin-inline: auto; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); margin-inline: -16px; padding-inline: 16px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand img { height: 32px; width: auto; }
.top .back { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.top .back::before { content: "\2190 "; margin-right: 6px; }
.page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-block: 64px 96px; align-items: start; }
.toc { position: sticky; top: 96px; display: grid; gap: 6px; font-size: 14px; }
.toc b { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.toc a { color: var(--ink-2); padding: 4px 0; }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc .other { display: grid; gap: 6px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.doc { max-width: 72ch; }
.doc .eyebrow { font-size: 14px; font-weight: 600; color: var(--coral); }
.doc .meta { margin-top: 14px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 20px; }
.doc .lede { font-size: 19px; color: var(--ink-2); margin-top: 20px; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); font-weight: 600; }
.gap { display: inline-block; border: 1.5px dashed var(--gap); background: var(--gap-tint); color: var(--gap); border-radius: 6px; padding: 0 7px; font-size: 0.92em; font-weight: 500; white-space: nowrap; }
table { border-collapse: collapse; width: 100%; margin-top: 14px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
th { color: var(--ink); font-weight: 600; font-size: 14px; }
.table-wrap { overflow-x: auto; }
footer { border-top: 1px solid var(--rule); padding-block: 32px 48px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
footer a { color: var(--ink-2); }
:where(a, button):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 900px) { .page { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 64px; } .toc { position: static; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
