/* Subject-page layout: direct access to topics, with optional mobile detail. */
.subject-landing-page .subject-landing > .section {
    --landing-section-padding: 80px;
    padding: var(--landing-section-padding) 0;
}

.subject-landing-page .subject-hero {
    padding: 28px 0 48px;
    background: radial-gradient(ellipse at 50% 20%, #f1eeff, transparent 70%), #fff;
}

.subject-landing-page .subject-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.subject-landing-page .subject-hero-inner {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.subject-landing-page .subject-hero-copy {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.subject-landing-page .subject-hero-product {
    display: inline-flex;
    margin: 0 0 16px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--home-brand-soft);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.subject-landing-page .subject-hero-title {
    max-width: none;
    margin: 0 0 22px;
    font-size: clamp(34px, 4vw, 46px);
}

.subject-landing-page .subject-hero-lead {
    max-width: 650px;
    margin: 0 auto 28px;
}

.subject-landing-page .subject-hero-actions {
    justify-content: center;
}

.subject-landing-page .subject-hero-terms {
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.6;
}

.subject-page-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    margin-top: 20px;
}

.subject-page-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.subject-page-links a:hover { text-decoration: underline; }
.subject-mobile-cta[hidden] { display: none !important; }
.subject-topics-toggle { display: none; }

.subject-landing-page .subject-outcomes-layout {
    gap: 40px;
    align-items: start;
}

.subject-landing-page .subject-outcomes .home-section-heading {
    padding-top: 0;
    margin: 0;
    text-align: left;
}

.subject-landing-page .subject-outcomes .home-kicker {
    justify-content: flex-start;
}

.subject-landing-page .subject-category-panel {
    padding: 24px;
}

.subject-landing-page .subject-category-panel-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    align-items: baseline;
    margin-bottom: 14px;
}

.subject-category-panel-heading > span {
    color: var(--ink-soft);
    font-size: 12px;
}

.subject-landing-page .subject-topic-list {
    border: 0;
    border-radius: 0;
    column-gap: 20px;
}

.subject-landing-page .subject-outcomes .subject-topic-list li {
    min-height: 52px;
    gap: 10px;
    padding: 10px 0;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--line);
}

.subject-landing-page .subject-outcomes .subject-topic-list li + li {
    border-top: 0;
}

.subject-landing-page .subject-outcomes .subject-topic-list li > span {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border: 0;
    border-radius: 0;
    font-size: 11px;
    font-weight: 500;
}

.subject-landing-page .subject-topic-list li > strong {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.subject-study-flow {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.subject-landing-page .subject-study-flow .home-section-heading {
    max-width: none;
    text-align: left;
    margin: 0 0 32px;
}

.subject-study-layout.has-preview {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 48px;
}

.subject-study-steps {
    display: grid;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.subject-study-layout:not(.has-preview) .subject-study-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subject-study-steps li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 16px;
}

.subject-study-steps li > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-accent);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 500;
}

.subject-landing-page .subject-study-steps h3 {
    margin: 3px 0 8px;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
}

.subject-study-steps p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

.subject-progress-disclosure { min-width: 0; }
.subject-progress-disclosure > summary { display: none; }
.subject-progress-example {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
}

.subject-landing-page .subject-progress-example .landing-knowledge-preview { padding: 24px; }
.subject-progress-heading { margin-bottom: 20px; }
.subject-progress-heading > span {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 500;
}

.subject-landing-page .subject-progress-heading h3 {
    margin: 6px 0 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
}

.subject-progress-example .landing-knowledge-row-heading {
    flex-wrap: wrap;
    gap: 6px 12px;
}

.subject-progress-example .landing-knowledge-row-heading > strong {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.subject-progress-example .landing-knowledge-row-heading > span {
    font-size: 12px;
    line-height: 1.5;
}

.subject-progress-example figcaption {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    background: var(--surface);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .subject-landing-page .subject-landing > .section {
        --landing-section-padding: 40px;
    }

    .subject-landing-page .subject-hero { padding: 20px 0 28px; }
    .subject-landing-page .subject-breadcrumb { margin-bottom: 24px; font-size: 12px; }
    .subject-landing-page .subject-hero-copy { text-align: left; }
    .subject-landing-page .subject-hero-title {
        margin-bottom: 18px;
        font-size: clamp(30px, 7.8vw, 38px);
        line-height: 1.15;
    }

    .subject-landing-page .subject-hero-lead {
        margin-bottom: 24px;
        font-size: 16px;
        line-height: 1.6;
    }

    .subject-landing-page .subject-hero-actions .btn { width: 100%; }
    .subject-landing-page .subject-hero-terms { text-align: center; font-size: 12px; }
    .subject-page-links { gap: 4px 20px; margin-top: 14px; }
    .subject-page-links a { font-size: 13px; }

    .subject-landing-page .subject-outcomes-layout { gap: 24px; }
    .subject-landing-page .subject-outcomes .home-section-heading p:last-child { font-size: 15px; }
    .subject-landing-page .subject-category-panel { padding: 18px; }
    .subject-landing-page .subject-outcomes .subject-topic-list li { min-height: 46px; padding: 9px 0; }

    .subject-category-panel.is-collapsible:not(.is-expanded) .subject-topic-list li:nth-child(n+7) { display: none; }
    .subject-topics-toggle:not([hidden]) {
        display: block;
        min-height: 44px;
        margin-top: 10px;
        padding: 10px 0;
        border: 0;
        background: transparent;
        color: var(--primary-dark);
        font: inherit;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }

    .subject-landing-page .subject-study-flow .home-section-heading { margin-bottom: 24px; }
    .subject-study-layout.has-preview { grid-template-columns: 1fr; gap: 24px; }
    .subject-study-layout:not(.has-preview) .subject-study-steps { grid-template-columns: 1fr; }
    .subject-study-steps { gap: 20px; }
    .subject-study-steps li { gap: 12px; }
    .subject-landing-page .subject-study-steps h3 { margin-bottom: 6px; font-size: 17px; }
    .subject-study-steps p { font-size: 14px; }
    .subject-progress-disclosure > summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 12px 0;
        border-top: 1px solid var(--line);
        color: var(--primary-dark);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        list-style: none;
    }

    .subject-progress-disclosure > summary::-webkit-details-marker { display: none; }
    .subject-progress-disclosure > summary > span { font-size: 22px; }
    .subject-progress-disclosure[open] > summary > span { transform: rotate(45deg); }
    .subject-landing-page .subject-progress-example .landing-knowledge-preview { padding: 18px; }
    .subject-progress-example figcaption { padding: 14px 18px; }
    .subject-landing-page .landing-faq-layout { gap: 24px; }
    .subject-landing-page .landing-faq .landing-faq-heading { margin-bottom: 0; }
    .subject-landing-page .landing-faq-list summary { min-height: 60px; padding: 14px 16px; }
    .subject-landing-page .landing-faq-question { font-size: 15px; }
    .subject-landing-page .home-final-cta .trial-card { gap: 24px; padding: 20px; }
    .subject-landing-page .home-trial-copy .trial-highlights { display: none; }
    .subject-landing-page .home-trial-checkout { padding: 18px; }
}
