:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f3f7f4;
  background: #050806;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --mint: #a0f6b8;
  --muted: #aab6ae;
  --line: #25332a;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--mint); text-underline-offset: .22em; }
a:hover { color: #e3ffeb; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 5px;
  border-radius: 3px;
}
.page-shell { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: .75rem; left: 1rem; padding: .8rem 1rem; background: #14391e; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 6rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: #f3f7f4; text-decoration: none; font-size: 1.2rem; font-weight: 750; letter-spacing: .18em; }
.brand span { color: var(--mint); }
.language-switcher { display: flex; flex-wrap: wrap; gap: .4rem; }
.language-switcher a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem .75rem; color: var(--muted); font-size: .875rem; text-decoration: none; border-radius: .5rem; }
.language-switcher a[aria-current="page"] { color: var(--mint); background: #112117; }
.document-header { padding-block: 4rem 3.25rem; max-width: 68ch; }
.eyebrow { margin: 0 0 1.2rem; color: var(--mint); font-size: .75rem; letter-spacing: .16em; font-weight: 650; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.25rem, 4.8vw, 4rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 650; overflow-wrap: anywhere; }
.revision { margin: 1.25rem 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.revision time { color: #e0e8e2; }
.document-layout { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: 4rem; align-items: start; padding-bottom: 5rem; }
.toc-desktop { position: sticky; top: 1.5rem; padding-bottom: 1rem; }
.toc-title { margin: 0 0 .85rem; color: #e0e8e2; font-size: .8rem; font-weight: 650; letter-spacing: .05em; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin: 0; padding: 0; }
.toc-list a { display: flex; align-items: center; min-height: 44px; padding: .5rem 0; color: var(--muted); font-size: .875rem; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.toc-list a:hover { color: var(--mint); }
.toc-mobile { display: none; }
.document-body { width: 100%; max-width: 68ch; min-width: 0; font-size: 1.0625rem; line-height: 1.8; color: #c9d4cd; overflow-wrap: anywhere; }
.document-body:focus { outline: none; }
.document-body > :first-child { margin-top: 0; }
.document-body h2 { margin: 3rem 0 1rem; color: #f3f7f4; font-size: 1.4rem; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; scroll-margin-top: 2rem; }
.document-body h3 { margin: 2rem 0 .7rem; color: #f3f7f4; font-size: 1.125rem; line-height: 1.4; }
.document-body p, .document-body ul, .document-body ol { margin: 0 0 1.25rem; }
.document-body ul, .document-body ol { padding-left: 1.4rem; }
.document-body li { padding-left: .25rem; margin-block: .65rem; }
.document-body li::marker { color: var(--mint); }
.document-body strong { color: #eaf2ed; font-weight: 650; }
.document-body code { font-size: .92em; }
.document-body a { overflow-wrap: anywhere; }
.site-footer { padding-block: 2rem 2.5rem; border-top: 1px solid var(--line); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.footer-nav a, .footer-meta a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; text-decoration: none; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1rem; }
.footer-meta p { margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }

@media (max-width: 860px) {
  .document-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .toc-desktop { display: none; }
  .toc-mobile { display: block; border-block: 1px solid var(--line); }
  .toc-mobile summary { min-height: 56px; padding: 1rem .2rem; color: var(--mint); font-size: .9375rem; font-weight: 600; cursor: pointer; }
  .toc-mobile nav { padding: 0 .25rem 1rem; }
  .document-header { padding-block: 3rem 2.25rem; }
}

@media (max-width: 540px) {
  .page-shell { width: calc(100% - 2rem); }
  .site-header { gap: .5rem; min-height: 5rem; }
  .brand { font-size: 1rem; letter-spacing: .14em; }
  .language-switcher { gap: .1rem; }
  .language-switcher a { padding-inline: .5rem; font-size: .8125rem; }
  .document-body { font-size: 1rem; line-height: 1.75; }
  .document-body h2 { font-size: 1.3rem; margin-top: 2.5rem; }
  .document-layout { padding-bottom: 3.5rem; }
  .footer-nav { flex-direction: column; gap: 0; align-items: flex-start; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
}

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