/* R242 — a compact blue opening with a framed portrait and distinct name band.
   The identity/media nodes, rich text, links and privacy rules are unchanged. */
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero{
  --r235-hero-navy:#245d8f;
  --r235-hero-copy:#edf3f9;
  --r235-hero-gold:#f1dba5;
  --r235-identity-paper:#f8fafd;
  --r235-identity-ink:#173f6d;
  --r235-identity-muted:#465b72;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);
  align-items:center;
  gap:24px;
  min-width:0;
  min-height:0;
  height:auto;
  padding:24px;
  border:1px solid #376f9f;
  border-block-start:3px solid var(--r235-hero-gold);
  border-radius:18px;
  background:var(--r235-hero-navy)!important;
  color:#fff;
  box-shadow:0 14px 32px rgba(12,43,87,.12);
  overflow:visible;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-content{
  min-width:0;
  max-width:100%;
  align-self:center;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .academic-eyebrow{
  max-width:100%;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--r235-hero-gold);
  font-size:13px;
  font-weight:700;
  line-height:1.75;
  letter-spacing:0;
  overflow-wrap:anywhere;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-content .academic-title-rich{
  max-width:100%;
  margin:0;
  color:#fff!important;
  font-size:clamp(30px,3vw,40px);
  font-weight:800;
  line-height:1.42;
  letter-spacing:0;
  text-shadow:none;
  text-wrap:balance;
  overflow-wrap:anywhere;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-content .academic-title-rich :is(h1,h2,h3,p){
  margin:0;
  color:inherit!important;
  font:inherit;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-content :is(.hero-copy,.academic-meta){
  max-width:62ch;
  margin:0;
  color:var(--r235-hero-copy);
  font-size:17px;
  line-height:1.8;
  opacity:1;
  overflow-wrap:anywhere;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-content .academic-meta{
  font-size:13px;
  line-height:1.75;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-content :is(.hero-copy,.academic-meta,.academic-eyebrow) p{
  margin:0;
  color:inherit;
  font:inherit;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .academic-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  justify-content:center;
  gap:10px;
  margin:4px 0 0;
  width:100%;
  min-width:0;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .r234-home-routes{
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  justify-content:center;
  gap:10px;
  width:100%;
  min-width:0;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero :is(.hero-action,.r234-route-link){
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 1 auto;
  gap:8px;
  min-height:48px;
  min-width:0;
  max-width:100%;
  height:auto;
  padding:10px 15px;
  border:1px solid #b8cce0;
  border-radius:9px;
  background:#1b4d7a;
  color:#fff;
  font-family:inherit;
  font-size:14px;
  font-weight:700;
  line-height:1.7;
  text-decoration:none;
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
  box-shadow:none;
  transform:none;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero :is(.r234-route-link:first-child,.hero-action-primary){
  border-color:#fff;
  background:#fff;
  color:#173f6d;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-action-mahara{
  border-color:var(--r235-hero-gold);
  background:var(--r235-hero-gold);
  color:#173f6d;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero :is(.hero-action,.r234-route-link):hover:not(:disabled){
  border-color:#fff;
  background:#2f75b5;
  color:#fff;
  box-shadow:none;
  transform:none;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero :is(.r234-route-link:first-child,.hero-action-primary):hover:not(:disabled){
  background:#e3eaf3;
  border-color:#e3eaf3;
  color:#173f6d;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero :is(a,button):focus-visible{
  outline:3px solid var(--r235-hero-gold);
  outline-offset:4px;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:none;
  grid-auto-rows:auto;
  align-content:center;
  align-items:center;
  align-self:center;
  justify-self:center;
  justify-items:center;
  gap:6px;
  width:100%;
  max-width:440px;
  min-width:0;
  min-height:0;
  height:auto;
  padding:16px;
  border:1px solid #d7e0eb;
  border-radius:14px;
  background:var(--r235-identity-paper);
  color:var(--r235-identity-ink);
  text-align:center;
  box-shadow:0 8px 24px rgba(0,0,0,.10);
  backdrop-filter:none;
}
/* Reset legacy coordinates at one scope so the natural label / portrait / name /
   programme / specialisation / college order stays identical at every width. */
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card > *{
  grid-column:1;
  grid-row:auto;
  order:0;
  align-self:center;
  justify-self:center;
  min-width:0;
  max-width:100%;
  text-align:center;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card .avatar{
  box-sizing:border-box;
  grid-column:1;
  grid-row:auto;
  align-self:center;
  justify-self:center;
  display:grid;
  place-items:center;
  width:192px;
  height:auto;
  aspect-ratio:1;
  max-width:100%;
  margin:0 0 4px;
  padding:5px;
  border:1px solid #c4ad77;
  border-radius:14px;
  background:#fff;
  color:#173f6d;
  overflow:hidden;
  box-shadow:0 5px 16px rgba(23,63,109,.10);
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card .avatar :is(img,[data-media-image]){
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  border-radius:0;
  object-fit:contain;
  object-position:center;
  clip-path:none;
  mask:none;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card :is(.formal-profile-label,.profile-name,.profile-meta,.profile-chip){
  min-width:0;
  max-width:100%;
  margin:0;
  overflow-wrap:anywhere;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card .formal-profile-label{
  grid-column:1;
  grid-row:auto;
  align-self:center;
  padding:0;
  border:0;
  background:transparent;
  color:#6f551c;
  font-size:12px;
  font-weight:700;
  line-height:1.7;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card .profile-name{
  grid-column:1;
  grid-row:auto;
  align-self:center;
  box-sizing:border-box;
  width:100%;
  padding:8px 10px;
  border:1px solid #c7d7e7;
  border-radius:8px;
  background:#eaf1f8;
  color:var(--r235-identity-ink)!important;
  font-size:22px;
  font-weight:800;
  line-height:1.5;
  text-wrap:balance;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card :is(.profile-meta,.profile-chip){
  grid-column:1;
  grid-row:auto;
  color:var(--r235-identity-muted);
  font-size:14px;
  line-height:1.7;
  opacity:1;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card .profile-chip{
  justify-self:center;
  width:fit-content;
  margin-block-start:2px;
  padding:5px 9px;
  border:1px solid #d7e0eb;
  border-radius:7px;
  background:#fff;
  font-size:13px;
  line-height:1.7;
}
html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card :is(.profile-name,.profile-meta,.profile-chip) :is(p,h1,h2,h3){
  margin:0;
  color:inherit!important;
  font:inherit;
}

/* Read the available main-column width, including a desktop sidebar. */
@container r234-public (max-width:1100px){
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero{
    grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);
    padding:22px;
    gap:24px;
  }
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card{
    padding:16px;
  }
}
@container r234-public (max-width:840px){
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero{
    grid-template-columns:minmax(0,1fr);
    min-height:0;
    padding:22px;
    gap:24px;
  }
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card{
    padding:16px;
  }
}
@media(max-width:760px){
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero{
    grid-template-columns:minmax(0,1fr);
    min-height:0;
    padding:20px;
    gap:22px;
  }
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-content .academic-title-rich{font-size:32px}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-content .hero-copy{font-size:17px}
}
@container r234-public (max-width:520px){
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero{padding:18px;gap:20px}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card{
    padding:14px;
    gap:6px;
  }
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card .avatar{width:168px;height:auto}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card .profile-name{font-size:22px}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-content .academic-title-rich{font-size:28px;line-height:1.5}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-content .hero-copy{font-size:16px;line-height:1.85}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .r234-route-link{flex:1 1 160px}
}
@media(max-width:420px){
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero{padding:16px;gap:18px;border-radius:14px}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card{padding:14px 12px;gap:6px}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card .avatar{width:168px;height:auto}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card .profile-name{font-size:22px}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-content .academic-title-rich{font-size:28px;line-height:1.5}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-content .hero-copy{font-size:16px;line-height:1.85}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .r234-route-link{flex:1 1 100%;width:100%;padding-inline:10px}
}
html[data-theme="dark"] #pageRoot[data-r234-public-page="home"] .academic-hero{
  background:#245d8f!important;
  border-color:#5389b5;
  border-block-start-color:#f1dba5;
  box-shadow:0 14px 32px rgba(0,0,0,.20);
}
html[data-theme="dark"] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card{
  background:#f8fafd;
  border-color:#d7e0eb;
  color:#173f6d;
}
@media print{
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero{
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr);
    min-height:0;
    padding:16px;
    gap:18px;
    border:1px solid #bccbd8;
    border-radius:8px;
    background:#fff!important;
    color:#173f6d;
    box-shadow:none;
    break-inside:avoid;
  }
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-content .academic-title-rich{color:#173f6d!important;font-size:26px;line-height:1.5}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .hero-content :is(.hero-copy,.academic-meta){color:#465b72;font-size:13px;line-height:1.8}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .academic-eyebrow{color:#6f551c;font-size:11px}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card{padding:12px;gap:6px;background:#fff;border:1px solid #bccbd8;box-shadow:none}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card .avatar{width:148px;height:auto;margin:0 0 4px;box-shadow:none}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card .profile-name{font-size:17px;padding:6px 8px;border-color:#bccbd8;background:#f4f7fa}
  html[data-theme] #pageRoot[data-r234-public-page="home"] .academic-hero .formal-profile-card :is(.profile-meta,.profile-chip){font-size:12px;line-height:1.65}
}
