:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
    margin: 0; min-height: 100vh; padding: 42px 20px;
    color: #f2f5ff; font-family: 'Segoe UI', Arial, sans-serif;
    background: radial-gradient(circle at 12% 8%, #273a64 0, transparent 40%),
                radial-gradient(circle at 88% 95%, #39275b 0, transparent 45%), #101726;
}
.portal { max-width: 1020px; margin: 0 auto; }
.portal-heading { text-align: center; margin-bottom: 36px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; color: #a6c8ff; font-weight: 800; }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.14; margin: 12px 0; }
.student { font-size: 16px; color: #d8e2ff; margin: 0 0 12px; }
.student span { margin: 0 8px; opacity: .45; }
.lead { font-size: 15px; color: #b4c2da; margin: 0; }
.week-section {
    background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.13);
    border-radius: 20px; padding: 23px 24px 27px; margin: 18px 0;
    box-shadow: 0 15px 45px rgba(0,0,0,.12);
}
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-size: 19px; margin: 0; }
.location { color: #b8c7dc; font-size: 13px; }
.week-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.week-card {
    min-height: 114px; padding: 21px 12px; border-radius: 14px;
    border: 1px solid #556884; background: #1f2e47; color: #fff;
    text-align: center; text-decoration: none; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 9px; transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.week-card strong { font-size: 18px; }
.week-card small { color: #c6d5eb; font-size: 12px; line-height: 1.35; }
.week-card.external { background: #193d4d; border-color: #3f8898; }
.week-card.upcoming { background: #343143; border-color: #726d8a; }
.week-card:hover, .week-card:focus-visible {
    transform: translateY(-4px); border-color: #8ceaff; background: #304766; outline-offset: 3px;
}
.week-card.external:hover, .week-card.external:focus-visible { background: #275769; }
.notice { text-align: center; color: #bdcbe0; font-size: 13px; line-height: 1.6; margin: 23px auto 0; }
@media (max-width: 850px) { .week-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 560px) {
    body { padding: 24px 12px; } .week-section { padding: 18px 14px; }
    .week-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
    .week-card { min-height: 100px; } .location { font-size: 12px; }
}

.return-link { color: #9bd6ff; text-underline-offset: 4px; font-weight: 600; }
