/* ==========================================================================
   Mentor Resume Tutor — Ensign College Career Services
   Mobile-first, accessible, ESL-inclusive design.
   Ensign Career Coach shared tokens and responsive layout.
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy:         var(--surface-sunken);
    --navy-light:   var(--surface);
    --gold:         var(--brand);
    --gold-light:   var(--brand-tint, #e6f0ec);
    --accent-gold:  #FDB515; /* ENSIGN wordmark only — do not use elsewhere */
    --white:        #ffffff;
    --gray-50:      var(--surface-sunken);
    --gray-100:     var(--border);
    --gray-200:     var(--border);
    --gray-600:     var(--ink-muted);
    --gray-800:     var(--ink);
    --green:        var(--brand);
    --green-light:  var(--brand-tint, #e6f0ec);
    --yellow:       var(--brand);
    --yellow-light: var(--surface-sunken);
    --red:          var(--danger-text);
    --red-light:    #ffebee;
    --radius:       var(--radius-md);
    /* --radius-lg already provided by ECC base; local override removed */
    --shadow:       var(--shadow-card);
    --shadow-lg:    var(--shadow-card);
    --transition:   0.2s ease;
    --font:         "Montserrat", system-ui, sans-serif;
    --tap-target:   44px;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--surface-sunken);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--brand);
    color: #ffffff;
    padding: 12px 24px;
    z-index: 1000;
    font-size: 1.0625rem;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
    top: 0;
}

/* --- Header --- */
.tutor-header {
    background: var(--surface);
    color: var(--ink);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    min-width: 0;
}
.header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}
.header-home {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}
.header-logo {
    background: var(--brand);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.header-title-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.header-title {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.header-app-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-version {
    font-size: 1.0625rem;
    font-weight: 700;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    color: var(--ink-muted);
    background: var(--brand-tint, #e6f0ec);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 1px 7px;
    vertical-align: middle;
}
.nav-link {
    color: var(--ink-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    min-height: var(--tap-target);
    display: inline-flex;
    align-items: center;
    transition: background var(--transition);
}
.nav-link:hover, .nav-link:focus {
    background: var(--surface-sunken);
    color: var(--ink);
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.nav-active {
    color: var(--brand);
    font-weight: 600;
}

/* --- Progress Stepper --- */
.stepper-container {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    overflow-x: auto;
}
.stepper {
    display: flex;
    list-style: none;
    max-width: 960px;
    margin: 0 auto;
    gap: 4px;
}
.stepper-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.0625rem;
    white-space: nowrap;
    color: var(--ink-muted);
    padding: 6px 10px;
    border-radius: 20px;
    transition: all var(--transition);
}
.stepper-step.completed {
    color: var(--brand);
    background: var(--brand-tint, #e6f0ec);
}
.stepper-step.current {
    color: var(--ink);
    background: var(--brand-tint, #e6f0ec);
    font-weight: 600;
}
.stepper-step .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0625rem;
    font-weight: 700;
    background: var(--surface-sunken);
    color: var(--ink-muted);
    flex-shrink: 0;
}
.stepper-step.completed .step-num {
    background: var(--brand);
    color: #ffffff;
}
.stepper-step.current .step-num {
    background: var(--brand);
    color: #ffffff;
}
.stepper-btn {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-align: left;
    text-decoration: none;
    border-radius: 20px;
}
.stepper-step.clickable {
    cursor: pointer;
}
.stepper-step.clickable:hover {
    background: var(--surface-sunken);
    transform: translateY(-1px);
}
.stepper-step.clickable.completed:hover {
    background: var(--brand-tint, #e6f0ec);
}
.stepper-step.clickable.current:hover {
    background: var(--brand-tint, #e6f0ec);
}

/* --- Main --- */
.tutor-main {
    flex: 1;
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px;
    min-width: 0;
}

/* --- Screens --- */
.screen {
    display: none;
}
.screen.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
.screen-header-nav {
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-start;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Cards --- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
}
.card h1 {
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.3;
}
.card h2 {
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.3;
}
.card h3 {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 8px;
}
.card p {
    margin-bottom: 12px;
}
.card-success {
    border-left: 4px solid var(--brand);
}

/* --- Forms --- */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
}
.form-group small {
    display: block;
    color: var(--ink-muted);
    margin-top: 4px;
    font-size: 1.0625rem;
}
.optional {
    font-weight: 400;
    color: var(--ink-muted);
    font-size: 1.0625rem;
}
input[type="text"],
textarea,
select {
    width: 100%;
    padding: 12px;
    background: var(--input-fill);
    border: 2px solid var(--input-border);
    border-radius: var(--radius-md);
    font-size: var(--text-body);
    font-family: var(--font);
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition);
    min-height: var(--tap-target);
}

textarea {
    border-radius: var(--radius-lg);
}
input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    background: var(--surface);
    border-color: var(--input-border);
    box-shadow: var(--shadow-focus);
}

/* --- Radio Cards --- */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.radio-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--input-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    min-height: var(--tap-target);
}
.radio-card:hover {
    border-color: var(--brand);
    background: var(--surface-sunken);
}
.radio-card input[type="radio"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.radio-card input[type="radio"]:checked + .radio-content {
    color: var(--ink);
}
.radio-card:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-tint, #e6f0ec);
}
.radio-content strong {
    display: block;
    margin-bottom: 2px;
}
.radio-content small {
    color: var(--ink-muted);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.0625rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    min-height: var(--tap-target);
    min-width: var(--tap-target);
    transition: all var(--transition);
    text-decoration: none;
    gap: 8px;
}
.btn-primary {
    background: var(--brand);
    color: #ffffff;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--brand-hover);
    box-shadow: var(--shadow-card);
}
.btn-primary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.btn-secondary {
    background: var(--surface);
    color: var(--brand);
    border: 2px solid var(--border-strong);
}
.btn-secondary:hover, .btn-secondary:focus {
    background: var(--surface-sunken);
}
.btn-secondary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.btn-small {
    padding: 8px 16px;
    font-size: 1.0625rem;
}
.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* --- MCQ Options --- */
.mcq-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}
.mcq-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--input-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    min-height: var(--tap-target);
    background: var(--surface);
}
.mcq-option:hover {
    border-color: var(--brand);
    background: var(--surface-sunken);
}
.mcq-option.selected {
    border-color: var(--brand);
    background: var(--brand-tint, #e6f0ec);
}
.mcq-option.correct {
    border-color: var(--brand);
    background: var(--brand-tint, #e6f0ec);
}
.mcq-option.incorrect {
    border-color: var(--danger-text);
    background: #ffebee;
}

/* --- Feedback Blocks --- */
.feedback-block {
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    border-left: 4px solid;
}
.feedback-correct {
    background: var(--brand-tint, #e6f0ec);
    border-color: var(--brand);
    color: var(--brand);
}
.feedback-incorrect {
    background: #ffebee;
    border-color: var(--danger-text);
    color: var(--ink);
}
.feedback-info {
    background: var(--surface-sunken);
    border-color: var(--border-strong);
    color: var(--ink);
}

/* --- Glossary --- */
.glossary-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    margin-top: 16px;
}
.glossary-panel h3 {
    color: var(--brand);
    margin-bottom: 12px;
}
.glossary-panel dt {
    font-weight: 700;
    color: var(--ink);
    margin-top: 10px;
}
.glossary-panel dd {
    margin-left: 0;
    color: var(--ink-muted);
    padding-left: 16px;
    border-left: 2px solid var(--border);
    margin-bottom: 8px;
}
.glossary-toggle {
    font-size: 1.0625rem;
    color: var(--brand);
    background: none;
    border: 2px solid var(--border-strong);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    min-height: var(--tap-target);
    transition: all var(--transition);
}
.glossary-toggle:hover {
    background: var(--brand);
    color: #ffffff;
}

/* --- Example Block --- */
.example-block {
    background: var(--surface-sunken);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
}
.example-label {
    font-weight: 700;
    color: var(--brand);
    font-size: 1.0625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}
.example-block pre {
    white-space: pre-wrap;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* --- Upload Area --- */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: all var(--transition);
    margin: 16px 0;
}
.upload-area:hover {
    border-color: var(--brand);
    background: var(--surface-sunken);
}
.upload-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.upload-icon {
    font-size: 2rem;
}
.upload-label input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.upload-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px;
}
.upload-complete-icon {
    font-size: 2.2rem;
    line-height: 1;
}
.upload-complete-details {
    text-align: center;
}
.upload-complete-details strong {
    display: block;
    color: var(--brand);
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.upload-filename {
    font-size: 1.0625rem;
    color: var(--ink-muted);
    word-break: break-all;
    margin-bottom: 8px;
}

/* --- Inventory --- */
.inventory-display {
    background: var(--surface-sunken);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 16px;
}
.inventory-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.inventory-item:last-child {
    border-bottom: none;
}
.inventory-label {
    font-weight: 600;
    color: var(--ink);
    min-width: 80px;
}

/* --- Checklist --- */
.checklist {
    list-style: none;
    margin: 16px 0;
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.checklist-item:last-child {
    border-bottom: none;
}
.checklist-status {
    flex-shrink: 0;
    font-size: 1.2rem;
}
.checklist-match { color: var(--brand); }
.checklist-gap { color: var(--danger-text); }

/* --- Template Section --- */
.template-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.template-section textarea {
    font-size: var(--text-body);
    line-height: 1.6;
    margin-bottom: 8px;
}
.copy-btn {
    font-size: 1.0625rem;
    min-height: var(--tap-target);
}

/* --- Power Statement steps --- */
.power-step {
    margin-bottom: 20px;
}
.power-step .sentence-frame {
    background: var(--brand-tint, #e6f0ec);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-style: italic;
    margin: 8px 0;
}
.power-step .hint {
    color: var(--ink-muted);
    font-size: 1.0625rem;
    margin-top: 4px;
}
.example-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.chip {
    background: var(--surface-sunken);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 1.0625rem;
    cursor: pointer;
    min-height: var(--tap-target);
    display: inline-flex;
    align-items: center;
    transition: all var(--transition);
}
.chip:hover {
    background: var(--brand-tint, #e6f0ec);
    border-color: var(--brand);
}

/* --- Subtle text --- */
.subtle {
    color: var(--ink-muted);
    font-size: 1.0625rem;
}

/* --- Rubric Checklist --- */
.rubric-section {
    margin-bottom: 20px;
}
.rubric-section h4 {
    color: var(--ink);
    margin-bottom: 8px;
}
.rubric-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    min-height: var(--tap-target);
}
.rubric-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --- Mentor Summary --- */
.summary-section {
    margin-bottom: 20px;
}
.summary-section h3 {
    color: var(--ink);
    border-bottom: 2px solid var(--border);
    padding-bottom: 6px;
    margin-bottom: 12px;
}
.mastery-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}
.mastery-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}
.mastery-mastered { color: var(--brand); }
.mastery-attempted { color: var(--ink-muted); }
.mastery-notstarted { color: var(--ink-muted); }

/* --- Encouragement Banners --- */
.encouragement-banner {
    background: var(--brand-tint, #e6f0ec);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 18px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.encouragement-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}
.encouragement-banner strong {
    display: block;
    color: var(--ink);
    font-size: 1.0625rem;
    margin-bottom: 4px;
}
.encouragement-banner p {
    margin: 0;
    color: var(--ink);
    font-size: 1.0625rem;
    line-height: 1.5;
}

.encouragement-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 20px;
}
.encouragement-badge {
    display: inline-block;
    background: var(--brand-tint, #e6f0ec);
    color: var(--ink);
    font-weight: 700;
    font-size: 1.0625rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.encouragement-card h3 {
    color: var(--ink);
    margin-bottom: 6px;
    font-size: 1.15rem;
}
.encouragement-card p {
    margin: 0;
    color: var(--ink);
    font-size: 1.0625rem;
    line-height: 1.5;
}

/* --- VMock Launch Banner --- */
.vmock-launch-banner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: var(--shadow-card);
}
.vmock-launch-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.vmock-logo-badge {
    background: var(--brand);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vmock-launch-info strong {
    font-size: 1.0625rem;
    color: var(--ink);
    display: block;
    margin-bottom: 2px;
}
.vmock-launch-btn {
    text-decoration: none;
    font-weight: 700;
    padding: 10px 20px;
    white-space: nowrap;
    min-height: var(--tap-target);
}

/* --- Footer --- */
.tutor-footer {
    background: var(--surface);
    color: var(--ink-muted);
    text-align: center;
    padding: 16px;
    font-size: 1.0625rem;
    margin-top: auto;
    border-top: 1px solid var(--border);
}
.tutor-footer p {
    margin-bottom: 4px;
}

/* --- Loading --- */
.loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-muted);
}
.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Band colors --- */
.band-green { color: var(--brand); font-weight: 700; }
.band-yellow { color: var(--ink-muted); font-weight: 700; }
.band-red { color: var(--danger-text); font-weight: 700; }

/* --- Responsive --- */
@media (min-width: 640px) {
    .radio-group {
        flex-direction: row;
    }
    .radio-card {
        flex: 1;
    }
    .stepper-step {
        font-size: 1.0625rem;
    }
}

@media (min-width: 960px) {
    .tutor-main {
        padding: 32px 24px;
    }
    .card {
        padding: 32px;
    }
}

/* --- Focus visible for keyboard nav --- */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Print --- */
@media print {
    .tutor-header, .stepper-container, .tutor-footer, .btn, .glossary-toggle {
        display: none !important;
    }
    .screen { display: block !important; }
    .card { box-shadow: none; border: 1px solid var(--border); page-break-inside: avoid; }
}

/* --- Employer priorities: quiz stepper and coverage panel --- */
.quiz-stepper {
    /* Sits under the single practice item; a top rule separates it without nesting a card. */
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}
.quiz-stepper h3 { font-size: 21px; margin-bottom: 8px; }
.quiz-count { font-size: 17px; color: var(--gray-600); margin-bottom: 4px; }
.draft-signals { font-size: 17px; margin-top: 8px; }
.coverage-panel { margin-top: 24px; }
.coverage-panel textarea { width: 100%; min-height: 44px; font-size: 17px; }
.coverage-help { font-size: 17px; color: var(--gray-600); }
.coverage-result:empty { display: none; }
/* ECC runtime-audit fixes (tutor.html). Stepper wraps instead of running off the right edge on narrow screens.
   Radio inputs own a 44px hit area and draw their own ring so the visible dot stays 20px. */
.stepper { flex-wrap: wrap; }
.stepper-step { white-space: normal; }
.radio-card input[type="radio"] {
    appearance: none; -webkit-appearance: none; width: 44px; height: 44px; margin: -12px -12px -12px -12px; cursor: pointer;
    background: radial-gradient(circle, var(--surface, #fff) 0 8px, var(--input-border) 9px 10px, transparent 11px);
}
.radio-card input[type="radio"]:checked {
    background: radial-gradient(circle, var(--brand) 0 5px, var(--surface, #fff) 6px 8px, var(--brand) 9px 10px, transparent 11px);
}
.radio-card input[type="radio"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 50%; }
/* ECC: form controls do not inherit font by default, so they rendered in Arial */
button, input, select, textarea { font-family: inherit; }
/* Tutor uses the full ECC canvas and preserves readable state at every width. */
body { font-size: var(--text-body, 19px); }
.tutor-header, .stepper-container { padding-inline: var(--gutter); }
.header-inner, .stepper, .tutor-main { max-width: none; width: 100%; min-width: 0; }
.tutor-main { padding: 24px var(--gutter); }
.header-version { font-family: inherit; }
.card, .screen, .header-home, .header-title-group, .mastery-item > span { min-width: 0; }
.stepper-step { flex: 0 1 auto; }
.stepper-btn { min-height: 44px; min-width: 44px; white-space: normal; }
.btn, summary { min-height: 44px; min-width: 44px; }
.btn { white-space: normal; }
summary { cursor: pointer; padding: 8px 0; }
pre, .example-block, .upload-filename, .mastery-item { overflow-wrap: anywhere; white-space: normal; }
textarea, input:not([type="radio"]), select { max-width: 100%; width: 100%; }
.upload-label input[type="file"] { position: static; width: 100%; height: auto; min-height: 44px; clip: auto; overflow: visible; }
.upload-label { width: 100%; }
.tutor-actions, .quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.mcq-option.mcq-selected, .mcq-option[aria-selected="true"] { border-color: var(--brand); background: var(--brand-tint); color: var(--ink); box-shadow: inset 4px 0 var(--brand); }
.mcq-option.mcq-correct { border-color: var(--brand); background: var(--brand-tint); }
.mcq-option.mcq-correct::after { content: 'Correct answer'; display: block; font-weight: 700; color: var(--brand); }
.mcq-option.mcq-incorrect { border-color: var(--danger-text); background: var(--danger-bg, #fef2f2); }
.mcq-option.mcq-incorrect::after { content: 'Your answer needs another try'; display: block; font-weight: 700; color: var(--danger-text); }
.mcq-option:disabled { opacity: 1; color: var(--ink); }
.inline-glossary, .inline-definitions { margin-block: 20px; }
.inline-glossary dd, .inline-definitions dd { margin: 4px 0 12px; }
.mastery-incomplete { color: var(--danger-text); border-left: 4px solid var(--danger-text); padding-left: 12px; }
.mastery-incomplete .mastery-icon { color: var(--danger-text); }
.mastery-item { flex-wrap: wrap; align-items: center; gap: 12px; }
.topic-id { display: block; color: var(--ink-muted); }
#sar-planner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.sar-field { min-width: 0; border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 14px; }
.sar-field:focus-within, .sar-field.is-complete { border-color: var(--brand); }
.sar-field:focus-within { box-shadow: var(--shadow-focus); }
.sar-field label { font-weight: 700; }
.sar-status { min-height: 31px; color: var(--ink-muted); }
.sar-field.is-complete .sar-status { color: var(--brand); font-weight: 600; }
@media (max-width: 899px) { #sar-planner { grid-template-columns: minmax(0, 1fr); } .card { padding: 16px; } .btn-group > .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) { .sar-field, .mcq-option, .mastery-incomplete { border-color: ButtonText; } :focus-visible { outline-color: Highlight; } .mcq-option[aria-selected="true"] { outline: 2px solid Highlight; } }
@media print { .screen { display: none !important; } #handoff-screen { display: block !important; } .tutor-actions, .screen-header-nav, #reviewer-designation { display: none !important; } textarea { min-height: 160px; } }

.mcq-option.correct::after { content: 'Correct answer'; display: block; font-weight: 700; color: var(--brand); }
.mcq-option.incorrect::after { content: 'Your answer needs another try'; display: block; font-weight: 700; color: var(--danger-text); }

.topic-id { font-size: 17px; }

small { font-size: 17px; }
.mcq-option { font-size: var(--text-body, 19px); font-family: inherit; }
