/**
 * IELTS LMS — Public Academic Entry Overrides
 * Standardizes module launcher-adjacent instruction surfaces with
 * calmer typography, spacing, and card rhythm.
 */

.ielts-final-wrapper[data-module],
.ielts-final-wrapper.speaking-mode {
    --ielts-entry-font-body: var(--ielts-lms-font-sans, "Inter", "Segoe UI", sans-serif);
    --ielts-entry-ink: #11253f;
    --ielts-entry-copy: #2b3d52;
    --ielts-entry-muted: #5b6776;
    --ielts-entry-border: rgba(155, 125, 83, 0.2);
    --ielts-entry-soft: #f7f2e8;
    --ielts-entry-paper: #fcfaf5;
    --ielts-entry-accent: #9b7d53;
    --ielts-entry-accent-deep: #7a5e39;
}

.ielts-final-wrapper[data-module] .ielts-prestart-layout,
.ielts-final-wrapper.speaking-mode .ielts-prestart-layout {
    gap: clamp(28px, 4vw, 60px);
    padding: 30px 24px 34px;
}

.ielts-final-wrapper[data-module] .ielts-prestart-layout--mock,
.ielts-final-wrapper.speaking-mode .ielts-prestart-layout--mock {
    border-radius: 20px;
    border-color: var(--ielts-entry-border);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #fffdfa 0%, #f8f4eb 100%);
}

.ielts-final-wrapper[data-module] .ielts-prestart-layout--mock .ielts-prestart-left,
.ielts-final-wrapper.speaking-mode .ielts-prestart-layout--mock .ielts-prestart-left {
    padding: 38px 38px 40px;
}

.ielts-final-wrapper[data-module] .ielts-prestart-mock-card-top,
.ielts-final-wrapper.speaking-mode .ielts-prestart-mock-card-top {
    padding: 20px 22px 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.94);
}

.ielts-final-wrapper[data-module] .ielts-prestart-heading,
.ielts-final-wrapper.speaking-mode .ielts-prestart-heading {
    gap: 12px;
    margin-bottom: 32px;
}

.ielts-final-wrapper[data-module] .ielts-prestart-title,
.ielts-final-wrapper.speaking-mode .ielts-prestart-title {
    font-family: var(--ielts-entry-font-body);
    font-size: clamp(2rem, 3vw, 2.55rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 700;
    color: var(--ielts-entry-ink);
}

.ielts-final-wrapper[data-module] .ielts-prestart-subtitle,
.ielts-final-wrapper.speaking-mode .ielts-prestart-subtitle,
.ielts-final-wrapper.speaking-mode .ielts-module-intro {
    font-family: var(--ielts-entry-font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ielts-entry-muted);
    max-width: 46rem;
}

.ielts-final-wrapper[data-module] .ielts-instruction-section,
.ielts-final-wrapper.speaking-mode .ielts-instruction-section {
    background: linear-gradient(180deg, var(--ielts-entry-paper) 0%, var(--ielts-entry-soft) 100%);
    border: 1px solid var(--ielts-entry-border);
    border-left: 4px solid var(--ielts-entry-accent);
    border-radius: 18px;
    padding: 30px 32px 28px;
    margin-bottom: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ielts-final-wrapper[data-module] .ielts-prestart-layout--mock .ielts-instruction-section,
.ielts-final-wrapper.speaking-mode .ielts-prestart-layout--mock .ielts-instruction-section {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    border-left: 0;
    padding: 0;
}

.ielts-final-wrapper[data-module] .ielts-instruction-section h3,
.ielts-final-wrapper.speaking-mode .ielts-instruction-section h3 {
    margin: 0 0 16px;
    font-family: var(--ielts-entry-font-body);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ielts-entry-accent-deep);
}

.ielts-final-wrapper[data-module] .ielts-instruction-section ul,
.ielts-final-wrapper.speaking-mode .ielts-instruction-section ul {
    margin: 0;
    padding-left: 22px;
    color: var(--ielts-entry-copy);
}

.ielts-final-wrapper[data-module] .ielts-instruction-section li,
.ielts-final-wrapper.speaking-mode .ielts-instruction-section li {
    margin-bottom: 14px;
    font-size: 1rem;
    line-height: 1.9;
}

.ielts-final-wrapper[data-module] .ielts-instruction-section strong,
.ielts-final-wrapper.speaking-mode .ielts-instruction-section strong {
    color: var(--ielts-entry-ink);
}

.ielts-final-wrapper[data-module] .ielts-prestart-right,
.ielts-final-wrapper.speaking-mode .ielts-prestart-right {
    max-width: 390px;
}

.ielts-final-wrapper[data-module] .ielts-candidate-card,
.ielts-final-wrapper.speaking-mode .ielts-candidate-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
    border: 1px solid var(--ielts-entry-border);
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    padding: 34px 32px;
}

.ielts-final-wrapper[data-module] .ielts-candidate-card h3,
.ielts-final-wrapper.speaking-mode .ielts-candidate-card h3 {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    font-family: var(--ielts-entry-font-body);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--ielts-entry-ink);
}

.ielts-final-wrapper[data-module] .ielts-candidate-fields label,
.ielts-final-wrapper.speaking-mode .ielts-candidate-fields label {
    margin-bottom: 20px;
}

.ielts-final-wrapper[data-module] .ielts-field-label,
.ielts-final-wrapper.speaking-mode .ielts-field-label {
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--ielts-entry-accent-deep);
}

.ielts-final-wrapper[data-module] .ielts-candidate-name,
.ielts-final-wrapper[data-module] .ielts-candidate-id,
.ielts-final-wrapper[data-module] .ielts-prestart-screen .ielts-timer-select,
.ielts-final-wrapper.speaking-mode .ielts-candidate-name,
.ielts-final-wrapper.speaking-mode .ielts-candidate-id,
.ielts-final-wrapper.speaking-mode .ielts-prestart-screen .ielts-timer-select {
    height: 50px;
    padding: 13px 15px;
    border-radius: 12px;
    border-color: rgba(148, 163, 184, 0.42);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    font-family: var(--ielts-entry-font-body);
    font-size: 0.95rem;
    color: var(--ielts-entry-copy);
}

.ielts-final-wrapper[data-module] .ielts-candidate-error,
.ielts-final-wrapper.speaking-mode .ielts-candidate-error,
.ielts-final-wrapper.speaking-mode #mic-error-message {
    font-size: 0.88rem;
    line-height: 1.6;
}

.ielts-final-wrapper[data-module] .ielts-prestart-screen .ielts-start-button,
.ielts-final-wrapper.speaking-mode .ielts-prestart-screen .ielts-start-button,
.ielts-final-wrapper.speaking-mode .ielts-prestart-actions .ielts-module-btn {
    min-height: 50px;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: var(--ielts-entry-font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ielts-final-wrapper[data-module] .ielts-prestart-mock-callout,
.ielts-final-wrapper.speaking-mode .ielts-prestart-mock-callout {
    margin-bottom: 20px;
    font-size: 0.94rem;
    line-height: 1.7;
}

.ielts-final-wrapper[data-module] .ielts-prestart-support,
.ielts-final-wrapper.speaking-mode .ielts-prestart-support {
    margin-top: 20px;
    max-width: 300px;
    font-size: 0.78rem;
    line-height: 1.75;
    font-style: normal;
    color: #7b8794;
}

@media (max-width: 900px) {
    .ielts-final-wrapper[data-module] .ielts-prestart-layout,
    .ielts-final-wrapper.speaking-mode .ielts-prestart-layout {
        gap: 24px;
    }

    .ielts-final-wrapper[data-module] .ielts-prestart-right,
    .ielts-final-wrapper.speaking-mode .ielts-prestart-right {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .ielts-final-wrapper[data-module] .ielts-prestart-layout,
    .ielts-final-wrapper.speaking-mode .ielts-prestart-layout {
        padding: 18px 0 12px;
    }

    .ielts-final-wrapper[data-module] .ielts-prestart-layout--mock .ielts-prestart-left,
    .ielts-final-wrapper.speaking-mode .ielts-prestart-layout--mock .ielts-prestart-left {
        padding: 30px 24px 32px;
    }

    .ielts-final-wrapper[data-module] .ielts-prestart-title,
    .ielts-final-wrapper.speaking-mode .ielts-prestart-title {
        font-size: clamp(1.82rem, 7vw, 2.3rem);
    }

    .ielts-final-wrapper[data-module] .ielts-prestart-subtitle,
    .ielts-final-wrapper.speaking-mode .ielts-prestart-subtitle,
    .ielts-final-wrapper.speaking-mode .ielts-module-intro {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .ielts-final-wrapper[data-module] .ielts-instruction-section,
    .ielts-final-wrapper.speaking-mode .ielts-instruction-section,
    .ielts-final-wrapper[data-module] .ielts-candidate-card,
    .ielts-final-wrapper.speaking-mode .ielts-candidate-card {
        padding: 26px 22px;
    }

    .ielts-final-wrapper[data-module] .ielts-instruction-section li,
    .ielts-final-wrapper.speaking-mode .ielts-instruction-section li {
        font-size: 0.95rem;
        line-height: 1.8;
    }
}