:root {
    color-scheme: light;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172e48;
    background: #f4f7fa;
    font-size: 16px;
    line-height: 1.5;
    --blue: #17579b;
    --edge: #d5dfe9;
    --muted: #4e6174;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: .18em; }
.bar { background: #173957; color: white; }
.bar > div, main { width: min(66rem, 100%); margin: auto; padding: 0 clamp(1rem, 4vw, 2.75rem); }
.bar > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.5rem; padding-block: .85rem; }
.brand { font-size: 1.18rem; font-weight: 750; letter-spacing: -.04em; }
.brand .school-logo { max-width: 7rem; max-height: 2.5rem; width: auto; height: auto; vertical-align: middle; margin-inline-end: .65rem; }
.bar a { color: white; }
.brand, .bar nav a { text-decoration: none; }
.bar nav a:hover { text-decoration: underline; }
nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
main { padding-block: 2.4rem 4rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1rem; margin-bottom: 1.2rem; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .85rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.045em; margin: 0; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
.scope, .hint { color: var(--muted); font-size: .9rem; }
.scope { margin: 0 0 .25rem; }
.card { margin-block: 1rem; padding: clamp(1rem, 3vw, 1.65rem); background: #fff; border: 1px solid var(--edge); border-radius: .65rem; }
.narrow { max-width: 32rem; }
form { display: grid; gap: .85rem; justify-items: start; margin-block: .7rem; }
label { font-weight: 600; display: grid; gap: .22rem; width: 100%; max-width: 32rem; }
label[hidden] { display: none; }
input:not([type=hidden]), select { font: inherit; font-weight: 400; color: inherit; background: white; border: 1px solid #8094a6; border-radius: .32rem; padding: .6rem .7rem; min-width: 0; width: 100%; }
input[readonly] { background: #f3f6f9; }
.form-grid { display: grid; width: 100%; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .85rem 1.25rem; }
button, .button { display: inline-block; border: 1px solid var(--blue); background: var(--blue); color: white; cursor: pointer; border-radius: .35rem; padding: .58rem 1rem; font: inherit; font-weight: 650; text-decoration: none; }
button:hover, .button:hover { filter: brightness(.92); }
button.secondary { background: #fff; color: var(--blue); }
button.plain { border-color: transparent; background: transparent; color: var(--blue); padding-inline: 0; }
button.danger { background: white; border-color: #9b3334; color: #842928; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #f4a92d; outline-offset: 2px; }
details { width: 100%; }
summary { cursor: pointer; color: var(--blue); font-weight: 650; }
details[open] > summary { margin-bottom: .65rem; }
fieldset { margin: 0; border: 1px solid var(--edge); border-radius: .4rem; padding: .6rem .9rem .85rem; min-width: 0; }
legend { font-weight: 650; }
.choice { display: flex; align-items: center; flex-direction: row; gap: .55rem; font-weight: 450; margin-block: .25rem; }
.choice input { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; accent-color: var(--blue); }
.search { display: flex; align-items: end; flex-wrap: wrap; }
.search label { flex: 1 1 12rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { border-bottom: 1px solid var(--edge); padding: .7rem; vertical-align: top; }
th { background: #edf3f8; font-size: .88rem; }
td a { font-weight: 600; }
.pager { margin-block: 1rem 0; }
dl { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: .45rem 1rem; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
article + article { border-top: 1px solid var(--edge); margin-top: 1rem; padding-top: 1rem; }
.success, .error { padding: .75rem 1rem; border-left: .25rem solid; background: #e6f3eb; color: #195936; }
.error { background: #faeceb; color: #882a2a; }
.usage-notice { margin-bottom: 1.2rem; padding: .9rem 1.2rem; border-left: .3rem solid #9c650d; color: #503509; background: #fff2cf; }
.usage-notice p { margin: .2rem 0; }
.enrol-nav { border-bottom: 1px solid var(--edge); padding-bottom: .6rem; }
.enrol-nav [aria-current="page"] { font-weight: 700; color: #172e48; }
.enrol-actions { display: flex; flex-wrap: wrap; align-items: start; gap: .5rem 1.25rem; }
.enrol-actions form { margin: .4rem 0; }
.academic-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.quiz-questions, .quiz-editor { display: grid; gap: .9rem; width: 100%; }
.quiz-questions fieldset { display: grid; gap: .65rem; }
.record-list { padding-inline-start: 1.3rem; }
.record-list li { margin-block: .4rem; }
.academic-snapshot, .academic-document { overflow-wrap: anywhere; }
.academic-snapshot h4 { font-size: 1.07rem; margin: 1.5rem 0 .55rem; }
.academic-snapshot h5 { font-size: 1rem; margin: 1rem 0 .4rem; }
.academic-snapshot p { margin: .4rem 0; }
.academic-snapshot .report-item { margin: .5rem 0 .5rem .7rem; }
.academic-document dd { min-width: 0; }
@media (max-width: 32rem) {
    .academic-document dl { display: block; }
    .academic-document dd { margin: 0 0 .7rem; }
}
@media print {
    .bar, .skip, .screen-only, .usage-notice, .page-head { display: none; }
    .report-edition { box-shadow: none; border: 0; }
    .report-edition tr { break-inside: avoid; }
}
textarea { font: inherit; width: 100%; padding: .5rem; min-height: 5rem; }
.skip { position: fixed; left: -1000px; top: .5rem; background: #fff; padding: .4rem; z-index: 1; }
.skip:focus { left: .5rem; }
@media (max-width: 38rem) {
    main { padding-block: 1.25rem 3rem; }
    .bar nav { gap: .75rem; font-size: .9rem; }
    .card { border-radius: .45rem; }
    th, td { padding-inline: .35rem; font-size: .92rem; }
}
