:root {
  color-scheme: dark;
  --bg: #0f2138;
  --surface: #142b46;
  --ink: #f6f9fc;
  --muted: #a6b6c9;
  --line: #2a405a;
  --accent: #29a9e8;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.75 'Hanken Grotesk Variable', 'Onest Variable', system-ui, sans-serif; overflow-wrap: anywhere; }
a { color: #70ccfa; text-underline-offset: 4px; }
a:hover { color: #b9e7ff; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
.skip { position: absolute; top: -100px; inset-inline-start: 24px; padding: 12px 20px; background: var(--surface); z-index: 10; }
.skip:focus { top: 12px; }
.site-header, main, .site-footer { width: min(1184px, calc(100% - 64px)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 100px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; color: white; flex-shrink: 0; text-decoration: none; }
.brand:hover { color: white; }
.brand-logo { display: block; }
.header-actions { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.home-link { color: var(--muted); text-decoration: none; }
.home-link span { margin-inline-start: 6px; }
.language-picker { position: relative; z-index: 5; }
.language-picker summary { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; list-style: none; background: var(--bg); }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker[open] summary, .language-picker summary:hover { border-color: var(--accent); }
.chevron { margin-inline-start: 4px; }
.languages { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: 400px; max-width: calc(100vw - 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 48px #0006; }
.languages a { padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.languages a:hover, .languages a[aria-current] { background: #29a9e820; color: var(--ink); }
.languages a[aria-current] { box-shadow: inset 0 0 0 1px #29a9e860; }
.document-heading { padding: 32px 0 52px; }
.document-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; font-size: 14px; }
.document-nav a { color: var(--muted); padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; }
.document-nav a:hover { color: var(--ink); background: var(--surface); }
.document-nav a[aria-current] { color: #8ad7ff; border-color: #29a9e84d; background: #29a9e812; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
h1 { max-width: 1000px; font-size: clamp(32px, 4.8vw, 60px); line-height: 1.1; font-weight: 650; letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; }
.version { margin: 0; color: var(--muted); font-size: 14px; }
.version span { margin-inline: 7px; }
.document-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 64px; border-top: 1px solid var(--line); padding-top: 40px; }
aside { min-width: 0; }
.toc { position: sticky; top: 28px; padding-inline-end: 24px; max-height: calc(100vh - 56px); overflow-y: auto; scrollbar-width: thin; }
.toc h2 { margin: 0 0 20px; font-size: 14px; font-weight: 650; color: var(--ink); }
.toc ol { padding-inline-start: 20px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.toc li { padding-inline-start: 3px; margin: 0 0 13px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: #70ccfa; }
article { min-width: 0; }
section { padding: 0 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
section h2 { font-size: 25px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; margin: 0 0 22px; }
p { margin: 16px 0; }
section > :last-child { margin-bottom: 0; }
section p, section li, section dd { color: #c5d1df; }
strong { font-weight: 650; color: var(--ink); }
ul, ol { padding-inline-start: 24px; }
li { margin: 10px 0; }
li::marker { color: var(--accent); }
dt { margin-top: 18px; font-weight: 650; }
dd { margin: 4px 0 0; }
.back-top { display: inline-block; margin-bottom: 36px; font-size: 14px; text-decoration: none; }
.back-top span { margin-inline-start: 6px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 28px 36px; color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--muted); text-decoration: none; }
[dir='rtl'] .eyebrow, [dir='rtl'] h1, [dir='rtl'] h2 { letter-spacing: normal; }
@media (max-width: 900px) {
  .document-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; max-height: none; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #0d1d31; }
  .toc ol { columns: 2; column-gap: 36px; }
  .toc li { break-inside: avoid; }
  article { max-width: 760px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header, main, .site-footer { width: calc(100% - 40px); }
  .site-header { min-height: 84px; gap: 12px; }
  .brand-logo { width: 119px; height: auto; }
  .header-actions { gap: 0; }
  .home-link { display: none; }
  .language-picker summary { padding: 8px 10px; gap: 6px; font-size: 12px; }
  .language-picker summary bdi { max-width: 104px; }
  .language-picker summary > svg { display: none; }
  .languages { font-size: 13px; padding: 8px; }
  .languages a { padding: 8px; }
  .document-heading { padding: 24px 0 32px; }
  .document-nav { margin-bottom: 32px; gap: 6px; font-size: 12px; }
  .document-nav a { padding: 7px 10px; }
  h1 { font-size: clamp(29px, 8vw, 42px); }
  .document-layout { padding-top: 24px; }
  .toc { padding: 20px; }
  .toc ol { columns: 1; }
  section h2 { font-size: 22px; }
  section { padding-bottom: 24px; margin-bottom: 24px; }
}
@media print {
  :root { color-scheme: light; --bg: #fff; --ink: #000; --muted: #333; --line: #ccc; --accent: #333; }
  body { font-size: 11pt; }
  main { width: 100%; }
  .site-header, .site-footer, aside, .document-nav, .skip, .back-top { display: none; }
  .document-heading { padding: 0 0 20px; }
  .document-layout { display: block; border: 0; padding: 0; }
  article { max-width: none; }
  section { padding-bottom: 14px; margin-bottom: 14px; }
  section p, section li, section dd, a { color: #000; }
  h1 { font-size: 24pt; }
  section h2 { font-size: 14pt; break-after: avoid; }
  p, li, dd { orphans: 3; widows: 3; }
  a { text-decoration: none; }
}
