.docs-shell {
    --docs-bg: #050914;
    --docs-panel: rgba(15, 23, 42, .82);
    --docs-panel-soft: rgba(2, 6, 23, .42);
    --docs-line: rgba(148, 163, 184, .24);
    --docs-copy: #dbeafe;
    --docs-muted: #b6c5d8;
    --docs-cyan: #7dd3fc;
    --docs-gold: #facc15;
    background:
        radial-gradient(circle at 8% 0%, rgba(14, 165, 233, .28), transparent 34rem),
        radial-gradient(circle at 94% 8%, rgba(245, 158, 11, .18), transparent 30rem),
        linear-gradient(180deg, #050914 0%, #0f172a 45%, #111827 100%);
    margin: -1.5rem 0 0;
    padding-bottom: 4rem;
}

.docs-hero {
    padding: 5rem 0 3rem;
    color: #fff;
}

.docs-eyebrow,
.docs-freshness {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .52rem .85rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.docs-eyebrow {
    color: #082f49;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    box-shadow: 0 14px 34px rgba(245, 158, 11, .24);
}

.docs-freshness {
    margin-left: .45rem;
    color: #ccfbf1;
    border: 1px solid rgba(94, 234, 212, .32);
    background: rgba(13, 148, 136, .2);
}

.docs-title {
    max-width: 950px;
    margin: 1.3rem 0 1rem;
    color: #fff;
    font-size: clamp(2.45rem, 6vw, 5.5rem);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: .95;
}

.docs-title span { color: var(--docs-cyan); }

.docs-lead {
    max-width: 900px;
    margin: 0;
    color: var(--docs-copy);
    font-size: 1.16rem;
    line-height: 1.75;
}

.docs-hero-card,
.doc-section,
.docs-toc {
    border: 1px solid var(--docs-line);
    background: var(--docs-panel);
    box-shadow: 0 28px 76px rgba(2, 6, 23, .4);
    backdrop-filter: blur(18px);
}

.docs-hero-card {
    padding: 1.3rem;
    border-radius: 28px;
}

.docs-stat {
    min-height: 112px;
    padding: 1rem;
    border: 1px solid rgba(125, 211, 252, .24);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(15, 23, 42, .9));
}

.docs-stat strong {
    display: block;
    color: #fff;
    font-size: 1.85rem;
    line-height: 1;
}

.docs-stat span {
    color: #bae6fd;
    font-size: .86rem;
    font-weight: 700;
}

.docs-layout {
    display: grid;
    grid-template-columns: minmax(230px, 295px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.docs-toc {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: .9rem;
    border-radius: 22px;
    scrollbar-color: #38bdf8 #0f172a;
}

.docs-toc a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .58rem .7rem;
    border-radius: 12px;
    color: var(--docs-copy);
    font-size: .88rem;
    font-weight: 760;
    text-decoration: none;
}

.docs-toc a:hover,
.docs-toc a:focus {
    color: #07111f;
    background: var(--docs-gold);
}

.docs-content {
    display: grid;
    min-width: 0;
    gap: 1.4rem;
}

.doc-section {
    overflow: hidden;
    border-radius: 28px;
    scroll-margin-top: 1rem;
}

.doc-section__header {
    padding: 1.45rem;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    background: linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(245, 158, 11, .08));
}

.doc-section__header h2 {
    margin: .3rem 0;
    color: #fff;
    font-weight: 950;
    letter-spacing: -.03em;
}

.doc-section__header p,
.doc-section__body p,
.doc-section__body li {
    color: var(--docs-copy);
    line-height: 1.72;
}

.doc-section__header p { margin: 0; }
.doc-section__body { padding: 1.45rem; color: #e5edf7; }

.doc-section__body h3 {
    margin-top: 1.15rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
}

.doc-kicker {
    color: var(--docs-gold);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.doc-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.doc-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 19px;
    background: var(--docs-panel-soft);
}

.doc-card h4 {
    margin-bottom: .45rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.doc-card p { margin-bottom: .5rem; font-size: .95rem; }
.doc-card ul { margin: 0; padding-left: 1.15rem; }

.doc-callout {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(250, 204, 21, .3);
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, rgba(250, 204, 21, .16), rgba(14, 165, 233, .1));
}

.doc-callout--danger {
    border-color: rgba(248, 113, 113, .42);
    background: linear-gradient(135deg, rgba(127, 29, 29, .62), rgba(15, 23, 42, .82));
}

.doc-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}

.doc-route {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .58rem;
    border-radius: 999px;
    color: #0f172a;
    background: #bae6fd;
    font-size: .78rem;
    font-weight: 900;
    text-decoration: none;
}

.doc-route:hover { color: #0f172a; background: var(--docs-gold); }

.doc-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.doc-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0 .52rem;
}

.doc-table th {
    padding: 0 .8rem;
    color: var(--docs-gold);
    font-size: .78rem;
    letter-spacing: .07em;
    text-align: left;
    text-transform: uppercase;
}

.doc-table td {
    padding: .8rem;
    color: var(--docs-copy);
    vertical-align: top;
    border-top: 1px solid rgba(148, 163, 184, .14);
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    background: rgba(2, 6, 23, .46);
}

.doc-table td:first-child {
    color: #fff;
    font-weight: 900;
    border-left: 1px solid rgba(148, 163, 184, .14);
    border-radius: 13px 0 0 13px;
}

.doc-table td:last-child {
    border-right: 1px solid rgba(148, 163, 184, .14);
    border-radius: 0 13px 13px 0;
}

.doc-shot {
    margin: 1rem 0 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 23px;
    background: #020617;
    box-shadow: 0 22px 55px rgba(2, 6, 23, .46);
}

.doc-shot__bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .72rem .9rem;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    background: #0f172a;
}

.doc-shot__dots { display: inline-flex; gap: .34rem; }
.doc-shot__dots span { width: .68rem; height: .68rem; border-radius: 999px; background: #ef4444; }
.doc-shot__dots span:nth-child(2) { background: #f59e0b; }
.doc-shot__dots span:nth-child(3) { background: #22c55e; }
.doc-shot__url { flex: 1; color: #94a3b8; font-size: .8rem; font-weight: 800; text-align: center; }

.doc-shot__body {
    padding: 1rem;
    background:
        radial-gradient(circle at top right, var(--shot-accent), transparent 18rem),
        linear-gradient(135deg, #0b1120, #111827);
}

.doc-shot__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.doc-shot__eyebrow { color: #bae6fd; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.doc-shot h4 { margin: .2rem 0 .7rem; color: #fff; font-weight: 950; }
.doc-shot__badge { padding: .35rem .6rem; border-radius: 999px; color: #0f172a; background: var(--docs-gold); font-size: .7rem; font-weight: 950; }
.doc-shot__chips { display: flex; flex-wrap: wrap; gap: .42rem; margin-bottom: .85rem; }
.doc-shot__chips span { padding: .32rem .55rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #fff; background: rgba(255,255,255,.12); font-size: .76rem; font-weight: 800; }
.doc-shot__media { overflow: hidden; border: 1px solid rgba(226,232,240,.18); border-radius: 17px; background: #020617; }
.doc-shot__media img { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 940; object-fit: cover; object-position: top center; }
.doc-shot figcaption { margin: 0; padding: .72rem 1rem; color: #a8b6ca; background: #020617; font-size: .83rem; }

/* The authenticated reseller menu is wider than one desktop row. On docs, wrap
   its account controls instead of letting the navigation widen the document. */
@media (min-width: 992px) {
    #navbarNav { flex-wrap: wrap; }
}

@media (max-width: 1199.98px) {
    .doc-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .docs-layout { grid-template-columns: 1fr; }
    .docs-toc { position: static; max-height: none; }
}

@media (max-width: 767.98px) {
    .docs-hero { padding-top: 3.5rem; }
    .docs-freshness { margin: .5rem 0 0; }
    .doc-grid,
    .doc-grid--three { grid-template-columns: 1fr; }
    .doc-section__body,
    .doc-section__header { padding: 1.1rem; }
    .doc-shot__header { display: block; }
    .doc-shot__badge { display: inline-block; margin-bottom: .7rem; }
}
