:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #475569;
  --soft: #64748b;
  --line: #cbd5e1;
  --paper: #ffffff;
  --mist: #f1f5f9;
  --teal: #087f73;
  --teal-dark: #075b55;
  --blue: #1d4ed8;
  --burgundy: #8a1746;
  --gold: #a16207;
  --coral: #b9473f;
  --green: #237a4b;
  --max: 1240px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
select {
  font: inherit;
}

button,
.button {
  min-height: 42px;
}

:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 12px;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 10px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
}

.brand small {
  color: var(--muted);
  font-size: .72rem;
}

.brand-f2s {
  color: var(--burgundy);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: #334155;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.language-switcher {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--mist);
}

.language-switcher button {
  min-height: 32px;
  padding: 3px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
}

.language-switcher button[aria-pressed="true"] {
  background: #fff;
  color: var(--teal-dark);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .16);
}

.button,
.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.teal {
  background: var(--teal-dark);
}

.demo-banner {
  padding: 9px 20px;
  border-bottom: 1px solid #ddb357;
  background: #fff7db;
  color: #713f12;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
}

.hero {
  min-height: min(690px, calc(100vh - 72px));
  display: flex;
  align-items: flex-end;
  background-color: #263c3d;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-master {
  background-image:
    linear-gradient(90deg, rgba(3, 24, 35, .93) 0%, rgba(3, 34, 43, .72) 46%, rgba(3, 24, 35, .18) 100%),
    url('./images/eidos-master.jpg');
}

.hero-m1 {
  background-image:
    linear-gradient(90deg, rgba(3, 31, 39, .94) 0%, rgba(5, 67, 65, .70) 50%, rgba(3, 31, 39, .14) 100%),
    url('./images/eidos-m1.jpg');
}

.hero-m2 {
  background-image:
    linear-gradient(90deg, rgba(36, 7, 27, .95) 0%, rgba(103, 20, 58, .72) 50%, rgba(36, 7, 27, .12) 100%),
    url('./images/eidos-m2.jpg');
}

.hero-copy {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 62px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.8vw, 5.4rem);
  font-weight: 700;
  line-height: 1.01;
  overflow-wrap: anywhere;
}

.hero-lead {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
  text-shadow: none;
}

.hero-actions .button.secondary {
  background: rgba(255, 255, 255, .94);
}

.band {
  padding: 64px max(20px, calc((100vw - var(--max)) / 2));
}

.band.compact {
  padding-block: 42px;
}

.band.mist {
  background: var(--mist);
}

.band.ink {
  background: #111827;
  color: #fff;
}

.band.burgundy {
  background: #731b3c;
  color: #fff;
}

.band-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.band-head > div {
  max-width: 820px;
}

.band h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1.1;
}

.band-lead {
  max-width: 800px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.band.ink .band-lead,
.band.burgundy .band-lead,
.band.ink .eyebrow,
.band.burgundy .eyebrow {
  color: #dbe4ef;
}

.route-grid,
.pillar-grid,
.contact-grid,
.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.route-card,
.pillar,
.contact,
.access-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.route-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  color: var(--ink);
  text-decoration: none;
}

.route-level {
  display: grid;
  place-items: center;
  min-height: 170px;
  background: var(--teal-dark);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 700;
}

.route-card.m2 .route-level {
  background: var(--burgundy);
}

.route-copy {
  padding: 24px;
}

.route-copy h3,
.pillar h3,
.contact h3,
.access-item h3 {
  margin: 0;
  font-size: 1.08rem;
}

.route-copy p,
.pillar p,
.contact p,
.access-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.route-copy strong {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue);
}

.word-cloud {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 20px 0;
  list-style: none;
  text-align: center;
}

.word-cloud li {
  color: #d6e4ea;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
}

.word-cloud li:nth-child(3n + 1) { color: #94d7ca; }
.word-cloud li:nth-child(3n + 2) { color: #f6d07a; }
.word-cloud li:nth-child(3n) { color: #f4a7a3; }
.word-cloud [data-weight="1"] { font-size: 1rem; }
.word-cloud [data-weight="2"] { font-size: 1.28rem; }
.word-cloud [data-weight="3"] { font-size: 1.65rem; font-weight: 700; }
.word-cloud [data-weight="4"] { font-size: 2.05rem; font-weight: 700; }

.pillar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillar,
.contact,
.access-item {
  padding: 18px;
  border-top: 4px solid var(--teal);
}

.pillar:nth-child(3n + 2) { border-top-color: var(--burgundy); }
.pillar:nth-child(3n) { border-top-color: var(--gold); }

.pillar-index {
  display: block;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 900;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.facts > div {
  min-width: 0;
  padding: 20px;
  background: #fff;
}

.facts dt {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.calendar-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(150px, .7fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.calendar-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.calendar-controls input,
.calendar-controls select {
  width: 100%;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.calendar-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 12px 0 18px;
  background: var(--line);
}

.calendar-summary div {
  padding: 12px 14px;
  background: #fff;
}

.calendar-summary strong,
.calendar-summary span {
  display: block;
}

.calendar-summary strong {
  font-size: 1.35rem;
}

.calendar-summary span {
  color: var(--muted);
  font-size: .74rem;
}

.calendar-list {
  display: grid;
  gap: 18px;
}

.calendar-week {
  border-top: 3px solid var(--teal);
  background: #fff;
}

.calendar-week h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.calendar-week h3 span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}

.event-row {
  display: grid;
  grid-template-columns: 100px 108px minmax(210px, 1.15fr) minmax(210px, .9fr) minmax(150px, .65fr);
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.event-date,
.event-time {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.event-time {
  color: var(--muted);
}

.event-title {
  padding-left: 10px;
  border-left: 4px solid var(--soft);
  font-weight: 800;
}

.event-title.cm { border-left-color: var(--blue); }
.event-title.td { border-left-color: var(--teal); }
.event-title.tp { border-left-color: var(--burgundy); }

.event-context,
.event-room {
  color: var(--muted);
  font-size: .82rem;
}

.event-room.pending {
  color: #92400e;
  font-weight: 700;
}

.calendar-status,
.calendar-more-wrap {
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
}

.download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.source-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: #fff8db;
  color: #5c420f;
}

.contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact {
  border-top-color: var(--burgundy);
}

.contact h3 {
  color: var(--ink);
}

.contact-role {
  color: var(--burgundy);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(20px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    padding: 4px 0;
  }

  .header-actions {
    justify-self: end;
  }

  .pillar-grid,
  .contact-grid,
  .career-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-row {
    grid-template-columns: 92px 100px minmax(0, 1fr);
  }

  .event-context,
  .event-room {
    grid-column: 3;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 126px;
  }

  .site-header {
    padding-inline: 12px;
  }

  .brand small,
  .login-button {
    display: none;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-copy {
    width: calc(100% - 28px);
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .band {
    padding: 44px 14px;
  }

  .band-head,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .route-grid,
  .pillar-grid,
  .contact-grid,
  .access-grid,
  .network-links,
  .campus-grid,
  .career-grid,
  .document-grid,
  .facts,
  .calendar-controls,
  .calendar-summary {
    grid-template-columns: 1fr;
  }

  .route-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .route-level {
    min-height: 190px;
  }

  .event-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 4px 9px;
  }

  .event-title,
  .event-context,
  .event-room {
    grid-column: 1 / -1;
  }

  .event-title {
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Public portal 2026-2027: programme, procedures and publication context. */

.main-nav a[aria-current="page"] {
  color: var(--teal-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.hero-master,
.hero-year {
  min-height: min(620px, calc(100vh - 72px));
  background-position: center 42%;
}

.hero-year h1 {
  max-width: 1020px;
  font-size: clamp(2.65rem, 5vw, 4.8rem);
}

.hero-m2 {
  background-position: center 46%;
}

.facts-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.source-chip,
.review-badge,
.metric-badge,
.choice-badge,
.assessment-kind,
.route-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .015em;
}

.source-chip {
  padding: 7px 11px;
  border: 1px solid #99c9c2;
  background: #ecfdf8;
  color: #075b55;
  white-space: nowrap;
}

.review-badge {
  padding: 5px 9px;
  border: 1px solid #e2bd66;
  background: #fff6d7;
  color: #6f4600;
}

.button.disabled {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #475569;
  cursor: not-allowed;
}

.route-grid-rich {
  margin-bottom: 24px;
}

.route-kicker {
  margin-bottom: 8px;
  color: var(--teal-dark);
  text-transform: uppercase;
}

.semester-overview,
.procedure-grid,
.timeline-grid,
.specialisation-grid,
.programme-guidance,
.legal-band {
  display: grid;
  gap: 14px;
}

.semester-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.semester-overview article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 6px;
  background: #fff;
}

.semester-overview article:nth-child(3),
.semester-overview article:nth-child(4) {
  border-top-color: var(--burgundy);
}

.semester-overview article > span {
  color: var(--blue);
  font-weight: 900;
}

.semester-overview h3 {
  margin: 14px 0 7px;
  font-size: 1.02rem;
}

.semester-overview p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.jump-nav {
  position: sticky;
  z-index: 20;
  top: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-height: 52px;
  padding: 8px max(16px, calc((100vw - var(--max)) / 2));
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 5px 14px rgba(15, 23, 42, .05);
}

.jump-nav strong {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
}

.jump-nav a {
  color: var(--ink);
  font-size: .8rem;
  font-weight: 750;
  text-decoration: none;
}

.jump-nav a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.procedure-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.procedure-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.procedure-card .step-number {
  display: block;
  margin-bottom: 22px;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 800;
}

.procedure-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.procedure-card p {
  margin: 9px 0 14px;
  color: var(--muted);
}

.procedure-card a {
  overflow-wrap: anywhere;
  font-weight: 750;
}

.icon-card {
  padding-top: 72px;
}

.topic-mark {
  position: absolute;
  top: 20px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #8ecbc1;
  border-radius: 11px;
  background: #e7f8f4;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.icon-card:nth-child(3n + 2) .topic-mark {
  border-color: #e2a9bf;
  background: #fff0f5;
  color: var(--burgundy);
}

.icon-card:nth-child(3n) .topic-mark {
  border-color: #e0c27e;
  background: #fff8db;
  color: #765009;
}

.network-links,
.campus-grid,
.career-grid,
.document-grid {
  display: grid;
  gap: 14px;
}

.network-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.network-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
}

.network-card .network-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78rem;
  font-weight: 900;
}

.network-card:nth-child(2) .network-mark {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.network-card h3,
.network-card p {
  margin: 0;
}

.network-card p {
  margin-top: 7px;
  color: var(--muted);
}

.network-card a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
}

.campus-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.campus-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.building-number {
  display: grid;
  place-items: center;
  min-height: 88px;
  border-radius: 8px;
  background: var(--teal-dark);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 900;
}

.campus-card:nth-child(2) .building-number {
  background: var(--burgundy);
}

.campus-card h3,
.campus-card p {
  margin: 0;
}

.campus-card p {
  margin-top: 8px;
  color: var(--muted);
}

.career-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.career-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-top: 4px solid #83d6c9;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.career-card:nth-child(2) { border-top-color: #f0b7cc; }
.career-card:nth-child(3) { border-top-color: #f2cf7b; }
.career-card:nth-child(4) { border-top-color: #a7c8ff; }

.career-card h3,
.career-card p {
  margin: 0;
}

.career-card p {
  margin-top: 9px;
  color: #dbe4ef;
}

.document-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-grid .document-card {
  grid-template-columns: auto minmax(0, 1fr);
}

.document-grid .document-card .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.compact-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.document-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

.document-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 70px;
  border-radius: 5px 13px 5px 5px;
  background: var(--burgundy);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
}

.document-card h3,
.document-card p {
  margin: 0;
}

.document-card p {
  margin-top: 6px;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact p {
  flex: 1;
}

.contact a {
  display: inline-block;
  margin-top: 7px;
  overflow-wrap: anywhere;
  font-size: .78rem;
  font-weight: 750;
}

.legal-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #f8fafc;
}

.legal-band > div {
  padding: 20px;
  border-left: 4px solid var(--teal);
  background: #fff;
}

.legal-band h2 {
  font-size: 1.25rem;
}

.legal-band p {
  margin: 8px 0 0;
  color: var(--muted);
}

.specialisation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.specialisation-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.specialisation-card.cognitive {
  border-top-color: var(--burgundy);
}

.specialisation-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 900;
}

.specialisation-card.cognitive .specialisation-number {
  background: var(--burgundy);
}

.specialisation-card h3 {
  margin: 2px 0 8px;
  font-size: 1.22rem;
}

.specialisation-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.specialisation-card a {
  font-weight: 800;
}

.choice-note,
.privacy-callout {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-left: 5px solid var(--gold);
  background: #fff8db;
  color: #4f3a08;
}

.privacy-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 20px;
  border-left-color: var(--teal);
  background: #eefbf8;
  color: var(--ink);
}

.privacy-callout strong,
.privacy-callout p {
  grid-column: 1;
}

.privacy-callout p {
  margin: 0;
  color: var(--muted);
}

.privacy-callout .button {
  grid-column: 2;
  grid-row: 1 / 3;
}

.timeline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-grid article {
  position: relative;
  min-width: 0;
  padding: 20px;
  border-top: 4px solid var(--teal);
  background: #fff;
}

.timeline-grid article::after {
  position: absolute;
  top: 28px;
  right: -10px;
  z-index: 2;
  width: 18px;
  height: 2px;
  background: var(--teal);
  content: "";
}

.timeline-grid article:last-child::after {
  display: none;
}

.timeline-grid article > span {
  color: var(--teal-dark);
  font-size: .78rem;
  font-weight: 900;
}

.timeline-grid h3 {
  margin: 12px 0 7px;
}

.timeline-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

/* Detailed programme browser. */

.programme-root {
  min-height: 160px;
}

.programme-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid #a9d6cf;
  background: #effbf8;
}

.programme-source p {
  margin: 0;
  color: #164e4a;
  font-size: .84rem;
}

.programme-controls {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.semester-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.semester-tab {
  min-height: 52px;
  padding: 10px 16px;
  border: 0;
  background: #f8fafc;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

.semester-tab[aria-selected="true"] {
  background: var(--teal-dark);
  color: #fff;
}

.programme-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 15px;
}

.programme-search {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.programme-search input {
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  color: var(--ink);
}

.programme-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.programme-action-row .button {
  min-height: 44px;
}

.programme-status {
  min-width: 90px;
  color: var(--muted);
  font-size: .76rem;
  text-align: right;
}

.programme-panel {
  margin-top: 18px;
}

.programme-block {
  display: grid;
  gap: 10px;
}

.programme-block-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  border-left: 5px solid var(--teal);
  background: #111827;
  color: #fff;
}

.programme-block-head h3 {
  margin: 6px 0 0;
  font-size: 1.2rem;
}

.semester-ects {
  white-space: nowrap;
}

.course-code {
  display: block;
  width: fit-content;
  color: #0f766e;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .035em;
}

.programme-block-head .course-code {
  color: #99f6e4;
}

.ue-card {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.ue-card[open] {
  border-color: #7eaaa4;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.ue-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.ue-summary::-webkit-details-marker {
  display: none;
}

.ue-summary::before {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin-left: 8px;
  color: var(--teal-dark);
  content: "+";
  font-size: 1.4rem;
  font-weight: 600;
}

.ue-card[open] > .ue-summary::before {
  content: "−";
}

.ue-heading {
  display: grid;
  gap: 5px;
}

.ue-heading strong {
  padding-right: 8px;
  font-size: 1rem;
}

.ue-metrics {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  padding-right: 28px;
}

.metric-badge,
.choice-badge,
.assessment-kind {
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.choice-badge {
  border-color: #d8a7bc;
  background: #fff0f6;
  color: #831843;
}

.total-badge {
  border-color: #9ccfc7;
  background: #eafaf7;
  color: var(--teal-dark);
}

.ue-body {
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #fbfdfe;
}

.subheading {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: .73rem;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 18px;
  background: var(--line);
}

.hours-grid > div {
  padding: 10px;
  background: #fff;
}

.hours-grid dt {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
}

.hours-grid dd {
  margin: 3px 0 0;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.hours-grid .hours-total {
  background: #eafaf7;
}

.compact-hours {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  margin-bottom: 12px;
}

.programme-note {
  margin: -5px 0 16px;
  color: var(--muted);
  font-size: .84rem;
}

.source-data-note {
  margin: -5px 0 16px;
  padding: 9px 11px;
  border-left: 3px solid var(--gold);
  background: #fff8db;
  color: #60470d;
  font-size: .8rem;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.component-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid #d7e0e8;
  border-top: 3px solid var(--teal);
  border-radius: 5px;
  background: #fff;
}

.component-card:nth-child(2n) {
  border-top-color: var(--burgundy);
}

.component-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.component-head h4 {
  margin: 5px 0 0;
  font-size: .94rem;
}

.badge-row {
  display: flex;
  justify-content: end;
  flex-wrap: wrap;
  gap: 4px;
}

.assessment-block {
  padding: 10px 11px;
  border-left: 3px solid #94a3b8;
  background: #f8fafc;
}

.assessment-block p {
  margin: 6px 0 0;
  font-size: .79rem;
}

.assessment-block p:first-of-type {
  margin-top: 8px;
}

.assessment-kind {
  padding-block: 2px;
  border-color: #a5b4fc;
  background: #eef2ff;
  color: #3730a3;
}

.academic-details {
  margin-top: 13px;
  border: 1px solid #cbd9e2;
  border-radius: 4px;
  background: #fff;
}

.academic-details > summary {
  position: relative;
  padding: 10px 36px 10px 12px;
  color: var(--navy);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 800;
  list-style: none;
}

.academic-details > summary::-webkit-details-marker {
  display: none;
}

.academic-details > summary::after {
  position: absolute;
  right: 12px;
  top: 9px;
  content: "+";
  color: var(--teal-dark);
  font-size: 1rem;
}

.academic-details[open] > summary::after {
  content: "−";
}

.placement-examples {
  margin-top: 22px;
  border-color: #b9d4d0;
  box-shadow: 0 12px 34px rgb(6 63 59 / 8%);
}

.placement-examples > summary {
  padding: 15px 46px 15px 17px;
  background: #f2f8f7;
  font-size: .96rem;
}

.placement-examples > summary::after {
  top: 14px;
  right: 17px;
}

.placement-examples ol {
  columns: 2;
  column-gap: 34px;
  margin: 0;
  padding: 20px 28px 24px 46px;
  border-top: 1px solid #dce8e6;
  color: #243746;
}

.placement-examples li {
  break-inside: avoid;
  margin: 0 0 13px;
  padding-left: 5px;
  line-height: 1.48;
}

.academic-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid #dce5eb;
  background: #dce5eb;
}

.academic-detail-section {
  min-width: 0;
  padding: 12px;
  background: #fbfdfe;
}

.academic-detail-section:first-child,
.academic-detail-section:nth-child(2) {
  background: #f4faf9;
}

.academic-detail-section h5 {
  margin: 0 0 6px;
  color: var(--burgundy);
  font-size: .71rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.academic-detail-section p,
.course-detail-list {
  margin: 0;
  color: #334155;
  font-size: .8rem;
  line-height: 1.45;
  white-space: pre-line;
}

.academic-detail-section p + p {
  margin-top: 7px;
}

.course-detail-list {
  padding-left: 18px;
}

.course-detail-list li + li {
  margin-top: 4px;
}

.programme-guidance {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.rule-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: #fff;
}

.rule-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.rule-card p,
.rule-card ul {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}

.rule-card li + li {
  margin-top: 5px;
}

.muted {
  color: var(--muted);
}

.programme-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.calendar-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: .75rem;
  white-space: nowrap;
}

.event-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.event-flag {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff0d3;
  color: #7c4700;
  font-size: .66rem;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .facts-four,
  .semester-overview,
  .timeline-grid,
  .compact-cards,
  .career-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .component-grid {
    grid-template-columns: 1fr;
  }

  .academic-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .jump-nav {
    top: 114px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .procedure-grid,
  .specialisation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .programme-tools {
    grid-template-columns: 1fr;
  }

  .programme-status {
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  .placement-examples ol {
    columns: 1;
    padding: 18px 20px 20px 38px;
  }

  .hero-master,
  .hero-year {
    min-height: 74vh;
  }

  .facts-four,
  .semester-overview,
  .procedure-grid,
  .timeline-grid,
  .compact-cards,
  .specialisation-grid,
  .programme-guidance,
  .legal-band,
  .network-links,
  .campus-grid,
  .career-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .campus-card {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 18px;
  }

  .building-number {
    min-height: 68px;
    font-size: 1.35rem;
  }

  .jump-nav {
    top: 116px;
  }

  .document-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .document-card .button {
    grid-column: 1 / -1;
  }

  .specialisation-card {
    grid-template-columns: 1fr;
  }

  .specialisation-number {
    width: 38px;
    height: 38px;
  }

  .programme-source,
  .programme-block-head,
  .component-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .programme-source {
    display: grid;
  }

  .ue-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .ue-summary::before {
    grid-column: 1;
    justify-self: end;
  }

  .ue-heading {
    grid-column: 1;
    grid-row: 1;
    padding-right: 26px;
  }

  .ue-metrics {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    padding-right: 0;
  }

  .hours-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .programme-action-row .button {
    flex: 1;
  }

  .privacy-callout {
    grid-template-columns: 1fr;
  }

  .privacy-callout strong,
  .privacy-callout p,
  .privacy-callout .button {
    grid-column: 1;
    grid-row: auto;
  }

  .timeline-grid article::after {
    display: none;
  }
}

@media print {
  :root {
    --max: none;
  }

  html {
    scroll-padding-top: 0;
  }

  .site-header,
  .demo-banner,
  .jump-nav,
  .hero-actions,
  .programme-controls,
  .calendar-controls,
  .calendar-more-wrap,
  .download-list,
  .privacy-callout .button,
  .site-footer {
    display: none !important;
  }

  .hero,
  .band.ink,
  .band.burgundy {
    min-height: 0;
    background: #fff !important;
    color: #111 !important;
  }

  .hero-copy {
    width: 100%;
    padding: 24px 0;
    text-shadow: none;
  }

  .hero .eyebrow,
  .band.ink .eyebrow,
  .band.burgundy .eyebrow,
  .band.ink .band-lead,
  .band.burgundy .band-lead {
    color: #333;
  }

  .band {
    padding: 22px 0;
  }

  .ue-card {
    break-inside: avoid;
  }

  .ue-card > .ue-body {
    display: block !important;
  }

  .calendar-week,
  .specialisation-card,
  .procedure-card,
  .contact {
    break-inside: avoid;
  }
}
