/* GMGSSS Portmore — public site styles */
:root {
  --maroon: #6e1a30;
  --maroon-dark: #4c1020;
  --maroon-soft: #f6ecee;
  --pine: #22443a;
  --pine-soft: #e8efea;
  --gold: #d9a43b;
  --gold-dark: #8f6510; /* 4.8:1 on cream — passes WCAG AA for small text */
  --cream: #faf6ef;
  --paper: #ffffff;
  --ink: #2b2226;
  --muted: #6d6266;
  --line: #e8ddd3;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(60, 20, 30, .06), 0 8px 24px rgba(60, 20, 30, .08);
  --shadow-lg: 0 18px 48px rgba(60, 20, 30, .16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.narrow { max-width: 920px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 48px 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 100; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #2b1a05; }
.btn-gold:hover { background: #e7b552; color: #2b1a05; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--maroon); background: var(--paper); }
.btn-outline:hover { border-color: var(--maroon); }
.btn-sm { padding: .45em 1em; font-size: .85rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(3px); }
.badge { display: inline-block; font: 700 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; background: var(--gold); color: #2b1a05; padding: .35em .6em; border-radius: 999px; vertical-align: middle; }

/* Top bar */
.topbar { background: var(--maroon-dark); color: #f3dfe3; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-contact, .topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar i { color: var(--gold); margin-right: 4px; }
.topbar-links i { margin: 0; color: inherit; }
/* Social media icons (header strip and footer); greyed out until an address is added in Settings */
.socials { display: flex; gap: 8px; align-items: center; }
.socials a, .socials span { display: grid; place-items: center; border-radius: 50%; text-decoration: none; transition: background .2s, color .2s; }
.socials .is-soon { opacity: .75; cursor: default; }
.socials-top a, .socials-top span { width: 26px; height: 26px; font-size: .8rem; background: rgba(255, 255, 255, .12); }
.socials-top a:hover { background: var(--gold); color: var(--maroon-dark); }
.socials-footer { margin-top: 18px; gap: 10px; }
.socials-footer a, .socials-footer span { width: 38px; height: 38px; font-size: 1rem; background: rgba(255, 255, 255, .1); color: #fff; }
.socials-footer a:hover { background: var(--gold); color: var(--maroon-dark); }
@media (max-width: 720px) {
  .topbar-contact span, .topbar-links > a:not(.lang-switch) { display: none; } /* top-strip links move into the menu */
}

/* Header */
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand img { width: 80px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font: 600 1.2rem/1.2 var(--serif); color: var(--maroon); }
.brand-text small { color: var(--muted); font-size: .82rem; }
.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; border-radius: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav { background: var(--maroon); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button {
  display: flex; align-items: center; gap: 6px; padding: 14px 16px; color: #fff; text-decoration: none;
  background: none; border: 0; font-weight: 600; font-size: .95rem;
}
.nav-list > li > button i { font-size: .65rem; opacity: .8; transition: transform .2s; }
.nav-list > li > a:hover, .nav-list > li > button:hover, .nav-list > li:focus-within > button { background: rgba(255, 255, 255, .1); }
.nav-list > li > a[aria-current], .nav-list > li.is-active > button { box-shadow: inset 0 -3px 0 var(--gold); }
.sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 250px;
  background: var(--paper); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
}
.sub a { display: block; padding: 9px 12px; color: var(--ink); text-decoration: none; border-radius: 6px; font-size: .93rem; }
.sub a:hover, .sub a[aria-current] { background: var(--maroon-soft); color: var(--maroon); }
@media (min-width: 1025px) {
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
  .nav-list > li:last-child .sub, .nav-list > li:nth-last-child(2) .sub { left: auto; right: 0; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; max-height: calc(100vh - 80px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; padding: 8px 0; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; background: rgba(0, 0, 0, .15); border-radius: 0; padding: 4px 0; }
  .has-sub.open > .sub { display: block; }
  .has-sub.open > button i { transform: rotate(180deg); }
  .sub a { color: #f6e6ea; padding: 10px 16px; }
  .sub a:hover, .sub a[aria-current] { background: rgba(255, 255, 255, .08); color: #fff; }
}
@media (max-width: 600px) {
  .header-cta { display: none; }
  .brand img { width: 64px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text small { font-size: .75rem; }
}

/* Ticker */
.ticker { background: var(--pine); color: #e6efe9; font-size: .9rem; }
.ticker-inner { display: flex; align-items: center; gap: 14px; padding-top: 9px; padding-bottom: 9px; }
.ticker-label { flex-shrink: 0; font-weight: 700; color: var(--gold); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }
.ticker p { margin: 0; font-style: italic; }
@media (max-width: 600px) { .ticker-label { display: none; } }

/* Flash messages */
.flash { padding: 14px 0; font-weight: 600; }
.flash-success { background: #e4f3e8; color: #1d5b33; }
.flash-error { background: #fbe8e8; color: #8a1f1f; }

/* Hero */
.hero { position: relative; height: min(78vh, 680px); min-height: 440px; overflow: hidden; background: var(--maroon-dark); }
.hero-slides, .hero-slide { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease; }
.hero-slide.is-active img { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: 96px;
  background: linear-gradient(90deg, rgba(40, 8, 18, .82) 0%, rgba(40, 8, 18, .5) 45%, rgba(40, 8, 18, .05) 80%), linear-gradient(0deg, rgba(30, 6, 14, .55), transparent 45%);
}
.hero-copy { max-width: 640px; color: #fff; }
.hero-copy h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; margin-bottom: .3em; }
.hero-tag { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #f4e3c3; font-family: var(--serif); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .6em; }
.hero .eyebrow { color: var(--gold); }
.hero-dots { position: absolute; bottom: 64px; right: 24px; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .5); padding: 0; transition: width .3s, background .3s; }
.hero-dots button[aria-selected="true"] { width: 28px; background: var(--gold); }
@media (max-width: 600px) {
  .hero { min-height: 520px; }
  .hero-overlay { padding-bottom: 72px; background: linear-gradient(0deg, rgba(40, 8, 18, .9) 0%, rgba(40, 8, 18, .55) 60%, rgba(40, 8, 18, .25)); }
  .hero-dots { bottom: 40px; left: 16px; right: auto; }
}

/* Quick links */
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -44px; position: relative; z-index: 5; }
.quick-card {
  display: flex; align-items: center; gap: 14px; background: var(--paper); padding: 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-bottom: 3px solid transparent; transition: transform .2s, border-color .2s;
}
.quick-card:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--ink); }
.quick-card i { font-size: 1.3rem; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--maroon-soft); color: var(--maroon); flex-shrink: 0; }
.quick-card span { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); line-height: 1.35; }
.quick-card strong { color: var(--ink); font-size: 1rem; }
@media (max-width: 900px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .quick-links { gap: 10px; } .quick-card { padding: 14px; flex-direction: column; align-items: flex-start; } }

/* Sections */
.section { padding: 72px 0; }
.section-tint { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-title.small { font-size: 1.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head.center { justify-content: center; text-align: center; }
.section-head .section-title { margin: 0; }
@media (max-width: 600px) { .section { padding: 52px 0; } }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.split-form { align-items: start; grid-template-columns: 1.4fr 1fr; }
@media (max-width: 900px) { .split, .split-form { grid-template-columns: 1fr; gap: 32px; } }
.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; position: relative; }
.media-frame::after { content: ""; position: absolute; inset: 0; border: 6px solid rgba(255, 255, 255, .5); border-radius: var(--radius); pointer-events: none; }
.media-frame video, .media-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* At a glance */
.glance { background: var(--maroon); color: #fff; padding: 36px 0; background-image: radial-gradient(circle at 15% 50%, rgba(217, 164, 59, .18), transparent 40%); }
.glance-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.glance-item { display: flex; flex-direction: column; gap: 2px; padding: 4px 16px; min-width: 0; overflow-wrap: break-word; border-left: 2px solid rgba(217, 164, 59, .6); }
.glance-item strong { font: 600 1.15rem/1.3 var(--serif); }
.glance-item span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #f0d5db; }
@media (max-width: 1000px) { .glance-grid { grid-template-columns: repeat(3, 1fr); row-gap: 24px; } }
@media (max-width: 520px) { .glance-grid { grid-template-columns: repeat(2, 1fr); } .glance-item strong { font-size: 1.1rem; } }

/* Notice board + principal */
.notice-principal { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: stretch; }
@media (max-width: 960px) { .notice-principal { grid-template-columns: 1fr; } }
.notice-board { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.notice-head { display: flex; justify-content: space-between; align-items: center; background: var(--pine); color: #fff; padding: 16px 20px; }
.notice-head h2 { color: #fff; font-size: 1.25rem; margin: 0; }
.notice-head h2 i { color: var(--gold); margin-right: 6px; font-size: 1rem; }
.notice-head a { color: #dfeee5; font-size: .88rem; font-weight: 700; }
.notice-list { list-style: none; margin: 0; padding: 4px 20px; max-height: 420px; overflow-y: auto; }
.notice-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list time { flex-shrink: 0; width: 52px; text-align: center; background: var(--maroon-soft); color: var(--maroon); border-radius: 10px; padding: 6px 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.notice-list time span { display: block; font: 700 1.3rem/1.1 var(--serif); }
.notice-list a { font-weight: 700; color: var(--ink); text-decoration: none; margin-right: 6px; }
.notice-list a:hover { color: var(--maroon); }
.notice-list p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.principal-card { display: grid; grid-template-columns: 220px 1fr; gap: 28px; background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); align-items: start; }
.principal-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.principal-card blockquote { margin: 0 0 16px; font: italic 400 1.1rem/1.6 var(--serif); color: #43363a; position: relative; padding-left: 20px; border-left: 3px solid var(--gold); }
.sign { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); }
.sign strong { color: var(--ink); font-size: 1rem; }
@media (max-width: 600px) { .principal-card { grid-template-columns: 1fr; padding: 20px; } .principal-card img { aspect-ratio: 16 / 11; } }

/* Facilities */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.facility { background: var(--cream); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.facility:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.facility img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.facility-body { padding: 20px 22px 24px; }
.facility h3 { font-size: 1.25rem; margin-bottom: .4em; }
.facility h3 a { color: inherit; text-decoration: none; }
.facility h3 a::after { content: " \2192"; color: var(--gold-dark); }
.facility p { margin: 0; color: var(--muted); font-size: .95rem; }
.facility-plain { border-top: 4px solid var(--gold); background: var(--paper); }
.facility-plain .facility-body { padding: 28px 24px; }
.facility-plain h3 { font-size: 1.35rem; }

/* Toppers */
.topper-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); justify-content: center; gap: 24px; }
.topper { background: var(--paper); border-radius: var(--radius); padding: 28px 20px 24px; text-align: center; box-shadow: var(--shadow); position: relative; }
.topper-photo { width: 132px; height: 132px; margin: 0 auto 14px; border-radius: 50%; padding: 4px; background: conic-gradient(var(--gold), var(--maroon), var(--gold)); }
.topper-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); }
.topper-score { position: absolute; top: 20px; right: 20px; background: var(--maroon); color: #fff; font-weight: 800; font-size: .9rem; padding: 4px 10px; border-radius: 999px; }
.topper h3 { font-size: 1.3rem; margin-bottom: .2em; }
.topper p { margin: 0; font-size: .92rem; }

/* Dignitaries */
.dignitary-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.dignitary { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 14px; background: var(--cream); border-radius: var(--radius); text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
a.dignitary:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--ink); }
.dignitary img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; margin-bottom: 10px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line); }
.dignitary strong { font-size: .98rem; }
.dignitary span { font-size: .84rem; color: var(--muted); line-height: 1.4; }
.dignitary em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--maroon); margin-top: 6px; }

/* Photo strip */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.photo-strip a { border-radius: var(--radius-sm); overflow: hidden; }
.photo-strip a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-strip a:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .photo-strip { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--pine) 0%, #193429 100%); color: #e8f0eb; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
.helplines h2 { color: #fff; font-size: 1.4rem; }
.helplines h2 i { color: var(--gold); }
.helplines ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.helplines a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255, 255, 255, .06); border-radius: var(--radius-sm); color: #e8f0eb; text-decoration: none; font-size: .9rem; }
.helplines a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.helplines a i { color: var(--gold); width: 18px; text-align: center; }
.helplines a span { flex: 1; }
.helplines a strong { color: #fff; }
@media (max-width: 480px) { .helplines ul { grid-template-columns: 1fr; } }
.cta-card { background: var(--maroon); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); color: #f7e7ea; }
.cta-card .eyebrow { color: var(--gold); }
.cta-card h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); }
@media (max-width: 480px) { .cta-card { padding: 24px; } }

/* Inner pages */
.page-hero {
  background: var(--maroon-dark) var(--hero-bg, url("../../imges/slider01.jpeg")) center 40% / cover; position: relative; color: #fff; padding: 56px 0 48px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(60, 12, 26, .94), rgba(60, 12, 26, .72)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0; }
.page-hero-lead { margin: 10px 0 0; color: #f0d5db; max-width: 640px; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; margin-bottom: 10px; color: #f0d5db; }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs > * + *::before { content: "/"; margin-right: 8px; opacity: .6; }

.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .with-sidebar { grid-template-columns: 1fr; } }
.content-card { background: var(--paper); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); min-width: 0; }
@media (max-width: 600px) { .content-card { padding: 22px 18px; } }
.content-cover { width: calc(100% + 72px); max-width: none; margin: -36px -36px 28px; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 30%; border-radius: var(--radius) var(--radius) 0 0; }
@media (max-width: 600px) { .content-cover { width: calc(100% + 36px); margin: -22px -18px 20px; } }
.updated { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

.prose { font-size: 1.03rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; color: var(--maroon); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.prose ul li, .prose ol li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.prose ol { counter-reset: n; }
.prose ol li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%; background: var(--maroon-soft); color: var(--maroon); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.prose blockquote { margin: 1em 0; padding: 14px 20px; border-left: 4px solid var(--gold); background: var(--cream); font: italic 1.08rem/1.6 var(--serif); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose img { border-radius: var(--radius-sm); height: auto; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose .lead, .lead { font-size: 1.15rem; color: #4a3d41; }
.prose .note { background: var(--pine-soft); border-radius: var(--radius-sm); padding: 16px 20px; color: var(--pine); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 1.2em 0; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.card-box { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 1em; }
.grid-2 .card-box { margin: 0; }
.card-box h3 { margin-top: 0 !important; }
.card-box.accent { background: var(--maroon-soft); border-color: #ecd3d9; }
.card-box > :last-child { margin-bottom: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 1.4em 0; }
.stat { background: var(--maroon); color: #f7e7ea; border-radius: var(--radius-sm); padding: 16px; text-align: center; font-size: .85rem; line-height: 1.35; }
.stat strong { display: block; font: 700 1.9rem/1.1 var(--serif); color: var(--gold); margin-bottom: 4px; }
.prose ul.timing-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; margin: 0; }
.prose ul.timing-list li::before { display: none; }
.prose ul.timing-list li:last-child { border-bottom: 0; }
.timing-list strong { color: var(--maroon); }
.timing-list small { color: var(--muted); }
.mini-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.mini-gallery a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; }
.mini-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s; }
.mini-gallery a:hover img { transform: scale(1.06); }

.message-head { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.message-head img { width: 132px; height: 132px; object-fit: cover; object-position: top; border-radius: 50%; box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold); flex-shrink: 0; }
.message-head strong { display: block; font: 600 1.5rem/1.2 var(--serif); color: var(--maroon); }
.message-head span { color: var(--muted); }
.message-body p:first-child::first-letter { font: 700 3.2rem/0.9 var(--serif); float: left; margin: 6px 10px 0 0; color: var(--maroon); }
@media (max-width: 480px) { .message-head { flex-direction: column; text-align: center; } }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 140px; }
@media (max-width: 960px) { .sidebar { position: static; } }
.side-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.side-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: var(--radius-sm); font-size: .95rem; }
.side-nav a i { font-size: .75rem; color: var(--muted); }
.side-nav a:hover { background: var(--cream); }
.side-nav a[aria-current] { background: var(--maroon); color: #fff; }
.side-nav a[aria-current] i { color: var(--gold); }
.side-enquiry { background: var(--maroon); color: #f7e7ea; }
.side-enquiry h2 { color: #fff; display: flex; justify-content: space-between; align-items: baseline; }
.side-enquiry h2 span { font: 700 .78rem var(--sans); color: var(--gold); }
.side-enquiry .field label { color: #f6dfe4; }
.side-enquiry input, .side-enquiry select { border-color: transparent; }
.side-enquiry .btn-primary { background: var(--gold); color: #2b1a05; }
.side-contact p { margin: 0 0 6px; font-size: .92rem; }
.side-contact i { color: var(--maroon); width: 20px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 14px; }
@media (max-width: 560px) { .field-row { flex-direction: column; } }
.field label { font-size: .86rem; font-weight: 700; color: #4a3d41; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(110, 26, 48, .15); }
.info-stack { display: flex; flex-direction: column; gap: 14px; }
.info-card { background: var(--paper); border-radius: var(--radius); padding: 20px 20px 18px 72px; position: relative; box-shadow: var(--shadow); }
.info-card i { position: absolute; left: 20px; top: 20px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--maroon-soft); color: var(--maroon); }
.info-card h2 { font: 700 1rem var(--sans); margin-bottom: 4px; }
.info-card p { margin: 0; color: var(--muted); font-size: .94rem; overflow-wrap: anywhere; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.map-frame { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 380px; border: 0; }

/* Staff */
.tabs-inline { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); margin-bottom: 28px; }
.tabs-inline a { padding: 8px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--muted); }
.tabs-inline a[aria-current] { background: var(--maroon); color: #fff; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .staff-grid { grid-template-columns: 1fr; } }
.staff-card { display: flex; gap: 18px; background: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); align-items: flex-start; }
.staff-card img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--cream); }
.staff-card h2 { font-size: 1.15rem; margin: 0; }
.staff-card h2 a { color: inherit; text-decoration: none; }
.staff-card h2 a:hover { color: var(--maroon); text-decoration: underline; }
.staff-card-lg { margin-bottom: 24px; }
.staff-card-lg img { width: 140px; height: 140px; }
.staff-role { color: var(--maroon); font-weight: 700; font-size: .88rem; margin: 2px 0 8px; }
.staff-card dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: .88rem; }
.staff-card dt { color: var(--muted); }
.staff-card dd { margin: 0; overflow-wrap: anywhere; }

/* Gallery */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-chips button, .filter-chips a { text-decoration: none; border: 1px solid var(--line); background: var(--paper); padding: 6px 16px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.filter-chips button.is-on, .filter-chips a.is-on { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.masonry { columns: 4 240px; column-gap: 14px; }
.masonry a { display: block; break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.masonry img { width: 100%; height: auto; transition: transform .5s; }
.masonry a:hover img { transform: scale(1.04); }
.masonry span { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; color: #fff; font-size: .88rem; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.masonry a[hidden] { display: none; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
@media (max-width: 400px) { .video-grid { grid-template-columns: 1fr; } }
.video-card { margin: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-card figcaption { padding: 14px 18px; font-weight: 700; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--maroon); color: #fff; display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 0 0 8px rgba(255, 255, 255, .25); transition: transform .2s; }
.yt:hover i { transform: translate(-50%, -50%) scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
@media (max-width: 400px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial { margin: 0; background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; position: relative; }
.testimonial::before { content: "\201C"; position: absolute; top: 4px; right: 20px; font: 700 5rem/1 var(--serif); color: var(--maroon-soft); }
.testimonial blockquote { margin: 0; font: italic 1.05rem/1.6 var(--serif); color: #43363a; position: relative; }
.testimonial figcaption { display: flex; gap: 12px; align-items: center; }
.testimonial img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption span { display: flex; flex-direction: column; font-size: .88rem; color: var(--muted); }
.testimonial figcaption strong { color: var(--ink); font-size: 1rem; }

/* Notices page */
.notice-feed { list-style: none; margin: 0; padding: 0; position: relative; }
.notice-feed::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.notice-feed li { position: relative; padding: 0 0 28px 40px; }
.notice-feed li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--maroon); }
.notice-feed li.is-highlight::before { border-color: var(--gold); background: var(--gold); }
.notice-feed time { font-size: .82rem; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .06em; }
.notice-feed h2 { font-size: 1.3rem; margin: 4px 0 8px; }
.notice-feed li > p { color: #4a3d41; }
.notice-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--paper); text-decoration: none; font-weight: 700; box-shadow: var(--shadow); }
.pager a[aria-current] { background: var(--maroon); color: #fff; }

/* Disclosure */
.disclosure { margin-bottom: 36px; }
.disclosure h2 { font-size: 1.25rem; padding-left: 14px; border-left: 4px solid var(--gold); }
.table-wrap { overflow-x: auto; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table-wrap th { background: var(--maroon); color: #fff; text-align: left; padding: 12px 16px; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap td:first-child { width: 48px; color: var(--muted); }
.table-wrap tr:nth-child(even) td { background: #fcfaf7; }
.doc-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.doc-link i { color: #c0392b; }
.disclosure table { table-layout: fixed; }
.disclosure td { vertical-align: middle; }
.disclosure th:first-child { width: 56px; }
.disclosure th:nth-child(2) { width: 50%; }
.disclosure .col-download { width: 120px; text-align: center; }
@media (max-width: 600px) {
  .disclosure th:first-child { width: 40px; }
  .disclosure th:nth-child(2) { width: auto; }
  .disclosure .col-download { width: 92px; padding-left: 6px; padding-right: 6px; }
  .disclosure th.col-download { letter-spacing: 0; font-size: .74rem; }
  .disclosure .no-details th:nth-child(3), .disclosure .no-details td:nth-child(3) { display: none; }
  .table-wrap th, .table-wrap td { padding: 10px; }
}
.doc-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; font-size: 1.35rem; color: #c0392b; background: #fbeceb; text-decoration: none; transition: transform .15s, background .15s; }
a.doc-icon:hover { background: #c0392b; color: #fff; transform: translateY(-1px); }
.doc-icon.is-missing { color: #b9aeb0; background: #f3f0ee; cursor: default; }

/* Footer */
.site-footer { background: #241418; color: #cdbfc3; font-size: .93rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 56px; border-radius: 8px; background: #fff; padding: 3px; }
.footer-brand strong { font: 600 1.1rem/1.3 var(--serif); color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.site-footer a { color: #e8dadd; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 10px; }
.footer-contact i { color: var(--gold); margin-top: 4px; width: 16px; }
.footer-contact a, .footer-contact span { overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-bottom .container { align-items: center; }
.footer-bottom .credit a { color: var(--gold); font-weight: 700; text-decoration: none; }
.footer-bottom .credit a:hover { color: #fff; text-decoration: underline; }
body:has(.chatbot:not([hidden])) .footer-bottom { padding-bottom: 84px; } /* keep the chat button off "Back to top" */

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20, 8, 12, .94); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #eee; margin-top: 12px; text-align: center; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 12px; right: 12px; font-size: 1.8rem !important; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .main-nav, .ticker, .sidebar, .site-footer, .hero-dots, .nav-toggle, .header-cta { display: none !important; }
  .site-header { position: static; box-shadow: none; }
  .content-card { box-shadow: none; padding: 0; }
  .page-hero { background: none; color: #000; padding: 16px 0; }
  .page-hero::before { display: none; }
  .page-hero h1 { color: #000; }
}

/* AI chat assistant */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chatbot { position: fixed; right: 20px; bottom: 20px; z-index: 90; font-family: var(--sans); }
.chat-fab { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 20px; background: var(--maroon); color: #fff; font: 700 .94rem var(--sans); cursor: pointer; box-shadow: 0 8px 24px rgba(60, 10, 25, .3); }
.chat-fab:hover { filter: brightness(1.12); }
.chat-fab i { font-size: 1.125rem; }
.chatbot.is-open .chat-fab { display: none; }
.chat-panel { width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 48px rgba(40, 10, 20, .28); border: 1px solid var(--line); }
.chat-panel[hidden] { display: none; }
.chat-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--maroon); color: #fff; }
.chat-panel header strong { display: block; font: 600 1.05rem var(--serif); color: #fff; }
.chat-panel header small { display: block; opacity: .85; font-size: .8rem; margin-top: 2px; }
.chat-close { border: 0; background: none; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.chat-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-assistant { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-user { align-self: flex-end; background: var(--maroon); color: #fff; border-bottom-right-radius: 4px; }
.chat-error { border-color: #e5b4b4; background: #fdf1f1; }
.chat-wait { color: var(--muted); letter-spacing: 2px; animation: chat-pulse 1s infinite alternate; }
@keyframes chat-pulse { from { opacity: .4; } to { opacity: 1; } }
.chat-msg a { color: var(--maroon); font-weight: 700; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; background: var(--cream); }
.chat-suggest[hidden] { display: none; }
.chat-suggest button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; font: 600 .82rem var(--sans); color: var(--maroon); cursor: pointer; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--paper); margin: 0; }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font: .94rem var(--sans); }
.chat-form input:focus { outline: 2px solid var(--gold); border-color: transparent; }
.chat-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--maroon); color: #fff; cursor: pointer; flex-shrink: 0; }
.chat-form.is-busy button { opacity: .5; cursor: wait; }
@media (max-width: 600px) {
  .chatbot { right: 12px; bottom: 12px; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 15px; }
  .chat-panel { height: calc(100vh - 24px); }
}
@media print { .chatbot { display: none; } }

/* CMS additions: news cards, academics list, slide captions, badges, marquee notices, important links */
.news-meta { color: var(--muted); font-size: .88rem; margin: 0 0 6px; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--maroon); }
.academic-list { display: grid; gap: 12px; margin-bottom: 28px; }
.academic-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.academic-item h3 { font-size: 1.05rem; margin: 0; }
.academic-item .prose { font-size: .94rem; margin-top: 4px; }
.academic-item .prose > :last-child { margin-bottom: 0; }
.hero-caption { position: absolute; right: 24px; bottom: 56px; z-index: 2; display: flex; align-items: center; gap: 12px; background: rgba(40, 8, 18, .72); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: .92rem; max-width: min(460px, calc(100% - 48px)); }
.badge-new { background: #1f7a45; color: #fff; }
.facility-icon { color: var(--gold-dark); margin-right: 4px; }
.ticker-notices a { color: inherit; text-decoration: none; }
.ticker-notices a:hover { text-decoration: underline; }
.ticker-sep { opacity: .6; margin: 0 6px; }
.section-tight { padding-bottom: 0; }
.admission-block { margin-bottom: 18px; }
.footer-important { border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 0; font-size: .88rem; }
.footer-important .container { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-important a { color: #f3dfe3; text-decoration: none; }
.footer-important a:hover { color: #fff; text-decoration: underline; }
.news-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* =====================================================================
   Phones and tablets. Everything below only applies under 1025px wide
   (or to content that can't fit), so the desktop design is unchanged.
   Breakpoints: 576 / 768 / 992 / 1024.
   ===================================================================== */

/* Media and rich text never wider than the screen */
video { height: auto; }
.prose iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; }
.prose table th, .prose table td { padding: 8px 12px; border: 1px solid var(--line); }
.prose pre { overflow-x: auto; }
.prose, .content-card, .staff-card, .news-card, .notice-feed li { overflow-wrap: anywhere; }

/* Scrolling notices / thought for the day: one line that scrolls on small screens */
.ticker-track { display: inline; }
@keyframes ticker-scroll { to { transform: translateX(-100%); } }

@media (max-width: 1024px) {
  .ticker-inner p { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
  .ticker.is-marquee .ticker-track { display: inline-block; padding-left: 100%; animation: ticker-scroll var(--ticker-dur, 20s) linear infinite; }
  .ticker.is-marquee:hover .ticker-track, .ticker.is-marquee:focus-within .ticker-track { animation-play-state: paused; }
  /* Menu panel: full-height, scrolls by itself while the page behind stays still */
  .main-nav.open { max-height: calc(100dvh - var(--header-h, 80px)); overscroll-behavior: contain; }
  body.nav-open { overflow: hidden; }
  body.nav-open .chatbot { display: none; }
}

@media (max-width: 991px) {
  /* Form fields: 16px text stops iPhones zooming in when a field is tapped */
  body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), body select, body textarea { font-size: max(16px, 1rem) !important; }

  /* Tap targets: at least 44 x 44 px */
  .footer-important a, .footer-bottom a, .to-top { display: inline-flex; align-items: center; min-height: 44px; }
  .news-card h3 a, .facility h3 a, .staff-card h2 a, .dignitary em { display: inline-block; padding: 12px 0; min-height: 44px; }
  .crumbs a, .footer-important a { min-width: 44px; }
  .notice-head a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .helplines a { min-height: 48px; }
  .glance-item span { font-size: .82rem; }
  .ticker-label { font-size: .82rem; }
  .doc-icon { flex-shrink: 0; }
  .notice-feed h2 a, .side-nav a { min-height: 44px; }
  .dignitary em { font-size: .85rem; }
  .side-enquiry h2 span { font-size: .85rem; }
  .disclosure th.col-download { font-size: .82rem; }
  .nav-toggle { flex-shrink: 0; }
  .topbar-inner { min-height: 44px; }
  .topbar-contact a, .topbar-links > a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .socials-top { gap: 0; }
  .socials-top a, .socials-top span { position: relative; width: 44px; height: 44px; background: none; }
  .socials-top a::before, .socials-top span::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: rgba(255, 255, 255, .12); transition: background .2s; }
  .socials-top a:hover { background: none; }
  .socials-top a:hover::before { background: var(--gold); }
  .socials-top i { position: relative; }
  .socials-footer a, .socials-footer span { width: 44px; height: 44px; }
  .crumbs a { display: inline-block; padding: 12px 0; min-width: 44px; }
  .link-arrow { display: inline-flex; align-items: center; min-height: 44px; }
  .btn-sm { min-height: 44px; display: inline-flex; align-items: center; }
  .btn, .chat-fab { min-height: 44px; } /* also at the smallest text size */
  .chat-fab { min-width: 44px; }
  .doc-icon { width: 44px; height: 44px; }
  .tabs-inline a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-links a, .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links li { margin: 0; }
  .filter-chips a, .filter-chips button { min-height: 44px; display: inline-flex; align-items: center; }
  .pager a { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
  .notice-list a { display: inline-block; padding: 9px 0; min-height: 44px; }
  .hero-dots { gap: 0; }
  .hero-dots button { position: relative; width: 44px; height: 44px; background: none; }
  .hero-dots button::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 999px; background: rgba(255, 255, 255, .55); transition: width .3s, margin .3s, background .3s; }
  .hero-dots button[aria-selected="true"] { width: 44px; background: none; }
  .hero-dots button[aria-selected="true"]::before { width: 28px; margin-left: -14px; background: var(--gold); }

  /* Small print readable on phones: nothing under 13px */
  .badge { font-size: .82rem; }
  .eyebrow { font-size: .82rem; }
  .notice-list time { font-size: .82rem; }
  small, .brand-text small { font-size: .82rem; }
  .disclosure th, .table-wrap th { font-size: .82rem; }
}

@media (max-width: 767px) {
  /* Floating chat button: keep the end of the page clear of it */
  .site-footer { padding-bottom: 8px; }
  .hero-caption { left: 16px; right: 16px; bottom: 96px; max-width: none; font-size: .88rem; }
}

@media (max-width: 600px) {
  .hero { height: min(72svh, 520px); min-height: 440px; }
}

/* Phones held sideways: the header must not take half the screen */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { position: static; }
  .hero { height: auto; min-height: 380px; }
  .hero-overlay { padding-bottom: 64px; }
}

/* Chat button hidden while typing in a form (it would cover the field) */
body.typing .chatbot:not(.is-open) { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ticker.is-marquee .ticker-track { animation: none; padding-left: 0; }
  .ticker-inner p { overflow-x: auto; }
}

/* Horizontal swipes on the slider and photo viewer belong to the page (not the browser's back gesture); vertical scroll and pinch-zoom still work */
.hero, .lightbox { touch-action: pan-y pinch-zoom; }

/* Smallest phones: the top strip keeps phone + social icons; the email is in the footer and on Contact */
@media (max-width: 380px) {
  .topbar-contact a[href^="mailto:"] { display: none; }
}

/* Phones get a smaller banner photo behind page titles */
@media (max-width: 767px) {
  .page-hero { background-image: var(--hero-bg-sm, var(--hero-bg, url("../../imges/slider01.jpeg"))); }
}

/* Phones: slides fade without the slow zoom (less work for the phone, and a new slide never counts as a bigger image) */
@media (max-width: 991px) {
  .hero-slide img, .hero-slide.is-active img { transform: none; transition: none; }
}

/* Tablets up to 1024px (e.g. iPad landscape): small labels stay readable */
@media (max-width: 1024px) {
  .ticker-label, .badge, .notice-list time { font-size: .82rem; }
}

/* Language switch (हिन्दी / English) in the top strip, and the Hindi version's fonts */
.topbar .lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; font-weight: 600; white-space: nowrap; }
.topbar .lang-switch i { color: var(--gold); margin: 0; }
.topbar .lang-switch:hover, .topbar .lang-switch:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--maroon-dark); }
.topbar .lang-switch:hover i, .topbar .lang-switch:focus-visible i { color: inherit; }
[lang="hi"] { --serif: "Fraunces", "Noto Sans Devanagari", "Nirmala UI", Georgia, serif;
  --sans: "Nunito Sans", "Noto Sans Devanagari", "Nirmala UI", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html[lang="hi"] body { line-height: 1.75; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="hi"] h4 { letter-spacing: 0; line-height: 1.35; }
html[lang="hi"] .hero-tag { font-style: normal; }
.lang-switch-m { display: none; }
@media (max-width: 720px) {
  .topbar .lang-switch { display: none; }
  .lang-switch-m { display: grid; place-items: center; flex-shrink: 0; min-width: 44px; height: 44px; padding: 0 8px; border: 1px solid var(--line);
    border-radius: 8px; color: var(--maroon); font-weight: 700; text-decoration: none; font-family: var(--sans); }
  .lang-switch-m:hover, .lang-switch-m:focus-visible { background: var(--maroon); border-color: var(--maroon); color: #fff; }
}
@media print { .lang-switch, .lang-switch-m { display: none !important; } }
/* Devanagari letters join up, so letter-spacing (used on small headings and labels) breaks the words */
html[lang="hi"] body * { letter-spacing: normal !important; }
@media (max-width: 600px) {
  .header-inner { gap: 8px; }
  .brand { gap: 10px; }
  .lang-switch-m { min-width: 44px; padding: 0 4px; }
}

/* Text size (A- A A+; html[data-text-size], set by a11y-init.js) — every size in this file is in rem/em, so all text follows */
html[data-text-size="0"] { font-size: 87.5%; }
html[data-text-size="2"] { font-size: 112.5%; }
html[data-text-size="3"] { font-size: 125%; }
html[data-text-size="4"] { font-size: 137.5%; }
.a11y-tools { display: flex; align-items: center; gap: 4px; }
.a11y-label { font-size: .8rem; opacity: .9; margin-right: 4px; white-space: nowrap; }
.a11y-btn { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 6px; background: transparent; color: #fff; font: 700 .85rem/1 var(--sans); cursor: pointer; }
.a11y-btn[data-a11y="smaller"] { font-size: .75rem; }
.a11y-btn[data-a11y="larger"] { font-size: .95rem; }
.a11y-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--maroon-dark); }
.a11y-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.a11y-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.a11y-btn[aria-pressed="true"] { background: #fff; color: #000; }
.hc-icon { width: 1em; height: 1em; border: 2px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.nav-a11y { display: none; }
@media (max-width: 1200px) and (min-width: 1025px) {
  .topbar .a11y-label { display: none; } /* the buttons keep their spoken labels */
}
/* Large text sizes: the top strip wraps onto a second line instead of running off the screen */
.topbar-inner, .topbar-contact, .topbar-links { flex-wrap: wrap; }
.topbar-links { justify-content: flex-end; row-gap: 4px; }
@media (max-width: 991px) {
  .a11y-btn { min-width: 44px; height: 44px; }
}
@media (max-width: 1024px) {
  /* Tablets and phones (menu button): text size and top-strip links are in the menu, under "Accessibility" */
  .topbar .a11y-tools, .topbar-links > a:not(.lang-switch) { display: none; }
  .nav-a11y { display: block; padding: 14px 4px 18px; color: #fff; }
  .nav-a11y-title { margin: 0 0 8px; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: #f4e3c3; }
  .nav-a11y .a11y-tools { flex-wrap: wrap; gap: 8px; }
  .nav-a11y .a11y-label { font-size: .9rem; }
  .nav-a11y > a { display: flex; align-items: center; min-height: 44px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); }
}
@media print { .a11y-tools, .nav-a11y { display: none !important; } }

/* High contrast: black background, white text, yellow links (html.hc, the ◐ button) */
html.hc body, html.hc body *:not(img):not(video):not(iframe):not(.hc-icon) {
  background-color: #000 !important; background-image: none !important; color: #fff !important;
  border-color: #fff !important; box-shadow: none !important; text-shadow: none !important;
}
html.hc body *::before, html.hc body *::after { background-image: none !important; box-shadow: none !important; }
html.hc a, html.hc a *, html.hc .has-sub > button { color: #ff0 !important; }
html.hc a { text-decoration: underline !important; }
html.hc .btn, html.hc button, html.hc input, html.hc select, html.hc textarea { border: 1px solid #fff !important; }
html.hc ::placeholder { color: #ccc !important; }
html.hc :focus-visible { outline: 3px solid #ff0 !important; outline-offset: 2px; }
html.hc .a11y-btn[aria-pressed="true"], html.hc .a11y-btn[aria-pressed="true"] * { background-color: #ff0 !important; color: #000 !important; }
html.hc .hero-slide img, html.hc .hero img { opacity: .35; }
html.hc .hc-icon { border-color: currentColor !important; }
/* Larger text sizes: the slider grows with its text instead of cutting it off at the top */
html[data-text-size="2"] .hero, html[data-text-size="3"] .hero, html[data-text-size="4"] .hero { height: auto; min-height: max(440px, min(78vh, 680px)); }
html[data-text-size="2"] .hero-overlay, html[data-text-size="3"] .hero-overlay, html[data-text-size="4"] .hero-overlay { position: relative; inset: auto; min-height: inherit; padding-top: 3rem; }
@media (max-width: 600px) {
  html[data-text-size="2"] .hero, html[data-text-size="3"] .hero, html[data-text-size="4"] .hero { min-height: max(440px, min(72svh, 520px)); }
}
.brand img { max-width: none; } /* the logo keeps its size when long names or large text squeeze the header */
html.hc .nav-list button, html.hc .nav-toggle, html.hc .chat-close { border: 0 !important; }
html.hc .nav-toggle span { background-color: #fff !important; }
