body.route-home {
    background: #fcfcfd;
    color: #1e293b;
}

body.route-home .site-main {
    padding: 0;
}

body.route-home .back-to-top {
    display: none !important;
}

body.route-home .reference-home {
    --home-bg: #fcfcfd;
    --home-surface: #ffffff;
    --home-primary: #0f2537;
    --home-primary-hover: #1a3a54;
    --home-text: #1e293b;
    --home-muted: #64748b;
    --home-soft: #94a3b8;
    --home-border: #e7ebf0;
    --home-border-strong: #cbd5e1;
    --home-accent: #2e68b5;
    --home-accent-soft: #edf4fc;
    --home-button-bg: #0f2537;
    --home-button-hover: #1a3a54;
    --home-planned-bg: #eef1f5;
    --home-planned-text: #5a6678;
    --home-shadow-sm: 0 1px 2px rgba(15, 37, 55, 0.04);
    --home-shadow-md: 0 4px 16px -4px rgba(15, 37, 55, 0.08);
    --home-shadow-lg: 0 12px 32px -8px rgba(15, 37, 55, 0.12);
    min-height: 100vh;
    background: var(--home-bg);
    color: var(--home-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body.route-home .reference-home *,
body.route-home .reference-home *::before,
body.route-home .reference-home *::after {
    box-sizing: border-box;
}

body.route-home .reference-home a {
    color: inherit;
    text-decoration: none;
}

body.route-home .reference-home a:focus-visible,
body.route-home .reference-home button:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--home-accent);
    outline-offset: 3px;
}

body.route-home .reference-home-container {
    width: min(100% - 48px, 1180px);
    margin: 0 auto;
}

body.route-home .reference-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(360px, 460px);
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 80px 0 56px;
    border-bottom: 1px solid var(--home-border);
}

body.route-home .reference-home-hero-copy {
    min-width: 0;
    text-align: center;
}

body.route-home .reference-home-eyebrow,
body.route-home .reference-home-article-eyebrow {
    display: inline-block;
    color: var(--home-accent);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.route-home .reference-home-eyebrow {
    margin-bottom: 18px;
}

body.route-home .reference-home-hero h1,
body.route-home .reference-home-section-heading h2,
body.route-home .reference-home-featured-article h3,
body.route-home .reference-home-sidebar-article h3,
body.route-home .reference-home-approach h2 {
    color: var(--home-primary);
    font-family: Lora, Georgia, serif;
    letter-spacing: 0;
}

body.route-home .reference-home-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.25rem, 5vw, 3.15rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.015em;
}

body.route-home .reference-home-hero-copy > p {
    max-width: 560px;
    margin: 0 auto 32px;
    color: var(--home-muted);
    font-size: 1.15rem;
    line-height: 1.55;
}

body.route-home .reference-home-hero-visual {
    width: 100%;
    margin: 0;
}

body.route-home .reference-home-hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

body.route-home .reference-home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

body.route-home .reference-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: 600 0.9rem/1 Inter, sans-serif;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body.route-home .reference-home-button-primary {
    border-color: var(--home-button-bg);
    background: var(--home-button-bg);
    color: #ffffff !important;
}

body.route-home .reference-home-button-primary:hover {
    border-color: var(--home-button-hover);
    background: var(--home-button-hover);
    box-shadow: var(--home-shadow-md);
}

body.route-home .reference-home-button-secondary {
    border-color: var(--home-border-strong);
    background: var(--home-surface);
    color: var(--home-primary) !important;
}

body.route-home .reference-home-button-secondary:hover:not(:disabled) {
    border-color: var(--home-muted);
    background: #f8fafc;
}

body.route-home .reference-home-button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

body.route-home .reference-home-section {
    padding: 56px 0;
}

body.route-home .reference-home-section + .reference-home-section {
    padding-top: 8px;
}

body.route-home .reference-home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

body.route-home .reference-home-section-heading > div {
    min-width: 0;
}

body.route-home .reference-home-section-heading h2 {
    margin: 0 0 6px;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

body.route-home .reference-home-section-heading p {
    max-width: 640px;
    margin: 0;
    color: var(--home-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

body.route-home .reference-home-section-heading > a {
    flex: 0 0 auto;
    padding-bottom: 3px;
    color: var(--home-accent);
    font-size: 0.82rem;
    font-weight: 650;
    white-space: nowrap;
}

body.route-home .reference-home-section-heading > a:hover {
    color: var(--home-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.route-home .reference-home-assessment-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

body.route-home .reference-home-assessment-card {
    display: flex;
    min-width: 0;
    min-height: 300px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: var(--home-surface);
    box-shadow: var(--home-shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.route-home .reference-home-assessment-card:hover {
    border-color: var(--home-border-strong);
    background: var(--home-surface);
    box-shadow: var(--home-shadow-lg);
}

body.route-home .reference-home-card-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.route-home .reference-home-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

body.route-home .reference-home-badge::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

body.route-home .reference-home-badge-available {
    background: var(--home-accent-soft);
    color: #245b9e;
}

body.route-home .reference-home-badge-experimental {
    background: #f1f3f7;
    color: #536176;
}

body.route-home .reference-home-badge-recommended {
    background: var(--home-accent-soft);
    color: #245b9e;
}

body.route-home .reference-home-badge-research {
    background: #eaf1fb;
    color: #2e5f9f;
}

body.route-home .reference-home-badge-planned {
    background: var(--home-planned-bg);
    color: var(--home-planned-text);
}

body.route-home .reference-home-assessment-card h3 {
    margin: 0;
    color: var(--home-primary);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

body.route-home .reference-home-card-meta {
    color: var(--home-soft);
    font-size: 0.8rem;
    font-weight: 500;
}

body.route-home .reference-home-assessment-card p {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

body.route-home .reference-home-card-action {
    width: 100%;
    margin-top: 24px;
}

body.route-home .reference-home-systems-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

body.route-home .reference-home-system-card {
    display: flex;
    overflow: hidden;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: var(--home-surface);
    box-shadow: var(--home-shadow-sm);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.route-home .reference-home-system-card:hover {
    border-color: var(--home-border-strong);
    background: var(--home-surface);
    box-shadow: var(--home-shadow-lg);
}

body.route-home .reference-home-system-card:hover .reference-home-chevron {
    color: var(--home-accent);
    transform: translateX(3px);
}

body.route-home .reference-home-system-card:hover .reference-home-system-glyph svg {
    color: var(--home-accent);
}

body.route-home .reference-home-system-card:hover .reference-home-system-glyph .reference-home-glyph-accent {
    color: var(--home-primary);
}

body.route-home .reference-home-system-glyph {
    display: flex;
    height: 108px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--home-border);
    background: linear-gradient(180deg, #f7f9fb 0%, #f1f4f8 100%);
}

body.route-home .reference-home-system-glyph svg {
    color: #5c7088;
    transition: color 0.2s ease;
}

body.route-home .reference-home-system-glyph .reference-home-glyph-accent {
    color: var(--home-primary);
}

body.route-home .reference-home-system-body {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    padding: 18px 20px 20px;
}

body.route-home .reference-home-system-name {
    color: var(--home-primary);
    font-family: Lora, Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.005em;
}

body.route-home .reference-home-system-desc {
    flex-grow: 1;
    margin-top: 6px;
    color: var(--home-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

body.route-home .reference-home-system-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--home-border);
}

body.route-home .reference-home-system-action-text {
    color: var(--home-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

body.route-home .reference-home-chevron {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    color: var(--home-soft);
    transition: color 0.2s ease, transform 0.2s ease;
}

body.route-home .reference-home-jungian-glyph {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

body.route-home .reference-home-jungian-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5c7088;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
}

body.route-home .reference-home-jungian-letter {
    width: 14px;
    text-align: center;
}

body.route-home .reference-home-jungian-letter.is-marked {
    color: var(--home-primary);
}

body.route-home .reference-home-jungian-track {
    position: relative;
    width: 38px;
    height: 1px;
    background: var(--home-border-strong);
}

body.route-home .reference-home-jungian-track::after {
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5c7088;
    content: '';
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}

body.route-home .reference-home-system-card:hover .reference-home-jungian-track::after {
    background: var(--home-accent);
}

body.route-home .reference-home-jungian-track.pos-30::after {
    left: 30%;
}

body.route-home .reference-home-jungian-track.pos-65::after {
    left: 65%;
}

body.route-home .reference-home-jungian-track.pos-45::after {
    left: 45%;
}

body.route-home .reference-home-jungian-track.pos-75::after {
    left: 75%;
}

body.route-home .reference-home-approach svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.9;
}

body.route-home .reference-home-magazine-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
    gap: 22px;
}

body.route-home .reference-home-featured-article,
body.route-home .reference-home-sidebar-article {
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: var(--home-surface);
    box-shadow: var(--home-shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.route-home .reference-home-featured-article:hover,
body.route-home .reference-home-sidebar-article:hover {
    border-color: var(--home-border-strong);
    background: var(--home-surface);
    box-shadow: var(--home-shadow-lg);
}

body.route-home .reference-home-featured-article {
    overflow: hidden;
}

body.route-home .reference-home-article-image {
    position: relative;
    display: grid;
    min-height: 250px;
    overflow: hidden;
    place-items: center;
    background: #dce4ed;
}

body.route-home .reference-home-article-image::before,
body.route-home .reference-home-article-image::after,
body.route-home .reference-home-article-image span {
    position: absolute;
    border: 1px solid rgba(15, 37, 55, 0.16);
    border-radius: 50%;
    content: "";
}

body.route-home .reference-home-article-image::before {
    width: 190px;
    height: 190px;
}

body.route-home .reference-home-article-image::after {
    width: 120px;
    height: 120px;
}

body.route-home .reference-home-article-image span {
    width: 52px;
    height: 52px;
    background: rgba(15, 37, 55, 0.05);
}

body.route-home .reference-home-article-content {
    display: flex;
    min-height: 240px;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
}

body.route-home .reference-home-article-eyebrow {
    margin-bottom: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

body.route-home .reference-home-featured-article h3 {
    margin: 0 0 14px;
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.01em;
}

body.route-home .reference-home-featured-article a:hover h3 {
    color: var(--home-primary-hover);
}

body.route-home .reference-home-featured-article p {
    margin: 0 0 22px;
    color: var(--home-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

body.route-home .reference-home-article-meta {
    color: var(--home-soft);
    font-size: 0.78rem;
    font-weight: 500;
}

body.route-home .reference-home-article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.route-home .reference-home-sidebar-article {
    display: flex;
    min-height: 150px;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
}

body.route-home .reference-home-sidebar-article h3 {
    margin: 4px 0 12px;
    font-size: 1.18rem;
    font-weight: 500;
    line-height: 1.32;
}

body.route-home .reference-home-approach {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 40px 0 56px;
    padding: 30px 34px;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbfc 0%, #f4f7fa 100%);
}

body.route-home .reference-home-approach-copy {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

body.route-home .reference-home-approach-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    background: var(--home-surface);
    color: var(--home-primary);
}

body.route-home .reference-home-approach h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 600;
}

body.route-home .reference-home-approach p {
    max-width: 660px;
    margin: 0;
    color: var(--home-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

body.route-home .reference-home-approach > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    color: var(--home-primary);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

body.route-home .reference-home-approach > a:hover {
    gap: 10px;
    color: var(--home-primary-hover);
}

body.route-home .reference-home-approach > a svg {
    width: 16px;
    height: 16px;
}

body.route-home .site-footer.docs-home-footer {
    display: block !important;
    margin-top: 0;
    padding: 0.85rem 0;
    border-top: 1px solid #e3e8ef;
    background: #fcfcfd;
}

body.route-home .site-footer-inner {
    width: min(var(--pv-width-wide), calc(100% - 48px));
    min-height: 0;
    padding: 0;
    color: #8290a3;
    font-family: Inter, sans-serif;
    font-size: 0.78rem;
}

body.route-home .docs-footer-links a {
    color: #5f6f84;
}

html[data-theme="dark"] body.route-home,
html[data-theme="dark"] body.route-home .reference-home {
    --home-bg: #101720;
    --home-surface: #17212c;
    --home-primary: #eef4fa;
    --home-primary-hover: #ffffff;
    --home-text: #dce5ee;
    --home-muted: #aab8c7;
    --home-soft: #8393a5;
    --home-border: #2b3948;
    --home-border-strong: #435466;
    --home-accent: #79a8df;
    --home-accent-soft: #193450;
    --home-button-bg: #2e68b5;
    --home-button-hover: #3a78c7;
    --home-planned-bg: #26313d;
    --home-planned-text: #aeb9c7;
    --home-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --home-shadow-md: 0 10px 24px rgba(0, 0, 0, 0.24);
    --home-shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, 0.34);
    background: var(--home-bg);
    color: var(--home-text);
}

html[data-theme="dark"] body.route-home .reference-home-button-secondary,
html[data-theme="dark"] body.route-home .reference-home-assessment-card,
html[data-theme="dark"] body.route-home .reference-home-system-card,
html[data-theme="dark"] body.route-home .reference-home-featured-article,
html[data-theme="dark"] body.route-home .reference-home-sidebar-article,
html[data-theme="dark"] body.route-home .reference-home-approach-icon {
    background: var(--home-surface);
}

html[data-theme="dark"] body.route-home .reference-home-button-secondary:hover:not(:disabled) {
    background: #1d2a37;
}

html[data-theme="dark"] body.route-home .reference-home-approach {
    background: #1b2733;
}

html[data-theme="dark"] body.route-home .reference-home-system-glyph {
    border-color: var(--home-border);
    background: linear-gradient(180deg, #1d2a37 0%, #18232f 100%);
}

html[data-theme="dark"] body.route-home .reference-home-system-glyph svg,
html[data-theme="dark"] body.route-home .reference-home-jungian-row {
    color: #8fa1b5;
}

html[data-theme="dark"] body.route-home .reference-home-article-image {
    background: #243342;
}

html[data-theme="dark"] body.route-home .reference-home-article-image::before,
html[data-theme="dark"] body.route-home .reference-home-article-image::after,
html[data-theme="dark"] body.route-home .reference-home-article-image span {
    border-color: rgba(220, 229, 238, 0.18);
}

html[data-theme="dark"] body.route-home .site-footer.docs-home-footer {
    border-color: #2b3948;
    background: #101720;
}

html[data-theme="dark"] body.route-home .site-footer-inner,
html[data-theme="dark"] body.route-home .docs-footer-links a {
    color: #94a4b6;
}

@media (max-width: 1100px) {
    body.route-home .reference-home-assessment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    body.route-home .reference-home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
        gap: 36px;
    }

    body.route-home .reference-home-systems-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body.route-home .reference-home-hero {
        grid-template-columns: 1fr;
    }

    body.route-home .reference-home-hero-visual {
        width: min(100%, 560px);
        margin-inline: auto;
    }

    body.route-home .reference-home-magazine-grid {
        grid-template-columns: 1fr;
    }

    body.route-home .reference-home-approach {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    body.route-home .reference-home-container {
        width: min(100% - 32px, 1180px);
    }

    body.route-home .site-footer-inner {
        width: min(100% - 32px, var(--pv-width-wide));
    }

    body.route-home .reference-home-hero {
        padding: 48px 0 40px;
    }

    body.route-home .reference-home-section {
        padding: 42px 0;
    }

    body.route-home .reference-home-section + .reference-home-section {
        padding-top: 8px;
    }

    body.route-home .reference-home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    body.route-home .reference-home-section-heading > a {
        padding-bottom: 0;
    }

    body.route-home .reference-home-assessment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    body.route-home .reference-home-container {
        width: min(100% - 24px, 1180px);
    }

    body.route-home .site-footer-inner {
        width: min(100% - 24px, var(--pv-width-wide));
    }

    body.route-home .reference-home-hero h1 {
        font-size: 2.25rem;
    }

    body.route-home .reference-home-actions,
    body.route-home .reference-home-button {
        width: 100%;
    }

    body.route-home .reference-home-assessment-grid,
    body.route-home .reference-home-systems-grid {
        grid-template-columns: 1fr;
    }

    body.route-home .reference-home-assessment-card {
        min-height: 0;
    }

    body.route-home .reference-home-approach {
        padding: 24px;
    }

    body.route-home .reference-home-approach-copy {
        flex-direction: column;
    }

    body.route-home .reference-home-approach > a {
        align-items: flex-start;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.route-home .reference-home * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
