/* ============================================================
   QUIZ STYLES — Coastal Editorial
   Inherits palette + typography from academy.css.
   ============================================================ */

.progress-container {
    background: var(--cream-deep);
    border: none;
    border-left: 4px solid var(--apricot);
    border-radius: 0;
    padding: 18px 22px;
    margin-bottom: 36px;
    box-shadow: 4px 4px 0 var(--cream-shadow);
}
.progress-bar {
    height: 6px;
    background: var(--cream);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--line);
}
.progress-fill {
    height: 100%;
    background: var(--apricot);
    width: 0%;
    transition: width 0.4s ease;
}
.progress-text {
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14, "SOFT" 0";
    font-size: 0.78em;
    margin-top: 10px;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.question {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 28px 32px;
    margin-bottom: 22px;
    box-shadow: 5px 5px 0 var(--cream-deep);
    position: relative;
}
.question::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--apricot);
    opacity: 0;
    transition: opacity 0.2s;
}
.question:focus-within::before { opacity: 1; }

.question .qnum {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14, "SOFT" 0";
    color: var(--apricot-deep);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.78em;
    font-weight: 600;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.question .qtext {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 24, "SOFT" 30, "WONK" 0";
    color: var(--ink);
    font-size: 1.4em;
    line-height: 1.3;
    margin-bottom: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.options {
    list-style: none !important;
    margin: 0;
    padding: 0;
}
.options li {
    margin-bottom: 10px;
    padding-left: 0;
}
.options li::before { content: none !important; }
.options label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.18s;
    color: var(--ink);
    font-size: 1.02em;
    line-height: 1.5;
}
.options label:hover {
    border-color: var(--apricot);
    background: var(--paper-tint);
}
.options input[type="radio"] {
    accent-color: var(--apricot);
    margin-top: 5px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}
.options label.correct {
    border-color: var(--sage);
    background: #E5EDE7;
    color: var(--ink);
}
.options label.incorrect {
    border-color: var(--rust);
    background: #F5DDCB;
    color: var(--ink);
}
.options label.correct::after {
    content: "✓ correct";
    color: var(--sage);
    margin-left: auto;
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14, "SOFT" 0";
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    flex-shrink: 0;
}
.options label.incorrect::after {
    content: "✗ incorrect";
    color: var(--rust);
    margin-left: auto;
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14, "SOFT" 0";
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.explanation {
    display: none;
    background: var(--cream-deep);
    border-left: 3px solid var(--apricot);
    padding: 14px 18px;
    margin-top: 16px;
    border-radius: 0;
    color: var(--ink-soft);
    font-size: 0.96em;
    font-style: italic;
}
.explanation.shown { display: block; }
.explanation .label {
    color: var(--apricot-deep);
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14, "SOFT" 0";
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7em;
    letter-spacing: 3px;
    margin-bottom: 5px;
    display: block;
    font-style: normal;
}

.quiz-actions {
    text-align: center;
    margin: 48px 0;
}
.btn-submit {
    background: var(--ink);
    color: var(--cream);
    border: none;
    padding: 16px 40px;
    border-radius: 0;
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14, "SOFT" 0";
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.2s;
    box-shadow: 4px 4px 0 var(--apricot);
}
.btn-submit:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--apricot-glow);
}
.btn-submit:disabled {
    background: var(--line);
    color: var(--ink-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.btn-retake {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 14px 28px;
    border-radius: 0;
    margin-left: 14px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-retake:hover {
    background: var(--ink);
    color: var(--cream);
}

.results {
    display: none;
    background: var(--cream-deep);
    border: none;
    border-top: 4px solid var(--apricot);
    border-bottom: 4px solid var(--apricot);
    border-radius: 0;
    padding: 44px 32px;
    text-align: center;
    margin-bottom: 36px;
}
.results.shown { display: block; }
.results .score-headline {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1";
    font-size: 5.5em;
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}
.results .score-label {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 14, "SOFT" 0";
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.78em;
    font-weight: 600;
    margin-bottom: 18px;
}
.results .verdict {
    color: var(--ink);
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.2em;
    max-width: 56ch;
    margin: 16px auto 0;
}
.score-pass { color: var(--sage); }
.score-mid  { color: var(--gold); }
.score-fail { color: var(--rust); }
