:root {
      --ink: #061f2a;
      --ink-2: #0c3340;
      --muted: #5f737b;
      --line: #dbe5e8;
      --paper: #ffffff;
      --soft: #f4f8f9;
      --soft-2: #eef4f6;
      --magenta: #910048;
      --teal: #6cc6d0;
      --gold: #d8a52d;
      --green: #2d9b72;
      --red: #d14b4b;
      --shadow: 0 14px 34px rgba(6, 31, 42, .10);
      --shadow-strong: 0 18px 48px rgba(6, 31, 42, .13);
      --radius: 22px;
      --max: 1180px;
      --site-header-h: 64px;
      --programme-nav-h: 46px;
      --topbar: calc(var(--site-header-h) + var(--programme-nav-h));
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 18px); }
    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 9% 0%, rgba(108, 198, 208, .17), transparent 28rem),
        radial-gradient(circle at 90% 0%, rgba(145, 0, 72, .12), transparent 28rem),
        linear-gradient(180deg, #f7fbfc 0%, #fff 36%, #f4f8f9 100%);
      line-height: 1.42;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    a { color: inherit; }

.programme-inline-link {
  color: var(--magenta);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(145, 0, 72, .30);
  overflow-wrap: break-word;
}
.programme-inline-link:hover { border-bottom-color: currentColor; }

    img, video { max-width: 100%; display: block; }
    .programme-page { overflow: clip; }
    .site-shell { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 34px); }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      min-height: var(--site-header-h);
      border-bottom: 1px solid rgba(219, 229, 232, .82);
      background: rgba(255, 255, 255, .94);
      backdrop-filter: blur(18px);
    }

    .site-header-inner {
      max-width: min(1320px, calc(100vw - 18px));
      min-height: var(--site-header-h);
      margin: 0 auto;
      padding: 8px clamp(16px, 3vw, 34px);
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      column-gap: clamp(16px, 2vw, 26px);
      align-items: center;
    }

    .site-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-width: 0;
      overflow-x: auto;
      scrollbar-width: none;
      padding: 2px;
    }

    .site-nav::-webkit-scrollbar { display: none; }

    .site-nav a {
      text-decoration: none;
      padding: 8px 10px;
      border-radius: 999px;
      color: var(--ink-2);
      font-size: .82rem;
      font-weight: 880;
      white-space: nowrap;
      letter-spacing: -.01em;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
      background: var(--soft-2);
      outline: none;
    }

    .topbar {
      position: sticky;
      top: var(--site-header-h);
      z-index: 90;
      min-height: var(--programme-nav-h);
      border-bottom: 1px solid rgba(219, 229, 232, .82);
      background: rgba(255, 255, 255, .88);
      backdrop-filter: blur(18px);
    }

    .topbar-inner {
      max-width: min(1320px, calc(100vw - 18px));
      min-height: var(--programme-nav-h);
      margin: 0 auto;
      padding: 6px clamp(16px, 3vw, 34px);
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      column-gap: clamp(14px, 2vw, 24px);
      align-items: center;
    }

    .programme-label {
      display: inline-flex;
      align-items: baseline;
      gap: 7px;
      color: var(--ink);
      text-decoration: none;
      white-space: nowrap;
      min-width: max-content;
    }

    .programme-label strong {
      color: var(--magenta);
      font-weight: 950;
      letter-spacing: -.035em;
    }

    .programme-label span {
      color: var(--muted);
      font-size: .74rem;
      font-weight: 820;
      letter-spacing: -.01em;
    }

    .programme-page-menu {
      display: none;
      position: relative;
      justify-self: end;
    }

    .programme-page-menu summary {
      list-style: none;
      cursor: pointer;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.90);
      padding: 8px 12px;
      color: var(--ink-2);
      font-weight: 900;
      font-size: .84rem;
      box-shadow: 0 7px 16px rgba(6, 31, 42, .06);
    }

    .programme-page-menu summary::-webkit-details-marker { display: none; }

    .programme-page-menu[open] summary {
      background: var(--ink);
      color: #fff;
      border-color: var(--ink);
    }

    .programme-page-menu > div {
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      width: min(280px, calc(100vw - 32px));
      border: 1px solid rgba(219,229,232,.90);
      border-radius: 18px;
      background: rgba(255,255,255,.96);
      box-shadow: 0 18px 42px rgba(6,31,42,.16);
      padding: 8px;
      display: grid;
      gap: 4px;
    }

    .programme-page-menu a {
      text-decoration: none;
      color: var(--ink-2);
      font-weight: 850;
      padding: 9px 10px;
      border-radius: 12px;
    }

    .programme-page-menu a:hover,
    .programme-page-menu a:focus-visible {
      background: var(--soft-2);
      outline: none;
    }

    .brand { display: inline-flex; align-items: center; text-decoration: none; font-weight: 900; white-space: nowrap; }
    .brand img { width: 106px; height: auto; }

    .section-nav {
      display: flex;
      gap: 5px;
      justify-content: center;
      overflow-x: auto;
      scrollbar-width: none;
      padding: 2px;
    }
    .section-nav::-webkit-scrollbar { display: none; }
    .section-nav a {
      text-decoration: none;
      padding: 7px 9px;
      border-radius: 999px;
      color: var(--ink-2);
      font-size: .76rem;
      font-weight: 850;
      white-space: nowrap;
      letter-spacing: -.01em;
    }
    .section-nav a:hover, .section-nav a:focus-visible { background: var(--soft-2); outline: none; }
    .section-nav a.active { background: var(--ink); color: #fff; }

    .top-actions, .hero-actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
    .top-actions { white-space: nowrap; justify-content: end; }
    .hero-actions { margin-top: 18px; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 38px;
      border-radius: 999px;
      padding: 9px 14px;
      text-decoration: none;
      font-weight: 900;
      border: 1px solid transparent;
      transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
      line-height: 1;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 10px 24px rgba(145, 0, 72, .20); }
    .btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(6, 31, 42, .16); }
    .btn-soft { background: rgba(255, 255, 255, .86); color: var(--ink); border-color: var(--line); }
    .btn-line { background: transparent; color: var(--ink); border-color: rgba(6, 31, 42, .18); }

    .reading-progress {
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 4px;
      background: rgba(219, 229, 232, .55);
      overflow: hidden;
    }
    .reading-progress span { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--magenta), var(--teal)); transition: width .16s ease; }

    .hero { padding: clamp(22px, 3.2vw, 44px) 0 clamp(24px, 3.2vw, 42px); }
    .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .78fr); gap: clamp(18px, 3vw, 34px); align-items: center; }

    .eyebrow, .tag {
      display: inline-flex;
      width: fit-content;
      align-items: center;
      gap: 8px;
      border-radius: 999px;
      font-weight: 950;
    }
    .eyebrow {
      padding: 6px 10px;
      border: 1px solid rgba(145, 0, 72, .16);
      background: rgba(145, 0, 72, .07);
      color: var(--magenta);
      font-size: .75rem;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 14px;
    }
    .tag { padding: 5px 9px; background: var(--soft-2); color: var(--ink-2); font-size: .73rem; margin-bottom: 10px; }

    h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: -.055em; }
    h1 { font-size: clamp(2.65rem, 5.0vw, 5.25rem); line-height: .96; max-width: 820px; }
    h2 { font-size: clamp(1.95rem, 3.35vw, 3.65rem); max-width: 860px; }
    h3 { font-size: clamp(1.18rem, 1.75vw, 1.72rem); letter-spacing: -.04em; }
    h4 { font-size: 1rem; letter-spacing: -.02em; }
    h1 span, h2 span { color: var(--magenta); }

    .lede { font-size: clamp(1.02rem, 1.28vw, 1.22rem); color: var(--ink-2); max-width: 760px; margin: 14px 0 0; }
    .micro-copy { color: var(--muted); font-size: .92rem; max-width: 760px; margin: 12px 0 0; }

    .hero-answer {
      margin-top: 14px;
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 11px;
      align-items: start;
      max-width: 760px;
      padding: 14px;
      border-radius: 18px;
      background: rgba(255,255,255,.72);
      border: 1px solid rgba(219,229,232,.92);
      box-shadow: 0 10px 26px rgba(6,31,42,.07);
    }
    .hero-answer > strong:first-child { display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:rgba(145,0,72,.10); color:var(--magenta); font-weight:950; }
    .hero-answer p { margin: 0; color: var(--ink-2); font-size: .95rem; }
    .hero-answer p strong { display:block; color: var(--ink); margin-bottom: 3px; line-height: 1.1; }

    .hero-panel {
      border: 1px solid rgba(219,229,232,.86);
      border-radius: calc(var(--radius) + 8px);
      background: rgba(255,255,255,.88);
      box-shadow: var(--shadow-strong);
      overflow: hidden;
    }
    .hero-visual { min-height: 190px; background: var(--ink); position: relative; overflow: hidden; }
    .hero-visual img { width: 100%; height: 100%; min-height: 190px; max-height: 240px; object-fit: cover; }
    .hero-visual::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(6,31,42,.04), rgba(6,31,42,.56)); }
    .hero-visual-caption { position:absolute; left:16px; right:16px; bottom:14px; z-index:1; color:#fff; display:grid; gap:4px; }
    .hero-visual-caption strong { font-size:1.2rem; letter-spacing:-.04em; line-height:1; }
    .hero-visual-caption span { color:rgba(255,255,255,.82); font-weight:750; font-size:.84rem; }

    .hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 14px; }
    .fact-pill { border-radius: 16px; background: var(--soft); border: 1px solid var(--line); padding: 10px 11px; min-height: 78px; display:grid; align-content:center; }
    .fact-pill strong { display: block; color: var(--magenta); font-size: 1.02rem; letter-spacing: -.03em; line-height: 1.05; }
    .fact-pill span { display: block; color: var(--muted); font-size: .80rem; font-weight: 720; margin-top: 4px; }

    .hero-jump { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
    .hero-jump a { text-decoration:none; border:1px solid var(--line); background:rgba(255,255,255,.8); border-radius:999px; padding:8px 11px; font-weight:850; font-size:.82rem; color:var(--ink-2); }
    .hero-jump a:hover { background:var(--ink); color:#fff; }

    .section { padding: clamp(30px, 4.8vw, 62px) 0; border-top: 1px solid rgba(219, 229, 232, .85); }
    .section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .50fr); gap: 20px; align-items: end; margin-bottom: 20px; }
    .section-kicker { color: var(--magenta); font-weight: 950; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: 9px; }
    .section-head p { color: var(--muted); margin: 0; font-size: .98rem; }

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

    .card, .dark-card, .side-card, .year-card, .resource-card, .cta-band, .video-card, .date-card, .step-card, .module-card, .media-card, .compact-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255,255,255,.90);
      box-shadow: var(--shadow);
      padding: clamp(16px, 1.55vw, 22px);
      min-width: 0;
    }
    .card p, .resource-card p, .year-card p, .media-card p, .video-card p, .step-card p, .compact-card p { color: var(--muted); margin: 8px 0 0; }
    .card ul, .year-card ul, .resource-card ul, .compact-card ul { color: var(--muted); margin: 10px 0 0; padding-left: 1.1rem; }
    li { margin: 4px 0; }

    .dark-card { background: linear-gradient(135deg, var(--ink), #0d4654); color: #fff; overflow: hidden; position: relative; }
    .dark-card p, .dark-card li, .dark-card .mini-list li { color: rgba(255,255,255,.80); border-color: rgba(255,255,255,.16); }
    .dark-card .tag { background: rgba(255,255,255,.12); color: #fff; }
    .dark-card h1 span, .dark-card h2 span { color: var(--teal); }

    .overview-top { display:grid; grid-template-columns: minmax(0, 1fr) 330px; gap:14px; align-items:start; }
    .outcomes-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; margin-top:14px; }
    .outcome-card { min-height: 164px; display:grid; gap:10px; align-content:start; }
    .outcome-card strong { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(145,0,72,.10); color: var(--magenta); font-weight: 950; }

    .side-card { position: sticky; top: calc(var(--topbar) + 18px); display: grid; gap: 11px; }
    .side-card .small-note { color: var(--muted); font-size: .84rem; margin: 0; }
    .mini-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
    .mini-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .90rem; }
    .mini-list li strong { color: var(--ink); white-space: nowrap; text-align: right; }

    details.description-details { margin-top:14px; border:1px solid var(--line); border-radius: var(--radius); background:rgba(255,255,255,.78); box-shadow:var(--shadow); overflow:hidden; }
    details.description-details summary { cursor:pointer; list-style:none; padding:16px 20px; font-weight:950; color:var(--ink); display:flex; justify-content:space-between; gap:16px; align-items:center; }
    details.description-details summary::-webkit-details-marker { display:none; }
    details.description-details summary span { color:var(--magenta); font-size:.88rem; }
    .long-copy { padding: 0 20px 20px; }
    .long-copy p { margin: 0 0 .85rem; color: var(--ink-2); font-size: 1rem; }
    .long-copy p:last-child { margin-bottom: 0; }

    .foundation-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap:14px; align-items:stretch; }
    .foundation-points { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; margin-top:14px; }
    .principle-card { display: grid; gap: 10px; }
    .principle-card strong { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(145, 0, 72, .10); color: var(--magenta); font-weight: 950; }

    .visual-band { display: grid; grid-template-columns: .74fr 1.26fr; gap: 14px; align-items: stretch; }
    .visual-tile { min-height: 260px; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); background: var(--ink); }
    .visual-tile img, .visual-tile video { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
    .visual-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(6,31,42,.70)); pointer-events: none; }
    .visual-caption { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; z-index: 1; font-weight: 850; }

    .timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: years; }
    .year-card { position: relative; overflow: hidden; min-height: 286px; }
    .year-card::after { counter-increment: years; content: "0" counter(years); position: absolute; right: 16px; top: 10px; font-size: 4.2rem; line-height: 1; font-weight: 950; letter-spacing: -.08em; color: rgba(145, 0, 72, .08); }

    .curriculum-tabs { display: grid; gap: 14px; }
    .tab-buttons { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; top: calc(var(--topbar) + 8px); z-index: 12; padding: 8px 0; background: linear-gradient(180deg, rgba(247,251,252,.96), rgba(247,251,252,.80)); backdrop-filter: blur(12px); }
    .tab-buttons button { appearance: none; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.88); color: var(--ink-2); font-weight: 900; cursor: pointer; padding: 9px 13px; box-shadow: 0 7px 16px rgba(6, 31, 42, .06); }
    .tab-buttons button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
    .tab-panel { display: none; }
    .tab-panel.active { display: block; }
    .curriculum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .module-card { border-radius: 18px; padding: 16px; }
    .module-card h4 { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--ink); }
    .module-card h4 span { color: var(--magenta); white-space: nowrap; font-size: .88rem; }
    .module-card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }

    .bsc-curriculum-tabs { gap: 16px; }
    .bsc-module-stack { display: grid; gap: 14px; }
    .bsc-module { border: 1px solid rgba(219, 229, 232, .92); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 16px 38px rgba(6, 31, 42, .09); overflow: hidden; }
    .bsc-module summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 17px 18px; color: var(--ink); }
    .bsc-module summary::-webkit-details-marker { display: none; }
    .bsc-module summary span { font-size: clamp(1.08rem, 1.65vw, 1.55rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 950; }
    .bsc-module summary strong { justify-self: end; display: inline-flex; align-items: center; min-height: 34px; padding: 7px 11px; border-radius: 999px; background: rgba(145, 0, 72, .08); border: 1px solid rgba(145, 0, 72, .14); color: var(--magenta); font-size: .86rem; white-space: nowrap; }
    .bsc-module summary::after { content: "+"; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 950; line-height: 1; }
    .bsc-module[open] summary::after { content: "–"; }
    .bsc-module-body { border-top: 1px solid rgba(219, 229, 232, .82); padding: 18px; background: linear-gradient(180deg, rgba(244,248,249,.82), rgba(255,255,255,.96)); }
    .bsc-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .bsc-course-card { min-height: 116px; border-radius: 18px; padding: 14px; background: #fff; border: 1px solid rgba(219, 229, 232, .92); box-shadow: 0 10px 24px rgba(6, 31, 42, .06); display: grid; align-content: start; gap: 10px; }
    .bsc-course-meta { display: flex; flex-wrap: wrap; gap: 6px; }
    .bsc-course-meta span { display: inline-flex; align-items: center; min-height: 28px; border-radius: 999px; padding: 5px 9px; background: rgba(108,198,208,.16); color: var(--ink-2); font-size: .78rem; font-weight: 900; }
    .bsc-course-card h4 { margin: 0; color: var(--ink); font-size: clamp(.98rem, 1.15vw, 1.12rem); line-height: 1.16; letter-spacing: -.025em; }

    .logo-cloud { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .logo-cloud span { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.88); font-weight: 900; color: var(--ink-2); box-shadow: 0 7px 16px rgba(6, 31, 42, .06); font-size:.90rem; }
    .dark-card .logo-cloud span { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.16); }

    .callout { border-radius: var(--radius); background: linear-gradient(135deg, rgba(145, 0, 72, .08), rgba(108, 198, 208, .14)); border: 1px solid rgba(145, 0, 72, .12); padding: 18px; }
    .callout p { margin: 0; color: var(--ink-2); }

    .testimonial-layout { display: grid; grid-template-columns: minmax(0, .90fr) minmax(320px, 1.10fr); gap: 14px; align-items: stretch; }
    .video-card { padding: 0; overflow: hidden; position: relative; background: #020f15; }
    .video-frame { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #061f2a, #0d4654); display: grid; place-items: center; }
    .video-frame video { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
    .play-overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; padding: 20px; background: radial-gradient(circle at 50% 45%, rgba(145,0,72,.18), rgba(6,31,42,.34)); pointer-events: none; }
    .play-overlay strong { display: block; font-size: clamp(1.35rem, 2.4vw, 2.2rem); line-height: 1; letter-spacing: -.055em; }
    .play-overlay span { display: block; margin-top: 8px; color: rgba(255,255,255,.78); font-weight: 700; }
    .video-note { padding: 16px; background: #fff; }
    .testimonial-identity { display:grid; gap:4px; margin:14px 0 4px; padding:14px; border-radius:16px; background:var(--soft); border:1px solid var(--line); }
    .testimonial-identity strong { color:var(--magenta); font-size:1.05rem; letter-spacing:-.025em; }
    .testimonial-identity span { color:var(--muted); font-weight:760; }

    .media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .media-card { padding: 0; overflow: hidden; }
    .media-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }
    .media-card-body { padding: 16px; }

    .admissions-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .step-card { border-radius: 18px; }
    .step-card strong { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--magenta); color: #fff; margin-bottom: 10px; }

    .date-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .date-card { border-radius: 18px; }
    .date-card.closed { opacity: .74; }
    .date-card dl { display: grid; gap: 7px; margin: 10px 0 0; }
    .date-card div { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; border-top: 1px solid var(--line); }
    .date-card dt { color: var(--muted); }
    .date-card dd { margin: 0; font-weight: 900; text-align: right; }

    .cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: linear-gradient(135deg, var(--ink), #0d4654); color: #fff; overflow: hidden; position: relative; }
    .cta-band p { color: rgba(255,255,255,.78); margin: 8px 0 0; }
    .cta-band .btn-soft { color: var(--ink); }
    .footer-note { padding: 26px 0 46px; color: var(--muted); font-size: .86rem; }

    .page-quick-nav { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 7px; transition: opacity .18s ease, transform .18s ease; }
    .page-quick-nav button { appearance: none; border: 1px solid rgba(219,229,232,.86); width: 44px; min-height: 40px; border-radius: 15px; background: rgba(255,255,255,.88); color: var(--ink); box-shadow: 0 12px 30px rgba(6,31,42,.14); backdrop-filter: blur(14px); font-weight: 950; cursor: pointer; transition: transform .14s ease, background .14s ease, color .14s ease; }
    .page-quick-nav button:hover, .page-quick-nav button:focus-visible { transform: translateY(-1px); background: var(--ink); color: #fff; outline: none; }
    .page-quick-nav button { font-size: 1rem; line-height: 1; }

    .section-hover-zone { position: fixed; top: 0; left: 0; width: 1vw; min-width: 10px; height: 100vh; z-index: 56; pointer-events: auto; }
    .section-hover-panel { position: fixed; top: calc(var(--topbar) + 14px); left: 14px; z-index: 57; width: min(326px, calc(100vw - 28px)); max-height: calc(100vh - 90px); display: grid; grid-template-rows: auto 1fr; gap: 10px; border: 1px solid rgba(219,229,232,.90); border-radius: 22px; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); box-shadow: 0 22px 54px rgba(6,31,42,.16); padding: 12px; opacity: 0; transform: translateX(-105%); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
    .section-hover-panel.is-visible { opacity: 1; transform: translateX(0); pointer-events: auto; }
    .section-hover-panel-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 4px 4px 8px; border-bottom: 1px solid rgba(219,229,232,.86); }
    .section-hover-panel-header strong { font-size: .90rem; letter-spacing: -.02em; }
    .section-hover-panel-header span { color: var(--muted); font-size: .74rem; font-weight: 850; }
    .section-hover-list { display: grid; gap: 6px; overflow-y: auto; overscroll-behavior: contain; padding-right: 3px; }
    .section-hover-list::-webkit-scrollbar { width: 7px; }
    .section-hover-list::-webkit-scrollbar-thumb { background: rgba(95,115,123,.28); border-radius: 999px; }
    .section-hover-list button { appearance: none; width: 100%; border: 1px solid rgba(219,229,232,.86); border-radius: 16px; background: rgba(255,255,255,.84); color: var(--ink-2); display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: center; padding: 8px 10px; text-align: left; cursor: pointer; transition: background .14s ease, color .14s ease, border-color .14s ease, transform .14s ease; }
    .section-hover-index { display: grid; place-items: center; width: 30px; height: 26px; border-radius: 10px; background: var(--soft-2); color: var(--magenta); font-size: .70rem; font-weight: 950; }
    .section-hover-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; font-weight: 820; letter-spacing: -.01em; }
    .section-hover-list button.is-active { background: linear-gradient(135deg, var(--ink), #0d4654); border-color: rgba(6,31,42,.25); color: #fff; }
    .section-hover-list button.is-active .section-hover-index { background: rgba(255,255,255,.14); color: #fff; }
    @media (hover:hover) and (pointer:fine) {
      .section-hover-list button:hover { background: var(--ink); border-color: rgba(6,31,42,.22); color: #fff; transform: translateX(2px); }
      .section-hover-list button:hover .section-hover-index { background: rgba(255,255,255,.14); color: #fff; }
    }


    .compact-details {
      margin-top: 14px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(255,255,255,.86);
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .compact-details summary {
      cursor: pointer;
      list-style: none;
      padding: 13px 16px;
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: center;
      font-weight: 950;
      color: var(--ink);
      letter-spacing: -.02em;
    }
    .compact-details summary::-webkit-details-marker { display: none; }
    .compact-details summary span { color: var(--magenta); font-size: .88rem; }
    .compact-details[open] summary { border-bottom: 1px solid var(--line); }
    .details-body { padding: 14px 16px 16px; }
    .details-body ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
    .details-body p { margin: 0; color: var(--muted); }
    .resources-details { margin-top: 14px; }
    .compact-resource-grid { padding: 14px; }
    .compact-resource-grid .resource-card { box-shadow: none; }
    .admissions-compact {
      display: grid;
      grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr);
      gap: 14px;
      align-items: start;
    }
    .admissions-detail-stack { display: grid; gap: 10px; }
    .admissions-detail-stack .compact-details { margin-top: 0; }
    .next-intake-card { min-height: 100%; }
    .mini-dates { display: grid; gap: 7px; margin: 10px 0 0; }
    .mini-dates div { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; border-top: 1px solid var(--line); }
    .mini-dates dt { color: var(--muted); }
    .mini-dates dd { margin: 0; font-weight: 850; text-align: right; color: var(--ink); }


    /* V4c refinements: overview balance, named student perspective, clickable study-mode titles and consistent quick-nav icons */
    .overview-top .outcomes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .overview-top .outcome-card { min-height: 148px; }

    .student-story-layout { align-items: stretch; }
    .student-testimonial-card { display: grid; align-content: start; }
    .student-intro { color: var(--muted); margin: 12px 0 0; }
    .student-quote {
      margin: 16px 0 0;
      padding: 16px 18px;
      border-left: 5px solid var(--magenta);
      border-radius: 0 18px 18px 0;
      background: rgba(145, 0, 72, .055);
      color: var(--ink-2);
      font-size: clamp(1.02rem, 1.2vw, 1.16rem);
      line-height: 1.46;
      font-weight: 690;
    }
    .student-recognition {
      margin-top: 14px;
      padding: 14px;
      border-radius: 18px;
      background: var(--soft);
      border: 1px solid var(--line);
      color: var(--ink-2);
      font-weight: 760;
    }
    .student-recognition strong { color: var(--magenta); }
    .student-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
    }
    .student-links a {
      display: inline-flex;
      align-items: center;
      min-height: 36px;
      padding: 8px 11px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.88);
      color: var(--ink-2);
      text-decoration: none;
      font-weight: 900;
      font-size: .86rem;
      box-shadow: 0 7px 16px rgba(6, 31, 42, .06);
    }
    .student-links a:hover,
    .student-links a:focus-visible { background: var(--ink); color: #fff; outline: none; }
    .student-profile-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255,255,255,.90);
      box-shadow: var(--shadow);
      overflow: hidden;
      display: grid;
      grid-template-rows: minmax(310px, 1fr) auto;
      min-width: 0;
    }
    .student-profile-card img {
      width: 100%;
      height: 100%;
      min-height: 310px;
      object-fit: cover;
      object-position: center 24%;
      background: var(--soft-2);
    }
    .student-profile-caption {
      padding: 18px;
      background: #fff;
    }
    .student-profile-caption p { margin: 8px 0 0; color: var(--muted); }
    .media-card-body h3 a {
      color: inherit;
      text-decoration: none;
    }
    .media-card-body h3 a:hover,
    .media-card-body h3 a:focus-visible {
      color: var(--magenta);
      outline: none;
    }
    .page-quick-nav svg {
      width: 19px;
      height: 19px;
      display: block;
      margin: 0 auto;
    }
    @media (max-width: 760px) {
      .student-profile-card { grid-template-rows: auto auto; }
      .student-profile-card img { min-height: 260px; max-height: 360px; }
      .student-links a { flex: 1 1 auto; justify-content: center; }
    }


    @media (min-width: 1160px) and (max-height: 970px) {
      #foundations .section-head { margin-bottom: 16px; }
      #foundations .foundation-grid .dark-card,
      #foundations .foundation-grid .card,
      #foundations .foundation-points .compact-card { padding: 15px; }
      #foundations .foundation-grid h2 { font-size: clamp(1.72rem, 2.25vw, 2.45rem); }
      #foundations .foundation-grid h3 { font-size: clamp(1.18rem, 1.58vw, 1.55rem); }
      #foundations .foundation-grid p,
      #foundations .foundation-points p { font-size: .88rem; line-height: 1.32; }
      #foundations .foundation-points { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
      #foundations .principle-card { gap: 8px; }
      #foundations .principle-card strong { width: 30px; height: 30px; font-size: .88rem; }
      #foundations .principle-card h3 { font-size: 1.06rem; }
      #certifications .grid-2 { grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); }
      #certifications .logo-cloud span { min-height: 32px; padding: 7px 9px; font-size: .82rem; }
      #admissions .admissions-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
      #admissions .step-card { padding: 14px; }
      #admissions .step-card p { font-size: .86rem; line-height: 1.33; }
      #admissions .step-card strong { width: 30px; height: 30px; margin-bottom: 8px; }
      #admissions .date-card dl { gap: 5px; }
      #admissions .date-card div { padding-top: 6px; }
      #admissions .compact-details summary { padding: 12px 14px; }
    }


    /* V4c refinements: overview balance, named student perspective, clickable study-mode titles and consistent quick-nav icons */
    .overview-top .outcomes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .overview-top .outcome-card { min-height: 148px; }

    .student-story-layout { align-items: stretch; }
    .student-testimonial-card { display: grid; align-content: start; }
    .student-intro { color: var(--muted); margin: 12px 0 0; }
    .student-quote {
      margin: 16px 0 0;
      padding: 16px 18px;
      border-left: 5px solid var(--magenta);
      border-radius: 0 18px 18px 0;
      background: rgba(145, 0, 72, .055);
      color: var(--ink-2);
      font-size: clamp(1.02rem, 1.2vw, 1.16rem);
      line-height: 1.46;
      font-weight: 690;
    }
    .student-recognition {
      margin-top: 14px;
      padding: 14px;
      border-radius: 18px;
      background: var(--soft);
      border: 1px solid var(--line);
      color: var(--ink-2);
      font-weight: 760;
    }
    .student-recognition strong { color: var(--magenta); }
    .student-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
    }
    .student-links a {
      display: inline-flex;
      align-items: center;
      min-height: 36px;
      padding: 8px 11px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.88);
      color: var(--ink-2);
      text-decoration: none;
      font-weight: 900;
      font-size: .86rem;
      box-shadow: 0 7px 16px rgba(6, 31, 42, .06);
    }
    .student-links a:hover,
    .student-links a:focus-visible { background: var(--ink); color: #fff; outline: none; }
    .student-profile-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255,255,255,.90);
      box-shadow: var(--shadow);
      overflow: hidden;
      display: grid;
      grid-template-rows: minmax(310px, 1fr) auto;
      min-width: 0;
    }
    .student-profile-card img {
      width: 100%;
      height: 100%;
      min-height: 310px;
      object-fit: cover;
      object-position: center 24%;
      background: var(--soft-2);
    }
    .student-profile-caption {
      padding: 18px;
      background: #fff;
    }
    .student-profile-caption p { margin: 8px 0 0; color: var(--muted); }
    .media-card-body h3 a {
      color: inherit;
      text-decoration: none;
    }
    .media-card-body h3 a:hover,
    .media-card-body h3 a:focus-visible {
      color: var(--magenta);
      outline: none;
    }
    .page-quick-nav svg {
      width: 19px;
      height: 19px;
      display: block;
      margin: 0 auto;
    }
    @media (max-width: 760px) {
      .student-profile-card { grid-template-rows: auto auto; }
      .student-profile-card img { min-height: 260px; max-height: 360px; }
      .student-links a { flex: 1 1 auto; justify-content: center; }
    }


    @media (min-width: 1160px) and (max-height: 970px) {
      :root { --max: 1120px; --site-header-h: 58px; --programme-nav-h: 42px; }
      .brand img { width: 98px; }
      .topbar-inner { padding-top: 7px; padding-bottom: 7px; }
      .section-nav a { font-size: .72rem; padding: 6px 8px; }
      h1 { font-size: clamp(2.55rem, 4.65vw, 4.8rem); max-width: 760px; }
      h2 { font-size: clamp(1.9rem, 3.1vw, 3.25rem); }
      .hero { padding-top: 24px; padding-bottom: 28px; }
      .hero-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; }
      .hero-visual { min-height: 170px; }
      .hero-visual img { min-height: 170px; max-height: 210px; }
      .fact-pill { min-height: 70px; padding: 9px 10px; }
      .section { padding: 38px 0; }
      .overview-top { grid-template-columns: minmax(0,1fr) 310px; }
      .year-card { min-height: 260px; }
    }

    @media (max-width: 1100px) {
      .site-header-inner, .topbar-inner { grid-template-columns: auto 1fr auto; }
      .site-nav { justify-content: start; }
      .section-nav { justify-content: start; }
      .hero-grid, .overview-top, .foundation-grid, .section-head, .visual-band, .testimonial-layout { grid-template-columns: 1fr; }
      .side-card { position: static; }
      .timeline, .admissions-flow, .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .grid-4, .outcomes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .hero-panel { max-width: 720px; }
      .hero-visual { min-height: 180px; }
      .hero-visual img { min-height: 180px; max-height: 230px; }
    }

    @media (max-width: 900px) {
      :root { --site-header-h: 56px; --programme-nav-h: 44px; }
      .site-nav { display: none; }
      .section-nav { display: none; }
      .site-header-inner { grid-template-columns: 1fr auto; }
      .topbar-inner { grid-template-columns: 1fr auto; }
      .programme-page-menu { display: block; }
      .top-actions .btn-line { display: none; }
      .brand img { width: 98px; }
      .programme-label span { display: none; }
      .hero { padding-top: 20px; }
      .hero-actions .btn { flex: 1 1 auto; }
    }

    @media (max-width: 760px) {
      .site-shell { padding: 0 16px; }
      .grid-2, .grid-3, .grid-4, .timeline, .curriculum-grid, .admissions-flow, .date-grid, .cta-band, .media-grid, .admissions-compact { grid-template-columns: 1fr; }
      .outcomes-grid, .foundation-points, .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .hero { padding-top: 16px; padding-bottom: 24px; }
      .hero-panel { border-radius: 22px; }
      .hero-visual { min-height: 135px; }
      .hero-visual img { min-height: 135px; max-height: 150px; }
      .hero-visual-caption strong { font-size: 1rem; }
      .hero-visual-caption span { font-size: .78rem; }
      .fact-pill { min-height: 62px; padding: 8px 9px; }
      .fact-pill strong { font-size: .92rem; }
      .fact-pill span { font-size: .74rem; }
      h1 { font-size: clamp(2.25rem, 10.4vw, 3.15rem); }
      h2 { font-size: clamp(1.75rem, 7.3vw, 2.55rem); }
      .lede { font-size: 1rem; }
      .micro-copy { font-size: .88rem; }
      .hero-answer { grid-template-columns: auto 1fr; padding: 12px; }
      .hero-answer > strong:first-child { width: 32px; height: 32px; }
      .hero-answer p { font-size: .88rem; }
      .hero-actions { margin-top: 14px; }
      .hero-actions .btn { flex: 1 1 calc(50% - 8px); font-size: .92rem; }
      .hero-jump { gap: 6px; }
      .hero-jump a { flex: 1 1 calc(33.33% - 6px); text-align:center; padding: 7px 8px; font-size: .76rem; }
      .section { padding: 30px 0; }
      .section-head { margin-bottom: 16px; }
      .outcome-card { min-height: 0; padding: 14px; }
      .outcome-card strong, .principle-card strong { width: 32px; height: 32px; }
      .date-card div { display: grid; gap: 2px; }
      .date-card dd { text-align: left; }
      .tab-buttons { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
      .tab-buttons::-webkit-scrollbar { display: none; }
      .module-card h4 { display: grid; gap: 4px; }
      .module-card h4 span { white-space: normal; }
      .bsc-module summary { grid-template-columns: minmax(0, 1fr) auto; }
      .bsc-module summary strong { justify-self: start; grid-column: 1 / -1; }
      .bsc-course-grid { grid-template-columns: 1fr; }
      .bsc-course-card { min-height: 0; }
      .page-quick-nav { right: 10px; bottom: 10px; grid-template-columns: 1fr; gap: 6px; opacity: 0; pointer-events: none; transform: translateY(8px); }
      .page-quick-nav.is-visible { opacity: 1; pointer-events: auto; transform: none; }
      .page-quick-nav button { width: 39px; min-height: 37px; border-radius: 13px; }
      .page-quick-nav button { font-size: .98rem; }
    }

    @media (max-width: 420px) {
      .top-actions .btn-primary { padding-left: 12px; padding-right: 12px; }
      .hero-actions .btn { flex-basis: 100%; }
      .hero-jump a { flex: 1 1 calc(50% - 6px); }
      .hero-jump a:last-child { flex-basis: 100%; }
    }

    @media (max-width: 980px), (hover:none), (pointer:coarse) {
      .section-hover-zone, .section-hover-panel { display: none !important; }
    }

    @media print {
      .topbar, .page-quick-nav, .section-hover-zone, .section-hover-panel { display: none !important; }
      .section { page-break-inside: avoid; }
      video { display: none; }
    }
  

    /* V4d refinements: MacBook-height testimonial balance and clearer topbar spacing */
    .site-header-inner,
    .topbar-inner {
      max-width: min(1320px, calc(100vw - 18px));
    }
    .section-nav {
      min-width: 0;
      justify-content: flex-start;
      padding-right: clamp(10px, 1.5vw, 22px);
    }
    .top-actions {
      position: relative;
      z-index: 2;
      flex: 0 0 auto;
    }

    #student-story .student-story-layout {
      grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr);
      align-items: start;
    }
    #student-story .student-testimonial-card {
      padding: clamp(16px, 1.45vw, 20px);
    }
    #student-story .student-testimonial-card h2 {
      font-size: clamp(1.78rem, 2.75vw, 2.85rem);
    }
    #student-story .student-intro {
      margin-top: 10px;
      font-size: .95rem;
      line-height: 1.35;
    }
    #student-story .testimonial-identity {
      margin: 10px 0 0;
      padding: 12px 14px;
    }
    #student-story .student-quote {
      margin-top: 12px;
      padding: 14px 16px;
      font-size: clamp(.96rem, 1.05vw, 1.08rem);
      line-height: 1.38;
    }
    #student-story .student-recognition {
      margin-top: 12px;
      padding: 12px 14px;
      font-size: .92rem;
      line-height: 1.34;
    }
    #student-story .student-links {
      margin-top: 12px;
    }
    #student-story .student-profile-card {
      align-self: start;
      grid-template-rows: auto auto;
    }
    #student-story .student-profile-card img {
      height: clamp(250px, 34vh, 320px);
      min-height: 0;
      object-fit: cover;
      object-position: center 24%;
    }
    #student-story .student-profile-caption {
      padding: 14px 16px;
    }
    #student-story .student-profile-caption p {
      font-size: .90rem;
      line-height: 1.30;
    }

    @media (min-width: 1160px) and (max-height: 970px) {
      #student-story.section {
        padding-top: 34px;
        padding-bottom: 34px;
      }
      #student-story .student-profile-card img {
        height: clamp(220px, 30vh, 275px);
      }
      #student-story .student-testimonial-card h2 {
        font-size: clamp(1.65rem, 2.35vw, 2.45rem);
      }
      #student-story .student-quote {
        font-size: .98rem;
        line-height: 1.34;
      }
    }

    @media (max-width: 1100px) {
      #student-story .student-story-layout {
        grid-template-columns: 1fr;
      }
      #student-story .student-profile-card img {
        height: clamp(260px, 42vw, 380px);
      }
    }

    @media (max-width: 900px) {
      .site-header-inner,
      .topbar-inner {
        max-width: var(--max);
      }
    }

    @media (max-width: 760px) {
      #student-story .student-profile-card img {
        height: 280px;
        min-height: 0;
        max-height: 340px;
      }
    }


    /* V4e refinements: balanced student testimonial, simpler internship wording and Spring 2027 admissions */
    #student-story .student-story-layout {
      grid-template-columns: minmax(0, .98fr) minmax(300px, .88fr);
      align-items: stretch;
    }
    #student-story .student-testimonial-card,
    #student-story .student-profile-card {
      height: 100%;
      align-self: stretch;
    }
    #student-story .student-profile-card {
      grid-template-rows: minmax(0, 1fr) auto;
    }
    #student-story .student-profile-card img {
      height: 100%;
      min-height: 0;
      max-height: none;
      object-fit: cover;
      object-position: center 24%;
    }
    #student-story .student-profile-caption {
      min-height: 132px;
      display: grid;
      align-content: center;
    }

    .spring-2027-admissions {
      grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
      align-items: stretch;
    }
    .spring-2027-admissions .next-intake-card {
      min-height: 100%;
      display: grid;
      align-content: start;
    }
    .spring-2027-admissions .next-intake-card h3 {
      font-size: clamp(1.75rem, 2.45vw, 2.55rem);
    }
    .spring-2027-admissions .admissions-detail-stack {
      align-content: start;
    }
    .spring-2027-admissions .compact-details summary {
      min-height: 56px;
    }

    @media (min-width: 1160px) and (max-height: 970px) {
      #student-story .student-profile-caption {
        min-height: 116px;
      }
      #student-story .student-testimonial-card,
      #student-story .student-profile-card {
        min-height: 0;
      }
    }

    @media (max-width: 1100px) {
      #student-story .student-story-layout,
      .spring-2027-admissions {
        grid-template-columns: 1fr;
      }
      #student-story .student-profile-card img {
        height: clamp(260px, 42vw, 380px);
      }
    }

    @media (max-width: 760px) {
      #student-story .student-profile-caption {
        min-height: 0;
      }
      #student-story .student-profile-card img {
        height: 280px;
      }
    }


    /* V4g refinement: Admissions intake/date cards as equal thirds on desktop */
    #admissions .admissions-compact.spring-2027-admissions {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: stretch;
    }

    #admissions .admissions-compact.spring-2027-admissions > .date-grid {
      display: contents;
    }

    #admissions .admissions-compact.spring-2027-admissions > .date-grid > .date-card,
    #admissions .admissions-compact.spring-2027-admissions > .admissions-detail-stack {
      min-width: 0;
    }

    #admissions .admissions-compact.spring-2027-admissions .date-card,
    #admissions .admissions-compact.spring-2027-admissions .admissions-detail-stack {
      height: 100%;
    }

    @media (max-width: 1100px) {
      #admissions .admissions-compact.spring-2027-admissions {
        grid-template-columns: 1fr;
      }

      #admissions .admissions-compact.spring-2027-admissions > .date-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
      }
    }

    @media (max-width: 760px) {
      #admissions .admissions-compact.spring-2027-admissions > .date-grid {
        grid-template-columns: 1fr;
      }
    }


    /* V4h refinement: quick-nav final button aligns with the beginning of the final section */
    #meet {
      min-height: calc(100vh - var(--topbar) + 24px);
    }



    /* Navigation tryout: global website menu + contextual programme navigation */
    .site-header-inner {
      grid-template-columns: auto minmax(0, 1fr) auto auto;
    }

    .site-nav {
      overflow: visible;
      justify-content: center;
      gap: 4px;
    }

    .site-nav-item {
      position: relative;
      flex: 0 0 auto;
    }

    .site-nav-trigger {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      text-decoration: none;
      padding: 8px 9px;
      border-radius: 999px;
      color: var(--ink-2);
      font-size: .78rem;
      font-weight: 900;
      white-space: nowrap;
      letter-spacing: -.015em;
    }

    .site-nav-trigger span {
      color: var(--magenta);
      font-size: .72rem;
      line-height: 1;
      transform: translateY(-1px);
    }

    .site-nav-item:hover .site-nav-trigger,
    .site-nav-trigger:focus-visible,
    .site-nav-item:focus-within .site-nav-trigger {
      background: var(--soft-2);
      outline: none;
    }

    .site-dropdown {
      position: absolute;
      top: calc(100% + 10px);
      left: 50%;
      transform: translateX(-50%) translateY(8px);
      width: min(370px, calc(100vw - 32px));
      padding: 10px;
      border: 1px solid rgba(219,229,232,.92);
      border-radius: 22px;
      background: rgba(255,255,255,.98);
      box-shadow: 0 24px 60px rgba(6,31,42,.18);
      display: grid;
      gap: 5px;
      opacity: 0;
      pointer-events: none;
      transition: opacity .16s ease, transform .16s ease;
    }

    .site-dropdown::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: -12px;
      height: 12px;
    }

    .site-dropdown.wide {
      width: min(610px, calc(100vw - 32px));
      grid-template-columns: repeat(2, minmax(0,1fr));
      align-items: start;
      gap: 10px;
    }

    .site-dropdown.compact {
      width: min(330px, calc(100vw - 32px));
    }

    .site-nav-item:hover .site-dropdown,
    .site-nav-item:focus-within .site-dropdown {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
      pointer-events: auto;
    }

    .site-dropdown-intro,
    .site-dropdown-col {
      display: grid;
      gap: 5px;
    }

    .site-dropdown-intro {
      padding: 10px 11px;
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(145,0,72,.07), rgba(108,198,208,.12));
      border: 1px solid rgba(145,0,72,.10);
    }

    .dropdown-label {
      display: inline-flex;
      width: fit-content;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(145,0,72,.08);
      color: var(--magenta);
      font-size: .70rem;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin: 2px 0;
    }

    .site-dropdown a,
    .site-mobile-menu a {
      display: grid;
      gap: 2px;
      text-decoration: none;
      color: var(--ink);
      padding: 10px 11px;
      border-radius: 15px;
    }


    /* V178: French-only alternance link appears only with the master route selected. */
    .alternance-menu-link {
      display: none !important;
    }

    html[data-study-route="postgraduate"] .alternance-menu-link {
      display: grid !important;
    }

    .site-dropdown a:hover,
    .site-dropdown a:focus-visible,
    .site-mobile-menu a:hover,
    .site-mobile-menu a:focus-visible {
      background: var(--soft-2);
      outline: none;
    }

    .site-dropdown a strong,
    .site-mobile-menu a strong {
      font-size: .90rem;
      letter-spacing: -.025em;
      line-height: 1.08;
    }

    .site-dropdown a span,
    .site-dropdown-intro span,
    .site-mobile-menu a span {
      color: var(--muted);
      font-size: .78rem;
      font-weight: 720;
      line-height: 1.22;
    }

    .site-dropdown-intro strong {
      color: var(--magenta);
      font-size: .86rem;
      font-weight: 950;
      letter-spacing: -.02em;
    }

    .site-mobile-menu {
      display: none;
      position: relative;
      justify-self: end;
    }

    .site-mobile-menu summary {
      list-style: none;
      cursor: pointer;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.90);
      padding: 8px 12px;
      color: var(--ink-2);
      font-weight: 950;
      font-size: .84rem;
      box-shadow: 0 7px 16px rgba(6,31,42,.06);
    }

    .site-mobile-menu summary::-webkit-details-marker { display: none; }
    .site-mobile-menu[open] summary { background: var(--ink); color: #fff; border-color: var(--ink); }

    .site-mobile-menu > div {
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      width: min(330px, calc(100vw - 32px));
      border: 1px solid rgba(219,229,232,.90);
      border-radius: 20px;
      background: rgba(255,255,255,.98);
      box-shadow: 0 22px 54px rgba(6,31,42,.18);
      padding: 8px;
      display: grid;
      gap: 3px;
    }

    @media (max-width: 1240px) {
      .site-nav-trigger { font-size: .74rem; padding-left: 7px; padding-right: 7px; }
      .site-header-inner { column-gap: 12px; }
      .top-actions .btn { padding-left: 12px; padding-right: 12px; }
    }

@media (max-width: 1060px) {
      .site-nav { display: none; }
      .site-mobile-menu { display: block; }
      .site-header-inner { grid-template-columns: 1fr auto auto; }
    }

    @media (max-width: 900px) {
      .site-mobile-menu { display: block; }
      .site-header-inner { grid-template-columns: 1fr auto auto; }
    }

    @media (max-width: 420px) {
      .site-mobile-menu summary { padding-left: 10px; padding-right: 10px; }
    }


    /* Navigation V2: route-aware Study at DSTI menu */
    .route-dropdown {
      width: min(420px, calc(100vw - 32px));
    }

    .study-route-btn {
      appearance: none;
      border: 1px solid transparent;
      background: transparent;
      display: grid;
      gap: 2px;
      text-align: left;
      color: var(--ink);
      padding: 10px 11px;
      border-radius: 15px;
      cursor: pointer;
      font: inherit;
    }

    .study-route-btn:hover,
    .study-route-btn:focus-visible {
      background: var(--soft-2);
      outline: none;
    }

    .study-route-btn.is-active {
      background: rgba(145, 0, 72, .07);
      border-color: rgba(145, 0, 72, .18);
    }

    .study-route-btn strong {
      color: var(--ink);
      font-size: .90rem;
      letter-spacing: -.025em;
      line-height: 1.08;
    }

    .study-route-btn span {
      color: var(--muted);
      font-size: .78rem;
      font-weight: 720;
      line-height: 1.22;
    }

    .programme-panel {
      display: none;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      min-width: 0;
    }

    .programme-panel.is-visible {
      display: grid;
    }

    @media (max-width: 1060px) {
      .programme-panel,
      .programme-panel.is-visible {
        grid-template-columns: 1fr;
      }
    }


    /* Navigation V3: coloured study routes, safer dropdown sizing and mobile route UX */
    :root {
      --route-undergrad-bg: #f8e7f0;
      --route-undergrad-ink: #910048;
      --route-undergrad-border: rgba(145, 0, 72, .24);
      --route-postgrad-bg: #e8f0ff;
      --route-postgrad-ink: #235aa6;
      --route-postgrad-border: rgba(35, 90, 166, .28);
      --route-exec-bg: #fae7e3;
      --route-exec-ink: #a8322c;
      --route-exec-border: rgba(168, 50, 44, .28);
    }

    .site-nav-trigger {
      border: 1px solid transparent;
      transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
    }

    html[data-study-route="undergraduate"] .study-route-nav > .site-nav-trigger {
      background: var(--route-undergrad-bg);
      color: var(--route-undergrad-ink);
      border-color: var(--route-undergrad-border);
      box-shadow: 0 7px 18px rgba(145, 0, 72, .08);
    }

    html[data-study-route="postgraduate"] .study-route-nav > .site-nav-trigger {
      background: var(--route-postgrad-bg);
      color: var(--route-postgrad-ink);
      border-color: var(--route-postgrad-border);
      box-shadow: 0 7px 18px rgba(35, 90, 166, .10);
    }

    html[data-study-route="executive"] .study-route-nav > .site-nav-trigger {
      background: var(--route-exec-bg);
      color: var(--route-exec-ink);
      border-color: var(--route-exec-border);
      box-shadow: 0 7px 18px rgba(168, 50, 44, .10);
    }

    html[data-study-route] .study-route-nav > .site-nav-trigger span {
      color: currentColor;
    }

    .site-dropdown,
    .site-dropdown *,
    .site-mobile-menu,
    .site-mobile-menu * {
      min-width: 0;
    }

    .site-dropdown {
      width: min(430px, calc(100vw - 32px));
      overflow: visible;
    }

    .site-dropdown.wide {
      width: min(760px, calc(100vw - 32px));
    }

    .route-dropdown {
      width: min(480px, calc(100vw - 32px));
    }

    .site-dropdown a,
    .study-route-btn,
    .site-mobile-menu a {
      width: 100%;
      max-width: 100%;
      overflow: hidden;
    }

    .site-dropdown a strong,
    .site-dropdown a span,
    .site-dropdown-intro strong,
    .site-dropdown-intro span,
    .study-route-btn strong,
    .study-route-btn span,
    .site-mobile-menu a strong,
    .site-mobile-menu a span {
      overflow-wrap: anywhere;
      word-break: normal;
      hyphens: auto;
    }

    .study-route-btn[data-study-route="undergraduate"].is-active {
      background: var(--route-undergrad-bg);
      border-color: var(--route-undergrad-border);
    }

    .study-route-btn[data-study-route="undergraduate"].is-active strong,
    .study-route-btn[data-study-route="undergraduate"].is-active span {
      color: var(--route-undergrad-ink);
    }

    .study-route-btn[data-study-route="postgraduate"].is-active {
      background: var(--route-postgrad-bg);
      border-color: var(--route-postgrad-border);
    }

    .study-route-btn[data-study-route="postgraduate"].is-active strong,
    .study-route-btn[data-study-route="postgraduate"].is-active span {
      color: var(--route-postgrad-ink);
    }

    .study-route-btn[data-study-route="executive"].is-active {
      background: var(--route-exec-bg);
      border-color: var(--route-exec-border);
    }

    .study-route-btn[data-study-route="executive"].is-active strong,
    .study-route-btn[data-study-route="executive"].is-active span {
      color: var(--route-exec-ink);
    }

    .site-mobile-menu > div {
      max-height: calc(100vh - var(--site-header-h) - 20px);
      overflow-y: auto;
      overscroll-behavior: contain;
      gap: 8px;
    }

    .site-mobile-section {
      display: grid;
      gap: 5px;
      padding: 7px;
      border: 1px solid rgba(219,229,232,.78);
      border-radius: 18px;
      background: rgba(244,248,249,.72);
    }

    .site-mobile-section-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 4px 5px 2px;
      color: var(--magenta);
      font-size: .70rem;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .site-mobile-section .study-route-btn {
      background: rgba(255,255,255,.88);
      border-color: rgba(219,229,232,.92);
    }

    .site-mobile-section .study-route-btn.is-active {
      border-width: 1px;
    }

    .site-mobile-programmes .programme-panel {
      display: none;
      grid-template-columns: 1fr;
      gap: 5px;
      padding: 0;
    }

    .site-mobile-programmes .programme-panel.is-visible {
      display: grid;
    }

    .site-mobile-programmes .site-dropdown-col {
      display: grid;
      gap: 4px;
    }

    .site-mobile-programmes .dropdown-label {
      margin-left: 5px;
      margin-top: 4px;
    }

    @media (min-width: 1061px) {
      .site-nav-item:nth-last-child(-n+2) .site-dropdown {
        left: auto;
        right: 0;
        transform: translateY(8px);
      }

      .site-nav-item:nth-last-child(-n+2):hover .site-dropdown,
      .site-nav-item:nth-last-child(-n+2):focus-within .site-dropdown {
        transform: translateY(0);
      }
    }

    @media (max-width: 1060px) {
      .site-header-inner {
        gap: 10px;
      }

      .site-mobile-menu {
        order: 2;
      }

      .site-header .top-actions {
        order: 3;
      }

      .site-header .top-actions .btn-primary {
        min-height: 36px;
        padding: 8px 12px;
      }
    }

    @media (max-width: 560px) {
      .site-header-inner {
        grid-template-columns: 1fr auto auto;
        padding-left: 12px;
        padding-right: 12px;
      }

      .site-header .brand img {
        width: 88px;
      }

      .site-mobile-menu summary {
        font-size: .80rem;
        padding: 8px 10px;
      }

      .site-mobile-menu > div {
        right: -58px;
        width: min(360px, calc(100vw - 18px));
      }

      .site-header .top-actions .btn-primary {
        min-width: 0;
        padding-left: 11px;
        padding-right: 11px;
      }
    }

    @media (max-width: 380px) {
      .site-header .brand img { width: 78px; }
      .site-header .top-actions .btn-primary { padding-left: 10px; padding-right: 10px; }
      .site-mobile-menu > div { right: -54px; }
    }


    /* Navigation V4: fix desktop dropdown column sizing */
    @media (min-width: 1061px) {
      .programmes-dropdown.site-dropdown.wide {
        width: min(900px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 0;
      }

      .programmes-dropdown .programme-panel {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
      }

      .programmes-dropdown .site-dropdown-col {
        min-width: 0;
        display: grid;
        gap: 8px;
        align-content: start;
      }

      .programmes-dropdown .dropdown-label {
        max-width: 100%;
        white-space: normal;
      }

      .programmes-dropdown a {
        min-height: 70px;
        align-content: start;
      }
    }

    @media (max-width: 1060px) {
      .programmes-dropdown .programme-panel,
      .site-mobile-programmes .programme-panel {
        width: 100%;
        max-width: 100%;
      }
    }


    /* V5 refinement: close Study at DSTI route dropdown after route selection */
    .site-nav-item.dropdown-force-closed .site-dropdown,
    .site-nav-item.dropdown-force-closed:hover .site-dropdown,
    .site-nav-item.dropdown-force-closed:focus-within .site-dropdown {
      opacity: 0;
      transform: translateX(-50%) translateY(8px);
      pointer-events: none;
    }

    .site-nav-item.dropdown-force-closed .site-nav-trigger,
    .site-nav-item.dropdown-force-closed:hover .site-nav-trigger,
    .site-nav-item.dropdown-force-closed:focus-within .site-nav-trigger {
      background: inherit;
    }


    /* Navigation V6: colour Programmes with the selected Study at DSTI route */
    html[data-study-route="undergraduate"] .programmes-nav > .site-nav-trigger {
      background: var(--route-undergrad-bg);
      color: var(--route-undergrad-ink);
      border-color: var(--route-undergrad-border);
      box-shadow: 0 7px 18px rgba(145, 0, 72, .08);
    }

    html[data-study-route="postgraduate"] .programmes-nav > .site-nav-trigger {
      background: var(--route-postgrad-bg);
      color: var(--route-postgrad-ink);
      border-color: var(--route-postgrad-border);
      box-shadow: 0 7px 18px rgba(35, 90, 166, .10);
    }

    html[data-study-route="executive"] .programmes-nav > .site-nav-trigger {
      background: var(--route-exec-bg);
      color: var(--route-exec-ink);
      border-color: var(--route-exec-border);
      box-shadow: 0 7px 18px rgba(168, 50, 44, .10);
    }

    html[data-study-route] .programmes-nav > .site-nav-trigger span {
      color: currentColor;
    }

    html[data-study-route="undergraduate"] .site-mobile-programmes {
      border-color: var(--route-undergrad-border);
      background: color-mix(in srgb, var(--route-undergrad-bg) 42%, white);
    }

    html[data-study-route="postgraduate"] .site-mobile-programmes {
      border-color: var(--route-postgrad-border);
      background: color-mix(in srgb, var(--route-postgrad-bg) 42%, white);
    }

    html[data-study-route="executive"] .site-mobile-programmes {
      border-color: var(--route-exec-border);
      background: color-mix(in srgb, var(--route-exec-bg) 42%, white);
    }

    /* Navigation V7: coherent Programme dropdown labels by selected route */
    .programme-panel[data-route-panel="undergraduate"] .dropdown-label {
      background: var(--route-undergrad-bg);
      color: var(--route-undergrad-ink);
      border: 1px solid var(--route-undergrad-border);
    }

    .programme-panel[data-route-panel="postgraduate"] .dropdown-label {
      background: var(--route-postgrad-bg);
      color: var(--route-postgrad-ink);
      border: 1px solid var(--route-postgrad-border);
    }

    .programme-panel[data-route-panel="executive"] .dropdown-label {
      background: var(--route-exec-bg);
      color: var(--route-exec-ink);
      border: 1px solid var(--route-exec-border);
    }

/* ================================================================
   Bachelor page UI/UX refinement pass — viewport fit and responsive polish
   Content untouched. Applies lessons from the homepage visual work.
================================================================ */
@media (min-width: 1024px) {
  :root {
    --max: 1260px;
  }

  .site-shell {
    padding-left: clamp(18px, 1.85vw, 28px);
    padding-right: clamp(18px, 1.85vw, 28px);
  }

  .hero {
    padding-top: clamp(18px, 2.7vw, 34px);
    padding-bottom: clamp(22px, 3vw, 40px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .68fr);
    gap: clamp(22px, 2.9vw, 40px);
  }

  .hero h1 {
    font-size: clamp(3rem, 5vw, 5.35rem);
    max-width: 900px;
  }

  .lede {
    font-size: clamp(1.04rem, 1.24vw, 1.18rem);
    line-height: 1.34;
  }

  .hero-answer {
    margin-top: 12px;
    padding: 13px 14px;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .hero-actions .btn {
    min-height: 37px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hero-jump {
    margin-top: 12px;
  }

  .hero-visual img {
    min-height: 170px;
    max-height: 220px;
  }

  .hero-facts {
    gap: 8px;
    padding: 12px;
  }

  .fact-pill {
    min-height: 68px;
    padding: 9px 10px;
  }

  .fact-pill strong {
    font-size: .98rem;
  }

  .fact-pill span {
    font-size: .76rem;
    line-height: 1.18;
  }

  .section {
    padding-top: clamp(34px, 4.4vw, 58px);
    padding-bottom: clamp(34px, 4.4vw, 58px);
  }

  .section-head {
    margin-bottom: 18px;
    gap: 18px;
  }
}

@media (min-width: 1160px) and (max-height: 970px) {
  :root {
    --max: 1210px;
  }

  .site-shell {
    padding-left: clamp(16px, 1.65vw, 24px);
    padding-right: clamp(16px, 1.65vw, 24px);
  }

  .hero {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.16fr) minmax(350px, .62fr);
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 4.45vw, 4.85rem);
    max-width: 850px;
  }

  .lede {
    font-size: .99rem;
    line-height: 1.30;
  }

  .hero-answer {
    margin-top: 11px;
    padding: 11px 12px;
  }

  .hero-answer p {
    font-size: .89rem;
    line-height: 1.30;
  }

  .hero-answer > strong:first-child {
    width: 32px;
    height: 32px;
  }

  .hero-actions,
  .hero-jump {
    margin-top: 10px;
  }

  .hero-visual {
    min-height: 150px;
  }

  .hero-visual img {
    min-height: 150px;
    max-height: 185px;
  }

  .hero-visual-caption {
    bottom: 11px;
  }

  .hero-facts {
    padding: 10px;
    gap: 7px;
  }

  .fact-pill {
    min-height: 60px;
    padding: 8px 9px;
  }

  .fact-pill strong {
    font-size: .90rem;
  }

  .fact-pill span {
    font-size: .70rem;
  }

  .section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .card, .dark-card, .side-card, .year-card, .resource-card, .cta-band, .video-card, .date-card, .step-card, .module-card, .media-card, .compact-card {
    padding: 15px;
  }

  .overview-top {
    grid-template-columns: minmax(0,1fr) 320px;
  }

  .overview-top .outcome-card {
    min-height: 132px;
  }

  .side-card .mini-list li {
    padding: 7px 0;
  }

  .year-card {
    min-height: 245px;
  }

  .module-card {
    padding: 14px;
  }

  .media-card video {
    aspect-ratio: 16 / 8.2;
  }
}

/* Cleaner labels on smaller screens: compact rounded tags instead of distorted pills. */
.eyebrow,
.tag {
  max-width: 100%;
  white-space: normal;
  text-wrap: balance;
  line-height: 1.18;
}

@media (max-width: 1100px) {
  .site-shell {
    padding-left: clamp(14px, 2.2vw, 22px);
    padding-right: clamp(14px, 2.2vw, 22px);
  }

  .hero-grid {
    gap: 16px;
  }

  .hero-panel {
    max-width: none;
  }

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

  .section-head {
    gap: 14px;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 6vw, 4.25rem);
  }

  .hero-panel {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  }

  .hero-visual,
  .hero-visual img {
    min-height: 100%;
    max-height: none;
  }

  .hero-facts {
    align-content: center;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: calc(var(--site-header-h) + var(--programme-nav-h) + 10px);
  }

  .site-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    padding-top: 16px;
    padding-bottom: 26px;
  }

  .eyebrow,
  .tag {
    border-radius: 14px;
    letter-spacing: .055em;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9.7vw, 3.10rem);
    line-height: .98;
  }

  .lede {
    font-size: .96rem;
    line-height: 1.32;
  }

  .hero-answer {
    padding: 11px;
    gap: 9px;
  }

  .hero-answer p {
    font-size: .86rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    font-size: .90rem;
    flex: initial;
  }

  .hero-actions .btn-soft {
    grid-column: 1 / -1;
  }

  .hero-jump {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 2px;
    margin-top: 12px;
    scrollbar-width: none;
  }

  .hero-jump::-webkit-scrollbar {
    display: none;
  }

  .hero-jump a {
    flex: 0 0 auto;
    min-width: 142px;
    text-align: center;
    scroll-snap-align: start;
  }

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

  .fact-pill {
    min-height: 60px;
  }

  .section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .outcomes-grid,
  .foundation-points,
  .hero-facts {
    gap: 10px;
  }

  .compact-card,
  .card,
  .dark-card,
  .side-card,
  .date-card,
  .step-card,
  .module-card {
    padding: 15px;
  }

  .visual-tile,
  .visual-tile img,
  .visual-tile video {
    min-height: 210px;
  }

  .media-card video {
    aspect-ratio: 16 / 8.8;
  }
}

@media (max-width: 420px) {
  .site-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-jump a {
    min-width: 136px;
  }
}


/* ================================================================
   V6 Bachelor refinements — viewport hero, compact testimonial photo,
   study-mode media cards and reusable admissions partials.
   Additive UI/UX overrides only.
================================================================ */
@media (min-width: 1024px) {
  .programme-page > .hero {
    min-height: calc(100svh - var(--topbar));
    display: grid;
    align-items: center;
  }

  .programme-page > .hero .hero-grid {
    align-items: center;
  }
}

@media (min-width: 1160px) and (max-height: 970px) {
  .programme-page > .hero {
    min-height: calc(100svh - var(--topbar));
    padding-top: 20px;
    padding-bottom: 26px;
  }
}

#student-story .student-story-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
  align-items: center;
}

#student-story .student-profile-card {
  height: auto;
  align-self: center;
  grid-template-rows: auto auto;
}

#student-story .student-profile-card img {
  height: clamp(220px, 31vh, 300px);
  min-height: 0;
  max-height: 300px;
  object-fit: cover;
  object-position: center 24%;
}

#student-story .student-profile-caption {
  min-height: 0;
  padding: 14px 16px;
}

@media (min-width: 1160px) and (max-height: 970px) {
  #student-story.section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  #student-story .student-profile-card img {
    height: clamp(200px, 27vh, 255px);
  }
}

#study-modes .media-grid {
  align-items: stretch;
}

#study-modes .study-video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

#study-modes .study-video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  height: auto;
  object-fit: cover;
  background: var(--ink);
}

#study-modes .study-video-card .media-card-body {
  display: grid;
  align-content: start;
}

@media (max-width: 1100px) {
  #student-story .student-story-layout {
    grid-template-columns: 1fr;
  }

  #student-story .student-profile-card img {
    height: clamp(240px, 42vw, 340px);
    max-height: 340px;
  }
}

@media (max-width: 760px) {
  .programme-page > .hero {
    min-height: auto;
  }

  #student-story .student-profile-card img {
    height: 260px;
    max-height: 300px;
  }
}

/* ================================================================
   V7 refinement — desktop/laptop viewport balance and large-screen
   scaling for shared navigation and programme pages.
   Mobile rules intentionally left untouched.
================================================================ */
@media (min-width: 1024px) {
  :root {
    --max: clamp(1180px, 84vw, 1580px);
  }

  .site-shell {
    padding-left: clamp(18px, 1.35vw, 32px);
    padding-right: clamp(18px, 1.35vw, 32px);
  }

  .site-header-inner,
  .topbar-inner {
    max-width: min(1640px, calc(100vw - 20px));
    padding-left: clamp(18px, 1.35vw, 32px);
    padding-right: clamp(18px, 1.35vw, 32px);
  }
}

@media (min-width: 1160px) and (max-height: 930px) {
  .programme-page > .hero {
    min-height: calc(100svh - var(--topbar) + 34px);
    padding-top: 18px;
    padding-bottom: 34px;
  }

  .programme-page > .hero .hero-grid {
    grid-template-columns: minmax(0, 1.10fr) minmax(360px, .58fr);
    gap: clamp(22px, 2.6vw, 38px);
  }

  .programme-page > .hero h1 {
    font-size: clamp(3.0rem, 4.35vw, 4.95rem);
    max-width: 880px;
  }

  .programme-page > .hero .lede {
    font-size: 1rem;
    line-height: 1.30;
  }

  .programme-page > .hero .hero-answer {
    margin-top: 12px;
    padding: 12px;
  }

  .programme-page > .hero .hero-actions,
  .programme-page > .hero .hero-jump {
    margin-top: 12px;
  }

  .programme-page > .hero .hero-panel {
    max-width: 430px;
    justify-self: end;
  }

  .programme-page > .hero .hero-visual,
  .programme-page > .hero .hero-visual img {
    min-height: 160px;
    max-height: 205px;
  }

  .programme-page > .hero .hero-facts {
    gap: 8px;
    padding: 12px;
  }

  .programme-page > .hero .fact-pill {
    min-height: 64px;
    padding: 8px 10px;
  }

  .programme-page > .hero .fact-pill strong {
    font-size: .94rem;
  }

  .programme-page > .hero .fact-pill span {
    font-size: .72rem;
  }
}

@media (min-width: 1600px) {
  :root {
    --max: min(86vw, 1720px);
  }

  .site-header-inner,
  .topbar-inner {
    max-width: min(1760px, calc(100vw - 24px));
  }

  .brand img {
    width: 122px;
  }

  .site-nav-trigger {
    font-size: .92rem;
    padding: 10px 13px;
  }

  .top-actions .btn {
    min-height: 44px;
    padding-left: 18px;
    padding-right: 18px;
    font-size: 1.05rem;
  }

  .programme-label strong {
    font-size: 1.08rem;
  }

  .programme-label span,
  .section-nav a {
    font-size: .86rem;
  }

  .section-nav a {
    padding: 8px 11px;
  }

  .programme-page > .hero .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(460px, .52fr);
    gap: clamp(46px, 4vw, 82px);
  }

  .programme-page > .hero h1 {
    font-size: clamp(5.6rem, 4.5vw, 7.7rem);
    max-width: 1220px;
  }

  .programme-page > .hero .lede {
    font-size: clamp(1.22rem, 1vw, 1.48rem);
    max-width: 1050px;
  }

  .programme-page > .hero .hero-answer p {
    font-size: 1.08rem;
  }

  .programme-page > .hero .hero-actions .btn,
  .programme-page > .hero .hero-jump a {
    font-size: 1.05rem;
  }

  .programme-page > .hero .hero-panel {
    max-width: 560px;
  }

  .programme-page > .hero .hero-visual,
  .programme-page > .hero .hero-visual img {
    min-height: 250px;
    max-height: 340px;
  }

  .programme-page > .hero .fact-pill {
    min-height: 92px;
    padding: 14px;
  }

  .programme-page > .hero .fact-pill strong {
    font-size: 1.16rem;
  }

  .programme-page > .hero .fact-pill span {
    font-size: .88rem;
  }

  .section h2,
  .programme-page h2 {
    font-size: clamp(3.6rem, 3.05vw, 5.6rem);
  }

  .card p,
  .resource-card p,
  .year-card p,
  .media-card p,
  .video-card p,
  .step-card p,
  .compact-card p,
  .long-copy p,
  .section-head p {
    font-size: clamp(1.02rem, .88vw, 1.22rem);
  }
}

@media (min-width: 1900px) {
  .card,
  .dark-card,
  .side-card,
  .year-card,
  .resource-card,
  .cta-band,
  .video-card,
  .date-card,
  .step-card,
  .module-card,
  .media-card,
  .compact-card,
  .hero-panel {
    border-radius: 28px;
  }
}


/* ================================================================
   V8 refinement — viewport-framed programme sections for large
   desktop/monitor displays. Mobile rules are intentionally untouched.
   Apply through the .viewport-section class only, so long sections such
   as the curriculum remain naturally content-driven.
================================================================ */
@media (min-width: 1180px) and (min-height: 700px) {
  .programme-page .viewport-section {
    min-height: calc(100svh - var(--topbar));
    display: grid;
    align-items: center;
  }

  .programme-page .viewport-section > .site-shell {
    width: 100%;
  }
}

@media (min-width: 1600px) and (min-height: 760px) {
  .programme-page .viewport-section {
    min-height: calc(100svh - var(--topbar));
  }

  .programme-page .section.viewport-section {
    padding-top: clamp(54px, 6vh, 92px);
    padding-bottom: clamp(54px, 6vh, 92px);
  }
}

@media (min-width: 1600px) and (min-height: 960px) {
  .programme-page .section-head {
    margin-bottom: clamp(24px, 2.1vh, 38px);
  }
}
/* ================================================================
   V9 refinement — programme page viewport framing and larger monitor
   scaling. Mobile rules are intentionally untouched.
================================================================ */
@media (min-width: 1180px) and (min-height: 700px) {
  .programme-page > .hero.viewport-section {
    min-height: calc(100svh - var(--topbar));
    display: grid;
    align-items: center;
  }

  .programme-page > .hero.viewport-section > .site-shell {
    width: 100%;
  }

  .programme-page .section.viewport-section {
    min-height: calc(100svh - var(--topbar));
    display: grid;
    align-items: center;
  }

  .programme-page .section.viewport-section > .site-shell {
    width: 100%;
  }
}

@media (min-width: 1600px) and (min-height: 760px) {
  :root {
    --max: min(88vw, 1760px);
  }

  .programme-page > .hero.viewport-section {
    padding-top: clamp(48px, 5vh, 88px);
    padding-bottom: clamp(56px, 6vh, 104px);
  }

  .programme-page .section.viewport-section {
    padding-top: clamp(62px, 6.2vh, 104px);
    padding-bottom: clamp(62px, 6.2vh, 104px);
  }
}

@media (min-width: 1900px) and (min-height: 820px) {
  :root {
    --max: min(89vw, 1880px);
  }

  .programme-page > .hero h1 {
    font-size: clamp(6.2rem, 4.65vw, 8.4rem);
  }

  .programme-page > .hero .lede,
  .programme-page > .hero .hero-answer p {
    font-size: clamp(1.22rem, 1vw, 1.5rem);
  }

  .programme-page .card,
  .programme-page .dark-card,
  .programme-page .side-card,
  .programme-page .year-card,
  .programme-page .resource-card,
  .programme-page .video-card,
  .programme-page .date-card,
  .programme-page .step-card,
  .programme-page .module-card,
  .programme-page .media-card,
  .programme-page .compact-card {
    padding: clamp(20px, 1.25vw, 30px);
  }
}
/* ================================================================
   Global navigation V3 — non-clickable desktop dropdown triggers,
   viewport-safe dropdown positioning and mobile accordion sections.
================================================================ */
.site-nav button.site-nav-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: default;
}

.site-nav .site-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  padding: 8px 9px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.site-dropdown {
  transform: translateX(calc(-50% + var(--dropdown-shift-x, 0px))) translateY(8px);
}

.site-nav-item:hover .site-dropdown,
.site-nav-item:focus-within .site-dropdown {
  transform: translateX(calc(-50% + var(--dropdown-shift-x, 0px))) translateY(0);
}

.site-nav-item.dropdown-force-closed .site-dropdown {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(calc(-50% + var(--dropdown-shift-x, 0px))) translateY(8px) !important;
}

.site-mobile-accordion {
  border-top: 1px solid rgba(219,229,232,.9);
  padding-top: 4px;
}

.site-mobile-accordion:first-of-type {
  border-top: 0;
}

.site-mobile-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 15px;
  color: var(--ink);
  font-weight: 950;
  letter-spacing: -.025em;
}

.site-mobile-accordion summary::-webkit-details-marker {
  display: none;
}

.site-mobile-accordion summary::after {
  content: "⌄";
  color: var(--magenta);
  font-size: .82rem;
  transform: translateY(-1px);
}

.site-mobile-accordion[open] summary {
  background: var(--soft-2);
}

.site-mobile-accordion[open] summary::after {
  transform: rotate(180deg) translateY(1px);
}

.site-mobile-accordion > div {
  display: grid;
  gap: 3px;
  padding: 2px 0 6px;
}

.site-mobile-menu .site-mobile-accordion a {
  display: grid;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 11px;
  border-radius: 15px;
}

.site-mobile-menu .site-mobile-accordion a:hover,
.site-mobile-menu .site-mobile-accordion a:focus-visible {
  background: var(--soft-2);
  outline: none;
}

.site-mobile-menu .site-mobile-accordion a strong {
  font-size: .90rem;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.site-mobile-menu .site-mobile-accordion a span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 720;
  line-height: 1.22;
}

@media (max-width: 1060px) {
  .site-mobile-menu > div {
    max-height: min(76vh, 720px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
/* ================================================================
   V4 global UI refinements: tablet navigation, Facts Sheet quick-nav
   styling, homepage side navigation and reusable GenAI section.
================================================================ */

/* Tablet landscape: use the clean mobile menu instead of cramping the full
   desktop navigation on touch devices. */
@media (hover: none) and (pointer: coarse) and (max-width: 1380px) {
  .site-nav {
    display: none !important;
  }

  .site-mobile-menu {
    display: block !important;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto auto;
  }
}

/* Smaller desktop windows should also avoid a squeezed top menu. */
@media (hover: hover) and (pointer: fine) and (max-width: 1180px) {
  .site-nav {
    display: none !important;
  }

  .site-mobile-menu {
    display: block !important;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto auto;
  }
}

/* Correct nested mobile accordion colouring. */
.site-mobile-menu .site-mobile-accordion > summary {
  background: transparent;
  color: var(--ink);
}

.site-mobile-menu .site-mobile-accordion[open] > summary {
  background: var(--ink);
  color: #fff;
}

.site-mobile-menu .site-mobile-accordion[open] > summary::after {
  color: #fff;
}

/* Make the full mobile menu scroll safely on tablets and phones. */
.site-mobile-menu > div {
  max-height: min(78vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Facts Sheet floating-button style applied to the shared page quick nav. */
.page-quick-nav {
  gap: 8px;
}

.page-quick-nav button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(6, 31, 42, .26);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  backdrop-filter: none;
  padding: 0;
  line-height: 0;
  font-size: 0;
}

.page-quick-nav button:hover,
.page-quick-nav button:focus-visible {
  transform: translateY(-3px);
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 18px 42px rgba(6, 31, 42, .32);
  outline: none;
}

.page-quick-nav button:active {
  transform: translateY(0);
}

.page-quick-nav svg {
  width: 22px;
  height: 22px;
  display: block;
  margin: auto;
  transform: none !important;
}

/* Match Facts Sheet behaviour: don't keep hover styling stuck on touch. */
@media (hover: none), (pointer: coarse) {
  .page-quick-nav button:hover {
    transform: none;
    background: var(--magenta);
    color: #fff;
  }
}

/* Reusable Generative AI / LLM section for programme pages. */
.genai-literacy-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(108,198,208,.12), transparent 26rem),
    radial-gradient(circle at 92% 8%, rgba(145,0,72,.08), transparent 24rem);
}

.genai-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.genai-main {
  display: grid;
  align-content: space-between;
  min-height: 430px;
}

.genai-main h2 {
  font-size: clamp(2rem, 3.6vw, 4.2rem);
  letter-spacing: -.055em;
}

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

.genai-cards .compact-card {
  min-height: 190px;
}

.genai-cards .compact-card strong {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(145,0,72,.09);
  color: var(--magenta);
  font-weight: 950;
  margin-bottom: 12px;
}

@media (max-width: 1100px) {
  .genai-layout {
    grid-template-columns: 1fr;
  }

  .genai-main {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .genai-cards {
    grid-template-columns: 1fr;
  }

  .genai-cards .compact-card {
    min-height: 0;
  }
}
/* ================================================================
   V5 consistency pass — responsive navigation, tablet reliability,
   shared quick-navigation styling and cross-page layout coherence.
   Content unchanged.
================================================================ */

/* Use the compact Menu pattern before the full navigation becomes tight.
   This is intentional for tablet landscape, tablet portrait and smaller
   desktop windows. */
@media (max-width: 1360px) {
  .site-nav {
    display: none !important;
  }

  .site-mobile-menu {
    display: block !important;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto auto;
  }
}

/* Keep the full desktop menu only where it has real room. */
@media (min-width: 1361px) {
  .site-mobile-menu {
    display: none;
  }

  .site-nav {
    display: flex;
  }
}

/* Viewport-safe dropdowns on large desktops. */
.site-dropdown {
  max-width: calc(100vw - 28px);
  max-height: min(76vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-dropdown.wide {
  width: min(610px, calc(100vw - 28px));
}

.site-dropdown.route-dropdown {
  width: min(420px, calc(100vw - 28px));
}

/* Ensure button-based top triggers are visually identical to former links. */
.site-nav button.site-nav-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: default;
}

.site-nav button.site-nav-trigger:hover,
.site-nav button.site-nav-trigger:focus-visible {
  background: var(--soft-2);
  outline: none;
}

/* Mobile/tablet menu: consistent dark selected accordion state. */
.site-mobile-menu .site-mobile-accordion > summary {
  background: transparent !important;
  color: var(--ink) !important;
}

.site-mobile-menu .site-mobile-accordion > summary::after {
  color: var(--magenta) !important;
}

.site-mobile-menu .site-mobile-accordion[open] > summary {
  background: var(--ink) !important;
  color: #fff !important;
}

.site-mobile-menu .site-mobile-accordion[open] > summary::after {
  color: #fff !important;
}

.site-mobile-menu > div {
  width: min(390px, calc(100vw - 24px));
  max-height: min(78dvh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Facts Sheet floating navigation style, shared on all pages using the
   right-side page quick nav. */
.page-quick-nav {
  gap: 8px !important;
}

.page-quick-nav button {
  width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--magenta) !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 14px 34px rgba(6, 31, 42, .26) !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

.page-quick-nav button:hover,
.page-quick-nav button:focus-visible {
  transform: translateY(-3px) !important;
  background: var(--magenta) !important;
  color: #fff !important;
  box-shadow: 0 18px 42px rgba(6, 31, 42, .32) !important;
  outline: none !important;
}

.page-quick-nav button:active {
  transform: translateY(0) !important;
}

.page-quick-nav svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  margin: auto !important;
  transform: none !important;
}

@media (hover: none), (pointer: coarse) {
  .page-quick-nav button:hover {
    transform: none !important;
    background: var(--magenta) !important;
    color: #fff !important;
  }
}

/* Keep the left disappearing navigation consistent across homepage and
   programme pages without showing it on touch/mobile. */
.section-hover-panel > strong {
  font-size: .92rem;
  letter-spacing: -.02em;
  padding: 4px 4px 8px;
  border-bottom: 1px solid rgba(219,229,232,.86);
}

@media (max-width: 980px), (hover: none), (pointer: coarse) {
  .section-hover-zone,
  .section-hover-panel {
    display: none !important;
  }
}

/* Programme topbars with additional items should scroll cleanly rather than
   compressing text. */
.programme-subnav .section-nav {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.programme-subnav .section-nav::-webkit-scrollbar {
  display: none;
}

/* GenAI reusable partial: ensure it uses the Bachelor page visual grammar. */
.genai-literacy-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(108,198,208,.12), transparent 26rem),
    radial-gradient(circle at 92% 8%, rgba(145,0,72,.08), transparent 24rem);
}

.genai-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.genai-main {
  display: grid;
  align-content: space-between;
  min-height: 430px;
}

.genai-main h2 {
  font-size: clamp(2rem, 3.6vw, 4.2rem);
  letter-spacing: -.055em;
}

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

.genai-cards .compact-card {
  min-height: 190px;
}

.genai-cards .compact-card strong {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(145,0,72,.09);
  color: var(--magenta);
  font-weight: 950;
  margin-bottom: 12px;
}

@media (max-width: 1100px) {
  .genai-layout {
    grid-template-columns: 1fr;
  }

  .genai-main {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .genai-cards {
    grid-template-columns: 1fr;
  }

  .genai-cards .compact-card {
    min-height: 0;
  }
}
/* ================================================================
   V6 navigation stability fix — desktop dropdowns must never chase
   the mouse. Horizontal repositioning is disabled while open.
================================================================ */
@media (min-width: 1361px) and (hover: hover) and (pointer: fine) {
  .site-nav-item.has-dropdown {
    position: relative;
  }

  .site-dropdown,
  .site-dropdown.wide,
  .site-dropdown.compact,
  .site-dropdown.route-dropdown {
    left: 0;
    right: auto;
    transform: translateY(8px) !important;
    transition: opacity .16s ease, transform .16s ease;
    max-width: calc(100vw - 28px);
  }

  .site-nav-item:hover .site-dropdown,
  .site-nav-item:focus-within .site-dropdown {
    transform: translateY(0) !important;
  }

  .site-nav-item.dropdown-force-closed .site-dropdown {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
  }

  /* Right-side top items open towards the left so they remain inside the
     viewport, but they still remain fixed once opened. */
  .site-nav-item:nth-last-child(-n+2) .site-dropdown {
    left: auto;
    right: 0;
  }

  /* Programmes is intentionally wide, but on desktop it opens from its own
     item, without JavaScript recentering. */
  .programmes-nav .site-dropdown.wide {
    left: 0;
    right: auto;
  }

  /* Study route dropdown also opens from the item itself, not from viewport
     calculations, so selecting UG/PG/Exec remains stable. */
  .study-route-nav .route-dropdown {
    left: 0;
    right: auto;
  }
}
/* ================================================================
   V7 desktop menu stability fix — Chrome / Edge hover-safe dropdowns.
   The dropdown must be static once opened; no scroll-container clipping,
   no horizontal chasing, no hover gap.
================================================================ */
@media (min-width: 1361px) and (hover: hover) and (pointer: fine) {
  .site-header,
  .site-header-inner,
  .site-nav,
  .site-nav-item {
    overflow: visible !important;
  }

  .site-nav {
    padding: 2px 2px 12px;
    margin-bottom: -10px;
    scrollbar-width: none;
  }

  .site-nav-item.has-dropdown {
    position: relative;
    z-index: 101;
  }

  .site-nav-item.has-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
    pointer-events: auto;
  }

  .site-dropdown,
  .site-dropdown.wide,
  .site-dropdown.compact,
  .site-dropdown.route-dropdown {
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    transform: translateY(6px) !important;
    z-index: 400;
    pointer-events: none;
    max-width: calc(100vw - 28px);
    max-height: min(76vh, 720px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
  }

  .site-nav-item:hover .site-dropdown,
  .site-nav-item:focus-within .site-dropdown {
    opacity: 1;
    transform: translateY(0) !important;
    pointer-events: auto;
  }

  .site-nav-item.dropdown-force-closed .site-dropdown {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(6px) !important;
  }

  .site-nav-item:nth-last-child(-n+2) .site-dropdown {
    left: auto;
    right: 0;
  }

  .programmes-nav .site-dropdown.wide,
  .study-route-nav .route-dropdown {
    left: 0;
    right: auto;
  }
}

/* Deploy-safety: the generated dist HTML depends only on dist/assets.
   These rules are intentionally in the shared CSS so the GenAI partial has
   no dependency on source templates being present on the server. */
.genai-literacy-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(108,198,208,.12), transparent 26rem),
    radial-gradient(circle at 92% 8%, rgba(145,0,72,.08), transparent 24rem);
}

.genai-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.genai-main {
  display: grid;
  align-content: space-between;
  min-height: 430px;
}

.genai-main h2 {
  font-size: clamp(2rem, 3.6vw, 4.2rem);
  letter-spacing: -.055em;
}

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

.genai-cards .compact-card {
  min-height: 190px;
}

.genai-cards .compact-card strong {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(145,0,72,.09);
  color: var(--magenta);
  font-weight: 950;
  margin-bottom: 12px;
}

@media (max-width: 1100px) {
  .genai-layout {
    grid-template-columns: 1fr;
  }

  .genai-main {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .genai-cards {
    grid-template-columns: 1fr;
  }

  .genai-cards .compact-card {
    min-height: 0;
  }
}
/* ================================================================
   V8 Chromium dropdown fix — stop relying on instantaneous :hover.
   Chrome/Edge can drop :hover during the trigger → dropdown transition.
   The dropdown is now also held open by .is-open, with no hover gap.
================================================================ */
@media (min-width: 1361px) and (hover: hover) and (pointer: fine) {
  .site-header,
  .site-header-inner,
  .site-nav,
  .site-nav-item.has-dropdown {
    overflow: visible !important;
  }

  .site-nav {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .site-nav-item.has-dropdown {
    position: relative;
  }

  .site-nav-item.has-dropdown::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    top: 100%;
    height: 28px;
    pointer-events: auto;
  }

  .site-dropdown,
  .site-dropdown.wide,
  .site-dropdown.compact,
  .site-dropdown.route-dropdown {
    top: calc(100% - 1px) !important;
    left: 0 !important;
    right: auto !important;
    transform: translateY(0) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 500;
    transition: opacity .12s ease, visibility .12s ease !important;
    max-width: calc(100vw - 28px);
    max-height: min(76vh, 720px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -20px;
    height: 20px;
  }

  .site-nav-item:hover .site-dropdown,
  .site-nav-item:focus-within .site-dropdown,
  .site-nav-item.is-open .site-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .site-nav-item:nth-last-child(-n+2) .site-dropdown {
    left: auto !important;
    right: 0 !important;
  }

  .programmes-nav .site-dropdown.wide,
  .study-route-nav .route-dropdown {
    left: 0 !important;
    right: auto !important;
  }

  .site-nav-item.dropdown-force-closed:not(.is-open) .site-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
/* ================================================================
   Choose MSc V2 — global programme menu text wrapping.
   Programme descriptions must wrap inside the dropdown cards across
   Undergraduate, Postgraduate and Executive panels.
================================================================ */
.site-dropdown,
.site-dropdown * {
  min-width: 0;
}

.site-dropdown a {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
}

.site-dropdown a strong,
.site-dropdown a span,
.site-dropdown-col a strong,
.site-dropdown-col a span,
.programme-panel a strong,
.programme-panel a span {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%;
  min-width: 0;
}

.site-dropdown a span,
.site-dropdown-col a span,
.programme-panel a span {
  display: block;
  line-height: 1.24;
}

.programme-panel {
  min-width: 0;
}

.site-dropdown-col {
  min-width: 0;
}
/* ================================================================
   Global refinement pass — final CTA rhythm, mobile CTA spacing,
   and BSc hero centre-of-gravity harmonisation.
================================================================ */

/* Prevent final CTA sections from behaving like empty full-height slides. */
section[id="meet"].viewport-section,
.home-final.viewport-section,
.home-final.home-final-tight,
.da-final-section,
.de-final-section {
  min-height: auto !important;
  display: block !important;
  align-items: initial !important;
  padding-top: clamp(38px, 4.5vw, 70px) !important;
  padding-bottom: clamp(44px, 5vw, 82px) !important;
}

section[id="meet"] .cta-band,
.home-final-card {
  margin-top: 0 !important;
}

/* Mobile CTA buttons need more breathing room when stacked. */
@media (max-width: 760px) {
  .cta-actions,
  .home-final-actions,
  .hero-actions {
    gap: 12px !important;
  }

  .cta-actions .btn,
  .home-final-actions .btn {
    margin-bottom: 2px;
  }

  .cta-actions .btn:last-child,
  .home-final-actions .btn:last-child,
  .hero-actions .btn:last-child {
    margin-top: 4px;
  }
}

/* Bachelor hero panel closer to the MSc programme-card language. */
.bsc-hero-intro {
  padding: 16px 18px 4px;
  display: grid;
  gap: 7px;
}

.bsc-hero-intro span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(145,0,72,.08);
  border: 1px solid rgba(145,0,72,.20);
  color: var(--magenta);
  font-size: .70rem;
  font-weight: 950;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.bsc-hero-intro strong {
  color: var(--ink);
  font-size: clamp(1.2rem, 1.65vw, 1.65rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.bsc-hero-intro p {
  margin: 0;
  color: var(--muted);
  font-weight: 730;
  line-height: 1.24;
}

@media (max-width: 760px) {
  .bsc-hero-intro {
    padding: 15px 15px 3px;
  }
}


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


/* V12 structural layer: language selector and global footer */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(219, 229, 232, .92);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 18px rgba(6, 31, 42, .07);
}

.language-link {
  min-height: 34px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: -.01em;
  line-height: 1;
  border: 1px solid transparent;
}

.language-link img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(6, 31, 42, .10);
  flex: 0 0 auto;
}

.language-link:hover,
.language-link:focus-visible {
  background: var(--soft-2);
  outline: none;
}

.language-link.is-active,
.language-link[aria-current="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.language-switcher-mobile {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.language-switcher-mobile .language-link {
  min-height: 42px;
  padding: 8px 7px;
  border: 1px solid rgba(219, 229, 232, .90);
  background: rgba(255, 255, 255, .90);
}

.language-switcher-mobile .language-link.is-active,
.language-switcher-mobile .language-link[aria-current="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.site-footer {
  margin-top: clamp(34px, 6vw, 84px);
  background:
    radial-gradient(circle at 8% 0%, rgba(108, 198, 208, .18), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(145, 0, 72, .16), transparent 24rem),
    linear-gradient(135deg, var(--ink), #0b3a48);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.site-footer a {
  color: inherit;
}

.site-footer-inner {
  max-width: min(1320px, calc(100vw - 18px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) clamp(16px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(230px, 1.05fr) minmax(260px, 1.05fr) minmax(210px, .85fr) minmax(230px, .95fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.site-footer-brand img {
  width: 138px;
  height: auto;
}

.site-footer-brand-block,
.site-footer-campus-block,
.site-footer-contact-block,
.site-footer-legal-block {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.site-footer h3 {
  margin: 0;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  letter-spacing: -.035em;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  max-width: 42rem;
}

.site-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
}

.site-footer-socials a:hover,
.site-footer-socials a:focus-visible,
.site-footer-contact-links a:hover,
.site-footer-contact-links a:focus-visible,
.site-footer-legal-links a:hover,
.site-footer-legal-links a:focus-visible,
.site-footer address a:hover,
.site-footer address a:focus-visible {
  background: rgba(255, 255, 255, .14);
  outline: none;
}

.site-footer-socials .social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 20px;
}

.site-footer-socials strong {
  font-size: .82rem;
}

.site-footer-campuses {
  display: grid;
  gap: 12px;
}

.site-footer address {
  font-style: normal;
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .14);
}

.site-footer address strong {
  margin-bottom: 3px;
}

.site-footer address a {
  display: inline-flex;
  width: fit-content;
  border-radius: 10px;
  text-decoration: none;
}

.site-footer address span,
.site-footer-contact-links span,
.site-footer-legal-links span {
  color: rgba(255, 255, 255, .78);
}

.site-footer-contact-links,
.site-footer-legal-links {
  display: grid;
  gap: 10px;
}

.site-footer-contact-links a,
.site-footer-legal-links a {
  display: grid;
  gap: 2px;
  padding: 14px 15px;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .14);
  min-width: 0;
}

.site-footer-contact-links strong,
.site-footer-legal-links strong {
  font-size: .94rem;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.site-footer-bottom p {
  max-width: min(1320px, calc(100vw - 18px));
  margin: 0 auto;
  padding: 16px clamp(16px, 3vw, 34px) 20px;
  font-size: .84rem;
  color: rgba(255, 255, 255, .72);
}

@media (max-width: 1240px) {
  .top-actions .language-switcher {
    gap: 2px;
  }

  .top-actions .language-link {
    min-width: 36px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .top-actions .language-link span {
    display: none;
  }
}

@media (max-width: 1180px) {
  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 34px);
  }
}

@media (max-width: 1060px) {
  .site-header .top-actions .language-switcher {
    display: none;
  }

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

  .site-footer-brand-block {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .site-footer {
    margin-top: 42px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .site-footer-brand img {
    width: 118px;
  }

  .site-footer-socials a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .site-footer-socials a {
    flex-basis: 100%;
  }
}

/* ================================================================
   V13 mobile navigation containment and footer icon refinement.
   - Keep the mobile/tablet menu panel inside the viewport.
   - Reinforce sticky mobile header behaviour.
   - Normalise external social SVG icons to the white footer treatment.
================================================================ */
@media (max-width: 1060px) {
  .site-header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
  }

  .site-header-inner {
    width: 100%;
    max-width: none;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .site-mobile-menu > div {
    position: fixed !important;
    top: calc(var(--site-header-h) + 8px);
    left: max(12px, env(safe-area-inset-left)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - var(--site-header-h) - 18px);
    z-index: 1001;
  }
}

@media (max-width: 560px) {
  .site-mobile-menu > div {
    right: max(10px, env(safe-area-inset-right)) !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    width: auto !important;
  }
}

@media (max-width: 380px) {
  .site-mobile-menu > div {
    right: max(8px, env(safe-area-inset-right)) !important;
    left: max(8px, env(safe-area-inset-left)) !important;
    width: auto !important;
  }
}

.site-footer-socials .social-icon {
  filter: brightness(0) invert(1);
}

/* ================================================================
   V14 mobile sticky header correction.
   Preserve the V13 mobile navigation layout, but make the website
   header genuinely persistent on touch/tablet widths.  Sticky can be
   bypassed by mobile browser/ancestor overflow behaviour, so we use a
   fixed header only at the mobile/tablet breakpoint and compensate the
   document flow with body padding.
================================================================ */
@media (max-width: 1060px) {
  body {
    padding-top: var(--site-header-h);
  }

  .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1200;
  }

  .topbar {
    top: var(--site-header-h);
    z-index: 1100;
  }

  .site-mobile-menu > div {
    z-index: 1210;
  }
}

/* ================================================================
   V20b locale navigation fit.
   Spanish and French navigation labels are naturally longer than English.
   On medium desktop widths (notably 13.6-inch laptops), switch translated
   top navigation to the same clean menu layout used for tablet/mobile rather
   than allowing the full horizontal menu to spill outside the viewport.
   This is deliberately locale-aware so the English desktop layout remains
   unchanged where it already fits.
================================================================ */
@media (hover: hover) and (pointer: fine) and (max-width: 1500px) {
  html[lang^="es"] .site-nav,
  html[lang^="fr"] .site-nav {
    display: none !important;
  }

  html[lang^="es"] .site-mobile-menu,
  html[lang^="fr"] .site-mobile-menu {
    display: block !important;
  }

  html[lang^="es"] .site-header-inner,
  html[lang^="fr"] .site-header-inner {
    grid-template-columns: 1fr auto auto;
    column-gap: 12px;
  }

  html[lang^="es"] .site-header .top-actions,
  html[lang^="fr"] .site-header .top-actions {
    justify-content: end;
  }
}

/* Slightly tighten translated desktop chrome just above the menu-switch
   breakpoint, so larger external monitors still keep a full pleasant nav. */
@media (hover: hover) and (pointer: fine) and (min-width: 1501px) and (max-width: 1660px) {
  html[lang^="es"] .site-header-inner,
  html[lang^="fr"] .site-header-inner {
    padding-left: 14px;
    padding-right: 14px;
    column-gap: 10px;
  }

  html[lang^="es"] .site-nav,
  html[lang^="fr"] .site-nav {
    gap: 3px;
  }

  html[lang^="es"] .site-nav-trigger,
  html[lang^="fr"] .site-nav-trigger {
    font-size: .90rem;
    padding-left: 10px;
    padding-right: 10px;
  }

  html[lang^="es"] .top-actions .btn,
  html[lang^="fr"] .top-actions .btn {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* V21b programme subnav visual separation: use programme soft palette colours
   so the page navigation band clearly breaks from the global white header. */
.programme-subnav {
  background: rgba(244, 248, 249, .92);
}
.programme-subnav.bsc-cse-subnav { background: rgba(248, 231, 240, .94); }
.programme-subnav.msc-da-subnav { background: rgba(240, 233, 255, .94); }
.programme-subnav.msc-de-subnav { background: rgba(229, 247, 236, .94); }
.programme-subnav.msc-ds-subnav { background: rgba(255, 241, 223, .94); }
.programme-subnav.msc-cy-subnav { background: rgba(232, 240, 255, .94); }
.programme-subnav.executive-ai-subnav { background: rgba(250, 231, 227, .94); }
.programme-subnav .reading-progress { background: rgba(255,255,255,.42); }

/* V27 — subtle visual cue for the left-side section navigation affordance. */
@media (min-width: 901px) {
  .section-hover-zone::before {
    content: "";
    position: fixed;
    left: 0;
    top: 50%;
    width: 5px;
    height: 156px;
    transform: translateY(-50%);
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, rgba(145, 0, 72, .68), rgba(108, 198, 208, .54));
    box-shadow: 0 12px 26px rgba(6, 31, 42, .14);
    opacity: .72;
    pointer-events: none;
  }

  .section-hover-zone::after {
    content: "On this page";
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translate(-42%, -50%) rotate(-90deg);
    transform-origin: center;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(219, 229, 232, .82);
    background: rgba(255, 255, 255, .86);
    color: var(--ink-2);
    box-shadow: 0 10px 24px rgba(6, 31, 42, .10);
    backdrop-filter: blur(12px);
    font-size: .64rem;
    font-weight: 950;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: .76;
    pointer-events: none;
  }

  .section-hover-zone:hover::before,
  .section-hover-zone:hover::after {
    opacity: 1;
  }
}

/* V30 — global contrast refinement for dark teal gradient surfaces.
   Full magenta CTA buttons remain unchanged; fine text, line buttons and
   labels over dark gradients switch to light tones for readability. */
.dark-card .btn-line,
.cta-band .btn-line,
.academic-final-card .btn-line,
.france-final-card .btn-line,
.france-hero .btn-line {
  color: #fff !important;
  border-color: rgba(255,255,255,.42) !important;
}

.dark-card .btn-ink,
.cta-band .btn-ink,
.academic-final-card .btn-ink,
.france-final-card .btn-ink,
.france-hero .btn-ink {
  background: rgba(255,255,255,.94) !important;
  color: var(--ink) !important;
  border-color: rgba(255,255,255,.18) !important;
}

.dark-card .section-kicker,
.cta-band .section-kicker,
.dark-card .tag,
.cta-band .tag {
  background: rgba(255,255,255,.13) !important;
  border-color: rgba(255,255,255,.24) !important;
  color: #fff !important;
}

.dark-card h1 span,
.dark-card h2 span,
.cta-band h1 span,
.cta-band h2 span {
  color: #9fe5ec !important;
}


/* V32 — finance pages also use a top page menu/subnav; keep it visually distinct
   and consistent with the programme-page navigation system. */
.programme-subnav.finance-subnav {
  background: rgba(247, 251, 252, .94);
}
.programme-subnav.bsc-finance-subnav {
  background: rgba(248, 231, 240, .94);
}
.programme-subnav.msc-finance-subnav {
  background: rgba(240, 233, 255, .94);
}
.programme-subnav.finance-subnav .programme-label strong {
  color: var(--magenta);
}

/* V33 — MSc admissions page subnav: keep the page menu visually separated. */
.programme-subnav.admissions-subnav,
.programme-subnav.msc-admissions-subnav {
  background: rgba(240, 233, 255, .94);
}
.programme-subnav.admissions-subnav .programme-label strong {
  color: #6236b3;
}


/* ================================================================
   V37 navigation UX refinement.
   - Prospective students uses grouped sections rather than a long flat menu.
   - Open dropdowns always sit above neighbouring top-nav triggers.
   - Locale pages generated from English fallbacks carry locale lang values, so
     Spanish/French compact navigation applies consistently across pages.
================================================================ */
@media (min-width: 1361px) and (hover: hover) and (pointer: fine) {
  .site-nav-item.has-dropdown:hover,
  .site-nav-item.has-dropdown:focus-within {
    z-index: 900;
  }

  .prospective-dropdown.site-dropdown.wide {
    width: min(960px, calc(100vw - 32px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 16px;
  }

  .prospective-dropdown .prospective-group {
    display: grid;
    gap: 8px;
    align-content: start;
    min-width: 0;
  }

  .prospective-dropdown a {
    min-height: 70px;
    align-content: start;
  }
}

.site-mobile-nested-group {
  border: 1px solid rgba(219, 229, 232, .92);
  border-radius: 18px;
  background: rgba(244, 248, 249, .82);
  overflow: hidden;
}

.site-mobile-nested-group + .site-mobile-nested-group {
  margin-top: 10px;
}

.site-mobile-nested-group > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-mobile-nested-group > summary::-webkit-details-marker {
  display: none;
}

.site-mobile-nested-group > summary::after {
  content: "⌄";
  color: var(--magenta);
  font-weight: 950;
  transition: transform .18s ease;
}

.site-mobile-nested-group[open] > summary::after {
  transform: rotate(180deg);
}

.site-mobile-nested-group > div {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.site-mobile-nested-group a {
  background: #fff;
}

@media (max-width: 720px) {
  .site-mobile-nested-group > summary {
    padding: 11px 12px;
  }
}

/* ================================================================
   V37b navigation refinement and discoverability.
   The Prospective students dropdown has grown into a three-column panel;
   on desktop/laptop/tablet-landscape it should read as a centred viewport
   panel rather than being anchored to the trigger and spilling off-screen.
================================================================ */
@media (min-width: 1061px) and (hover: hover) and (pointer: fine) {
  .site-nav-item.prospective-nav {
    position: relative;
  }

  .prospective-nav .prospective-dropdown.site-dropdown.wide {
    position: fixed !important;
    top: calc(var(--site-header-h) - 1px) !important;
    left: 50% !important;
    right: auto !important;
    width: min(1120px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;
    transform: translateX(-50%) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    padding: clamp(16px, 1.5vw, 24px);
    z-index: 1300 !important;
    overflow-x: hidden;
  }

  .prospective-nav:hover .prospective-dropdown.site-dropdown.wide,
  .prospective-nav:focus-within .prospective-dropdown.site-dropdown.wide,
  .prospective-nav.is-open .prospective-dropdown.site-dropdown.wide {
    transform: translateX(-50%) !important;
  }

  .prospective-dropdown .prospective-group {
    min-width: 0;
  }

  .prospective-dropdown .dropdown-label {
    margin-bottom: 12px;
  }
}

@media (min-width: 1061px) and (max-width: 1240px) and (hover: hover) and (pointer: fine) {
  .prospective-nav .prospective-dropdown.site-dropdown.wide {
    width: min(1040px, calc(100vw - 36px)) !important;
    max-width: calc(100vw - 36px) !important;
    gap: 16px;
    padding: 16px;
  }

  .prospective-dropdown a {
    padding: 9px 10px;
  }

  .prospective-dropdown a strong {
    font-size: .86rem;
  }

  .prospective-dropdown a span {
    font-size: .75rem;
  }
}

/* ================================================================
   V41 mobile navigation readability refinement.
   Nested groups inside the mobile Prospective students menu use a subtle
   tinted surface with dark text, rather than white text over --soft-2.
================================================================ */
.site-mobile-menu .site-mobile-nested-group {
  background: rgba(255, 255, 255, .76);
  border-color: rgba(219, 229, 232, .96);
}

.site-mobile-menu .site-mobile-nested-group > summary,
.site-mobile-menu .site-mobile-accordion[open] .site-mobile-nested-group > summary {
  background: rgba(6, 31, 42, .055) !important;
  color: var(--ink) !important;
  border-bottom: 1px solid rgba(219, 229, 232, .78);
}

.site-mobile-menu .site-mobile-nested-group > summary::after,
.site-mobile-menu .site-mobile-accordion[open] .site-mobile-nested-group > summary::after {
  color: var(--magenta) !important;
}

.site-mobile-menu .site-mobile-nested-group[open] > summary,
.site-mobile-menu .site-mobile-accordion[open] .site-mobile-nested-group[open] > summary {
  background: rgba(145, 0, 72, .08) !important;
  color: var(--ink) !important;
}

.site-mobile-menu .site-mobile-nested-group a,
.site-mobile-menu .site-mobile-accordion[open] .site-mobile-nested-group a {
  background: #fff;
  color: var(--ink) !important;
}

.site-mobile-menu .site-mobile-nested-group a:hover,
.site-mobile-menu .site-mobile-nested-group a:focus-visible {
  background: rgba(244, 248, 249, .92);
  color: var(--ink) !important;
}

/* ================================================================
   V45 Prospective students navigation simplification.
   Admissions and tuition now have routing pages, so the menu returns
   to a compact two-column dropdown on desktop/laptop/tablet-landscape.
================================================================ */
@media (min-width: 1061px) and (hover: hover) and (pointer: fine) {
  .prospective-nav .compact-prospective-dropdown.site-dropdown.wide {
    width: min(780px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(16px, 2vw, 22px) !important;
    padding: clamp(16px, 1.4vw, 22px) !important;
  }

  .compact-prospective-dropdown .prospective-group {
    display: grid;
    gap: 8px;
    align-content: start;
  }

  .compact-prospective-dropdown a {
    min-height: 68px;
  }
}

@media (min-width: 1061px) and (max-width: 1240px) and (hover: hover) and (pointer: fine) {
  .prospective-nav .compact-prospective-dropdown.site-dropdown.wide {
    width: min(740px, calc(100vw - 36px)) !important;
    max-width: calc(100vw - 36px) !important;
  }
}

/* ================================================================
   V54 mobile navigation refinement.
   This applies only to the compact Menu layout. The full desktop
   navigation/dropdown system remains untouched.
================================================================ */
.site-mobile-menu .site-mobile-accordion a.is-current,
.site-mobile-menu .programmes-mobile-overview.is-current {
  background: rgba(145, 0, 72, .075);
  border: 1px solid rgba(145, 0, 72, .18);
  color: var(--ink);
}

.site-mobile-menu .site-mobile-accordion a.is-current strong,
.site-mobile-menu .programmes-mobile-overview.is-current strong {
  color: var(--magenta);
}

.site-mobile-menu .site-mobile-accordion a.is-current span,
.site-mobile-menu .programmes-mobile-overview.is-current span {
  color: var(--ink-2);
}


/* V59 — reusable DSTI photo-story lightbox.
   Use with elements carrying data-photo-story-trigger and a page-level
   #dstiPhotoStoryModal. Class names are intentionally namespaced to avoid
   conflict with existing video and academic-image overlays. */
body.modal-open {
  overflow: hidden;
}

.dsti-photo-story-trigger {
  -webkit-tap-highlight-color: transparent;
}

.dsti-photo-story-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.4vw, 28px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.dsti-photo-story-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dsti-photo-story-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(108, 198, 208, .22), transparent 30rem),
    radial-gradient(circle at 82% 14%, rgba(145, 0, 72, .22), transparent 28rem),
    rgba(3, 21, 29, .86);
  backdrop-filter: blur(18px);
}

.dsti-photo-story-dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(860px, calc(100svh - 24px));
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: clamp(24px, 3vw, 36px);
  overflow: hidden;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .34);
  transform: translateY(10px) scale(.985);
  transition: transform .22s ease;
}

.dsti-photo-story-modal.is-open .dsti-photo-story-dialog {
  transform: translateY(0) scale(1);
}

.dsti-photo-story-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(3, 21, 29, .72);
  color: #fff;
  font-size: 1.72rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.dsti-photo-story-close:hover,
.dsti-photo-story-close:focus-visible {
  background: #061f2a;
  outline: none;
}

.dsti-photo-story-frame {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  min-height: min(680px, calc(100svh - 24px));
  max-height: min(860px, calc(100svh - 24px));
}

.dsti-photo-story-image-wrap {
  background: #03151d;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dsti-photo-story-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(860px, calc(100svh - 24px));
  object-fit: contain;
}

.dsti-photo-story-caption {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: clamp(22px, 3vw, 38px);
  background:
    radial-gradient(circle at 100% 0%, rgba(108, 198, 208, .20), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(244, 248, 249, .96));
  color: #061f2a;
}

.dsti-photo-story-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(145, 0, 72, .08);
  border: 1px solid rgba(145, 0, 72, .14);
  color: #910048;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dsti-photo-story-caption h2 {
  margin: 0;
  color: #061f2a;
  font-size: clamp(1.65rem, 2.65vw, 3.2rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.dsti-photo-story-caption p {
  margin: 0;
  color: #405963;
  font-size: clamp(.98rem, 1.25vw, 1.16rem);
  line-height: 1.55;
}

.dsti-photo-story-caption small {
  color: #6b7f86;
  font-size: .82rem;
}

@media (max-width: 820px) {
  .dsti-photo-story-modal {
    padding: 8px;
    align-items: center;
  }

  .dsti-photo-story-dialog {
    border-radius: 24px;
    max-height: calc(100svh - 16px);
  }

  .dsti-photo-story-frame {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    max-height: calc(100svh - 16px);
  }

  .dsti-photo-story-image-wrap {
    min-height: 0;
    max-height: 64svh;
  }

  .dsti-photo-story-image-wrap img {
    width: 100%;
    height: 100%;
    max-height: 64svh;
    object-fit: contain;
  }

  .dsti-photo-story-caption {
    gap: 8px;
    padding: 16px 18px 18px;
    max-height: 31svh;
    overflow-y: auto;
    align-content: start;
  }

  .dsti-photo-story-eyebrow {
    font-size: .66rem;
  }

  .dsti-photo-story-caption h2 {
    font-size: clamp(1.36rem, 8vw, 2rem);
  }

  .dsti-photo-story-caption p {
    font-size: .94rem;
    line-height: 1.46;
  }

  .dsti-photo-story-caption small {
    display: none;
  }

  .dsti-photo-story-close {
    width: 38px;
    height: 38px;
    top: 10px;
    right: 10px;
  }
}

/* V60 — robust text containment for the reusable DSTI photo-story overlay.
   Keeps the Instagram-style layout, but prevents long titles/captions from
   spilling on desktop, tablet or portrait mobile screens. */
.dsti-photo-story-dialog,
.dsti-photo-story-frame,
.dsti-photo-story-caption,
.dsti-photo-story-caption * {
  min-width: 0;
}

.dsti-photo-story-dialog {
  width: min(1320px, calc(100vw - clamp(20px, 4vw, 56px)));
  max-width: calc(100vw - clamp(20px, 4vw, 56px));
}

.dsti-photo-story-frame {
  grid-template-columns: minmax(0, 1fr) minmax(320px, clamp(360px, 30vw, 460px));
}

.dsti-photo-story-caption {
  overflow: hidden;
}

.dsti-photo-story-eyebrow {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dsti-photo-story-caption h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  font-size: clamp(1.55rem, 2.15vw, 2.75rem);
  line-height: 1;
}

.dsti-photo-story-caption p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) and (min-width: 821px) {
  .dsti-photo-story-dialog {
    width: min(980px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .dsti-photo-story-frame {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  }

  .dsti-photo-story-caption {
    padding: 24px;
  }

  .dsti-photo-story-caption h2 {
    font-size: clamp(1.45rem, 3vw, 2.25rem);
  }
}

@media (max-width: 820px) {
  .dsti-photo-story-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .dsti-photo-story-frame {
    max-height: calc(100dvh - 16px);
    grid-template-rows: minmax(0, 58dvh) minmax(0, auto);
  }

  .dsti-photo-story-image-wrap {
    max-height: 58dvh;
  }

  .dsti-photo-story-image-wrap img {
    max-height: 58dvh;
  }

  .dsti-photo-story-caption {
    max-height: calc(42dvh - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .dsti-photo-story-caption h2 {
    font-size: clamp(1.2rem, 7.2vw, 1.85rem);
    line-height: 1.04;
  }

  .dsti-photo-story-caption p {
    font-size: .92rem;
    line-height: 1.44;
  }
}

@media (max-width: 420px) {
  .dsti-photo-story-frame {
    grid-template-rows: minmax(0, 56dvh) minmax(0, auto);
  }

  .dsti-photo-story-image-wrap,
  .dsti-photo-story-image-wrap img {
    max-height: 56dvh;
  }

  .dsti-photo-story-caption {
    max-height: calc(44dvh - 16px);
    padding: 14px 15px 16px;
  }
}

/* V61 — photo-story overlay responsive repair and public-caption fit.
   Namespaced for reuse: fixes mobile image visibility, keeps captions inside
   the card, and lets title size respond to the caption container width. */
.dsti-photo-story-caption {
  container-type: inline-size;
}

.dsti-photo-story-caption h2 {
  font-size: clamp(1.45rem, 8.2cqw, 2.55rem);
  line-height: 1.03;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.dsti-photo-story-caption p {
  overflow-wrap: break-word;
  hyphens: none;
}

@media (min-width: 821px) {
  .dsti-photo-story-frame {
    grid-template-columns: minmax(0, 1fr) minmax(340px, clamp(380px, 30vw, 500px));
  }

  .dsti-photo-story-caption {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 820px) {
  .dsti-photo-story-modal {
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    align-items: center;
  }

  .dsti-photo-story-dialog {
    width: min(560px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    overflow: hidden;
  }

  .dsti-photo-story-frame {
    display: grid;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(170px, 52dvh) minmax(0, auto) !important;
    min-height: 0;
    max-height: calc(100dvh - 16px);
  }

  .dsti-photo-story-image-wrap {
    order: 1;
    min-height: 170px;
    height: 52dvh;
    max-height: 52dvh;
  }

  .dsti-photo-story-image-wrap img {
    width: 100%;
    height: 100%;
    max-height: 52dvh;
    object-fit: contain;
  }

  .dsti-photo-story-caption {
    order: 2;
    max-height: calc(48dvh - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    align-content: start;
    gap: 8px;
    padding: clamp(14px, 4vw, 20px);
  }

  .dsti-photo-story-eyebrow {
    font-size: clamp(.58rem, 2.3vw, .68rem);
    line-height: 1.2;
  }

  .dsti-photo-story-caption h2 {
    font-size: clamp(1.28rem, 7.2vw, 2rem);
    line-height: 1.03;
  }

  .dsti-photo-story-caption p {
    font-size: clamp(.86rem, 3.65vw, .96rem);
    line-height: 1.42;
  }
}

@media (max-width: 420px) {
  .dsti-photo-story-frame {
    grid-template-rows: minmax(155px, 50dvh) minmax(0, auto) !important;
  }

  .dsti-photo-story-image-wrap,
  .dsti-photo-story-image-wrap img {
    height: 50dvh;
    max-height: 50dvh;
  }

  .dsti-photo-story-caption {
    max-height: calc(50dvh - 18px);
  }
}


/* V64 — translated-slug and mobile overlay refinement.
   Keep the reusable photo-story overlay above mobile headers/page menus so
   the close control is always visible and tappable. */
.dsti-photo-story-modal {
  z-index: 2400;
}


/* V66 — keep mobile language selector visible while scrolling the open menu. */
.site-mobile-menu .site-mobile-language {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(6, 31, 42, .10);
  backdrop-filter: blur(14px);
}

/* V70 — dynamic photo-story title fitting.
   Preserve the editorial Instagram-style overlay while preventing ugly mid-word
   breaks such as “Contrescar / pe” on constrained caption panels. */
.dsti-photo-story-caption h2,
#dstiPhotoStoryTitle {
  overflow-wrap: normal !important;
  word-break: normal;
  hyphens: none;
  white-space: normal;
  max-inline-size: 100%;
}

#dstiPhotoStoryTitle.is-title-compact {
  font-size: clamp(1.32rem, 6.7cqw, 2.18rem);
  line-height: 1.02;
}

#dstiPhotoStoryTitle.is-title-tight {
  font-size: clamp(1.18rem, 5.7cqw, 1.86rem);
  line-height: 1.04;
}

#dstiPhotoStoryTitle.is-title-micro {
  font-size: clamp(1.05rem, 4.9cqw, 1.58rem);
  line-height: 1.07;
}

@media (max-width: 820px) {
  #dstiPhotoStoryTitle.is-title-compact {
    font-size: clamp(1.16rem, 6.3cqw, 1.72rem);
  }

  #dstiPhotoStoryTitle.is-title-tight {
    font-size: clamp(1.04rem, 5.45cqw, 1.48rem);
  }

  #dstiPhotoStoryTitle.is-title-micro {
    font-size: clamp(.98rem, 4.85cqw, 1.32rem);
  }
}


/* V78 — grouped How you study navigation. */
@media (min-width: 1061px) and (hover: hover) and (pointer: fine) {
  .how-study-nav .how-study-dropdown.site-dropdown.wide {
    width: min(720px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 22px);
    padding: clamp(14px, 1.3vw, 20px);
  }
  .how-study-dropdown .how-study-group {
    display: grid;
    gap: 8px;
    align-content: start;
    min-width: 0;
  }
  .how-study-dropdown a {
    min-height: 68px;
    align-content: start;
  }
  .how-study-dropdown .dropdown-label {
    margin-bottom: 8px;
  }
}

.site-mobile-accordion > div > .dropdown-label {
  margin: 8px 10px 4px;
}

/* ================================================================
   V86 desktop navigation hover-sensitivity experiment.
   The full desktop dropdown should not open the instant the pointer brushes
   the top navigation while moving from a page subnav/hero area. Mobile menu
   behaviour is intentionally untouched.
================================================================ */
@media (min-width: 1361px) and (hover: hover) and (pointer: fine) {
  .site-nav-item.has-dropdown:hover:not(.is-open):not(:focus-within) .site-dropdown,
  .site-nav-item.has-dropdown.dropdown-hover-waiting:not(.is-open):not(:focus-within) .site-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(0) !important;
  }

  .site-nav-item.has-dropdown.is-open .site-dropdown,
  .site-nav-item.has-dropdown:focus-within .site-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* V90 — global UI consistency pass
   Site-wide safeguards for horizontal jitter and fixed-header hero alignment.
   These rules avoid content/route changes and keep mobile navigation untouched. */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

main,
.viewport-section,
.site-shell,
.topbar-inner,
.section-nav,
.hero-grid,
[class$="-shell"],
[class$="-grid"],
[class$="-layout"],
[class$="-panel"],
[class$="-card"] {
  min-width: 0;
}

/* Let video-led heroes sit directly against their page menu. The 1px overlap
   hides sticky-row border/background seams without changing mobile menus. */
.page-with-fixed-header .topbar + main > .life-hero,
.page-with-fixed-header .topbar + main > .live-hero,
.page-with-fixed-header .topbar + main > .stories-hero,
.page-with-fixed-header .topbar + main > .france-hero,
.page-with-fixed-header .topbar + main > .online-hero,
.page-with-fixed-header main > .life-hero:first-child,
.page-with-fixed-header main > .live-hero:first-child,
.page-with-fixed-header main > .stories-hero:first-child,
.page-with-fixed-header main > .france-hero:first-child,
.page-with-fixed-header main > .online-hero:first-child {
  margin-top: -1px;
}

.life-hero-video,
.live-hero-video,
.stories-hero-video,
.stories-hero-video-fallback,
.france-hero-video,
.online-hero-video {
  top: 0;
}

/* V91 — future-proof video-hero seam rule.
   When a page has a local page menu, any first-section hero driven by an
   autoplay muted background video should sit directly against that menu.
   The homepage has no page menu and is deliberately unaffected. */
:root {
  --hero-menu-seam-overlap: 2px;
}

.page-with-fixed-header .topbar + main > .life-hero:first-child,
.page-with-fixed-header .topbar + main > .live-hero:first-child,
.page-with-fixed-header .topbar + main > .stories-hero:first-child,
.page-with-fixed-header .topbar + main > .france-hero:first-child,
.page-with-fixed-header .topbar + main > .online-hero:first-child,
.page-with-fixed-header .topbar ~ main > .life-hero:first-child,
.page-with-fixed-header .topbar ~ main > .live-hero:first-child,
.page-with-fixed-header .topbar ~ main > .stories-hero:first-child,
.page-with-fixed-header .topbar ~ main > .france-hero:first-child,
.page-with-fixed-header .topbar ~ main > .online-hero:first-child {
  margin-top: calc(-1 * var(--hero-menu-seam-overlap));
  border-top: 0;
}

@supports selector(section:has(> video)) {
  .page-with-fixed-header .topbar + main > section:first-child:has(> video[autoplay][muted]),
  .page-with-fixed-header .topbar ~ main > section:first-child:has(> video[autoplay][muted]) {
    margin-top: calc(-1 * var(--hero-menu-seam-overlap));
    border-top: 0;
  }
}


/* V102: programme professional-experience cards for Bachelor/Live-style harmonisation */
.programme-experience-grid {
  display: grid;
  grid-template-columns: 1.05fr repeat(3, minmax(0, .7fr));
  gap: 14px;
  align-items: stretch;
}

.programme-experience-main h3 {
  font-size: clamp(1.55rem, 2.2vw, 2.45rem);
}

.programme-exp-card {
  display: grid;
  gap: 8px;
  align-content: start;
}

.programme-exp-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.programme-exp-card strong {
  color: var(--magenta);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.programme-exp-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(145,0,72,.08);
  border: 1px solid rgba(145,0,72,.16);
  color: var(--magenta);
  margin-bottom: 4px;
}

.programme-exp-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.programme-exp-crcc img {
  width: min(170px, 80%);
  height: auto;
  display: block;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(219,229,232,.9);
  padding: 10px;
  margin-bottom: 6px;
}

.programme-exp-link {
  margin-top: auto;
  width: fit-content;
  display: inline-flex;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: .86rem;
}

.programme-exp-link:hover,
.programme-exp-link:focus-visible {
  background: var(--magenta);
  outline: none;
}

@media (max-width: 1180px) {
  .programme-experience-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .programme-experience-main { grid-column: span 2; }
}

@media (max-width: 760px) {
  .programme-experience-grid,
  .programme-experience-main { grid-template-columns: 1fr; grid-column: auto; }
  .programme-exp-icon { width: 48px; height: 48px; }
  .programme-exp-icon svg { width: 28px; height: 28px; }
}

/* ================================================================
   V105 global rhythm pass — modestly tighter section gutters and
   anchor positioning, while leaving all background-video heroes untouched.
================================================================ */
@media (min-width: 761px) {
  main > section[data-nav-section]:not(.home-hero):not(.life-hero):not(.live-hero):not(.stories-hero):not(.france-hero):not(.online-hero) {
    scroll-margin-top: calc(var(--site-header-h, 72px) + var(--topbar-h, 56px) + 6px);
  }

  main > section[data-nav-section]:not(.home-hero):not(.life-hero):not(.live-hero):not(.stories-hero):not(.france-hero):not(.online-hero):not([id="meet"]) {
    padding-top: clamp(28px, 4.2vw, 58px);
    padding-bottom: clamp(28px, 4.2vw, 58px);
  }

  main > section[data-nav-section][class*="-hero"]:not(.home-hero):not(.life-hero):not(.live-hero):not(.stories-hero):not(.france-hero):not(.online-hero),
  main > section.hero[data-nav-section]:not(.home-hero):not(.life-hero):not(.live-hero):not(.stories-hero):not(.france-hero):not(.online-hero) {
    padding-top: clamp(20px, 3vw, 42px);
    padding-bottom: clamp(22px, 3vw, 46px);
  }
}

@media (min-width: 1180px) and (min-height: 700px) {
  main > section.viewport-section[data-nav-section]:not(.home-hero):not(.life-hero):not(.live-hero):not(.stories-hero):not(.france-hero):not(.online-hero):not([id="meet"]) {
    min-height: calc(100svh - var(--topbar, var(--topbar-h, 56px)));
  }
}

/* ================================================================
   V109 global rhythm refinement — reduce excessive bottom whitespace
   on non-video navigable sections while preserving all background-video
   hero seam/padding behaviour.
================================================================ */
@media (min-width: 761px) {
  main > section[data-nav-section]:not(.home-hero):not(.life-hero):not(.live-hero):not(.stories-hero):not(.france-hero):not(.online-hero):not([id="meet"]) {
    padding-top: clamp(26px, 3.8vw, 54px);
    padding-bottom: clamp(22px, 3.1vw, 44px);
  }

  main > section[data-nav-section][class*="-hero"]:not(.home-hero):not(.life-hero):not(.live-hero):not(.stories-hero):not(.france-hero):not(.online-hero),
  main > section.hero[data-nav-section]:not(.home-hero):not(.life-hero):not(.live-hero):not(.stories-hero):not(.france-hero):not(.online-hero) {
    padding-top: clamp(20px, 2.8vw, 38px);
    padding-bottom: clamp(20px, 2.6vw, 38px);
  }
}

@media (min-width: 1180px) and (min-height: 700px) {
  main > section.viewport-section[data-nav-section]:not(.home-hero):not(.life-hero):not(.live-hero):not(.stories-hero):not(.france-hero):not(.online-hero):not([id="meet"]) {
    min-height: calc(92svh - var(--topbar, var(--topbar-h, 56px)));
  }

  .programme-page > .hero.viewport-section:not(.home-hero):not(.life-hero):not(.live-hero):not(.stories-hero):not(.france-hero):not(.online-hero),
  .programme-page .section.viewport-section:not(.home-hero):not(.life-hero):not(.live-hero):not(.stories-hero):not(.france-hero):not(.online-hero) {
    min-height: calc(92svh - var(--topbar, var(--topbar-h, 56px)));
  }
}


/* ================================================================
   V124 brochure CTA dropdown hardening.
   The featured brochure card lives in the global navigation, so its
   presentation must be available on every page, not only on the brochure page.
================================================================ */
.prospective-feature-card,
.site-mobile-menu .prospective-feature-card {
  position: relative;
  display: grid;
  gap: 5px;
  text-decoration: none;
  border: 1px solid rgba(108, 198, 208, .34);
  background:
    radial-gradient(circle at 8% 8%, rgba(108, 198, 208, .30), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(145, 0, 72, .14), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,248,249,.94));
  box-shadow: 0 18px 44px rgba(6, 31, 42, .10);
  overflow: hidden;
}

.prospective-dropdown .prospective-feature-card,
.compact-prospective-dropdown .prospective-feature-card {
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
  padding: 15px 17px !important;
  border-radius: 22px;
  align-content: center !important;
}

.prospective-feature-card::after {
  content: "→";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(6, 31, 42, .92);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(6,31,42,.16);
}

.prospective-feature-card em,
.site-mobile-menu .prospective-feature-card em {
  width: fit-content;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 950;
  font-size: .68rem;
  color: var(--magenta);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(145, 0, 72, .08);
  border: 1px solid rgba(145, 0, 72, .15);
}

.prospective-feature-card strong,
.site-mobile-menu .prospective-feature-card strong {
  color: var(--ink) !important;
  font-size: .98rem;
  line-height: 1.08;
  padding-right: 42px;
}

.prospective-feature-card span,
.site-mobile-menu .prospective-feature-card span {
  color: var(--muted) !important;
  font-size: .82rem;
  line-height: 1.3;
  padding-right: 42px;
}

@media (min-width: 1061px) and (hover: hover) and (pointer: fine) {
  .prospective-nav .compact-prospective-dropdown.site-dropdown.wide {
    align-items: start;
  }
}

.site-mobile-menu .prospective-feature-card {
  margin-bottom: 10px;
  padding: 13px 14px;
  border-radius: 18px;
}

.footer-brochure-link {
  border-color: rgba(108, 198, 208, .38) !important;
}

/* ================================================================
   V126 brochure CTA polish.
   The featured brochure card should remain a soft gradient resource card
   even when the current page is /download-brochure and mobile navigation
   marks its link as current.
================================================================ */
.site-mobile-menu .site-mobile-accordion a.prospective-feature-card.is-current,
.site-mobile-menu a.prospective-feature-card.is-current,
.site-mobile-menu .site-mobile-accordion a.prospective-feature-card.is-current:hover,
.site-mobile-menu .site-mobile-accordion a.prospective-feature-card.is-current:focus-visible {
  border: 1px solid rgba(108, 198, 208, .34) !important;
  background:
    radial-gradient(circle at 8% 8%, rgba(108, 198, 208, .30), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(145, 0, 72, .14), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,248,249,.94)) !important;
  color: var(--ink) !important;
}

.site-mobile-menu .site-mobile-accordion a.prospective-feature-card.is-current strong,
.site-mobile-menu a.prospective-feature-card.is-current strong {
  color: var(--ink) !important;
}

.site-mobile-menu .site-mobile-accordion a.prospective-feature-card.is-current span,
.site-mobile-menu a.prospective-feature-card.is-current span {
  color: var(--muted) !important;
}

/* ================================================================
   V132 compact translated desktop navigation.
   Preserve exactly the normal desktop menu typography for French
   and Mexican Spanish. The only meaningful space saving in this
   range is the language-switcher label removal; 11–12 inch class
   screens remain on the mobile menu.
================================================================ */
@media (hover: hover) and (pointer: fine) and (min-width: 1260px) and (max-width: 1660px) {
  html[lang^="fr"] .top-actions .language-switcher,
  html[lang^="es"] .top-actions .language-switcher {
    gap: 1px;
    padding: 2px;
  }

  html[lang^="fr"] .top-actions .language-link,
  html[lang^="es"] .top-actions .language-link {
    min-width: 32px;
    min-height: 32px;
    padding: 4px 5px;
  }

  html[lang^="fr"] .top-actions .language-link span,
  html[lang^="es"] .top-actions .language-link span {
    display: none;
  }

  html[lang^="fr"] .top-actions .language-link img,
  html[lang^="es"] .top-actions .language-link img {
    width: 21px;
    height: 15px;
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 1260px) and (max-width: 1500px) {
  html[lang^="fr"] .site-header-inner,
  html[lang^="es"] .site-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    max-width: min(1640px, calc(100vw - 8px));
    padding-left: clamp(8px, .75vw, 12px);
    padding-right: clamp(8px, .75vw, 12px);
    column-gap: 6px;
  }

  html[lang^="fr"] .site-nav,
  html[lang^="es"] .site-nav {
    display: flex !important;
    justify-content: center;
    overflow: visible;
    padding-left: 0;
    padding-right: 0;
  }

  html[lang^="fr"] .site-nav-trigger,
  html[lang^="es"] .site-nav-trigger {
    font-size: .92rem;
    padding: 10px 13px;
  }

  html[lang^="fr"] .site-mobile-menu,
  html[lang^="es"] .site-mobile-menu {
    display: none !important;
  }
}

/* ================================================================
   V145 — global rounded-label vertical centring.
   Many page families use small oval/kicker/tag labels. Keep their
   existing colours and spacing, but normalise the inline-flex baseline
   so label text sits optically centred in English, French and es-MX.
================================================================ */
:where(
  .eyebrow,
  .tag,
  .section-kicker,
  .home-kicker,
  .home-path-label,
  .dropdown-label,
  .about-kicker,
  .about-section-kicker,
  .academic-kicker,
  .framework-kicker,
  .framework-section-kicker,
  .framework-tag,
  .accom-kicker,
  .admissions-kicker,
  .admissions-card-label,
  .agents-kicker,
  .agents-section-kicker,
  .ambassadors-kicker,
  .ambassadors-section-kicker,
  .brochure-kicker,
  .careers-kicker,
  .careers-section-kicker,
  .contact-kicker,
  .contact-card-label,
  .cpe-kicker,
  .cpe-card-label,
  .dos-kicker,
  .dos-card-label,
  .faculty-kicker,
  .faculty-section-kicker,
  .faculty-role-pill,
  .finance-kicker,
  .finance-card-label,
  .france-kicker,
  .france-tag,
  .intl-kicker,
  .intl-tag,
  .intl-info-tag,
  .legal-kicker,
  .life-kicker,
  .life-card-label,
  .live-kicker,
  .live-tag,
  .msc-route-label,
  .online-kicker,
  .paris-kicker,
  .paris-card-label,
  .riviera-kicker,
  .riviera-card-label,
  .routing-kicker,
  .routing-card-label,
  .staff-kicker,
  .staff-section-kicker,
  .stories-kicker,
  .stories-section-kicker
) {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.08 !important;
  vertical-align: middle;
}


/* V216 — one-time PWA install cue prototype. */
.dsti-install-cue {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: calc(clamp(16px, 3vw, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 12px 12px 13px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 0% 0%, rgba(108, 198, 208, .34), transparent 58%),
    linear-gradient(135deg, rgba(6, 31, 42, .96), rgba(12, 51, 64, .92) 48%, rgba(145, 0, 72, .88));
  box-shadow: 0 20px 54px rgba(6, 31, 42, .28);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  transform: translate3d(0, calc(100% + 32px), 0) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .34s ease, opacity .34s ease;
}

.dsti-install-cue.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.dsti-install-cue__mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, .78));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .70), 0 10px 26px rgba(0, 0, 0, .20);
  animation: dsti-install-cue-pulse 2.8s ease-in-out infinite;
}

.dsti-install-cue__copy {
  min-width: 0;
}

.dsti-install-cue__copy strong,
.dsti-install-cue__copy span {
  display: block;
}

.dsti-install-cue__copy strong {
  font-size: .92rem;
  line-height: 1.14;
  letter-spacing: -.015em;
}

.dsti-install-cue__copy span {
  margin-top: 3px;
  color: rgba(255, 255, 255, .82);
  font-size: .78rem;
  line-height: 1.25;
}

.dsti-install-cue__steps {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-top: 7px;
  color: #fff;
  font-size: .70rem;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.dsti-install-cue__steps em {
  padding: 3px 7px;
  border-radius: 999px;
  font-style: normal;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
}

.dsti-install-cue__actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.dsti-install-cue__action,
.dsti-install-cue__close {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.dsti-install-cue__action {
  white-space: nowrap;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.dsti-install-cue__close {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .12);
  font-size: 18px;
  line-height: 1;
}

.dsti-install-cue__action:focus-visible,
.dsti-install-cue__close:focus-visible {
  outline: 3px solid rgba(108, 198, 208, .72);
  outline-offset: 2px;
}

@keyframes dsti-install-cue-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-2px) scale(1.04); }
}

@media (max-width: 640px) {
  .dsti-install-cue {
    left: 12px;
    right: 12px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: auto;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dsti-install-cue__actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .dsti-install-cue__action {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dsti-install-cue,
  .dsti-install-cue__mark {
    transition: none;
    animation: none;
  }
}

/* V218 trial — one-time route discovery cue for the Study at DSTI menu. */
.study-route-cue {
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 230px;
  padding: 6px 10px 6px 9px;
  border: 1px solid rgba(255, 218, 128, .72);
  border-radius: 999px;
  color: #17313a;
  background: linear-gradient(135deg, rgba(255, 251, 236, .98), rgba(255, 238, 184, .96));
  box-shadow: 0 14px 30px rgba(6, 31, 42, .18), 0 0 0 1px rgba(255, 255, 255, .35) inset;
  font-size: .70rem;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -4px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}

.study-route-cue::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(255, 251, 236, .98);
  border-left: 1px solid rgba(255, 218, 128, .72);
  border-top: 1px solid rgba(255, 218, 128, .72);
}

.study-route-cue::after {
  content: "→";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: #17313a;
  background: linear-gradient(135deg, #ffd46b, #fff3bd);
  box-shadow: 0 0 0 1px rgba(199, 140, 24, .20) inset;
  font-size: .68rem;
  line-height: 1;
  transform: translateY(-.5px);
}

.study-route-cue.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  animation: studyRouteCueNudge 2.8s ease-in-out .45s infinite;
}

@keyframes studyRouteCueNudge {
  0%, 78%, 100% {
    transform: translate(-50%, 0) scale(1);
  }
  84% {
    transform: translate(-50%, -3px) scale(1.015);
  }
  90% {
    transform: translate(-50%, 0) scale(1);
  }
  95% {
    transform: translate(-50%, -1.5px) scale(1.008);
  }
}

@media (max-width: 979px) {
  .study-route-cue {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .study-route-cue {
    transition: none;
    animation: none;
  }
}

/* =====================================================================
   V221 — display-title word integrity + desktop/tablet viewport fit

   Purpose:
   - keep hero/display titles large, but stop browsers from splitting words
     such as “d’ingénierie” into visually incorrect fragments;
   - preserve the existing visual language while softening title scale on
     laptop/tablet widths where translated FR/ES headings are longer;
   - leave card/body containment rules intact elsewhere.
   ===================================================================== */
:where(
  .hero h1,
  .programme-page > .hero h1,
  .home-hero h1,
  .about-hero h1,
  .academic-hero h1,
  .framework-hero h1,
  .accom-hero h1,
  .alternance-hero h1,
  .admissions-hero h1,
  .careers-hero h1,
  .france-hero h1,
  .contact-hero h1,
  .cpe-hero h1,
  .dos-hero h1,
  .brochure-copy h1,
  .ensam-hero h1,
  .exec-ai-copy h1,
  .faculty-hero h1,
  .finance-hero h1,
  .intl-hero h1,
  .legal-document h1,
  .life-riviera-page h1,
  .live-hero h1,
  .msc-hero h1,
  .msc-cy-hero h1,
  .msc-da-hero h1,
  .msc-de-hero h1,
  .msc-ds-hero h1,
  .online-hero h1,
  .paris-hero h1,
  .riviera-hero h1,
  .routing-hero h1,
  .staff-hero h1,
  .ambassadors-hero h1,
  .stories-hero h1,
  .agents-hero h1
),
:where(
  .hero h1 span,
  .programme-page > .hero h1 span,
  .home-hero h1 span,
  .about-hero h1 span,
  .academic-hero h1 span,
  .framework-hero h1 span,
  .accom-hero h1 span,
  .alternance-hero h1 span,
  .admissions-hero h1 span,
  .careers-hero h1 span,
  .france-hero h1 span,
  .contact-hero h1 span,
  .cpe-hero h1 span,
  .dos-hero h1 span,
  .brochure-copy h1 span,
  .ensam-hero h1 span,
  .exec-ai-copy h1 span,
  .faculty-hero h1 span,
  .finance-hero h1 span,
  .intl-hero h1 span,
  .legal-document h1 span,
  .life-riviera-page h1 span,
  .live-hero h1 span,
  .msc-hero h1 span,
  .msc-cy-hero h1 span,
  .msc-da-hero h1 span,
  .msc-de-hero h1 span,
  .msc-ds-hero h1 span,
  .online-hero h1 span,
  .paris-hero h1 span,
  .riviera-hero h1 span,
  .routing-hero h1 span,
  .staff-hero h1 span,
  .ambassadors-hero h1 span,
  .stories-hero h1 span,
  .agents-hero h1 span
) {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  white-space: normal;
}

@supports (text-wrap: balance) {
  :where(
    .hero h1,
    .programme-page > .hero h1,
    .home-hero h1,
    .about-hero h1,
    .academic-hero h1,
    .framework-hero h1,
    .accom-hero h1,
    .alternance-hero h1,
    .admissions-hero h1,
    .careers-hero h1,
    .france-hero h1,
    .contact-hero h1,
    .cpe-hero h1,
    .dos-hero h1,
    .brochure-copy h1,
    .ensam-hero h1,
    .exec-ai-copy h1,
    .faculty-hero h1,
    .finance-hero h1,
    .intl-hero h1,
    .legal-document h1,
    .life-riviera-page h1,
    .live-hero h1,
    .msc-hero h1,
    .msc-cy-hero h1,
    .msc-da-hero h1,
    .msc-de-hero h1,
    .msc-ds-hero h1,
    .online-hero h1,
    .paris-hero h1,
    .riviera-hero h1,
    .routing-hero h1,
    .staff-hero h1,
    .ambassadors-hero h1,
    .stories-hero h1,
    .agents-hero h1
  ) {
    text-wrap: balance;
  }
}

@media (min-width: 701px) and (max-width: 1180px) {
  :where(
    .hero h1,
    .programme-page > .hero h1,
    .home-hero h1,
    .about-hero h1,
    .academic-hero h1,
    .framework-hero h1,
    .accom-hero h1,
    .alternance-hero h1,
    .admissions-hero h1,
    .careers-hero h1,
    .france-hero h1,
    .contact-hero h1,
    .cpe-hero h1,
    .dos-hero h1,
    .brochure-copy h1,
    .ensam-hero h1,
    .exec-ai-copy h1,
    .faculty-hero h1,
    .finance-hero h1,
    .intl-hero h1,
    .legal-document h1,
    .life-riviera-page h1,
    .live-hero h1,
    .msc-hero h1,
    .msc-cy-hero h1,
    .msc-da-hero h1,
    .msc-de-hero h1,
    .msc-ds-hero h1,
    .online-hero h1,
    .paris-hero h1,
    .riviera-hero h1,
    .routing-hero h1,
    .staff-hero h1,
    .ambassadors-hero h1,
    .stories-hero h1,
    .agents-hero h1
  ) {
    font-size: clamp(3.05rem, 6vw, 5.85rem) !important;
    line-height: .94 !important;
    letter-spacing: -.064em !important;
    max-width: min(100%, 980px) !important;
  }
}

@media (min-width: 1181px) and (max-width: 1440px) {
  html[lang="fr"] :where(
    .hero h1,
    .programme-page > .hero h1,
    .home-hero h1,
    .about-hero h1,
    .academic-hero h1,
    .framework-hero h1,
    .accom-hero h1,
    .alternance-hero h1,
    .admissions-hero h1,
    .careers-hero h1,
    .france-hero h1,
    .contact-hero h1,
    .cpe-hero h1,
    .dos-hero h1,
    .brochure-copy h1,
    .ensam-hero h1,
    .exec-ai-copy h1,
    .faculty-hero h1,
    .finance-hero h1,
    .intl-hero h1,
    .legal-document h1,
    .life-riviera-page h1,
    .live-hero h1,
    .msc-hero h1,
    .msc-cy-hero h1,
    .msc-da-hero h1,
    .msc-de-hero h1,
    .msc-ds-hero h1,
    .online-hero h1,
    .paris-hero h1,
    .riviera-hero h1,
    .routing-hero h1,
    .staff-hero h1,
    .ambassadors-hero h1,
    .stories-hero h1,
    .agents-hero h1
  ),
  html[lang="es-MX"] :where(
    .hero h1,
    .programme-page > .hero h1,
    .home-hero h1,
    .about-hero h1,
    .academic-hero h1,
    .framework-hero h1,
    .accom-hero h1,
    .alternance-hero h1,
    .admissions-hero h1,
    .careers-hero h1,
    .france-hero h1,
    .contact-hero h1,
    .cpe-hero h1,
    .dos-hero h1,
    .brochure-copy h1,
    .ensam-hero h1,
    .exec-ai-copy h1,
    .faculty-hero h1,
    .finance-hero h1,
    .intl-hero h1,
    .legal-document h1,
    .life-riviera-page h1,
    .live-hero h1,
    .msc-hero h1,
    .msc-cy-hero h1,
    .msc-da-hero h1,
    .msc-de-hero h1,
    .msc-ds-hero h1,
    .online-hero h1,
    .paris-hero h1,
    .riviera-hero h1,
    .routing-hero h1,
    .staff-hero h1,
    .ambassadors-hero h1,
    .stories-hero h1,
    .agents-hero h1
  ) {
    font-size: clamp(3.35rem, 6.55vw, 6.95rem) !important;
    line-height: .91 !important;
    max-width: min(100%, 1040px) !important;
  }
}

@media (max-width: 700px) {
  :where(
    .hero h1,
    .programme-page > .hero h1,
    .home-hero h1,
    .about-hero h1,
    .academic-hero h1,
    .framework-hero h1,
    .accom-hero h1,
    .alternance-hero h1,
    .admissions-hero h1,
    .careers-hero h1,
    .france-hero h1,
    .contact-hero h1,
    .cpe-hero h1,
    .dos-hero h1,
    .brochure-copy h1,
    .ensam-hero h1,
    .exec-ai-copy h1,
    .faculty-hero h1,
    .finance-hero h1,
    .intl-hero h1,
    .legal-document h1,
    .life-riviera-page h1,
    .live-hero h1,
    .msc-hero h1,
    .msc-cy-hero h1,
    .msc-da-hero h1,
    .msc-de-hero h1,
    .msc-ds-hero h1,
    .online-hero h1,
    .paris-hero h1,
    .riviera-hero h1,
    .routing-hero h1,
    .staff-hero h1,
    .ambassadors-hero h1,
    .stories-hero h1,
    .agents-hero h1
  ) {
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
    font-size: clamp(2.45rem, 12.2vw, 4.55rem) !important;
    line-height: .98 !important;
    letter-spacing: -.052em !important;
    max-width: 100% !important;
  }
}

/* V221 — same word-integrity guard for large section/display headings. */
:where(
  .about-section h2,
  .academic-section h2,
  .academic-final h2,
  .framework-section h2,
  .framework-final-box h2,
  .accom-section h2,
  .accom-final h2,
  .admissions-section h2,
  .admissions-final h2,
  .careers-section h2,
  .france-section h2,
  .france-final h2,
  .contact-section h2,
  .contact-final h2,
  .cpe-section h2,
  .cpe-final h2,
  .dos-section h2,
  .dos-final h2,
  .faculty-section h2,
  .finance-section h2,
  .finance-final h2,
  .home-section h2,
  .home-final h2,
  .intl-section h2,
  .intl-final h2,
  .live-section h2,
  .live-final h2,
  .online-section h2,
  .online-final h2,
  .paris-section h2,
  .paris-final h2,
  .riviera-section h2,
  .riviera-final h2,
  .routing-section h2,
  .routing-final h2,
  .staff-section h2,
  .ambassadors-section h2,
  .stories-section-head h2,
  .stories-cta h2,
  .programme-page h2,
  .life-riviera-page h2,
  .legal-document h2
),
:where(
  .about-section h2 span,
  .academic-section h2 span,
  .academic-final h2 span,
  .framework-section h2 span,
  .framework-final-box h2 span,
  .accom-section h2 span,
  .accom-final h2 span,
  .admissions-section h2 span,
  .admissions-final h2 span,
  .careers-section h2 span,
  .france-section h2 span,
  .france-final h2 span,
  .contact-section h2 span,
  .contact-final h2 span,
  .cpe-section h2 span,
  .cpe-final h2 span,
  .dos-section h2 span,
  .dos-final h2 span,
  .faculty-section h2 span,
  .finance-section h2 span,
  .finance-final h2 span,
  .home-section h2 span,
  .home-final h2 span,
  .intl-section h2 span,
  .intl-final h2 span,
  .live-section h2 span,
  .live-final h2 span,
  .online-section h2 span,
  .online-final h2 span,
  .paris-section h2 span,
  .paris-final h2 span,
  .riviera-section h2 span,
  .riviera-final h2 span,
  .routing-section h2 span,
  .routing-final h2 span,
  .staff-section h2 span,
  .ambassadors-section h2 span,
  .stories-section-head h2 span,
  .stories-cta h2 span,
  .programme-page h2 span,
  .life-riviera-page h2 span,
  .legal-document h2 span
) {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  white-space: normal;
}

@supports (text-wrap: balance) {
  :where(
    .about-section h2,
    .academic-section h2,
    .academic-final h2,
    .framework-section h2,
    .framework-final-box h2,
    .accom-section h2,
    .accom-final h2,
    .admissions-section h2,
    .admissions-final h2,
    .careers-section h2,
    .france-section h2,
    .france-final h2,
    .contact-section h2,
    .contact-final h2,
    .cpe-section h2,
    .cpe-final h2,
    .dos-section h2,
    .dos-final h2,
    .faculty-section h2,
    .finance-section h2,
    .finance-final h2,
    .home-section h2,
    .home-final h2,
    .intl-section h2,
    .intl-final h2,
    .live-section h2,
    .live-final h2,
    .online-section h2,
    .online-final h2,
    .paris-section h2,
    .paris-final h2,
    .riviera-section h2,
    .riviera-final h2,
    .routing-section h2,
    .routing-final h2,
    .staff-section h2,
    .ambassadors-section h2,
    .stories-section-head h2,
    .stories-cta h2,
    .programme-page h2,
    .life-riviera-page h2,
    .legal-document h2
  ) {
    text-wrap: balance;
  }
}

@media (max-width: 700px) {
  :where(
    .about-section h2,
    .academic-section h2,
    .academic-final h2,
    .framework-section h2,
    .framework-final-box h2,
    .accom-section h2,
    .accom-final h2,
    .admissions-section h2,
    .admissions-final h2,
    .careers-section h2,
    .france-section h2,
    .france-final h2,
    .contact-section h2,
    .contact-final h2,
    .cpe-section h2,
    .cpe-final h2,
    .dos-section h2,
    .dos-final h2,
    .faculty-section h2,
    .finance-section h2,
    .finance-final h2,
    .home-section h2,
    .home-final h2,
    .intl-section h2,
    .intl-final h2,
    .live-section h2,
    .live-final h2,
    .online-section h2,
    .online-final h2,
    .paris-section h2,
    .paris-final h2,
    .riviera-section h2,
    .riviera-final h2,
    .routing-section h2,
    .routing-final h2,
    .staff-section h2,
    .ambassadors-section h2,
    .stories-section-head h2,
    .stories-cta h2,
    .programme-page h2,
    .life-riviera-page h2,
    .legal-document h2
  ) {
    overflow-wrap: break-word !important;
  }
}

/* V223 — professional certification sections (BSc + English MSc Data pages). */
.professional-certification-section {
  --cert-accent: var(--magenta);
  --cert-accent-soft: rgba(145, 0, 72, .10);
  --cert-accent-line: rgba(145, 0, 72, .22);
  --cert-accent-deep: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, var(--cert-accent-soft), transparent 28rem),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(244,248,249,.94));
}

.cert-theme-bsc { --cert-accent: var(--magenta); --cert-accent-soft: rgba(145, 0, 72, .11); --cert-accent-line: rgba(145, 0, 72, .24); --cert-accent-deep: #6f0038; }
.cert-theme-da { --cert-accent: var(--da-ink, #6236b3); --cert-accent-soft: rgba(98, 54, 179, .12); --cert-accent-line: rgba(98, 54, 179, .24); --cert-accent-deep: var(--da-deep, #3f1f7a); }
.cert-theme-de { --cert-accent: var(--de-ink, #16824a); --cert-accent-soft: rgba(22, 130, 74, .12); --cert-accent-line: rgba(22, 130, 74, .24); --cert-accent-deep: var(--de-deep, #0f5d35); }
.cert-theme-ds { --cert-accent: var(--ds-ink, #b85b12); --cert-accent-soft: rgba(184, 91, 18, .13); --cert-accent-line: rgba(184, 91, 18, .26); --cert-accent-deep: var(--ds-deep, #7a3908); }
.cert-theme-exec { --cert-accent: #a8322c; --cert-accent-soft: rgba(168, 50, 44, .12); --cert-accent-line: rgba(168, 50, 44, .26); --cert-accent-deep: #661916; }

.cert-section-head h2 span { color: var(--cert-accent); }

.certification-stage {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: stretch;
}

.certification-main {
  border: 1px solid var(--cert-accent-line);
  border-radius: 30px;
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 92% 0%, var(--cert-accent-soft), transparent 22rem),
    rgba(255,255,255,.90);
  box-shadow: 0 20px 54px rgba(6,31,42,.10);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.certification-main h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.5vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.certification-main p {
  margin: 0;
  color: var(--muted);
  font-weight: 720;
  max-width: 68ch;
}

.cert-rule-grid,
.cert-year-timeline {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.cert-rule-grid > *,
.cert-year-timeline > * {
  border: 1px solid rgba(219,229,232,.92);
  border-left: 5px solid var(--cert-accent);
  border-radius: 18px;
  padding: 13px 15px;
  background: rgba(255,255,255,.78);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .62rem;
  row-gap: .25rem;
  align-items: baseline;
}

.cert-rule-grid strong,
.cert-year-timeline strong {
  color: var(--cert-accent-deep);
  font-weight: 950;
  letter-spacing: -.02em;
  display: inline-flex;
  white-space: nowrap;
}

.cert-rule-grid span,
.cert-year-timeline span {
  color: var(--muted);
  font-weight: 720;
  line-height: 1.35;
  min-width: 0;
}


@media (max-width: 640px) {
  .cert-rule-grid > *,
  .cert-year-timeline > * {
    grid-template-columns: 1fr;
  }
}

.cert-modal-button {
  align-self: flex-start;
  margin-top: auto;
}

.certification-side {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}

.cert-provider-strip {
  border: 1px solid rgba(219,229,232,.92);
  border-radius: 26px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,.84);
  box-shadow: 0 14px 34px rgba(6,31,42,.08);
}

.cert-provider-logo {
  width: 72px;
  height: 46px;
  border: 1px solid rgba(219,229,232,.92);
  border-radius: 16px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  flex: 0 0 auto;
}

.cert-provider-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cert-provider-logo > span,
.cert-card-logo > span {
  color: var(--cert-accent-deep);
  font-weight: 950;
  letter-spacing: -.04em;
  font-size: .96rem;
}

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

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

.cert-card {
  border: 1px solid rgba(219,229,232,.92);
  border-radius: 22px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 14px 34px rgba(6,31,42,.08);
  overflow: hidden;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 170px;
}

.cert-card-featured { border-color: var(--cert-accent-line); }

.cert-card-logo {
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.8), transparent 3.5rem),
    var(--cert-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-right: 1px solid rgba(219,229,232,.78);
}

.cert-card-logo img {
  max-width: 58px;
  max-height: 48px;
  object-fit: contain;
  display: block;
}

.cert-card-body {
  padding: 17px 18px 18px;
  display: grid;
  gap: 7px;
  align-content: start;
}

.cert-card-body > span {
  color: var(--cert-accent);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cert-card h3 {
  margin: 0;
  font-size: clamp(1.02rem, 1.35vw, 1.32rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.cert-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 690;
  line-height: 1.35;
}

.cert-link,
.cert-mini-card a {
  color: var(--cert-accent-deep);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  width: fit-content;
}

.cert-modal[hidden] { display: none; }

.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 38px);
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6,31,42,.62);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.cert-modal-dialog {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(82svh, 860px);
  overflow: auto;
  border: 1px solid rgba(219,229,232,.92);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 0%, var(--cert-accent-soft), transparent 24rem),
    #fff;
  box-shadow: 0 32px 90px rgba(0,0,0,.32);
  padding: clamp(18px, 3vw, 32px);
}

.cert-modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.cert-modal-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding-right: 52px;
}

.cert-modal-head h3 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.cert-modal-head p {
  margin: 0;
  max-width: 76ch;
  color: var(--muted);
  font-weight: 720;
}

.cert-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cert-mini-card {
  border: 1px solid rgba(219,229,232,.92);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.88);
  display: grid;
  gap: 9px;
  align-content: start;
}

.cert-mini-provider {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.cert-mini-provider .cert-provider-logo {
  width: 54px;
  height: 36px;
  border-radius: 12px;
}

.cert-mini-provider strong {
  color: var(--cert-accent);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cert-mini-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.16;
  letter-spacing: -.025em;
}

.cert-mini-card small {
  color: var(--muted);
  font-weight: 720;
  line-height: 1.35;
}

html.cert-modal-open,
html.cert-modal-open body { overflow: hidden; }

@media (max-width: 980px) {
  .certification-stage,
  .cert-card-grid,
  .cert-modal-grid { grid-template-columns: 1fr; }
  .cert-card { min-height: 0; }
  .cert-provider-strip { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .professional-certification-section { min-height: auto; }
  .cert-card { grid-template-columns: 68px minmax(0, 1fr); }
  .cert-card-logo { padding: 10px; }
  .cert-card-logo img { max-width: 48px; max-height: 42px; }
  .cert-provider-logo { width: 62px; height: 42px; }
  .cert-modal { padding: 10px; align-items: end; }
  .cert-modal-dialog { max-height: 88svh; border-radius: 24px; }
}

/* V226 — Cyber Security certification theme. */
.cert-theme-cy {
  --cert-accent: var(--cy-ink, #235aa6);
  --cert-accent-soft: rgba(35, 90, 166, .12);
  --cert-accent-line: rgba(35, 90, 166, .26);
  --cert-accent-deep: var(--cy-deep, #153a73);
}

/* V227 — Cyber certification logo containment repair.
   These rules intentionally stay scoped to the Cyber certification theme so
   BSc/Data certification sections and homepage logos cannot inherit them. */
.cert-theme-cy .cert-provider-logo.cert-logo-clear {
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,251,252,.97));
  border-color: rgba(6,31,42,.17);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.82),
    0 8px 18px rgba(6,31,42,.09);
  overflow: hidden;
}

.cert-theme-cy .cert-provider-strip .cert-provider-logo.cert-logo-clear {
  width: 88px;
  height: 48px;
  padding: 7px 11px;
}

.cert-theme-cy .cert-provider-logo.cert-logo-clear img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform-origin: center;
}

.cert-theme-cy .cert-provider-logo.cert-logo-offsec img {
  transform: scale(1.34);
}

.cert-theme-cy .cert-provider-logo.cert-logo-blue-team img {
  transform: scale(1.22);
}

.cert-theme-cy .cert-mini-provider {
  min-width: 0;
}

.cert-theme-cy .cert-mini-provider .cert-provider-logo.cert-logo-clear {
  width: 68px;
  height: 42px;
  flex: 0 0 68px;
  padding: 6px 9px;
}

.cert-theme-cy .cert-mini-provider .cert-provider-logo.cert-logo-offsec img {
  transform: scale(1.42);
}

.cert-theme-cy .cert-mini-provider .cert-provider-logo.cert-logo-blue-team img {
  transform: scale(1.30);
}

.cert-theme-cy .cert-provider-logo.cert-logo-comptia {
  width: 70px;
  height: 36px;
  flex: 0 0 70px;
  padding: 4px 6px;
  overflow: hidden;
}

.cert-theme-cy .cert-provider-logo.cert-logo-comptia > span {
  display: block;
  max-width: 100%;
  color: var(--cert-accent-deep);
  font-size: .66rem;
  line-height: 1;
  letter-spacing: -.035em;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
}

.cert-theme-cy .cert-mini-provider strong,
.cert-theme-cy .cert-mini-card h4,
.cert-theme-cy .cert-mini-card small,
.cert-theme-cy .cert-mini-card a {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .cert-theme-cy .cert-provider-strip .cert-provider-logo.cert-logo-clear {
    width: 78px;
    height: 44px;
  }

  .cert-theme-cy .cert-mini-provider .cert-provider-logo.cert-logo-clear,
  .cert-theme-cy .cert-provider-logo.cert-logo-comptia {
    width: 64px;
    flex-basis: 64px;
  }
}
