/* Guided by Unslop by Damir Sokolovsky (@heydamir).
   https://heydamir.design/unslop — CC BY 4.0. */
:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --paper: #fff;
  --ink: #192333;
  --secondary: #465267;
  --muted: #5d697c;
  --line: #e0e6ef;
  --blue: #285bca;
  --pale: #eaf0fd;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 4px; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.skip { position: fixed; top: -80px; left: 24px; padding: 8px 16px; background: var(--paper); z-index: 100; }
.skip:focus { top: 12px; }
.header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .wrap, .footer-inner { max-width: 1160px; margin-inline: auto; padding-inline: 40px; }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 1.125rem; font-weight: 600; text-decoration: none; }
.brand img { border-radius: 8px; }
.header-right { display: flex; align-items: center; gap: 32px; }
.support { font-size: .875rem; color: var(--muted); text-decoration: none; }
.support:hover { color: var(--blue); }
.language { display: flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 10px; }
.language a { display: grid; place-items: center; min-width: 40px; min-height: 32px; padding-inline: 8px; border-radius: 6px; font-size: .875rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.language a[aria-current] { color: var(--blue); background: var(--pale); }
.breadcrumb { display: flex; align-items: center; gap: 12px; padding-top: 32px; color: var(--muted); font-size: .875rem; }
.hero { padding-block: 32px 40px; border-bottom: 1px solid var(--line); }
.hero-copy { max-width: 880px; }
h1 { max-width: 880px; margin: 0 0 24px; font-size: clamp(2.25rem, 4.2vw, 3.25rem); font-weight: 500; line-height: 1.15; letter-spacing: -.03em; }
.updated { margin: 0; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.document-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 40px 80px; }
.sidebar { position: sticky; top: 104px; }
.toc-title { margin: 0 0 16px; font-size: .875rem; font-weight: 500; }
.toc { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.toc a { display: flex; align-items: center; min-height: 36px; padding: 8px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: .875rem; line-height: 1.45; text-decoration: none; transition: color 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease); }
.toc a:hover { color: var(--blue); background: var(--pale); }
.toc a[aria-current] { color: var(--blue); background: var(--pale); border-left-color: var(--blue); font-weight: 500; }
.print { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; margin-top: 24px; background: none; border: 0; color: var(--muted); font: inherit; font-size: .875rem; cursor: pointer; }
.print:hover { color: var(--blue); }
.print svg { width: 16px; height: 16px; }
article { min-width: 0; padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.intro { padding-bottom: 32px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--ink); }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
section { padding-top: 32px; scroll-margin-top: 16px; }
section + section { margin-top: 32px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 16px; font-size: 1.25rem; font-weight: 500; line-height: 1.4; }
article section p, article li { color: var(--secondary); }
ul { margin: 16px 0 24px; padding-left: 24px; }
li { padding-left: 4px; margin-block: 8px; }
li::marker { color: var(--muted); }
article a { overflow-wrap: anywhere; }
.back-top { display: inline-block; margin-top: 32px; color: var(--muted); font-size: .875rem; }
footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 32px; }
.footer-brand { font-size: 1rem; gap: 8px; }
.footer-brand img { border-radius: 6px; }
.footer-inner p { margin: 8px 0 0; color: var(--muted); font-size: .875rem; }
.footer-links { display: flex; align-items: center; gap: 24px; font-size: .875rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
@media (max-width: 1000px) {
  .header-inner, .wrap, .footer-inner { padding-inline: 32px; }
  .document-layout { grid-template-columns: 208px minmax(0, 1fr); gap: 32px; }
  article { padding: 24px; }
}
@media (max-width: 760px) {
  .header-inner, .wrap, .footer-inner { padding-inline: 24px; }
  .brand { gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .header-right { gap: 16px; }
  .support { display: none; }
  .breadcrumb { padding-top: 24px; }
  .hero { padding-block: 24px 32px; }
  h1 { font-size: clamp(1.875rem, 6.8vw, 2.75rem); letter-spacing: -.02em; overflow-wrap: anywhere; }
  .document-layout { display: block; padding-block: 24px 48px; }
  .sidebar { position: static; padding-bottom: 24px; }
  .toc-title { margin-bottom: 12px; }
  .toc { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; border: 0; }
  .toc a { margin: 0; min-height: 44px; padding: 8px; border-radius: 4px; }
  .print { margin-top: 16px; }
  article { padding: 24px; }
  .intro { font-size: 1rem; }
  h2 { font-size: 1.125rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 24px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 380px) {
  .header-inner, .wrap, .footer-inner { padding-inline: 16px; }
  article { padding: 16px; }
  .brand { font-size: 1rem; }
  .language a { min-width: 36px; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #101620; --paper: #171f2c; --ink: #edf2fc; --secondary: #c5cede; --muted: #a9b6cb; --line: #303b4d; --blue: #91b4ff; --pale: #202e49; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  body { background: white; color: #111; }
  .header, .breadcrumb, aside, .back-top, footer, .skip { display: none; }
  .wrap { max-width: 100%; padding: 0; }
  .hero { padding: 0 0 24px; }
  .document-layout { display: block; padding-top: 24px; }
  article { border: 0; padding: 0; }
  .intro, article section p, article li, .updated { color: #333; }
  h1 { font-size: 30pt; }
  h2 { break-after: avoid; }
  a { color: #111; }
  html { scroll-padding-top: 0; }
}
