/* ==========================================================================
   inner-page.css — shared chrome for content pages that carry a section
   sidebar (About Us, Academics, Facilities …).

   Every colour resolves from the palette tokens declared in style.css, so the
   theme picker repaints this file along with the rest of the site.
   ========================================================================== */

/* ------------------------------------------------------------------ 1. HERO
   Extends .page-hero from style.css with a kicker, meta chips and a gold
   hairline so a content page opens with the same weight as the home masthead.
   ------------------------------------------------------------------------- */
.page-hero--deep{padding:52px 0 54px}
.page-hero--deep::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:3px;
  background:linear-gradient(90deg,var(--gold) 0%,rgba(var(--accent-rgb),.35) 42%,transparent 100%);
}
.page-hero-grid{
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  align-items:end;gap:clamp(24px,4vw,56px);
}
.page-kicker{
  display:inline-flex;align-items:center;gap:9px;
  margin:0 0 12px;padding:6px 14px 6px 11px;
  border:1px solid rgba(255,255,255,.26);border-radius:999px;
  background:rgba(255,255,255,.08);
  font-size:.8125rem;font-weight:600;letter-spacing:1.6px;text-transform:uppercase;
  color:#fff;
}
.page-kicker i{color:var(--gold);font-size:.8125rem}

/* credential badges under the page title */
.page-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;padding:0}
.page-badges li{
  display:inline-flex;align-items:center;gap:7px;
  padding:5px 12px 5px 10px;border-radius:999px;
  border:1px solid rgba(var(--accent-rgb),.42);
  background:rgba(var(--accent-rgb),.12);
  font-size:.6875rem;font-weight:600;letter-spacing:.3px;line-height:1.5;
  color:#fff;
}
.page-badges li i{color:var(--gold);font-size:.8125rem;flex-shrink:0}
.page-hero-seal{
  display:flex;align-items:center;gap:16px;
  padding:16px 20px;border-radius:12px;
  border:1px solid rgba(255,255,255,.2);border-bottom:3px solid var(--gold);
  background:rgba(0,0,0,.2);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.page-hero-seal img{width:58px;height:58px;border-radius:50%;object-fit:cover;flex:0 0 58px}
.page-hero-seal span{display:block;font-size:.5625rem;letter-spacing:1.8px;color:var(--on-dark-muted);margin-bottom:4px}
.page-hero-seal strong{display:block;font-family:var(--font-display);font-size:1rem;font-weight:600;line-height:1.4;color:#fff}
.page-hero-seal small{display:block;font-size:.6875rem;color:var(--on-dark-muted);margin-top:3px}

/* -------------------------------------------------------- 2. PAGE SKELETON */
.page-body{
  padding:48px 0 76px;
  background:
    radial-gradient(ellipse at 100% 0,rgba(var(--secondary-rgb),.05),transparent 52%),
    var(--page-bg);
}
.page-body .shell{max-width:1480px}
.page-grid{
  display:grid;grid-template-columns:302px minmax(0,1fr);
  align-items:start;gap:clamp(26px,3vw,46px);
}

/* ----------------------------------------------------------- 3. SIDE RAIL */
.side-rail{position:sticky;top:18px;display:grid;gap:18px;min-width:0;align-content:start}

.side-card{
  background:var(--surface);border:1px solid var(--hairline);border-radius:14px;
  box-shadow:var(--card-shadow);overflow:hidden;
}
.side-card-head{
  display:flex;align-items:center;gap:12px;padding:16px 18px;
  background:linear-gradient(100deg,var(--primary) 0%,var(--navbar) 58%,var(--secondary) 100%);
  color:#fff;
}
.side-card-head i{font-size:1.125rem;color:var(--gold)}
.side-card-head h2,.side-card-head h3{
  margin:0;font-family:var(--font-display);font-size:1rem;font-weight:600;letter-spacing:.2px;
}
.side-card-head span{display:block;font-size:.5625rem;letter-spacing:1.6px;color:var(--on-dark-muted);margin-top:2px}

/* the section menu itself */
.side-menu{padding:8px}
.side-menu li{margin:0}
.side-menu a{
  display:flex;align-items:center;gap:11px;
  padding:11px 12px;border-radius:9px;
  font-size:.8125rem;font-weight:500;line-height:1.45;color:var(--body-text);
  border-left:3px solid transparent;
  transition:background var(--t-fast) var(--ease),color var(--t-fast) var(--ease),
             border-color var(--t-fast) var(--ease),padding-left var(--t-fast) var(--ease);
}
.side-menu a>i:first-child{font-size:.9375rem;color:var(--primary-blue);flex:0 0 18px;text-align:center}
.side-menu a>span{flex:1;min-width:0}
.side-menu .side-chev{font-size:.625rem;opacity:0;color:var(--gold);transition:opacity var(--t-fast) var(--ease)}
.side-menu a:hover{background:rgba(var(--secondary-rgb),.07);color:var(--primary-blue);border-left-color:var(--gold);padding-left:15px}
.side-menu a:hover .side-chev{opacity:1}
.side-menu a:hover>i:first-child{color:var(--gold-dark)}
.side-menu a[aria-current="page"]{
  background:linear-gradient(90deg,rgba(var(--secondary-rgb),.13),rgba(var(--secondary-rgb),.02));
  color:var(--primary-blue);font-weight:600;border-left-color:var(--gold);
}
.side-menu a[aria-current="page"]>i:first-child{color:var(--gold-dark)}
.side-menu a[aria-current="page"] .side-chev{opacity:1}

/* compact fact list reused by several side cards */
.side-facts{padding:6px 18px 16px}
.side-facts li{display:flex;gap:12px;padding:12px 0;border-bottom:1px dashed var(--hairline)}
.side-facts li:last-child{border-bottom:0;padding-bottom:2px}
.side-facts i{font-size:1rem;color:var(--primary-blue);flex:0 0 18px;margin-top:2px}
.side-facts span{display:block;font-size:.5625rem;font-weight:600;letter-spacing:1.5px;color:var(--muted-text);margin-bottom:3px}
.side-facts strong{display:block;font-size:.8125rem;font-weight:600;color:var(--body-text);line-height:1.5;overflow-wrap:anywhere}
.side-facts p{margin:3px 0 0;font-size:.6875rem;color:var(--muted-text);line-height:1.55}
.side-facts a{color:var(--body-text);overflow-wrap:anywhere}
.side-facts a:hover{color:var(--primary-blue)}

/* dark "talk to us" card that closes the rail */
.side-help{
  border-radius:14px;padding:22px 20px;color:#fff;
  background:linear-gradient(145deg,var(--primary) 0%,var(--footer-bg) 100%);
  border:1px solid rgba(255,255,255,.1);
  box-shadow:0 14px 34px rgba(var(--primary-rgb),.26);
}
.side-help-ico{
  display:grid;place-items:center;width:44px;height:44px;margin-bottom:14px;
  border-radius:50%;border:1px solid rgba(var(--accent-rgb),.34);
  font-size:1.25rem;color:var(--gold);
}
.side-help h3{margin:0 0 8px;font-family:var(--font-display);font-size:1.0625rem;font-weight:600}
.side-help p{margin:0 0 16px;font-size:.75rem;line-height:1.7;color:var(--on-dark-muted)}
.side-help-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;
  height:42px;border-radius:8px;background:var(--gold);color:var(--primary-navy);
  font-size:.8125rem;font-weight:600;
  transition:background var(--t-fast) var(--ease),transform var(--t-med) var(--ease-out);
}
.side-help-btn:hover{background:#fff;transform:translateY(-2px)}

/* ------------------------------------------------------- 4. CONTENT COLUMN */
.page-content{min-width:0;display:grid;gap:34px}

.content-block{
  min-width:0;                                  /* never let a wide child blow out the grid */
  background:var(--surface);border:1px solid var(--hairline);border-radius:16px;
  padding:clamp(20px,2.4vw,38px);box-shadow:var(--card-shadow);
}
.content-block--flush{background:none;border:0;box-shadow:none;padding:0}

.block-head{margin-bottom:22px}
.block-head .eyebrow{font-size:.75rem;letter-spacing:1.5px}
.block-head h2{
  font-family:var(--font-display);font-weight:600;letter-spacing:-.4px;
  font-size:clamp(1.5rem,2.1vw,2rem);line-height:1.22;margin:0;color:var(--body-text);
}
.block-head h2 em{font-style:normal;color:var(--primary-blue)}
.block-head p{margin:12px 0 0;font-size:.875rem;line-height:1.85;color:var(--muted-text);max-width:74ch}

.prose{overflow-wrap:break-word}
.prose p{font-size:.9375rem;line-height:1.9;color:var(--muted-text);margin:0 0 16px}
.prose p:last-child{margin-bottom:0}
.prose strong{color:var(--body-text);font-weight:600}
.prose h3{
  font-family:var(--font-display);font-size:1.125rem;font-weight:600;
  margin:26px 0 12px;color:var(--body-text);
}
.prose a{color:var(--primary-blue);text-decoration:underline;text-underline-offset:3px}
.prose ul.tick{display:grid;gap:11px;margin:4px 0 18px}
.prose ul.tick li{display:flex;gap:11px;font-size:.875rem;line-height:1.75;color:var(--muted-text)}
.prose ul.tick li i{color:var(--primary-blue);font-size:.9375rem;margin-top:4px;flex:0 0 16px}
.prose blockquote{
  margin:22px 0 4px;padding:20px 24px;border-radius:12px;
  border-left:4px solid var(--gold);background:rgba(var(--secondary-rgb),.05);
}
.prose blockquote p{font-family:var(--font-display);font-size:1.0625rem;line-height:1.7;color:var(--body-text);font-style:italic;margin:0}
.prose blockquote cite{display:block;margin-top:12px;font-size:.75rem;font-style:normal;letter-spacing:1px;color:var(--muted-text)}

/* intro: copy beside a framed photograph */
.intro-split{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(22px,2.6vw,38px);align-items:start}
.intro-split--wrap{display:flow-root}
.intro-split--wrap .intro-figure{float:right;width:calc((100% - clamp(22px,2.6vw,38px)) / 2.25);margin:0 0 20px clamp(22px,2.6vw,38px)}
.intro-figure{margin:0;position:relative}
.intro-photo{position:relative}
.intro-photo>img{display:block}
.intro-figure img{width:100%;border-radius:12px;aspect-ratio:4 / 3;object-fit:cover;box-shadow:0 16px 36px rgba(var(--primary-rgb),.14)}
.intro-figure figcaption{
  display:flex;align-items:flex-start;gap:9px;margin-top:12px;
  font-size:.6875rem;line-height:1.6;color:var(--muted-text);
}
.intro-figure figcaption i{color:var(--gold-dark);margin-top:2px}
.intro-stamp{
  position:absolute;bottom:16px;right:16px;
  display:grid;justify-items:center;align-content:center;gap:5px;
  width:100px;height:100px;border:1px solid var(--gold);border-radius:50%;
  background:linear-gradient(145deg,var(--primary-blue),var(--primary-navy) 75%);
  color:#fff;text-align:center;
  box-shadow:0 6px 20px rgba(var(--primary-rgb),.3),inset 0 0 0 4px var(--primary-navy);
}
.intro-stamp::before{
  content:"";position:absolute;inset:6px;border:1px solid rgba(var(--accent-rgb),.55);
  border-radius:inherit;pointer-events:none;
}
.intro-stamp>i{font-size:1rem;line-height:1;color:var(--gold)}
.intro-stamp b{
  display:block;font-family:var(--font-display);font-size:1.375rem;
  font-weight:700;letter-spacing:2px;line-height:1;
}
.intro-stamp small{
  display:block;padding-top:5px;border-top:1px solid rgba(var(--accent-rgb),.5);
  font-size:.5rem;font-weight:600;letter-spacing:1.7px;line-height:1.2;color:var(--gold);
}

/* ----------------------------------------------------------- 5. STAT STRIP */
.stat-strip{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid var(--hairline);border-radius:14px;overflow:hidden;
  background:var(--surface);box-shadow:var(--card-shadow);
}
.stat-cell{padding:22px 20px;position:relative;min-width:0;text-align:center}
.stat-cell+.stat-cell::before{content:"";position:absolute;left:0;top:20px;bottom:20px;width:1px;background:var(--hairline)}
.stat-cell i{font-size:1.375rem;color:var(--primary-blue)}
.stat-cell b{display:block;font-family:var(--font-display);font-size:1.75rem;font-weight:700;color:var(--body-text);margin:8px 0 2px;line-height:1}
.stat-cell span{display:block;font-size:.625rem;font-weight:600;letter-spacing:1.4px;color:var(--muted-text)}

/* ---------------------------------------------------------- 6. VALUE CARDS */
.value-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(224px,100%),1fr));gap:16px}
.value-card{
  padding:22px 20px;border-radius:12px;border:1px solid var(--hairline);
  background:var(--surface-2);position:relative;overflow:hidden;
  transition:transform var(--t-med) var(--ease-out),box-shadow var(--t-med) var(--ease),border-color var(--t-fast) var(--ease);
}
.value-card::before{
  content:"";position:absolute;top:0;bottom:0;left:0;width:3px;
  background:var(--gold);transform:scaleY(0);transform-origin:top;
  transition:transform var(--t-med) var(--ease-out);
}
.value-card:hover{transform:translateY(-4px);box-shadow:0 16px 32px rgba(var(--primary-rgb),.1);border-color:rgba(var(--secondary-rgb),.26)}
.value-card:hover::before{transform:scaleY(1)}
.value-card>i{
  display:grid;place-items:center;width:42px;height:42px;border-radius:10px;
  background:rgba(var(--secondary-rgb),.1);color:var(--primary-blue);font-size:1.125rem;margin-bottom:14px;
}
.value-card h3{font-family:var(--font-display);font-size:1rem;font-weight:600;margin:0 0 8px;color:var(--body-text)}
.value-card p{margin:0;font-size:.8125rem;line-height:1.75;color:var(--muted-text)}

/* ----------------------------------------------------------- 7. MILESTONES */
.timeline{position:relative;padding-left:30px;margin-top:6px}
.timeline::before{content:"";position:absolute;left:7px;top:6px;bottom:6px;width:2px;background:linear-gradient(180deg,var(--gold),rgba(var(--secondary-rgb),.25))}
.timeline li{position:relative;padding-bottom:26px}
.timeline li:last-child{padding-bottom:0}
.timeline li::before{
  content:"";position:absolute;left:-30px;top:5px;width:16px;height:16px;border-radius:50%;
  background:var(--surface);border:3px solid var(--primary-blue);
}
.timeline li:first-child::before{border-color:var(--gold)}
.timeline time{display:block;font-size:.6875rem;font-weight:700;letter-spacing:1.4px;color:var(--primary-blue);margin-bottom:5px}
.timeline h3{font-family:var(--font-display);font-size:1rem;font-weight:600;margin:0 0 6px;color:var(--body-text)}
.timeline p{margin:0;font-size:.8125rem;line-height:1.75;color:var(--muted-text)}

/* ----------------------------------------------------------- 8. DATA TABLE */
.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;
  border:1px solid var(--hairline);border-radius:12px;background:var(--surface)}
.data-table{width:100%;border-collapse:collapse;min-width:560px;font-size:.8125rem}
.data-table thead th{
  background:linear-gradient(100deg,var(--primary),var(--navbar));color:#fff;
  text-align:left;padding:13px 16px;white-space:nowrap;
  font-size:.6875rem;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;
}
.data-table tbody td{padding:13px 16px;border-top:1px solid var(--hairline);color:var(--muted-text);line-height:1.6;vertical-align:top}
.data-table tbody th{padding:13px 16px;border-top:1px solid var(--hairline);text-align:left;font-weight:600;color:var(--body-text);vertical-align:top}
.data-table tbody tr:hover td,.data-table tbody tr:hover th{background:rgba(var(--secondary-rgb),.045)}
.data-table .pill{
  display:inline-block;padding:3px 10px;border-radius:999px;white-space:nowrap;
  font-size:.625rem;font-weight:600;letter-spacing:.6px;
  background:rgba(var(--secondary-rgb),.1);color:var(--primary-blue);
}

/* ---------------------------------------------------------- 9. FEATURE ROWS */
.feature-rows{display:grid;gap:14px}
.feature-row{
  display:flex;gap:16px;align-items:flex-start;padding:18px 20px;
  border:1px solid var(--hairline);border-radius:12px;background:var(--surface-2);
  transition:border-color var(--t-fast) var(--ease),background var(--t-fast) var(--ease);
}
.feature-row:hover{border-color:rgba(var(--accent-rgb),.5);background:rgba(var(--accent-rgb),.045)}
.feature-row>i{
  display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:50%;
  border:1px solid rgba(var(--secondary-rgb),.26);color:var(--primary-blue);font-size:1.0625rem;
}
.feature-row h3{font-family:var(--font-display);font-size:.9375rem;font-weight:600;margin:0 0 5px;color:var(--body-text)}
.feature-row p{margin:0;font-size:.8125rem;line-height:1.75;color:var(--muted-text)}

/* --------------------------------------------------------- 10. CLOSING CTA */
.page-cta{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;
  padding:clamp(24px,2.6vw,36px);border-radius:16px;color:#fff;
  background:
    linear-gradient(105deg,rgba(var(--primary-rgb),.95) 0%,rgba(var(--primary-rgb),.9) 46%,rgba(var(--secondary-rgb),.88) 100%),
    url('../images/hero-2.jpg');
  background-size:cover;background-position:center 42%;
  border-bottom:3px solid var(--gold);
}
.page-cta h2{font-family:var(--font-display);font-size:clamp(1.25rem,2vw,1.625rem);font-weight:600;margin:0 0 8px}
.page-cta p{margin:0;font-size:.875rem;line-height:1.7;color:var(--on-dark-muted);max-width:60ch}
.page-cta-actions{display:flex;flex-wrap:wrap;gap:14px}
.page-cta .btn-solid{background:var(--gold);color:var(--primary-navy);box-shadow:0 10px 24px rgba(var(--accent-rgb),.3)}
.page-cta .btn-solid:hover{background:#fff;box-shadow:0 16px 30px rgba(0,0,0,.26)}
.cta-ghost{
  display:inline-flex;align-items:center;gap:10px;height:50px;padding-inline:24px;border-radius:10px;
  border:1px solid rgba(255,255,255,.42);color:#fff;font-weight:600;font-size:.96875rem;
  transition:background var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease);
}
.cta-ghost:hover{background:rgba(255,255,255,.12);border-color:#fff}

/* --------------------------------------------------------- 11. DARK THEME */
html[data-theme="dark"] .side-menu a>i:first-child,
html[data-theme="dark"] .side-facts i,
html[data-theme="dark"] .stat-cell i,
html[data-theme="dark"] .value-card>i,
html[data-theme="dark"] .feature-row>i,
html[data-theme="dark"] .timeline time,
html[data-theme="dark"] .block-head h2 em,
html[data-theme="dark"] .prose ul.tick li i{color:var(--gold)}
html[data-theme="dark"] .side-menu a:hover,
html[data-theme="dark"] .side-menu a[aria-current="page"],
html[data-theme="dark"] .prose a,
html[data-theme="dark"] .side-facts a:hover,
html[data-theme="dark"] .data-table .pill{color:var(--gold)}
html[data-theme="dark"] .value-card>i{background:rgba(var(--accent-rgb),.12)}
html[data-theme="dark"] .timeline li::before{border-color:var(--gold)}
/* the stacked-table cell labels follow the same gold accent on dark */
html[data-theme="dark"] .data-table tbody td[data-label]::before{color:var(--gold)}


/* --------------------------------------------------------- 12. RESPONSIVE
   Breakpoints follow responsive.css: 1199 / 991 / 767 / 575 / 430 / 360.
   ------------------------------------------------------------------------- */

/* ---- ≤ 1199px : the photo stops sitting beside the copy ---- */
@media (max-width:1199.98px){
  .page-grid{grid-template-columns:272px minmax(0,1fr)}
  .intro-split{grid-template-columns:1fr}
  .intro-split--wrap .intro-figure{float:none;width:100%;margin:0 0 22px}
  .intro-figure{max-width:560px}
}

/* ---- ≤ 991px : single column, rail moves below the copy ---- */
@media (max-width:991.98px){
  .page-hero-grid{grid-template-columns:1fr}
  .page-hero-seal{justify-self:start}
  .page-grid{grid-template-columns:1fr}
  /* the rail stops sticking and spreads its cards across the width */
  .side-rail{position:static;order:2;grid-template-columns:repeat(auto-fit,minmax(min(272px,100%),1fr))}
  .page-content{order:1}
  .stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat-cell:nth-child(n+3)::before{top:0;bottom:auto;left:0;right:0;width:auto;height:1px}
  .stat-cell:nth-child(4)::after{content:"";position:absolute;left:0;top:20px;bottom:20px;width:1px;background:var(--hairline)}
}

/* ---- ≤ 767px : phone / large phone ---- */
@media (max-width:767.98px){
  .page-hero--deep{padding:26px 0 30px}
  .page-hero-grid{gap:20px}
  .crumbs{font-size:.75rem;margin-bottom:10px}
  .page-kicker{margin-bottom:10px;letter-spacing:1.2px}
  .page-badges{gap:6px;margin-top:14px}
  .page-badges li{font-size:.625rem;padding:4px 10px 4px 9px}

  .page-body{padding:28px 0 48px}
  .page-content{gap:20px}
  .content-block{border-radius:12px}
  .block-head{margin-bottom:18px}
  .block-head h2{font-size:1.375rem;letter-spacing:-.2px;line-height:1.3}
  .block-head p{font-size:.8125rem;line-height:1.75}

  .prose p{line-height:1.8;margin-bottom:14px}
  .prose h3{font-size:1.0625rem;margin:20px 0 10px}
  .prose ul.tick li{font-size:.8125rem}
  .prose blockquote{padding:16px 18px;margin:18px 0 0}
  .prose blockquote p{font-size:.9375rem}

  .intro-split{gap:22px}
  .intro-figure{max-width:none}
  .intro-figure img{aspect-ratio:16 / 10}
  /* the stamp sits over the photo, inside its bounds */
  .intro-stamp{width:80px;height:80px;right:12px;bottom:12px;gap:4px}
  .intro-stamp>i{font-size:.8125rem}
  .intro-stamp b{font-size:1.125rem}
  .intro-stamp small{font-size:.4375rem;letter-spacing:1.2px;padding-top:4px}

  .value-grid{grid-template-columns:1fr;gap:12px}
  .value-card{padding:18px 16px}
  .value-card>i{width:38px;height:38px;font-size:1rem;margin-bottom:11px}

  .timeline{padding-left:24px}
  .timeline::before{left:5px}
  .timeline li{padding-bottom:22px}
  .timeline li::before{left:-24px;width:13px;height:13px;border-width:3px;top:4px}

  .feature-rows{gap:10px}
  .feature-row{padding:15px 16px;gap:13px}
  .feature-row>i{flex-basis:34px;height:34px;font-size:.9375rem}

  /* ----- the programme table stops being a table and stacks as cards ----- */
  .table-wrap{overflow-x:visible;border:0;border-radius:0;background:none}
  .data-table{min-width:0;display:block}
  .data-table thead{display:none}
  .data-table tbody,.data-table tbody tr{display:block}
  .data-table tbody tr{
    border:1px solid var(--hairline);border-radius:12px;overflow:hidden;
    background:var(--surface);margin-bottom:12px;
  }
  .data-table tbody tr:last-child{margin-bottom:0}
  .data-table tbody tr:hover td,.data-table tbody tr:hover th{background:none}
  .data-table tbody th{
    display:block;border-top:0;padding:13px 16px;font-size:.9375rem;
    background:linear-gradient(100deg,rgba(var(--secondary-rgb),.1),rgba(var(--secondary-rgb),.02));
    border-bottom:1px solid var(--hairline);
  }
  .data-table tbody th br{display:none}
  .data-table tbody th .pill{margin-left:8px}
  .data-table tbody td{display:block;border-top:0;padding:11px 16px}
  .data-table tbody td+td{border-top:1px dashed var(--hairline)}
  /* the hidden column header comes back as a label on each cell */
  .data-table tbody td[data-label]::before{
    content:attr(data-label);display:block;margin-bottom:4px;
    font-size:.5625rem;font-weight:600;letter-spacing:1.4px;text-transform:uppercase;
    color:var(--primary-blue);
  }

  .side-rail{gap:14px}
  .side-card-head{padding:14px 16px}
  .side-menu{padding:6px}
  .side-menu a{padding:10px 11px}
  .side-facts{padding:4px 16px 14px}
  .side-help{padding:20px 18px}

  .page-cta{flex-direction:column;align-items:flex-start;gap:20px}
  .page-cta p{font-size:.8125rem}
  .page-cta-actions{width:100%}
}

/* ---- ≤ 575px : the rail cards stop sitting side by side ---- */
@media (max-width:575.98px){
  .side-rail{grid-template-columns:1fr}
  .stat-strip{grid-template-columns:1fr}
  .stat-cell{padding:18px 16px}
  .stat-cell::after{display:none}
  .stat-cell+.stat-cell::before{top:0;bottom:auto;left:16px;right:16px;width:auto;height:1px}
  .page-hero-seal{width:100%;padding:14px 16px;gap:13px}
  .page-cta .btn-solid,.cta-ghost,.page-cta-actions>*{width:100%;justify-content:center}
}

/* ---- ≤ 430px : small phones ---- */
@media (max-width:430px){
  .page-title{font-size:1.5rem}
  .page-badges li{font-size:.59375rem;letter-spacing:.2px}
  .content-block{padding:16px 14px}
  .block-head h2{font-size:1.25rem}
  .page-hero-seal img{width:46px;height:46px;flex-basis:46px}
  .page-hero-seal strong{font-size:.9375rem}
  /* icon over text so a long heading is not squeezed into a narrow column */
  .feature-row{flex-direction:column;gap:10px}
  .feature-row>i{flex-basis:auto;width:34px}
  .prose ul.tick li{gap:9px}
  .data-table tbody th,.data-table tbody td{padding-inline:13px}
  .side-card-head h2,.side-card-head h3{font-size:.9375rem}
  .side-help-btn{font-size:.78125rem}
}

/* ---- ≤ 360px : the narrowest phones still in use ---- */
@media (max-width:360px){
  .page-title{font-size:1.375rem}
  .block-head h2{font-size:1.1875rem}
  .content-block{padding:14px 12px}
  .timeline{padding-left:20px}
  .timeline li::before{left:-20px;width:11px;height:11px;border-width:2px}
  .timeline::before{left:5px}
  .page-badges li{padding:4px 9px 4px 8px}
  .intro-stamp{width:72px;height:72px;right:10px;bottom:10px}
  .intro-stamp b{font-size:1rem}
}

@media (prefers-reduced-motion:reduce){
  .value-card,.value-card::before,.side-help-btn,.side-menu a{transition:none}
  .value-card:hover{transform:none}
}

/* ------------------------------------------- 13. TYPOGRAPHY OVERRIDES
   typography.css sizes and justifies every `#main p`. That is right for
   running body copy, but captions, card text and side-rail notes are
   small print — they need their own size, and justifying them inside a
   narrow card opens rivers of whitespace. The `#main` prefix is only here
   to out-rank that rule.
   --------------------------------------------------------------------- */
#main .block-head p{font-size:.875rem;text-align:left}
#main .value-card p,
#main .feature-row p,
#main .timeline p{font-size:.8125rem;text-align:left}
#main .side-facts p{font-size:.6875rem;text-align:left}
#main .side-help p{font-size:.75rem;text-align:left}
#main .page-cta p{font-size:.875rem;text-align:left}
#main .intro-figure figcaption{text-align:left}

@media (max-width:767.98px){
  #main .block-head p{font-size:.8125rem}
  #main .page-cta p{font-size:.8125rem}
  /* a justified column this narrow reads badly — rag it right instead */
  #main .prose p,
  #main .prose blockquote p{text-align:left}
}

#main .page-body.institute-body p{text-align:justify}

/* About submenu pages share the institute's surfaces, spacing and palette. */
.about-hero .page-hero-grid>div{min-width:0}
.about-hero .page-title{overflow-wrap:break-word}
.about-hero .page-hero-seal{max-width:300px;min-width:0}
.about-hero .page-hero-seal>div{min-width:0}
.about-hero .page-hero-seal strong{font-size:1rem;line-height:1.5}
.about-body :is(a, address){overflow-wrap:anywhere}
.about-body :is(h2,h3){overflow-wrap:break-word}
#main .page-body.about-body p{text-align:justify}
.about-card-grid{margin-top:24px}
.about-text-link,.about-person a,.about-document-state a,.about-university a{
  display:inline-flex;align-items:center;gap:8px;color:var(--primary-blue);
  font-size:.875rem;font-weight:600;line-height:1.7;
}
.about-text-link:hover,.about-person a:hover,.about-document-state a:hover,.about-university a:hover{text-decoration:underline;text-underline-offset:4px}
.about-message{display:flow-root}
.about-principal-profile{float:right;width:38%;max-width:280px;margin:0 0 22px 26px;border:1px solid var(--hairline);border-radius:12px;overflow:hidden;background:var(--surface-2)}
.about-principal-profile img{display:block;width:100%;height:auto;aspect-ratio:4 / 5;object-fit:cover;object-position:center 25%}
.about-principal-profile figcaption{display:grid;gap:5px;padding:16px;border-top:3px solid var(--gold)}
.about-principal-profile strong{font-family:var(--font-display);font-size:1.0625rem}
.about-principal-profile span{font-size:.75rem;font-weight:600;color:var(--primary-blue)}
.about-principal-profile small{font-size:.6875rem;line-height:1.6;color:var(--muted-text)}
.about-message-note{font-style:italic}
.about-people-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.about-person{
  position:relative;display:grid;grid-template-columns:132px minmax(0,1fr);
  align-items:center;gap:28px;min-width:0;padding:26px;
  border:1px solid var(--hairline);border-radius:16px;background:var(--surface);
  box-shadow:0 4px 18px rgba(var(--primary-rgb),.035);scroll-margin-top:120px;
}
.about-person::before{
  content:"";position:absolute;top:26px;bottom:26px;left:0;width:3px;
  border-radius:0 3px 3px 0;background:var(--gold);
}
.about-person-portrait{
  width:132px;height:132px;padding:6px;border:1px solid var(--hairline);
  border-radius:50%;background:var(--page-bg);
}
.about-person-portrait img{
  display:block;width:100%;height:100%;border-radius:50%;
  object-fit:cover;object-position:center 25%;
}
#vice-chancellor .about-person-portrait img{object-position:58% center}
.about-person-copy{min-width:0}
.about-role{
  display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:6px;
  background:rgba(var(--secondary-rgb),.07);color:var(--primary-blue);
  font-size:.625rem;font-weight:600;letter-spacing:1px;line-height:1.5;text-transform:uppercase;
}
.about-role::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--gold-dark);flex-shrink:0}
.about-person h3{
  font-family:var(--font-display);font-size:clamp(1.125rem,1.6vw,1.4375rem);
  font-weight:600;line-height:1.35;letter-spacing:-.35px;color:var(--body-text);margin:12px 0 8px;
}
.about-person p{font-size:.875rem;line-height:1.8;color:var(--muted-text);margin:0}
.about-person-footer{
  display:flex;align-items:center;gap:8px;margin-top:18px;padding-top:13px;
  border-top:1px solid var(--hairline);font-size:.75rem;line-height:1.6;color:var(--muted-text);
}
.about-person-footer>i{color:var(--gold-dark);font-size:.875rem}
.about-person-footer a{font-size:.8125rem;justify-content:space-between;width:100%;gap:16px}
.about-person-footer a>i{
  display:grid;place-items:center;flex:0 0 28px;height:28px;border:1px solid var(--hairline);border-radius:50%;
}
.about-person-footer a:hover>i{background:var(--primary-navy);border-color:var(--primary-navy);color:var(--gold)}
.about-person:focus-within{outline:2px solid var(--gold-dark);outline-offset:3px}
.about-university h3,.about-document-state h3{font-family:var(--font-display);font-size:1.125rem;line-height:1.4;color:var(--body-text);margin:8px 0 10px}
.about-university p,.about-document-state p{font-size:.875rem;line-height:1.85;color:var(--muted-text);margin:0 0 14px}
.about-university,.about-document-state{display:flex;align-items:flex-start;gap:20px;padding:24px;border:1px solid var(--hairline);border-left:3px solid var(--gold);border-radius:12px;background:var(--surface-2);margin-bottom:24px}
.about-document-state{margin:24px 0 0}
.about-university>i,.about-document-state>i{display:grid;place-items:center;flex-shrink:0;width:52px;height:52px;border-radius:12px;background:rgba(var(--secondary-rgb),.09);color:var(--primary-blue);font-size:1.5rem}
.about-university>div,.about-document-state>div{min-width:0}
.about-university h3,.about-document-state h3{margin-top:0}
.about-steps{list-style:none;counter-reset:about-step;display:grid;gap:22px;padding:0;margin:0}
.about-steps li{counter-increment:about-step;position:relative;padding-left:52px;min-width:0}
.about-steps li::before{content:counter(about-step,decimal-leading-zero);position:absolute;left:0;top:0;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:rgba(var(--secondary-rgb),.08);color:var(--primary-blue);font-weight:700;font-size:.8125rem}
.about-steps h3{margin:0 0 8px;font-size:1rem;font-weight:600;color:var(--body-text)}
.about-steps p{margin:0;font-size:.875rem;line-height:1.85;color:var(--muted-text)}
.about-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.about-contact-grid .value-card:first-child{grid-column:1/-1}
.about-contact-grid address{font-style:normal;font-size:.9375rem;line-height:1.9;color:var(--muted-text);margin:0}
.about-contact-grid a{margin-bottom:12px}
.about-map{overflow:hidden;border:1px solid var(--hairline);border-radius:12px;background:var(--surface-2)}
.about-map iframe{display:block;width:100%;height:360px;border:0}
.about-map-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:20px 0 28px}
.about-map-actions .btn-solid{height:auto;min-height:46px;white-space:normal;padding:12px 18px;line-height:1.5}
.about-map-actions>span{font-size:.75rem;color:var(--muted-text);line-height:1.7}
html[data-theme="dark"] .about-body :is(.about-text-link,.about-person a,.about-document-state a,.about-university a,.about-role,.about-principal-profile span,.about-steps li::before){color:var(--gold)}
html[data-theme="dark"] .about-body :is(.about-university>i,.about-document-state>i){color:var(--gold);background:rgba(var(--accent-rgb),.1)}
@media(max-width:1199.98px){
  .about-hero .page-hero-grid{grid-template-columns:1fr}
  .about-hero .page-hero-seal{justify-self:start;max-width:100%}
}
@media(max-width:767.98px){
  .about-contact-grid{grid-template-columns:1fr;gap:16px}
  .about-contact-grid .value-card:first-child{grid-column:auto}
  .about-principal-profile{float:none;width:100%;max-width:300px;margin:0 auto 24px}
  .about-university,.about-document-state{padding:18px;gap:14px;flex-direction:column}
  .about-map iframe{height:280px}
  .about-steps li{padding-left:46px}
  .about-body .page-cta-actions{width:100%}
  .about-body .page-cta-actions>a{height:auto;min-height:46px;white-space:normal;padding:12px 18px;line-height:1.5}
}

/* A quieter section rail for the Administration page. */
.side-rail--refined{
  --paragraph-menu-size:.75rem;
  gap:22px;
}
.side-rail--refined .side-card{
  border:1px solid var(--hairline);border-radius:16px;
  background:var(--surface);box-shadow:0 4px 18px rgba(var(--primary-rgb),.04);
}
.side-rail--refined .side-card-head{
  position:relative;gap:12px;padding:22px 20px 18px;
  background:none;color:var(--body-text);border-bottom:1px solid var(--hairline);
}
.side-rail--refined .side-card-head::before{
  content:"";position:absolute;top:0;left:20px;width:32px;height:3px;
  border-radius:0 0 3px 3px;background:var(--gold);
}
.side-rail--refined .side-card-head>i{
  display:grid;place-items:center;flex:0 0 38px;height:38px;
  border-radius:12px;background:rgba(var(--secondary-rgb),.07);
  color:var(--primary-blue);font-size:1.0625rem;
}
.side-rail--refined .side-card-head :is(h2,h3){font-size:1.0625rem;letter-spacing:-.2px;line-height:1.4}
.side-rail--refined .side-card-head span{color:var(--muted-text);font-size:.5625rem;letter-spacing:1.3px;margin-top:4px}
.side-rail--refined .side-menu{display:grid;gap:4px;padding:12px;margin:0;list-style:none}
.side-rail--refined .side-menu a{
  min-height:46px;padding:9px 10px;gap:10px;border-radius:10px;
  border-left:3px solid transparent;font-size:.8125rem;line-height:1.55;
  transition:background var(--t-fast) var(--ease),color var(--t-fast) var(--ease);
}
.side-rail--refined .side-menu a>i:first-child{
  display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:8px;
  background:rgba(var(--secondary-rgb),.05);color:var(--muted-text);font-size:.9375rem;
}
.side-rail--refined .side-menu .side-chev{opacity:.4;color:var(--muted-text);flex-shrink:0}
.side-rail--refined .side-menu a:hover{padding-left:10px;background:var(--surface-2);border-left-color:transparent;color:var(--primary-blue)}
.side-rail--refined .side-menu a[aria-current="page"]{
  background:var(--primary-navy);color:#fff;border-left-color:var(--gold);
  box-shadow:0 4px 10px rgba(var(--primary-rgb),.12);
}
.side-rail--refined .side-menu a[aria-current="page"]>i:first-child{background:rgba(255,255,255,.1);color:var(--gold)}
.side-rail--refined .side-menu a[aria-current="page"] .side-chev{opacity:1;color:var(--gold)}
.side-rail--refined .side-menu a:focus-visible,.side-rail--refined .side-help-btn:focus-visible{outline:2px solid var(--gold-dark);outline-offset:3px}
.side-rail--refined .side-facts{list-style:none;margin:0;padding:4px 20px 8px}
.side-rail--refined .side-facts li{gap:12px;padding:16px 0;border-bottom:1px solid var(--hairline)}
.side-rail--refined .side-facts li:last-child{padding-bottom:16px;border-bottom:0}
.side-rail--refined .side-facts li>div{min-width:0;flex:1}
.side-rail--refined .side-facts i{
  display:grid;place-items:center;flex:0 0 32px;height:32px;margin-top:1px;
  border:1px solid var(--hairline);border-radius:10px;color:var(--primary-blue);font-size:.875rem;
}
.side-rail--refined .side-facts span{font-size:.5625rem;letter-spacing:1px;line-height:1.5;margin-bottom:5px}
.side-rail--refined .side-facts :is(strong,a){font-size:.8125rem;line-height:1.65;font-weight:600}
.side-rail--refined .side-facts p{margin-top:5px;line-height:1.75}
.side-rail--refined .side-help{
  position:relative;overflow:hidden;align-self:start;
  padding:24px 20px;border:1px solid var(--hairline);border-radius:16px;
  background:linear-gradient(135deg,rgba(var(--accent-rgb),.09),transparent 75%),var(--surface);
  color:var(--body-text);box-shadow:0 4px 18px rgba(var(--primary-rgb),.04);
}
.side-rail--refined .side-help-heading{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.side-rail--refined .side-help-ico{
  flex:0 0 40px;height:40px;width:40px;margin:0;border:0;border-radius:12px;
  color:var(--primary-blue);background:rgba(var(--accent-rgb),.16);font-size:1.125rem;
}
.side-rail--refined .side-help h3{font-size:1.0625rem;line-height:1.4;margin:0}
.side-rail--refined .side-help p{color:var(--muted-text);line-height:1.85;margin:0 0 20px}
.side-rail--refined .side-help-btn{
  height:auto;min-height:46px;gap:12px;padding:12px 14px;border-radius:10px;
  background:var(--primary-navy);color:#fff;font-size:.8125rem;line-height:1.5;
}
.side-rail--refined .side-help-btn i{color:var(--gold)}
.side-rail--refined .side-help-btn:hover{background:var(--primary-blue);color:#fff;transform:none}
html[data-theme="dark"] .side-rail--refined :is(.side-card-head>i,.side-facts i,.side-help-ico){color:var(--gold)}
@media(max-width:991.98px){
  .side-rail--refined{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .side-rail--refined>nav{grid-column:1/-1}
  .side-rail--refined .side-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:575.98px){
  .side-rail--refined,.side-rail--refined .side-menu{grid-template-columns:1fr}
  .side-rail--refined .side-card-head{padding:20px 18px 16px}
  .side-rail--refined .side-facts{padding-inline:18px}
  .side-rail--refined .side-help{padding:22px 18px}
}

@media(max-width:1199.98px){
  .about-person{grid-template-columns:108px minmax(0,1fr);gap:22px;padding:22px}
  .about-person-portrait{width:108px;height:108px;padding:5px}
}
@media(max-width:575.98px){
  .about-people-grid{gap:16px}
  .about-person{grid-template-columns:minmax(0,1fr);justify-items:center;gap:18px;padding:24px 20px}
  .about-person::before{top:0;bottom:auto;left:calc(50% - 22px);width:44px;height:3px;border-radius:0 0 3px 3px}
  .about-person-portrait{width:112px;height:112px}
  .about-person-copy{width:100%;text-align:center}
  .about-person h3{font-size:1.25rem;max-width:24ch;margin:12px auto 10px}
  .about-person-footer{justify-content:center}
}
