:root {
    --document-bg: #0b0d13;
    --document-surface: #121621;
    --document-surface-soft: #171c29;
    --document-border: rgba(148, 163, 184, .18);
    --document-text: #e5e7eb;
    --document-muted: #9ca8ba;
    --document-accent: #a78bfa;
    --document-link: #7dd3fc;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.document-page {
    margin: 0;
    min-height: 100vh;
    background: var(--document-bg);
    color: var(--document-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.document-skip-link {
    position: fixed;
    z-index: 100;
    left: 16px;
    top: -80px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    color: #111827;
}
.document-skip-link:focus { top: 12px; }
.document-site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--document-border);
    background: rgba(11, 13, 19, .92);
    backdrop-filter: blur(16px);
}
.document-site-header__inner {
    width: min(1240px, calc(100% - 32px));
    min-height: 72px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.document-brand img { display: block; width: 132px; height: auto; }
.document-site-actions { display: flex; align-items: center; gap: 8px; }
.document-site-actions a,
.document-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 12px;
    color: #dbe5f3;
    text-decoration: none;
    font-weight: 750;
}
.document-site-actions a:hover { background: rgba(255,255,255,.06); }
.document-button {
    border: 1px solid rgba(167,139,250,.45);
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #fff !important;
}
.document-layout {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 230px minmax(0, 880px);
    justify-content: center;
    gap: 48px;
    padding: 48px 0 72px;
}
.document-rail {
    position: sticky;
    top: 104px;
    align-self: start;
    padding: 18px 0;
}
.document-rail__label {
    margin: 0 0 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .04em;
}
.document-rail ul { list-style: none; margin: 0; padding: 0; }
.document-rail a {
    display: block;
    padding: 9px 11px;
    border-left: 2px solid transparent;
    color: var(--document-muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
}
.document-rail a:hover { color: #fff; }
.document-rail a[aria-current="page"] {
    border-color: var(--document-accent);
    color: #fff;
    background: rgba(167,139,250,.08);
}
.document-main { min-width: 0; }
.document-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 0 0 32px;
    border-bottom: 1px solid var(--document-border);
}
.document-hero__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(167,139,250,.28);
    border-radius: 16px;
    background: rgba(167,139,250,.08);
    font-size: 24px;
}
.document-eyebrow {
    margin: 0 0 8px;
    color: var(--document-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
}
.document-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.document-lead {
    max-width: 720px;
    margin: 12px 0 0;
    color: #c4cede;
    font-size: 17px;
    line-height: 1.7;
}
.document-updated { margin: 12px 0 0; color: var(--document-muted); font-size: 13px; }
.document-article { padding-top: 30px; font-size: 16px; line-height: 1.8; }
.document-article h2 {
    margin: 42px 0 12px;
    color: #fff;
    font-size: 23px;
    line-height: 1.35;
    scroll-margin-top: 100px;
}
.document-article h3 { margin: 28px 0 10px; color: #f3f4f6; font-size: 18px; }
.document-article p, .document-article ul, .document-article ol { margin: 0 0 18px; color: #cbd5e1; }
.document-article li { margin: 7px 0; }
.document-article strong { color: #fff; }
.document-article a { color: var(--document-link); text-underline-offset: 3px; }
.document-toc {
    margin: 0 0 30px;
    padding: 14px 18px;
    border: 1px solid var(--document-border);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}
.document-toc summary { cursor: pointer; color: #fff; font-weight: 800; }
.document-toc ol { columns: 2; margin: 14px 0 0; padding-left: 22px; }
.document-callout, .safety-alert, .disclaimer-box, .api-warning-box, .danger-box, .highlight-box {
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid rgba(96,165,250,.28);
    border-radius: 14px;
    background: rgba(96,165,250,.07);
    color: #dbeafe;
}
.document-callout--warning, .api-warning-box, .highlight-box {
    border-color: rgba(245,158,11,.32);
    background: rgba(245,158,11,.07);
    color: #fde68a;
}
.document-callout--danger, .danger-box, .disclaimer-box {
    border-color: rgba(248,113,113,.32);
    background: rgba(248,113,113,.07);
    color: #fecaca;
}
.document-step, .step, .step-box, .provider-box {
    margin: 16px 0;
    padding: 20px;
    border: 1px solid var(--document-border);
    border-radius: 14px;
    background: var(--document-surface);
}
.document-step__number, .step-number { color: var(--document-accent); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.document-step__title, .step-title { margin: 5px 0 8px; color: #fff; font-weight: 800; }
.document-final-action {
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid var(--document-border);
}
.document-footer {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--document-border);
    color: var(--document-muted);
    font-size: 13px;
}
.document-footer p { margin: 5px 0; }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid #facc15;
    outline-offset: 3px;
}
@media (max-width: 900px) {
    .document-layout { grid-template-columns: minmax(0, 780px); padding-top: 32px; }
    .document-rail { position: static; padding: 0 0 8px; }
    .document-rail nav { overflow-x: auto; }
    .document-rail ul { display: flex; gap: 4px; min-width: max-content; }
    .document-rail a { border-left: 0; border-bottom: 2px solid transparent; }
}
@media (max-width: 600px) {
    .document-site-header__inner, .document-layout { width: min(100% - 24px, 1240px); }
    .document-site-header__inner { min-height: 64px; }
    .document-brand img { width: 110px; }
    .document-site-actions a:not(.document-button):not(:first-child) { display: none; }
    .document-site-actions a, .document-button { min-height: 44px; padding: 8px 11px; font-size: 13px; }
    .document-layout { padding-top: 24px; }
    .document-hero { grid-template-columns: 1fr; gap: 14px; }
    .document-hero__icon { width: 46px; height: 46px; }
    .document-article { font-size: 16px; }
    .document-toc ol { columns: 1; }
    .document-step, .step, .step-box, .provider-box { padding: 16px; }
    .document-final-action .document-button { width: 100%; }
}
@media print {
    body.document-page { background: #fff; color: #111; }
    .document-site-header, .document-rail, .document-skip-link, .document-final-action { display: none !important; }
    .document-layout { display: block; width: 100%; padding: 0; }
    .document-hero h1, .document-article h2, .document-article h3, .document-article strong { color: #111; }
    .document-lead, .document-updated, .document-article p, .document-article li { color: #333; }
}
