:root {
  color-scheme: light;
  --ink: #292b32;
  --ink-soft: #263746;
  --muted: #666873;
  --muted-light: #85858c;
  --brand: #8c252e;
  --brand-secondary: #a43a43;
  --brand-deep: #641a22;
  --brand-soft: #f7edef;
  --navy: #263746;
  --gold: #d6a85f;
  --ivory: #f8f5f0;
  --line: #e7e5e2;
  --line-strong: #d5d2cf;
  --paper: #f8f5f0;
  --surface: #ffffff;
  --green: #287a5b;
  --green-pale: #eaf6f0;
  --red: #a43a43;
  --red-pale: #f7edef;
  --status-warning: #76531f;
  --status-warning-bg: #f7f1e6;
  --radius: 16px;
  --radius-large: 26px;
  --shadow-soft: 0 18px 48px rgba(38, 55, 70, .09);
  --shadow-card: 0 7px 24px rgba(38, 55, 70, .055);
  --content-width: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.55 Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--brand-secondary); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-160%); padding: 11px 15px; color: white; background: var(--brand-deep); border-radius: 8px; }
.skip-link:focus { transform: none; }
.site-frame { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { width: min(var(--content-width), calc(100% - 56px)); min-height: 78px; margin: 0 auto; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 190px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--brand); border-radius: 12px 12px 12px 4px; font-size: 19px; font-weight: 800; letter-spacing: -.8px; box-shadow: 0 5px 12px rgba(140,21,21,.16); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 16px; letter-spacing: -.35px; }
.brand-copy small { color: var(--muted); margin-top: 4px; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; }
.primary-navigation { display: flex; align-items: center; justify-content: center; gap: 27px; flex: 1; height: 100%; }
.primary-navigation a { position: relative; padding: 29px 0 27px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .16s ease; }
.primary-navigation a:hover, .primary-navigation a[aria-current="page"] { color: var(--brand-deep); }
.primary-navigation a[aria-current="page"]:after { position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; content: ""; background: var(--gold); border-radius: 3px; }
.primary-navigation .nav-primary { padding: 11px 15px; color: white; background: var(--brand); border-radius: 9px; }
.primary-navigation .nav-primary:hover { color: white; background: var(--brand-deep); }
.primary-navigation .nav-primary:after { display: none; }
.menu-toggle { display: none; }
.header-account { display: flex; align-items: center; gap: 15px; padding-left: 18px; border-left: 1px solid var(--line); }
.account-copy { display: flex; flex-direction: column; text-align: right; line-height: 1.25; }
.account-copy strong { max-width: 145px; overflow: hidden; color: var(--ink-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.header-account form { margin: 0; }
.signout-button { padding: 8px 11px; color: var(--muted); background: white; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: 700; transition: .16s ease; }
.signout-button:hover { color: var(--brand-deep); border-color: #d9aaaa; background: var(--brand-soft); }
.flash-region { width: min(var(--content-width), calc(100% - 56px)); margin: 16px auto 0; }
.flash-message { display: flex; align-items: center; gap: 10px; margin: 7px 0; padding: 12px 15px; color: var(--green); background: var(--green-pale); border: 1px solid #d2ebdd; border-radius: 10px; font-size: 13px; }
.flash-indicator { width: 8px; height: 8px; flex: 0 0 auto; background: currentColor; border-radius: 50%; }
.flash-error { color: var(--red); background: var(--red-pale); border-color: #f6d9dc; }
.flash-info { color: var(--brand-deep); background: var(--brand-soft); border-color: #ead2d2; }
.main-content { width: 100%; flex: 1; }
.site-footer { margin-top: 64px; padding: 44px max(28px, calc((100% - var(--content-width))/2)); color: #f3f1ed; background: var(--navy); }
.footer-main { display: grid; grid-template-columns: minmax(240px, 1.5fr) 1fr 1fr; gap: 50px; max-width: var(--content-width); margin: auto; padding-bottom: 35px; }
.brand-footer .brand-copy strong { color: white; }
.brand-footer .brand-copy small { color: #ddd9d1; }
.footer-brand-block p { max-width: 310px; margin: 18px 0 0; color: #ddd9d1; font-size: 13px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-links h2 { margin: 4px 0 8px; color: white; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; }
.footer-links a { color: #ddd9d1; font-size: 12px; transition: color .15s ease; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; max-width: var(--content-width); margin: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: #ddd9d1; font-size: 10px; }
.container { width: min(var(--content-width), calc(100% - 56px)); margin: 0 auto; padding: 50px 0 76px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--brand-deep); font-size: 10px; font-weight: 800; letter-spacing: 1.35px; line-height: 1.3; }
.eyebrow-rule { width: 23px; height: 2px; flex: 0 0 auto; background: var(--brand); border-radius: 2px; }
.eyebrow-light { color: var(--ivory); }
.eyebrow-light .eyebrow-rule { background: var(--gold); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin: 8px 0 32px; }
.page-heading h1, .form-page-heading h1 { margin: 0; color: var(--ink); font-size: clamp(31px, 4vw, 44px); font-weight: 750; letter-spacing: -1.5px; line-height: 1.08; }
.page-heading h1 span, .error-page h1 span { color: var(--brand); }
.page-lead { max-width: 610px; margin: 13px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.muted { color: var(--muted); }
.section-block { margin-top: 60px; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: clamp(27px, 3vw, 36px); font-weight: 700; letter-spacing: -1.15px; line-height: 1.18; }
.section-heading h2 span { color: var(--brand); font-weight: 550; }
.section-heading { max-width: 700px; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.section-title-row h2 { margin: 0; font-size: 24px; letter-spacing: -.6px; line-height: 1.2; }
.section-title-row .muted { margin: 7px 0 0; font-size: 12px; }
.content-section { margin-top: 42px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--brand); border-bottom: 2px solid var(--gold); box-shadow: 0 5px 12px rgba(140,21,21,.14); }
.button-primary:hover { color: white; background: var(--brand-deep); }
.button-outline { color: var(--brand-deep); background: white; border-color: #d9aaaa; }
.button-outline:hover { background: var(--brand-soft); border-color: var(--brand-secondary); }
.button-quiet { color: var(--ink-soft); background: transparent; border-color: var(--line-strong); }
.button-quiet:hover { color: var(--brand-deep); background: white; border-color: #d9aaaa; }
.button-light { color: var(--brand-deep); background: white; border-color: white; }
.button-light:hover { color: var(--brand-deep); background: var(--brand-soft); }
.button-wide { width: 100%; margin-top: 4px; }
.button-small { min-height: 35px; padding: 8px 12px; border-radius: 8px; font-size: 11px; }
.button-danger { color: var(--red); background: var(--red-pale); border-color: #e7c5c5; }
.button-danger:hover { background: #f4e0e0; }
.text-action { display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; color: var(--brand-deep); background: transparent; border: 0; cursor: pointer; font-size: 11px; font-weight: 700; }
.text-action:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.text-danger { color: var(--red); }
.back-link { display: inline-block; margin: 0 0 21px; color: var(--muted); font-size: 12px; font-weight: 700; }
.back-link:hover { color: var(--brand-deep); }
.count-tag { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 6px 11px; color: var(--brand-deep); background: var(--brand-soft); border: 1px solid #ead2d2; border-radius: 30px; font-size: 10px; font-weight: 750; letter-spacing: .2px; white-space: nowrap; }
.actions-inline, .heading-actions { display: flex; align-items: center; gap: 10px; }
.heading-actions { flex-wrap: wrap; justify-content: flex-end; }
.data-panel, .form-panel { overflow: hidden; padding: 23px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.panel-heading h2 { margin: 2px 0 0; color: var(--ink); font-size: 19px; letter-spacing: -.35px; }
.panel-heading .eyebrow { margin-bottom: 7px; }
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { padding: 11px 12px; color: #626262; background: #f8f8f6; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px 12px; color: var(--ink-soft); border-bottom: 1px solid #edf0f4; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfbfe; }
.table-action { color: var(--brand-deep); font-size: 11px; font-weight: 700; white-space: nowrap; }
.table-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.student-cell { display: inline-flex; align-items: center; gap: 9px; min-width: 155px; }
.student-cell strong { font-size: 12px; }
.student-avatar { display: inline-grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; color: var(--brand-deep); background: var(--brand-soft); border-radius: 9px; font-size: 11px; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.table-subtext { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: capitalize; }
.event-pill { display: inline-flex; padding: 5px 8px; color: #626262; background: #f0f0ee; border: 1px solid #e5e5e5; border-radius: 20px; font-size: 9px; font-weight: 750; text-transform: capitalize; white-space: nowrap; }
.event-login_success { color: var(--green); background: var(--green-pale); border-color: #d9ede2; }
.event-login_failed { color: var(--red); background: var(--red-pale); border-color: #f7dfe2; }
.empty-panel { display: flex; min-height: 245px; flex-direction: column; align-items: center; justify-content: center; padding: 36px 22px; background: white; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.empty-panel h2, .empty-panel h3 { margin: 10px 0 5px; color: var(--ink); font-size: 17px; letter-spacing: -.3px; }
.empty-panel p { max-width: 460px; margin: 4px auto 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty-panel .eyebrow { margin-bottom: 2px; }
.compact-empty { min-height: 180px; padding: 23px 18px; border: 0; background: #fbfbfd; }
.empty-symbol { display: inline-grid; width: 42px; height: 42px; margin-bottom: 7px; place-items: center; color: var(--brand-deep); background: var(--brand-soft); border-radius: 13px; font-size: 19px; }
.count-tag + .empty-panel { margin-top: 0; }
.course-code { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; color: var(--brand-deep); background: var(--brand-soft); border: 1px solid #ead2d2; border-radius: 6px; font-size: 9px; font-weight: 800; letter-spacing: .5px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.course-card { display: flex; min-width: 0; min-height: 220px; flex-direction: column; padding: 21px; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-card); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.course-card:hover { transform: translateY(-2px); border-color: #d9aaaa; box-shadow: 0 12px 26px rgba(46,45,41,.08); }
.course-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.course-card-symbol { color: var(--brand-secondary); font-size: 18px; }
.course-card h3, .course-card h2 { margin: 17px 0 7px; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.25px; line-height: 1.3; }
.course-card h2 { font-size: 17px; }
.course-card p { margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.course-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid #edf0f4; }
.course-card-footer form { margin: 0; }
.course-card-note, .enrolment-count { color: var(--muted); font-size: 10px; }
.enrolment-count strong { color: var(--ink); font-size: 12px; }
.status-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 750; }
.status-enrolled { color: var(--green); }
.course-admin-actions { display: flex; gap: 13px; }
.course-admin-actions form { margin: 0; }/* Public homepage */
.public-home { width: min(var(--content-width), calc(100% - 56px)); margin: 0 auto; padding: 24px 0 0; }
.home-hero { display: grid; min-height: 495px; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 54px; padding: 30px 0 44px; }
.home-hero-copy { max-width: 610px; padding: 15px 0; }
.home-hero-copy h1 { margin: 0; color: var(--navy); font-size: clamp(46px, 6.2vw, 72px); font-weight: 760; letter-spacing: -3.4px; line-height: .99; }
.home-hero-copy h1 span { color: var(--brand); }
.hero-lead { max-width: 490px; margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin: 27px 0 0; color: var(--muted); font-size: 11px; }
.note-mark { display: grid; width: 23px; height: 23px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 7px; font-size: 12px; }
.home-hero-visual { position: relative; min-width: 0; padding: 6px 14px 0 0; }
.campus-photo-frame { position: relative; overflow: hidden; width: 100%; min-height: 0; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px 52px 12px 12px; box-shadow: 0 18px 44px rgba(38,55,70,.10); }
.campus-photo { display: block; width: 100%; height: auto; object-fit: contain; object-position: center; }
.hero-caption-card { position: absolute; bottom: 4px; left: -35px; display: flex; align-items: center; gap: 10px; padding: 13px 15px; background: white; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-soft); }
.caption-icon { display: grid; width: 33px; height: 33px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 9px; font-size: 17px; }
.hero-caption-card span:last-child { display: flex; flex-direction: column; gap: 3px; }
.hero-caption-card strong { color: var(--ink); font-size: 10px; }
.hero-caption-card small { color: var(--muted); font-size: 9px; }
.visual-index { position: absolute; top: 0; right: 20px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 1.1px; }
.home-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 35px 0 23px; border-top: 2px solid var(--gold); }
.section-intro-copy { max-width: 390px; margin: 0 0 3px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.feature-card { position: relative; min-height: 240px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-card); }
.feature-card-accent { background: #fff; border-color: var(--line); border-top: 3px solid var(--brand); }
.feature-number { position: absolute; top: 23px; right: 22px; color: #888888; font-size: 10px; font-weight: 800; letter-spacing: .7px; }
.feature-icon { display: grid; width: 40px; height: 40px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 11px; font-size: 20px; }
.feature-card h3 { margin: 22px 0 7px; color: var(--ink); font-size: 16px; letter-spacing: -.3px; }
.feature-card p { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.feature-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-deep); font-size: 10px; font-weight: 750; }
.feature-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.discovery-section { display: grid; min-height: 0; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(28px,6vw,88px); overflow: visible; margin-top: 70px; padding: 34px 0; color: var(--ink); background: transparent; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }
.discovery-copy { max-width: 620px; }
.discovery-copy h2 { margin: 0; color: var(--navy); font-size: clamp(32px,4vw,49px); font-weight: 740; letter-spacing: -1.6px; line-height: 1.12; }
.discovery-aside p { max-width: 480px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.discovery-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; margin-top: 22px; }
.discovery-login { color: var(--brand-deep); font-size: 13px; font-weight: 700; }
.discovery-login:hover { text-decoration: underline; text-underline-offset: 3px; }
.campus-environments { padding: 38px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-large); }
.campus-environments-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.campus-environments-heading .section-intro-copy { max-width: 355px; }
.campus-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.campus-gallery-card { overflow: hidden; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.campus-gallery-card img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; background: var(--ivory); }
.campus-gallery-caption { padding: 19px 20px 20px; }
.campus-gallery-caption .eyebrow { margin-bottom: 9px; font-size: 9px; }
.campus-gallery-caption h3 { margin: 0; color: var(--ink); font-size: 17px; letter-spacing: -.3px; }
.campus-gallery-caption p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.campus-photo-note { margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.campus-photo-note a { color: var(--brand-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.benefits-section { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 50px; }
.benefit-list { display: flex; flex-direction: column; gap: 0; }
.benefit-list article { display: flex; align-items: flex-start; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.benefit-list article:first-child { padding-top: 4px; }
.benefit-check { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; color: var(--navy); background: #eaf0f2; border-radius: 8px; font-size: 12px; font-weight: 800; }
.benefit-list h3 { margin: 1px 0 4px; color: var(--ink); font-size: 13px; }
.benefit-list p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.home-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 59px; padding: 34px 41px; color: white; background: var(--navy); border-left: 5px solid var(--gold); border-radius: var(--radius-large); }
.home-cta .eyebrow { margin-bottom: 11px; }
.home-cta h2 { font-size: clamp(25px,3.2vw,34px); }
.home-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.cta-text-link { color: var(--ivory); font-size: 10px; font-weight: 650; }
.cta-text-link:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }
/* Responsive layouts */
@media (max-width: 1080px) {
  .header-inner { gap: 20px; }
  .brand { min-width: 165px; }
  .primary-navigation { gap: 17px; }
  .account-copy { display: none; }
  .home-hero { gap: 30px; }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .health-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .header-inner { position: relative; width: calc(100% - 36px); min-height: 70px; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  .brand { min-width: 0; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 9px 11px; color: var(--ink-soft); background: white; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 700; }
  .menu-toggle-lines, .menu-toggle-lines:before, .menu-toggle-lines:after { display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px; }
  .menu-toggle-lines { position: relative; }
  .menu-toggle-lines:before, .menu-toggle-lines:after { position: absolute; left: 0; content: ""; }
  .menu-toggle-lines:before { top: -5px; }
  .menu-toggle-lines:after { top: 5px; }
  .primary-navigation { display: none; width: 100%; height: auto; flex: 0 0 100%; align-items: stretch; flex-direction: column; gap: 0; padding: 7px 0 13px; border-top: 1px solid var(--line); }
  .primary-navigation.is-open { display: flex; }
  .primary-navigation a { padding: 12px 9px; }
  .primary-navigation a[aria-current="page"]:after { right: auto; bottom: 5px; left: 9px; width: 22px; }
  .primary-navigation .nav-primary { align-self: flex-start; margin-top: 6px; padding: 10px 13px; }
  .header-account { margin-left: auto; padding-left: 10px; }
  .header-account form { display: flex; }
  .site-footer { padding: 36px 22px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .home-hero { min-height: 0; grid-template-columns: 1fr; padding-top: 40px; }
  .home-hero-copy { max-width: 720px; }
  .home-hero-visual { width: min(100%, 620px); margin: 0 auto; }
  .feature-grid, .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-section { grid-template-columns: 1fr 0.8fr; padding: 30px; }
  .benefits-section, .operations-grid, .detail-grid { grid-template-columns: 1fr; }
  .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-heading, .section-title-row { align-items: flex-start; }
  .dashboard-heading { flex-direction: column; }
  .heading-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .header-inner { width: calc(100% - 28px); }
  .brand-mark { width: 35px; height: 35px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 9px; }
  .signout-button { padding: 8px; font-size: 10px; }
  .flash-region { width: calc(100% - 28px); }
  .home-hero-copy h1 { font-size: clamp(42px, 13vw, 60px); letter-spacing: -2.4px; }
  .home-hero { gap: 14px; padding: 28px 0 32px; }
  .campus-photo-frame { min-height: 235px; border-top-right-radius: 55px; }
  .hero-caption-card { bottom: 0; left: 0; padding: 9px 10px; }
  .placeholder-label { right: 10px; bottom: 10px; }
  .content-wrap, .page-shell, .dashboard-page, .management-page, .operations-page { width: calc(100% - 28px); }
  .feature-grid, .course-grid, .admin-stat-grid, .operations-stat-grid, .health-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .discovery-section { grid-template-columns: 1fr; gap: 10px; margin-top: 38px; padding: 25px 20px; }
  .discovery-visual { min-height: 205px; }
  .campus-environments { padding: 24px 17px; }
  .campus-environments-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 17px; }
  .campus-gallery { grid-template-columns: 1fr; gap: 13px; }
  .campus-gallery-caption { padding: 16px; }
  .benefits-section { gap: 22px; }
  .home-intro, .section-title-row, .page-heading { flex-direction: column; gap: 13px; }
  .home-cta { align-items: flex-start; flex-direction: column; margin-top: 38px; padding: 27px 22px; }
  .home-cta-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .page-heading h1 { font-size: clamp(31px, 9vw, 43px); }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1 1 auto; }
  .stat-card, .health-card { min-width: 0; }
  .data-panel, .form-panel { padding: 15px; }
  .panel-heading { flex-direction: column; }
  .course-grid { gap: 12px; }
  .course-card { min-height: 0; padding: 17px; }
  .stacked-form { gap: 14px; }
  .form-actions { flex-wrap: wrap; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 21px 15px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Shared application pages */
.public-home, .dashboard-page, .management-page, .catalogue-page, .operations-page, .error-page { width: min(var(--content-width), calc(100% - 56px)); margin: 0 auto; padding: 42px 0 20px; }
.dashboard-page, .management-page, .catalogue-page, .operations-page { min-height: 56vh; }
.stat-label, .overview-label, .health-label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-stat-card, .overview-card, .health-card { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.admin-stat-card { min-height: 158px; }
.stat-topline { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; }
.stat-icon { display: grid; width: 32px; height: 32px; place-items: center; color: var(--brand-deep); background: var(--brand-soft); border-radius: 9px; font-weight: 800; }
.admin-stat-card > strong, .overview-card > strong { color: var(--brand-deep); font-size: 31px; font-weight: 750; letter-spacing: -1px; line-height: 1; }
.admin-stat-card > a { margin-top: auto; color: var(--brand-deep); font-size: 10px; font-weight: 700; }
.admin-stat-card > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.stat-caption, .overview-card > span:not(.overview-label):not(.overview-decoration) { color: var(--muted); font-size: 10px; }
.admin-stat-warning { background: #fff; border-color: var(--line); }
.admin-stat-warning .stat-icon { color: var(--status-warning); background: var(--status-warning-bg); }
.student-overview { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.overview-card { min-height: 150px; overflow: hidden; justify-content: space-between; }
.overview-card-featured { color: white; background: var(--brand-deep); border-color: var(--brand-deep); }
.overview-card-featured .overview-label, .overview-card-featured > span:not(.overview-decoration) { color: #f0dada; }
.overview-card-featured > strong { color: white; }
.overview-decoration { position: absolute; right: 15px; bottom: -15px; color: rgba(255,255,255,.08); font-size: 76px; font-weight: 800; }
.health-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.health-card { gap: 8px; padding: 16px; }
.health-value { color: var(--ink); font-size: 17px; font-weight: 750; overflow-wrap: anywhere; }
.health-good { color: var(--green); }
.health-bad { color: var(--red); }
.health-card small { color: var(--muted); font-size: 10px; }
.operations-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.operations-grid > .data-panel { min-width: 0; }
.operations-stat-grid { grid-template-columns: repeat(5, minmax(0,1fr)); margin-top: 16px; }
.operations-trend { margin-top: 36px; }
.trend-cell { display: flex; align-items: center; gap: 9px; min-width: 125px; }
.trend-cell b { min-width: 18px; color: var(--ink-soft); font-size: 11px; text-align: right; }
.trend-progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 8px; background: #edf0f5; accent-color: var(--green); }
.trend-progress::-webkit-progress-bar { background: #edf0f5; border-radius: 8px; }
.trend-success::-webkit-progress-value { background: #55a985; border-radius: 8px; }
.trend-failed { accent-color: var(--brand-secondary); }
.trend-failed::-webkit-progress-value { background: var(--brand-secondary); border-radius: 8px; }
.audit-panel { margin-top: 18px; }
.data-panel, .form-panel { min-width: 0; }
.management-page .page-heading, .catalogue-page .page-heading { margin-top: 4px; }
.catalogue-meta { display: flex; justify-content: space-between; gap: 15px; margin: 0 0 15px; color: var(--muted); font-size: 11px; }
.catalogue-card { min-height: 240px; }
.detail-grid { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); align-items: start; gap: 17px; }
.detail-heading { align-items: center; }
.detail-heading form { flex: 0 0 auto; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.panel-heading h2 { margin: 0; color: var(--ink); font-size: 18px; }
.panel-heading .eyebrow { margin: 0; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-panel table { min-width: 520px; }
.data-panel code { padding: 3px 6px; color: var(--brand-deep); background: var(--brand-soft); border-radius: 5px; font-size: 10px; }
.empty-panel .button { margin-top: 18px; }
.form-page { max-width: 820px; }
.form-page-heading { margin-bottom: 23px; }
.form-page-heading h1 { margin: 0; color: var(--ink); font-size: clamp(30px,4vw,43px); letter-spacing: -1.4px; }
.course-editor { max-width: 760px; }
.stacked-form { display: flex; flex-direction: column; gap: 17px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.field label { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.form-control { width: 100%; min-height: 45px; padding: 11px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; outline: none; }
.form-control:focus { border-color: var(--brand-secondary); box-shadow: 0 0 0 3px rgba(165,28,48,.14); }
.textarea-control { min-height: 125px; resize: vertical; }
.field-error { color: var(--red); font-size: 11px; }
.field-hint, .record-meta { color: var(--muted); font-size: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.auth-page { display: grid; min-height: 650px; place-items: center; padding: 44px 20px; background: var(--paper); }
.auth-form-side { display: grid; width: 100%; place-items: center; padding: 0; background: transparent; }
.auth-form-card { width: min(100%, 500px); padding: 42px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); }
.auth-card-brand { display: inline-flex; align-items: center; gap: 13px; margin-bottom: 30px; }
.auth-card-brand .brand-copy strong { color: var(--ink); font-size: 19px; }
.auth-form-card h2 { margin: 0; color: var(--ink); font-size: 34px; letter-spacing: -1.1px; }
.form-intro { margin: 9px 0 27px; color: var(--muted); font-size: 14px; }
.form-switch { margin: 22px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.form-switch a { color: var(--brand); font-weight: 750; }
.form-assurance { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 17px 0 0; padding-top: 14px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }
.error-page { display: flex; min-height: 55vh; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-code { color: #ead6d7; font-size: clamp(70px,15vw,150px); font-weight: 800; letter-spacing: -8px; line-height: .9; }
.error-page .eyebrow { margin-top: 22px; }
.error-page h1 { margin: 0; color: var(--brand-deep); font-size: clamp(37px,5vw,58px); letter-spacing: -2px; line-height: 1.05; }
.error-page .page-lead { margin-bottom: 21px; }
.menu-toggle-label { white-space: nowrap; }

/* UniPath visual system: high-contrast crimson and white. */
body { color: var(--ink); background: var(--paper); font-family: Inter, "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; }
h1, h2, h3, .brand-copy strong { font-family: Manrope, "Segoe UI Variable Display", "Aptos Display", "Trebuchet MS", sans-serif; }
p { line-height: 1.72; }
.site-header { background: rgba(255,255,255,.97); box-shadow: 0 2px 16px rgba(46,45,41,.035); }
.header-inner { min-height: 84px; gap: 35px; }
.brand { min-width: 205px; gap: 13px; }
.brand-mark { width: 43px; height: 43px; border-radius: 14px 14px 14px 5px; background: var(--brand); box-shadow: 0 6px 15px rgba(140,21,21,.17); }
.brand-copy strong { font-size: 18px; letter-spacing: -.5px; }
.brand-copy small { font-size: 10px; letter-spacing: .8px; }
.primary-navigation { gap: clamp(16px,2.2vw,30px); }
.primary-navigation a { color: #626262; font-size: 14px; font-weight: 650; }
.primary-navigation a[aria-current="page"] { color: var(--brand-deep); }
.primary-navigation .nav-primary { padding: 12px 17px; background: var(--brand); box-shadow: 0 6px 14px rgba(140,21,21,.14); }
.header-account { gap: 17px; }
.signout-button { padding: 9px 13px; font-size: 12px; }
.site-footer { margin-top: 82px; padding-top: 56px; padding-bottom: 27px; background: var(--navy); }
.footer-main { gap: 65px; padding-bottom: 43px; }
.footer-brand-block p { font-size: 14px; line-height: 1.75; }
.footer-links { gap: 12px; }
.footer-links h2 { font-size: 13px; }
.footer-links a { font-size: 13px; }
.footer-bottom { font-size: 11px; }
.public-home, .dashboard-page, .management-page, .catalogue-page, .operations-page, .error-page { width: min(var(--content-width), calc(100% - 64px)); padding-top: 48px; }
.container { width: min(var(--content-width), calc(100% - 64px)); padding-top: 60px; }
.eyebrow { gap: 11px; margin-bottom: 17px; font-size: 11px; letter-spacing: 1.5px; }
.eyebrow-rule { width: 26px; }
.page-heading { gap: 32px; margin: 10px 0 39px; }
.page-heading h1, .form-page-heading h1 { font-size: clamp(38px,4.6vw,54px); letter-spacing: -1.8px; line-height: 1.08; }
.page-lead { max-width: 680px; margin-top: 16px; font-size: 17px; line-height: 1.7; }
.section-block { margin-top: 76px; }
.section-heading { max-width: 740px; }
.section-heading h2 { font-size: clamp(31px,3.3vw,42px); letter-spacing: -1.45px; line-height: 1.17; }
.section-title-row { gap: 25px; margin-bottom: 25px; }
.section-title-row h2 { font-size: 27px; letter-spacing: -.8px; }
.section-title-row .muted { margin-top: 9px; font-size: 14px; }
.button { min-height: 49px; padding: 13px 19px; border-radius: 11px; font-size: 14px; }
.button-primary { background: var(--brand); border-bottom: 2px solid var(--gold); box-shadow: 0 6px 14px rgba(140,21,21,.16); }
.button-primary:hover { background: var(--brand-deep); box-shadow: 0 8px 17px rgba(100,16,16,.2); }
.button-outline { border-color: #d9aaaa; }
.button-small { min-height: 39px; padding: 9px 13px; font-size: 12px; }
.text-action { font-size: 13px; }
.count-tag { min-height: 33px; padding: 7px 12px; font-size: 11px; }
.data-panel, .form-panel { padding: 28px; border-radius: 17px; box-shadow: var(--shadow-card); }
.panel-heading { gap: 20px; margin-bottom: 22px; }
.panel-heading h2 { font-size: 21px; }
table { font-size: 14px; }
th { padding: 14px 15px; color: #626262; font-size: 10px; letter-spacing: .9px; }
td { padding: 16px 15px; line-height: 1.55; }
.table-action { font-size: 13px; }
.student-cell { gap: 11px; min-width: 180px; }
.student-cell strong { font-size: 14px; }
.student-avatar { width: 36px; height: 36px; border-radius: 11px; font-size: 12px; }
.event-pill { padding: 6px 10px; font-size: 10px; }
.empty-panel { min-height: 270px; padding: 44px 28px; border-radius: 17px; }
.empty-panel h2, .empty-panel h3 { margin-top: 13px; font-size: 20px; }
.empty-panel p { font-size: 14px; line-height: 1.7; }
.compact-empty { min-height: 205px; padding: 28px 20px; }
.course-grid { gap: 20px; }
.course-card { min-height: 252px; padding: 25px; border-radius: 17px; box-shadow: var(--shadow-card); }
.course-card h3, .course-card h2 { margin-top: 20px; font-size: 20px; line-height: 1.35; }
.course-card p { margin-bottom: 20px; font-size: 14px; line-height: 1.72; }
.course-card-footer { gap: 14px; padding-top: 16px; }
.course-card-note, .enrolment-count { font-size: 12px; }
.course-code { min-height: 27px; font-size: 10px; }
.status-tag { font-size: 12px; }
.home-hero { min-height: 560px; gap: clamp(36px,5vw,72px); padding: 46px 0 72px; }
.home-hero-copy { max-width: 650px; padding: 20px 0; }
.home-hero-copy h1 { max-width: 680px; color: var(--navy); font-size: clamp(58px,7vw,88px); letter-spacing: -4px; line-height: 1.02; }
.hero-lead { max-width: 530px; margin-top: 28px; font-size: 20px; line-height: 1.72; }
.hero-actions { gap: 14px; margin-top: 31px; }
.hero-note { gap: 11px; margin-top: 30px; font-size: 13px; }
.note-mark { width: 28px; height: 28px; font-size: 14px; }
.home-hero-visual { padding: 11px 17px 0 0; }
.campus-photo-frame { min-height: 0; border-radius: 16px 56px 16px 16px; box-shadow: 0 18px 42px rgba(38,55,70,.10); }
.campus-photo { height: auto; object-fit: contain; object-position: center; }
.hero-caption-card { bottom: 6px; left: -24px; gap: 12px; padding: 15px 18px; border-radius: 13px; }
.caption-icon { width: 38px; height: 38px; border-radius: 11px; }
.hero-caption-card strong { font-size: 12px; }
.hero-caption-card small { font-size: 11px; }
.visual-index { top: 0; right: 23px; font-size: 9px; }
.home-intro { gap: 50px; padding: 43px 0 30px; }
.section-intro-copy { max-width: 430px; font-size: 15px; line-height: 1.75; }
.feature-grid { gap: 19px; }
.feature-card { min-height: 275px; padding: 27px; border-radius: 17px; }
.feature-number { top: 27px; right: 27px; font-size: 11px; }
.feature-icon { width: 47px; height: 47px; border-radius: 13px; font-size: 22px; }
.feature-card h3 { margin-top: 25px; font-size: 19px; }
.feature-card p { margin-bottom: 21px; font-size: 13px; line-height: 1.75; }
.feature-link { font-size: 12px; }
.discovery-section { min-height: 0; margin-top: 70px; padding: 42px 0; background: transparent; }
.discovery-copy h2, .home-cta h2 { font-size: clamp(32px,4vw,48px); letter-spacing: -1.5px; line-height: 1.16; }
.discovery-aside p { font-size: 16px; line-height: 1.75; }
.campus-environments { padding: 48px; background: #fff; border-color: var(--line); }
.campus-environments-heading { gap: 40px; margin-bottom: 31px; }
.campus-gallery { gap: 22px; }
.campus-gallery-card { background: #fff; border-radius: 17px; box-shadow: 0 7px 20px rgba(46,45,41,.05); }
.campus-gallery-card img { height: auto; aspect-ratio: auto; object-fit: contain; }
.campus-gallery-caption { padding: 23px 25px 26px; }
.campus-gallery-caption .eyebrow { margin-bottom: 11px; font-size: 10px; }
.campus-gallery-caption .eyebrow-rule { background: var(--brand-secondary); }
.campus-gallery-caption h3 { font-size: 21px; }
.campus-gallery-caption p { margin-top: 9px; font-size: 14px; line-height: 1.7; }
.campus-photo-note { margin-top: 18px; font-size: 11px; }
.benefits-section { gap: 70px; }
.benefit-list article { gap: 15px; padding: 19px 0; }
.benefit-check { width: 30px; height: 30px; background: var(--green-pale); color: var(--green); }
.benefit-list h3 { font-size: 16px; }
.benefit-list p { font-size: 14px; line-height: 1.7; }
.home-cta { gap: 35px; margin-top: 72px; padding: 43px 49px; background: var(--navy); border-left: 5px solid var(--gold); }
.home-cta h2 { font-size: clamp(30px,3.5vw,43px); }
.home-cta-actions { gap: 14px; }
.cta-text-link { font-size: 12px; }
.stat-label, .overview-label, .health-label { font-size: 10px; letter-spacing: .9px; }
.admin-stat-grid { gap: 17px; }
.admin-stat-card, .overview-card, .health-card { gap: 14px; padding: 24px; border-radius: 17px; }
.admin-stat-card { min-height: 178px; border-top: 3px solid var(--brand); }
.admin-stat-card:nth-child(2), .admin-stat-card:nth-child(3) { border-top-color: var(--line-strong); }
.admin-stat-warning { border-top-color: var(--gold); }
.stat-icon { width: 39px; height: 39px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); }
.admin-stat-card:nth-child(2) .stat-icon, .admin-stat-card:nth-child(3) .stat-icon { color: var(--muted); background: #f2f2f0; }
.admin-stat-card > strong, .overview-card > strong { font-size: 38px; letter-spacing: -1.5px; }
.admin-stat-card > a { font-size: 12px; }
.stat-caption, .overview-card > span:not(.overview-label):not(.overview-decoration) { font-size: 12px; line-height: 1.5; }
.student-overview { gap: 17px; }
.overview-card { min-height: 177px; padding: 25px; }
.overview-card-featured { background: var(--navy); }
.health-grid { gap: 15px; }
.health-card { gap: 10px; padding: 21px; border-top: 3px solid var(--line-strong); }
.health-value { font-size: 20px; }
.health-card small { font-size: 12px; line-height: 1.5; }
.operations-grid { gap: 20px; margin-top: 21px; }
.operations-stat-grid { gap: 13px; }
.operations-stat-grid .admin-stat-card { padding: 19px; }
.operations-stat-grid .admin-stat-card > strong { font-size: 34px; }
.operations-trend { margin-top: 42px; }
.trend-cell { gap: 12px; }
.trend-cell b { font-size: 13px; }
.trend-progress { height: 10px; }
.audit-panel { margin-top: 21px; }
.data-panel code { font-size: 12px; }
.form-page-heading { margin-bottom: 30px; }
.stacked-form { gap: 21px; }
.field { gap: 9px; }
.field label { font-size: 14px; }
.form-control { min-height: 51px; padding: 13px 14px; border-radius: 10px; font-size: 15px; }
.textarea-control { min-height: 145px; }
.field-error, .field-hint, .record-meta { font-size: 12px; line-height: 1.55; }
.form-actions { gap: 13px; margin-top: 8px; }
.auth-page { min-height: 690px; }
.auth-form-side { padding: 0; background: transparent; }
.auth-form-card { width: min(100%,500px); padding: 42px; border-radius: 18px; box-shadow: var(--shadow-soft); }
.auth-card-brand { margin-bottom: 34px; }
.auth-form-card h2 { font-size: 35px; letter-spacing: -1.3px; }
.form-intro { margin: 9px 0 29px; font-size: 14px; line-height: 1.7; }
.form-switch { margin-top: 24px; font-size: 13px; }
.form-assurance { margin-top: 21px; padding-top: 17px; font-size: 11px; }
.management-page .page-heading, .catalogue-page .page-heading { margin-top: 7px; }
.detail-grid { gap: 21px; }
.detail-grid > * { border-radius: 17px; }
.detail-enrolments { min-width: 0; }
.record-meta { margin: 0; }
.back-link { margin-bottom: 25px; font-size: 14px; }
.flash-region { margin-top: 19px; }
.flash-message { gap: 12px; padding: 14px 17px; font-size: 14px; }
.error-code { color: #ead6d7; }
.error-page h1 { font-size: clamp(44px,5.5vw,68px); letter-spacing: -2.4px; }

@media (max-width: 1080px) {
  .header-inner { gap: 22px; }
  .brand { min-width: 175px; }
  .primary-navigation { gap: 17px; }
  .home-hero { gap: 34px; }
  .home-hero-copy h1 { font-size: clamp(54px,7.2vw,76px); }
  .auth-form-side { padding: 34px; }
  .operations-stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .header-inner { width: calc(100% - 40px); min-height: 74px; gap: 12px; }
  .primary-navigation { padding: 12px 0 16px; }
  .primary-navigation a { padding: 13px 10px; font-size: 15px; }
  .primary-navigation .nav-primary { padding: 12px 15px; }
  .public-home, .dashboard-page, .management-page, .catalogue-page, .operations-page, .error-page { width: calc(100% - 44px); padding-top: 38px; }
  .home-hero { gap: 19px; padding: 35px 0 50px; }
  .home-hero-copy { max-width: 720px; }
  .home-hero-copy h1 { max-width: 740px; font-size: clamp(58px,9.2vw,78px); }
  .home-hero-visual { width: min(100%,680px); }
  .campus-photo-frame { min-height: 0; aspect-ratio: auto; }
  .campus-photo { height: auto; object-fit: contain; object-position: center; }
  .hero-caption-card { left: -8px; }
  .home-intro { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-intro-copy { max-width: 600px; }
  .campus-environments { padding: 34px; }
  .discovery-section { grid-template-columns: 1fr .8fr; gap: 20px; padding: 34px; }
  .benefits-section { gap: 36px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-form-side { padding: 36px 24px; }
  .admin-stat-card, .overview-card, .health-card { padding: 21px; }
  .operations-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .header-inner { width: calc(100% - 30px); min-height: 68px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 9px; }
  .menu-toggle { min-height: 42px; padding: 9px 12px; font-size: 13px; }
  .header-account { gap: 8px; }
  .signout-button { padding: 9px 10px; font-size: 11px; }
  .flash-region { width: calc(100% - 30px); }
  .public-home, .dashboard-page, .management-page, .catalogue-page, .operations-page, .error-page { width: calc(100% - 30px); padding-top: 29px; }
  .home-hero { gap: 17px; padding: 25px 0 37px; }
  .home-hero-copy h1 { font-size: clamp(46px,12vw,60px); letter-spacing: -2.5px; line-height: 1.04; }
  .hero-lead { margin-top: 20px; font-size: 17px; line-height: 1.65; }
  .hero-actions { gap: 10px; margin-top: 22px; }
  .hero-actions .button { flex: 1 1 auto; }
  .hero-note { align-items: flex-start; margin-top: 21px; font-size: 12px; }
  .home-hero-visual { padding: 4px 0 0; }
  .campus-photo-frame { min-height: 0; aspect-ratio: auto; border-top-right-radius: 42px; }
  .campus-photo { height: auto; object-fit: contain; object-position: center; }
  .hero-caption-card { bottom: 0; left: 0; padding: 11px 13px; }
  .caption-icon { width: 32px; height: 32px; }
  .hero-caption-card strong { font-size: 11px; }
  .hero-caption-card small { font-size: 10px; }
  .visual-index { right: 8px; }
  .section-block { margin-top: 52px; }
  .home-intro { gap: 9px; padding: 29px 0 20px; }
  .section-heading h2 { font-size: clamp(29px,8vw,36px); letter-spacing: -1px; }
  .section-intro-copy { font-size: 14px; }
  .feature-grid, .course-grid, .admin-stat-grid, .operations-stat-grid, .health-grid, .student-overview { grid-template-columns: 1fr; }
  .feature-grid, .course-grid { gap: 13px; }
  .feature-card { min-height: 0; padding: 22px; }
  .feature-card h3 { margin-top: 18px; }
  .feature-card p { font-size: 14px; }
  .discovery-section { grid-template-columns: 1fr; gap: 5px; margin-top: 49px; padding: 27px 22px; }
  .discovery-copy h2, .home-cta h2 { font-size: clamp(31px,8vw,38px); }
  .discovery-copy p:not(.eyebrow) { font-size: 14px; }
  .discovery-section { grid-template-columns: 1fr; gap: 17px; margin-top: 43px; padding: 27px 0; }
  .discovery-copy h2 { font-size: clamp(29px,8vw,38px); }
  .campus-environments { padding: 25px 18px; border-radius: 20px; }
  .campus-environments-heading { gap: 10px; margin-bottom: 19px; }
  .campus-gallery { grid-template-columns: 1fr; gap: 14px; }
  .campus-gallery-card img { height: auto; aspect-ratio: auto; object-fit: contain; }
  .campus-gallery-caption { padding: 18px; }
  .campus-gallery-caption h3 { font-size: 19px; }
  .campus-gallery-caption p { font-size: 13px; }
  .campus-photo-note { font-size: 10px; }
  .benefits-section { gap: 23px; }
  .benefit-list article { padding: 15px 0; }
  .benefit-list h3 { font-size: 15px; }
  .benefit-list p { font-size: 13px; }
  .home-cta { align-items: flex-start; flex-direction: column; gap: 21px; margin-top: 49px; padding: 27px 22px; }
  .home-cta-actions { align-items: flex-start; flex-direction: column; gap: 13px; }
  .dashboard-heading { flex-direction: column; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 28px; }
  .page-heading h1, .form-page-heading h1 { font-size: clamp(35px,9vw,45px); letter-spacing: -1.3px; }
  .page-lead { font-size: 15px; }
  .heading-actions { width: 100%; justify-content: stretch; }
  .heading-actions .button { flex: 1 1 auto; }
  .admin-stat-card { min-height: 150px; }
  .stat-caption, .overview-card > span:not(.overview-label):not(.overview-decoration) { font-size: 13px; }
  .content-section { margin-top: 34px; }
  .section-title-row { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 17px; }
  .section-title-row h2 { font-size: 23px; }
  .data-panel, .form-panel { padding: 18px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  table { font-size: 13px; }
  th { padding: 12px; }
  td { padding: 14px 12px; }
  .course-card { min-height: 0; padding: 21px; }
  .course-card h2, .course-card h3 { font-size: 19px; }
  .course-card p { font-size: 13px; }
  .course-card-footer { align-items: flex-start; flex-direction: column; }
  .course-card-footer form, .course-card-footer .button { width: 100%; }
  .course-card-footer .text-action { min-height: 39px; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-page-heading { margin-bottom: 22px; }
  .stacked-form { gap: 17px; }
  .form-control { min-height: 49px; font-size: 16px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .button { flex: 1 1 auto; }
  .auth-form-side { padding: 25px 15px; }
  .auth-form-card { padding: 25px 20px; border-radius: 17px; }
  .auth-form-card h2 { font-size: 30px; }
  .form-intro { font-size: 13px; }
  .form-assurance { line-height: 1.5; }
  .operations-stat-grid { grid-template-columns: 1fr; }
  .operations-stat-grid .admin-stat-card { padding: 21px; }
  .operations-trend { margin-top: 32px; }
  .trend-cell { min-width: 150px; }
  .site-footer { margin-top: 55px; padding: 38px 20px 22px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 25px 17px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-bottom { gap: 8px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (max-width: 800px) {
  .public-home, .dashboard-page, .management-page, .catalogue-page, .operations-page, .error-page { width: calc(100% - 36px); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-form-side { padding: 28px 18px; }
  .operations-stat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .public-home, .dashboard-page, .management-page, .catalogue-page, .operations-page, .error-page { width: calc(100% - 28px); padding-top: 27px; }
  .student-overview, .operations-stat-grid, .health-grid, .detail-grid { grid-template-columns: 1fr; }
  .admin-stat-card { min-height: 140px; }
  .catalogue-meta { flex-direction: column; gap: 5px; }
  .auth-form-card { padding: 23px 18px; }
  .error-page { min-height: 45vh; }
}
