/*
 * Programme finder (/programs), programme profile (/programs/{slug}) and the Academics hub
 * (/academics). Static CSS — no npm build needed; allowed by the CSP (style-src 'self').
 * No inline style="" attributes are used by these pages (the CSP would block them): bar charts
 * are SVG, whose width/height are presentation attributes.
 *
 * Tokens fall back to the brand palette so the file also works if app.css variables change.
 */
.pg {
  --pg-navy: var(--color-brand-navy, #001832);
  --pg-deep: var(--color-brand-deep, #003861);
  --pg-ocean: var(--color-brand-ocean, #0B6399);
  --pg-magenta: var(--color-brand-magenta, #C30080);
  --pg-yellow: var(--color-brand-yellow, #F1EA20);
  --pg-cyan: var(--color-brand-cyan, #5EE1FF);
  --pg-mist: var(--color-brand-mist, #F3F7FB);
  --pg-ink: var(--color-brand-ink, #0F1E33);
  --pg-line: #e2e8f0;
  --pg-muted: #64748b;
  color: var(--pg-ink);
}
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg [hidden] { display: none !important; }
:where(.pg a) { color: inherit; }
.pg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- breadcrumbs ---------- */
.pg-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: var(--pg-muted); }
.pg-crumbs a { text-decoration: none; }
.pg-crumbs a:hover { color: var(--pg-ocean); text-decoration: underline; }
.pg-crumbs [aria-current] { color: #334155; }

/* ---------- hero (shared) ---------- */
.pg-hero {
  position: relative; overflow: hidden; margin-top: 1rem; border-radius: 1.25rem; color: #fff;
  background:
    radial-gradient(circle at 90% 8%, rgba(195, 0, 128, .55), transparent 42%),
    radial-gradient(circle at 4% 110%, rgba(94, 225, 255, .30), transparent 48%),
    linear-gradient(125deg, var(--pg-navy), var(--pg-deep) 58%, var(--pg-ocean));
}
.pg-hero::before { /* faint blueprint grid */
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: linear-gradient(to right, #fff 1px, transparent 1px), linear-gradient(to bottom, #fff 1px, transparent 1px);
  background-size: 44px 44px;
}
.pg-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px); opacity: .55; animation: pg-float 14s ease-in-out infinite; }
.pg-orb--a { width: 14rem; height: 14rem; right: -4rem; top: -5rem; background: radial-gradient(circle at 30% 30%, rgba(94, 225, 255, .5), transparent 65%); }
.pg-orb--b { width: 9rem; height: 9rem; left: 6%; bottom: -3rem; background: radial-gradient(circle at 30% 30%, rgba(241, 234, 32, .35), transparent 65%); animation-delay: -6s; }
@keyframes pg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
.pg-hero-in { position: relative; padding: 2.4rem 1.4rem 2.2rem; }
@media (min-width: 768px) { .pg-hero-in { padding: 3.4rem 3rem 3rem; } }
.pg-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pg-yellow); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.pg-hero h1 { margin: 1rem 0 0; font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; max-width: 22ch; }
.pg-hero h1 em { font-style: normal; color: var(--pg-cyan); }
.pg-lead { margin: 1rem 0 0; max-width: 40rem; font-size: 1.04rem; line-height: 1.6; color: rgba(255, 255, 255, .82); }

/* ---------- finder: search + chips ---------- */
.pg-search { margin-top: 1.6rem; max-width: 40rem; position: relative; }
.pg-search input {
  width: 100%; padding: 1rem 7.2rem 1rem 3.2rem; border: 0; border-radius: .9rem; font-size: .98rem; color: var(--pg-ink);
  background: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .55);
}
.pg-search input:focus { outline: 3px solid var(--pg-cyan); outline-offset: 2px; }
.pg-search svg { position: absolute; left: 1.05rem; top: 50%; width: 1.25rem; height: 1.25rem; margin-top: -.62rem; color: #94a3b8; pointer-events: none; }
.pg-search button {
  position: absolute; right: .4rem; top: .4rem; bottom: .4rem; padding: 0 1.3rem; border: 0; border-radius: .6rem; cursor: pointer;
  font-weight: 800; font-size: .88rem; color: var(--pg-navy); background: var(--pg-yellow); transition: filter .15s;
}
.pg-search button:hover { filter: brightness(.95); }

.pg-filters { margin-top: 1.6rem; display: grid; gap: .8rem; }
.pg-chiprow { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pg-chiprow > .pg-label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pg-muted); margin-right: .3rem; }
.pg-chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; text-decoration: none !important;
  font-size: .85rem; font-weight: 700; color: #334155; background: #fff; border: 1px solid var(--pg-line); transition: all .15s;
}
.pg-chip:hover { border-color: var(--pg-ocean); color: var(--pg-ocean); transform: translateY(-1px); }
.pg-chip[aria-current="true"] { background: var(--pg-deep); border-color: var(--pg-deep); color: #fff; box-shadow: 0 6px 14px -6px rgba(0, 56, 97, .7); }
.pg-chip b { font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; background: rgba(15, 30, 51, .08); }
.pg-chip[aria-current="true"] b { background: rgba(255, 255, 255, .2); }

.pg-count { margin: 1.6rem 0 0; font-size: .88rem; color: var(--pg-muted); }
.pg-count strong { color: var(--pg-ink); }

/* ---------- finder: cards ---------- */
.pg-grid { margin-top: 1rem; display: grid; gap: 1.3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-card {
  --accent: var(--pg-ocean);
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pg-line); border-radius: 1.1rem; overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 30, 51, .05); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.pg-card--undergraduate { --accent: var(--pg-deep); }
.pg-card--postgraduate { --accent: var(--pg-magenta); }
.pg-card--certificate { --accent: #0f766e; }
.pg-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 18px 34px -14px rgba(0, 24, 50, .35); }
.pg-card-top {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.3rem 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #001832));
}
.pg-card-top::after { /* decorative arc */
  content: ""; position: absolute; right: -2.2rem; top: -2.2rem; width: 7rem; height: 7rem; border-radius: 50%;
  border: 1.5rem solid rgba(255, 255, 255, .08); pointer-events: none;
}
.pg-badge { font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; padding: .22rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.pg-mono { position: relative; z-index: 1; font-size: 1.55rem; font-weight: 800; letter-spacing: .02em; line-height: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.pg-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 1.3rem 1.3rem; }
.pg-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; font-weight: 800; color: var(--pg-navy); }
.pg-card h3 a { text-decoration: none; }
.pg-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link target */
.pg-card h3 a:focus-visible { outline: none; }
.pg-card:focus-within { outline: 3px solid var(--pg-cyan); outline-offset: 2px; }
.pg-award { margin: .35rem 0 0; font-size: .82rem; color: var(--pg-muted); }
.pg-facts { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .8rem; }
.pg-facts li { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; line-height: 1.3; color: #334155; }
.pg-facts svg { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .05rem; color: var(--accent); }
.pg-facts li.wide { grid-column: 1 / -1; }
.pg-card p.pg-sum { margin: 1rem 0 0; font-size: .88rem; line-height: 1.55; color: #475569; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pg-more { margin-top: auto; padding-top: 1.1rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .88rem; color: var(--accent); }
.pg-more svg { width: 1rem; height: 1rem; transition: transform .2s; }
.pg-card:hover .pg-more svg { transform: translateX(5px); }

.pg-empty { margin-top: 2rem; padding: 3rem 1.5rem; text-align: center; border: 2px dashed #cbd5e1; border-radius: 1.2rem; background: #fff; }
.pg-empty h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.pg-empty p { margin: .6rem auto 0; max-width: 32rem; color: #475569; font-size: .92rem; }
.pg-pager { margin-top: 2rem; }

/* ---------- profile: hero extras ---------- */
.pg-hero--profile .pg-hero-in { display: grid; gap: 1.6rem; padding-bottom: 3.6rem; }
@media (min-width: 900px) { .pg-hero--profile .pg-hero-in { grid-template-columns: 1fr auto; align-items: center; } }
.pg-hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.pg-seal {
  position: relative; width: 9.5rem; height: 9.5rem; border-radius: 50%; display: none; place-items: center; text-align: center;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 0 0 10px rgba(255, 255, 255, .06), 0 0 0 11px rgba(255, 255, 255, .18);
}
@media (min-width: 900px) { .pg-seal { display: grid; } }
.pg-seal strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.pg-seal span { display: block; margin-top: .3rem; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pg-cyan); }
.pg-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.pg-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: .75rem; font-weight: 800; font-size: .9rem;
  text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; border: 2px solid transparent;
}
.pg-btn svg { width: 1rem; height: 1rem; }
.pg-btn--yellow { background: var(--pg-yellow); color: var(--pg-navy); box-shadow: 0 8px 18px -8px rgba(241, 234, 32, .8); }
.pg-btn--yellow:hover { transform: translateY(-2px); }
.pg-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.pg-btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.pg-btn--solid { background: var(--pg-deep); color: #fff; }
.pg-btn--solid:hover { background: var(--pg-ocean); transform: translateY(-2px); }
.pg-btn--outline { color: var(--pg-deep); border-color: rgba(0, 56, 97, .25); background: #fff; }
.pg-btn--outline:hover { border-color: var(--pg-ocean); color: var(--pg-ocean); }

/* at-a-glance tiles overlapping the hero */
.pg-glance { list-style: none; padding: 0; position: relative; z-index: 2; margin: -1.6rem .8rem 0; display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .pg-glance { margin: -2rem 2rem 0; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); } }
.pg-tile {
  display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; border-radius: 1rem; background: #fff;
  border: 1px solid var(--pg-line); box-shadow: 0 12px 26px -16px rgba(0, 24, 50, .5);
}
.pg-tile svg { width: 1.35rem; height: 1.35rem; color: var(--pg-ocean); margin-bottom: .2rem; }
.pg-tile b { font-size: 1.15rem; line-height: 1.2; font-weight: 800; color: var(--pg-navy); }
.pg-tile span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pg-muted); }

/* sticky section nav */
.pg-subnav { position: sticky; top: 0; z-index: 20; margin: 1.6rem -1rem 0; padding: 0 1rem; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--pg-line); }
@media (min-width: 1024px) { .pg-subnav { margin: 1.6rem 0 0; border-radius: .9rem; border: 1px solid var(--pg-line); } }
.pg-subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.pg-subnav a {
  display: block; padding: .95rem 1rem; white-space: nowrap; font-size: .86rem; font-weight: 700; text-decoration: none; color: #475569;
  border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
}
.pg-subnav a:hover { color: var(--pg-ocean); }
.pg-subnav a.is-active { color: var(--pg-deep); border-bottom-color: var(--pg-magenta); }

/* sections */
.pg-sec { margin-top: 3rem; scroll-margin-top: 4.6rem; }
.pg-sec > header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1.2rem; }
.pg-sec h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 800; letter-spacing: -.01em; color: var(--pg-navy); position: relative; padding-bottom: .55rem; }
.pg-sec h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3.2rem; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--pg-magenta), var(--pg-ocean)); }
.pg-sec-sub { margin: 0; font-size: .86rem; color: var(--pg-muted); }
.pg-two { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .pg-two { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }

.pg-prose { font-size: 1rem; line-height: 1.75; color: #334155; }
.pg-prose p { margin: 0 0 1rem; }
.pg-prose h3, .pg-prose h4 { margin: 1.4rem 0 .5rem; font-size: 1.02rem; font-weight: 800; color: var(--pg-navy); }
.pg-prose ul, .pg-prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.pg-prose li { margin: .35rem 0; }
.pg-prose strong { color: var(--pg-ink); }
.pg-prose a { color: var(--pg-ocean); text-decoration: underline; }

.pg-panel { padding: 1.4rem; border-radius: 1.1rem; background: var(--pg-mist); border: 1px solid #dbe6f1; }
.pg-panel h3 { margin: 0 0 .8rem; font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--pg-ocean); }
.pg-aims { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.pg-aims li { position: relative; padding-left: 2rem; font-size: .95rem; line-height: 1.55; color: #1e293b; }
.pg-aims li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--pg-magenta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M16.7 5.3a1 1 0 010 1.4l-7.5 7.5a1 1 0 01-1.4 0L3.3 9.7a1 1 0 011.4-1.4l3.8 3.8 6.8-6.8a1 1 0 011.4 0z'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.pg-panel--after { margin-top: 1.6rem; }
.pg-eyebrow svg { width: 1rem; height: 1rem; }
.pg-dl { margin: 0; display: grid; gap: .9rem; }
.pg-dl div { display: grid; gap: .1rem; }
.pg-dl dt { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pg-muted); }
.pg-dl dd { margin: 0; font-size: .95rem; font-weight: 600; color: var(--pg-navy); }
.pg-dl a { color: var(--pg-ocean); }

/* programme map (SVG) */
.pg-map { margin: 0 0 1.6rem; padding: 1.1rem 1.2rem 1rem; border-radius: 1rem; background: #fff; border: 1px solid var(--pg-line); }
.pg-map svg { display: block; width: 100%; height: 1.1rem; border-radius: .55rem; overflow: hidden; }
.pg-map .s0 { fill: var(--pg-ocean); } .pg-map .s1 { fill: var(--pg-deep); } .pg-map .s2 { fill: var(--pg-magenta); }
.pg-map .s3 { fill: #0f766e; } .pg-map .s4 { fill: #7c3aed; } .pg-map .s5 { fill: #b45309; }
.pg-map ul { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .76rem; color: #475569; }
.pg-map li { display: inline-flex; align-items: center; gap: .4rem; }
.pg-map li i { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; }
.pg-map li i.s0 { background: var(--pg-ocean); } .pg-map li i.s1 { background: var(--pg-deep); } .pg-map li i.s2 { background: var(--pg-magenta); }
.pg-map li i.s3 { background: #0f766e; } .pg-map li i.s4 { background: #7c3aed; } .pg-map li i.s5 { background: #b45309; }
.pg-map p { margin: .7rem 0 0; font-size: .76rem; color: var(--pg-muted); }

/* curriculum accordion */
.pg-tools { display: flex; gap: .5rem; }
.pg-tool { padding: .45rem .9rem; font-size: .78rem; font-weight: 800; color: var(--pg-deep); background: #fff; border: 1px solid var(--pg-line); border-radius: 999px; cursor: pointer; }
.pg-tool:hover { border-color: var(--pg-ocean); color: var(--pg-ocean); }
.pg-stage { margin-bottom: .9rem; border: 1px solid var(--pg-line); border-radius: 1rem; background: #fff; overflow: hidden; }
.pg-stage > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem;
  font-weight: 800; font-size: 1.05rem; color: var(--pg-navy);
}
.pg-stage > summary::-webkit-details-marker { display: none; }
.pg-stage > summary .n { flex: none; width: 2.1rem; height: 2.1rem; border-radius: .65rem; display: grid; place-items: center; font-size: .9rem; color: #fff; background: linear-gradient(135deg, var(--pg-ocean), var(--pg-deep)); }
.pg-stage > summary .t { flex: 1; }
.pg-stage > summary .m { font-size: .76rem; font-weight: 700; color: var(--pg-muted); }
.pg-stage > summary .chev { flex: none; width: 1.2rem; height: 1.2rem; color: var(--pg-muted); transition: transform .2s; }
.pg-stage[open] > summary .chev { transform: rotate(180deg); }
.pg-stage[open] > summary { border-bottom: 1px solid var(--pg-line); background: var(--pg-mist); }
.pg-stage-in { display: grid; gap: 1.2rem; padding: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .pg-stage-in.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-block { min-width: 0; }
.pg-block h4 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pg-magenta); }
.pg-block h4 small { font-size: .74rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--pg-muted); }
.pg-note { margin: .4rem 0 0; font-size: .82rem; font-style: italic; color: #475569; }
.pg-scroll { position: relative; margin-top: .6rem; overflow-x: auto; border: 1px solid var(--pg-line); border-radius: .8rem; }
.pg-tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.pg-tbl th { padding: .6rem .8rem; text-align: left; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pg-muted); background: #f8fafc; border-bottom: 1px solid var(--pg-line); white-space: nowrap; }
.pg-tbl td { padding: .65rem .8rem; border-bottom: 1px solid #eef2f7; vertical-align: top; color: #1e293b; }
.pg-tbl tr:last-child td { border-bottom: 0; }
.pg-tbl tbody tr:hover td { background: #f8fbff; }
.pg-tbl .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; font-weight: 700; color: var(--pg-ocean); white-space: nowrap; }
.pg-tbl .ttl { min-width: 11rem; font-weight: 600; }
.pg-tbl .ttl small { display: block; margin-top: .15rem; font-weight: 500; font-size: .74rem; color: var(--pg-muted); }
.pg-tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-tbl .bar { width: 5.5rem; padding-left: 0; }
.pg-tbl .bar svg { display: block; width: 100%; height: .4rem; border-radius: .3rem; }
.pg-tbl .bar .bg { fill: #e8eef5; } .pg-tbl .bar .fg { fill: var(--pg-ocean); }
.pg-tbl tfoot td { font-weight: 800; color: var(--pg-navy); background: #f8fafc; border-top: 1px solid var(--pg-line); }
.pg-tbl tfoot small { font-weight: 600; color: var(--pg-muted); }
.pg-fine { margin: .9rem 0 0; font-size: .8rem; line-height: 1.55; color: var(--pg-muted); }

/* entry requirements / fallbacks */
.pg-callout {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.4rem 1.5rem; border-radius: 1.1rem;
  background: linear-gradient(135deg, #fff, var(--pg-mist)); border: 1px dashed #94a3b8;
}
.pg-callout h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--pg-navy); }
.pg-callout p { margin: .3rem 0 0; font-size: .92rem; color: #475569; max-width: 38rem; }
.pg-callout > div { flex: 1; min-width: 14rem; }
.pg-warn { display: flex; gap: .7rem; padding: .9rem 1.1rem; margin-bottom: 1.2rem; border-radius: .9rem; background: #fffbeb; border: 1px solid #fcd34d; font-size: .86rem; line-height: 1.5; color: #78350f; }
.pg-warn svg { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .1rem; color: #d97706; }

/* fees */
.pg-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.pg-tab { padding: .55rem 1.1rem; font-size: .84rem; font-weight: 800; border-radius: .7rem; cursor: pointer; color: #475569; background: #fff; border: 1px solid var(--pg-line); }
.pg-tab[aria-selected="true"] { color: #fff; background: var(--pg-deep); border-color: var(--pg-deep); }
.pg-feeblock + .pg-feeblock { margin-top: 1.6rem; }
.pg-feeblock h3 { margin: 0 0 .5rem; font-size: .98rem; font-weight: 800; color: var(--pg-navy); }
.pg-feeblock h3 small { margin-left: .4rem; padding: .1rem .55rem; border-radius: 999px; font-size: .68rem; letter-spacing: .06em; background: var(--pg-yellow); color: var(--pg-navy); }
.pg-tbl.fee td.lab { min-width: 12rem; }
.pg-tbl.fee tr.sec td { background: #f1f6fb; font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pg-ocean); }
.pg-tbl.fee tr.sub td { font-weight: 700; color: #334155; background: #fafcfe; }
.pg-tbl.fee tfoot td.num { font-size: .95rem; }
.pg-dash { color: #cbd5e1; }
.pg-notes { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.pg-notes li { position: relative; padding-left: 1.3rem; font-size: .86rem; line-height: 1.55; color: #475569; }
.pg-notes li::before { content: ""; position: absolute; left: .2rem; top: .55rem; width: .4rem; height: .4rem; border-radius: 50%; background: var(--pg-magenta); }
.pg-other { margin-top: 1.4rem; }
.pg-other > summary { cursor: pointer; font-weight: 800; font-size: .9rem; color: var(--pg-deep); }

/* apply band */
.pg-apply {
  position: relative; overflow: hidden; margin-top: 3.2rem; padding: 2.2rem 1.6rem; border-radius: 1.3rem; color: #fff;
  background: linear-gradient(120deg, var(--pg-magenta), #7a0a62 55%, var(--pg-deep));
}
@media (min-width: 768px) { .pg-apply { padding: 2.8rem 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; } }
.pg-apply::after { content: ""; position: absolute; right: -3rem; bottom: -5rem; width: 15rem; height: 15rem; border-radius: 50%; border: 2.4rem solid rgba(255, 255, 255, .07); pointer-events: none; }
.pg-apply h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
.pg-apply p { margin: .5rem 0 0; max-width: 34rem; color: rgba(255, 255, 255, .85); font-size: .96rem; line-height: 1.55; }
.pg-apply .pg-cta { margin-top: 1.2rem; position: relative; z-index: 1; }
@media (min-width: 768px) { .pg-apply .pg-cta { margin-top: 0; flex: none; } }

/* offered by */
.pg-depts { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.pg-depts a { display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem; border-radius: .7rem; font-size: .88rem; font-weight: 600; text-decoration: none; color: #1e293b; background: #fff; border: 1px solid var(--pg-line); transition: border-color .15s, transform .15s; }
.pg-depts a:hover { border-color: var(--pg-ocean); transform: translateX(3px); }
.pg-depts svg { flex: none; width: 1rem; height: 1rem; color: var(--pg-ocean); }

/* related */
.pg-source { margin-top: 2.4rem; padding-top: 1rem; border-top: 1px solid var(--pg-line); font-size: .76rem; color: var(--pg-muted); }

/* ---------- Academics hub ---------- */
.pg-levels { margin-top: 2rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pg-levels { grid-template-columns: repeat(3, 1fr); } }
.pg-level {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; border-radius: 1.1rem; text-decoration: none !important; color: #fff;
  background: linear-gradient(140deg, var(--lv, var(--pg-ocean)), color-mix(in srgb, var(--lv, var(--pg-ocean)) 50%, #001832));
  box-shadow: 0 14px 28px -16px rgba(0, 24, 50, .6); transition: transform .25s;
}
.pg-level:hover { transform: translateY(-4px); }
.pg-level::after { content: ""; position: absolute; right: -2rem; top: -2rem; width: 8rem; height: 8rem; border-radius: 50%; border: 1.6rem solid rgba(255, 255, 255, .09); }
.pg-level--diploma { --lv: var(--pg-ocean); } .pg-level--undergraduate { --lv: var(--pg-deep); } .pg-level--postgraduate { --lv: var(--pg-magenta); } .pg-level--certificate { --lv: #0f766e; }
.pg-level strong { font-size: 3rem; font-weight: 800; line-height: 1; }
.pg-level h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.pg-level p { margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .8); }
.pg-level span { margin-top: .4rem; font-size: .8rem; font-weight: 800; }
.pg-org { margin-top: 2.2rem; display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .pg-org { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-orgcard { padding: 1.6rem; border-radius: 1.1rem; background: #fff; border: 1px solid var(--pg-line); box-shadow: 0 2px 6px rgba(15, 30, 51, .05); }
.pg-orgcard h3 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--pg-navy); }
.pg-orgcard h3 a { text-decoration: none; } .pg-orgcard h3 a:hover { color: var(--pg-ocean); }
.pg-orgcard h4 { margin: 1.2rem 0 .5rem; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--pg-magenta); }

@media (prefers-reduced-motion: reduce) {
  .pg-orb { animation: none; }
  .pg-card, .pg-chip, .pg-btn, .pg-level, .pg-depts a, .pg-more svg, .pg-stage > summary .chev { transition: none; }
  .pg-card:hover, .pg-level:hover, .pg-chip:hover, .pg-btn:hover { transform: none; }
}
@media print {
  .pg-subnav, .pg-tools, .pg-apply, .pg-orb, .site-nav { display: none !important; }
  .pg-hero { color: #000; background: none; } .pg-hero::before { display: none; }
  .pg-stage:not([open]) > .pg-stage-in { display: grid; }
}

/* faculty departments as a wrapped chip cloud inside the key-facts panel */
.pg-depts--chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pg-depts--chips a { padding: .35rem .7rem; border-radius: 999px; font-size: .78rem; }
.pg-depts--chips a:hover { transform: none; }
.pg-depts--chips svg { display: none; }
