/* Utility bar */
.utility-bar {
  min-height: 46px;
  color: var(--color-white);
  background: #08274B;
  font-size: 0.79rem;
  font-weight: 600;
}
.utility-bar__inner,
.utility-bar__contact,
.utility-bar__portals {
  display: flex;
  align-items: center;
}
.utility-bar__inner {
  min-height: 46px;
  justify-content: space-between;
  gap: 20px;
}
.utility-bar__contact { gap: clamp(18px, 3vw, 38px); }
.utility-bar__contact a,
.utility-bar__portals button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #F8FAFC;
  white-space: nowrap;
}
.utility-bar__contact a:hover,
.utility-bar__portals button:hover { color: var(--color-gold-light); }
.utility-bar svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.utility-bar__portals { gap: 12px; }
.utility-bar__portals button {
  padding: 3px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.utility-bar__portals i {
  width: 1px;
  height: 15px;
  background: rgb(255 255 255 / 42%);
}

/* Main website header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgb(255 255 255 / 97%);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 18px rgb(8 39 75 / 5%);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  min-width: 260px;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand__logo {
  display: block;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--color-white);
}
.brand__text { display: grid; gap: 2px; }
.brand__name {
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  white-space: nowrap;
}
.brand__tagline {
  color: var(--color-navy-secondary);
  font-family: var(--font-subheading);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  white-space: nowrap;
}
.brand__tagline b { padding-inline: 3px; color: var(--color-gold); }
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(9px, 1.25vw, 19px);
}
.primary-nav__link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 5px;
  padding: 7px 0;
  color: var(--color-navy-deep);
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}
.primary-nav__link:hover { color: #9A6B12; }
.primary-nav__link.is-active {
  padding-inline: 14px;
  color: var(--color-navy-deep);
  background: linear-gradient(135deg, #F8C848, #FFDB72);
}
.chevron { font-size: 1rem; line-height: 1; transition: transform 160ms ease; }
.nav-dropdown { position: relative; }
.nav-dropdown.is-open .chevron { transform: rotate(180deg); }
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  display: none;
  min-width: 225px;
  padding: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgb(8 39 75 / 15%);
}
.nav-dropdown.is-open .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu { display: grid; }
.nav-dropdown__menu a {
  padding: 10px 12px;
  color: var(--color-navy);
  border-radius: 7px;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
}
.nav-dropdown__menu a:hover { background: var(--color-surface); }
.nav-actions,
.language-switch { display: flex; align-items: center; }
.nav-actions { gap: 17px; margin-left: 3px; }
.language-switch { gap: 7px; color: var(--color-muted); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.language-switch__button {
  padding: 4px 1px;
  color: var(--color-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.language-switch__button.is-selected { color: var(--color-navy); }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button--gold { color: var(--color-navy-deep); background: linear-gradient(135deg, #F8C848, #FFDB72); }
.button--apply { min-height: 44px; padding-inline: 19px; border-radius: 14px; white-space: nowrap; }
.button--outline-light { color: var(--color-white); background: transparent; border-color: rgb(255 255 255 / 90%); }
.button--outline-light:hover { color: var(--color-navy); background: var(--color-white); }
.button--outline-navy { color: var(--color-navy); background: transparent; border-color: var(--color-navy); }
.button--outline-navy:hover { color: var(--color-white); background: var(--color-navy); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 9px;
  cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--color-navy); }

/* Shared footer */
.site-footer {
  padding: 54px 0 18px;
  color: var(--color-white);
  background: linear-gradient(135deg, #071E3A, #102F56);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.55fr 0.8fr 0.95fr 1.15fr;
  gap: 40px;
  padding-bottom: 38px;
}
.brand--footer { min-width: 0; }
.brand--footer .brand__name { color: #FFFFFF; }
.brand--footer .brand__tagline { color: #D7DFEC; }
.site-footer__identity p {
  max-width: 360px;
  margin: 18px 0 0;
  color: #C7D2E2;
  font-size: 0.9rem;
}
.site-footer__grid h2 {
  margin: 4px 0 16px;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1rem;
}
.site-footer__grid > div:not(:first-child) a {
  display: block;
  margin: 10px 0;
  color: #D7DFEC;
  font-size: 0.87rem;
}
.site-footer__grid a:hover { color: var(--color-gold-light); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 17px;
  border-top: 1px solid rgb(255 255 255 / 17%);
}
.site-footer__bottom p { margin: 0; color: #C7D2E2; font-size: 0.76rem; }
.site-toast {
  position: fixed;
  z-index: 300;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100vw - 44px));
  padding: 13px 17px;
  color: #FFFFFF;
  background: #08274B;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 10px;
  box-shadow: 0 14px 38px rgb(0 0 0 / 22%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.site-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1240px) {
  .brand { min-width: 230px; }
  .brand__name { font-size: 0.93rem; }
  .primary-nav { gap: 10px; }
  .primary-nav__link { font-size: 0.76rem; }
  .nav-actions { gap: 10px; }
  .button--apply { padding-inline: 13px; font-size: 0.78rem; }
}
@media (max-width: 1080px) {
  .menu-toggle { display: block; flex: 0 0 auto; }
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    align-items: stretch;
    padding: 17px var(--page-gutter) 24px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 16px 24px rgb(8 39 75 / 11%);
  }
  .primary-nav.is-open { display: flex; flex-direction: column; gap: 5px; }
  .primary-nav__link { width: 100%; justify-content: space-between; padding: 11px 5px; font-size: 0.94rem; }
  .primary-nav__link.is-active { padding-inline: 12px; }
  .nav-dropdown__menu { position: static; display: none; margin: 0 0 7px 12px; border: 0; box-shadow: none; }
  .nav-dropdown.is-open .nav-dropdown__menu { display: grid; }
  .nav-actions { justify-content: space-between; margin: 9px 0 0; padding-top: 15px; border-top: 1px solid var(--color-border); }
  .button--apply { font-size: 0.9rem; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .utility-bar__inner { min-height: 36px; justify-content: center; }
  .utility-bar__contact { justify-content: center; gap: 16px; }
  .utility-bar__contact a { font-size: 0.7rem; }
  .utility-bar__contact a:first-child,
  .utility-bar__portals { display: none; }
  .site-header__inner { min-height: 70px; }
  .brand { min-width: 0; gap: 9px; }
  .brand__logo { width: 49px; height: 49px; flex-basis: 49px; }
  .brand__name { font-size: 0.84rem; }
  .brand__tagline { font-size: 0.54rem; }
  .primary-nav { max-height: calc(100vh - 106px); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .site-footer__identity { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; }
}
@media (max-width: 420px) {
  .utility-bar__contact { gap: 0; }
  .utility-bar__contact a:first-child { display: none; }
  .utility-bar__contact a:nth-child(3) { display: none; }
  .brand__name { font-size: 0.75rem; }
  .brand__tagline { font-size: 0.49rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__identity { grid-column: auto; }
}


/* =========================================================
   V3 RESPONSIVE WIDTH + HEADER REFINEMENTS
   Aligns the school identity and page content with the viewport.
   ========================================================= */
.site-header__inner {
  gap: clamp(12px, 1.5vw, 24px);
}
.brand {
  min-width: 0;
  gap: 12px;
}
.brand__logo {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
}
.brand__name { font-size: clamp(0.95rem, 1.18vw, 1.2rem); }
.primary-nav { gap: clamp(8px, 1vw, 17px); }
.primary-nav__link { font-size: clamp(0.76rem, 0.86vw, 0.91rem); }
.nav-actions { gap: clamp(9px, 1.1vw, 17px); }
.button--apply { padding-inline: clamp(12px, 1.25vw, 20px); }

@media (max-width: 1240px) {
  .brand { min-width: 0; }
  .brand__name { font-size: 0.92rem; }
  .primary-nav { gap: 8px; }
  .primary-nav__link { font-size: 0.75rem; }
  .nav-actions { gap: 9px; }
}

@media (max-width: 1080px) {
  .site-header { position: sticky; }
  .site-header__inner { min-height: 76px; }
  .menu-toggle { display: block; flex: 0 0 44px; }
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 110;
    display: none;
    width: 100%;
    max-height: calc(100dvh - 120px);
    overflow: auto;
    align-items: stretch;
    padding: 16px var(--page-gutter) 22px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 16px 28px rgb(8 39 75 / 13%);
  }
  .primary-nav.is-open { display: flex; flex-direction: column; gap: 4px; }
  .primary-nav__link { width: 100%; min-height: 44px; justify-content: space-between; padding: 10px 8px; font-size: 0.96rem; }
  .primary-nav__link.is-active { padding-inline: 12px; }
  .nav-dropdown__menu { position: static; display: none; min-width: 0; margin: 0 0 8px 12px; border: 0; box-shadow: none; }
  .nav-dropdown.is-open .nav-dropdown__menu { display: grid; }
  .nav-actions { justify-content: space-between; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--color-border); }
  .button--apply { font-size: 0.9rem; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --page-gutter: 18px; }
  .utility-bar { font-size: 0.72rem; }
  .utility-bar__inner { min-height: 38px; justify-content: center; padding-inline: 12px; }
  .utility-bar__contact { justify-content: center; gap: 14px; }
  .utility-bar__contact a { font-size: 0.7rem; }
  .utility-bar__contact a:first-child, .utility-bar__portals { display: none; }
  .site-header__inner { min-height: 68px; gap: 10px; }
  .brand { gap: 8px; }
  .brand__logo { width: 48px; height: 48px; flex-basis: 48px; }
  .brand__name { font-size: clamp(0.75rem, 3.1vw, 0.91rem); letter-spacing: -0.04em; }
  .brand__tagline { font-size: clamp(0.47rem, 1.9vw, 0.58rem); letter-spacing: 0.06em; }
  .primary-nav { max-height: calc(100dvh - 106px); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .site-footer__identity { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .utility-bar__contact { gap: 0; }
  .utility-bar__contact a:first-child, .utility-bar__contact a:nth-child(3) { display: none; }
  .brand__name { font-size: 0.77rem; }
  .brand__tagline { font-size: 0.48rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__identity { grid-column: auto; }
}


/* Managing society identity — displayed separately from the school's own emblem. */
.society-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 390px;
  margin-top: 24px;
  padding: 13px 15px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 14px;
  background: rgb(255 255 255 / 5%);
}
.society-identity img {
  display: block;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  object-fit: contain;
  border-radius: 50%;
  background: #FFFFFF;
}
.society-identity__copy { display: grid; gap: 4px; }
.society-identity__eyebrow {
  color: var(--color-gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.society-identity__copy strong {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.91rem;
  line-height: 1.35;
}
.society-identity__location { color: #C7D2E2; font-size: 0.78rem; }
@media (max-width: 720px) {
  .society-identity { max-width: 100%; gap: 12px; padding: 11px; }
  .society-identity img { width: 66px; height: 66px; flex-basis: 66px; }
  .society-identity__copy strong { font-size: 0.84rem; }
}

/* The separate Leadership & Guidance link makes the full desktop menu wider.
   Switch to the accessible mobile menu a little earlier to prevent crowding. */
@media (max-width: 1180px) {
  .site-header__inner { position: relative; }
  .menu-toggle { display: block; flex: 0 0 44px; }
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 110;
    display: none;
    width: 100%;
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    align-items: stretch;
    padding: 16px var(--page-gutter) 22px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 16px 28px rgb(8 39 75 / 13%);
  }
  .primary-nav.is-open { display: flex; flex-direction: column; gap: 4px; }
  .primary-nav__link { width: 100%; min-height: 44px; justify-content: space-between; padding: 10px 8px; font-size: .96rem; }
  .primary-nav__link.is-active { padding-inline: 12px; }
  .nav-dropdown__menu { position: static; display: none; min-width: 0; margin: 0 0 8px 12px; border: 0; box-shadow: none; }
  .nav-dropdown.is-open .nav-dropdown__menu { display: grid; }
  .nav-actions { justify-content: space-between; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--color-border); }
  .button--apply { font-size: .9rem; }
}


/* Robust Data Developers — website credit card */
.site-footer__grid { position: relative; }
.developer-identity {
  position: absolute;
  right: 0;
  bottom: 38px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 360px;
  max-width: 34%;
  min-height: 102px;
  padding: 10px 12px;
  color: #FFFFFF;
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 10%);
}
.developer-identity > img {
  display: block;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  object-fit: cover;
  border-radius: 50%;
  background: #FFFFFF;
}
.developer-identity__copy { display: grid; gap: 4px; min-width: 0; }
.developer-identity__eyebrow {
  color: var(--color-gold-light);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}
.developer-identity__copy strong {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  line-height: 1.25;
}
.developer-identity__services {
  color: #D7DFEC;
  font-size: 0.65rem;
  line-height: 1.35;
}
@media (max-width: 720px) {
  .developer-identity {
    position: static;
    width: min(100%, 390px);
    max-width: 100%;
    min-height: 98px;
    margin: 24px 0 0;
  }
  .developer-identity > img {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }
  .developer-identity__copy strong { font-size: 0.86rem; }
  .developer-identity__services { font-size: 0.62rem; }
}

/* SWS FIX: Robust Data Developers footer card */
.site-footer__grid .developer-identity {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: auto;
  grid-column: 1 / -1;
  justify-self: end;
  width: min(100%, 420px);
  max-width: 100%;
  margin-top: 6px;
  box-sizing: border-box;
}

.site-footer__grid .developer-identity > img {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.site-footer__grid .developer-identity__copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .site-footer__grid .developer-identity {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }
}
