.personality-test {
    --pt-bg: var(--page-bg, #eceeef);
    --pt-soft: var(--surface-soft, #f6f8fc);
    --pt-border: rgba(129, 144, 168, 0.26);
    --pt-text: var(--text-heading, #0f172f);
    --pt-muted: var(--text-muted, #4f5e73);
    --pt-accent: var(--accent, #2563eb);
    --pt-accent-dark: var(--accent-deep, #1d4ed8);
    --pt-accent-soft: rgba(var(--accent-rgb, 37, 99, 235), 0.08);
    --pt-warning: #8a4f00;
    --pt-warning-bg: #fff3d8;
    --pt-danger: #8a2f2f;
    --pt-danger-bg: #f4dddd;
    display: grid;
    gap: 18px;
    color: var(--pt-text);
}

/* Concise editorial intro shared by every personality test. */
body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-editorial {
    --intro-primary: #0f2537;
    --intro-accent: #2e68b5;
    --intro-text: #1e293b;
    --intro-muted: #64748b;
    --intro-soft: #94a3b8;
    --intro-border: #e7ebf0;
    --intro-surface: #fff;
    width: min(100%, 1180px);
    margin: 0 auto;
    color: var(--intro-text);
    font-family: Inter, sans-serif;
}

.personality-intro-hero {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.75rem) 1.5rem;
    align-items: center;
    flex-direction: column;
    border-bottom: 1px solid var(--intro-border);
    text-align: center;
}

.personality-intro-hero h1,
.personality-intro-section-head h2,
.personality-intro-final-cta h2 {
    margin: 0;
    color: var(--intro-primary);
    font-family: Lora, Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.personality-intro-hero h1 {
    max-width: 760px;
    font-size: clamp(2.15rem, 5vw, 3.25rem);
    line-height: 1.14;
    text-wrap: balance;
}

.personality-intro-lead {
    max-width: 640px;
    margin: 1rem auto 0;
    color: var(--intro-muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.personality-intro-meta {
    display: flex;
    margin-top: 1.65rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.4rem;
}

.personality-intro-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--intro-muted);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.personality-intro-meta svg,
.personality-intro-facts svg,
.personality-intro-faq summary svg,
.personality-intro-actions .personality-test-btn svg,
.personality-intro-final-cta .personality-test-btn svg,
.personality-intro-sticky .personality-test-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.personality-intro-meta svg {
    width: 1rem;
    height: 1rem;
    color: var(--intro-soft);
}

.personality-intro-actions {
    display: flex;
    margin-top: 1.8rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-editorial .personality-test-btn-primary,
.personality-intro-secondary {
    min-width: 0;
    min-height: 0;
    padding: 12px 24px;
    border: 1px solid var(--intro-primary);
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-editorial .personality-test-btn-primary {
    gap: 0.5rem;
    background: var(--intro-primary);
    color: #fff;
}

.personality-intro-editorial .personality-test-btn-primary svg {
    width: 1rem;
    height: 1rem;
}

.personality-intro-secondary {
    background: var(--intro-surface);
    color: var(--intro-primary);
}

.personality-intro-notice {
    max-width: 620px;
    margin: 1.35rem auto 0;
    padding: 0.8rem 1rem;
    border: 1px solid var(--intro-border);
    border-left: 3px solid var(--intro-accent);
    border-radius: 10px;
    background: rgba(46, 104, 181, 0.05);
    color: var(--intro-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.personality-intro-section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem 0;
}

.personality-intro-section-head {
    max-width: 680px;
    margin: 0 auto 2rem;
    text-align: center;
}

.personality-intro-section-head > span {
    display: block;
    margin-bottom: 0.85rem;
    color: var(--intro-accent);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.personality-intro-section-head h2 {
    font-size: clamp(1.65rem, 3vw, 2rem);
    line-height: 1.2;
}

.personality-intro-section-head p {
    margin: 0.75rem auto 0;
    color: var(--intro-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.personality-intro-trait-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.personality-intro-trait-card {
    display: flex;
    grid-column: span 2;
    min-width: 0;
    padding: 1.35rem;
    flex-direction: column;
    border: 1px solid var(--intro-border);
    border-radius: 14px;
    background: var(--intro-surface);
    box-shadow: 0 1px 2px rgba(15, 37, 55, 0.04);
    text-align: left;
}

.personality-intro-trait-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.personality-intro-trait-letter {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 1rem;
    place-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    color: var(--intro-primary);
    font-family: Lora, Georgia, serif;
    font-weight: 600;
}

.personality-intro-trait-card h3,
.personality-intro-facts h3 {
    margin: 0;
    color: var(--intro-primary);
    font-size: 1rem;
    font-weight: 600;
}

.personality-intro-trait-card p,
.personality-intro-facts p {
    margin: 0.45rem 0 1.25rem;
    color: var(--intro-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.personality-intro-spectrum {
    height: 4px;
    margin-top: auto;
    border-radius: 999px;
    background: linear-gradient(90deg, #cbd5e1, var(--intro-accent));
}

.personality-intro-spectrum-labels {
    display: flex;
    margin-top: 0.45rem;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--intro-soft);
    font-size: 0.72rem;
    font-weight: 500;
}

.personality-intro-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.personality-intro-facts article {
    text-align: center;
}

.personality-intro-facts > article > svg {
    width: 38px;
    height: 38px;
    margin: 0 auto 1rem;
    padding: 8px;
    border: 1px solid var(--intro-border);
    border-radius: 10px;
    color: var(--intro-primary);
}

.personality-intro-facts p {
    max-width: 300px;
    margin-inline: auto;
}

.personality-intro-faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.personality-intro-faq details {
    border: 1px solid var(--intro-border);
    border-radius: 12px;
    background: var(--intro-surface);
}

.personality-intro-faq details + details {
    margin-top: 0.65rem;
}

.personality-intro-faq summary {
    display: flex;
    padding: 1rem 1.2rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--intro-primary);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    list-style: none;
}

.personality-intro-faq summary::-webkit-details-marker {
    display: none;
}

.personality-intro-faq summary svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    color: var(--intro-soft);
    transition: transform 0.2s ease;
}

.personality-intro-faq details[open] summary svg {
    transform: rotate(90deg);
}

.personality-intro-faq details p {
    max-width: 660px;
    margin: 0;
    padding: 0 1.2rem 1rem;
    color: var(--intro-muted);
    font-size: 0.87rem;
    line-height: 1.6;
}

.personality-intro-final-cta {
    display: flex;
    margin: clamp(3.5rem, 7vw, 5.5rem) 1.5rem 4rem;
    padding: 1.75rem 2rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid var(--intro-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbfc, #f4f7fa);
    text-align: left;
}

.personality-intro-final-cta h2 {
    font-size: 1.2rem;
}

.personality-intro-final-cta p {
    margin: 0.4rem 0 0;
    color: var(--intro-muted);
    font-size: 0.88rem;
}

.personality-intro-sticky {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: flex;
    padding: 0.8rem max(1.5rem, calc((100vw - 1180px) / 2));
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--intro-border);
    background: var(--intro-surface);
    box-shadow: 0 -8px 24px rgba(15, 37, 55, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.personality-intro-sticky.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.personality-intro-sticky div {
    display: grid;
}

.personality-intro-sticky strong {
    color: var(--intro-primary);
    font-size: 0.88rem;
}

.personality-intro-sticky span {
    color: var(--intro-soft);
    font-size: 0.76rem;
}

body.personality-test-focus-mode .personality-intro-sticky {
    display: none;
}

@media (max-width: 760px) {
    .personality-intro-trait-grid,
    .personality-intro-facts {
        grid-template-columns: 1fr;
    }

    .personality-intro-trait-card,
    .personality-intro-trait-card:nth-child(4) {
        grid-column: auto;
    }

    .personality-intro-final-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Trait cards copied from the supplied July 2026 intro template. */
body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-card,
body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-card:nth-child(4) {
    display: flex;
    grid-column: auto;
    min-width: 0;
    padding: 22px 22px 20px;
    flex-direction: column;
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(15, 37, 55, 0.04);
    text-align: left;
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-card:hover {
    border-color: #cbd5e1;
    background-color: #fafbfd;
    box-shadow: 0 12px 32px -8px rgba(15, 37, 55, 0.12);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-letter {
    display: flex;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    color: #0f2537;
    font-family: Lora, Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-card h3 {
    margin: 0 0 6px;
    color: #0f2537;
    font-family: Inter, sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-card p {
    margin: 0 0 20px;
    flex-grow: 1;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-spectrum {
    display: block;
    height: 4px;
    margin: 0 0 8px;
    border-radius: 2px;
    background: linear-gradient(90deg, #cbd5e1, #2e68b5);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-spectrum-labels {
    display: flex;
    margin: 0;
    justify-content: space-between;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 500;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-spectrum-labels span:last-child {
    text-align: right;
}

@media (max-width: 860px) {
    body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-grid {
        grid-template-columns: 1fr;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-screen[data-screen="intro"]:has(.personality-intro-editorial) {
        width: 100%;
        margin-inline: 0;
        padding-inline: 0;
    }
}

/* IPIP–HEXACO v2 uses the shared PersonaIndex presentation and result vocabulary. */
.hexaco-intro-scale {
    display: grid;
    width: min(100%, 620px);
    margin-top: 1.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--intro-border);
    border-radius: 14px;
    background: var(--intro-surface);
}

.hexaco-intro-scale div {
    display: grid;
    min-height: 116px;
    padding: 14px;
    place-items: center;
    align-content: center;
    gap: 3px;
}

.hexaco-intro-scale div + div {
    border-left: 1px solid var(--intro-border);
}

.hexaco-intro-scale span,
.hexaco-intro-scale small {
    color: var(--intro-muted);
    font-size: 0.78rem;
}

.hexaco-intro-scale strong {
    color: var(--intro-accent);
    font-family: Lora, Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
}

.hexaco-intro-scale-note {
    max-width: 620px;
    margin: 0.85rem auto 0;
    color: var(--intro-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.hexaco-consent {
    display: grid;
    width: min(100%, 700px);
    margin-top: 1.4rem;
    padding: 17px 18px;
    grid-template-columns: auto 1fr;
    gap: 12px;
    border: 1px solid var(--intro-border);
    border-radius: 14px;
    background: #f8fafc;
    color: var(--intro-muted);
    text-align: left;
    font-size: 0.88rem;
    line-height: 1.55;
}

.hexaco-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--intro-accent);
}

.hexaco-consent strong,
.hexaco-consent a {
    color: var(--intro-primary);
}

.hexaco-result-report {
    display: grid;
    width: min(100%, 1120px);
    margin: 0 auto;
    gap: 22px;
}

.hexaco-result-header,
.hexaco-result-panel {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--pt-border);
    border-radius: 18px;
    background: var(--surface, #fff);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.hexaco-result-eyebrow {
    margin: 0 0 8px;
    color: var(--pt-accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hexaco-result-header h1,
.hexaco-result-panel h2,
.hexaco-domain-card h3 {
    margin: 0;
    color: var(--pt-text);
    font-family: Lora, Georgia, serif;
    font-weight: 500;
}

.hexaco-result-header h1 {
    font-size: clamp(2rem, 5vw, 3.35rem);
}

.hexaco-result-header > p:last-child,
.hexaco-result-panel > p,
.hexaco-domain-card p {
    color: var(--pt-muted);
    line-height: 1.65;
}

.hexaco-result-note {
    margin-top: 18px;
    padding: 14px 16px;
    border-left: 3px solid var(--pt-accent);
    border-radius: 0 10px 10px 0;
    background: var(--pt-accent-soft);
    color: var(--pt-muted);
    line-height: 1.55;
}

.hexaco-domain-results,
.hexaco-premium-domains {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hexaco-domain-card,
.hexaco-premium-domain {
    padding: 22px;
    border: 1px solid var(--pt-border);
    border-radius: 16px;
    background: var(--surface, #fff);
}

.hexaco-domain-head,
.hexaco-premium-domain-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.hexaco-domain-code {
    display: inline-grid;
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 10px;
    background: var(--pt-accent-soft);
    color: var(--pt-accent);
    font-weight: 900;
}

.hexaco-domain-score {
    color: var(--pt-accent);
    text-align: right;
    white-space: nowrap;
}

.hexaco-domain-score strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.hexaco-domain-score span {
    color: var(--pt-muted);
    font-size: 0.73rem;
}

.hexaco-raw-track,
.hexaco-percentile-track {
    position: relative;
    height: 10px;
    margin: 18px 0 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft, #eef2f7);
}

.hexaco-raw-track span,
.hexaco-percentile-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pt-accent), #4f8bd8);
}

.hexaco-raw-track::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(15, 23, 42, 0.35);
    content: "";
}

.hexaco-scale-labels {
    display: flex;
    justify-content: space-between;
    color: var(--pt-muted);
    font-size: 0.72rem;
}

.hexaco-reliability {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--pt-border);
    color: var(--pt-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.hexaco-quality-grid {
    display: grid;
    margin-top: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hexaco-quality-grid div {
    padding: 15px;
    border-radius: 13px;
    background: var(--pt-soft);
}

.hexaco-quality-grid strong,
.hexaco-quality-grid span {
    display: block;
}

.hexaco-quality-grid strong {
    color: var(--pt-text);
    font-size: 1.15rem;
}

.hexaco-quality-grid span {
    margin-top: 3px;
    color: var(--pt-muted);
    font-size: 0.75rem;
}

.hexaco-warning-list {
    margin: 16px 0 0;
    padding: 14px 16px 14px 34px;
    border: 1px solid #e8c98a;
    border-radius: 12px;
    background: var(--pt-warning-bg);
    color: var(--pt-warning);
}

.hexaco-quality-clear {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--pt-accent-soft);
    color: var(--pt-text);
}

.hexaco-premium-lock {
    display: grid;
    margin-top: 20px;
    padding: 22px;
    border: 1px dashed var(--pt-border);
    border-radius: 14px;
    background: var(--pt-soft);
    gap: 12px;
}

.hexaco-premium-lock h3,
.hexaco-premium-lock p {
    margin: 0;
}

.hexaco-premium-lock p {
    color: var(--pt-muted);
}

.hexaco-premium-domain {
    margin-top: 16px;
}

.hexaco-premium-domain:first-child {
    margin-top: 0;
}

.hexaco-premium-facets {
    display: grid;
    margin-top: 14px;
    gap: 8px;
}

.hexaco-premium-facet {
    display: grid;
    padding-top: 8px;
    grid-template-columns: 1fr auto;
    gap: 12px;
    border-top: 1px solid var(--pt-border);
    color: var(--pt-muted);
    font-size: 0.84rem;
}

.hexaco-result-actions {
    display: flex;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.hexaco-result-limitations {
    display: grid;
    gap: 12px;
}

.hexaco-result-limitations p {
    margin: 0;
}

@media (max-width: 760px) {
    .hexaco-domain-results,
    .hexaco-premium-domains,
    .hexaco-quality-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hexaco-intro-scale div {
        min-height: 100px;
        padding: 10px 6px;
    }

    .hexaco-intro-scale small {
        font-size: 0.68rem;
    }

    .hexaco-domain-head,
    .hexaco-premium-domain-head {
        display: grid;
    }

    .hexaco-domain-score {
        text-align: left;
    }

    .hexaco-premium-facet {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

html[data-theme="dark"] .hexaco-consent,
html[data-theme="dark"] .hexaco-intro-scale,
html[data-theme="dark"] .hexaco-result-header,
html[data-theme="dark"] .hexaco-result-panel,
html[data-theme="dark"] .hexaco-domain-card,
html[data-theme="dark"] .hexaco-premium-domain {
    background: var(--surface, #111827);
}

/* RIASEC interest profile: native extension of the shared assessment shell. */
.personality-test-choice-value {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.76rem;
    font-weight: 800;
}

[data-test-slug="riasec-interest-profile"] .personality-test-choice-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.riasec-question-prompt {
    margin: 0;
    color: #2e68b5;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.riasec-intro-attribution {
    max-width: 760px;
    margin: 56px 0 0;
    padding: 24px;
    border: 1px solid var(--intro-border);
    border-radius: 14px;
    background: var(--intro-surface);
}

.riasec-intro-attribution h2 {
    margin: 0 0 10px;
    color: var(--intro-primary);
    font: 500 1.35rem/1.25 Lora, Georgia, serif;
}

.riasec-intro-attribution p {
    margin: 0;
    color: var(--intro-muted);
    line-height: 1.65;
}

.riasec-intro-attribution p + p {
    margin-top: 8px;
}

.riasec-result-report {
    width: min(100%, 960px);
    margin: 0 auto;
}

.riasec-result-header {
    max-width: 760px;
}

.riasec-result-section-heading {
    max-width: 720px;
    margin-bottom: 24px;
}

.riasec-result-section-heading h2 {
    margin: 0 0 8px;
    color: #0f2537;
    font: 500 clamp(1.45rem, 3vw, 2rem)/1.2 Lora, Georgia, serif;
}

.riasec-result-section-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.riasec-result-score-list {
    display: grid;
    gap: 12px;
}

.riasec-result-score-row {
    padding: 18px 20px;
    border: 1px solid #e7ebf0;
    border-radius: 10px;
    background: #fff;
}

.riasec-result-score-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.riasec-result-score-head h3 {
    margin: 2px 0 3px;
    color: #0f2537;
    font: 500 1.12rem/1.3 Lora, Georgia, serif;
}

.riasec-result-score-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.86rem;
}

.riasec-result-score-head > strong {
    color: #2e68b5;
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
}

.riasec-result-rank {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.riasec-result-score-track {
    overflow: hidden;
    height: 9px;
    background: #e7ebf0;
}

.riasec-result-score-track > span {
    display: block;
    width: var(--riasec-score);
    height: 100%;
    background: #2e68b5;
}

.riasec-result-theme-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.riasec-result-theme-card {
    padding: 20px;
    border: 1px solid #e7ebf0;
    border-radius: 10px;
    background: #fff;
}

.riasec-result-theme-card > span {
    color: #2e68b5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.riasec-result-theme-card h3 {
    margin: 8px 0 10px;
    color: #0f2537;
    font: 500 1.2rem/1.25 Lora, Georgia, serif;
}

.riasec-result-theme-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.riasec-result-uncertainty {
    margin: 24px 0 0;
    padding: 18px 20px;
    border: 1px solid #e4cf9c;
    border-left: 4px solid #b7791f;
    border-radius: 8px;
    background: #fffbeb;
    color: #5f4820;
}

.riasec-result-uncertainty strong {
    color: #493817;
}

.riasec-result-uncertainty p {
    margin: 5px 0 0;
    line-height: 1.6;
}

.riasec-result-code-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: clamp(22px, 4vw, 32px);
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #f7f9fc;
}

.riasec-result-code-card > div > span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.riasec-result-code {
    margin-top: 4px;
    color: #0f2537;
    font: 500 clamp(2.6rem, 7vw, 4.4rem)/1 Lora, Georgia, serif;
    letter-spacing: 0.08em;
}

.riasec-result-code-card p,
.riasec-result-boundary p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.riasec-result-boundary p + p {
    margin-top: 12px;
}

.riasec-result-method {
    margin: 28px 0 0;
    border: 1px solid #e7ebf0;
    border-radius: 10px;
    background: #fff;
}

.riasec-result-method summary {
    padding: 16px 18px;
    color: #0f2537;
    cursor: pointer;
    font-weight: 700;
}

.riasec-result-method > div {
    padding: 0 18px 18px;
    color: #64748b;
}

.riasec-result-method p {
    margin: 0;
}

.riasec-result-method p + p {
    margin-top: 10px;
}

.riasec-result-method code {
    color: inherit;
    font: inherit;
}

.riasec-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

html[data-theme="dark"] .riasec-question-prompt {
    color: #93c5fd;
}

html[data-theme="dark"] .riasec-intro-attribution,
html[data-theme="dark"] .riasec-result-score-row,
html[data-theme="dark"] .riasec-result-theme-card,
html[data-theme="dark"] .riasec-result-method {
    border-color: rgba(148, 163, 184, 0.22);
    background: #111a28;
}

html[data-theme="dark"] .riasec-intro-attribution h2,
html[data-theme="dark"] .riasec-result-section-heading h2,
html[data-theme="dark"] .riasec-result-score-head h3,
html[data-theme="dark"] .riasec-result-theme-card h3,
html[data-theme="dark"] .riasec-result-code,
html[data-theme="dark"] .riasec-result-method summary {
    color: #f8fafc;
}

html[data-theme="dark"] .riasec-intro-attribution p,
html[data-theme="dark"] .riasec-result-section-heading p,
html[data-theme="dark"] .riasec-result-score-head p,
html[data-theme="dark"] .riasec-result-theme-card p,
html[data-theme="dark"] .riasec-result-code-card p,
html[data-theme="dark"] .riasec-result-boundary p,
html[data-theme="dark"] .riasec-result-method > div {
    color: #cbd5e1;
}

html[data-theme="dark"] .riasec-result-score-head > strong,
html[data-theme="dark"] .riasec-result-theme-card > span {
    color: #60a5fa;
}

html[data-theme="dark"] .riasec-result-score-track {
    background: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .riasec-result-score-track > span {
    background: #60a5fa;
}

html[data-theme="dark"] .riasec-result-code-card {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.5);
}

html[data-theme="dark"] .riasec-result-uncertainty {
    border-color: rgba(251, 191, 36, 0.38);
    border-left-color: #fbbf24;
    background: rgba(120, 53, 15, 0.22);
    color: #fde68a;
}

html[data-theme="dark"] .riasec-result-uncertainty strong {
    color: #fef3c7;
}

@media (max-width: 760px) {
    .riasec-result-theme-grid,
    .riasec-result-code-card {
        grid-template-columns: 1fr;
    }

    .riasec-result-score-head {
        align-items: center;
    }
}

@media (max-width: 520px) {
    [data-test-slug="riasec-interest-profile"] .personality-test-choice-label {
        gap: 0.6rem;
    }

    .riasec-result-score-row,
    .riasec-result-theme-card {
        padding: 16px;
    }
}

/* Keep the mini result reference light and editorial in either site theme. */
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-screen[data-screen="results"]:has(.mini-result-report),
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-screen[data-screen="results"]:has(.mini-result-report) {
    background: #fcfcfd;
    color: #1e293b;
}

html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-header h1,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-type-code,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-trait-head h3,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-trait-percentile strong,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-sloan-letter,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-trait-name,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-pct-name {
    color: #0f2537 !important;
}

html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-header p,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-profile p,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-trait-copy,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-type-tagline {
    color: #64748b;
}

html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-type-card,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-profile,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-table-wrap,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-pct-grid,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .mini-result-trait-card {
    border-color: #e7ebf0;
    background: #fff;
    color: #1e293b;
}

/* Mini-test results, adapted from resultsPageJuly2026Sonnet.html. */
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-screen[data-screen="results"]:has(.mini-result-report) {
    width: min(100%, 860px);
    margin: 0 auto;
    color: #1e293b;
    font-family: Inter, sans-serif;
    text-align: left;
}

.mini-result-report {
    --mini-result-bg: #fcfcfd;
    --mini-result-surface: #fff;
    --mini-result-primary: #0f2537;
    --mini-result-text: #1e293b;
    --mini-result-muted: #64748b;
    --mini-result-soft: #94a3b8;
    --mini-result-border: #e7ebf0;
    --mini-result-border-strong: #cbd5e1;
    --mini-result-accent: #2e68b5;
    --mini-result-accent-subtle: #ebf2fb;
    color: var(--mini-result-text);
}

.mini-result-header {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--mini-result-border);
}

.mini-result-header > span,
.mini-result-section-label {
    display: block;
    margin-bottom: 14px;
    color: var(--mini-result-accent);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mini-result-header h1 {
    margin: 0 0 10px;
    color: var(--mini-result-primary);
    font-family: Lora, Georgia, serif;
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.12;
}

.mini-result-header p {
    max-width: 560px;
    margin: 0;
    color: var(--mini-result-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.mini-result-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--mini-result-border);
}

.mini-result-section-label {
    margin-bottom: 20px;
    color: var(--mini-result-soft);
    letter-spacing: 0.1em;
}

.mini-result-type-card,
.mini-result-profile,
.mini-result-table-wrap,
.mini-result-pct-grid,
.mini-result-trait-card {
    border: 1px solid var(--mini-result-border);
    border-radius: 14px;
    background: var(--mini-result-surface);
    box-shadow: 0 1px 2px rgba(15, 37, 55, 0.04);
}

.mini-result-type-card {
    position: relative;
    overflow: hidden;
    padding: 32px;
    box-shadow: 0 4px 16px -4px rgba(15, 37, 55, 0.08);
}

.mini-result-type-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 32px;
    left: 32px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--mini-result-accent), transparent);
}

.mini-result-type-code {
    margin-bottom: 16px;
    color: var(--mini-result-primary);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: clamp(3rem, 10vw, 4.8rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    line-height: 1;
}

.mini-result-type-tagline {
    margin: 0 0 20px;
    color: var(--mini-result-muted);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.mini-result-type-tagline strong {
    color: var(--mini-result-text);
    font-weight: 500;
}

.mini-result-plus-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.mini-result-plus-label {
    color: var(--mini-result-soft);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mini-result-plus-value {
    padding: 3px 10px;
    border: 1px solid var(--mini-result-border);
    border-radius: 6px;
    background: var(--mini-result-bg);
    color: var(--mini-result-muted);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.mini-result-primary {
    display: inline-flex;
    padding: 4px 10px;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    background: var(--mini-result-accent-subtle);
    color: var(--mini-result-accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.mini-result-primary::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.mini-result-profile {
    padding: 28px 32px;
}

.mini-result-profile p {
    margin: 0;
    color: var(--mini-result-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.mini-result-profile strong,
.mini-result-trait-copy strong {
    color: var(--mini-result-text);
    font-weight: 500;
}

.mini-result-explanation {
    margin: 0 4px 20px;
    color: var(--mini-result-text);
    font-size: 0.88rem;
    line-height: 1.65;
}

.mini-result-explanation-heading {
    margin-bottom: 8px;
    color: var(--mini-result-primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.mini-result-table-wrap,
.mini-result-pct-grid {
    overflow: hidden;
}

.mini-result-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.mini-result-table-wrap th {
    padding: 13px 20px;
    border-bottom: 1px solid var(--mini-result-border);
    background: #f7f9fb;
    color: var(--mini-result-soft);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.mini-result-table-wrap th:not(:first-child),
.mini-result-table-wrap td:not(:first-child) {
    text-align: center;
}

.mini-result-table-wrap tbody tr {
    border-bottom: 1px solid var(--mini-result-border);
}

.mini-result-table-wrap tbody tr:last-child {
    border-bottom: 0;
}

.mini-result-table-wrap td {
    padding: 14px 20px;
    color: var(--mini-result-muted);
    vertical-align: middle;
}

.mini-result-trait-name,
.mini-result-pct-name {
    color: var(--mini-result-primary) !important;
    font-weight: 500;
}

.mini-result-pct-cell {
    font-weight: 600;
    white-space: nowrap;
}

.mini-result-score-cell {
    white-space: nowrap;
}

.mini-result-sloan-letter {
    display: inline-block;
    min-width: 20px;
    color: var(--mini-result-primary);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 1rem;
    font-weight: 600;
}

.mini-result-plus-cell {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.9rem;
}

.mini-result-plus-cell strong {
    color: var(--mini-result-primary);
}

.mini-result-reason-cell {
    font-size: 0.8rem;
    line-height: 1.4;
}

.mini-result-pct-row {
    display: grid;
    grid-template-columns: 120px 1fr 60px;
    padding: 16px 20px;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--mini-result-border);
}

.mini-result-pct-row:last-child {
    border-bottom: 0;
}

.mini-result-pct-name {
    font-size: 0.88rem;
}

.mini-result-pct-track,
.mini-result-trait-track {
    position: relative;
    height: 5px;
    overflow: visible;
    border-radius: 99px;
    background: var(--mini-result-border);
}

.mini-result-pct-fill,
.mini-result-trait-fill {
    position: relative;
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--mini-result-border-strong), var(--mini-result-accent));
    opacity: 0.75;
}

.mini-result-pct-track,
.mini-result-pct-fill {
    border-radius: 0;
}

.mini-result-pct-fill.is-low,
.mini-result-trait-fill.is-low {
    background: linear-gradient(90deg, var(--mini-result-border-strong), var(--mini-result-accent));
}

.mini-result-pct-fill::after,
.mini-result-trait-fill::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--mini-result-surface);
    border-radius: 50%;
    background: var(--mini-result-accent);
    box-shadow: 0 0 0 1px currentColor;
    color: var(--mini-result-accent);
    transform: translateY(-50%);
}

.mini-result-pct-fill.is-low::after,
.mini-result-trait-fill.is-low::after {
    color: var(--mini-result-accent);
}

.mini-result-bar-labels {
    display: flex;
    margin-top: 4px;
    justify-content: space-between;
    color: var(--mini-result-soft);
    font-size: 0.68rem;
    letter-spacing: 0.02em;
}

.mini-result-pct-value {
    color: var(--mini-result-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.mini-result-traits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mini-result-trait-card {
    padding: 24px 28px;
}

.mini-result-trait-head {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.mini-result-trait-head h3 {
    margin: 0 0 2px;
    color: var(--mini-result-primary);
    font-family: Lora, Georgia, serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.mini-result-trait-head p {
    margin: 0;
    color: var(--mini-result-soft);
    font-size: 0.8rem;
    font-weight: 500;
}

.mini-result-trait-percentile {
    flex: 0 0 auto;
    text-align: right;
}

.mini-result-trait-percentile strong {
    display: block;
    color: var(--mini-result-primary);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.mini-result-trait-percentile span {
    display: block;
    margin-top: 2px;
    color: var(--mini-result-soft);
    font-size: 0.72rem;
    font-weight: 500;
}

.mini-result-trait-bar {
    margin-bottom: 14px;
}

.mini-result-trait-scale-label {
    margin: 0 0 7px;
    color: var(--mini-result-soft);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.mini-result-trait-bar .mini-result-bar-labels {
    position: relative;
    display: block;
    height: 1em;
    margin: 5px 0 0;
    font-size: 0.7rem;
}

.mini-result-trait-track {
    height: 6px;
    border-radius: 0;
}

.mini-result-trait-fill {
    border-radius: 0;
    opacity: 1;
}

.mini-result-trait-fill::after {
    z-index: 4;
    width: 10px;
    height: 10px;
}

.mini-result-trait-ticks {
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
}

.mini-result-trait-ticks > span {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--mini-result-border-strong);
    opacity: 0.7;
    transform: translateX(-50%);
}

.mini-result-trait-bar .mini-result-bar-labels > span {
    position: absolute;
    top: 0;
    min-width: 1em;
    text-align: center;
    transform: translateX(-50%);
}

.mini-result-trait-copy {
    margin: 0;
    color: var(--mini-result-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-screen[data-screen="results"]:has(.mini-result-report) + [data-results-grid],
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-screen[data-screen="results"]:has(.mini-result-report) .personality-test-demographics {
    width: min(100%, 860px);
    margin-inline: auto;
}

@media (max-width: 680px) {
    .mini-result-col-hide {
        display: none;
    }

    .mini-result-table-wrap th,
    .mini-result-table-wrap td {
        padding: 13px 14px;
    }

    .mini-result-pct-row {
        grid-template-columns: 92px 1fr 48px;
        padding: 14px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .mini-result-type-card,
    .mini-result-profile,
    .mini-result-trait-card {
        padding: 22px 18px;
    }

    .mini-result-type-code {
        font-size: clamp(2.35rem, 14vw, 3.2rem);
        letter-spacing: 0.1em;
    }

    .mini-result-trait-head {
        gap: 10px;
    }
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-editorial .personality-test-share .site-share-button,
body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-editorial .personality-test-share .site-share-main,
body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-editorial .personality-test-share .site-share-target {
    border-radius: 999px;
}

@media (max-width: 520px) {
    .personality-intro-hero,
    .personality-intro-section {
        padding-inline: 0.25rem;
    }

    .personality-intro-actions {
        flex-direction: column;
    }

    .personality-intro-actions .personality-test-btn,
    .personality-intro-secondary {
        width: min(100%, 320px);
    }

    .personality-intro-sticky > div {
        display: none;
    }

    .personality-intro-sticky {
        justify-content: center;
    }
}

html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-editorial {
    --intro-primary: #f8fafc;
    --intro-text: #d7dce2;
    --intro-muted: #cbd5e1;
    --intro-soft: #94a3b8;
    --intro-border: rgba(148, 163, 184, 0.22);
    --intro-surface: #111827;
}

html[data-theme="dark"] .personality-intro-final-cta {
    background: #111827;
}

.personality-test .hidden {
    display: none !important;
}

.personality-test-screen {
    display: grid;
    gap: 18px;
}

body.personality-test-focus-mode {
    background: #f3f4f6 !important;
}

body.personality-test-focus-mode .site-header,
body.personality-test-focus-mode .site-footer,
body.personality-test-focus-mode .mobile-nav-shell,
body.personality-test-focus-mode .back-to-top,
body.personality-test-focus-mode .tool-template-title,
body.personality-test-focus-mode .tool-template-guide,
body.personality-test-focus-mode .tool-template-learn-card,
body.personality-test-focus-mode .tool-template-donation-banner,
body.personality-test-focus-mode .tool-template-rail,
body.personality-test-focus-mode .site-ad-slot--anchor-mobile {
    display: none !important;
}

body.personality-test-focus-mode .site-main,
body.personality-test-focus-mode .section,
body.personality-test-focus-mode .site-main > .section > .container,
body.personality-test-focus-mode .tool-template-shell,
body.personality-test-focus-mode .tool-template,
body.personality-test-focus-mode .tool-template-card {
    min-height: 100vh;
    min-height: 100dvh;
}

body.personality-test-focus-mode .site-main {
    background: #f3f4f6;
    padding-bottom: 0;
}

body.personality-test-focus-mode .section {
    display: grid;
    padding: 0;
}

body.personality-test-focus-mode .site-main > .section > .container {
    display: grid;
    width: 100%;
    max-width: none;
    padding: 0;
}

body.personality-test-focus-mode .tool-template-shell,
body.personality-test-focus-mode .tool-template {
    display: grid;
    width: 100%;
    max-width: none;
    margin: 0;
}

body.personality-test-focus-mode .tool-template-card {
    display: grid;
    align-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

body.personality-test-focus-mode .personality-test {
    width: min(calc(100% - 32px), 620px);
    min-height: 100vh;
    min-height: 100dvh;
    align-content: start;
    justify-self: center;
    padding: clamp(72px, 14vh, 132px) 0 40px;
}

body.personality-test-focus-mode .personality-test-screen[data-screen="test"] {
    gap: 22px;
}

body.personality-test-focus-mode .personality-test-question-card {
    border: 0;
    background: transparent;
    padding: 0;
}

body.personality-test-focus-mode .personality-test-question-card h2 {
    color: #0f172a;
    justify-content: center;
    text-align: center;
}

body.personality-test-focus-mode .personality-test-home {
    display: inline-flex;
    width: auto;
    height: auto;
    min-height: 40px;
    gap: 7px;
    padding: 8px 12px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
}

body.personality-test-focus-mode .personality-test-choice {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.025);
}

body.personality-test-focus-mode .personality-test-choice:hover,
body.personality-test-focus-mode .personality-test-choice.is-selected {
    border-color: rgba(37, 99, 235, 0.52);
    background: #eff6ff;
}

body.personality-test-focus-mode .personality-test-choice input {
    accent-color: #2563eb;
}

body.personality-test-focus-mode .personality-test-choice-label {
    color: #0f172a;
}

body.personality-test-focus-mode .personality-test-question-count {
    color: #475569;
}

body.personality-test-focus-mode .personality-test-btn {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

body.personality-test-focus-mode .personality-test-btn:hover:not(:disabled) {
    border-color: rgba(37, 99, 235, 0.4);
    background: #eff6ff;
    color: #1d4ed8;
}

body.personality-test-focus-mode .personality-test-btn:disabled {
    color: #94a3b8;
}

.personality-test-kicker {
    color: var(--pt-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.personality-test h2 {
    margin: 0;
    color: var(--pt-text);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.12;
}

.personality-test-intro-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.personality-test-intro-heading h2 {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 70px);
    text-align: center;
}

.personality-test-share {
    flex: 0 0 auto;
}

.personality-test-screen[data-screen="intro"] > p {
    justify-self: center;
    text-align: center;
}

.personality-test-screen[data-screen="intro"] > .personality-test-actions-top {
    justify-content: center;
}

.personality-test-screen[data-screen="intro"] > .personality-test-actions:last-child {
    justify-content: center;
}

.personality-test p {
    margin: 0;
    max-width: 72ch;
    color: var(--pt-muted);
    font-size: 0.98rem;
    line-height: 1.62;
}

.personality-test-intro-blurb {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    margin-top: calc(-1 * clamp(0.6rem, 1.15vw, 0.9rem));
    justify-self: center;
    padding: clamp(0.95rem, 1.8vw, 1.25rem) max(1.25rem, calc(50vw - 500px));
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: #ffffff;
    box-shadow: none;
}

.personality-test-intro-blurb p {
    max-width: 900px;
    margin: 0 auto;
    color: #334155;
    font-size: clamp(0.8rem, 0.92vw, 0.88rem);
    line-height: 1.5;
    text-align: center;
}

.personality-test-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.personality-test-info-card,
.personality-test-question-card,
.personality-test-trait-card,
.personality-test-notice,
.personality-test-technical {
    border: 1px solid var(--pt-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
}

.personality-test-info-card {
    padding: 14px;
}

.personality-test-info-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--pt-text);
}

.personality-test-info-card span {
    color: var(--pt-muted);
    font-size: 0.94rem;
    line-height: 1.5;
}

.personality-test-notice {
    padding: 12px 14px;
    background: var(--pt-soft);
    color: var(--pt-muted);
}

.personality-test-notice-warning {
    border-color: #dfc180;
    background: var(--pt-warning-bg);
    color: var(--pt-warning);
}

.personality-test-notice-danger {
    border-color: #d6a4a4;
    background: var(--pt-danger-bg);
    color: var(--pt-danger);
}

.personality-test-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.personality-test-actions-top {
    margin-top: -4px;
}

.personality-test-actions-between {
    display: grid;
    grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr);
    justify-content: space-between;
}

.personality-test-actions-between [data-action="back"] {
    justify-self: start;
}

.personality-test-actions-between [data-action="skip"] {
    justify-self: end;
}

.personality-test-home {
    appearance: none;
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 20;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--pt-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--pt-muted);
    cursor: pointer;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.personality-test-home:hover {
    border-color: #b7c1ce;
    background: #f8fafc;
    color: var(--pt-text);
}

.personality-test-home:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 37, 99, 235), 0.16);
}

.personality-test-home svg {
    width: 20px;
    height: 20px;
}

.personality-test-home span {
    line-height: 1;
}

.personality-test-btn {
    appearance: none;
    min-height: 44px;
    border: 1px solid var(--pt-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--pt-text);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 10px 16px;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.personality-test-btn:hover:not(:disabled) {
    border-color: rgba(var(--accent-rgb, 37, 99, 235), 0.42);
    background: rgba(var(--accent-rgb, 37, 99, 235), 0.08);
    color: var(--pt-accent-dark);
}

.personality-test-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.personality-test-btn-primary {
    border-color: var(--pt-accent);
    background: #ffffff;
    color: var(--pt-accent);
}

.personality-test-btn-primary:hover:not(:disabled) {
    border-color: var(--pt-accent-dark);
    background: rgba(var(--accent-rgb, 37, 99, 235), 0.08);
    color: var(--pt-accent-dark);
}

.personality-test-intro-panel {
    display: grid;
    gap: 16px;
    border: 1px solid var(--pt-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    padding: clamp(16px, 3vw, 22px);
}

.personality-test-intro-section {
    display: grid;
    gap: 6px;
}

.personality-test-intro-section + .personality-test-intro-section {
    border-top: 1px solid var(--pt-border);
    padding-top: 16px;
}

.personality-test-intro-section h3 {
    margin: 0;
    color: var(--pt-text);
    font-size: 1rem;
}

.personality-test-intro-section p {
    max-width: none;
}

.personality-test-progress {
    display: none;
    gap: 8px;
}

.personality-test-trait-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.personality-test-progress-track,
.personality-test-score-bar {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: #e4e8ee;
}

.personality-test-progress-fill,
.personality-test-score-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--pt-accent);
    transition: width 0.2s ease;
}

.personality-test-question-card {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.personality-test-question-card h2 {
    display: flex;
    min-height: 3.4em;
    align-items: center;
}

.personality-test-question-count {
    color: var(--pt-muted);
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
}

.personality-test-scale {
    display: grid;
    gap: 10px;
}

.personality-test-choice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    min-height: 50px;
    border: 1px solid var(--pt-border);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    background: #ffffff;
    transition: background-color 0.14s ease, border-color 0.14s ease;
}

.personality-test-choice:hover,
.personality-test-choice.is-selected {
    border-color: rgba(var(--accent-rgb, 37, 99, 235), 0.42);
    background: var(--pt-accent-soft);
}

.personality-test-choice input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--pt-accent);
}

.personality-test-choice-label {
    color: var(--pt-text);
    font-weight: 750;
}

.personality-test-results-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.personality-test-trait-card {
    display: block;
    min-height: 250px;
    padding: clamp(22px, 3vw, 30px);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.025), 0 2px 4px rgba(15, 23, 42, 0.015);
}

.personality-test-trait-content {
    display: grid;
    gap: 0;
    min-width: 0;
}

.personality-test-trait-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 100%;
    margin-bottom: 6px;
}

.personality-test-trait-name {
    color: var(--pt-text);
    font-size: clamp(1.06rem, 2vw, 1.28rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.16;
}

.personality-test-trait-score {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    font-weight: 850;
    letter-spacing: -0.02em;
    text-align: right;
}

.personality-test-trait-score-value {
    color: #2563eb;
}

.personality-test-trait-score-unit {
    margin-left: 2px;
    color: #64748b;
    font-size: 0.82em;
    font-weight: 500;
}

.personality-test-trait-percentile {
    margin: 0 0 16px;
    color: #2563eb;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.35;
}

.personality-test-trait-score-scale-label {
    margin: 0 0 7px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 650;
}

.personality-test-trait-slider {
    position: relative;
    margin-bottom: 7px;
}

.personality-test-trait-slider-track {
    position: relative;
    height: 4px;
    overflow: visible;
    border-radius: 0;
    background: #e2e8f0;
}

.personality-test-trait-slider-fill {
    position: relative;
    display: block;
    width: var(--score-percent);
    height: 100%;
    border-radius: 0;
    background: #2563eb;
}

.personality-test-trait-slider-ticks {
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
}

.personality-test-trait-slider-ticks > span {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: #94a3b8;
    transform: translateX(-50%);
}

.personality-test-trait-slider-thumb {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: var(--score-percent);
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #2563eb;
    transform: translate(-50%, -50%);
}

.personality-test-trait-slider-labels {
    position: relative;
    display: block;
    height: 1em;
    margin-bottom: 24px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
}

.personality-test-trait-slider-labels > span {
    position: absolute;
    top: 0;
    min-width: 1em;
    text-align: center;
    transform: translateX(-50%);
}

.personality-test-trait-copy {
    max-width: none;
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

.personality-test-trait-copy strong {
    color: #334155;
    font-weight: 750;
}

.personality-test-sloan-card {
    display: grid;
    gap: 18px;
    border: 1px solid var(--pt-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    padding: 16px;
}

.personality-test-sloan-overview {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
    gap: 24px;
    align-items: start;
}

.personality-test-sloan-identity {
    display: grid;
    gap: 8px;
    justify-items: center;
    font-family: var(--font-heading);
    text-align: center;
}

.personality-test-sloan-kicker {
    color: var(--pt-accent);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.personality-test-sloan-type {
    color: #1e3a8a;
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 0.055em;
    line-height: 1;
}

.personality-test-sloan-plus {
    color: var(--pt-text);
    font-family: var(--font-heading);
    font-weight: 800;
}

.personality-test-sloan-description {
    color: var(--pt-text);
    font-family: var(--font-heading);
    font-weight: 850;
    line-height: 1.45;
}

.personality-test-sloan-plain {
    display: grid;
    gap: 8px;
    align-self: stretch;
    border-left: 1px solid var(--pt-border);
    padding: 4px 0 4px 24px;
}

.personality-test-sloan-plain h3 {
    color: var(--pt-text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
}

.personality-test-sloan-plain p {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.65;
}

.personality-test-sloan-card p {
    max-width: none;
}

.personality-test-score-explanation {
    display: grid;
    gap: 6px;
    border: 1px solid var(--pt-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
    padding: 12px 14px;
}

.personality-test-score-explanation strong {
    color: var(--pt-text);
    font-size: 0.9rem;
}

.personality-test-score-explanation p {
    margin: 0;
    color: var(--pt-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.personality-test-radar-card {
    display: grid;
    gap: 24px;
    width: min(100%, 640px);
    margin-inline: auto;
    border: 1px solid rgba(226, 232, 240, 0.72);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.015);
    padding: 32px;
}

.personality-test-radar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.personality-test-radar-header h3 {
    margin: 0;
    color: var(--pt-text);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.personality-test-radar-header p {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.4;
}

.personality-test-radar-header span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    padding: 0.42rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.personality-test-radar-canvas-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.3);
    padding: 24px;
}

.personality-test-radar-canvas {
    position: relative;
    width: 100%;
    height: 320px;
}

.personality-test-radar-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.personality-test-radar-svg text {
    fill: #475569;
    font-family: Inter, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
}

.personality-test-radar-card hr {
    width: 100%;
    border: 0;
    border-top: 1px solid #f1f5f9;
}

.personality-test-radar-caption {
    max-width: none;
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.65;
    text-align: center;
}

.personality-test-sloan-explanation {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--pt-border);
    margin-top: 10px;
    padding-top: 16px;
}

.personality-test-sloan-explanation h3 {
    margin: 0;
    color: var(--pt-text);
    font-size: 1rem;
}

.personality-test-sloan-explanation p {
    color: var(--pt-text);
    font-size: 0.94rem;
    line-height: 1.55;
}

.personality-test-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--pt-border);
    border-radius: 8px;
}

.personality-test-sloan-explanation table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.9rem;
}

.personality-test-sloan-explanation th,
.personality-test-sloan-explanation td {
    border-top: 1px solid var(--pt-border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.personality-test-sloan-explanation thead th {
    border-top: 0;
    background: var(--pt-soft);
}

.personality-test-sloan-explanation th {
    color: var(--pt-text);
    font-weight: 900;
}

.personality-test-sloan-explanation th:nth-child(2),
.personality-test-sloan-explanation th:nth-child(3),
.personality-test-sloan-explanation th:nth-child(4),
.personality-test-sloan-explanation th:nth-child(5),
.personality-test-sloan-explanation th:nth-child(6),
.personality-test-sloan-explanation td:nth-child(2),
.personality-test-sloan-explanation td:nth-child(3),
.personality-test-sloan-explanation td:nth-child(4),
.personality-test-sloan-explanation td:nth-child(5),
.personality-test-sloan-explanation td:nth-child(6) {
    text-align: center;
}

.personality-test-sloan-explanation td:last-child {
    color: var(--pt-muted);
}

.personality-test-percentile-bars {
    display: grid;
    gap: 14px;
    width: min(100%, 760px);
    margin: 18px auto 0;
    border: 1px solid var(--pt-border);
    border-radius: 20px;
    background: #ffffff;
    padding: clamp(18px, 3vw, 26px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02), 0 2px 4px rgba(15, 23, 42, 0.01);
}

.personality-test-percentile-bars h4 {
    margin: 0;
    color: var(--pt-text);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
}

.personality-test-percentile-bar-list {
    display: grid;
    gap: 16px;
}

.personality-test-percentile-bar-row {
    display: grid;
    gap: 6px;
}

.personality-test-percentile-bar-head,
.personality-test-percentile-bar-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.personality-test-percentile-bar-label,
.personality-test-percentile-bar-value {
    color: var(--pt-text);
    font-size: 0.95rem;
    font-weight: 850;
    line-height: 1.2;
}

.personality-test-percentile-bar-label {
    min-width: 0;
}

.personality-test-percentile-bar-value {
    color: #2563eb;
    text-align: right;
    white-space: nowrap;
}

.personality-test-percentile-bar-slider {
    position: relative;
}

.personality-test-percentile-bar-track {
    position: relative;
    height: 5px;
    overflow: hidden;
    border-radius: 0;
    background: #e2e8f0;
}

.personality-test-percentile-bar-fill {
    display: block;
    width: var(--score-percent);
    height: 100%;
    border-radius: 0;
    background: #2563eb;
}

.personality-test-percentile-bar-thumb {
    position: absolute;
    top: 50%;
    left: var(--score-percent);
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #2563eb;
    transform: translate(-50%, -50%);
}

.personality-test-percentile-bar-scale {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.personality-test-result-preview {
    display: grid;
    gap: 18px;
}

.personality-test-result-preview-copy {
    display: grid;
    gap: 8px;
    border: 1px solid var(--pt-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    padding: 18px;
}

.personality-test-result-preview-copy p {
    max-width: 64ch;
}

.personality-test-ad-slot {
    display: grid;
    min-height: 180px;
    place-items: center;
    border: 1px dashed #aeb8c4;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--pt-muted);
    padding: 18px;
    text-align: center;
}

.personality-test-ad-slot span {
    align-self: start;
    justify-self: start;
    color: var(--pt-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.personality-test-ad-slot div {
    color: var(--pt-text);
    font-weight: 800;
}

.personality-test-technical {
    overflow: hidden;
}

.personality-test-demographics {
    display: grid;
    grid-column: 1 / -1;
    width: min(100%, 980px);
    margin: clamp(18px, 3vw, 32px) auto 0;
    justify-self: center;
    overflow: hidden;
    border: 1px solid var(--pv-color-border, var(--pt-border));
    border-radius: var(--pv-radius-card, 14px);
    background: var(--pv-color-surface, #ffffff);
    box-shadow: var(--pv-shadow-sm, 0 1px 2px rgba(15, 37, 55, 0.04));
    color: var(--pv-color-text, var(--pt-text));
    font-family: var(--pv-font-sans, Inter, sans-serif);
}

.personality-test-demographics[hidden] {
    display: none;
}

.personality-test-demographics-header {
    padding: clamp(24px, 3vw, 32px);
    border-bottom: 1px solid var(--pv-color-border, var(--pt-border));
}

.personality-test-demographics h3 {
    margin: 8px 0 0;
    color: var(--pv-color-primary, var(--pt-text));
    font-family: var(--pv-font-serif, Lora, Georgia, serif);
    font-size: clamp(1.42rem, 2.3vw, 1.7rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.personality-test-demographics-header p {
    max-width: 690px;
    margin: 12px 0 0;
    color: var(--pv-color-muted, var(--pt-muted));
    font-size: 0.96rem;
    line-height: 1.55;
}

.personality-test-demographics-kicker {
    color: var(--pv-color-accent, var(--pt-accent));
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.personality-test-demographics-grid {
    display: grid;
    gap: 20px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: clamp(24px, 3vw, 30px) clamp(24px, 3vw, 32px);
}

.personality-test-demographic-field {
    display: grid;
    gap: 8px;
}

.personality-test-demographic-field span {
    color: var(--pv-color-primary, var(--pt-text));
    font-size: 0.88rem;
    font-weight: 700;
}

.personality-test-demographic-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--pv-color-border-strong, var(--pt-border));
    border-radius: var(--pv-radius-control, 9px);
    background: var(--pv-color-surface, #ffffff);
    color: var(--pv-color-text, var(--pt-text));
    font: inherit;
    font-size: 0.92rem;
    padding: 10px 14px;
}

.personality-test-demographic-field select:focus {
    border-color: var(--pv-color-accent, var(--pt-accent));
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 37, 99, 235), 0.12);
    outline: none;
}

.personality-test-demographics-footer {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--pv-color-border, var(--pt-border));
    padding: 20px clamp(24px, 3vw, 32px) 22px;
}

.personality-test-demographics-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.personality-test-demographics-actions .personality-test-btn {
    min-height: 46px;
    padding-inline: 24px;
}

.personality-test-demographics-actions .personality-test-btn-primary {
    border-color: var(--pv-color-action, #0f2537);
    background: var(--pv-color-action, #0f2537);
    color: var(--pv-color-on-action, #ffffff);
}

.personality-test-demographics-actions .personality-test-btn-primary:hover:not(:disabled) {
    border-color: var(--pv-color-action-hover, #1a3a54);
    background: var(--pv-color-action-hover, #1a3a54);
    color: var(--pv-color-on-action, #ffffff);
}

.personality-test-demographics-actions .personality-test-btn:not(.personality-test-btn-primary) {
    border-color: var(--pv-color-border-strong, var(--pt-border));
    background: var(--pv-color-surface, #ffffff);
    color: var(--pv-color-primary, var(--pt-text));
}

.personality-test-demographics-status {
    margin: 0;
    color: var(--pv-color-muted, var(--pt-muted));
    font-size: 0.88rem;
    font-weight: 700;
}

.personality-test-demographics-status:empty {
    display: none;
}

.personality-test-technical summary {
    cursor: pointer;
    padding: 12px 14px;
    color: var(--pt-text);
    font-weight: 800;
}

.personality-test-technical pre {
    overflow: auto;
    max-height: 320px;
    margin: 0;
    border-top: 1px solid var(--pt-border);
    background: #f8fafc;
    color: #1f2937;
    font-size: 0.78rem;
    line-height: 1.45;
    padding: 14px;
}

.personality-test-skip-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

@media (max-width: 720px) {
    .personality-test-info-grid {
        grid-template-columns: 1fr;
    }

    .personality-test-demographics-grid {
        grid-template-columns: 1fr;
    }

    .personality-test-demographics-header,
    .personality-test-demographics-grid,
    .personality-test-demographics-footer {
        padding-right: 20px;
        padding-left: 20px;
    }

    .personality-test-question-card {
        padding: 16px;
    }

    .personality-test-question-card h2 {
        min-height: 4.6em;
    }

    .personality-test-results-grid {
        grid-template-columns: 1fr;
    }

    .personality-test-trait-head {
        align-items: flex-start;
        gap: 6px;
    }

    .personality-test-trait-score {
        text-align: left;
    }

    .personality-test-trait-card {
        min-height: 0;
        padding: 20px;
    }

    .personality-test-sloan-overview {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .personality-test-sloan-plain {
        border-top: 1px solid var(--pt-border);
        border-left: 0;
        padding: 14px 0 0;
    }

    .personality-test-percentile-bars {
        width: 100%;
        padding: 12px;
    }

    .personality-test-radar-card {
        gap: 18px;
        border-radius: 22px;
        padding: 20px;
    }

    .personality-test-radar-header {
        align-items: flex-start;
    }

    .personality-test-radar-canvas-wrap {
        padding: 14px;
    }

    .personality-test-radar-canvas {
        height: 260px;
    }

}

@media (max-width: 480px) {
    .personality-test-demographics-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .personality-test-demographics-actions .personality-test-btn {
        width: 100%;
    }
}

/* Test intro pages: align the pre-test explanation with the tests directory style. */
body.route-tests-show:not(.personality-test-focus-mode) .site-main {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.82) 42rem, #ffffff 74rem),
        radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.1), transparent 31rem),
        radial-gradient(circle at 76% 18rem, rgba(250, 204, 21, 0.12), transparent 30rem),
        radial-gradient(circle at 92% 38rem, rgba(219, 39, 119, 0.1), transparent 34rem),
        #ffffff;
    background-repeat: no-repeat;
    background-size: 100% 84rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .section-tight {
    padding-top: clamp(0.45rem, 1.4vw, 0.95rem);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-template {
    max-width: 1080px;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-template > .tool-template-card {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

body.route-tests-show:not(.personality-test-focus-mode) .tool-template-donation-banner {
    width: min(100%, 980px);
    margin-right: auto;
    margin-left: auto;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-screen[data-screen="intro"] {
    gap: clamp(0.6rem, 1.15vw, 0.9rem);
    width: min(100%, 900px);
    margin: 0 auto;
    text-align: center;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.15rem, 3vw, 2.25rem);
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    margin-bottom: clamp(0.05rem, 0.5vw, 0.3rem);
    padding: clamp(0.95rem, 2.1vw, 1.55rem) max(1.25rem, calc(50vw - 500px));
    background: #5f745d;
    color: #fff4e8;
    overflow: hidden;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-copy {
    display: grid;
    justify-items: start;
    gap: clamp(0.55rem, 1.2vw, 0.9rem);
    min-width: 0;
    max-width: 100%;
    text-align: left;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-band .personality-test-kicker {
    color: #f7c6aa;
    letter-spacing: 0.11em;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-heading {
    min-height: 0;
    margin-top: 0.15rem;
    padding-inline: 0;
    justify-content: flex-start;
    min-width: 0;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-heading h2 {
    display: grid;
    justify-items: start;
    gap: 0.28rem;
    max-width: 100%;
    color: #ffc7aa;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2.85vw, 2.35rem);
    font-weight: 850;
    letter-spacing: 0.045em;
    line-height: 1.08;
    text-align: left;
    text-transform: uppercase;
    overflow-wrap: normal;
    text-wrap: balance;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-title-main,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-title-sub {
    display: block;
    max-width: 100%;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-title-sub {
    font-size: clamp(1.25rem, 2.55vw, 2.15rem);
    font-weight: 850;
    letter-spacing: 0.045em;
    line-height: 1.12;
    background: none;
    color: #ffc7aa;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-rule {
    display: block;
    width: 3.75rem;
    height: 2px;
    background: rgba(255, 244, 232, 0.68);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-band p {
    max-width: 38rem;
    color: #fff4e8;
    font-size: clamp(0.86rem, 1.1vw, 0.96rem);
    font-weight: 650;
    line-height: 1.4;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-visual {
    display: grid;
    min-height: clamp(116px, 14vw, 170px);
    align-items: center;
    justify-items: center;
    min-width: 0;
    overflow: hidden;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-image-slot {
    position: relative;
    width: min(100%, 280px);
    aspect-ratio: 1.55 / 1;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-orb {
    position: absolute;
    inset: 8% 18% 3% 6%;
    border-radius: 48% 52% 46% 54%;
    background: rgba(255, 255, 255, 0.13);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-line {
    position: absolute;
    right: 5%;
    left: 16%;
    height: 6px;
    border-radius: 999px;
    background: #f8e8d7;
    box-shadow: 7px 8px 0 #092c33;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-line-one {
    top: 25%;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-line-two {
    top: 49%;
    left: 5%;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-line-three {
    top: 73%;
    left: 24%;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-line i {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ce6b5b;
    box-shadow: 6px 8px 0 #092c33;
    transform: translateY(-50%);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-line-one i {
    left: 58%;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-line-two i {
    left: 18%;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-line-three i {
    left: 42%;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-share {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-actions-top {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    margin-top: 0;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-detail-panel {
    display: grid;
    gap: 1rem;
    width: min(100%, 860px);
    justify-self: center;
    padding: clamp(1.1rem, 2.5vw, 1.75rem);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
    text-align: left;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-detail-section {
    display: grid;
    gap: 0.55rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-detail-section + .personality-test-detail-section {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 1rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-detail-section h3 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.22;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-detail-section p {
    max-width: none;
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.62;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-detail-points {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.05rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-detail-points p {
    padding-left: 0.85rem;
    border-left: 3px solid rgba(37, 99, 235, 0.24);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-detail-points strong {
    color: #0f172a;
    font-weight: 850;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-principles-panel {
    display: grid;
    gap: 0.75rem;
    width: min(100%, 860px);
    justify-self: center;
    padding: clamp(1.1rem, 2.4vw, 1.6rem);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
    text-align: left;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-principles-panel h3 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.08rem, 1.7vw, 1.3rem);
    font-weight: 850;
    letter-spacing: -0.02em;
    text-align: center;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-principles-panel p {
    max-width: none;
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.62;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-principles-points {
    display: grid;
    gap: 0.55rem;
    margin: 0.15rem 0;
    padding: 0;
    list-style: none;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-principles-points li {
    position: relative;
    max-width: none;
    padding-left: 1.15rem;
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.58;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-principles-points li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-principles-points strong {
    color: #0f172a;
    font-weight: 850;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-faq-panel {
    display: grid;
    gap: 1rem;
    width: min(100%, 860px);
    justify-self: center;
    padding: clamp(1.1rem, 2.4vw, 1.6rem);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-faq-panel h3 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.08rem, 1.7vw, 1.3rem);
    font-weight: 850;
    letter-spacing: -0.02em;
    text-align: center;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-faq-list {
    display: grid;
    gap: 1rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-faq-item {
    display: grid;
    gap: 0.35rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-faq-item + .personality-test-faq-item {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 1rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-faq-item h4 {
    margin: 0;
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.35;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-faq-item p {
    max-width: none;
    margin: 0;
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.62;
}

body.route-tests-show:not(.personality-test-focus-mode) .tool-template-card,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-blurb,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-detail-panel,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-principles-panel,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-faq-panel,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-faq-item,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-notice,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-btn,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-share .site-share-button,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-share .site-share-target,
body.route-tests-show:not(.personality-test-focus-mode) .learn-article-donation-button {
    border-radius: 0;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    overflow: visible;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-row .personality-test-share .site-share-targets {
    top: auto;
    right: 0;
    bottom: calc(100% + 10px);
    transform: translateY(8px);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-row .personality-test-share:hover .site-share-targets,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-row .personality-test-share:focus-within .site-share-targets,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-row .personality-test-share.is-open .site-share-targets {
    transform: translateY(0);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-row .personality-test-share .site-share-target::after {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-row .personality-test-share .site-share-target:hover::after,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-row .personality-test-share .site-share-target:focus-visible::after {
    transform: translateX(-50%) translateY(0);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-btn-primary {
    min-height: 52px;
    min-width: min(100%, 330px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    border: 0;
    border-radius: 999px;
    background: #0ea5e9;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 850;
    box-shadow: none;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-btn-primary svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-btn-primary:hover:not(:disabled),
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-btn-primary:focus-visible {
    background: #0284c7;
    color: #ffffff;
    box-shadow: none;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-note {
    max-width: none;
    color: #64748b;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.1rem, 2.6vw, 1.8rem);
    margin-top: 0.25rem;
    text-align: left;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-card {
    display: grid;
    align-content: start;
    min-height: 210px;
    padding: clamp(1.35rem, 2.5vw, 1.65rem);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.045);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-card .personality-test-info-icon {
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-card .personality-test-info-icon svg {
    width: 1.65rem;
    height: 1.65rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-card .personality-test-info-icon-scale {
    background: #eef2ff;
    color: #4f46e5;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-card .personality-test-info-icon-shield {
    background: #ecfdf5;
    color: #059669;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-card strong {
    margin-bottom: 0.55rem;
    color: #0f172a;
    font-size: 1.12rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    text-transform: capitalize;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-card span {
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.62;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-card > span:not(.personality-test-info-icon) {
    display: block;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-panel {
    gap: 0;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid #dbe3ee;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.055);
    text-align: left;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-section {
    grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
    gap: clamp(0.85rem, 2vw, 1.4rem);
    align-items: start;
    padding-block: 1.15rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-section:first-child {
    padding-top: 0;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-section:last-child {
    padding-bottom: 0;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-section + .personality-test-intro-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.15rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-section h3 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: -0.02em;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-section p {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.65;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-notice {
    justify-self: center;
    max-width: 760px;
    border-color: #dbe3ee;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #475569;
    font-size: 0.92rem;
    font-weight: 650;
    text-align: center;
}

@media (max-width: 820px) {
    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-band {
        grid-template-columns: 1fr;
        gap: 1.45rem;
        padding-block: clamp(1.7rem, 8vw, 2.65rem);
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-copy {
        justify-items: center;
        text-align: center;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-heading {
        display: grid;
        justify-items: center;
        padding-inline: 0;
        justify-content: center;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-heading h2 {
        justify-items: center;
        max-width: 100%;
        text-align: center;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-band p {
        max-width: 42rem;
        text-align: center;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-visual {
        min-height: 155px;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-image-slot {
        width: min(100%, 330px);
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-grid {
        grid-template-columns: 1fr;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-section {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }
}

@media (max-width: 560px) {
    body.route-tests-show:not(.personality-test-focus-mode) .site-breadcrumbs {
        overflow: hidden;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .site-breadcrumbs-inner {
        display: flex;
        overflow-x: auto;
        max-width: none;
        padding-inline: 0.9rem;
        scrollbar-width: none;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .site-breadcrumbs-inner::-webkit-scrollbar {
        display: none;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .site-breadcrumb-pill {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .section-tight {
        padding-top: 1rem;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-screen[data-screen="intro"] {
        gap: 1rem;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-heading h2 {
        font-size: clamp(2rem, 11vw, 3.2rem);
        letter-spacing: 0.025em;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-title-sub {
        font-size: clamp(1.35rem, 8vw, 2.35rem);
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-btn-primary {
        width: 100%;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-row {
        width: 100%;
        gap: 0.65rem;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-row .personality-test-btn-primary {
        min-width: 0;
        flex: 1 1 auto;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-notice {
        border-radius: 16px;
    }
}

html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) {
    background: #0b1220;
}

html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .site-main {
    background:
        linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, rgba(11, 18, 32, 0.82) 42rem, #0b1220 74rem),
        radial-gradient(circle at 18% 0%, rgba(96, 165, 250, 0.16), transparent 31rem),
        radial-gradient(circle at 76% 18rem, rgba(168, 85, 247, 0.13), transparent 30rem),
        radial-gradient(circle at 92% 38rem, rgba(219, 39, 119, 0.11), transparent 34rem),
        #0b1220;
    background-repeat: no-repeat;
    background-size: 100% 84rem;
}

html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-title-main,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-heading h2,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-section h3,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .learn-article-donation-title,
html[data-theme="dark"] .personality-test h2,
html[data-theme="dark"] .personality-test-trait-name {
    color: #f8fafc;
}

html[data-theme="dark"] .personality-test-sloan-type {
    color: #bfdbfe;
}

html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-screen[data-screen="intro"] > p,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-section p,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-note,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-notice,
html[data-theme="dark"] .personality-test p,
html[data-theme="dark"] .personality-test-trait-copy,
html[data-theme="dark"] .personality-test-score-explanation p {
    color: #cbd5e1;
}

html[data-theme="dark"] .personality-test-info-card,
html[data-theme="dark"] .personality-test-question-card,
html[data-theme="dark"] .personality-test-trait-card,
html[data-theme="dark"] .personality-test-notice,
html[data-theme="dark"] .personality-test-technical,
html[data-theme="dark"] .personality-test-intro-panel,
html[data-theme="dark"] .personality-test-sloan-card,
html[data-theme="dark"] .personality-test-score-explanation,
html[data-theme="dark"] .personality-test-result-preview-copy,
html[data-theme="dark"] .personality-test-ad-slot,
html[data-theme="dark"] .personality-test-demographics {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(17, 24, 39, 0.86);
    color: #d7dce2;
}

html[data-theme="dark"] .personality-test-sloan-plain h3 {
    color: #f8fafc;
}

html[data-theme="dark"] .personality-test-sloan-plain p {
    color: #cbd5e1;
}

/* Editorial test introductions, adapted from the July 2026 intro template. */
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-screen[data-screen="intro"] {
    width: min(100%, 1180px);
    gap: 0;
    color: #1e293b;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-band {
    display: block;
    width: 100%;
    margin: 0;
    padding: clamp(2.25rem, 6vw, 4.5rem) 1.5rem clamp(2.5rem, 6vw, 4.75rem);
    border-bottom: 1px solid #e7ebf0;
    background: transparent;
    color: #1e293b;
    overflow: visible;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-copy {
    display: flex;
    width: min(100%, 760px);
    margin: 0 auto;
    align-items: center;
    flex-direction: column;
    gap: 0;
    text-align: center;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-heading {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-heading h2 {
    display: block;
    max-width: 760px;
    margin: 0 auto 1rem;
    color: #0f2537;
    font-family: Lora, Georgia, serif;
    font-size: clamp(2.15rem, 5vw, 3.25rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.14;
    text-align: center;
    text-transform: none;
    text-wrap: balance;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-title-main,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-title-sub {
    display: inline;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-title-sub::before {
    content: " — ";
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-band p {
    max-width: 640px;
    margin: 0 auto;
    color: #64748b;
    font-size: clamp(1rem, 1.8vw, 1.08rem);
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-meta {
    display: flex;
    max-width: 700px;
    margin: 1.65rem auto 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.4rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-meta-chip svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    color: #94a3b8;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-actions-top {
    display: block;
    width: 100%;
    margin: 1.8rem 0 0;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-btn-primary {
    min-width: 0;
    min-height: 0;
    padding: 12px 24px;
    gap: 0.5rem;
    border: 1px solid #0f2537;
    border-radius: 9px;
    background: #0f2537;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15, 37, 55, 0.04);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-btn-primary:hover:not(:disabled),
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-btn-primary:focus-visible {
    border-color: #1a3a54;
    background: #1a3a54;
    box-shadow: 0 4px 16px -4px rgba(15, 37, 55, 0.16);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-btn-primary svg {
    width: 1rem;
    height: 1rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-notice {
    max-width: 620px;
    margin: 1.35rem auto 0;
    padding: 0.8rem 1rem;
    border: 1px solid #e7ebf0;
    border-left: 3px solid #2e68b5;
    border-radius: 10px;
    background: rgba(46, 104, 181, 0.05);
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-blurb {
    width: min(100% - 3rem, 760px);
    margin: 0 auto;
    padding: clamp(2.75rem, 6vw, 4rem) 0 1rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-blurb p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-detail-panel,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-principles-panel,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-faq-panel,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-grid,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-panel {
    width: min(100% - 3rem, 980px);
    margin: clamp(2.75rem, 6vw, 4rem) auto 0;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-detail-panel,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-principles-panel,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-faq-panel,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-panel {
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 37, 55, 0.04);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-detail-section h3,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-principles-panel h3,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-faq-panel h3,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-section h3 {
    color: #0f2537;
    font-family: Lora, Georgia, serif;
    font-weight: 500;
    text-align: center;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-detail-section > p,
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-principles-panel > p {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    text-align: center;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-card {
    min-height: 0;
    justify-items: center;
    padding: 1.4rem;
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 37, 55, 0.04);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-card .personality-test-info-icon {
    margin-bottom: 1rem;
    border-radius: 10px;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-faq-list {
    width: min(100%, 760px);
    margin: 0 auto;
    gap: 0;
    text-align: left;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-section {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    text-align: center;
}

@media (max-width: 820px) {
    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-band {
        padding-inline: 0.25rem;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-heading h2 {
        font-size: clamp(2rem, 10vw, 2.75rem);
        letter-spacing: -0.015em;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-row {
        width: auto;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-start-row .personality-test-btn-primary {
        width: auto;
        flex: 0 1 auto;
    }
}

html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-hero-band {
    border-color: rgba(148, 163, 184, 0.22);
    color: #d7dce2;
}

html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-heading h2,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-title-main,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-title-sub {
    color: #f8fafc;
}

html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-detail-panel,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-principles-panel,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-faq-panel,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-card,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-intro-panel {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(17, 24, 39, 0.86);
}

html[data-theme="dark"] .personality-test-percentile-bars {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.36);
}

html[data-theme="dark"] .personality-test-percentile-bar-label,
html[data-theme="dark"] .personality-test-percentile-bars h4 {
    color: #f8fafc;
}

html[data-theme="dark"] .personality-test-percentile-bar-value {
    color: #60a5fa;
}

html[data-theme="dark"] .personality-test-percentile-bar-scale {
    color: #cbd5e1;
}

html[data-theme="dark"] .personality-test-percentile-bar-track {
    background: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .personality-test-percentile-bar-fill,
html[data-theme="dark"] .personality-test-percentile-bar-thumb {
    background: #60a5fa;
}

html[data-theme="dark"] .personality-test-radar-card {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(17, 24, 39, 0.86);
    box-shadow: none;
}

html[data-theme="dark"] .personality-test-radar-header h3 {
    color: #f8fafc;
}

html[data-theme="dark"] .personality-test-radar-header p,
html[data-theme="dark"] .personality-test-radar-caption {
    color: #cbd5e1;
}

html[data-theme="dark"] .personality-test-radar-header span {
    background: rgba(96, 165, 250, 0.16);
    color: #bfdbfe;
}

html[data-theme="dark"] .personality-test-radar-canvas-wrap {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.45);
}

html[data-theme="dark"] .personality-test-radar-card hr {
    border-top-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .personality-test-radar-svg text {
    fill: #cbd5e1;
}

html[data-theme="dark"] .personality-test-trait-copy strong {
    color: #f8fafc;
}

html[data-theme="dark"] .personality-test-trait-name {
    color: #f8fafc;
}

html[data-theme="dark"] .personality-test-trait-score-unit,
html[data-theme="dark"] .personality-test-trait-slider-labels {
    color: #cbd5e1;
}

html[data-theme="dark"] .personality-test-trait-copy {
    color: #cbd5e1;
}

html[data-theme="dark"] .personality-test-trait-percentile,
html[data-theme="dark"] .personality-test-trait-score,
html[data-theme="dark"] .personality-test-trait-score-value {
    color: #60a5fa;
}

html[data-theme="dark"] .personality-test-trait-slider-track {
    background: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .personality-test-trait-slider-fill,
html[data-theme="dark"] .personality-test-trait-slider-thumb {
    background: #60a5fa;
}

html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-card {
    background: rgba(17, 24, 39, 0.9);
    box-shadow: none;
}

html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-test-info-card .personality-test-info-icon,
html[data-theme="dark"] .personality-test-progress-track,
html[data-theme="dark"] .personality-test-score-bar {
    background: rgba(96, 165, 250, 0.16);
}

html[data-theme="dark"] .personality-test-choice,
html[data-theme="dark"] .personality-test-home,
html[data-theme="dark"] .personality-test-btn,
html[data-theme="dark"] .personality-test-demographic-field select,
html[data-theme="dark"] .personality-test-sloan-explanation table,
html[data-theme="dark"] .personality-test-sloan-explanation thead th,
html[data-theme="dark"] .personality-test-technical pre {
    border-color: rgba(148, 163, 184, 0.24);
    background: #111827;
    color: #e2e8f0;
}

html[data-theme="dark"] .personality-test-choice:hover,
html[data-theme="dark"] .personality-test-choice.is-selected,
html[data-theme="dark"] .personality-test-home:hover,
html[data-theme="dark"] .personality-test-btn:hover:not(:disabled) {
    border-color: rgba(96, 165, 250, 0.38);
    background: rgba(96, 165, 250, 0.16);
}

html[data-theme="dark"] body.personality-test-focus-mode {
    background: #0b1220 !important;
}

html[data-theme="dark"] body.personality-test-focus-mode .site-main,
html[data-theme="dark"] body.personality-test-focus-mode .section,
html[data-theme="dark"] body.personality-test-focus-mode .site-main > .section > .container,
html[data-theme="dark"] body.personality-test-focus-mode .tool-template-shell,
html[data-theme="dark"] body.personality-test-focus-mode .tool-template,
html[data-theme="dark"] body.personality-test-focus-mode .tool-template-card {
    background: transparent !important;
}

html[data-theme="dark"] body.personality-test-focus-mode .site-main {
    background: #0b1220 !important;
}

html[data-theme="dark"] body.personality-test-focus-mode .personality-test-question-card h2,
html[data-theme="dark"] body.personality-test-focus-mode .personality-test-question-count {
    color: #f8fafc;
}

html[data-theme="dark"] body.personality-test-focus-mode .personality-test-choice,
html[data-theme="dark"] body.personality-test-focus-mode .personality-test-btn,
html[data-theme="dark"] body.personality-test-focus-mode .personality-test-home {
    border-color: rgba(148, 163, 184, 0.24);
    background: #111827;
    color: #e2e8f0;
}

html[data-theme="dark"] body.personality-test-focus-mode .personality-test-choice:hover,
html[data-theme="dark"] body.personality-test-focus-mode .personality-test-choice.is-selected,
html[data-theme="dark"] body.personality-test-focus-mode .personality-test-btn:hover:not(:disabled),
html[data-theme="dark"] body.personality-test-focus-mode .personality-test-home:hover {
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(96, 165, 250, 0.16);
}

/* Mini flow-check preview: faithful adaptation of test-introTemplate sonnet5 july2026.html. */
body.route-tests-show:not(.personality-test-focus-mode) .personality-test-screen[data-screen="intro"]:has(.personality-intro-editorial) {
    width: auto;
    max-width: none;
    margin-inline: calc(50% - 50vw);
    padding-inline: max(24px, calc((100vw - 1180px) / 2));
    background: #fcfcfd;
    color: #1e293b;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-editorial,
html[data-theme="dark"] body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-editorial {
    --intro-primary: #0f2537;
    --intro-accent: #2e68b5;
    --intro-text: #1e293b;
    --intro-muted: #64748b;
    --intro-soft: #94a3b8;
    --intro-border: #e7ebf0;
    --intro-surface: #fff;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    background: #fcfcfd;
    color: var(--intro-text);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-hero {
    max-width: 760px;
    padding: 28px 0 48px;
    border-bottom: 1px solid var(--intro-border);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-hero h1 {
    color: var(--intro-primary);
    font-size: clamp(2.1rem, 4.6vw, 2.9rem);
    font-weight: 500;
    line-height: 1.14;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-lead {
    max-width: 560px;
    margin-top: 16px;
    color: var(--intro-muted);
    font-size: 1.08rem;
    line-height: 1.55;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-meta {
    margin-top: 24px;
    gap: 10px 22px;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-meta span {
    color: var(--intro-muted);
    font-size: 0.85rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-actions {
    margin-top: 28px;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-editorial .personality-test-btn-primary,
body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-secondary {
    padding: 12px 24px;
    border-radius: 9px;
    font: 600 0.9rem/1 Inter, sans-serif;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-secondary {
    border-color: #cbd5e1;
    background: #fff;
    color: #0f2537;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-notice {
    max-width: 560px;
    margin-top: 22px;
    padding: 13px 16px;
    border: 1px solid var(--intro-border);
    border-left: 3px solid var(--intro-accent);
    border-radius: 10px;
    background: rgba(46, 104, 181, 0.05);
    color: var(--intro-muted);
    font-size: 0.84rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-section {
    padding: 56px 0 0;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-section-head {
    max-width: 680px;
    margin-bottom: 28px;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-section-head > span {
    margin-bottom: 10px;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-section-head h2 {
    color: var(--intro-primary);
    font-size: 1.8rem;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-section-head p {
    color: var(--intro-muted);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-card {
    grid-column: span 2;
    padding: 22px 22px 20px;
    border: 1px solid var(--intro-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 37, 55, 0.04);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-card:nth-child(4) {
    grid-column: 2 / span 2;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-card h3,
body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-facts h3 {
    color: var(--intro-primary);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-card p,
body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-facts p {
    color: var(--intro-muted);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-faq-list {
    max-width: 760px;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-faq details {
    border-color: var(--intro-border);
    border-radius: 14px;
    background: #fff;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-faq summary {
    padding: 16px 20px;
    color: var(--intro-primary);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-faq details p {
    padding: 0 20px 18px;
    color: var(--intro-muted);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-final-cta {
    margin: 40px 0 56px;
    padding: 30px 34px;
    border: 1px solid var(--intro-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbfc 0%, #f4f7fa 100%);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-final-cta h2 {
    color: var(--intro-primary);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-final-cta p {
    color: var(--intro-muted);
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-sticky {
    border-color: var(--intro-border);
    background: #fff;
    color: var(--intro-text);
}

@media (max-width: 760px) {
    body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-grid,
    body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-facts {
        grid-template-columns: 1fr;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-card,
    body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-card:nth-child(4) {
        grid-column: auto;
    }
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-card,
body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-card:nth-child(4) {
    grid-column: auto;
}

@media (max-width: 860px) {
    body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    body.route-tests-show:not(.personality-test-focus-mode) .personality-intro-trait-grid {
        grid-template-columns: 1fr;
    }

    body.route-tests-show:not(.personality-test-focus-mode) .personality-test-screen[data-screen="intro"]:has(.personality-intro-editorial) {
        width: 100%;
        margin-inline: 0;
        padding-inline: 0;
    }
}
