/* Generated from the След design system tokens (tokens.json). Light by default, dark via OS or [data-theme]. */
:root {
  color-scheme: light;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-40: 160px;
  --radius-xs: 5px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 14px;
  --radius-3xl: 16px;
  --radius-4xl: 24px;
  --radius-full: 999px;
  --control-sm: 32px;
  --control-md: 40px;
  --control-lg: 48px;
  --header-height: 56px;
  --panel-width: 440px;
  --content-width: 1040px;
  --font-sans:
    'Onest Variable', Onest, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:
    'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, SFMono-Regular,
    Menlo, monospace;
  --surface-code: #f7f7f5;
  --text-code: #3a3a36;
  --text-faint: #8e8d88;
  --icon-faint: #c4c2bd;
  --divider-soft: #f1f0ee;
  --select-error: #fbe4de;
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-sunken: #f4f4f2;
  --surface-muted: #f1f0ee;
  --surface-stage: #161615;
  --stage-text: #f4f4f2;
  --border: #ecebe8;
  --border-strong: #e7e6e3;
  --border-control: #949390;
  --text: #1a1a19;
  --text-secondary: #57564f;
  --text-tertiary: #6e6d68;
  --primary: #1a1a19;
  --primary-hover: #33332f;
  --on-primary: #ffffff;
  --signal: #e8492a;
  --signal-tint: #fdece8;
  --danger: #9e2b15;
  --danger-bg: #fdf1ee;
  --danger-strong: #cf3b1e;
  --on-danger: #ffffff;
  --success: #1f7a45;
  --success-bg: #e6f2ea;
  --warning: #8a5300;
  --warning-bg: #fdf3e2;
  --info: #2e64c8;
  --avatar-sand: #e9e1d6;
  --avatar-sand-ink: #5c4a33;
  --avatar-sky: #dde6f3;
  --avatar-sky-ink: #2b4c7e;
  --avatar-sage: #dcebe1;
  --avatar-sage-ink: #24553a;
  --scrim: rgba(26, 26, 25, 0.32);
  --float: #1a1a19;
  --shadow-card:
    0 1px 2px rgba(26, 26, 25, 0.04), 0 24px 64px -24px rgba(26, 26, 25, 0.18);
  --shadow-popover: 0 16px 48px -12px rgba(26, 26, 25, 0.22);
  --shadow-modal: 0 24px 64px -16px rgba(26, 26, 25, 0.4);
  --shadow-float: 0 16px 40px -12px rgba(0, 0, 0, 0.45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #141413;
    --surface: #1c1c1a;
    --surface-sunken: #232321;
    --surface-muted: #262624;
    --surface-stage: #0e0e0d;
    --stage-text: #f4f4f2;
    --border: #2c2c29;
    --border-strong: #3a3a36;
    --border-control: #7a7974;
    --text: #f2f1ee;
    --text-secondary: #b9b8b3;
    --text-tertiary: #8e8d88;
    --primary: #f2f1ee;
    --primary-hover: #dad9d5;
    --on-primary: #141413;
    --signal: #f0573a;
    --signal-tint: #3a1d17;
    --danger: #ff8a70;
    --danger-bg: #2e1814;
    --danger-strong: #ff6b4d;
    --on-danger: #141413;
    --success: #6ccb8f;
    --success-bg: #16291d;
    --warning: #f0b45a;
    --warning-bg: #2e2314;
    --info: #7aa5f0;
    --avatar-sand: #3a3226;
    --avatar-sand-ink: #e9d9c0;
    --avatar-sky: #1f2a3b;
    --avatar-sky-ink: #bbd0f0;
    --avatar-sage: #1d2e23;
    --avatar-sage-ink: #b6dcc3;
    --scrim: rgba(0, 0, 0, 0.55);
    --float: #2c2c29;
    --shadow-card:
      0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 64px -24px rgba(0, 0, 0, 0.6);
    --shadow-popover: 0 16px 48px -12px rgba(0, 0, 0, 0.6);
    --shadow-modal: 0 24px 64px -16px rgba(0, 0, 0, 0.7);
    --surface-code: #20201e;
    --text-code: #d8d7d2;
    --text-faint: #75746f;
    --icon-faint: #55544f;
    --divider-soft: #262624;
    --select-error: #3a1d17;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #141413;
  --surface: #1c1c1a;
  --surface-sunken: #232321;
  --surface-muted: #262624;
  --surface-stage: #0e0e0d;
  --stage-text: #f4f4f2;
  --border: #2c2c29;
  --border-strong: #3a3a36;
  --border-control: #7a7974;
  --text: #f2f1ee;
  --text-secondary: #b9b8b3;
  --text-tertiary: #8e8d88;
  --primary: #f2f1ee;
  --primary-hover: #dad9d5;
  --on-primary: #141413;
  --signal: #f0573a;
  --signal-tint: #3a1d17;
  --danger: #ff8a70;
  --danger-bg: #2e1814;
  --danger-strong: #ff6b4d;
  --on-danger: #141413;
  --success: #6ccb8f;
  --success-bg: #16291d;
  --warning: #f0b45a;
  --warning-bg: #2e2314;
  --info: #7aa5f0;
  --avatar-sand: #3a3226;
  --avatar-sand-ink: #e9d9c0;
  --avatar-sky: #1f2a3b;
  --avatar-sky-ink: #bbd0f0;
  --avatar-sage: #1d2e23;
  --avatar-sage-ink: #b6dcc3;
  --scrim: rgba(0, 0, 0, 0.55);
  --float: #2c2c29;
  --shadow-card:
    0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 64px -24px rgba(0, 0, 0, 0.6);
  --shadow-popover: 0 16px 48px -12px rgba(0, 0, 0, 0.6);
  --shadow-modal: 0 24px 64px -16px rgba(0, 0, 0, 0.7);
  --surface-code: #20201e;
  --text-code: #d8d7d2;
  --text-faint: #75746f;
  --icon-faint: #55544f;
  --divider-soft: #262624;
  --select-error: #3a1d17;
}

@font-face {
  font-family: 'Onest Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/onest-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/jetbrains-mono-latin.woff2') format('woff2');
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a,
button,
input,
summary {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid var(--signal);
}
.icon {
  flex: none;
  vertical-align: middle;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--surface);
  padding: 10px 18px;
  border: 1px solid var(--signal);
  z-index: 100;
}
.skip-link:focus {
  top: 8px;
}
.site-header {
  height: 72px;
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}
.header-inner {
  max-width: 1520px;
  padding: 0 36px;
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.brand svg {
  color: var(--signal);
}
.wordmark {
  font-weight: 650;
  font-size: 25px;
  letter-spacing: -1px;
  line-height: 1;
}
.brand-divider {
  height: 20px;
  width: 1px;
  background: var(--border-strong);
  margin: 0 8px 0 12px;
}
.brand-label {
  font-size: 14px;
  color: var(--text-secondary);
}
.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 286px;
  height: 38px;
  padding: 0 10px;
  color: var(--text-tertiary);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
}
.search-trigger kbd {
  margin-left: auto;
}
kbd {
  font: 11px var(--font-sans);
  color: var(--text-tertiary);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 2px 5px;
  background: var(--surface);
}
.icon-button {
  display: grid;
  place-items: center;
  padding: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
}
.icon-button:hover {
  background: var(--surface-muted);
}
.app-link {
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.app-link span {
  margin-left: 6px;
  color: var(--signal);
}
.menu-toggle {
  display: none;
}
.layout {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr) 200px;
  gap: 56px;
  max-width: 1436px;
  padding: 0 36px;
  margin: auto;
}
.sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100dvh - 72px);
  overflow-y: auto;
  padding: 28px 16px 24px 0;
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
}
.nav-group {
  margin-bottom: 26px;
}
.nav-group h2 {
  margin: 0 0 9px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.075em;
}
.nav-group a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 7px;
  line-height: 1.45;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.nav-group a .icon {
  width: 17px;
  height: 17px;
  opacity: 0.7;
}
.nav-group a:hover {
  color: var(--text);
  background: var(--surface-muted);
}
.nav-group a[aria-current='page'] {
  background: var(--signal-tint);
  color: var(--signal);
  font-weight: 550;
}
.nav-group a[aria-current='page'] .icon {
  opacity: 1;
}
.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 20px 12px 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.8;
}
.sidebar-foot small {
  margin-left: 15px;
  color: var(--text-tertiary);
  font-size: 11px;
}
.live-dot {
  display: inline-block;
  vertical-align: middle;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  margin-right: 10px;
}
main {
  min-width: 0;
  padding: 48px 0 24px;
}
article {
  max-width: 736px;
  margin: auto;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.035em;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.article-meta span:first-child {
  color: var(--signal);
  font-weight: 550;
}
h1 {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1.35px;
  line-height: 1.16;
  margin: 0 0 18px;
}
.lead {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 40px;
  max-width: 650px;
}
.article-section {
  margin: 36px 0 42px;
}
.article-section h2 {
  position: relative;
  font-size: 22px;
  font-weight: 580;
  letter-spacing: -0.5px;
  line-height: 1.4;
  margin: 0 0 20px;
  scroll-margin-top: 0;
}
.heading-anchor {
  position: absolute;
  left: -24px;
  opacity: 0;
  font-size: 19px;
  font-weight: 400;
  color: var(--signal);
  padding-right: 10px;
}
.article-section h2:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}
.article-section h3 {
  font-size: 17px;
  margin: 26px 0 12px;
}
.article-section p {
  margin: 12px 0;
  color: var(--text-secondary);
}
.article-section p strong,
.article-section li strong {
  color: var(--text);
  font-weight: 550;
}
.article-section a:not(.button, .guide-row, .journey-step, .heading-anchor) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-control);
  text-underline-offset: 4px;
}
.article-section
  a:not(.button, .guide-row, .journey-step, .heading-anchor):hover {
  color: var(--signal);
  text-decoration-color: var(--signal);
}
.article-section ul {
  padding-left: 22px;
  color: var(--text-secondary);
}
.article-section li {
  margin: 8px 0;
}
.article-section li::marker {
  color: var(--text-tertiary);
}
.article-section code {
  font: 12px/1.6 var(--font-mono);
  background: var(--surface-sunken);
  color: var(--text-code);
  border: 1px solid var(--border);
  padding: 2px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 550;
}
.primary {
  background: var(--primary);
  color: var(--on-primary);
}
.primary:hover {
  background: var(--primary-hover);
}
.primary span {
  font-size: 17px;
  line-height: 1;
}
.journey {
  margin: 24px 0 26px;
}
.journey-step {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 0 0 25px;
}
.journey-step:last-child {
  padding-bottom: 0;
}
.journey-step:not(:last-child):after {
  content: '';
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 4px;
  width: 1px;
  background: var(--border-strong);
}
.step-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font: 12px var(--font-mono);
  color: var(--text-secondary);
  background: var(--surface);
}
.journey-step:first-child .step-dot {
  border-color: var(--signal);
  color: var(--signal);
  background: var(--signal-tint);
}
.journey-step strong {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 550;
}
.journey-step small {
  display: block;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 3px;
}
.journey-step:hover strong {
  color: var(--signal);
}
.guide-list {
  border-top: 1px solid var(--border-strong);
}
.guide-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 17px 0;
}
.guide-symbol {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--surface-sunken);
  border-radius: 8px;
  color: var(--text-secondary);
}
.guide-row strong {
  display: block;
  font-weight: 550;
  font-size: 14px;
}
.guide-row small {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.guide-arrow {
  margin-left: auto;
  font-size: 19px;
  color: var(--text-tertiary);
}
.guide-row:hover strong,
.guide-row:hover .guide-arrow {
  color: var(--signal);
}
.guide-row:hover .guide-symbol {
  color: var(--signal);
  background: var(--signal-tint);
}
.callout {
  display: flex;
  gap: 12px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: 10px;
  margin: 22px 0;
}
.callout-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 17px;
  height: 17px;
  font: 11px var(--font-mono);
  border: 1px solid var(--text-tertiary);
  border-radius: 50%;
  color: var(--text-tertiary);
  margin-top: 3px;
}
.callout strong {
  font-weight: 550;
  font-size: 13px;
}
.callout p {
  font-size: 13px;
  line-height: 1.65;
  margin: 6px 0 0;
}
.steps {
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: flex;
  gap: 16px;
  counter-increment: step;
  margin: 22px 0;
}
.steps li:before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 7px;
  font: 11px var(--font-mono);
  margin-top: 1px;
}
.steps li strong {
  font-size: 14px;
}
.steps li p {
  margin: 5px 0 0;
  font-size: 14px;
}
.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
}
table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  background: var(--surface-sunken);
  font-weight: 550;
  color: var(--text);
  white-space: nowrap;
}
th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
td {
  color: var(--text-secondary);
}
tr:last-child td {
  border-bottom: 0;
}
.code-block {
  margin: 20px 0;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-code);
}
.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
  font: 11px var(--font-mono);
  color: var(--text-tertiary);
}
.copy-code {
  font: 11px var(--font-sans);
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
}
.copy-code:hover {
  color: var(--text);
}
pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  line-height: 1.65;
}
.article-section pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  white-space: pre;
  overflow-wrap: normal;
}
details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
details:first-of-type {
  border-top: 1px solid var(--border);
}
summary {
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.6;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: '+';
  color: var(--text-tertiary);
  font-size: 18px;
}
details[open] summary:after {
  content: '−';
}
details p {
  font-size: 14px;
  padding-right: 18px;
}
.page-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--border-strong);
  margin-top: 48px;
  padding-top: 24px;
}
.page-navigation a {
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  line-height: 1.5;
  background: var(--surface);
}
.page-navigation a:hover {
  border-color: var(--text-tertiary);
}
.page-navigation small {
  font-size: 11px;
  display: block;
  color: var(--text-tertiary);
}
.page-navigation strong {
  font-size: 13px;
  font-weight: 550;
  display: block;
  margin-top: 4px;
}
.page-navigation .next {
  text-align: right;
}
.article-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding: 20px 0;
  color: var(--text-tertiary);
  font-size: 11px;
  border-top: 1px solid var(--border);
}
.article-footer a:hover {
  color: var(--text);
}
.toc {
  position: sticky;
  top: 72px;
  align-self: start;
  font-size: 12px;
  padding: 52px 0 0;
}
.toc > strong {
  display: block;
  font-weight: 550;
  margin-bottom: 14px;
}
.toc > a {
  display: block;
  color: var(--text-tertiary);
  border-left: 1px solid var(--border-strong);
  padding: 7px 0 7px 14px;
  line-height: 1.45;
}
.toc > a:hover {
  color: var(--text);
}
.toc > a[aria-current='location'] {
  color: var(--signal);
  border-color: var(--signal);
}
.toc .toc-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-top: 1px solid var(--border);
  padding: 16px 0;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 11px;
}
.toc-start .icon {
  width: 16px;
  height: 16px;
  color: var(--signal);
}
dialog {
  color: var(--text);
  background: var(--surface);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 24px 80px #0003;
}
dialog::backdrop {
  background: #14141466;
  backdrop-filter: blur(3px);
}
.search-dialog {
  width: calc(100% - 32px);
  max-width: 640px;
  margin: 12vh auto auto;
  max-height: 76dvh;
}
.search-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 550;
}
.search-top .icon-button {
  font-size: 23px;
}
.search-field {
  display: flex;
  align-items: center;
  margin: 16px;
  border: 1px solid var(--border-control);
  border-radius: 8px;
  padding: 0 12px;
}
.search-field:focus-within {
  border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
}
.search-field input {
  background: none;
  color: var(--text);
  border: 0;
  min-width: 0;
  width: 100%;
  padding: 12px 0;
  outline: none;
  font-size: 15px;
}
.search-field input::placeholder {
  color: var(--text-tertiary);
}
.search-status {
  margin: 8px 20px 12px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.search-results {
  max-height: 45dvh;
  overflow: auto;
  padding: 0 8px 12px;
}
.search-result {
  display: block;
  padding: 12px;
  border-radius: 8px;
}
.search-result:hover,
.search-result.selected {
  background: var(--surface-sunken);
}
.search-result strong {
  font-size: 14px;
  display: block;
  font-weight: 550;
}
.search-result small {
  font-size: 12px;
  display: block;
  color: var(--text-tertiary);
  line-height: 1.55;
  margin-top: 4px;
}
.search-result mark {
  background: var(--signal-tint);
  color: var(--signal);
  border-radius: 2px;
}
.search-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--text-tertiary);
  background: var(--surface-sunken);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
}
.menu-dialog {
  width: min(360px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  margin: 16px auto;
}
.menu-dialog nav {
  padding: 20px 14px 0;
}
.menu-dialog > .button {
  margin: 0 24px 24px;
}
@media (min-width: 1550px) {
  .layout {
    gap: 72px;
    grid-template-columns: 242px minmax(0, 1fr) 200px;
  }
  .header-inner {
    max-width: 1436px;
  }
}
@media (max-width: 1190px) {
  .layout {
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 44px;
    max-width: 1060px;
  }
  .toc {
    display: none;
  }
  .header-inner {
    padding: 0 28px;
  }
  .layout {
    padding: 0 28px;
  }
  .search-trigger {
    min-width: 240px;
  }
  .article-meta {
    font-size: 11px;
  }
  h1 {
    font-size: 35px;
  }
}
@media (max-width: 800px) {
  .site-header {
    height: 64px;
  }
  .header-inner {
    padding: 0 20px;
    gap: 12px;
  }
  .header-actions {
    gap: 6px;
  }
  .search-trigger {
    min-width: 36px;
    width: 36px;
    height: 36px;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .search-trigger span,
  .search-trigger kbd,
  .app-link {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
  .brand-divider {
    margin: 0 4px 0 8px;
  }
  .brand-label {
    font-size: 12px;
  }
  .wordmark {
    font-size: 23px;
  }
  .layout {
    display: block;
    padding: 0 28px;
    max-width: 768px;
  }
  .sidebar {
    display: none;
  }
  main {
    padding-top: 36px;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .lead {
    font-size: 16px;
    margin-bottom: 32px;
  }
  .article-section h2 {
    font-size: 21px;
  }
  .article-meta {
    font-size: 10px;
  }
  .heading-anchor {
    left: -20px;
    font-size: 17px;
  }
  .article-footer {
    font-size: 10px;
  }
  .search-dialog {
    margin-top: 7vh;
  }
  .search-footer span:first-child {
    display: none;
  }
}
@media (max-width: 420px) {
  .header-inner {
    padding: 0 16px;
  }
  .layout {
    padding: 0 22px;
  }
  .brand-label {
    font-size: 11px;
  }
  .header-actions {
    gap: 2px;
  }
  .icon-button,
  .search-trigger {
    width: 32px;
  }
  .brand {
    gap: 6px;
  }
  .brand-divider {
    margin: 0 3px 0 5px;
  }
  h1 {
    font-size: 30px;
  }
  .article-meta {
    gap: 8px;
  }
  .article-meta span:last-child {
    text-align: right;
  }
  .guide-row {
    gap: 12px;
  }
  .guide-row small {
    font-size: 12px;
  }
  .journey-step {
    gap: 14px;
  }
  .page-navigation {
    gap: 10px;
  }
  .page-navigation a {
    padding: 12px 10px;
  }
  .article-footer {
    flex-direction: column;
    gap: 8px;
  }
  .callout {
    padding: 14px;
    gap: 10px;
  }
  .search-field input {
    font-size: 14px;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 10px 12px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  a,
  button {
    transition:
      color 0.12s,
      background-color 0.12s,
      border-color 0.12s;
  }
}
