:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: #0b0e13;
  --surface: #111820;
  --surface-raised: #17202b;
  --border: #283342;
  --text: #e8eef7;
  --muted: #9ba9bc;
  --accent: #86b3ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; background: radial-gradient(circle at 85% 2%, rgba(55,99,160,.14), transparent 39rem), var(--background); color: var(--text); line-height: 1.66; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #c3d9ff; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
code { font-size: .92em; color: #cae0ff; }
.skip-link { position: absolute; top: -70px; left: 12px; z-index: 20; padding: 8px 12px; background: var(--surface); }
.skip-link:focus { top: 10px; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 28px; border-bottom: 1px solid var(--border); background: rgba(12,16,22,.95); position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.brand strong { font-weight: 750; }
.brand-mark { width: 33px; height: 33px; display: grid; place-items: center; background: #24446d; border: 1px solid #4b76aa; border-radius: 9px; font-size: 17px; font-weight: 800; }
.topbar-actions { display: flex; align-items: center; gap: 24px; font-size: 12px; }
.current-page { color: #8397b0; }
.topbar-link { color: var(--text); font-weight: 700; text-decoration: none; }
.layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); max-width: 1520px; margin: 0 auto; }
.sidebar { padding: 46px 18px 40px 26px; border-right: 1px solid var(--border); position: sticky; top: 64px; height: calc(100vh - 64px); align-self: start; overflow-y: auto; }
.sidebar-title, .eyebrow, .card-overline, .code-label { margin: 0; color: #7c9abe; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.sidebar-title { padding: 0 12px 14px; color: #7e8b9d; }
.sidebar nav { display: grid; gap: 3px; }
.sidebar nav a { display: block; padding: 9px 12px; border-radius: 7px; color: #b9c5d4; font-size: 12px; text-decoration: none; }
.sidebar nav a:hover, .sidebar nav a:focus-visible { color: #eff5ff; background: #1b293a; }
.sidebar-note { margin-top: 42px; padding: 15px; border: 1px solid var(--border); border-radius: 10px; background: #101821; }
.sidebar-note strong { display: block; font-size: 12px; }
.sidebar-note p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.content { min-width: 0; max-width: 1035px; padding: 52px min(7vw, 86px) 25px; }
.intro { scroll-margin-top: 82px; }
.intro h1 { margin: 11px 0 15px; font-size: clamp(33px, 4vw, 51px); letter-spacing: -.055em; line-height: 1.15; }
.lead { margin: 0; color: #bdc9d8; max-width: 690px; font-size: 17px; line-height: 1.7; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 29px; }
.primary-link, .secondary-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 750; text-decoration: none; border-radius: 8px; }
.primary-link { padding: 10px 15px; background: #3264a3; border: 1px solid #5188ce; color: #fff; }
.primary-link:hover { background: #3e75b9; color: #fff; }
.secondary-link { padding: 10px 2px; color: #bccce0; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 45px; }
.overview-grid article, .sub-card { background: linear-gradient(180deg,#15202b,#111820); border: 1px solid var(--border); border-radius: 10px; padding: 19px; }
.overview-grid h2 { margin: 10px 0 6px; font-size: 16px; letter-spacing: -.02em; }
.overview-grid p, .sub-card p { margin: 0; color: #a7b5c8; font-size: 12px; line-height: 1.75; }
.section { border-top: 1px solid var(--border); margin-top: 55px; padding-top: 47px; scroll-margin-top: 82px; }
.section-heading { display: flex; gap: 16px; align-items: start; }
.section-number { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; border: 1px solid #384f70; background: #162337; color: #a5c8fc; border-radius: 8px; font-size: 12px; font-weight: 800; }
.section h2 { font-size: 26px; margin: 5px 0 16px; letter-spacing: -.035em; line-height: 1.3; }
.section > p { margin: 2px 0 16px; color: #b6c3d3; font-size: 14px; }
.steps { counter-reset: guide-step; list-style: none; margin: 21px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { position: relative; min-height: 52px; padding: 12px 16px 12px 53px; color: #b8c5d6; background: #111923; border: 1px solid var(--border); border-radius: 9px; font-size: 13px; }
.steps li strong { color: #edf3fb; }
.steps li::before { counter-increment: guide-step; content: counter(guide-step); position: absolute; left: 16px; top: 13px; width: 23px; height: 23px; display: grid; place-items: center; background: #273a53; color: #c5ddff; border-radius: 6px; font-size: 11px; font-weight: 800; }
.note { margin: 22px 0 0; padding: 16px 18px; border-left: 2px solid #547fac; background: #121c27; color: #b8c7d9; border-radius: 0 7px 7px 0; font-size: 12px; }
.note strong { color: #eef3f9; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 27px; row-gap: 6px; margin-top: 11px; }
.feature-list article { border-bottom: 1px solid var(--border); padding: 10px 0 22px; }
.feature-list h3, .sub-card h3 { font-size: 14px; color: #e7eff9; margin: 0 0 8px; }
.feature-list p { font-size: 12px; line-height: 1.8; color: #adbcd0; margin: 0; }
.code-panel { margin: 21px 0; padding: 14px 18px 16px; border: 1px solid #2c3b51; border-radius: 9px; background: #0b121b; overflow-x: auto; }
.code-panel pre { margin: 10px 0 0; font-size: 12px; line-height: 1.8; }
.code-panel code { color: #bccde1; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
details { background: #121922; border: 1px solid var(--border); border-radius: 8px; margin: 10px 0; }
details summary { cursor: pointer; padding: 14px 16px; color: #e8eff8; font-size: 13px; font-weight: 700; }
details[open] summary { border-bottom: 1px solid var(--border); }
details p { margin: 12px 16px 16px; font-size: 12px; color: #b2bed0; }
.end-card { margin-top: 32px; padding: 24px; background: #172334; border: 1px solid #365070; border-radius: 10px; }
.end-card h3 { margin: 0 0 6px; font-size: 17px; }
.end-card p { margin: 0 0 20px; color: #b9c7d8; font-size: 13px; }
.page-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 53px; padding-top: 21px; border-top: 1px solid var(--border); font-size: 11px; color: #7f8b9c; }
@media (max-width: 1020px) {
  .layout { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .content { padding-inline: 36px; }
}
@media (max-width: 740px) {
  .topbar { padding-inline: 17px; }
  .current-page { display: none; }
  .layout { display: block; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 15px 16px; }
  .sidebar-title, .sidebar-note { display: none; }
  .sidebar nav { display: flex; gap: 3px; overflow-x: auto; padding-bottom: 3px; }
  .sidebar nav a { white-space: nowrap; font-size: 11px; padding: 7px 10px; }
  .content { max-width: none; padding: 32px 21px 25px; }
  .overview-grid, .feature-list, .two-column { grid-template-columns: 1fr; }
  .overview-grid { margin-top: 30px; }
  .section { margin-top: 40px; padding-top: 33px; }
  .section h2 { font-size: 23px; }
  .lead { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
