/* VORKO public site: docs, apps, about, legal and support pages.
   The visual language is the landing's: black field, Inter, white type,
   the scene's blue and its 1 px dither on hover. No inline styles anywhere:
   the pages run under a strict Content-Security-Policy. */

@font-face {
  font-family: Inter;
  src: url("/assets/fonts/Inter-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/assets/fonts/Inter-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #09090b;
  --panel: #0d0f12;
  --raised: #121418;
  --charcoal: #1b1d22;
  --white: #f7f9fc;
  --text: rgba(247, 249, 252, .80);
  --muted: rgba(247, 249, 252, .60);
  --faint: rgba(247, 249, 252, .40);
  --line: rgba(247, 249, 252, .10);
  --line-strong: rgba(247, 249, 252, .18);
  --blue: #286ee2;
  --deep: #143774;
  --link: #8db4f8;
  --dither-blue: conic-gradient(rgba(40,110,226,.34) 90deg, transparent 90deg 180deg, rgba(40,110,226,.34) 180deg 270deg, transparent 270deg);
  --dither-blue-strong: conic-gradient(rgba(40,110,226,.62) 90deg, transparent 90deg 180deg, rgba(40,110,226,.62) 180deg 270deg, transparent 270deg);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header: 64px;
  --gutter: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
/* Text on the site is not meant to be selected or copied; form fields stay usable. */
html { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
img, svg { -webkit-user-drag: none; }
body {
  display: flex; flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font: 400 15px/1.65 Inter, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:lang(zh) body, body:lang(zh) { font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--white); }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; z-index: 50; top: 8px; left: 8px; padding: 8px 12px;
  background: var(--blue); color: var(--white); font-size: 13px; transform: translateY(-160%);
}
.skip:focus { transform: none; }
:focus-visible { outline: 1px solid var(--blue); outline-offset: 3px; }

/* ------------------------------------------------------------------ header */
.hub-header {
  position: sticky; z-index: 30; top: 0;
  background: rgba(9, 9, 11, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
/* The landing's rim, reduced to a hairline under the header. */
.hub-header::after {
  content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0, rgba(40,110,226,.0) 8%, rgba(40,110,226,.55) 34%, rgba(40,110,226,.22) 72%, transparent 100%);
  pointer-events: none;
}
.hub-bar {
  display: flex; align-items: center; gap: 26px;
  max-width: 1360px; height: var(--header); margin: 0 auto; padding: 0 var(--gutter);
}
.identity { display: flex; flex: none; align-items: center; gap: 10px; color: var(--white); }
.identity:hover { color: var(--white); }
.brand-mark { position: relative; display: block; width: 27px; }
.brand-mark img { display: block; width: 100%; height: auto; opacity: 0; transition: opacity .22s ease; }
.brand-mark::after {
  content: ""; position: absolute; inset: 0; background: var(--white);
  -webkit-mask: url("/assets/vorko-logo.png") center / 100% 100% no-repeat;
  mask: url("/assets/vorko-logo.png") center / 100% 100% no-repeat;
  transition: opacity .22s ease;
}
.identity:hover .brand-mark img { opacity: 1; }
.identity:hover .brand-mark::after { opacity: 0; }
.brand-name { font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: -.055em; }

.hub-nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tab, .lang, .chip-button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 11px;
  border: 1px solid transparent; background: transparent;
  color: var(--muted);
  font: 400 11px/1 Inter, system-ui, sans-serif; letter-spacing: .12em;
  white-space: nowrap; cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}
.tab:hover, .tab:focus-visible, .lang:hover, .lang:focus-visible, .chip-button:hover, .chip-button:focus-visible {
  border-color: var(--blue); background: var(--dither-blue) 0 0 / 2px 2px; color: var(--white);
}
.tab[aria-current="page"] { border-color: var(--blue); background: var(--dither-blue-strong) 0 0 / 2px 2px; color: var(--white); }
.langs { display: flex; flex: none; gap: 2px; margin-left: auto; }
.lang { height: 28px; padding: 0 8px; font-size: 10px; letter-spacing: .1em; color: var(--faint); }
.lang.is-active, .lang[aria-current="true"] { border-color: var(--line-strong); color: var(--white); }

/* ------------------------------------------------------------------ footer */
.hub-footer { border-top: 1px solid var(--line); }
.hub-footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  max-width: 1360px; margin: 0 auto; padding: 26px var(--gutter) 34px;
  color: var(--faint); font-size: 10px; letter-spacing: .1em;
}
.hub-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hub-footer a { color: var(--muted); }
.hub-footer a:hover { color: var(--white); }

/* ------------------------------------------------------------ common page */
/* body is a column, so a short page still keeps the footer at the bottom */
.page { flex: 1 0 auto; width: 100%; max-width: 1180px; margin: 0 auto; padding: 58px var(--gutter) 104px; }
.kicker { color: var(--blue); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.kicker .sep { margin: 0 6px; color: var(--faint); }
.page-title {
  max-width: 900px; margin: 20px 0 16px;
  font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.05em;
}
.page-lead { max-width: 720px; color: var(--text); font-size: 17px; line-height: 1.6; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--white);
  font: 400 12px/1 Inter, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}
.button > .arrow { display: inline-block; font-size: 14px; transition: transform .22s var(--ease-out); }
.button:hover, .button:focus-visible { border-color: var(--blue); background: var(--dither-blue) 0 0 / 2px 2px; color: var(--white); }
.button:hover > .arrow, .button:focus-visible > .arrow { transform: translateX(3px); }
.button.primary { border-color: var(--blue); background: var(--dither-blue-strong) 0 0 / 2px 2px; }
.button.primary:hover, .button.primary:focus-visible { background: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ------------------------------------------------------------ prose (legal) */
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 44px; }
.doc-toc { position: sticky; top: calc(var(--header) + 28px); max-height: calc(100vh - var(--header) - 56px); overflow-y: auto; padding-right: 6px; }
.toc-heading { margin-bottom: 12px; color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .16em; }
.doc-toc a, .docs-toc a {
  display: block; padding: 5px 0 5px 12px; border-left: 1px solid var(--line);
  color: var(--faint); font-size: 12.5px; line-height: 1.4;
}
.doc-toc a:hover, .docs-toc a:hover { color: var(--white); }
.doc-toc a.is-current, .docs-toc a.is-current { border-left-color: var(--blue); color: var(--white); }
.prose { max-width: 780px; min-width: 0; }
.prose h1 { display: none; }
.prose h2 {
  margin: 44px 0 14px; padding-top: 26px; border-top: 1px dashed var(--line-strong);
  font-size: 21px; line-height: 1.3; letter-spacing: -.02em;
}
.prose h3 { margin: 26px 0 8px; font-size: 16.5px; line-height: 1.35; }
.prose p, .prose li { color: var(--text); font-size: 15px; line-height: 1.72; }
.prose p + p { margin-top: 12px; }
.prose strong { color: var(--white); font-weight: 600; }
.prose ul, .prose ol { margin: 10px 0 14px; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--blue); }
.prose a { color: var(--link); border-bottom: 1px solid rgba(141, 180, 248, .3); }
.prose a:hover { color: var(--white); border-bottom-color: var(--white); }
.prose hr { margin: 28px 0; border: 0; border-top: 1px dashed var(--line-strong); }
.prose code { padding: 1px 5px; background: var(--raised); color: var(--white); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.prose blockquote { margin: 16px 0; padding: 12px 16px; border-left: 2px solid var(--blue); background: rgba(40, 110, 226, .07); color: var(--text); }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--text); }
.prose th { background: var(--raised); color: var(--white); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.doc-title { max-width: 980px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.doc-meta strong { color: var(--white); font-weight: 600; }

/* ------------------------------------------------------------------- apps */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.platform {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px 26px; border: 1px solid var(--line); background: var(--panel);
}
.platform::before { content: ""; position: absolute; top: -1px; left: -1px; width: 38px; height: 2px; background: var(--blue); }
.platform h2 { margin: 14px 0 10px; font-size: 22px; letter-spacing: -.03em; }
.platform > p { color: var(--text); font-size: 14px; line-height: 1.6; }
.release { display: flex; flex-wrap: wrap; gap: 6px 18px; min-height: 20px; margin: 16px 0 0; color: var(--muted); font-size: 12.5px; }
.release dt { display: inline; color: var(--faint); }
.release dd { display: inline; margin: 0 0 0 6px; color: var(--white); }
.platform .button { width: 100%; margin-top: 22px; }
.notes { margin: 20px 0 0; padding: 18px 0 0; border-top: 1px dashed var(--line-strong); list-style: none; }
.notes li { position: relative; padding-left: 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.notes li + li { margin-top: 7px; }
.notes li::before { content: ""; position: absolute; top: .62em; left: 0; width: 5px; height: 5px; background: var(--blue); }
.checksum { margin-top: 16px; }
.checksum summary { color: var(--faint); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; list-style: none; }
.checksum summary::-webkit-details-marker { display: none; }
.checksum summary::before { content: "+ "; color: var(--blue); }
.checksum[open] summary::before { content: "– "; }
.checksum dl { margin: 10px 0 0; }
.checksum dt { margin-top: 8px; color: var(--faint); font-size: 11px; }
.checksum dd { margin: 3px 0 0; color: var(--white); font: 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.safety { max-width: 780px; margin-top: 34px; padding: 18px 20px; border-left: 2px solid var(--blue); background: rgba(40, 110, 226, .06); color: var(--text); font-size: 14px; line-height: 1.65; }

/* ------------------------------------------------------------------ about */
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 56px; }
.about-block { padding: 26px 0 30px; border-top: 1px dashed var(--line-strong); }
.about-block h2 { margin-bottom: 12px; font-size: 20px; letter-spacing: -.02em; }
.about-block p { color: var(--text); font-size: 15px; line-height: 1.7; }
.section-title { margin: 58px 0 18px; font-size: 26px; letter-spacing: -.035em; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 22px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .16s ease; }
.feature:hover { background: var(--dither-blue) 0 0 / 2px 2px; }
.feature h3 { margin-bottom: 8px; font-size: 15.5px; }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.contacts { display: grid; gap: 12px; margin: 0; }
.contacts div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; }
.contacts dt { color: var(--faint); font-size: 13px; }
.contacts dd { margin: 0; color: var(--white); font-size: 14px; }

/* ------------------------------------------------------------------- docs */
.docs { flex: 1 0 auto; display: grid; grid-template-columns: 272px minmax(0, 1fr) 220px; width: 100%; max-width: 1360px; margin: 0 auto; }
.docs-side {
  position: sticky; top: var(--header); height: calc(100vh - var(--header)); overflow-y: auto;
  padding: 22px 16px 48px var(--gutter); border-right: 1px solid var(--line);
  scrollbar-width: thin; scrollbar-color: var(--charcoal) transparent;
}
.search-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; height: 36px; margin-bottom: 22px; padding: 0 10px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--faint);
  font: 400 12.5px/1 Inter, system-ui, sans-serif; cursor: pointer; text-align: left;
}
.search-trigger:hover, .search-trigger:focus-visible { border-color: var(--blue); color: var(--white); background: var(--dither-blue) 0 0 / 2px 2px; }
.search-trigger kbd { padding: 2px 6px; border: 1px solid var(--line-strong); color: var(--faint); font: 11px/1 ui-monospace, Menlo, Consolas, monospace; }
.nav-group + .nav-group { margin-top: 22px; }
.nav-heading { margin: 0 0 8px 10px; color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.nav-link, .nav-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 6px 10px; border-left: 1px solid transparent;
  color: var(--muted); font-size: 13.5px; line-height: 1.35; cursor: pointer;
}
.nav-link:hover, .nav-summary:hover { color: var(--white); background: var(--dither-blue) 0 0 / 2px 2px; }
.nav-link[aria-current="page"] { border-left-color: var(--blue); background: rgba(40, 110, 226, .12); color: var(--white); }
.nav-summary { list-style: none; }
.nav-summary::-webkit-details-marker { display: none; }
.nav-summary::after { content: "›"; color: var(--faint); font-size: 15px; transition: transform .18s ease; }
details[open] > .nav-summary::after { transform: rotate(90deg); }
.nav-tree.is-trail > .nav-summary { color: var(--white); }
.nav-children { padding-left: 12px; border-left: 1px solid var(--line); margin-left: 10px; }
.docs-main { min-width: 0; padding: 46px clamp(20px, 4vw, 64px) 104px; }
.docs-article { max-width: 780px; }
.docs-article .page-title { font-size: clamp(30px, 3.6vw, 44px); margin-top: 16px; }
.docs-article .page-lead { font-size: 16.5px; }
.path {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  margin-top: 22px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel);
  color: var(--white); font-size: 13.5px; line-height: 1.5;
}
.path .label { color: var(--blue); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { padding: 5px 9px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.docs-article section { scroll-margin-top: calc(var(--header) + 16px); }
.docs-article h2 { margin: 42px 0 12px; padding-top: 24px; border-top: 1px dashed var(--line-strong); font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
.docs-article section p { color: var(--text); font-size: 15px; line-height: 1.72; }
.docs-article section p + p { margin-top: 12px; }
.steps { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 10px 0 10px 44px; color: var(--text); font-size: 15px; line-height: 1.6; counter-increment: step; }
.steps li + li { border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step); position: absolute; top: 10px; left: 0;
  display: flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border: 1px solid var(--blue); background: var(--dither-blue) 0 0 / 2px 2px;
  color: var(--white); font-size: 12px; font-weight: 600;
}
.callout { margin-top: 30px; padding: 16px 18px; border-left: 2px solid var(--blue); background: rgba(40, 110, 226, .07); }
.callout .label { margin-bottom: 6px; color: var(--blue); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.callout p { color: var(--text); font-size: 14.5px; line-height: 1.65; }
.related { margin-top: 44px; padding-top: 24px; border-top: 1px dashed var(--line-strong); }
.related .label { margin-bottom: 12px; color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .16em; }
.related-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.related-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); color: var(--white); font-size: 13.5px; }
.related-links a:hover { border-color: var(--blue); background: var(--dither-blue) 0 0 / 2px 2px; }
.related-links a span { color: var(--faint); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 44px; }
.pager a { padding: 14px 16px; border: 1px solid var(--line); color: var(--white); font-size: 14px; }
.pager a:hover { border-color: var(--blue); background: var(--dither-blue) 0 0 / 2px 2px; }
.pager .dir { display: block; margin-bottom: 4px; color: var(--faint); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.pager .next { grid-column: 2; text-align: right; }
.docs-toc { position: sticky; top: var(--header); height: calc(100vh - var(--header)); overflow-y: auto; padding: 50px var(--gutter) 40px 8px; }
.docs-bar, .drawer-head { display: none; }

/* ----------------------------------------------------------------- search */
.search-dialog { position: fixed; z-index: 60; inset: 0; display: flex; justify-content: center; padding: 12vh 16px 16px; background: rgba(9, 9, 11, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.search-panel { display: flex; flex-direction: column; width: min(680px, 100%); max-height: 70vh; border: 1px solid var(--line-strong); background: var(--panel); box-shadow: 0 24px 80px rgba(0, 0, 0, .5); }
.search-box { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.search-box input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; color: var(--white); font: 400 16px/1 Inter, system-ui, sans-serif; }
.search-box input::placeholder { color: var(--faint); }
.search-box .glyph { color: var(--blue); font-size: 18px; }
.search-close { width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.search-close:hover { color: var(--white); }
.search-results { overflow-y: auto; padding: 8px; }
.search-results a { display: block; padding: 10px 12px; border: 1px solid transparent; color: var(--white); }
.search-results a:hover, .search-results a.is-selected { border-color: var(--blue); background: var(--dither-blue) 0 0 / 2px 2px; }
.search-results .group { display: block; margin-bottom: 3px; color: var(--blue); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.search-results .title { display: block; font-size: 14.5px; }
.search-results .snippet { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.search-empty { padding: 18px 12px; color: var(--faint); font-size: 13.5px; }

/* -------------------------------------------------------------- not found */
.not-found { max-width: 640px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .docs { grid-template-columns: 260px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 980px) {
  .platforms { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc-toc { position: static; max-height: none; margin-bottom: 8px; padding: 16px 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .doc-toc .toc-links { columns: 2; column-gap: 24px; }
}
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-bar {
    position: sticky; z-index: 20; top: var(--header);
    display: flex; gap: 8px; padding: 10px var(--gutter);
    border-bottom: 1px solid var(--line); background: rgba(9, 9, 11, .94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .docs-bar .chip-button { flex: 1; height: 36px; border-color: var(--line-strong); }
  .docs-side {
    position: fixed; z-index: 40; top: var(--header); bottom: 0; left: 0;
    width: min(340px, 88vw); height: auto; padding-left: 16px;
    background: var(--black); border-right: 1px solid var(--line-strong);
    transform: translateX(-102%); transition: transform .24s var(--ease-out);
  }
  .docs-side.is-open { transform: none; box-shadow: 24px 0 80px rgba(0, 0, 0, .55); }
  .docs-side .search-trigger { display: none; }
  .docs-side { padding-top: 0; }
  .drawer-head {
    position: sticky; z-index: 1; top: 0;
    display: flex; align-items: center; justify-content: space-between;
    height: 52px; margin: 0 -16px 14px; padding: 0 6px 0 26px;
    border-bottom: 1px solid var(--line); background: var(--black);
    color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  }
  .drawer-close { width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
  .drawer-close:hover, .drawer-close:focus-visible { color: var(--white); }
  body.drawer-open { overflow: hidden; }
  .docs-main { padding-top: 30px; }
  .related-links { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 761px) and (max-width: 1020px) {
  /* The Russian tabs are twice as long as the English ones and do not fit
     one row here: they take a row of their own under the logo. */
  html:lang(ru) { --header: 104px; }
  html:lang(ru) .hub-bar { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; align-content: flex-start; }
  html:lang(ru) .identity { height: 42px; }
  html:lang(ru) .langs { height: 42px; align-items: center; }
  html:lang(ru) .hub-nav { order: 3; width: 100%; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
  html:lang(ru) .hub-nav::-webkit-scrollbar { display: none; }
  html:lang(ru) .tab { flex: none; }
}
@media (max-width: 760px) {
  /* On a phone the two-row header scrolls away with the page; only the
     docs bar (sections and search) stays pinned, so text keeps the screen. */
  :root { --header: 104px; }
  html { scroll-padding-top: 16px; }
  .hub-header { position: relative; }
  .docs-bar { top: 0; }
  .docs-side { top: 0; z-index: 45; }
  .docs-article section { scroll-margin-top: 72px; }
  .hub-bar { flex-wrap: wrap; gap: 0 12px; height: var(--header); padding-top: 10px; align-content: flex-start; }
  .identity { height: 42px; }
  .langs { height: 42px; align-items: center; }
  .hub-nav {
    order: 3; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 10px; overflow-x: auto; scrollbar-width: none;
  }
  .hub-nav::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .page { padding-top: 40px; }
  .page-title { font-size: clamp(30px, 8.4vw, 40px); }
  .doc-title { font-size: clamp(25px, 6.8vw, 31px); line-height: 1.14; letter-spacing: -.035em; }
  .page-lead { font-size: 16px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .contacts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc-toc .toc-links { columns: 1; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { grid-column: 1; }
}
@media (max-width: 380px) {
  .tab { padding: 0 9px; }
  .brand-name { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  html, body { background: #fff; color: #000; }
  .hub-header, .hub-footer, .docs-side, .docs-toc, .doc-toc, .docs-bar, .search-dialog, .pager, .related, .langs { display: none !important; }
  .page, .docs-main { padding: 0; }
  .prose p, .prose li, .docs-article section p, .page-lead { color: #000; }
  .prose a, a { color: #000; }
  body, .doc-layout, .docs { display: block; }
}
