:root {
    --docs-primary: #4f46e5;
    --docs-primary-dark: #3730a3;
    --docs-accent: #4f46e5;
    --docs-ink: #1f2937;
    --docs-muted: #667085;
    --docs-border: #dfe3e8;
    --docs-surface: #ffffff;
    --docs-soft: #f7f8fa;
    --docs-sidebar-width: 304px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--docs-ink);
    background: var(--docs-surface);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

a {
    color: var(--docs-primary-dark);
    text-decoration: none;
}

a:hover {
    color: var(--docs-primary-dark);
}

.docs-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 68px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border-bottom: 1px solid var(--docs-border);
}

.docs-brand,
.docs-header-actions {
    display: flex;
    align-items: center;
}

.docs-brand {
    gap: 12px;
    color: var(--docs-ink);
    font-weight: 650;
}

.docs-brand img {
    width: 124px;
    height: auto;
}

.docs-brand span {
    padding-left: 14px;
    border-left: 1px solid var(--docs-border);
}

.docs-header-actions {
    gap: 16px;
    font-size: .92rem;
    font-weight: 600;
}

.docs-site-link {
    padding: 8px 13px;
    color: #fff;
    background: var(--docs-primary);
    border-radius: 4px;
}

.docs-site-link:hover {
    color: #fff;
    background: var(--docs-primary-dark);
}

.docs-shell {
    display: grid;
    grid-template-columns: var(--docs-sidebar-width) minmax(0, 1fr);
    min-height: calc(100vh - 68px);
}

.docs-sidebar {
    position: sticky;
    top: 68px;
    align-self: start;
    height: calc(100vh - 68px);
    padding: 20px 18px 32px;
    overflow-y: auto;
    background: #fbfbfc;
    border-right: 1px solid var(--docs-border);
}

.docs-search-wrap {
    position: relative;
    margin-bottom: 16px;
}

.docs-search-wrap i {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--docs-muted);
    transform: translateY(-50%);
}

.docs-search-wrap input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 40px;
    color: var(--docs-ink);
    background: #fff;
    border: 1px solid var(--docs-border);
    border-radius: 4px;
    outline: 0;
}

.docs-search-wrap input:focus {
    border-color: var(--docs-primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, .12);
}

.docs-navigation-toggle {
    display: none;
}

.docs-overview-link,
.docs-nav-item {
    display: block;
    border-left: 3px solid transparent;
}

.docs-overview-link {
    margin-bottom: 18px;
    padding: 7px 10px;
    color: var(--docs-ink);
    font-weight: 700;
}

.docs-nav-group {
    margin-top: 20px;
}

.docs-nav-group h2 {
    margin: 0 0 6px 11px;
    color: #475467;
    font-size: .79rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.docs-nav-group.is-current h2 {
    color: var(--docs-primary-dark);
}

.docs-nav-item {
    margin: 1px 0;
    padding: 6px 10px;
    color: var(--docs-ink);
}

.docs-nav-item span {
    display: block;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.4;
}

.docs-nav-item small {
    display: none;
}

.docs-overview-link:hover,
.docs-nav-item:hover {
    color: var(--docs-ink);
    background: #f0f2f5;
}

.docs-overview-link.is-active,
.docs-nav-item.is-active {
    color: var(--docs-primary-dark);
    background: #eef0ff;
    border-left-color: var(--docs-primary);
}

.docs-nav-item.is-active span {
    font-weight: 700;
}

.docs-no-results {
    padding: 14px 12px;
    color: var(--docs-muted);
    font-size: .9rem;
}

.docs-main {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 48px 58px 88px;
    display: grid;
    grid-template-columns: minmax(0, 820px) 220px;
    gap: 68px;
}

.docs-hero,
.docs-grid {
    grid-column: 1 / -1;
}

.docs-hero {
    padding: 48px 44px;
    color: var(--docs-ink);
    background: #f7f8fa;
    border: 1px solid var(--docs-border);
    border-left: 5px solid var(--docs-primary);
    border-radius: 4px;
}

.docs-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--docs-primary-dark);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: none;
}

.docs-hero .docs-eyebrow {
    color: var(--docs-primary-dark);
}

.docs-hero h1,
.docs-article h1 {
    margin: 0;
    letter-spacing: -.045em;
}

.docs-hero h1 {
    max-width: 760px;
    color: var(--docs-ink);
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.08;
}

.docs-hero p {
    max-width: 700px;
    margin: 22px 0 0;
    color: var(--docs-muted);
    font-size: 1.12rem;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.docs-category-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--docs-border);
    border-radius: 4px;
}

.docs-category-icon {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--docs-muted);
    background: transparent;
}

.docs-category-card h2 {
    margin: 8px 0 18px;
    font-size: 1.25rem;
}

.docs-category-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.docs-category-card li + li {
    border-top: 1px solid var(--docs-border);
}

.docs-category-card a {
    padding: 14px 0;
    display: block;
}

.docs-category-card strong,
.docs-category-card span {
    display: block;
}

.docs-category-card strong {
    color: var(--docs-ink);
}

.docs-category-card span {
    margin-top: 3px;
    color: var(--docs-muted);
    font-size: .9rem;
}

.docs-breadcrumb {
    margin-bottom: 38px;
    display: flex;
    gap: 9px;
    color: var(--docs-muted);
    font-size: .9rem;
}

.docs-article h1 {
    font-size: clamp(2.05rem, 4vw, 3.15rem);
    line-height: 1.08;
}

.docs-lead {
    max-width: 760px;
    margin: 20px 0 8px;
    color: var(--docs-muted);
    font-size: 1.2rem;
}

.docs-updated {
    color: #8a8299;
    font-size: .82rem;
}

.docs-article-section {
    padding-top: 44px;
    scroll-margin-top: 96px;
}

.docs-article-section h2 {
    margin: 0 0 16px;
    font-size: 1.65rem;
    letter-spacing: -.025em;
}

.docs-article-section p,
.docs-article-section li {
    color: #4c455c;
    font-size: 1.02rem;
}

.docs-article-section ul,
.docs-article-section ol {
    padding-left: 1.4rem;
}

.docs-article-section li {
    margin-bottom: 8px;
}

.docs-figure {
    margin: 28px 0;
}

.docs-figure img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--docs-border);
    border-radius: 4px;
    box-shadow: none;
}

.docs-figure figcaption {
    margin-top: 10px;
    color: var(--docs-muted);
    font-size: .85rem;
}

/* ISP App captures are phone screens: keep them close to their natural size
   instead of stretching them to the full article width. */
.docs-article--isp-app .docs-figure {
    width: min(100%, 310px);
    margin: 32px auto;
}

.docs-article--isp-app .docs-figure img {
    width: 100%;
    border: 9px solid #17131f;
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(30, 19, 55, .2);
}

.docs-article--isp-app .docs-figure figcaption {
    text-align: center;
    line-height: 1.45;
}

/* These assets already include a precise iPhone 15 Pro frame. Do not add a
   second CSS bezel or crop their transparent outer shadow. */
.docs-article--isp-app .docs-phone-figure {
    width: min(100%, 360px);
}

.docs-article--isp-app .docs-phone-figure img {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Administration captures document the desktop configuration area and must
   not be presented inside the phone frame used by customer-facing screens. */
.docs-article--isp-app .docs-figure:has(img[src*="isp-app-admin/"]) {
    width: 100%;
}

.docs-article--isp-app .docs-figure:has(img[src*="isp-app-admin/"]) img {
    border: 1px solid var(--docs-border);
    border-radius: 4px;
    box-shadow: none;
}

@media (max-width: 420px) {
    .docs-article--isp-app .docs-figure {
        width: min(100%, 286px);
    }
}

.docs-checklist {
    padding: 0 !important;
    list-style: none;
}

.docs-checklist li {
    position: relative;
    padding: 13px 16px 13px 44px;
    background: var(--docs-soft);
    border: 1px solid var(--docs-border);
    border-radius: 3px;
}

.docs-checklist li::before {
    content: "✓";
    position: absolute;
    left: 16px;
    color: var(--docs-primary);
    font-weight: 900;
}

.docs-toc {
    position: sticky;
    top: 108px;
    align-self: start;
    padding-left: 22px;
    border-left: 1px solid var(--docs-border);
}

.docs-toc h2 {
    margin: 0 0 12px;
    color: var(--docs-muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.docs-toc a {
    margin: 8px 0;
    display: block;
    color: var(--docs-muted);
    font-size: .88rem;
}

.docs-toc a:hover {
    color: var(--docs-primary);
}

.docs-toc a.is-active {
    color: var(--docs-primary-dark);
    font-weight: 650;
}

.docs-footer {
    min-height: 82px;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #d0d5dd;
    background: #20242c;
}

.docs-footer a {
    color: #fff;
}

@media (max-width: 1100px) {
    .docs-main {
        padding-right: 36px;
        padding-left: 36px;
        grid-template-columns: minmax(0, 1fr);
    }

    .docs-toc {
        display: none;
    }
}

@media (max-width: 820px) {
    .docs-header {
        padding: 12px 18px;
    }

    .docs-brand span {
        display: none;
    }

    .docs-header-actions {
        gap: 10px;
        font-size: .85rem;
    }

    .docs-shell {
        display: block;
    }

    .docs-sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 18px;
        border-right: 0;
        border-bottom: 1px solid var(--docs-border);
    }

    .docs-nav-group {
        display: none;
    }

    .docs-nav-group.is-current {
        display: block;
    }

    .docs-navigation-toggle {
        width: 100%;
        margin-bottom: 8px;
        padding: 11px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: var(--docs-ink);
        background: #fff;
        border: 1px solid var(--docs-border);
        border-radius: 4px;
        font-weight: 650;
        text-align: left;
    }

    .docs-navigation-toggle i {
        transition: transform .2s ease;
    }

    .docs-sidebar.is-expanded .docs-navigation-toggle i {
        transform: rotate(180deg);
    }

    .docs-sidebar.is-expanded .docs-nav-group,
    .docs-sidebar.has-query .docs-nav-group:not([hidden]) {
        display: block;
    }

    .docs-main {
        padding: 32px 18px 64px;
    }

    .docs-hero {
        padding: 34px 26px;
        border-radius: 4px;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .docs-brand img {
        width: 108px;
    }

    .docs-site-link {
        display: none;
    }
}
