:root {
  color-scheme: dark;
  --bg: #101115;
  --panel: #181a20;
  --panel-2: #1c1f25;
  --border: #292c35;
  --text: #f2f1f5;
  --muted: #a3a6b3;
  --accent: #bcf47d;
  --accent-ink: #142009;
  --code: #cedebd;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #d6fbb0; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.site-header { border-bottom: 1px solid var(--border); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.brand:hover { color: var(--text); }
.brand-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid #baf47d60; border-radius: 10px; font-size: 24px; line-height: 1; color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel); }
.nav-cabinet { color: var(--accent-ink); background: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 12px; border-radius: 8px; }
.nav-cabinet:hover { color: var(--accent-ink); background: #cefaa3; }

main { padding-bottom: 24px; }
.hero { padding: 72px 0 40px; max-width: 820px; }
.page-head { padding: 56px 0 8px; max-width: 820px; }
.eyebrow { margin: 0 0 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
h1 { font-size: 48px; line-height: 1.12; letter-spacing: -1.5px; margin: 0 0 20px; }
h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.5px; margin: 0 0 18px; }
h3 { font-size: 18px; line-height: 1.35; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.accent { color: var(--accent); }
.lead { font-size: 19px; line-height: 1.6; color: #d9d9e0; max-width: 720px; }
.section-lead { color: var(--muted); max-width: 760px; }
.note { color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: #cefaa3; color: var(--accent-ink); }
.button.secondary { border: 1px solid #3c4250; color: var(--text); }
.button.secondary:hover { border-color: var(--accent); color: var(--text); }

.block { padding: 44px 0 8px; }
.block + .block { border-top: 1px solid var(--border); margin-top: 28px; }
.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; }
.card p { margin: 0; color: #c9cad3; font-size: 15px; }
.callout { margin-top: 20px; background: linear-gradient(130deg, #1d2419, #181a20); border: 1px solid #3a4a2c; border-radius: 14px; padding: 22px 24px; }
.callout p { margin: 0; color: #d3d6cc; }
.callout + .note { margin-top: 14px; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps > li { counter-increment: step; position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px 20px 72px; }
.steps > li::before { content: counter(step); position: absolute; left: 22px; top: 18px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #23291f; color: var(--accent); font-weight: 700; font-size: 15px; }
.steps > li p { color: #c9cad3; font-size: 15px; }
.steps > li p:last-child { margin-bottom: 0; }
.plain, .plain-steps { margin: 0 0 14px; padding-left: 22px; }
.plain li, .plain-steps li { margin-bottom: 8px; color: #c9cad3; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 20px; color: #c9cad3; font-size: 15px; }
.facts strong, .plain strong { color: var(--text); }

.details { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); margin: 0 0 18px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.details dt, .details dd { margin: 0; padding: 13px 18px; border-top: 1px solid var(--border); }
.details dt:first-of-type, .details dt:first-of-type + dd { border-top: 0; }
.details dt { color: var(--muted); background: var(--panel); font-size: 15px; }
.details dd { background: var(--panel-2); min-width: 0; }
.hash { overflow-wrap: anywhere; word-break: break-all; }

.fields { margin: 0 0 18px; }
.fields dt { margin: 0; padding-top: 16px; border-top: 1px solid var(--border); font-weight: 600; }
.fields dt:first-child { border-top: 0; padding-top: 4px; }
.fields dd { margin: 6px 0 16px; color: #c9cad3; font-size: 15px; }
.fields .case { display: block; margin-top: 10px; }
.req { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--border); border-radius: 100px; padding: 1px 9px; vertical-align: 2px; }

code { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--code); overflow-wrap: anywhere; }
pre { margin: 0 0 16px; background: #0b0c0f; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
pre code { font-size: 13px; line-height: 1.7; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { text-decoration: none; font-size: 14px; color: var(--text); border: 1px solid var(--border); border-radius: 100px; padding: 6px 14px; }
.toc a:hover { border-color: var(--accent); }
#examples h3 { margin-top: 26px; }

.status-card { background: var(--panel); border: 1px solid #3a4a2c; border-radius: 14px; padding: 22px 24px; margin-bottom: 18px; }
.status-line { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.live { width: 12px; height: 12px; margin: 0 2px 0 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px #bcf47d22; flex: none; }
.status-card .note { margin: 0; }
.status-card.degraded { border-color: #75424a; }
.status-card.degraded .live { background: #ff9696; box-shadow: 0 0 0 6px #ff969622; }
.end-cta p { color: #c9cad3; }

.site-footer { border-top: 1px solid var(--border); margin-top: 48px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; padding-bottom: 32px; color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

@media (max-width: 860px) {
  .cards.three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .bar { padding-top: 14px; padding-bottom: 12px; }
  .nav-cabinet { margin-left: auto; font-size: 14px; }
  .nav { order: 2; flex-basis: 100%; gap: 4px; margin-left: -8px; }
  .nav a { font-size: 14px; padding: 6px 8px; }
  .hero { padding: 40px 0 24px; }
  .page-head { padding: 36px 0 4px; }
  h1 { font-size: 32px; letter-spacing: -.8px; }
  h2 { font-size: 23px; }
  .lead { font-size: 17px; }
  .block { padding: 32px 0 4px; }
  .cards.two { grid-template-columns: minmax(0, 1fr); }
  .card, .callout, .status-card { padding: 18px; }
  .steps > li { padding: 18px 18px 18px 60px; }
  .steps > li::before { left: 16px; top: 16px; width: 30px; height: 30px; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .details dt { padding-bottom: 4px; }
  .details dd { border-top: 0; padding-top: 4px; background: var(--panel); }
  .actions .button { flex: 1 1 100%; }
  pre { padding: 14px; }
  pre code { font-size: 12.5px; }
}
