/* /major-match/css/major_match_v1.css */

:root {
    --major-ink: #14213d;
    --major-muted: #697386;
    --major-line: #e7eaf0;
    --major-bg: #f6f8fc;
    --major-card: #ffffff;
    --major-primary: #4b5cff;
    --major-primary-deep: #3545db;
    --major-soft: #eef0ff;
    --major-success: #0c9f74;
    --major-danger: #d94c4c;
    --major-radius-lg: 28px;
    --major-radius-md: 18px;
    --major-shadow: 0 18px 50px rgba(35, 48, 92, 0.08);
}

.major-match-page {
    min-height: 100vh;
    background: var(--major-bg);
    color: var(--major-ink);
}

.major-match-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.major-match-hero,
.major-match-result-hero {
    padding: 92px 0 76px;
    background:
        radial-gradient(circle at 15% 20%, rgba(127, 140, 255, 0.18), transparent 32%),
        linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    border-bottom: 1px solid rgba(75, 92, 255, 0.08);
}

.major-match-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--major-soft);
    color: var(--major-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.major-match-hero h1,
.major-match-result-hero h1 {
    margin: 22px 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.major-match-hero > .major-match-container > p,
.major-match-result-hero > .major-match-container > p {
    max-width: 760px;
    margin: 0;
    color: var(--major-muted);
    font-size: 18px;
    line-height: 1.75;
}

.major-match-meta,
.major-match-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.major-match-meta span,
.major-match-result-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(75, 92, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #4c5870;
    font-size: 13px;
    font-weight: 700;
}

.major-match-test-section,
.major-match-result-section {
    padding: 48px 0 100px;
}

.major-match-guide,
.major-match-progress-wrap,
.major-match-question-group,
.major-match-submit-wrap,
.major-match-top-result,
.major-match-result-block,
.major-match-result-notice {
    background: var(--major-card);
    border: 1px solid var(--major-line);
    border-radius: var(--major-radius-lg);
    box-shadow: var(--major-shadow);
}

.major-match-guide {
    padding: 24px 28px;
}

.major-match-guide strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.major-match-guide p {
    margin: 0;
    color: var(--major-muted);
    line-height: 1.7;
}

.major-match-progress-wrap {
    position: sticky;
    top: 12px;
    z-index: 10;
    margin: 18px 0 28px;
    padding: 18px 22px;
}

.major-match-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 13px;
}

.major-match-progress-head span {
    color: var(--major-muted);
    font-weight: 700;
}

.major-match-progress-track,
.major-match-mini-track {
    overflow: hidden;
    width: 100%;
    border-radius: 999px;
    background: #edf0f5;
}

.major-match-progress-track {
    height: 8px;
}

.major-match-progress-track span,
.major-match-mini-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--major-primary), #7e8aff);
    transition: width .25s ease;
}

.major-match-question-group {
    margin-top: 24px;
    padding: 30px;
}

.major-match-group-head,
.major-match-section-title {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.major-match-group-head > span,
.major-match-section-title > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--major-soft);
    color: var(--major-primary);
    font-size: 13px;
    font-weight: 900;
}

.major-match-group-head h2,
.major-match-section-title h2 {
    margin: 0 0 5px;
    font-size: 24px;
    letter-spacing: -.025em;
}

.major-match-group-head p,
.major-match-section-title p {
    margin: 0;
    color: var(--major-muted);
    line-height: 1.6;
}

.major-match-question-list {
    display: grid;
    gap: 14px;
}

.major-match-question {
    padding: 24px;
    border: 1px solid var(--major-line);
    border-radius: var(--major-radius-md);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.major-match-question.is-answered {
    border-color: rgba(75, 92, 255, 0.35);
    box-shadow: 0 10px 28px rgba(75, 92, 255, 0.08);
}

.major-match-question.has-error {
    border-color: var(--major-danger);
    transform: translateY(-2px);
}

.major-match-question-title {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.major-match-question-title > span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f1f3f8;
    color: #556077;
    font-size: 13px;
    font-weight: 900;
}

.major-match-question-title p {
    margin: 3px 0 0;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.65;
}

.major-match-question-help {
    margin: 8px 0 0 46px;
    color: var(--major-muted);
    font-size: 13px;
}

.major-match-scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.major-match-scale-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 12px 8px;
    border: 1px solid var(--major-line);
    border-radius: 14px;
    background: #fafbfe;
    text-align: center;
    transition: all .2s ease;
}

.major-match-scale-option:hover {
    border-color: rgba(75, 92, 255, 0.4);
    background: #f6f7ff;
}

.major-match-scale-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.major-match-scale-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dfe3eb;
    color: #647087;
    font-weight: 900;
}

.major-match-scale-label {
    color: var(--major-muted);
    font-size: 12px;
    line-height: 1.35;
}

.major-match-scale-option:has(input:checked) {
    border-color: var(--major-primary);
    background: var(--major-soft);
}

.major-match-scale-option:has(input:checked) .major-match-scale-circle {
    background: var(--major-primary);
    border-color: var(--major-primary);
    color: #fff;
}

.major-match-scale-option:has(input:checked) .major-match-scale-label {
    color: var(--major-primary-deep);
    font-weight: 800;
}

.major-match-submit-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding: 28px 30px;
}

.major-match-submit-copy strong {
    display: block;
    margin-bottom: 7px;
    font-size: 19px;
}

.major-match-submit-copy p {
    margin: 0;
    color: var(--major-muted);
}

.major-match-submit-button,
.major-match-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    background: var(--major-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.major-match-submit-button:hover,
.major-match-button:hover {
    background: var(--major-primary-deep);
    transform: translateY(-1px);
}

.major-match-submit-button:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

.major-match-form-message {
    margin: 16px 0 0;
    padding: 15px 18px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 750;
}

.major-match-form-message.is-error {
    background: #fff0f0;
    color: var(--major-danger);
}

.major-match-form-message.is-success {
    background: #eafaf4;
    color: var(--major-success);
}

.major-match-top-result,
.major-match-result-block {
    margin-bottom: 24px;
    padding: 32px;
}

.major-match-top-result {
    position: relative;
    overflow: hidden;
}

.major-match-top-result::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(75, 92, 255, 0.07);
}

.major-match-top-rank {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--major-soft);
    color: var(--major-primary);
    font-size: 12px;
    font-weight: 900;
}

.major-match-top-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 40px;
    margin-top: 22px;
}

.major-match-top-copy > span,
.major-match-ranking-copy > span,
.major-match-analysis-grid article > span,
.major-match-dimension-card span {
    color: var(--major-primary);
    font-size: 12px;
    font-weight: 850;
}

.major-match-top-copy h2 {
    margin: 8px 0 12px;
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -.045em;
}

.major-match-top-copy p {
    max-width: 620px;
    margin: 0;
    color: var(--major-muted);
    line-height: 1.75;
}

.major-match-fit-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 24px;
}

.major-match-fit-badge strong {
    font-size: 42px;
    line-height: 1;
    letter-spacing: -.04em;
}

.major-match-fit-badge span {
    color: var(--major-muted);
    font-size: 14px;
    font-weight: 750;
}

.major-match-group-score-card {
    display: grid;
    gap: 18px;
    align-content: center;
    padding: 24px;
    border-radius: 20px;
    background: #f8f9fd;
}

.major-match-group-score-row > div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 13px;
}

.major-match-mini-track {
    height: 7px;
}

.major-match-analysis-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.major-match-analysis-grid article {
    padding: 20px;
    border-radius: 16px;
    background: #f8f9fd;
}

.major-match-analysis-grid article p {
    margin: 8px 0 0;
    color: var(--major-muted);
    line-height: 1.7;
}

.major-match-ranking-list {
    display: grid;
    gap: 12px;
}

.major-match-ranking-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--major-line);
    border-radius: 17px;
}

.major-match-ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #f1f3f8;
    font-weight: 900;
}

.major-match-ranking-copy h3 {
    margin: 5px 0 7px;
    font-size: 20px;
}

.major-match-ranking-copy p,
.major-match-ranking-copy small {
    display: block;
    margin: 0;
    color: var(--major-muted);
    line-height: 1.55;
}

.major-match-ranking-copy small {
    margin-top: 6px;
}

.major-match-ranking-score {
    min-width: 86px;
    text-align: right;
}

.major-match-ranking-score strong {
    display: block;
    font-size: 27px;
}

.major-match-ranking-score span {
    color: var(--major-muted);
    font-size: 12px;
    font-weight: 750;
}

.major-match-dimension-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.major-match-dimension-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 100px;
    padding: 18px;
    border: 1px solid var(--major-line);
    border-radius: 17px;
}

.major-match-dimension-card h3 {
    margin: 5px 0 0;
    font-size: 16px;
}

.major-match-dimension-card > strong {
    font-size: 24px;
}

.major-match-result-notice {
    padding: 24px 28px;
}

.major-match-result-notice strong {
    display: block;
    margin-bottom: 8px;
}

.major-match-result-notice p {
    margin: 0;
    color: var(--major-muted);
    line-height: 1.75;
}

.major-match-result-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.major-match-button--light {
    background: #fff;
    border: 1px solid var(--major-line);
    color: var(--major-ink);
}

.major-match-button--light:hover {
    background: #f2f4f8;
}

@media (max-width: 900px) {
    .major-match-top-grid,
    .major-match-analysis-grid {
        grid-template-columns: 1fr;
    }

    .major-match-dimension-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .major-match-container {
        width: min(100% - 24px, 1120px);
    }

    .major-match-hero,
    .major-match-result-hero {
        padding: 62px 0 52px;
    }

    .major-match-test-section,
    .major-match-result-section {
        padding: 28px 0 70px;
    }

    .major-match-question-group,
    .major-match-top-result,
    .major-match-result-block {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .major-match-progress-wrap {
        top: 8px;
        padding: 14px 16px;
    }

    .major-match-scale {
        grid-template-columns: 1fr;
    }

    .major-match-scale-option {
        flex-direction: row;
        justify-content: flex-start;
        min-height: 54px;
        padding: 10px 12px;
        text-align: left;
    }

    .major-match-scale-label {
        font-size: 13px;
    }

    .major-match-submit-wrap {
        align-items: stretch;
        flex-direction: column;
        padding: 22px 18px;
    }

    .major-match-submit-button {
        width: 100%;
    }

    .major-match-ranking-card {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .major-match-ranking-score {
        grid-column: 2;
        min-width: 0;
        text-align: left;
    }

    .major-match-ranking-score strong,
    .major-match-ranking-score span {
        display: inline;
    }

    .major-match-ranking-score span {
        margin-left: 7px;
    }

    .major-match-dimension-grid {
        grid-template-columns: 1fr;
    }

    .major-match-result-actions {
        flex-direction: column;
    }

    .major-match-button {
        width: 100%;
    }
}


/* =========================================================
   Major Match Renewal v4
   EduPath navy / slate / white design system
========================================================= */
:root {
    --major-ink: #14213a;
    --major-deep: #0f192b;
    --major-muted: #687488;
    --major-line: #dfe5ee;
    --major-bg: #f5f7fb;
    --major-card: #ffffff;
    --major-primary: #315ba8;
    --major-primary-deep: #284d91;
    --major-soft: #eef3fb;
    --major-success: #0c8f70;
    --major-danger: #c94a4a;
    --major-shadow: 0 20px 60px rgba(20,33,58,.08);
}

.major-match-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: #fff;
    color: var(--major-ink);
}

.major-match-shell,
.major-match-container,
.major-match-intro-container {
    width: min(1240px, calc(100% - 40px));
    max-width: none;
    margin-right: auto;
    margin-left: auto;
}

/* local navigation */
.major-match-subnav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 46px;
    margin-top: 18px;
    border-bottom: 1px solid var(--major-line);
}

.major-match-subnav a {
    position: relative;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    color: #7b8596;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.major-match-subnav a:hover,
.major-match-subnav a.active {
    color: var(--major-ink);
}

.major-match-subnav a.active {
    font-weight: 900;
}

.major-match-subnav a.active::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: -1px;
    left: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--major-primary);
}

/* intro */
.major-match-intro-wrap {
    overflow: hidden;
    background: #fff;
}

.major-match-intro-hero {
    width: min(1240px, calc(100% - 40px));
    margin: 18px auto 0;
    padding: 58px;
    border: 1px solid #e4e9f1;
    border-radius: 30px;
    background: linear-gradient(135deg,#f8fafc,#eef2f7);
    box-shadow: var(--major-shadow);
}

.major-match-intro-hero-grid {
    grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr);
    gap: 44px;
}

.major-match-intro-kicker,
.major-match-section-kicker,
.major-match-kicker {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--major-primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.major-match-intro-hero h1 {
    margin-top: 16px;
    color: var(--major-ink);
    font-size: clamp(40px,5vw,62px);
    line-height: 1.08;
}

.major-match-intro-hero h1 strong {
    color: var(--major-primary);
}

.major-match-intro-hero-copy > p {
    color: var(--major-muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.82;
}

.major-match-intro-btn,
.major-match-submit-button,
.major-match-button {
    min-height: 48px;
    border-radius: 14px;
    background: var(--major-primary);
    box-shadow: 0 12px 28px rgba(49,91,168,.2);
}

.major-match-intro-btn--light,
.major-match-button--light {
    border: 1px solid var(--major-line);
    background: #fff;
    color: var(--major-ink);
    box-shadow: none;
}

.major-match-intro-beta {
    color: #8993a3;
}

.major-match-intro-visual {
    min-height: 450px;
}

.major-match-intro-visual-card,
.major-match-intro-float {
    border-color: var(--major-line);
    box-shadow: 0 16px 46px rgba(20,33,58,.08);
}

.major-match-intro-visual-card--main > span,
.major-match-intro-report-main > span,
.major-match-intro-flow-card > span {
    color: var(--major-primary);
}

.major-match-intro-track i,
.major-match-progress-track span,
.major-match-mini-track span {
    background: var(--major-primary);
}

.major-match-intro-section {
    padding: 76px 0;
    background: #fff;
}

.major-match-intro-section:nth-of-type(even) {
    background: #f7f9fc;
}

.major-match-section-head h2 {
    color: var(--major-ink);
}

.major-match-section-head p,
.major-match-intro-feature-card p,
.major-match-intro-flow-card p,
.major-match-intro-report-item p,
.major-match-intro-report-side p {
    color: var(--major-muted);
}

.major-match-intro-feature-card,
.major-match-intro-flow-card,
.major-match-intro-report-main,
.major-match-intro-report-side,
.major-match-intro-faq details {
    border-color: var(--major-line);
    box-shadow: 0 12px 32px rgba(20,33,58,.045);
}

.major-match-intro-feature-card > span,
.major-match-intro-report-item b {
    background: var(--major-soft);
    color: var(--major-primary);
}

.major-match-intro-report-side {
    background: var(--major-deep);
}

.major-match-intro-report-side strong {
    color: #fff;
}

.major-match-intro-report-side p,
.major-match-intro-report-side small {
    color: #c4cedc;
}

.major-match-intro-cta {
    padding: 72px 0;
    background: #fff;
}

.major-match-intro-cta-card {
    border-color: var(--major-line);
    background: #f6f8fc;
}

/* test */
.major-match-test-page .major-match-hero {
    width: min(1240px, calc(100% - 40px));
    margin: 18px auto 0;
    padding: 54px;
    border: 1px solid #e4e9f1;
    border-radius: 30px;
    background: linear-gradient(135deg,#f8fafc,#eef2f7);
    box-shadow: var(--major-shadow);
}

.major-match-test-page .major-match-hero h1 {
    color: var(--major-ink);
    font-size: clamp(38px,5vw,58px);
}

.major-match-test-page .major-match-hero > .major-match-container > p {
    color: var(--major-muted);
    font-size: 15px;
}

.major-match-meta span {
    border-color: var(--major-line);
    background: #fff;
    color: var(--major-muted);
}

.major-match-test-section {
    padding: 36px 0 80px;
}

.major-match-progress-wrap {
    position: sticky;
    top: 84px;
    z-index: 30;
    border: 1px solid var(--major-line);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 28px rgba(20,33,58,.08);
    backdrop-filter: blur(10px);
}

.major-match-question-list {
    gap: 12px;
}

.major-match-question {
    padding: 22px;
    border-color: var(--major-line);
    border-radius: 18px;
    box-shadow: none;
}

.major-match-question.is-answered {
    border-color: #b9cae4;
    box-shadow: 0 8px 24px rgba(49,91,168,.06);
}

.major-match-question-title > span {
    background: var(--major-soft);
    color: var(--major-primary);
}

.major-match-scale {
    gap: 8px;
    margin-top: 18px;
}

.major-match-scale-option {
    min-height: 78px;
    border-color: var(--major-line);
    background: #fafbfc;
}

.major-match-scale-option:has(input:checked) {
    border-color: var(--major-primary);
    background: var(--major-soft);
}

.major-match-scale-option:has(input:checked) .major-match-scale-circle {
    background: var(--major-primary);
    border-color: var(--major-primary);
}

.major-match-submit-wrap {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    border: 1px solid var(--major-line);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 34px rgba(20,33,58,.10);
    backdrop-filter: blur(10px);
}

/* result */
.major-match-result-page {
    background: #fff;
}

.major-match-result-hero {
    width: min(1240px, calc(100% - 40px));
    margin: 18px auto 0;
    padding: 52px;
    border: 1px solid #e4e9f1;
    border-radius: 30px;
    background: linear-gradient(135deg,#f8fafc,#eef2f7);
    box-shadow: var(--major-shadow);
}

.major-match-result-hero h1 {
    color: var(--major-ink);
    font-size: clamp(38px,5vw,58px);
}

.major-match-result-hero > .major-match-container > p {
    color: var(--major-muted);
}

.major-match-result-section {
    padding: 36px 0 80px;
}

.major-match-result-block,
.major-match-top-result,
.major-match-result-notice {
    border-color: var(--major-line);
    box-shadow: 0 12px 34px rgba(20,33,58,.05);
}

.major-match-top-result {
    border-left: 5px solid var(--major-primary);
}

.major-match-top-result::before {
    display: none;
}

.major-match-top-rank,
.major-match-section-title > span,
.major-match-ranking-number {
    background: var(--major-soft);
    color: var(--major-primary);
}

.major-match-top-copy h2,
.major-match-ranking-copy h3 {
    color: var(--major-primary-deep);
}

.major-match-fit-badge,
.major-match-ranking-score {
    background: #f3f6fb;
}

.major-match-fit-badge strong,
.major-match-ranking-score strong,
.major-match-dimension-card > strong {
    color: var(--major-primary);
}

.major-match-major-field-item::before {
    background: var(--major-primary);
}

@media (max-width: 960px) {
    .major-match-intro-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .major-match-shell,
    .major-match-container,
    .major-match-intro-container,
    .major-match-intro-hero,
    .major-match-test-page .major-match-hero,
    .major-match-result-hero {
        width: min(100% - 24px,1240px);
    }

    .major-match-subnav {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .major-match-subnav::-webkit-scrollbar {
        display: none;
    }

    .major-match-subnav a {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 0 11px;
        font-size: 11px;
    }

    .major-match-intro-hero,
    .major-match-test-page .major-match-hero,
    .major-match-result-hero {
        margin-top: 12px;
        padding: 28px 22px;
        border-radius: 22px;
    }

    .major-match-intro-hero h1,
    .major-match-test-page .major-match-hero h1,
    .major-match-result-hero h1 {
        font-size: 34px;
    }

    .major-match-intro-visual {
        min-height: 390px;
    }

    .major-match-intro-section {
        padding: 56px 0;
    }

    .major-match-progress-wrap {
        top: 70px;
    }

    .major-match-question {
        padding: 18px 15px;
    }

    .major-match-scale {
        grid-template-columns: 1fr;
    }

    .major-match-scale-option {
        min-height: 50px;
        flex-direction: row;
        justify-content: flex-start;
    }

    .major-match-submit-wrap {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .major-match-result-block,
    .major-match-top-result {
        padding: 20px;
        border-radius: 20px;
    }
}

/* =========================================================
   Major Match Result polish v4.2
========================================================= */
.major-match-result-page .major-match-result-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 330px;
    display: flex;
    align-items: center;
    border-color: #dce4ef;
    background:
        radial-gradient(circle at 88% 18%, rgba(49,91,168,.16), transparent 28%),
        radial-gradient(circle at 74% 100%, rgba(105,130,174,.11), transparent 32%),
        linear-gradient(135deg,#fbfcfe 0%,#f1f5fb 58%,#eaf0f8 100%);
}

.major-match-result-page .major-match-result-hero::before,
.major-match-result-page .major-match-result-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(49,91,168,.13);
    border-radius: 50%;
}

.major-match-result-page .major-match-result-hero::before {
    right: 7%;
    width: 210px;
    height: 210px;
}

.major-match-result-page .major-match-result-hero::after {
    right: 12%;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,.45);
}

.major-match-result-hero-copy { max-width: 760px; }

.major-match-result-overline {
    margin: 24px 0 0 !important;
    color: var(--major-primary) !important;
    font-size: 14px !important;
    font-weight: 850;
}

.major-match-result-page .major-match-result-hero h1 {
    margin: 6px 0 12px;
    font-size: clamp(44px,6vw,68px);
}

.major-match-result-page .major-match-result-meta span:first-child::before {
    content: "REPORT";
    margin-right: 8px;
    color: var(--major-primary);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .09em;
}

.major-match-result-section > .major-match-container {
    display: grid;
    gap: 22px;
}

.major-match-result-page .major-match-result-block,
.major-match-result-page .major-match-top-result,
.major-match-result-page .major-match-result-notice { margin: 0; }

.major-match-result-page .major-match-result-block,
.major-match-result-page .major-match-top-result {
    padding: 38px;
    border-radius: 26px;
}

.major-match-result-page .major-match-section-title {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--major-line);
}

.major-match-result-page .major-match-section-title > span {
    box-shadow: inset 0 0 0 1px rgba(49,91,168,.08);
}

.major-match-result-page .major-match-section-title h2 { font-size: 26px; }

.major-match-result-page .major-match-analysis-grid article {
    position: relative;
    padding: 23px;
    border: 1px solid #e4e9f1;
    background: linear-gradient(145deg,#fbfcfe,#f6f8fb);
}

.major-match-result-page .major-match-analysis-grid article::before {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin-bottom: 13px;
    border-radius: 999px;
    background: var(--major-primary);
}

.major-match-result-page .major-match-top-result {
    border: 0;
    border-left: 0;
    background: linear-gradient(135deg,#12213a 0%,#1c3458 62%,#274a7b 100%);
    box-shadow: 0 22px 52px rgba(15,25,43,.18);
    color: #fff;
}

.major-match-result-page .major-match-top-result::after {
    right: -60px;
    top: -85px;
    background: rgba(255,255,255,.06);
}

.major-match-result-page .major-match-top-rank {
    background: rgba(255,255,255,.12);
    color: #dce9ff;
}

.major-match-result-page .major-match-top-copy > span { color: #aecaef; }
.major-match-result-page .major-match-top-copy h2 { color: #fff; }
.major-match-result-page .major-match-top-copy p { color: #cbd6e6; }

.major-match-result-page .major-match-fit-badge {
    padding: 15px 18px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;
    background: rgba(255,255,255,.09);
}

.major-match-result-page .major-match-fit-badge strong { color: #fff; }
.major-match-result-page .major-match-fit-badge div { display: grid; gap: 3px; }
.major-match-result-page .major-match-fit-badge small { color: #9fb2ce; font-size: 10px; font-weight: 800; }
.major-match-result-page .major-match-fit-badge span { color: #e5edfa; }

.major-match-result-page .major-match-group-score-card {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.08);
}

.major-match-result-page .major-match-group-score-row span { color: #c4d1e3; }
.major-match-result-page .major-match-group-score-row strong { color: #fff; }
.major-match-result-page .major-match-mini-track { background: rgba(255,255,255,.13); }
.major-match-result-page .major-match-mini-track span { background: linear-gradient(90deg,#88ace4,#d5e4fb); }

.major-match-result-page .major-match-top-result .major-match-analysis-grid article {
    border-color: rgba(255,255,255,.1);
    background: rgba(255,255,255,.07);
}

.major-match-result-page .major-match-top-result .major-match-analysis-grid article > span { color: #bcd1ef; }
.major-match-result-page .major-match-top-result .major-match-analysis-grid article p { color: #d4deeb; }
.major-match-result-page .major-match-top-result .major-match-analysis-grid article::before { background: #89ace1; }

.major-match-major-field-list {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
    margin-top: 22px;
}

.major-match-major-field-item {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 24px;
    border: 1px solid var(--major-line);
    border-radius: 18px;
    background: #fff;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.major-match-major-field-item:hover {
    transform: translateY(-3px);
    border-color: #bdcce2;
    box-shadow: 0 14px 30px rgba(20,33,58,.08);
}

.major-match-major-field-item::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
}

.major-match-major-field-item > span {
    color: var(--major-primary);
    font-size: 11px;
    font-weight: 900;
}

.major-match-major-field-item h3 { margin: 10px 0 8px; font-size: 20px; letter-spacing: -.02em; }
.major-match-major-field-item p { margin: 0; color: var(--major-muted); font-size: 14px; line-height: 1.7; }

.major-match-result-page .major-match-dimension-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }

.major-match-result-page .major-match-dimension-card {
    min-height: 120px;
    padding: 22px;
    border: 0;
    background: linear-gradient(145deg,#f7f9fc,#eef3f9);
}

.major-match-result-page .major-match-dimension-card > strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border: 1px solid #dce5f2;
    border-radius: 50%;
    background: #fff;
}

.major-match-result-notice--guide {
    position: relative;
    padding: 26px 30px 26px 66px;
    border: 1px solid #dce5ef;
    background: #f5f8fc;
}

.major-match-result-notice--guide::before {
    content: "i";
    position: absolute;
    top: 26px;
    left: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--major-primary);
    color: #fff;
    font: 800 14px/1 serif;
}

.major-match-result-page .major-match-result-actions { margin-top: 2px; }

@media (max-width: 900px) {
    .major-match-major-field-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
    .major-match-result-page .major-match-result-hero {
        min-height: 0;
        padding: 34px 24px;
    }
    .major-match-result-page .major-match-result-hero::before { right: -70px; width: 170px; height: 170px; }
    .major-match-result-page .major-match-result-hero::after { display: none; }
    .major-match-result-page .major-match-result-hero h1 { font-size: 38px; }
    .major-match-result-page .major-match-result-meta { gap: 7px; margin-top: 22px; }
    .major-match-result-page .major-match-result-meta span { min-height: 31px; padding: 0 10px; font-size: 11px; }
    .major-match-result-page .major-match-result-block,
    .major-match-result-page .major-match-top-result { padding: 24px 18px; }
    .major-match-result-page .major-match-section-title { gap: 12px; }
    .major-match-result-page .major-match-section-title h2 { font-size: 21px; }
    .major-match-result-page .major-match-top-copy h2 { font-size: 38px; }
    .major-match-result-page .major-match-fit-badge { display: flex; }
    .major-match-major-field-list,
    .major-match-result-page .major-match-dimension-grid { grid-template-columns: 1fr; }
    .major-match-major-field-item { min-height: 0; }
    .major-match-result-notice--guide { padding: 22px 20px 22px 58px; }
    .major-match-result-notice--guide::before { top: 22px; left: 20px; }
}


/* =========================================================
   Major Match Intro structural styles v4.1
   Restores layout rules that were previously inline.
========================================================= */
.major-match-intro-page {
    background: #fff;
    color: var(--major-ink);
}

.major-match-intro-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: center;
    gap: 44px;
}

.major-match-intro-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.major-match-intro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 21px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.major-match-intro-btn:hover {
    transform: translateY(-1px);
    background: var(--major-primary-deep);
}

.major-match-intro-btn--light:hover {
    background: #f3f5f8;
}

.major-match-intro-beta {
    margin: 17px 0 0;
    font-size: 12px;
    line-height: 1.7;
}

.major-match-intro-visual {
    position: relative;
    min-width: 0;
    min-height: 450px;
}

.major-match-intro-visual-card {
    position: absolute;
    border: 1px solid var(--major-line);
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 46px rgba(20,33,58,.08);
}

.major-match-intro-visual-card--main {
    inset: 42px 20px 40px 50px;
    padding: 32px;
    border-radius: 26px;
}

.major-match-intro-visual-card--main > span {
    color: var(--major-primary);
    font-size: 11px;
    font-weight: 900;
}

.major-match-intro-visual-card--main h2 {
    margin: 11px 0 8px;
    color: var(--major-ink);
    font-size: 34px;
    letter-spacing: -.04em;
}

.major-match-intro-visual-card--main p {
    margin: 0;
    color: var(--major-muted);
    line-height: 1.7;
}

.major-match-intro-score-list {
    display: grid;
    gap: 17px;
    margin-top: 28px;
}

.major-match-intro-score-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 11px;
}

.major-match-intro-score-row span,
.major-match-intro-score-row strong {
    font-size: 12px;
}

.major-match-intro-score-row span {
    color: var(--major-muted);
    font-weight: 800;
}

.major-match-intro-score-row strong {
    color: var(--major-primary);
    text-align: right;
}

.major-match-intro-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf4;
}

.major-match-intro-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.major-match-intro-float {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 118px;
    min-height: 90px;
    padding: 13px;
    border: 1px solid var(--major-line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(20,33,58,.10);
    text-align: center;
}

.major-match-intro-float strong {
    display: block;
    color: var(--major-ink);
    font-size: 15px;
}

.major-match-intro-float span {
    display: block;
    margin-top: 5px;
    color: #8a94a4;
    font-size: 11px;
}

.major-match-intro-float--type {
    top: 0;
    left: 0;
}

.major-match-intro-float--field {
    right: 0;
    bottom: 0;
}

.major-match-section-head {
    max-width: 820px;
    margin-bottom: 32px;
}

.major-match-section-head h2 {
    margin: 13px 0 10px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.25;
    letter-spacing: -.04em;
}

.major-match-section-head p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

.major-match-intro-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.major-match-intro-feature-card {
    min-height: 255px;
    padding: 25px;
    border: 1px solid var(--major-line);
    border-radius: 22px;
    background: #fff;
}

.major-match-intro-feature-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 41px;
    height: 41px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 900;
}

.major-match-intro-feature-card h3 {
    margin: 19px 0 9px;
    color: var(--major-ink);
    font-size: 21px;
    letter-spacing: -.025em;
}

.major-match-intro-feature-card p {
    margin: 0;
    line-height: 1.75;
}

.major-match-intro-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 17px;
}

.major-match-intro-tag-list span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f2f4f8;
    color: #657087;
    font-size: 11px;
    font-weight: 800;
}

.major-match-intro-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.major-match-intro-flow-card {
    position: relative;
    padding: 24px;
    border: 1px solid var(--major-line);
    border-radius: 20px;
    background: #fff;
}

.major-match-intro-flow-card:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -11px;
    z-index: 2;
    transform: translateY(-50%);
    color: #a2aab8;
    font-size: 19px;
    font-weight: 900;
}

.major-match-intro-flow-card h3 {
    margin: 10px 0 7px;
    color: var(--major-ink);
    font-size: 18px;
}

.major-match-intro-flow-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
}

.major-match-intro-report-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
}

.major-match-intro-report-main,
.major-match-intro-report-side {
    border: 1px solid var(--major-line);
    border-radius: 24px;
}

.major-match-intro-report-main {
    padding: 30px;
    background: #fff;
}

.major-match-intro-report-main h3 {
    margin: 11px 0 9px;
    color: var(--major-ink);
    font-size: 27px;
}

.major-match-intro-report-main > p {
    margin: 0;
    color: var(--major-muted);
    line-height: 1.75;
}

.major-match-intro-report-list {
    display: grid;
    gap: 12px;
    margin-top: 23px;
}

.major-match-intro-report-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 15px;
    background: #f6f8fb;
}

.major-match-intro-report-item b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.major-match-intro-report-item strong {
    display: block;
    color: var(--major-ink);
    font-size: 14px;
}

.major-match-intro-report-item p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.65;
}

.major-match-intro-report-side {
    display: grid;
    align-content: center;
    padding: 29px;
}

.major-match-intro-report-side strong {
    font-size: 23px;
    line-height: 1.45;
}

.major-match-intro-report-side p {
    margin: 14px 0 0;
    line-height: 1.75;
}

.major-match-intro-report-side small {
    display: block;
    margin-top: 19px;
    line-height: 1.7;
}

.major-match-intro-faq {
    display: grid;
    gap: 11px;
}

.major-match-intro-faq details {
    border: 1px solid var(--major-line);
    border-radius: 16px;
    background: #fff;
}

.major-match-intro-faq summary {
    padding: 19px 21px;
    color: var(--major-ink);
    font-weight: 900;
    cursor: pointer;
}

.major-match-intro-faq details p {
    margin: 0;
    padding: 0 21px 21px;
    color: var(--major-muted);
    line-height: 1.75;
}

.major-match-intro-cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 40px;
    border: 1px solid var(--major-line);
    border-radius: 27px;
}

.major-match-intro-cta-card h2 {
    margin: 0 0 9px;
    color: var(--major-ink);
    font-size: 31px;
    letter-spacing: -.035em;
}

.major-match-intro-cta-card p {
    margin: 0;
    color: var(--major-muted);
    line-height: 1.75;
}

@media (max-width: 960px) {
    .major-match-intro-hero-grid,
    .major-match-intro-report-grid {
        grid-template-columns: 1fr;
    }

    .major-match-intro-feature-grid {
        grid-template-columns: 1fr;
    }

    .major-match-intro-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .major-match-intro-flow-card::after {
        display: none;
    }
}

@media (max-width: 720px) {
    .major-match-intro-hero-grid {
        display: block;
    }

    .major-match-intro-hero-actions {
        display: grid;
    }

    .major-match-intro-btn {
        width: 100%;
    }

    .major-match-intro-visual {
        min-height: 380px;
        margin-top: 34px;
    }

    .major-match-intro-visual-card--main {
        inset: 34px 0 44px 16px;
        padding: 23px;
    }

    .major-match-intro-float {
        width: 102px;
        min-height: 78px;
    }

    .major-match-intro-flow {
        grid-template-columns: 1fr;
    }

    .major-match-intro-cta-card {
        grid-template-columns: 1fr;
        padding: 27px;
    }
}


/* =========================================================
   v4.2 Secondary CTA text color fix
========================================================= */
.major-match-intro-btn.major-match-intro-btn--light,
.major-match-intro-btn.major-match-intro-btn--light:link,
.major-match-intro-btn.major-match-intro-btn--light:visited {
    border: 1px solid var(--major-line);
    background: #fff;
    color: var(--major-ink) !important;
    box-shadow: none;
}

.major-match-intro-btn.major-match-intro-btn--light:hover,
.major-match-intro-btn.major-match-intro-btn--light:focus {
    background: #f3f5f8;
    color: var(--major-ink) !important;
}
