@font-face {
  font-family: Golos;
  src: url('GolosText.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #101014;
  --panel: #18181f;
  --line: #30303b;
  --ink: #f1f0f7;
  --muted: #b1b0be;
  --accent: #c6b7ff;
  --display: Golos, system-ui, sans-serif;
  --mono: Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5.5rem; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.65 var(--display); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .23em; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { cursor: default; opacity: .4; }
[hidden] { display: none !important; }
p { overflow-wrap: anywhere; }
code, pre, kbd { font-family: var(--mono); }
p code, td code, li code { color: #e4dff6; background: #22212a; border-radius: 4px; padding: .08em .32em; overflow-wrap: anywhere; }
kbd { border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; font-size: .87em; white-space: nowrap; }
.docs-header {
  position: sticky; top: 0; z-index: 5; height: 62px; display: flex; align-items: center; gap: 25px;
  padding-inline: max(24px, calc((100% - 1216px)/2)); background: #101014f5; border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -.05em; }
.header-link, .bot-link { font-size: 13px; }
.bot-link { color: var(--ink); padding: 5px 12px; border: 1px solid var(--line); border-radius: 7px; }
.docs-layout { display: grid; grid-template-columns: 208px minmax(0, 860px); gap: clamp(32px, 6vw, 86px); max-width: 1264px; margin: auto; padding: 0 24px; }
.docs-layout aside { position: sticky; top: 86px; align-self: start; margin-top: 36px; max-height: calc(100dvh - 106px); overflow-y: auto; }
.nav-caption, .eyebrow, .copy-line small { font: 10px/1.5 var(--mono); letter-spacing: .13em; color: var(--muted); }
.nav-caption { margin: 0 0 14px; }
.docs-search { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; margin: 0 0 14px; }
.docs-search:focus-within { border-color: var(--accent); }
.docs-search span { font-size: 19px; color: var(--accent); line-height: 1; }
.docs-search input { min-width: 0; width: 100%; color: var(--ink); outline: 0; border: 0; background: none; font-size: 12px; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a { color: var(--muted); padding: 6px 10px; border-radius: 5px; font-size: 13px; }
nav a[aria-current=location] { background: #26232f; color: var(--accent); }
.other-guides { display: block; margin-top: 18px; padding: 14px 10px; border-top: 1px solid var(--line); font-size: 12px; }
#search-empty { color: var(--muted); font-size: 12px; }
main { min-width: 0; }
.docs-intro { padding: 47px 0 32px; }
.docs-intro h1 { margin: 12px 0 10px; max-width: 760px; font-size: clamp(34px,4.4vw,64px); font-weight: 650; letter-spacing: -.063em; line-height: 1.04; }
.docs-intro h1 em { color: var(--accent); font-style: normal; white-space: nowrap; }
.docs-intro > p:not(.eyebrow) { max-width: 590px; color: var(--muted); }
.quick-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 24px; }
.quick-track a { display: grid; grid-template-columns: 18px 1fr; align-content: start; gap: 3px 7px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink); }
.quick-track a:hover { border-color: var(--accent); text-decoration: none; }
.quick-track i { grid-row: span 2; color: var(--accent); font-style: normal; }
.quick-track b { font-size: 13px; }
.quick-track span { font-size: 11px; color: var(--muted); }
section { padding: 28px 0; border-top: 1px solid var(--line); }
section > p, .steps p, .editor-options p, .note p { color: var(--muted); }
.section-heading h2 { font-size: clamp(23px, 3vw, 32px); font-weight: 600; letter-spacing: -.045em; line-height: 1.19; margin: 0 0 16px; }
section h3 { margin: 5px 0; font-size: 24px; letter-spacing: -.04em; }
.steps { list-style: none; counter-reset: steps; margin: 0; padding: 0; }
.steps li { counter-increment: steps; position: relative; margin: 0 0 14px; padding-left: 32px; }
.steps li::before { content: counter(steps, decimal-leading-zero); position: absolute; top: .4em; left: 0; font: 11px var(--mono); color: var(--accent); }
.steps p { margin: 4px 0; font-size: 13px; }
.steps strong { font-weight: 600; }
.route-switch { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 20px 0 9px; border: 0; }
.route-switch legend { font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.route-switch label { position: relative; cursor: pointer; }
.route-switch input { position: absolute; opacity: 0; }
.route-switch span { display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.route-switch input:checked + span { color: var(--accent); border-color: #796996; background: #282330; }
.route-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.copy-line, .code-card, .note, .editor-options details { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.copy-line, .code-toolbar, .download-card, footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.copy-line { padding: 12px 16px; }
.copy-line > div { min-width: 0; }
.copy-line small { display: block; }
.copy-line code { overflow-wrap: anywhere; font-size: 13px; }
.copy-line button, .code-toolbar button { border: none; border-radius: 4px; background: transparent; color: var(--accent); font-size: 12px; padding: 4px; }
.copy-line button:hover, .code-toolbar button:hover { background: #302a3e; }
.code-card { background: #141419; overflow: hidden; margin: 14px 0; }
.code-toolbar { border-bottom: 1px solid var(--line); padding: 6px 14px; color: var(--muted); font-size: 12px; }
.code-card pre, .checksum pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px; margin: 0; color: #e2deef; font: 12px/1.7 var(--mono); }
.command-panel { margin-top: 8px; border-bottom: 1px solid var(--line); }
.command-panel summary, .editor-options summary { font-size: 14px; padding: 7px 0; font-weight: 550; }
summary span { float: right; color: var(--muted); font: 11px/2 var(--mono); }
.download-card { background: #c7baff; color: #18131e; padding: 17px 21px; border-radius: 8px; margin: 15px 0 20px; }
.download-card p, .download-card .eyebrow { color: #3c334b; margin: 0; }
.download-button { flex: none; background: #231c2c; padding: 10px 14px; border-radius: 6px; color: white; font-size: 13px; }
.checksum, .source-link, .small { font-size: 12px; color: var(--muted); }
.checksum { margin: 0 0 15px; }
.checksum .copy-line { margin: 8px 0; }
.note, .editor-options details { padding: 10px 16px; margin: 10px 0; }
.note p { margin: 3px 0; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel); font-weight: 500; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { min-width: 105px; }
footer { border-top: 1px solid var(--line); padding: 20px 0 34px; color: var(--muted); font-size: 12px; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #21182b; padding: 8px 14px; border-radius: 6px; opacity: 0; pointer-events: none; font-size: 12px; text-align: center; }
.toast.visible { opacity: 1; }

@media (max-width: 800px) {
  .docs-layout { display: block; }
  .docs-layout aside { position: static; overflow: visible; max-height: none; margin-top: 18px; }
  nav { flex-direction: row; overflow-x: auto; padding: 0 2px 6px; }
  nav a { flex: none; font-size: 12px; }
  .nav-caption, .other-guides { display: none; }
  .docs-search { max-width: 350px; margin-bottom: 7px; }
  .docs-intro { padding-top: 26px; }
}
@media (max-width: 545px) {
  .docs-header, .docs-layout { padding-inline: 16px; }
  .docs-header { height: 54px; gap: 9px; }
  .header-link { display: none; }
  .quick-track { grid-template-columns: 1fr; gap: 5px; }
  .quick-track a { grid-template-columns: 17px 1fr auto; align-items: center; padding: 8px 10px; }
  .quick-track i { grid-row: auto; }
  .docs-intro { padding-bottom: 22px; }
  .download-card { flex-wrap: wrap; }
  .code-card pre { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

