/* Eudicles 7.5.31 — Identitat visual de les sales de l'alumnat.
   Només afecta /examen (body.student-page); no toca el docent ni els
   reproductors Manim, ni lògica d'avaluació o controls de supervisió. */
body.student-page {
    --bg: #fbf9f4;
    --card: #fffefa;
    --text: #112d4b;
    --muted: #5b6b7e;
    --line: #e7e6e0;
    --primary: #112d4b;
    --primary-dark: #0b223a;
    --ok: #315b45;
    --ok-bg: #edf4ed;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}
.student-page .ea-room-brand-bar {
    background: #fffefa;
    border-bottom: 1px solid #e7e6e0;
}
.student-page .ea-room-brand-inner {
    width: min(1160px, calc(100% - 44px));
    min-height: 75px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.student-page .ea-room-symbol { display: inline-flex; color: #b37a28; width: 39px; height: 39px; flex: none; }
.student-page .ea-room-symbol svg { width: 100%; height: 100%; }
.student-page .ea-room-brand-name { display: grid; gap: 2px; min-width: 0; }
.student-page .ea-room-brand-name strong {
    font: normal 21px/1.12 Georgia, "Times New Roman", serif;
    letter-spacing: .1em;
}
.student-page .ea-room-brand-name small {
    color: #6c7988; font-size: 9px; font-weight: 730; letter-spacing: .17em;
}
.student-page .shell {
    margin: 40px auto 64px;
    width: min(1160px, calc(100% - 44px));
}
.student-page .card,
.student-page .modal-box,
.student-page .warning-box {
    border: 1px solid var(--line);
    background: #fffefd;
    border-radius: 13px;
    box-shadow: 0 12px 35px rgba(17, 45, 75, .045);
}
.student-page .card { padding: clamp(20px, 3vw, 32px); }
.student-page .narrow { margin: clamp(20px, 5vh, 50px) auto 0; }
.student-page h1,
.student-page .section-heading h2,
.student-page .modal-box h2,
.student-page .warning-box h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    letter-spacing: -.025em;
    line-height: 1.2;
}
.student-page h1 { font-size: clamp(29px, 4vw, 42px); }
.student-page .eyebrow {
    color: #9b691f;
    font-size: 11px;
    letter-spacing: .16em;
    font-weight: 800;
}
.student-page button, .student-page .button-link {
    border-radius: 7px;
    transition: background-color .15s ease, border-color .15s ease;
}
.student-page .primary { background: #112d4b; color: #fff; }
.student-page .primary:hover { background: #0b223a; }
.student-page .secondary, .student-page .button-link.secondary {
    background: #f7f5ee; border: 1px solid #dfdfd6; color: #112d4b;
}
.student-page .secondary:hover, .student-page .button-link.secondary:hover { background: #eeece4; }
.student-page .danger { background: #b42318; color: #fff; }
.student-page .danger:hover { background: #912018; }
.student-page :is(button, input, textarea, select, a):focus-visible {
    outline: 3px solid #b37a28;
    outline-offset: 3px;
}
.student-page input:focus, .student-page textarea:focus {
    border-color: #a77a3a;
    box-shadow: 0 0 0 3px rgba(179, 122, 40, .15);
}
.student-page .notice {
    background: #faf6ee;
    border: 1px solid #e9dfce;
    color: #40556b;
    border-radius: 9px;
}
.student-page .exam-header { align-items: flex-start; }
.student-page .exam-header h1 { margin: 7px 0; }
.student-page .timer-box { background: #112d4b; color: #fff; border-radius: 9px; }
.student-page .progress-bar, .student-page .q-dot { background: #e7ebee; }
.student-page .progress-bar > div { background: #658e6e; }
.student-page .q-dot.answered { background: #d8e8d9; color: #315b45; }
.student-page .q-dot.current {
    color: #fff; background: #112d4b; outline: 3px solid rgba(179, 122, 40, .28);
}
.student-page .question-number { color: #9b691f; }
.student-page .question-card { min-height: 300px; }
.student-page .option { background: #fff; border-color: #e1e4e3; }
.student-page .option:hover { background: #fbfaf7; }
.student-page .option:has(input:checked) { background: #eff5ef; border-color: #96b59d; }
.student-page .score-box { background: #fbfaf7; }
/* Preservem els avisos de supervisió, els errors i l'entrega com a avisos de risc.
   La capa d'incidència manté el vermell original, sense navegació nova. */
@media (max-width: 700px) {
    .student-page .shell { margin-top: 22px; width: calc(100% - 28px); }
    .student-page .ea-room-brand-inner { min-height: 68px; width: calc(100% - 28px); }
    .student-page .ea-room-brand-name strong { font-size: 19px; }
    .student-page .card { padding: 20px 16px; }
    .student-page .exam-header { gap: 12px; }
    .student-page .timer-box { min-width: 145px; }
    .student-page .exam-nav { gap: 9px; }
    .student-page .modal-box, .student-page .warning-box { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .student-page button, .student-page .button-link { transition: none; }
}
