@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0D0F13; --nav: #0F1216; --surface: #15181E; --inset: #101318;
  --text: #C2C7D0; --strong: #F5F6FA; --muted: #8E95A2; --line: #22262E;
  --accent: #5786FF; --accent-text: #7FA2FF; --accent-soft: #1C2A4D;
  --info: #13324A; --info-line: #2C6A94;
  --overlay: rgba(6, 8, 11, 0.72);
  --font: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F6F7FA; --nav: #FFFFFF; --surface: #FFFFFF; --inset: #F3F4F8;
  --text: #2A2F3A; --strong: #0F1218; --muted: #5C6372; --line: #E1E4EB;
  --accent: #5786FF; --accent-text: #2F5BD8; --accent-soft: #E4ECFF;
  --info: #E3F0FA; --info-line: #9CC6E6;
  --overlay: rgba(22, 21, 31, 0.38);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
kbd { font-family: var(--font); font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--muted); background: var(--bg); }
button { font: inherit; }
svg { flex: none; }

.top { position: sticky; top: 0; z-index: 10; display: flex; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { flex: 0 0 270px; display: flex; align-items: center; padding: 14px 24px; background: var(--nav); border-right: 1px solid var(--line); }
.brand a { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; color: var(--strong); }
.brand a:hover { text-decoration: none; }
.brand span { color: var(--accent); }
.find { flex: 1 1 300px; display: flex; justify-content: center; align-items: center; padding: 12px 20px; }
.search-open { width: 100%; max-width: 540px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; text-align: left; }
.search-open:hover { border-color: var(--accent); }
.search-open svg { width: 17px; height: 17px; }
.search-open span { flex: 1; }
.acts { flex: 0 0 270px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 24px 12px 0; }
.acts .theme, .acts .menu { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.acts svg { width: 18px; height: 18px; }
.acts .moon { display: none; }
:root[data-theme="light"] .acts .sun { display: none; }
:root[data-theme="light"] .acts .moon { display: block; }
.acts .menu { display: none; }
.app { background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 10px; font-weight: 650; white-space: nowrap; }
.app:hover { text-decoration: none; filter: brightness(1.08); }

.frame { flex: 1; display: flex; }
.side { flex: 0 0 270px; padding: 16px 14px 48px; background: var(--nav); border-right: 1px solid var(--line); }
.nav, .nav ul { list-style: none; margin: 0; padding: 0; }
.nav > li > a, .nav summary { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; color: var(--text); font-size: 14.5px; cursor: pointer; }
.nav summary { list-style: none; font-weight: 600; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary svg { width: 14px; height: 14px; transition: transform 0.15s; color: var(--muted); }
.nav details[open] > summary svg { transform: rotate(90deg); }
.nav summary:hover, .nav a:hover { background: var(--surface); color: var(--strong); text-decoration: none; }
.nav details ul { margin: 2px 0 8px 16px; padding-left: 8px; border-left: 1px solid var(--line); }
.nav details li a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.nav details.cur { margin: 4px 0 8px; padding-left: 6px; border-left: 2px solid var(--accent); border-radius: 2px; }
.nav details.cur > summary { color: var(--strong); }
.nav details.cur > ul { margin-left: 14px; padding-left: 0; border-left: 0; }
.nav .sub-label { display: flex; align-items: center; gap: 7px; padding: 10px 10px 3px; font-size: 13px; font-weight: 650; color: var(--text); }
.nav .sub-label svg { width: 13px; height: 13px; color: var(--accent-text); }
.nav details .sub > ul { margin: 0 0 4px 16px; padding-left: 6px; border-left: 1px solid var(--line); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }

.main { flex: 1 1 560px; min-width: 0; max-width: 900px; padding: 36px 48px 72px; }
.crumbs { font-size: 13.5px; color: var(--muted); }
.crumbs span { padding: 0 6px; }
.main h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.025em; color: var(--strong); margin: 8px 0 26px; font-weight: 750; }
.lead { font-size: 17px; color: var(--muted); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.pager a { display: flex; flex-direction: column; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager span { font-size: 13px; color: var(--muted); }
.pager b { color: var(--strong); font-weight: 650; }
.pager .next { grid-column: 2; text-align: right; }

.toc { flex: 0 0 220px; padding: 40px 24px 40px 0; position: sticky; top: 66px; align-self: flex-start; max-height: calc(100vh - 66px); overflow-y: auto; }
.toc-title { font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; padding: 5px 0 5px 14px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.toc a.l3 { padding-left: 26px; }
.toc-head { display: flex; align-items: stretch; }
.toc-head a { flex: 1; min-width: 0; }
.toc-fold { flex: none; width: 24px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 6px; }
.toc-fold:hover { color: var(--strong); background: var(--surface); }
.toc-fold svg { width: 13px; height: 13px; transition: transform 0.15s; }
.toc-group.open .toc-fold svg { transform: rotate(90deg); }
.js .toc-group:not(.open) .toc-kids { display: none; }
.toc a:hover { color: var(--strong); text-decoration: none; }
.toc a.on { border-left-color: var(--accent); color: var(--strong); }
.toc a.blue { border-left-color: var(--hue-blue); }
.toc a.violet { border-left-color: var(--hue-violet); }
.toc a.teal { border-left-color: var(--hue-teal); }
.toc a.amber { border-left-color: var(--hue-amber); }
.toc a.on.blue, .toc a.on.violet, .toc a.on.teal, .toc a.on.amber, .toc a.on.grey { border-left-width: 3px; padding-left: 12px; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 22px 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--strong); }

.search { width: min(700px, calc(100% - 32px)); max-height: calc(100vh - 120px); margin: 80px auto auto; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); overflow: hidden; }
.search[open] { display: flex; flex-direction: column; }
.search::backdrop { background: var(--overlay); }
.search-box { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search-box svg { width: 20px; height: 20px; color: var(--accent-text); }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--strong); font: inherit; font-size: 17px; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-close { background: none; border: 0; padding: 0; cursor: pointer; }
.answer { display: flex; flex-direction: column; gap: 2px; margin: 12px 12px 4px; padding: 14px 16px; border-radius: 14px; background: var(--feature); border: 1px solid var(--feature-line); color: var(--text); }
.answer:hover { text-decoration: none; border-color: var(--accent); }
.answer-k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--feature-text); }
.answer-l { color: var(--strong); font-weight: 650; }
.answer-v { font-size: 20px; font-weight: 700; color: var(--strong); }
.answer-from { font-size: 13px; color: var(--muted); }
.results { overflow-y: auto; padding: 6px; }
.results a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--text); }
.results a:hover, .results a.on { background: var(--accent-soft); text-decoration: none; }
.results b { display: block; color: var(--strong); font-weight: 650; }
.results small { display: block; font-size: 13px; color: var(--muted); }
.results mark { background: none; color: var(--accent-text); font-weight: 650; }
.results .none { padding: 22px 14px; color: var(--muted); }
.search-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

@media (max-width: 1180px) {
  .toc { display: none; }
}
@media (max-width: 860px) {
  .top { flex-wrap: wrap; }
  .brand { flex: 1 0 auto; background: var(--bg); border-right: 0; padding: 12px 16px; }
  .acts { flex: 0 0 auto; padding: 10px 16px 10px 0; }
  .acts .menu { display: grid; }
  .find { order: 3; flex: 1 0 100%; padding: 0 16px 12px; }
  .frame { flex-direction: column; }
  .side { display: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .side.open { display: block; }
  .main { padding: 24px 16px 56px; }
  .main h1 { font-size: 30px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { grid-column: 1; }
  .search { margin-top: 16px; max-height: calc(100vh - 32px); }
}
@media (max-width: 420px) {
  .app { padding: 9px 12px; }
  .search-open kbd, .search-foot { display: none; }
}
