
.docs-page {
    padding: 0.9rem 0.85rem 3.4rem;
    overflow-x: clip;
}

.docs-page *,
.docs-page *::before,
.docs-page *::after {
    box-sizing: border-box;
}

.docs-shell {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.docs-hero {
    position: relative;
    padding: 0.6rem 0 1.8rem;
    overflow: clip;
}

.docs-hero::before {
    content: "";
    position: absolute;
    top: -1.8rem;
    right: -0.8rem;
    width: min(62vw, 280px);
    height: min(62vw, 280px);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 68%);
    pointer-events: none;
    filter: blur(10px);
}


.docs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #c7d2fe;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
}

.docs-hero-grid > *,
.docs-layout > *,
.docs-flow-step > *,
.docs-feature,
.docs-story,
.docs-mini-callout,
.docs-code-example {
    min-width: 0;
}

.docs-hero-title {
    margin: 0.65rem 0 0;
    max-width: 14ch;
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.docs-hero-lead {
    margin-top: 0.95rem;
    max-width: 44rem;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.75;
}

.docs-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.docs-hero-actions a {
    width: 100%;
    text-align: center;
}

.docs-hero-summary {
    display: grid;
    gap: 0.85rem;
    align-content: start;
}


.docs-stat {
    padding-left: 0.9rem;
    border-left: 2px solid rgba(99, 102, 241, 0.28);
}

.docs-stat-label {
    display: block;
    color: var(--text-tertiary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.docs-stat-value {
    display: block;
    margin-top: 0.28rem;
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.5;
}

.docs-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.docs-main {
    min-width: 0;
}


.docs-sidebar {
    display: grid;
    gap: 1.1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.docs-sidebar-block {
    padding-left: 0.9rem;
    border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.docs-sidebar-block h2,
.docs-section h2,
.docs-code-example h3,
.docs-feature h3,
.docs-story h3,
.docs-flow-step h3,
.docs-mini-callout h3 {
    margin: 0;
    letter-spacing: -0.02em;
}

.docs-sidebar-block p,
.docs-sidebar-block li,
.docs-section-intro,
.docs-section p,
.docs-section li,
.docs-feature p,
.docs-story p,
.docs-flow-step p,
.docs-mini-callout p,
.docs-table td,
.docs-definition-value,
.docs-support-list li {
    color: var(--text-secondary);
    line-height: 1.85;
}


.docs-list,
.docs-numbered-list,
.docs-support-list {
    margin: 0.9rem 0 0;
    padding-left: 1rem;
}

.docs-list li + li,
.docs-numbered-list li + li,
.docs-support-list li + li {
    margin-top: 0.42rem;
}


.docs-section + .docs-section {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.docs-section-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    align-items: start;
}

.docs-section-label {
    color: var(--text-tertiary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.docs-section-title {
    font-size: clamp(1.4rem, 6.8vw, 2.05rem);
    line-height: 1.15;
    text-wrap: balance;
}

.docs-section-body {
    margin-top: 0.95rem;
    margin-left: 0;
    min-width: 0;
}

.docs-section-body > p + p,
.docs-code-example + .docs-code-example,
.docs-table-wrap,
.docs-definition-list,
.docs-feature-grid,
.docs-story-grid,
.docs-flow,
.docs-callout,
.docs-mini-callout-grid,
.docs-inline-tags,
.docs-links-cluster {
    margin-top: 1.1rem;
}


.docs-inline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}


.docs-inline-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.16);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.docs-inline-tag code {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.docs-definition-list {
    display: grid;
    gap: 0.75rem;
}


.docs-definition-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.docs-definition-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.docs-definition-term {
    color: var(--text-primary);
    font-weight: 700;
}


.docs-callout {
    padding: 0.9rem 0.95rem;
    border-left: 3px solid rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.06);
    border-radius: 0 14px 14px 0;
}

.docs-callout--success {
    border-left-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.06);
}

.docs-callout--warning {
    border-left-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.06);
}

.docs-callout strong,
.docs-feature strong,
.docs-story strong,
.docs-section strong,
.docs-sidebar-block strong {
    color: var(--text-primary);
}


.docs-feature-grid,
.docs-story-grid,
.docs-mini-callout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.docs-feature,
.docs-story,
.docs-mini-callout,
.docs-flow-step {
    padding-top: 0.2rem;
}

.docs-feature h3,
.docs-story h3,
.docs-mini-callout h3,
.docs-flow-step h3 {
    font-size: 1.02rem;
}

.docs-feature p,
.docs-story p,
.docs-mini-callout p,
.docs-flow-step p {
    margin-top: 0.45rem;
}

.docs-flow {
    display: grid;
    gap: 1rem;
}


.docs-flow-step {
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}


.docs-flow-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.14);
    color: #c7d2fe;
    font-weight: 700;
}

.docs-code-example + .docs-code-example {
    padding-top: 1.1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.docs-code-example h3 {
    font-size: 1.02rem;
}


.docs-code-block {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.7rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.14);
}


.docs-code-block code {
    display: block;
    min-width: min-content;
    color: #dbeafe;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.84rem;
    line-height: 1.65;
    white-space: pre;
}


.docs-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


.docs-table {
    width: 100%;
    border-collapse: collapse;
}


.docs-table th,
.docs-table td {
    padding: 0.8rem 0.75rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.docs-table th {
    color: var(--text-primary);
    font-size: 0.88rem;
}

.docs-table code,
.docs-section code,
.docs-sidebar-block code,
.docs-inline-code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.docs-section code,
.docs-sidebar-block code,
.docs-inline-code {
    display: inline-block;
    max-width: 100%;
    padding: 0.12rem 0.42rem;
    border-radius: 0.4rem;
    background: rgba(2, 6, 23, 0.34);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    font-size: 0.92em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
}


.docs-links-cluster {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.docs-links-cluster a {
    width: 100%;
    text-align: center;
}

.docs-support-list {
    list-style: none;
    padding-left: 0;
}

.docs-support-list li {
    padding: 0.5rem 0;
}


.docs-page a {
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.docs-page a.btn-primary,
.docs-page a.btn-secondary {
    text-decoration: none;
}

@media (max-width: 767px) {
    .docs-table.docs-table--stacked thead {
        display: none;
    }

    .docs-table.docs-table--stacked,
    .docs-table.docs-table--stacked tbody,
    .docs-table.docs-table--stacked tr,
    .docs-table.docs-table--stacked td {
        display: block;
        width: 100%;
    }

    .docs-table.docs-table--stacked tr {
        padding: 0.15rem 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }

    .docs-table.docs-table--stacked td {
        padding: 0.45rem 0;
        border-bottom: 0;
    }

    .docs-table.docs-table--stacked td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.22rem;
        color: var(--text-tertiary);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
}

@media (min-width: 768px) {
    .docs-page {
        padding: 1.15rem 1rem 4rem;
    }

    .docs-hero {
        padding: 1rem 0 2.2rem;
    }

    .docs-hero::before {
        top: -2.6rem;
        right: 0;
        width: min(42vw, 360px);
        height: min(42vw, 360px);
    }

    .docs-hero-actions,
    .docs-links-cluster {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .docs-hero-actions a,
    .docs-links-cluster a {
        width: auto;
    }

    .docs-hero-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 1.2rem;
    }

    .docs-feature-grid,
    .docs-story-grid,
    .docs-mini-callout-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 1.25rem;
    }

    .docs-code-block {
        padding: 1rem;
    }

    .docs-code-block code {
        font-size: 0.9rem;
    }
}

@media (min-width: 980px) {
    .docs-page {
        padding: 1.4rem 1rem 4.5rem;
    }

    .docs-hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.68fr);
        gap: 2rem;
        align-items: end;
    }

    .docs-hero-title {
        max-width: 12ch;
        font-size: clamp(2.35rem, 5vw, 4.3rem);
    }

    .docs-hero-lead {
        font-size: 1.04rem;
        line-height: 1.9;
    }

    .docs-layout {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
        gap: 3rem;
    }

    .docs-sidebar {
        position: sticky;
        top: 5.8rem;
        gap: 1.35rem;
        padding-top: 0;
        border-top: 0;
    }

    .docs-section + .docs-section {
        margin-top: 2.6rem;
        padding-top: 2.3rem;
    }

    .docs-section-header {
        grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
        gap: 1.5rem;
    }

    .docs-section-body {
        margin-top: 1rem;
        margin-left: calc(220px + 1.5rem);
    }

    .docs-definition-item {
        grid-template-columns: minmax(120px, 160px) 1fr;
        gap: 1rem;
    }
}

.jd-guide-page {
    padding: 0.95rem 0.85rem 3.4rem;
    overflow-x: clip;
}

.jd-guide-page *,
.jd-guide-page *::before,
.jd-guide-page *::after {
    box-sizing: border-box;
}

.jd-guide-shell {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.jd-guide-hero {
    padding: 0.25rem 0 1.15rem;
    max-width: 860px;
}

.jd-guide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #c7d2fe;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jd-guide-hero h1 {
    margin: 0.6rem 0 0;
    font-size: clamp(2rem, 10vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.jd-guide-lead,
.jd-guide-summary-card p,
.jd-guide-note-card p,
.jd-guide-section-intro,
.jd-guide-step-card p,
.jd-guide-table-card p,
.jd-guide-secondary-card p,
.jd-guide-list li,
.jd-guide-ordered-list li,
.jd-guide-message {
    color: var(--text-secondary);
    line-height: 1.8;
}

.jd-guide-lead {
    margin-top: 0.9rem;
    max-width: 70ch;
    font-size: 0.98rem;
}

.jd-guide-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    align-items: start;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.jd-guide-main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.jd-guide-sidebar {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-width: 0;
}

.jd-guide-summary-card,
.jd-guide-note-card,
.jd-guide-section,
.jd-guide-table-card,
.jd-guide-secondary-card {
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
}

.jd-guide-summary-card,
.jd-guide-note-card,
.jd-guide-secondary-card,
.jd-guide-section,
.jd-guide-table-card {
    padding: 1rem;
}

.jd-guide-summary-card {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(15, 23, 42, 0.2));
    border-color: rgba(99, 102, 241, 0.26);
}

.jd-guide-summary-card h2,
.jd-guide-note-card h2,
.jd-guide-section h2,
.jd-guide-table-card h2,
.jd-guide-secondary-card h2 {
    margin: 0;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
}

.jd-guide-summary-card p,
.jd-guide-note-card p,
.jd-guide-section-intro,
.jd-guide-table-card p,
.jd-guide-secondary-card p {
    margin: 0.75rem 0 0;
}

.jd-guide-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.jd-guide-metric {
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.jd-guide-metric-label {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
}

.jd-guide-metric-value {
    display: block;
    margin-top: 0.45rem;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--text-primary);
    font-weight: 700;
}

.jd-guide-list,
.jd-guide-ordered-list {
    margin: 0.85rem 0 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.5rem;
}

.jd-guide-message {
    margin-top: 0.9rem;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.jd-guide-step-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1rem;
}

.jd-guide-step-card {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.24);
    border: 1px solid rgba(148, 163, 184, 0.12);
    min-width: 0;
}

.jd-guide-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
    font-weight: 700;
    font-size: 0.9rem;
}

.jd-guide-step-card h3 {
    margin: 0.8rem 0 0;
    font-size: 1rem;
}

.jd-guide-step-card p {
    margin: 0.55rem 0 0;
}

.jd-guide-link {
    color: #c7d2fe;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.jd-guide-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.9rem;
}

.jd-guide-table {
    width: 100%;
    border-collapse: collapse;
}

.jd-guide-table th,
.jd-guide-table td {
    text-align: left;
    padding: 0.8rem 0.7rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    vertical-align: top;
}

.jd-guide-table th {
    color: var(--text-primary);
    font-size: 0.88rem;
}

.jd-guide-table td {
    color: var(--text-secondary);
    line-height: 1.7;
}

.jd-guide-secondary {
    margin-top: 2rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.jd-guide-secondary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (max-width: 767px) {
    .jd-guide-table.jd-guide-table--stacked thead {
        display: none;
    }

    .jd-guide-table.jd-guide-table--stacked,
    .jd-guide-table.jd-guide-table--stacked tbody,
    .jd-guide-table.jd-guide-table--stacked tr,
    .jd-guide-table.jd-guide-table--stacked td {
        display: block;
        width: 100%;
    }

    .jd-guide-table.jd-guide-table--stacked tr {
        padding: 0.15rem 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }

    .jd-guide-table.jd-guide-table--stacked td {
        padding: 0.45rem 0;
        border-bottom: 0;
    }

    .jd-guide-table.jd-guide-table--stacked td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.22rem;
        color: var(--text-tertiary);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
}

@media (min-width: 768px) {
    .jd-guide-page {
        padding: 1.1rem 1rem 4rem;
    }

    .jd-guide-layout {
        gap: 2rem;
        padding-top: 1.35rem;
    }

    .jd-guide-metrics,
    .jd-guide-step-grid,
    .jd-guide-secondary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    .jd-guide-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.7fr);
        gap: 2.2rem;
    }

    .jd-guide-summary-card,
    .jd-guide-note-card,
    .jd-guide-secondary-card,
    .jd-guide-section,
    .jd-guide-table-card {
        padding: 1.2rem;
    }

    .jd-guide-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .jd-guide-secondary {
        margin-top: 2.3rem;
        padding-top: 1.35rem;
    }
}
