/* SCEI.edu.au design system — Layout Concept document, sections 2–4.
   Colours from the current scei.edu.au stylesheet; Gold is the single
   action accent. Lora for headings, Montserrat for body/interface. */

:root {
  /* Brand primitives (Layout Concept, Figure 1) */
  --scei-navy: #1B1464;
  --scei-teal: #338495;
  --scei-teal-dark: #2B6F7E;
  --scei-lavender: #5F5B93;
  --scei-lavender-light: #CFCEDF;
  --scei-mist: #DAE8EA;
  --scei-gold: #F2B33D;
  --scei-ink: #1A1A2E;

  /* Semantic tokens */
  --bg: #FDFDFE;
  --bg-tint: #F4F7F8;
  --surface: #FFFFFF;
  --text: var(--scei-ink);
  --text-soft: #44425C;
  --link: var(--scei-teal-dark);
  --primary: var(--scei-navy);
  --accent: var(--scei-gold);
  --border: #E3E4EE;
  --focus: var(--scei-teal-dark);

  /* Type scale (Layout Concept, section 3) */
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;

  /* Spacing tokens — 4/8px grid */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.17;
  margin: 0 0 var(--s-4);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.125rem); font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }

p { margin: 0 0 var(--s-4); max-width: 72ch; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--scei-teal); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -60px;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius-sm);
  transition: top .2s ease-out;
}
.skip-link:focus { top: var(--s-4); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

section { padding-block: var(--s-8); }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--scei-teal-dark);
  margin-bottom: var(--s-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: var(--s-3) var(--s-5);
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out, transform .15s ease-out;
}
.btn:active { transform: scale(.98); }

.btn-gold {
  background: var(--accent);
  color: var(--scei-ink);
  border-color: var(--accent);
}
.btn-gold:hover { background: #E5A52C; border-color: #E5A52C; color: var(--scei-ink); }

.btn-outline {
  background: transparent;
  color: var(--scei-teal-dark);
  border-color: var(--scei-teal-dark);
}
.btn-outline:hover { background: var(--scei-teal-dark); color: #fff; }

.btn-navy {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-navy:hover { background: #2A1E8A; border-color: #2A1E8A; color: #fff; }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--primary);
  color: var(--scei-lavender-light);
  font-size: 13px;
}
.utility-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  padding-block: var(--s-2);
}
.utility-bar a {
  color: #fff;
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.utility-bar a:hover { color: var(--accent); }
.utility-bar .sep { opacity: .45; }
.utility-bar .push { margin-left: auto; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding-block: var(--s-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
}
.brand-text {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
  line-height: 1.25;
}

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 44px;
  padding: var(--s-2) var(--s-3);
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--primary); background: var(--bg-tint); }
.nav-link .caret { transition: transform .2s ease-out; }
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(27, 20, 100, .12);
  padding: var(--s-3);
  display: none;
}
.mega.open { display: block; }
.mega a {
  display: block;
  padding: var(--s-2) var(--s-3);
  min-height: 40px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  border-radius: var(--radius-sm);
}
.mega a:hover { background: var(--bg-tint); color: var(--primary); }
.mega a.mega-parent { font-weight: 600; color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.header-actions .btn { min-height: 40px; padding: var(--s-2) var(--s-4); font-size: 14px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.icon-btn:hover { background: var(--bg-tint); color: var(--primary); }

.menu-toggle { display: none; }

/* ---------- Hero (search-first, TAFE NSW pattern) ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%);
  padding-block: var(--s-8) var(--s-7);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--s-7);
  align-items: center;
}
.hero h1 { margin-bottom: var(--s-4); }
.hero .lede { font-size: 18px; color: var(--text-soft); }

.search-panel {
  margin-top: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-3);
  display: flex;
  gap: var(--s-2);
  box-shadow: 0 8px 24px rgba(27, 20, 100, .07);
}
.search-panel input[type="search"] {
  flex: 1;
  border: 0;
  min-height: 48px;
  padding-inline: var(--s-4);
  font-family: var(--font-body);
  font-size: 16px;
  border-radius: var(--radius-sm);
  background: transparent;
}
.search-panel input[type="search"]:focus { outline: none; }
.search-panel:focus-within { border-color: var(--scei-teal-dark); box-shadow: 0 0 0 3px rgba(43,111,126,.18); }

.hero-figure {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--scei-mist), var(--scei-lavender-light));
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-figure svg { width: 72%; height: auto; }

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
  position: relative;
  z-index: 2;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--scei-mist);
  display: grid;
  place-items: center;
  color: var(--scei-teal-dark);
  margin-bottom: var(--s-3);
}
.feature-card h3 { font-size: 1.125rem; margin-bottom: var(--s-2); }
.feature-card p { font-size: 14.5px; color: var(--text-soft); margin: 0; }

/* ---------- Study-area cards ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
.area-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.area-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27,20,100,.1); }
.area-art { height: 132px; display: grid; place-items: center; }
.area-art svg { width: 64px; height: 64px; }
.area-body { padding: var(--s-4) var(--s-5) var(--s-5); }
.area-body h3 { font-size: 1.125rem; margin-bottom: var(--s-1); }
.area-count { font-size: 13.5px; color: var(--text-soft); }
.area-link {
  margin-top: var(--s-3);
  font-size: 14px;
  font-weight: 600;
  color: var(--scei-teal-dark);
}

/* ---------- Proof band ---------- */
.proof-band {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--s-6);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  text-align: center;
}
.proof-band .stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.proof-band .stat-label { font-size: 13.5px; color: var(--scei-lavender-light); }

/* ---------- Split info blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
.panel {
  border-radius: var(--radius);
  padding: var(--s-6);
}
.panel-tint { background: var(--bg-tint); }
.panel-lavender { background: var(--scei-lavender-light); }
.panel h2, .panel h3 { margin-bottom: var(--s-3); }
.panel .link-list { list-style: none; padding: 0; margin: var(--s-3) 0 0; }
.panel .link-list li { margin-bottom: var(--s-2); }
.panel .link-list a { font-weight: 600; }

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-7);
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 68ch;
  margin: 0 auto var(--s-4);
}
.testimonial cite { font-style: normal; font-weight: 600; color: var(--scei-teal-dark); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  border-radius: var(--radius);
  padding: var(--s-7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.cta-band h2 { color: var(--scei-ink); margin: 0; max-width: 24ch; }
.cta-band p { color: #3D3220; margin: var(--s-2) 0 0; }
.cta-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.cta-band .btn-outline { color: var(--scei-ink); border-color: var(--scei-ink); }
.cta-band .btn-outline:hover { background: var(--scei-ink); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: var(--scei-lavender-light);
  margin-top: var(--s-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) 1.2fr;
  gap: var(--s-6);
  padding-block: var(--s-7);
}
.footer-col h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: var(--s-3);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a {
  color: var(--scei-lavender-light);
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.footer-col a:hover { color: var(--accent); }
.compliance-strip {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: var(--s-4);
  font-size: 13px;
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-block: var(--s-4);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
}

/* ---------- Back to top ---------- */
.back-to-top {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: var(--s-9); }
.not-found .code {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--scei-lavender);
  margin-bottom: var(--s-2);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  section { padding-block: var(--s-6); }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-figure { min-height: 220px; }
  .features { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .header-actions { display: none; }
  .search-panel { flex-direction: column; }
  .search-panel .btn { width: 100%; }
  .cta-band { padding: var(--s-5); }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.drawer.open { display: block; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,.5);
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  background: var(--surface);
  overflow-y: auto;
  padding: var(--s-5);
  padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom));
}
.drawer-panel details { border-bottom: 1px solid var(--border); }
.drawer-panel summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-panel summary::-webkit-details-marker { display: none; }
.drawer-panel .drawer-links { padding: 0 0 var(--s-3); }
.drawer-panel .drawer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-4);
}
.drawer-actions { display: grid; gap: var(--s-3); margin-top: var(--s-5); }


/* ======================================================================
   Stage 2 — Courses (finder, study-area pages, course pages, search,
   shortlist)
   ====================================================================== */

.btn-ghost {
  background: transparent;
  color: var(--link);
  border-color: transparent;
  text-decoration: underline;
}
.btn-ghost:hover { color: var(--primary); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--bg-tint);
  padding-block: var(--s-8) var(--s-7);
}
.page-hero h1 { margin-bottom: var(--s-3); }
.page-hero .lede { font-size: 18px; color: var(--text-soft); max-width: 68ch; }
.page-hero .lede + .lede { margin-top: var(--s-3); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: 14px;
  margin-bottom: var(--s-5);
  color: var(--text-soft);
}
.breadcrumbs a { color: var(--link); }
.breadcrumbs-light { color: var(--scei-lavender-light); }
.breadcrumbs-light a { color: #fff; }

/* ---------- Finder ---------- */
.finder { padding-top: 0; }
.finder-search {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.audience-radio {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.audience-radio legend {
  font-weight: 600;
  font-size: 14.5px;
  padding: 0;
  margin-right: var(--s-2);
}
.audience-radio label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: var(--s-2) var(--s-4);
  border: 2px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  background: var(--surface);
  transition: border-color .2s ease-out, background-color .2s ease-out;
}
.audience-radio label:has(input:checked) {
  border-color: var(--scei-teal-dark);
  background: var(--scei-mist);
}
.audience-radio input { accent-color: var(--scei-teal-dark); width: 18px; height: 18px; }

.finder-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s-6);
  align-items: start;
}

.finder-filters details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
}
.finder-filters summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.finder-filters summary::-webkit-details-marker { display: none; }
.finder-filters summary svg { transition: transform .2s ease-out; }
.finder-filters details[open] summary svg { transform: rotate(180deg); }
.filter-count { color: var(--scei-gold); margin-left: auto; margin-right: var(--s-2); }

.filter-groups { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.filter-group { display: grid; gap: var(--s-2); }
.filter-group label { font-weight: 600; font-size: 14px; }
.filter-group select,
.sort-form select {
  width: 100%;
  min-height: 44px;
  padding: var(--s-2) var(--s-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--surface);
  color: var(--text);
}
.filter-group select:focus-visible,
.sort-form select:focus-visible {
  outline: 3px solid rgba(43,111,126,.35);
  outline-offset: 1px;
  border-color: var(--scei-teal-dark);
}
.filter-actions { display: grid; gap: var(--s-2); }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.results-bar p { margin: 0; color: var(--text-soft); }
.sort-form { display: flex; align-items: center; gap: var(--s-3); }
.sort-form label { font-weight: 600; font-size: 14px; white-space: nowrap; }
.sort-form select { width: auto; }

/* ---------- Course cards ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--s-5);
}
.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.course-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27,20,100,.1); }
.course-card-top {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
}
.chip-navy { background: var(--scei-navy); color: #fff; }
.chip-lavender { background: var(--scei-lavender-light); color: var(--scei-ink); }
.course-card-title { font-size: 1.2rem; margin: 0 0 var(--s-3); }
.course-card-title a { color: var(--primary); text-decoration: none; }
.course-card-title a:hover { text-decoration: underline; }
.course-card-facts {
  display: grid;
  gap: var(--s-2);
  margin: 0 0 var(--s-4);
  font-size: 14px;
}
.course-card-facts div { display: flex; gap: var(--s-2); }
.course-card-facts dt { font-weight: 600; color: var(--text-soft); min-width: 120px; }
.course-card-facts dd { margin: 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--scei-mist);
  color: var(--scei-teal-dark);
}
.badge-gold { background: #FCEBC8; color: #7A5510; }
.course-card-cta { margin-top: auto; align-self: flex-start; }

.shortlist-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--scei-teal-dark);
  cursor: pointer;
  transition: border-color .2s ease-out, background-color .2s ease-out, color .2s ease-out;
}
.shortlist-btn:hover { border-color: var(--scei-teal-dark); }
.shortlist-btn.is-saved {
  background: var(--scei-mist);
  border-color: var(--scei-teal-dark);
}
.shortlist-btn-wide {
  width: 100%;
  padding: var(--s-2) var(--s-4);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Zero results ---------- */
.zero-results {
  text-align: center;
  padding: var(--s-7) var(--s-5);
  background: var(--bg-tint);
  border-radius: var(--radius);
}
.zero-results h2 { margin-bottom: var(--s-2); }
.zero-areas { margin-top: var(--s-6); text-align: left; }
.zero-enquire { margin-top: var(--s-5); }

/* ---------- Course page ---------- */
.course-hero {
  background: var(--scei-navy);
  color: #fff;
  padding-block: var(--s-7);
}
.course-hero h1 { color: #fff; max-width: 22ch; margin-bottom: var(--s-3); }
.course-code {
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--scei-gold);
  margin-bottom: var(--s-2);
}
.course-cricos { color: var(--scei-lavender-light); margin: 0; font-weight: 600; }
.course-hero-main {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: var(--s-7);
  align-items: start;
}
.audience-toggle {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: var(--s-5);
}
.audience-prompt { font-size: 14px; color: var(--scei-lavender-light); margin: 0 0 var(--s-3); }
.audience-label { font-weight: 700; margin: 0 0 var(--s-2); }
.audience-buttons { display: grid; gap: var(--s-2); }
.audience-btn {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.audience-btn:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.audience-btn.is-active {
  background: var(--scei-gold);
  border-color: var(--scei-gold);
  color: var(--scei-ink);
}

.key-facts {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: var(--s-5);
}
.key-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-5);
}
.fact dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--scei-teal-dark);
  margin-bottom: var(--s-1);
}
.fact dd { margin: 0; font-weight: 600; font-size: 15px; }
.fact dd a { font-weight: 600; }
.fact-sub { display: block; font-weight: 400; font-size: 13px; color: var(--text-soft); }

.anchor-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(27,20,100,.05);
}
.anchor-bar .container {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  padding-block: var(--s-2);
  scrollbar-width: thin;
}
.anchor-bar a {
  white-space: nowrap;
  padding: var(--s-2) var(--s-4);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
}
.anchor-bar a:hover { background: var(--bg-tint); color: var(--primary); }

.course-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s-7);
  align-items: start;
  padding-top: var(--s-7);
}
.course-main { min-width: 0; }
.course-section {
  padding-block: 0 var(--s-7);
  scroll-margin-top: 120px;
}
.course-section h2 { margin-bottom: var(--s-4); }
.block-h {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: var(--s-5) 0 var(--s-3);
  color: var(--primary);
}
.block-list { padding-left: 1.2em; display: grid; gap: var(--s-2); margin: 0 0 var(--s-4); }
.block-list li::marker { color: var(--scei-teal-dark); }
/* Grid items default to min-width:auto, which lets long unbreakable strings
   (e.g. URLs in verbatim content) force page overflow on small screens. */
.block-list li { min-width: 0; overflow-wrap: anywhere; }
.course-section p { max-width: 75ch; overflow-wrap: break-word; }
.fine-print { font-size: 13.5px; color: var(--text-soft); }

.table-scroll { overflow-x: auto; margin-bottom: var(--s-4); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--surface);
}
.data-table th, .data-table td {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border);
  vertical-align: top;
}
.data-table thead th {
  background: var(--scei-navy);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
}
.data-table tbody tr:nth-child(even) { background: var(--bg-tint); }
.units-table td:first-child { font-weight: 700; white-space: nowrap; color: var(--scei-teal-dark); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
}
.student-experience .testimonial { margin: 0; }

.action-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
  box-shadow: 0 10px 30px rgba(27,20,100,.08);
}
.action-card .btn { width: 100%; }
.action-link {
  text-align: center;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.related-courses h2 { margin-bottom: var(--s-5); }

.search-page-form { max-width: 640px; margin-top: var(--s-4); }
.search-results { padding-top: var(--s-6); }
.results-count { color: var(--text-soft); margin-bottom: var(--s-5); }
.shortlist-actions { margin-top: var(--s-6); justify-content: center; display: flex; gap: var(--s-3); flex-wrap: wrap; }

.mobile-action-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--s-2) var(--s-4);
  gap: var(--s-3);
  box-shadow: 0 -4px 16px rgba(27,20,100,.12);
}
.mobile-action-bar .btn { flex: 1; min-height: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .finder-layout { grid-template-columns: 1fr; }
  .course-layout { grid-template-columns: 1fr; }
  .action-card {
    position: static;
    order: -1;
    margin-bottom: var(--s-6);
  }
  .course-hero-main { grid-template-columns: 1fr; gap: var(--s-5); }
}

@media (max-width: 767px) {
  .mobile-action-bar { display: flex; }
  body:has(.mobile-action-bar) .site-footer { padding-bottom: 76px; }
  .anchor-bar { top: 0; }
  .course-section { scroll-margin-top: 100px; }
  .key-facts-grid { grid-template-columns: repeat(2, 1fr); }
  .results-bar { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Stage 3 — Study with us
   ============================================================ */

/* Pill tabs (audience + year switchers) */
.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.pill-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s-2) var(--s-5);
  border-radius: 999px;
  border: 2px solid var(--scei-teal-dark);
  color: var(--scei-teal-dark);
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  transition: background .15s ease, color .15s ease;
}
.pill-tab:hover { background: var(--scei-mist); }
.pill-tab.is-active {
  background: var(--scei-navy);
  border-color: var(--scei-navy);
  color: #fff;
}
.year-tabs { margin: 0 0 var(--s-6); }

/* Hub link cards */
.hub-section { padding: var(--s-7) var(--s-4); }
.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-4);
}
.hub-cards-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.hub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 44px;
  padding: var(--s-5) var(--s-5);
  border: 1px solid var(--scei-lavender-light);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: var(--scei-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hub-card:hover {
  border-color: var(--scei-teal);
  box-shadow: 0 4px 16px rgba(27, 20, 100, .08);
}
.hub-card-title { font-weight: 600; font-size: 1.05rem; }
.hub-card-arrow { color: var(--scei-teal-dark); font-weight: 700; }

/* Steps (how to apply) */
.steps-section { padding: var(--s-7) var(--s-4); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
  max-width: 60rem;
}
.step-card {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--scei-lavender-light);
  border-radius: var(--radius);
  background: #fff;
}
.step-num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--scei-navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.step-body { min-width: 0; }
.step-body h2 { margin: 0 0 var(--s-2); font-size: 1.25rem; }
.step-body p { margin: 0 0 var(--s-2); max-width: 75ch; }
.step-body .block-list { margin-top: var(--s-2); }

.useful-links {
  margin-top: var(--s-7);
  max-width: 60rem;
}
.link-list {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}
.link-list a { color: var(--scei-teal-dark); font-weight: 600; }

/* Intake dates */
.term-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.term-card {
  border: 1px solid var(--scei-lavender-light);
  border-radius: var(--radius);
  background: #fff;
  padding: var(--s-5);
  min-width: 0;
}
.term-card h2 { margin: 0 0 var(--s-3); }
.intake-table th[scope="row"] {
  text-align: left;
  white-space: nowrap;
  color: var(--scei-navy);
  font-weight: 600;
}
.intake-table td { min-width: 0; overflow-wrap: anywhere; }
.holiday-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-1);
}

/* Generic long-form content page (VET Student Loans etc.) */
.content-page { padding: var(--s-7) var(--s-4); }
.content-page > p,
.content-page .acc-body p { max-width: 75ch; overflow-wrap: break-word; }
.content-page .block-h { margin-top: var(--s-6); }
.content-page > p:first-child { margin-top: 0; }
.content-page .cta-band { margin-top: var(--s-7); }

/* Accordion (Work Ready) */
.accordion {
  display: grid;
  gap: var(--s-3);
  max-width: 60rem;
}
.acc-item {
  border: 1px solid var(--scei-lavender-light);
  border-radius: var(--radius);
  background: #fff;
}
.acc-item summary {
  cursor: pointer;
  padding: var(--s-4) var(--s-5);
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--scei-navy);
  list-style: none;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--scei-teal-dark);
}
.acc-item[open] summary::after { content: "\2212"; }
.acc-body {
  padding: 0 var(--s-5) var(--s-5);
}
.acc-body .block-h:first-child { margin-top: 0; }

/* Fees page */
.fees-section { padding: var(--s-7) var(--s-4); }
.fees-section h2 { margin: 0 0 var(--s-4); }
.fees-section .block-h { margin-top: var(--s-6); }
.fees-section .table-scroll { margin-bottom: var(--s-4); }
.other-fees-table { max-width: 40rem; }
.other-fees-table th[scope="row"] { text-align: left; font-weight: 500; }

@media (max-width: 900px) {
  .term-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .step-card { flex-direction: column; }
  .intake-table th[scope="row"] { white-space: normal; }
}

/* ============================================================
   Stage 4 — International + student life
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* International hub */
.course-cricos {
  color: var(--scei-lavender-light);
  font-weight: 600;
  letter-spacing: .02em;
  margin: var(--s-2) 0 0;
}
.city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
.city-card {
  border: 1px solid var(--scei-lavender-light);
  border-radius: var(--radius);
  background: #fff;
  padding: var(--s-5);
  min-width: 0;
}
.city-card h3 { margin: 0 0 var(--s-3); color: var(--scei-navy); }
.city-card p { max-width: 65ch; }
.support-accordion { margin-top: var(--s-4); }
.support-more { margin-top: var(--s-5); }
.compliance-panel {
  margin: var(--s-7) 0;
  padding: var(--s-5);
  border: 1px solid var(--scei-lavender-light);
  border-left: 4px solid var(--scei-navy);
  border-radius: var(--radius);
  background: var(--scei-mist);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}
.compliance-panel h2 { margin: 0; font-size: 1.25rem; }
.compliance-panel p { margin: var(--s-1) 0 0; font-weight: 600; }
.compliance-panel .link-list { margin-top: 0; }

/* Agent directory */
.agent-search { max-width: 40rem; margin-top: var(--s-4); }
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s-4);
  margin: var(--s-5) 0 var(--s-7);
}
.agent-card {
  border: 1px solid var(--scei-lavender-light);
  border-radius: var(--radius);
  background: #fff;
  padding: var(--s-5);
  min-width: 0;
}
.agent-card h2 {
  font-size: 1.05rem;
  margin: 0 0 var(--s-2);
  color: var(--scei-navy);
  overflow-wrap: break-word;
}
.agent-address { margin: 0 0 var(--s-2); color: #44445a; }
.agent-map { font-weight: 600; }
.agent-contact {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-1);
  min-width: 0;
}
.agent-contact li { min-width: 0; overflow-wrap: anywhere; }
.agent-contact a { overflow-wrap: anywhere; }

/* Student support page */
.agencies-table td { vertical-align: top; }

/* Policies & forms */
.policies-table td:first-child { min-width: 20rem; }
.policies-table a { font-weight: 600; }

@media (max-width: 900px) {
  .city-grid { grid-template-columns: 1fr; }
  .policies-table td:first-child { min-width: 0; }
}

/* ==========================================================================
   Stage 5 — About, Team, Campuses, Contact & Enquiry
   ========================================================================== */

.page-intro {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--teal-dark);
  max-width: 60ch;
}

.highlight-list {
  list-style: none;
  margin: 0 0 var(--space-2xl);
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.highlight-list li {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.signoff {
  margin-top: var(--space-lg);
}
.signoff-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}
.signoff-role {
  color: var(--teal-dark);
}

.accreditation-list li {
  font-weight: 600;
}

/* Team */
.team-group {
  margin-bottom: var(--space-2xl);
}
.team-subgroup {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--teal-dark);
  margin: var(--space-lg) 0 var(--space-sm);
}
.people-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.person-card {
  background: var(--white);
  border: 1px solid var(--lavender-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  min-width: 0;
}
.person-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  margin: 0 0 0.25rem;
  color: var(--navy);
}
.person-role {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.9375rem;
}

/* Campuses */
.city-intro {
  margin-bottom: var(--space-2xl);
}
.campus-card {
  background: var(--white);
  border: 1px solid var(--lavender-light);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  min-width: 0;
}
.campus-address {
  font-weight: 600;
}
.campus-facilities-heading {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--teal-dark);
}
.facility-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem 1.5rem;
  grid-template-columns: 1fr;
}
.facility-list li {
  padding-left: 1.25rem;
  position: relative;
}
.facility-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--teal);
}

/* Contact & enquiry forms */
.hub-card-static {
  cursor: default;
}
.hub-card-static p {
  margin: 0.5rem 0 0;
  font-weight: 400;
}
.form-section {
  max-width: 44rem;
  margin-bottom: var(--space-2xl);
}
.required-note {
  color: var(--teal-dark);
  font-size: 0.9375rem;
}
.enquiry-form {
  display: grid;
  gap: 1.25rem;
  margin: var(--space-lg) 0;
}
.form-field {
  display: grid;
  gap: 0.375rem;
}
.form-field label {
  font-weight: 600;
  color: var(--ink);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.75rem 1rem;
  border: 1px solid var(--lavender-light);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  min-height: 44px;
  width: 100%;
}
.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--teal);
}
.consent-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 400;
}
.consent-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.form-status {
  margin: 0;
  font-weight: 600;
  color: var(--teal-dark);
}
.privacy-note,
.more-info {
  font-size: 0.9375rem;
  color: var(--teal-dark);
}
.enquiry-confirmation {
  background: var(--mist);
  border-radius: var(--radius);
  padding: var(--space-xl);
  text-align: center;
}

@media (min-width: 640px) {
  .highlight-list,
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .facility-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .people-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .facility-list {
    grid-template-columns: repeat(4, 1fr);
  }
}
