:root {
  color-scheme: light;
  --ink: #10243e;
  --muted: #5f7085;
  --line: #dbe5f0;
  --soft: #f4f8fc;
  --paper: #ffffff;
  --blue: #3158f5;
  --blue-dark: #1e3fc7;
  --teal: #16a2a4;
  --navy: #07182f;
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--blue-dark); text-underline-offset: 3px; }
button, input { font: inherit; }

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px max(22px, calc((100vw - 1480px) / 2));
  border-bottom: 1px solid rgba(219, 229, 240, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(140deg, var(--blue), #738bff 58%, var(--teal));
  font-weight: 900;
  letter-spacing: -.05em;
}
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: .96rem; }
.brand-copy small { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.toplinks { display: flex; align-items: center; gap: 8px; }
.toplinks a { padding: 8px 12px; border-radius: 9px; color: var(--ink); font-size: .88rem; font-weight: 700; text-decoration: none; }
.toplinks a.primary { color: #fff; background: var(--blue); }
.menu-button { display: none; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 8px 11px; }

.docs-shell {
  display: grid;
  grid-template-columns: 276px minmax(0, 900px) 190px;
  gap: 48px;
  width: min(1480px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 100px;
}

.sidebar { position: sticky; top: 94px; align-self: start; max-height: calc(100vh - 116px); overflow: auto; padding-right: 10px; }
.search-label { display: grid; gap: 6px; margin-bottom: 18px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.search-label input { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; color: var(--ink); background: var(--soft); outline: none; }
.search-label input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49, 88, 245, .12); }
.side-nav { display: grid; gap: 3px; }
.side-nav span { margin: 14px 8px 4px; color: #8090a2; font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.side-nav a { padding: 7px 9px; border-radius: 8px; color: #41546a; font-size: .88rem; font-weight: 650; text-decoration: none; }
.side-nav a:hover, .side-nav a.active { color: var(--blue-dark); background: #eef2ff; }

.content { min-width: 0; }
.hero { padding: 38px 0 62px; border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--blue-dark); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--teal); }
h1 { max-width: 820px; margin: 16px 0 20px; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.055em; }
.hero > p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-weight: 800; text-decoration: none; }
.button.primary { border-color: var(--blue); color: #fff; background: var(--blue); }

.doc-section { padding: 62px 0; border-bottom: 1px solid var(--line); }
.doc-section[hidden] { display: none; }
.section-kicker { color: var(--teal); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin: 8px 0 16px; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
h3 { margin: 34px 0 10px; font-size: 1.25rem; line-height: 1.25; }
h4 { margin: 26px 0 8px; font-size: 1rem; }
p { margin: 10px 0; }
.lead { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
ul, ol { padding-left: 24px; }
li + li { margin-top: 7px; }
code { padding: .08em .32em; border-radius: 5px; background: #edf2f8; font: .88em/1.45 "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
pre { position: relative; overflow: auto; margin: 18px 0; border: 1px solid #21354e; border-radius: 14px; padding: 18px; color: #dcecff; background: var(--navy); box-shadow: 0 16px 34px rgba(7, 24, 47, .12); }
pre code { padding: 0; color: inherit; background: transparent; font-size: .82rem; white-space: pre; }
.copy-button { position: absolute; top: 9px; right: 9px; border: 1px solid #40536a; border-radius: 7px; padding: 5px 9px; color: #dcecff; background: #132942; cursor: pointer; font-size: .72rem; font-weight: 800; }
.copy-button:hover { background: #1e3d60; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.card { padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, #fff, #f8fbfe); }
.card h3 { margin: 0 0 7px; }
.card p { color: var(--muted); font-size: .92rem; }
.card a { font-weight: 800; }
.steps { counter-reset: step; display: grid; gap: 14px; padding: 0; list-style: none; }
.steps li { position: relative; min-height: 58px; padding: 5px 0 5px 58px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 2px; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; color: #fff; background: var(--blue); font-weight: 900; }
.steps strong { display: block; }
.steps span { color: var(--muted); }
.callout { margin: 20px 0; border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; padding: 15px 18px; background: #f1f4ff; }
.callout.warning { border-left-color: #e59b22; background: #fff8e9; }
.callout strong { display: block; margin-bottom: 3px; }

.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #405267; background: var(--soft); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; color: #185d61; background: #ddf7f4; font-size: .72rem; font-weight: 900; }

details { margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
summary { cursor: pointer; padding: 14px 17px; font-weight: 850; }
details > div { padding: 0 17px 17px; }
.toc { position: sticky; top: 94px; align-self: start; padding-left: 18px; border-left: 1px solid var(--line); }
.toc strong { color: #7b8b9e; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.toc a { display: block; margin-top: 8px; color: #617288; font-size: .8rem; text-decoration: none; }
.toc a:hover { color: var(--blue); }
.no-results { display: none; margin: 40px 0; padding: 20px; border-radius: 12px; background: var(--soft); }
.no-results.visible { display: block; }
.footer { padding: 42px 0 0; color: var(--muted); font-size: .88rem; }

@media (max-width: 1120px) {
  .docs-shell { grid-template-columns: 244px minmax(0, 1fr); gap: 34px; }
  .toc { display: none; }
}

@media (max-width: 760px) {
  .topbar { padding-inline: 16px; }
  .toplinks a:not(.primary) { display: none; }
  .menu-button { display: inline-flex; }
  .docs-shell { display: block; width: min(100% - 28px, 900px); padding-top: 18px; }
  .sidebar { display: none; position: fixed; z-index: 30; inset: 68px 0 0; max-height: none; padding: 22px; background: #fff; }
  .sidebar.open { display: block; }
  .hero { padding-top: 28px; }
  h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .cards { grid-template-columns: 1fr; }
  .doc-section { padding: 46px 0; }
}

@media print {
  .topbar, .sidebar, .toc, .copy-button { display: none !important; }
  .docs-shell { display: block; width: auto; padding: 0; }
  .doc-section { break-inside: avoid; }
  pre { white-space: pre-wrap; box-shadow: none; }
}
