/* Reuse Parent attendance layout, type, metrics and status colours. */
.school-cohort-attendance__hero--morthyng{background:linear-gradient(90deg,rgba(7,27,54,.94),rgba(7,27,54,.78)),url('./public/assets/morthyng-building-wide-20260908.jpg') center 54%/cover}
.school-cohort-attendance__history li{display:block;padding:0}
.school-cohort-attendance__history button{display:grid;grid-template-columns:2fr 1fr 1.3fr auto;align-items:center;gap:20px;width:100%;padding:20px 24px;border:1px solid #dce3e7;border-radius:12px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.school-cohort-attendance__history button:hover{background:#eaf0f6}
@media(max-width:620px){.school-cohort-attendance__history button{grid-template-columns:1fr auto;gap:12px}.school-cohort-attendance__history time{grid-column:1/-1}}

/* School-only dashboard upgrade: existing TFE card tokens and register markup. */
.school-cohort-attendance .school-attendance-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:24px 0}
.school-cohort-attendance .school-attendance-metric{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:158px;padding:22px 20px;border:1px solid var(--tfe-card-gold-border,#d4af37);border-radius:16px;background:linear-gradient(145deg,var(--navy-2,#12306b),var(--navy,#0b1f4d));color:#fff;box-shadow:var(--tfe-premium-card-shadow,0 18px 38px #071b4d2e)}
.school-cohort-attendance .school-attendance-metric dt{color:#f4df9a;font-size:.74rem;line-height:1.45;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.school-cohort-attendance .school-attendance-metric dd{margin:0;color:#fff;font-size:clamp(1.5rem,2.2vw,2.45rem);font-weight:850;line-height:1.15;letter-spacing:-.03em;overflow-wrap:anywhere}
.school-cohort-attendance .school-attendance-metric .school-attendance-metric__detail{font-weight:400;letter-spacing:normal;margin:auto 0 0;color:#dce6f5;font-size:.72rem;line-height:1.5}
.school-cohort-attendance .parent-attendance__definitions{border-left:3px solid var(--tfe-card-gold-border,#d4af37);background:#fff;color:#31465d;padding:18px 22px;border-radius:0 12px 12px 0;margin-bottom:30px}
.school-cohort-attendance .parent-attendance__definitions p{margin:0 0 8px;line-height:1.6}
.school-cohort-attendance>h3{font-size:1.6rem;color:var(--navy,#0b1f4d);margin:28px 0 18px}
.school-cohort-attendance .school-cohort-attendance__history{display:grid;gap:14px;padding:0;list-style:none;background:transparent;border:0}
.school-cohort-attendance .school-cohort-attendance__history li{background:transparent;border:0;padding:0;border-radius:14px;overflow:visible}
.school-cohort-attendance .school-cohort-attendance__history button{min-height:96px;border:1px solid var(--tfe-card-gold-border,#d4af37);background:var(--navy,#0b1f4d);color:#fff;border-radius:14px;box-shadow:0 8px 22px #071b4d1f;transition:background .18s,box-shadow .18s}
.school-cohort-attendance .school-cohort-attendance__history button:hover{background:#17396a;box-shadow:0 12px 28px #071b4d30}
.school-cohort-attendance .school-cohort-attendance__history time{color:#fff;font-weight:800;font-size:1rem;line-height:1.45}
.school-cohort-attendance .school-cohort-attendance__history button>span{color:#dce6f5;font-size:.82rem}
.school-cohort-attendance .school-cohort-attendance__history button>span:last-child{color:#f4df9a;font-size:1.5rem}
.school-cohort-attendance .school-attendance-register-status{display:inline-block;padding:5px 10px;border:1px solid #d4af3766;border-radius:20px;color:#f4df9a;font-size:.7rem;text-transform:uppercase;letter-spacing:.04em}
.school-cohort-attendance button:focus-visible{outline:3px solid var(--tfe-card-gold-border,#d4af37);outline-offset:4px}
.school-cohort-attendance.school-attendance-register-detail{padding:clamp(18px,3vw,44px);background:#f6f8fc;border-radius:20px}
.school-attendance-register-detail>.secondary-action{margin-bottom:20px;background:var(--navy,#0b1f4d);color:#fff;border:1px solid var(--tfe-card-gold-border,#d4af37);border-radius:10px;min-height:44px;padding:10px 18px}
.school-attendance-register-detail .register-history-detail{background:transparent;border:0;padding:0;box-shadow:none}
.school-attendance-register-detail .register-history-detail>.panel-head{padding:28px;border:1px solid var(--tfe-card-gold-border,#d4af37);border-radius:16px;background:var(--navy,#0b1f4d);color:#fff;align-items:flex-start;gap:20px}
.school-attendance-register-detail .panel-head h4{color:#fff;font-size:clamp(1.5rem,2.4vw,2.4rem);margin:10px 0;line-height:1.2}
.school-attendance-register-detail .panel-head p{color:#e0e8f5;line-height:1.6}
.school-attendance-register-detail .panel-head .eyebrow{color:#f4df9a}
.school-attendance-register-detail .panel-head>.attendance-pill{background:transparent;color:#f4df9a;border:1px solid #d4af3788;text-transform:uppercase}
.school-attendance-register-detail .register-history-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:12px;margin:20px 0}
.school-attendance-register-detail .register-history-totals article{background:var(--navy,#0b1f4d);border:1px solid var(--tfe-card-gold-border,#d4af37);color:#fff;border-radius:12px;padding:18px}
.school-attendance-register-detail .register-history-totals span{color:#e1e9f5}
.school-attendance-register-detail .register-history-totals strong{display:block;color:#fff;font-size:1.6rem;margin-top:8px}
.school-attendance-register-detail .register-history-entry-list{display:grid;gap:12px}
.school-attendance-register-detail .register-history-entry{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:12px 24px;padding:22px 24px;background:#fff;border:1px solid #d4af3766;border-left:4px solid var(--tfe-card-gold-border,#d4af37);border-radius:12px;color:var(--navy,#0b1f4d);box-shadow:0 6px 18px #071b4d0a}
.school-attendance-register-detail .register-history-entry>div:first-child{display:grid;gap:6px}
.school-attendance-register-detail .register-history-entry>div:first-child>strong{font-size:1.02rem}
.school-attendance-register-detail .register-history-entry>div:first-child>span,.school-attendance-register-detail .register-history-entry>small{color:#4c6079}
.school-attendance-register-detail .register-history-entry>p,.school-attendance-register-detail .register-history-entry>small{grid-column:1/-1;margin:0;line-height:1.55;overflow-wrap:anywhere}
.school-attendance-register-detail .attendance-pill{border-radius:20px;padding:7px 12px;font-weight:800;font-size:.75rem}
.school-attendance-register-detail .attendance-pill.present{background:#e5f5eb;color:#185937}
.school-attendance-register-detail .attendance-pill.late{background:#fff1c6;color:#76500a}
.school-attendance-register-detail .attendance-pill.absent,.school-attendance-register-detail .attendance-pill.unauthorised-absence{background:#fde9e6;color:#922d26}
.school-attendance-register-detail .attendance-pill.authorised-absence{background:#eee8fa;color:#573184}
@media(max-width:1150px){.school-cohort-attendance .school-attendance-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.school-cohort-attendance .school-attendance-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.school-cohort-attendance .school-attendance-metric{padding:18px 14px;min-height:150px}.school-cohort-attendance .school-attendance-metric:first-child{grid-column:1/-1}.school-cohort-attendance .school-cohort-attendance__history button{grid-template-columns:1fr auto;padding:20px;gap:12px}.school-cohort-attendance .school-cohort-attendance__history time{grid-column:1/-1}.school-cohort-attendance .school-cohort-attendance__history button>span:nth-child(3){grid-column:1/-1;grid-row:3}.school-attendance-register-detail .panel-head{flex-direction:column}.school-attendance-register-detail .register-history-entry{grid-template-columns:1fr;padding:18px}.school-attendance-register-detail .register-history-entry>div{min-width:0}}
@media(prefers-reduced-motion:reduce){.school-cohort-attendance .school-cohort-attendance__history button{transition:none}}

.school-attendance-register-detail .register-history-detail>.panel-head>.attendance-pill{background:transparent;color:#f4df9a;border:1px solid #d4af3788}
