/* EUDICLES 7.5.1 · L'entrada pública de l'alumnat, independent de l'entorn d'examen.
   Estils encapsulats per no alterar el mode supervisat ni l'espai docent. */
:root { color-scheme: light; }
.eud-alumnat {
    --ea-navy: #112d4b;
    --ea-navy-dark: #0b223a;
    --ea-gold: #b37a28;
    --ea-cream: #fbf9f4;
    --ea-muted: #5b6b7e;
    --ea-border: #e7e6e0;
    --ea-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--ea-cream);
    color: var(--ea-navy);
    margin: 0;
    min-height: 100vh;
    font-family: var(--ea-font);
    line-height: 1.55;
}
.eud-alumnat *, .eud-alumnat *::before, .eud-alumnat *::after { box-sizing: border-box; }
.eud-alumnat a { color: inherit; text-decoration: none; }
.eud-alumnat a:focus-visible { outline: 3px solid #b37a28; outline-offset: 4px; }
.eud-alumnat h1, .eud-alumnat h2, .eud-alumnat h3, .eud-alumnat p { margin: 0; }
.ea-site { min-height: 100vh; display: flex; flex-direction: column; }
.ea-container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.ea-header { background: #fffefa; border-bottom: 1px solid var(--ea-border); }
.ea-header-content { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.ea-brand { display: inline-flex; gap: 13px; align-items: center; min-width: 0; }
.ea-symbol { color: #b37a28; width: 42px; height: 42px; display: flex; flex: none; }
.ea-symbol svg { width: 100%; height: 100%; }
.ea-brand-text { display: flex; flex-direction: column; gap: 2px; }
.ea-brand-text strong { font-family: Georgia, "Times New Roman", serif; font-weight: normal; letter-spacing: .10em; font-size: 22px; line-height: 1.12; }
.ea-brand-text small { font-size: 9px; font-weight: 730; letter-spacing: .17em; color: #6c7988; }
.ea-header-nav { display: flex; gap: 30px; align-items: center; }
.ea-header-link { font-size: 13px; font-weight: 650; transition: color .15s; }
.ea-header-link:hover { color: var(--ea-gold); }
.ea-header-link-teacher { border: 1px solid #d6d8d7; border-radius: 7px; padding: 10px 14px; }
.ea-header-link-teacher span { color: var(--ea-gold); margin-left: 5px; }
.ea-main { flex: 1; }
.ea-hero { margin-top: 68px; margin-bottom: 62px; min-height: 292px; display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: center; gap: 55px; }
.ea-kicker { display: flex; align-items: center; gap: 11px; color: #9b691f; font-size: 11px; letter-spacing: .2em; font-weight: 800; }
.ea-kicker-line { width: 27px; height: 2px; background: #b37a28; display: inline-block; }
.ea-hero h1, .ea-section-hero h1 { font: normal clamp(38px, 4.4vw, 59px)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.045em; margin: 17px 0 21px; max-width: 745px; }
.ea-hero h1 em { color: #b37a28; font-weight: normal; }
.ea-hero-main > p { color: var(--ea-muted); max-width: 680px; font-size: 16px; line-height: 1.8; }
.ea-hero-main .ea-hero-detail { margin-top: 14px; color: #6b7480; font-size: 14px; }
.ea-hero-art { width: 300px; color: #c7ab76; opacity: .82; }
.ea-hero-art svg { display: block; width: 100%; }
.ea-choices { padding-bottom: 50px; }
.ea-small-label { color: var(--ea-gold); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.ea-section-top { margin-bottom: 23px; }
.ea-section-top h2 { margin: 7px 0 0; font: normal 31px/1.2 Georgia, "Times New Roman", serif; }
.ea-choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.ea-choice { position: relative; min-height: 310px; border: 1px solid var(--ea-border); border-radius: 13px; background: #fffefd; padding: 27px 26px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; box-shadow: 0 12px 35px rgba(17,45,75,.035); transition: transform .16s, border-color .16s, box-shadow .16s; }
.ea-choice:hover { transform: translateY(-3px); border-color: #cdbb9e; box-shadow: 0 16px 40px rgba(17,45,75,.08); }
.ea-choice-icon { display: flex; align-items: center; justify-content: center; width: 59px; height: 59px; border-radius: 12px; background: #f6efdf; color: #9c671e; margin-bottom: 22px; }
.ea-choice-icon svg { width: 36px; height: 36px; }
.ea-choice-practice .ea-choice-icon { background: #eaf0f5; color: #254765; }
.ea-choice-room .ea-choice-icon { background: #e9f1e9; color: #476e54; }
.ea-choice-status { position: absolute; top: 35px; right: 23px; font-size: 10px; font-weight: 730; letter-spacing: .04em; color: #826c50; border: 1px solid #e2d9c9; background: #faf6ee; padding: 5px 8px; border-radius: 5px; }
.ea-choice-status.ea-available { background: #edf4ed; border-color: #d8e7d8; color: #416a4a; }
.ea-choice strong { font: normal 26px/1.25 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.ea-choice-description { font-size: 14px; line-height: 1.78; color: var(--ea-muted); margin-top: 12px; margin-bottom: 25px; }
.ea-choice-action { display: flex; align-items: center; gap: 12px; margin-top: auto; border-top: 1px solid #efeee8; padding-top: 17px; width: 100%; color: #9b691f; font-weight: 730; font-size: 12px; }
.ea-choice-action span { font-size: 19px; line-height: 1; }
.ea-activity-result { display:block; margin-top:8px; font-weight:700; color:#315b45; }
.ea-resume { margin-top: 21px; background: #eef5f2; border: 1px solid #d4e4da; padding: 14px 18px; border-radius: 9px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #355d47; font-size: 13px; }
.ea-resume[hidden] { display: none !important; }
.ea-resume-indicator { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #528d67; }
.ea-resume a { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.ea-bottom-note { border-top: 1px solid var(--ea-border); margin-bottom: 64px; padding: 29px 16px; display: flex; justify-content: center; align-items: center; gap: 20px; }
.ea-bottom-note p { max-width: 790px; color: #647280; font-size: 14px; }
.ea-bottom-note strong { color: var(--ea-navy); }
.ea-bottom-ornament { color: #bf9b64; font: italic 31px Georgia,serif; }
.ea-footer { border-top: 1px solid var(--ea-border); color: #75808c; background: #fffefa; }
.ea-footer-content { padding-block: 23px; display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 11px; }
/* Pàgines d'orientació: encara no s'ha publicat el banc públic. */
.ea-breadcrumbs { display: flex; gap: 10px; align-items: center; padding-top: 30px; color: #7c8894; font-size: 12px; }
.ea-breadcrumbs a { color: #264863; text-decoration: underline; text-underline-offset: 3px; }
.ea-section-hero { padding: 53px 0 37px; }
.ea-section-hero h1 { margin-bottom: 16px; }
.ea-section-hero p { font-size: 16px; color: #5b6b7e; max-width: 760px; }
.ea-coming-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(270px,.75fr); gap: 18px; padding-bottom: 110px; }
.ea-coming-card { background: #fffefd; border: 1px solid var(--ea-border); border-radius: 13px; padding: 35px 36px 38px; position: relative; overflow: hidden; }
.ea-coming-symbol { position: absolute; top: 4px; right: 23px; font: italic 110px Georgia,serif; color: rgba(179,122,40,.08); pointer-events:none; }
.ea-coming-card h2 { font: normal 29px/1.25 Georgia,serif; margin: 11px 0 15px; max-width: 480px; }
.ea-coming-card p { color: #5b6b7e; font-size: 14px; max-width: 550px; line-height: 1.85; }
.ea-coming-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 31px; }
.ea-button { padding: 12px 18px; display: inline-flex; align-items:center; justify-content:center; border-radius: 6px; font-size: 12px; font-weight: 740; }
.ea-button-primary { background: var(--ea-navy); color: white !important; }
.ea-button-primary:hover { background: var(--ea-navy-dark); }
.ea-button-secondary { background: #f7f5ee; border: 1px solid #dfdfd6; }
.ea-button-secondary:hover { background: #eeece4; }
.ea-next-steps { background: #f5efe5; border: 1px solid #e9dfce; border-radius: 13px; padding: 30px 29px; }
.ea-next-steps h2 { font: normal 24px Georgia,serif; margin-bottom: 23px; }
.ea-next-steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.ea-next-steps li { display: flex; gap: 14px; align-items: flex-start; }
.ea-next-steps li > span { display: flex; align-items:center; justify-content: center; flex: none; width: 27px; height: 27px; background: #fffaf2; color: #956926; border-radius: 50%; font: 15px Georgia, serif; border: 1px solid #e3d5b9; }
.ea-next-steps li p { font-size: 13px; color: #40556b; margin-top: 1px; }
.ea-next-note { border-top: 1px solid #e2d5bd; padding-top: 18px; color: #7c725f; font-size: 12px; line-height:1.75; margin-top: 27px !important; }
@media (max-width: 920px) {
    .ea-hero { grid-template-columns: 1fr 200px; gap: 10px; }
    .ea-hero-art { width: 200px; }
    .ea-choice-grid { grid-template-columns: 1fr; }
    .ea-choice { min-height: 0; padding: 23px; }
    .ea-choice-icon { margin-bottom: 15px; }
    .ea-choice-description { margin-bottom: 20px; }
    .ea-choice-status { top: 28px; }
}
@media (max-width: 700px) {
    .ea-container { width: min(100% - 34px,1160px); }
    .ea-header-content { min-height: 74px; }
    .ea-symbol { width: 36px; height: 36px; }
    .ea-brand-text strong { font-size: 19px; }
    .ea-brand-text small { font-size: 7px; }
    .ea-header-nav { gap: 13px; }
    .ea-header-link { font-size: 11px; }
    .ea-header-link-teacher { padding: 8px; }
    .ea-hero { margin-top: 40px; margin-bottom: 43px; grid-template-columns: 1fr; min-height: 0; }
    .ea-hero-art { display: none; }
    .ea-hero h1, .ea-section-hero h1 { font-size: clamp(35px, 9vw, 48px); margin: 15px 0; }
    .ea-hero-main > p { font-size: 14px; }
    .ea-section-top h2 { font-size: 27px; }
    .ea-choice strong { font-size: 24px; }
    .ea-resume a { margin-left: 0; }
    .ea-bottom-note { margin-bottom: 43px; }
    .ea-footer-content { flex-direction: column; align-items: flex-start; gap: 6px; }
    .ea-section-hero { padding: 36px 0 29px; }
    .ea-coming-layout { grid-template-columns: 1fr; padding-bottom: 55px; }
    .ea-coming-card { padding: 27px 24px; }
    .ea-next-steps { padding: 26px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .ea-choice { transition: none; }
}

/* Biblioteca pública de teoria · 7.5.12 */
.ea-theory-catalog{padding:10px 0 56px;}
.ea-theory-catalog>h2{font:normal 28px Georgia,serif;margin:15px 0;}
.ea-theory-catalog>p{color:#51677b;line-height:1.65;}
.ea-theory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,295px),1fr));gap:15px;margin-top:22px;}
.ea-theory-item{background:#fff;border:1px solid #dce2e9;border-radius:12px;padding:23px;}
.ea-theory-item h3{font:normal 23px/1.35 Georgia,serif;margin:15px 0;}
.ea-theory-item h3 a{text-decoration:underline;text-decoration-color:#aebfce;text-underline-offset:4px;}
.ea-theory-item p{font-size:14px;line-height:1.7;color:#4e6072;}
.ea-theory-item .ea-button{margin-top:12px;}

/* 7.5.23 — Identificació voluntària d'alumnes, només a les pàgines públiques. */
.ea-google-auth { display:flex;align-items:center;justify-content:center;gap:9px;max-width:320px;flex-wrap:wrap; }
.ea-google-status {font-size:12px;max-width:220px;overflow-wrap:anywhere;color:var(--ea-muted);}
.ea-google-auth #eudGoogleStudentButton:empty {display:none;}
.ea-google-logout {background:#fff;border:1px solid #d6d8d7;border-radius:6px;padding:7px 10px;cursor:pointer;color:var(--ea-navy);}
.ea-google-logout[hidden] {display:none;}
@media(max-width:930px){.ea-header-content{flex-wrap:wrap;padding:12px 0}.ea-header-nav{flex-wrap:wrap;justify-content:flex-end}}

/* 7.5.24 — Tauler personal de l'alumnat (només alumnes identificats). */
.ea-personal-intro {padding:54px 0 28px;}
.ea-personal-intro h1 {font:normal clamp(35px,4.2vw,54px)/1.16 Georgia,serif;letter-spacing:-.035em;margin:16px 0;overflow-wrap:anywhere;}
.ea-personal-intro h1 em {color:#9b691f;font-style:normal;}
.ea-personal-intro>p {max-width:780px;font-size:15px;line-height:1.7;color:var(--ea-muted);}
.ea-dashboard {background:#fbfaf7;border:1px solid #e4e0d5;border-radius:16px;padding:26px clamp(17px,3vw,35px);margin:18px 0 48px;}
.ea-dashboard .ea-section-top h2 {font-size:29px;}
.ea-dashboard-section {margin:26px 0 0;}
.ea-dashboard-section[hidden] {display:none;}
.ea-dashboard-section h3 {font:normal 23px Georgia,serif;margin:0 0 15px;}
.ea-dashboard-message {font-size:14px;color:#4e6172;}
.ea-dashboard-message[hidden] {display:none;}
.ea-activity-list {display:grid;gap:10px;}
.ea-activity {background:#fff;border:1px solid #dfe3e3;border-radius:11px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0;}
.ea-activity-info {min-width:0;flex:1;}
.ea-activity-meta {font-size:11px;color:#627182;overflow-wrap:anywhere;}
.ea-activity-title {font:normal 21px/1.25 Georgia,serif;margin:6px 0 9px;overflow-wrap:anywhere;}
.ea-activity-progress-label {display:block;font-size:12px;color:#5c7081;margin-top:6px;}
.ea-progress-track {max-width:250px;height:6px;border-radius:100px;background:#e7ebee;overflow:hidden;margin-top:9px;}
.ea-progress-fill {display:block;height:100%;border-radius:100px;background:#658e6e;}
.ea-continue {cursor:pointer;border:0;white-space:nowrap;flex:none;}
.ea-continue:disabled {opacity:.5;cursor:wait;}
.ea-activity-restricted {font-size:12px;color:#806a4b;max-width:175px;line-height:1.5;}
.ea-dashboard-privacy {border-top:1px solid #e4e0d5;margin:24px 0 0;padding-top:18px;font-size:12px;color:#6b7683;line-height:1.65;}
@media(max-width:690px) {
  .ea-personal-intro{padding:37px 0 18px;}
  .ea-dashboard {margin-bottom:35px;}
  .ea-activity {align-items:stretch;flex-direction:column;gap:14px;}
  .ea-activity .ea-button {align-self:flex-start;}
  .ea-activity-restricted {max-width:none;}
}

/* 7.5.30 — Estat d'accés temporal del catàleg sense enllaços enganyosos. */
.ea-activity-restricted-wide { display:block; max-width:42rem; margin-top:10px; padding:8px 11px; border:1px solid #e9dbc4; border-radius:7px; background:#fcf8f0; color:#695335; }
