/* Page-specific layouts and final visual overrides; loaded after styles.css.
 * Keep rule order intact: later rules intentionally override earlier styles.
 */
/* Shared public-page and administration layouts. Upright typography throughout. */
body {
  font-style: normal;
}
.nav-wrap {
  max-width: 1320px;
}
.main-nav {
  gap: 16px;
}
.nav-link {
  font-size: 10px;
}
.section-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
} /* Interior page banners and introductions. */
.page-hero {
  background: var(--cream);
  padding: 35px 0 55px;
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 30px;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.page-hero h1 {
  font-size: clamp(35px, 4.3vw, 59px);
  letter-spacing: -1.8px;
  max-width: 1000px;
  line-height: 1.12;
}
.page-intro {
  font-size: 16px;
  max-width: 760px;
  margin-top: 23px;
}
.page-hero .eyebrow {
  margin-bottom: 18px;
}
.prose p {
  font-size: 15px;
  margin-bottom: 21px;
  line-height: 1.9;
}
.prose h2 {
  margin: 0 0 23px;
  font-size: 34px;
  letter-spacing: -1px;
}
.prose h2:not(:first-child) {
  margin-top: 35px;
}
.prose h3 {
  font-size: 23px;
  margin: 30px 0 18px;
}
.prose .lead {
  color: var(--ink);
  font-size: 18px;
}
.prose a:not(.button) {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prose .button {
  margin-top: 15px;
}
.narrow {
  max-width: 790px;
  margin-bottom: 36px;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.feature-row > div > h2 {
  margin-bottom: 24px;
}
.feature-row > div > p {
  font-size: 14px;
  margin-bottom: 23px;
}
.feature-photo {
  display: block;
  position: relative;
}
.feature-photo img {
  width: 100%;
  height: 345px;
  object-fit: cover;
}
.feature-photo > span {
  display: block;
  font-weight: 700;
  font-size: 13px;
  padding: 14px 18px;
  background: var(--navy);
  color: white;
}
.rounded-photo {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 3px;
}
.page-cta {
  padding: 60px 0;
  background: var(--navy);
  color: #fff;
}
.page-cta > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.page-cta h2 {
  font-size: 34px;
  letter-spacing: -0.8px;
  line-height: 1.2;
}
.page-cta p {
  color: #dae4ea;
  margin-top: 18px;
  font-size: 13px;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.page-cta .cta-buttons {
  flex-direction: column;
  align-items: stretch;
  min-width: 205px;
}
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.reason-card {
  padding: 25px 20px;
  background: var(--white);
  border-top: 3px solid var(--gold);
  min-height: 160px;
}
.reason-card:nth-child(even) {
  background: #edf1f3;
  border-color: var(--navy);
}
.reason-card h3 {
  font-size: 16px;
  line-height: 1.4;
  margin-top: 23px;
  letter-spacing: -0.2px;
}
.identity-panel,
.subject-panel {
  background: var(--tint);
  border-top: 3px solid var(--gold);
  padding: 32px;
}
.identity-panel h2 {
  font-size: 28px;
  margin-bottom: 22px;
}
.identity-panel p {
  font-size: 14px;
  margin-bottom: 22px;
}
.identity-panel dl {
  margin: 0;
}
.identity-panel dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 20px;
}
.identity-panel dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 700;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 70px;
  align-items: start;
  margin-bottom: 45px;
}
.subject-panel h2 {
  font-size: 27px;
  margin-bottom: 23px;
}
.subject-panel ul {
  display: grid;
  gap: 10px;
  list-style: disc;
  padding-left: 20px;
  font-size: 14px;
}
.subject-panel > p {
  font-size: 12px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.academic-card > .text-link {
  margin-top: 23px;
}
.school-life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 55px;
}
.school-life-grid article {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.school-life-grid h2 {
  font-size: 22px;
  letter-spacing: -0.4px;
  line-height: 1.3;
  margin: 22px 0 15px;
}
.school-life-grid p {
  font-size: 14px;
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  margin-top: 35px;
}
.team-profiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 55px;
}
.team-profiles img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}
.team-profiles h2 {
  font-size: 23px;
  margin: 20px 0 12px;
  letter-spacing: -0.5px;
}
.team-profiles p {
  font-size: 13px;
  margin: 12px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.services-grid article {
  border: 1px solid var(--line);
  padding: 30px;
}
.services-grid h2 {
  font-size: 25px;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.services-grid p {
  font-size: 14px;
  margin-bottom: 20px;
}
.service-status {
  font-size: 11px !important;
  color: #846020;
  font-weight: 700;
}
.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 20px 0 35px;
}
.filter-form label {
  width: 100%;
  font-size: 12px;
  font-weight: 700;
}
.filter-form select {
  width: auto;
  min-width: 180px;
  margin: 0;
  height: 47px;
}
.filter-form .button {
  padding: 14px 18px;
  height: 47px;
}
.gallery-heading .filter-form {
  min-width: 310px;
  margin-bottom: 0;
}
.empty-content {
  border: 1px solid var(--line);
  padding: 45px;
  max-width: 820px;
  margin: 25px 0;
}
.empty-content .section-icon {
  margin-bottom: 20px;
}
.empty-content h2 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin-bottom: 20px;
}
.empty-content p {
  font-size: 14px;
  margin-bottom: 23px;
}
.news-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.news-cards img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.news-cards .stage {
  margin: 18px 0 12px;
}
.news-cards h2 {
  font-size: 25px;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
}
.news-cards p {
  font-size: 14px;
  margin-bottom: 18px;
}
.article-content {
  max-width: 850px;
}
.article-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  margin-bottom: 35px;
}
.media-card {
  margin: 0;
  background: var(--tint);
}
.media-card img,
.media-card video {
  width: 100%;
  height: 330px;
  object-fit: cover;
}
.media-card figcaption {
  padding: 22px 25px;
}
.media-card h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 11px 0;
}
.media-card p {
  font-size: 12px;
}
.map-panel {
  height: 430px;
  margin-top: 55px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
}
.map-panel h2 {
  font-size: 32px;
  margin-bottom: 19px;
}
.map-panel p {
  font-size: 14px;
  margin-bottom: 24px;
}
.map-panel small {
  display: block;
  font-size: 11px;
  margin-top: 16px;
  color: var(--muted);
}
.map-panel:has(iframe) {
  padding: 0;
}
.map-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.social-links a {
  font-size: 10px !important;
}
.form-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.form-context h2 {
  font-size: 38px;
  margin-bottom: 25px;
}
.form-context p:not(.eyebrow) {
  font-size: 14px;
  margin-bottom: 22px;
}
.application-form {
  position: relative;
  background: var(--white);
  padding: 35px;
  border: 1px solid var(--line);
}
.application-form .form-grid {
  gap: 19px 17px;
}
.application-form label {
  font-size: 12px;
  margin-bottom: 0;
}
.application-form input,
.application-form select {
  font-size: 14px;
  min-height: 45px;
  margin-bottom: 0;
}
.application-form textarea {
  font-size: 14px;
  margin-top: 8px;
}
.application-form > .form-grid {
  margin-bottom: 20px;
}
.required-mark {
  color: #a45122;
}
.form-privacy {
  font-size: 11px;
  margin: 20px 0;
}
.form-privacy a {
  text-decoration: underline;
}
.field-error {
  font-size: 11px;
  color: #a32c1d;
  margin-top: 6px;
}
.form-errors {
  background: #fff1ed;
  border: 1px solid #c35840;
  color: #7c2718;
  padding: 20px;
  margin: 0 0 23px;
  font-size: 13px;
}
.form-errors h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.form-errors ul {
  padding-left: 20px;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.receipt {
  max-width: 760px;
  text-align: center;
}
.receipt-check {
  display: block;
  color: #577451;
  font-size: 50px;
  margin-bottom: 23px;
}
.receipt h2 {
  margin-bottom: 25px;
}
.receipt p {
  font-size: 15px;
  margin-bottom: 22px;
}
.receipt strong {
  color: var(--ink);
}
.receipt .cta-buttons {
  justify-content: center;
  margin-top: 30px;
}
.mobile-contact a:last-child {
  background: var(--navy);
  color: white;
  border-radius: 3px;
}
.no-js .slide-arrow,
.no-js .slide-controls {
  display: none;
}
.form-errors:focus {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
input[aria-invalid='true'],
select[aria-invalid='true'] {
  border-color: #a32c1d;
}
/* A separate, calm content-management surface. */
.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 55px;
  padding-block: 55px;
}
.admin-sidebar h1 {
  font-size: 23px;
  line-height: 1.3;
  margin-bottom: 25px;
}
.admin-sidebar nav {
  display: grid;
  gap: 5px;
}
.admin-sidebar nav a {
  font-size: 13px;
  padding: 10px 13px;
}
.admin-sidebar nav a.selected {
  background: var(--navy);
  color: white;
  border-radius: 3px;
}
.admin-sidebar > form {
  margin-top: 25px;
}
.admin-main h2 {
  font-size: 32px;
  letter-spacing: -0.8px;
  margin-bottom: 22px;
}
.admin-main h3 {
  font-size: 21px;
  margin: 30px 0 17px;
}
.admin-main > p {
  font-size: 14px;
  margin-bottom: 25px;
}
.admin-main form label {
  font-size: 12px;
  margin: 0;
}
.admin-main input,
.admin-main textarea,
.admin-main select {
  font-size: 14px;
}
.admin-main form > .button {
  margin-top: 22px;
}
.admin-main .form-grid {
  margin-bottom: 20px;
}
.admin-field {
  margin-bottom: 20px;
}
.admin-login {
  width: min(440px, calc(100% - 40px));
  margin: auto;
}
.admin-login h1 {
  font-size: 36px;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.admin-login > p:not(.eyebrow) {
  font-size: 14px;
  margin-bottom: 28px;
}
.admin-login input {
  margin-bottom: 22px;
  min-height: 46px;
}
.admin-login label {
  font-size: 12px;
  margin: 0;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin: 30px 0 40px;
}
.admin-stats article {
  padding: 22px 18px;
  border: 1px solid var(--line);
}
.admin-stats strong {
  display: block;
  font-size: 35px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}
.admin-stats span {
  font-size: 11px;
  color: var(--muted);
}
.table-scroll {
  overflow: auto;
}
.table-scroll table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
.table-scroll th {
  background: var(--tint);
  padding: 13px 15px;
  font-weight: 700;
  white-space: nowrap;
}
.table-scroll td {
  border-bottom: 1px solid var(--line);
  padding: 14px 15px;
  vertical-align: top;
}
.table-scroll td a {
  font-weight: 700;
  text-decoration: underline;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 30px;
}
.admin-tabs a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-size: 11px;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.admin-heading h2 {
  margin: 0;
}
.admin-entry-list {
  margin: 20px 0 35px;
  display: grid;
  gap: 8px;
}
.admin-entry-list > a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 15px;
  background: var(--tint);
  font-size: 13px;
}
.admin-entry-list > a span {
  font-size: 11px;
}
.success-message {
  background: #edf7e9;
  border: 1px solid #7fa176;
  color: #31512a;
  padding: 17px 20px;
  font-size: 13px;
  margin-bottom: 25px;
}
.request-details {
  padding: 25px;
  border: 1px solid var(--line);
  margin-bottom: 30px;
}
.request-details h3 {
  margin-top: 0;
}
.request-details > p {
  font-size: 12px;
}
.request-details dl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px 20px;
  font-size: 13px;
  margin: 25px 0;
}
.request-details dt {
  font-weight: 700;
}
.request-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: center;
}
.checkbox-label input {
  width: 18px;
  height: 18px;
  margin: 0;
}
body[data-page^='admin'] .mobile-contact {
  display: none;
}
body[data-page^='admin'] {
  padding-bottom: 0;
}
/* Responsive or accessibility adjustment: (max-width:1180px). */
@media (max-width: 1180px) {
  .main-nav {
    gap: 11px;
  }
  .nav-link {
    font-size: 10px;
  }
  .reasons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail-grid,
  .feature-row {
    gap: 40px;
  }
  .admin-layout {
    gap: 30px;
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  .form-layout {
    gap: 35px;
  }
  .application-form {
    padding: 25px;
  }
}
/* Responsive or accessibility adjustment: (max-width:1100px). */
@media (max-width: 1100px) {
  .main-nav {
    gap: 7px;
  }
  .nav-link {
    font-size: 13px;
  }
  .no-js .main-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    overflow: visible;
    max-height: none;
    padding: 10px 0;
  }
  .no-js .site-header {
    position: static;
    height: auto;
  }
  .no-js .nav-wrap {
    display: block !important;
  }
  .no-js .menu-toggle {
    display: none;
  }
  .no-js .nav-apply {
    margin: 0;
  }
}
/* Responsive or accessibility adjustment: (max-width:900px). */
@media (max-width: 900px) {
  .page-cta > .container {
    align-items: flex-start;
  }
  .page-cta h2 {
    font-size: 29px;
  }
  .form-layout {
    grid-template-columns: 1fr;
  }
  .form-context {
    max-width: 650px;
  }
  .form-context h2 {
    font-size: 34px;
  }
  .form-context .text-link {
    margin-top: 5px;
  }
  .gallery-heading {
    display: block;
  }
  .gallery-heading .filter-form {
    margin-top: 25px;
  }
  .school-life-grid {
    grid-template-columns: 1fr 1fr;
  }
  .team-profiles,
  .news-cards {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid {
    gap: 20px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }
  .admin-sidebar nav a {
    padding: 9px 12px;
    border: 1px solid var(--line);
  }
  .admin-sidebar > form {
    margin-top: 15px;
  }
  .admin-sidebar h1 {
    font-size: 25px;
  }
  .admin-sidebar {
    border-bottom: 1px solid var(--line);
    padding-bottom: 25px;
  }
}
/* Responsive or accessibility adjustment: (max-width:767px). */
@media (max-width: 767px) {
  .page-hero {
    padding: 25px 0 38px;
  }
  .breadcrumbs {
    margin-bottom: 25px;
    font-size: 10px;
  }
  .page-hero h1 {
    font-size: 37px;
    letter-spacing: -1.2px;
  }
  .page-intro {
    font-size: 14px;
    margin-top: 20px;
  }
  .page-hero .eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
  .feature-row,
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 33px;
  }
  .feature-photo img,
  .rounded-photo {
    height: 260px;
  }
  .prose p {
    font-size: 14px;
  }
  .prose h2 {
    font-size: 30px;
  }
  .page-cta {
    padding: 45px 0;
  }
  .page-cta > .container {
    display: block;
  }
  .page-cta h2 {
    font-size: 29px;
  }
  .page-cta .cta-buttons {
    margin-top: 28px;
    flex-direction: row;
    min-width: 0;
  }
  .page-cta .button {
    font-size: 10px;
    padding: 13px 15px;
    gap: 10px;
  }
  .reasons-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .reason-card {
    padding: 23px 17px;
    min-height: 165px;
  }
  .reason-card h3 {
    font-size: 14px;
  }
  .identity-panel,
  .subject-panel {
    padding: 25px;
  }
  .subject-panel h2 {
    font-size: 25px;
  }
  .school-life-grid {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 35px;
  }
  .school-life-grid article {
    padding: 28px 0;
  }
  .school-life-grid h2 {
    font-size: 23px;
  }
  .school-life-grid .section-icon {
    float: left;
    margin-right: 15px;
  }
  .school-life-grid h2 {
    margin-top: 0;
  }
  .school-life-grid p {
    clear: both;
  }
  .team-profiles,
  .news-cards,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .team-profiles img {
    height: 360px;
  }
  .services-grid article {
    padding: 25px;
  }
  .gallery-heading .filter-form {
    min-width: 0;
  }
  .filter-form select {
    min-width: 140px;
    max-width: 65%;
    font-size: 12px;
  }
  .filter-form .button {
    font-size: 10px;
    padding: 13px 15px;
  }
  .empty-content {
    padding: 28px;
  }
  .empty-content h2 {
    font-size: 26px;
  }
  .media-card img,
  .media-card video {
    height: 240px;
  }
  .media-card figcaption {
    padding: 20px;
  }
  .media-card h2 {
    font-size: 22px;
  }
  .map-panel {
    height: 360px;
    padding: 20px;
  }
  .map-panel h2 {
    font-size: 28px;
  }
  .application-form {
    padding: 23px 19px;
  }
  .application-form .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .application-form .button {
    font-size: 11px;
    gap: 12px;
    max-width: 100%;
    white-space: normal;
  }
  .receipt p {
    font-size: 14px;
  }
  .receipt h2 {
    font-size: 31px;
  }
  .receipt .button {
    font-size: 11px;
    padding: 13px 17px;
    gap: 10px;
  }
  .admin-layout {
    padding-block: 35px;
  }
  .admin-main h2 {
    font-size: 29px;
  }
  .admin-stats {
    gap: 10px;
  }
  .admin-stats article {
    padding: 18px 15px;
  }
  .admin-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .admin-heading .button {
    font-size: 11px;
  }
  .admin-entry-list > a {
    font-size: 12px;
  }
  .request-details {
    padding: 20px;
  }
  .request-details dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .request-details dd {
    margin-bottom: 14px;
  }
  .backup-row {
    display: block;
    overflow-wrap: anywhere;
  }
  .backup-row .button {
    margin-top: 15px;
  }
  .admin-sidebar nav a {
    font-size: 11px;
  }
  .table-scroll table {
    min-width: 570px;
  }
  .form-layout {
    gap: 28px;
  }
  .footer-bottom > div {
    flex-wrap: wrap;
    gap: 20px;
  }
  .footer-bottom > div a {
    font-size: 10px;
  }
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.brand img {
  width: 82px;
  height: 62px;
  object-fit: contain;
}
.brand-words {
  font:
    700 9px/1.1 Georgia,
    serif;
  color: #102e4d;
  white-space: nowrap;
}
.brand-words b {
  color: #bd831d;
  font-weight: 400;
}
.footer-brand img {
  width: 120px;
  height: auto;
}
.backup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.preview-notice {
  padding: 16px 18px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 25px;
}
.enquiry-preview {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 30px;
  outline-offset: 8px;
}
.enquiry-preview h3 {
  font-size: 24px;
}
.enquiry-preview p {
  font-size: 13px;
  margin-block: 15px;
}
.enquiry-preview dl {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px 20px;
  margin-block: 20px;
  font-size: 13px;
}
.enquiry-preview dt {
  font-weight: 700;
}
.enquiry-preview dd {
  margin: 0;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
/* Responsive or accessibility adjustment: (max-width:550px). */
@media (max-width: 550px) {
  .enquiry-preview dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .enquiry-preview dd {
    margin-bottom: 12px;
  }
}

/* Bright school palette stays light in every device theme. */
:root {
  color-scheme: light;
  --white: #fff;
  --ink: #17324a;
  --muted: #526774;
  --tint: #f2faff;
  --cream: #fff9e9;
  --line: #dce8ee;
}
body {
  background: #fff;
}
.site-header {
  background: #fff;
}
.page-hero {
  background: #fff9e9;
}
.section-tint {
  background: #f2faff;
}
.pillars {
  background: #fffdf4;
}
.reason-card {
  background: #fff;
}
.reason-card:nth-child(even) {
  background: #edf8ff;
}
.reason-card:nth-child(3n) {
  background: #fff4d7;
}
.academic-card:nth-child(odd) {
  background: #fff9e9;
}
.academic-card:nth-child(even) {
  background: #eff9ff;
}
.subject-panel {
  background: #f0f9ff;
}
.page-cta {
  background: #fff3cf;
  color: var(--ink);
}
.page-cta h2,
.page-cta p {
  color: var(--ink);
}
.page-cta .button-outline {
  color: var(--navy);
  border-color: var(--navy);
}
.page-cta .button-outline:hover {
  background: #fff;
}
.story-photo {
  margin: 0 0 28px;
}
.story-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 3px;
}
.story-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}
.story-photo figcaption span {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.academic-photo {
  margin-bottom: 25px;
}
.academic-photo img {
  aspect-ratio: 16/10;
}
.academic-photo figcaption {
  font-size: 11px;
}
.academic-photo figcaption span {
  font-size: 9px;
}
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}
.stage-photo {
  margin-bottom: 32px;
}
.gallery-grid .media-card {
  background: #fff;
}
.footer {
  background: #102e4d;
}
/* Responsive or accessibility adjustment: (max-width:767px). */
@media (max-width: 767px) {
  .photo-pair {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }
  .story-photo figcaption {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .academic-photo {
    margin-bottom: 20px;
  }
}

/* Page-specific photo banners with a contrast-preserving navy gradient. */
.page-hero.photo-banner {
  --banner-overlay: linear-gradient(
    90deg,
    rgba(7, 25, 43, 0.94) 0%,
    rgba(7, 25, 43, 0.84) 46%,
    rgba(7, 25, 43, 0.76) 70%,
    rgba(7, 25, 43, 0.66) 100%
  );
  position: relative;
  isolation: isolate;
  background-color: #102e4d;
  background-image: var(--banner-overlay), var(--banner-image);
  background-size: cover;
  background-position: center 40%;
  padding: 35px 0 66px;
  min-height: 380px;
  color: #fff;
}
.photo-banner > .container {
  position: relative;
  z-index: 1;
}
.photo-banner h1 {
  color: #fff;
  max-width: 810px;
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.photo-banner .breadcrumbs,
.photo-banner .page-intro,
.photo-banner .receipt p {
  color: #f5f8fb;
}
.photo-banner .eyebrow {
  color: #ffe0a0;
}
.photo-banner .page-intro {
  max-width: 680px;
}
.photo-banner .breadcrumbs a:focus-visible {
  outline-color: #ffe0a0;
}
.banner-credit {
  position: absolute;
  bottom: 13px;
  right: 24px;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #fff;
  background: rgba(8, 30, 48, 0.8);
  padding: 4px 9px;
  border-radius: 2px;
}
.about-photo {
  margin-bottom: 0;
}
.about-photo img {
  aspect-ratio: 4/3;
  object-position: 65% center;
}
.about-identity {
  margin-top: 40px;
}
.about-identity .identity-panel {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  gap: 30px;
  background: #f0f9ff;
}
.map-heading {
  margin-top: 55px;
  margin-bottom: 24px;
}
.map-heading h2 {
  font-size: 32px;
  margin-bottom: 15px;
}
.map-heading p {
  font-size: 14px;
  max-width: 800px;
}
.map-panel.embedded-map {
  height: 450px;
  min-height: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  background: #f2faff;
  border: 1px solid var(--line);
}
.embedded-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.banner-family-welcome {
  --banner-image: url('./assets/family-welcome.webp');
}
.banner-banner-academics {
  --banner-image: url('./assets/banner-academics.webp');
}
.banner-reading-together {
  --banner-image: url('./assets/reading-together.webp');
}
.banner-banner-lower-secondary {
  --banner-image: url('./assets/banner-lower-secondary.webp');
}
.banner-science-discovery {
  --banner-image: url('./assets/science-discovery.webp');
}
.banner-banner-a-level {
  --banner-image: url('./assets/banner-a-level.webp');
}
.banner-classroom {
  --banner-image: url('./assets/classroom.webp');
}
.banner-banner-school-visit {
  --banner-image: url('./assets/banner-school-visit.webp');
}
.banner-sports-teamwork {
  --banner-image: url('./assets/sports-teamwork.webp');
}
.banner-banner-our-team {
  --banner-image: url('./assets/banner-our-team.webp');
}
.banner-creative-learning {
  --banner-image: url('./assets/creative-learning.webp');
}
.banner-school-life {
  --banner-image: url('./assets/school-life.webp');
}
.banner-banner-contact {
  --banner-image: url('./assets/banner-contact.webp');
}
.banner-banner-transport {
  --banner-image: url('./assets/banner-transport.webp');
}
.banner-digital-learning {
  --banner-image: url('./assets/digital-learning.webp');
}
.banner-banner-privacy {
  --banner-image: url('./assets/banner-privacy.webp');
}
/* Responsive or accessibility adjustment: (max-width:767px). */
@media (max-width: 767px) {
  .page-hero.photo-banner {
    --banner-overlay: linear-gradient(90deg, rgba(7, 25, 43, 0.88), rgba(7, 25, 43, 0.76));
    min-height: 340px;
    padding: 26px 0 55px;
    background-position: 64% center;
  }
  .photo-banner h1 {
    font-size: 36px;
    max-width: 600px;
  }
  .photo-banner .page-intro {
    font-size: 14px;
  }
  .banner-credit {
    right: 20px;
    bottom: 10px;
    font-size: 9px;
  }
  .about-identity .identity-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .map-heading h2 {
    font-size: 28px;
  }
  .map-panel.embedded-map {
    height: 380px;
  }
  .banner-family-welcome {
    --banner-image: url('./assets/family-welcome-small.webp');
  }
  .banner-banner-academics {
    --banner-image: url('./assets/banner-academics-small.webp');
  }
  .banner-reading-together {
    --banner-image: url('./assets/reading-together-small.webp');
  }
  .banner-banner-lower-secondary {
    --banner-image: url('./assets/banner-lower-secondary-small.webp');
  }
  .banner-science-discovery {
    --banner-image: url('./assets/science-discovery-small.webp');
  }
  .banner-banner-a-level {
    --banner-image: url('./assets/banner-a-level-small.webp');
  }
  .banner-classroom {
    --banner-image: url('./assets/classroom-small.webp');
  }
  .banner-banner-school-visit {
    --banner-image: url('./assets/banner-school-visit-small.webp');
  }
  .banner-sports-teamwork {
    --banner-image: url('./assets/sports-teamwork-small.webp');
  }
  .banner-banner-our-team {
    --banner-image: url('./assets/banner-our-team-small.webp');
  }
  .banner-creative-learning {
    --banner-image: url('./assets/creative-learning-small.webp');
  }
  .banner-school-life {
    --banner-image: url('./assets/school-life-small.webp');
  }
  .banner-banner-contact {
    --banner-image: url('./assets/banner-contact-small.webp');
  }
  .banner-banner-transport {
    --banner-image: url('./assets/banner-transport-small.webp');
  }
  .banner-digital-learning {
    --banner-image: url('./assets/digital-learning-small.webp');
  }
  .banner-banner-privacy {
    --banner-image: url('./assets/banner-privacy-small.webp');
  }
}
/* Responsive or accessibility adjustment: (min-width:768px). */
@media (min-width: 768px) {
  .photo-banner.banner-family-welcome {
    background-position: center 8%;
  }
  .photo-banner.banner-digital-learning {
    background-position: center 12%;
  }
  .photo-banner.banner-creative-learning {
    background-position: center 18%;
  }
}

/* Matching page photograph, warm gold overlay and readable navy calls to action. */
/* Bottom photo banner with the gold overlay. */
.page-cta.gold-photo-cta {
  background-color: #f3c75b;
  background-image:
    linear-gradient(
      100deg,
      rgba(255, 239, 185, 0.96) 0%,
      rgba(245, 202, 93, 0.89) 48%,
      rgba(225, 167, 43, 0.77) 100%
    ),
    var(--banner-image);
  background-size: cover;
  background-position: center 42%;
  padding-block: 70px;
  border-top: 1px solid rgba(176, 123, 20, 0.22);
}
.gold-photo-cta h2,
.gold-photo-cta p {
  color: #102e4d;
}
.gold-photo-cta h2 {
  max-width: 650px;
}
.gold-photo-cta p {
  font-weight: 500;
}
.gold-photo-cta .button-gold {
  background: #102e4d;
  color: #fff;
  border: 1px solid #102e4d;
}
.gold-photo-cta .button-gold:hover {
  background: #193f62;
  border-color: #193f62;
}
.gold-photo-cta .button-outline {
  background: rgba(255, 251, 239, 0.8);
  border: 1px solid #102e4d;
  color: #102e4d;
}
.gold-photo-cta .button-outline:hover {
  background: #fff9e9;
}
.gold-photo-cta a:focus-visible {
  outline-color: #102e4d;
}
/* Responsive or accessibility adjustment: (max-width:767px). */
@media (max-width: 767px) {
  .page-cta.gold-photo-cta {
    background-image:
      linear-gradient(105deg, rgba(255, 239, 185, 0.94), rgba(239, 190, 69, 0.87)),
      var(--banner-image);
    background-position: 64% center;
    padding-block: 50px;
  }
  .gold-photo-cta .cta-buttons {
    flex-wrap: wrap;
  }
}

/* Larger shared header navigation on desktop and mobile. */
.site-header .nav-link {
  font-size: 13px;
}
.site-header .nav-apply {
  font-size: 12px;
}
/* Responsive or accessibility adjustment: (max-width:1100px). */
@media (max-width: 1100px) {
  .site-header .nav-link {
    font-size: 15px;
  }
  .site-header .nav-apply {
    font-size: 13px;
  }
}

/* Explicit SVG sizing avoids font-dependent arrows and flex shrinking in Safari. */
.svg-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  vertical-align: middle;
}
.slide-arrow .svg-icon {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}
.footer .social-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid #ffffff66;
  border-radius: 4px;
  color: #fff;
}
.footer .social-links .social-link:hover {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}
