:root {
  color-scheme: light;
  --ink: #10233f;
  --muted: #5f6f86;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --line: #d8e1ec;
  --green: #145da0;
  --green-dark: #0b376d;
  --gold: #d6a619;
  --red: #b8860b;
  --blue: #2f6fb5;
  --shadow: 0 18px 45px rgba(24, 33, 47, 0.14);
  --radius: 8px;
  --header-height: 76px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(5, 35, 75, 0.72);
  backdrop-filter: blur(14px);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header[data-elevated="true"],
.site-header.menu-surface {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(24, 33, 47, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  text-decoration: none;
}

.brand span:last-child {
  display: grid;
  gap: 2px;
}

.brand strong,
.brand small {
  max-width: 40vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: currentColor;
  font-size: 0.75rem;
  opacity: 0.78;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: currentColor;
  font-weight: 800;
}

.brand-mark.has-logo {
  overflow: hidden;
  border-color: transparent;
  background: #fff;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 42px;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--green-dark);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.site-header[data-elevated="true"] .site-nav a:hover,
.site-header[data-elevated="true"] .site-nav a:focus-visible,
.site-header.menu-surface .site-nav a:hover,
.site-header.menu-surface .site-nav a:focus-visible {
  background: #e8f0fa;
}

.admin-link {
  color: #fff;
  background: var(--green);
}

.site-header[data-elevated="true"] .admin-link,
.site-header.menu-surface .admin-link {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: currentColor;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr;
  align-items: center;
  gap: clamp(28px, 6vh, 58px);
  padding: calc(var(--header-height) + 5vh) 5vw 4vw;
  margin-top: calc(var(--header-height) * -1);
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 28, 29, 0.86) 0%, rgba(9, 28, 29, 0.58) 43%, rgba(9, 28, 29, 0.18) 100%),
    linear-gradient(0deg, rgba(9, 28, 29, 0.7) 0%, rgba(9, 28, 29, 0.04) 48%);
}

.hero-content {
  width: 100%;
  padding-top: var(--header-height);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body:not(.admin-body) .eyebrow {
  margin-bottom: 18px;
  color: #916310;
  font-size: 1.5rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body:not(.admin-body) :is(.hero, .page-intro, .page-hero, .cta-band) .eyebrow,
html[data-theme="dark"] body:not(.admin-body) .eyebrow {
  color: #efb84e;
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font-size: 3.5rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.hero p:not(.eyebrow) {
  max-width: 610px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(24, 33, 47, 0.14);
  outline: none;
}

.button.primary {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.button.compact {
  min-height: 44px;
  padding: 11px 13px;
  font-size: 0.86rem;
}

.button.danger {
  border-color: rgba(184, 74, 59, 0.26);
  color: #fff;
  background: var(--red);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(920px, 100%);
  margin-top: 9vh;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow);
}

.stat {
  min-height: 116px;
  padding: 22px;
  color: #fff;
  background: rgba(12, 34, 36, 0.66);
  backdrop-filter: blur(12px);
}

.stat strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.notice-band {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 16px 5vw;
  color: #fff;
  background: var(--green-dark);
}

.notice-band strong {
  color: var(--gold);
  text-transform: uppercase;
}

.section {
  padding: clamp(56px, 8vw, 96px) 5vw;
}

.section-action {
  width: min(1120px, 100%);
  margin: 28px auto 0;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 32px;
}

.section-heading h2,
.admin-shell h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.intro {
  background: #fff;
}

.intro-grid,
.admissions-layout,
.contact-layout,
.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro-grid > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.value-grid,
.program-grid,
.campus-strip,
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.value-card,
.program-card,
.campus-card,
.metric-card,
.admin-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.value-card {
  min-height: 150px;
  padding: 20px;
}

.value-card .icon,
.program-card .icon,
.campus-card .icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.value-card:nth-child(2) .icon,
.campus-card:nth-child(2) .icon {
  background: var(--green);
}

.value-card:nth-child(3) .icon,
.campus-card:nth-child(3) .icon {
  background: var(--gold);
}

.value-card h3,
.program-card h3,
.admission-card h3,
.contact-panel h3,
.admin-panel h3,
.campus-card h3 {
  margin: 14px 0 8px;
  font-size: 1.06rem;
}

.value-card p,
.program-card p,
.campus-card p,
.admission-card p,
.contact-panel p,
.panel-heading p,
#adminIdentity {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.program-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.program-card,
.campus-card {
  min-height: 220px;
  padding: 22px;
}

.program-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.program-card li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.admissions {
  background: #f1f5fb;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 112px;
  padding: 22px 22px 22px 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.steps li::before {
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  content: counter(steps);
  counter-increment: steps;
  font-weight: 900;
}

.steps h3 {
  margin: 0 0 6px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admission-card,
.contact-panel {
  align-self: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(24, 33, 47, 0.08);
}

dl {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.admin-item small {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.gallery {
  background: #fff8e6;
}

.gallery-preview,
.gallery-page {
  background: #fff8e6;
}

.gallery-feature {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-feature figcaption {
  padding: 16px 18px;
  color: var(--muted);
  font-weight: 700;
}

.campus-strip {
  grid-template-columns: 1fr;
}

.campus-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 120px;
  gap: 18px;
  align-items: start;
}

.campus-card h3 {
  margin-top: 0;
}

.contact {
  background: #fff;
}

.form-heading h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.form-heading p {
  margin: 8px 0 6px;
  color: var(--muted);
}

.public-form,
.login-form,
.admin-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(20, 93, 160, 0.16);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.admin-shell {
  padding: clamp(56px, 8vw, 96px) 5vw;
  background: #0b2e5f;
}

.admin-login,
.admin-dashboard {
  width: min(1120px, 100%);
  margin: 0 auto;
  color: #fff;
}

.admin-login {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 36px;
  align-items: center;
  isolation: isolate;
}

.admin-login > *,
.login-form > * {
  min-width: 0;
}

.admin-login p {
  color: rgba(255, 255, 255, 0.78);
}

.login-form,
.dashboard-grid,
.dashboard-topbar,
.admin-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.login-form {
  padding: 24px;
  min-width: 0;
  background: rgba(7, 26, 51, 0.8);
  backdrop-filter: blur(14px);
}

.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: start;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.recovery-code {
  padding: 14px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--ink);
  background: #eef4fb;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.recovery-code-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.recovery-code-dialog::backdrop {
  background: rgba(5, 27, 61, 0.76);
}

.recovery-code-dialog > div {
  padding: clamp(24px, 5vw, 40px);
}

.recovery-code-dialog h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.05;
}

.recovery-code-dialog code {
  display: block;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #bfd0e5;
  border-radius: 6px;
  color: #0b376d;
  background: #f4f8fc;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 16px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.operations-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  background: #f7f9fc;
}

.operations-panel h3,
.operations-panel p {
  margin: 0;
}

.operations-panel p {
  margin-top: 6px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .operations-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

.login-form label {
  color: #fff;
}

.login-form input {
  max-width: 100%;
  min-width: 0;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
}

.password-field {
  position: relative;
  display: block;
  width: 100%;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
}

.login-form .password-toggle {
  color: #fff;
}

.password-toggle:hover {
  background: rgba(16, 35, 63, 0.08);
}

.login-form .password-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.password-toggle:focus-visible {
  outline: 3px solid rgba(47, 111, 181, 0.38);
  outline-offset: 1px;
}

.password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .password-eye-slash {
  display: none;
}

.password-toggle.password-visible .password-eye-slash {
  display: block;
}

.admin-body.login-active .login-form p,
.admin-body.login-active .login-intro p {
  overflow-wrap: anywhere;
}

.admin-body.login-active .login-form h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
}

/* Keep every interactive and supporting text element on the admin sign-in view readable on mobile. */
.admin-body.login-active .login-intro > p,
.admin-body.login-active .login-form,
.admin-body.login-active .login-form label,
.admin-body.login-active .login-form input,
.admin-body.login-active .login-form button,
.admin-body.login-active .login-form .form-status {
  font-size: 16px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.dashboard-topbar h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 0;
  margin-top: 18px;
}

.dashboard-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.tab-button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  padding: 12px;
  text-align: left;
  font-weight: 900;
}

.tab-button.active,
.tab-button:hover,
.tab-button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.dashboard-panels {
  min-width: 0;
  padding: 16px;
}

.admin-panel {
  display: none;
  padding: 22px;
}

.admin-panel.active {
  display: block;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-panel h3 {
  margin: 0 0 5px;
  color: #fff;
}

.admin-form.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label {
  color: rgba(255, 255, 255, 0.9);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.admin-form option {
  color: var(--ink);
}

.admin-fieldset {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
}

.admin-fieldset legend {
  padding: 0 8px;
  color: #fff;
  font-weight: 900;
}

.repeat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  color: var(--ink);
}

.admin-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.admin-item h4 {
  margin: 4px 0 0;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.item-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
}

.pill.pending {
  background: var(--gold);
}

.pill.closed {
  background: var(--blue);
}

.metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 18px;
  color: var(--ink);
}

.metric-card strong {
  display: block;
  font-size: 2rem;
}

.metric-card span {
  color: var(--muted);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.page-intro {
  display: grid;
  min-height: clamp(460px, 64vh, 650px);
  align-content: center;
  padding: clamp(56px, 7vw, 88px) 5vw;
  color: #fff;
  background-color: #0a3266;
  background-image:
    linear-gradient(90deg, rgba(5, 27, 61, 0.94) 0%, rgba(5, 27, 61, 0.72) 48%, rgba(5, 27, 61, 0.2) 100%),
    linear-gradient(0deg, rgba(5, 27, 61, 0.66) 0%, rgba(5, 27, 61, 0.04) 62%),
    url("assets/school-hero.png");
  background-position: center 44%;
  background-size: cover;
}

.page-intro > * {
  width: min(900px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.page-intro h1,
.page-hero h1 {
  max-width: 15ch;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 5.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-intro > p:last-child,
.page-hero > div > p:last-child {
  max-width: 700px;
  margin-top: 0;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  line-height: 1.7;
}

.admissions-intro {
  background-color: #0b3f7a;
  background-image:
    linear-gradient(90deg, rgba(5, 27, 61, 0.94) 0%, rgba(5, 27, 61, 0.72) 48%, rgba(5, 27, 61, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 27, 61, 0.64) 0%, rgba(5, 27, 61, 0.04) 62%),
    url("assets/school-admissions.png");
  background-position: center 52%;
}

.gallery-intro {
  background-color: #263a55;
  background-image:
    linear-gradient(90deg, rgba(22, 39, 61, 0.94) 0%, rgba(22, 39, 61, 0.68) 50%, rgba(22, 39, 61, 0.18) 100%),
    linear-gradient(0deg, rgba(22, 39, 61, 0.58) 0%, rgba(22, 39, 61, 0.04) 62%),
    url("assets/school-gallery.png");
  background-position: center 36%;
}

.page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(460px, 64vh, 650px);
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #0a3266;
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 27, 61, 0.94) 0%, rgba(5, 27, 61, 0.7) 50%, rgba(5, 27, 61, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 27, 61, 0.64) 0%, rgba(5, 27, 61, 0.04) 62%);
  content: "";
}

.page-hero > div {
  width: min(1120px, 90%);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) 0;
}

.page-hero > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 42%;
}

body[data-page="academics"] .page-intro {
  background-position: center 38%;
}

body[data-page="contact"] .page-intro {
  background-image:
    linear-gradient(90deg, rgba(22, 32, 44, 0.94) 0%, rgba(22, 32, 44, 0.7) 50%, rgba(22, 32, 44, 0.18) 100%),
    linear-gradient(0deg, rgba(22, 32, 44, 0.58) 0%, rgba(22, 32, 44, 0.04) 62%),
    url("assets/school-contact.png");
  background-position: center 46%;
}

.wide-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(36px, 7vw, 96px);
  background: #eef3fa;
}

.story-copy {
  max-width: 560px;
  margin-left: auto;
}

.story-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1;
}

.story-copy > p:last-child {
  color: var(--muted);
  line-height: 1.75;
}

.principles-list {
  display: grid;
  max-width: 680px;
  gap: 1px;
  background: var(--line);
}

.principles-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  background: #fff;
}

.principles-list span,
.feature-list strong {
  color: var(--green);
  font-weight: 900;
}

.principles-list h3,
.feature-list h3,
.requirements-grid h3 {
  margin: 0 0 8px;
}

.principles-list p,
.feature-list p,
.requirements-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.learning-band {
  background: #fff;
}

.feature-list,
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: 1px;
  background: var(--line);
}

.feature-list article,
.requirements-grid article {
  min-height: 220px;
  padding: 24px;
  background: #fff;
}

.feature-list strong {
  display: block;
  margin-bottom: 32px;
  font-size: 1.25rem;
}

.requirements {
  background: #fff;
}

.requirements-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.requirements-grid article {
  min-height: 150px;
}

.full-width {
  width: 100%;
  margin-top: 24px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(44px, 6vw, 74px) 5vw;
  color: #fff;
  background: #0b2e5f;
}

.cta-band > div {
  width: min(760px, 100%);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.section-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.section-lead {
  width: min(760px, 100%);
  margin: -18px auto 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.history-intro {
  background-image:
    linear-gradient(90deg, rgba(5, 27, 61, 0.9) 0%, rgba(5, 27, 61, 0.64) 54%, rgba(5, 27, 61, 0.2) 100%),
    url("assets/school-history.png");
}

.history-story {
  background: #f7f9fc;
}

.history-article {
  width: min(860px, 100%);
  margin: 0 auto;
}

.history-article p {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.85;
}

.history-article p:first-child {
  font-size: 1.2rem;
  font-weight: 700;
}

.history-article p:last-child {
  margin-bottom: 0;
}

.history-media,
.history-preview {
  background: #fff;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.media-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #071a33;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-kind {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  border-radius: 6px;
  color: #fff;
  background: rgba(7, 26, 51, 0.84);
  font-size: 0.75rem;
  font-weight: 900;
}

.media-card figcaption {
  padding: 16px 18px 18px;
}

.media-card time {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.media-card p {
  margin: 7px 0 0;
  line-height: 1.5;
}

.media-card:only-child {
  grid-column: 1 / -1;
}

.media-card:only-child .media-frame {
  aspect-ratio: 16 / 7;
}

.confirmation-dialog {
  width: min(460px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.confirmation-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.confirmation-dialog h2 { margin-top: 0; font-size: 1.4rem; }
.confirmation-dialog p { line-height: 1.6; }

.alumni-folders {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.alumni-folder {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.alumni-folder summary {
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.alumni-folder summary span {
  display: block;
  margin: 6px 0 0 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.alumni-folder .media-grid {
  margin-top: 24px;
}

.alumni-folder .media-frame,
.alumni-folder .media-card:only-child .media-frame {
  aspect-ratio: 4 / 3;
}

.alumni-folder .media-frame img {
  object-fit: contain;
}

.multi-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  margin-top: 8px;
  color: var(--muted);
}

.media-missing {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 96px;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  background: #183b66;
  font-weight: 800;
}

.admin-body {
  min-height: 100vh;
  background: #0b2e5f;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
  padding: 0 5vw;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #071a33;
}

.admin-header .brand {
  min-height: 44px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-shell {
  min-height: calc(100vh - 76px);
}

.admin-body.login-active .admin-shell {
  padding: 0;
  background: #071a33;
}

.admin-body.login-active .admin-login {
  width: 100%;
  min-height: calc(100vh - 76px);
  margin: 0;
  padding: clamp(56px, 8vw, 108px) max(5vw, calc((100vw - 1120px) / 2));
  background-color: #071a33;
  background-image: var(--admin-login-background-image, url("assets/school-hero.png"));
  background-position: center;
  background-size: cover;
}

.admin-body.login-active .admin-login::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 24, 26, 0.9) 0%, rgba(10, 24, 26, 0.7) 54%, rgba(10, 24, 26, 0.56) 100%),
    linear-gradient(0deg, rgba(8, 17, 23, 0.72), rgba(8, 17, 23, 0.08) 58%);
  content: "";
}

.admin-body.login-active .admin-login > * {
  position: relative;
  z-index: 1;
}

.login-intro h1,
.dashboard-topbar h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.dashboard-topbar h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.admin-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.15;
}

.admin-panel .panel-heading p,
#adminIdentity {
  color: rgba(255, 255, 255, 0.68);
}

.field-help {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 600;
}

.panel-divider {
  height: 1px;
  margin: 28px 0;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
}

.upload-preview {
  overflow: hidden;
  width: min(520px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #071a33;
}

.upload-preview img,
.upload-preview video {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.branding-preview {
  display: grid;
  overflow: hidden;
  width: min(680px, 100%);
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #071a33;
}

.branding-preview img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.branding-preview div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.branding-preview small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  font-weight: 800;
}

.branding-preview strong {
  overflow-wrap: anywhere;
}

.section-intro {
  max-width: 68ch;
  margin: 4px 0 18px;
  color: rgba(255, 255, 255, 0.68);
}

.logo-manager-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(520px, 100%);
  min-height: 96px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #071a33;
}

.logo-manager-preview .brand-mark {
  width: 66px;
  height: 66px;
  flex-basis: 66px;
  font-size: 1.45rem;
}

.logo-manager-preview > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.logo-manager-preview small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  font-weight: 800;
}

.logo-manager-preview strong {
  overflow-wrap: anywhere;
}

.gallery-admin-list {
  gap: 14px;
}

.media-admin-item {
  grid-template-columns: 140px minmax(0, 1fr) auto;
}

.admin-media-thumb {
  width: 140px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #071a33;
}

.admin-media-thumb img,
.admin-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.theme-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 40px;
  margin-right: 8px;
  margin-left: auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
}

.admin-header-actions .theme-toggle {
  margin: 0;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(127, 127, 127, 0.16);
  outline: 3px solid rgba(20, 93, 160, 0.2);
}

.theme-track {
  position: relative;
  display: block;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.38);
}

.theme-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 180ms ease;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef4fb;
  --muted: #aab6c6;
  --paper: #071a33;
  --surface: #132a46;
  --line: #35516f;
  --green: #3b82c4;
  --green-dark: #1b65a8;
  --gold: #efb84e;
  --blue: #6e99c2;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .theme-thumb {
  transform: translateX(16px);
}

html[data-theme="dark"] .site-header[data-elevated="true"],
html[data-theme="dark"] .site-header.menu-surface {
  background: rgba(7, 26, 51, 0.96);
}

html[data-theme="dark"] .intro,
html[data-theme="dark"] .contact,
html[data-theme="dark"] .learning-band,
html[data-theme="dark"] .requirements,
html[data-theme="dark"] .history-preview,
html[data-theme="dark"] .history-media {
  background: var(--paper);
}

html[data-theme="dark"] .admissions,
html[data-theme="dark"] .story-band,
html[data-theme="dark"] .history-story {
  background: #0d2548;
}

html[data-theme="dark"] .gallery,
html[data-theme="dark"] .gallery-preview,
html[data-theme="dark"] .gallery-page {
  background: #14273f;
}

html[data-theme="dark"] .steps li,
html[data-theme="dark"] .admission-card,
html[data-theme="dark"] .contact-panel,
html[data-theme="dark"] .principles-list article,
html[data-theme="dark"] .feature-list article,
html[data-theme="dark"] .requirements-grid article,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .media-card {
  background: var(--surface);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: var(--surface);
}

html[data-theme="light"] .admin-body:not(.login-active),
html[data-theme="light"] .admin-body:not(.login-active) .admin-shell {
  color: var(--ink);
  background: var(--paper);
}

html[data-theme="light"] .admin-header {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

html[data-theme="light"] .admin-dashboard {
  color: var(--ink);
}

html[data-theme="light"] .dashboard-grid,
html[data-theme="light"] .dashboard-topbar,
html[data-theme="light"] .admin-panel {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(24, 33, 47, 0.1);
}

html[data-theme="light"] .dashboard-nav {
  border-color: var(--line);
}

html[data-theme="light"] .tab-button {
  color: var(--muted);
}

html[data-theme="light"] .tab-button.active,
html[data-theme="light"] .tab-button:hover,
html[data-theme="light"] .tab-button:focus-visible {
  color: #fff;
  background: var(--green);
}

html[data-theme="light"] .admin-panel h2,
html[data-theme="light"] .admin-panel h3,
html[data-theme="light"] .admin-form label,
html[data-theme="light"] .admin-fieldset legend {
  color: var(--ink);
}

html[data-theme="light"] .admin-panel .panel-heading p,
html[data-theme="light"] #adminIdentity,
html[data-theme="light"] .field-help {
  color: var(--muted);
}

html[data-theme="light"] .admin-form input,
html[data-theme="light"] .admin-form select,
html[data-theme="light"] .admin-form textarea {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

html[data-theme="light"] .admin-fieldset,
html[data-theme="light"] .upload-preview,
html[data-theme="light"] .branding-preview {
  border-color: var(--line);
}

html[data-theme="light"] .panel-divider {
  background: var(--line);
}

html[data-theme="light"] .branding-preview {
  background: var(--paper);
}

html[data-theme="light"] .branding-preview small {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 5vw;
  color: rgba(255, 255, 255, 0.78);
  background: #071a33;
}

.site-footer p {
  margin: 4px 0 0;
}

.intro-grid {
  grid-template-columns: 1fr;
  gap: 28px;
}

.intro-grid > p {
  max-width: 760px;
}

.value-card,
.program-card,
.campus-card,
.media-card {
  --card-accent: var(--green);
  min-width: 0;
  box-shadow: 0 5px 16px rgba(24, 33, 47, 0.05);
  overflow-wrap: anywhere;
}

.value-card:nth-child(3n + 2),
.program-card:nth-child(3n + 2) {
  --card-accent: var(--blue);
}

.value-card:nth-child(3n),
.program-card:nth-child(3n) {
  --card-accent: var(--red);
}

.value-card,
.program-card,
.campus-card {
  padding: 28px;
  border-top: 4px solid var(--card-accent);
}

.value-card:nth-child(n) .icon,
.program-card:nth-child(n) .icon,
.campus-card:nth-child(n) .icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--card-accent) 22%, var(--surface));
  font-size: 1.1rem;
}

.value-card h3,
.program-card h3,
.campus-card h3 {
  margin: 24px 0 12px;
  font-size: 1.3rem;
  line-height: 1.25;
}

.value-card p,
.program-card p {
  line-height: 1.75;
}

.program-card ul {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  gap: 12px;
  font-size: 0.9rem;
}

.program-card li::before {
  background: var(--card-accent);
  border-radius: 2px;
}

.media-card figcaption {
  padding: 22px 24px 26px;
  border-top: 3px solid var(--green);
}

.media-card p {
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    padding: 16px 5vw 24px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 20px 40px rgba(24, 33, 47, 0.14);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    border-radius: var(--radius);
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: #e8f0fa;
  }

  .hero {
    min-height: 92vh;
    padding-top: 16vh;
    margin-top: -68px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .quick-stats,
  .value-grid,
  .program-grid,
  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .admissions-layout,
  .contact-layout,
  .gallery-grid,
  .admin-login,
  .dashboard-grid,
  .page-hero,
  .story-band {
    grid-template-columns: 1fr;
  }

  .page-hero > img {
    max-height: none;
  }

  .story-copy {
    max-width: 1120px;
    margin-left: 0;
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-nav {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .tab-button {
    text-align: center;
  }

  .media-admin-item {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .media-admin-item .item-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }
}

@media (max-width: 640px) {
  body:not(.admin-body) .eyebrow {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .brand strong,
  .brand small {
    max-width: 54vw;
  }

  .hero {
    min-height: auto;
    padding-bottom: 32px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 28, 29, 0.9) 0%, rgba(9, 28, 29, 0.72) 100%),
      linear-gradient(0deg, rgba(9, 28, 29, 0.78) 0%, rgba(9, 28, 29, 0.08) 48%);
  }

  .quick-stats,
  .value-grid,
  .program-grid,
  .media-grid,
  .multi-preview,
  .metric-row,
  .repeat-grid,
  .admin-form.two-column,
  .feature-list,
  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    margin-top: 46px;
  }

  .stat {
    min-height: 96px;
  }

  .notice-band,
  .split-heading,
  .dashboard-topbar,
  .panel-heading,
  .site-footer,
  .cta-band {
    align-items: start;
    flex-direction: column;
  }

  .dashboard-nav {
    grid-template-columns: 1fr 1fr;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }

  .media-admin-item {
    grid-template-columns: 1fr;
  }

  .admin-media-thumb {
    width: 100%;
    max-width: 320px;
  }

  .page-hero {
    min-height: 540px;
  }

  .page-hero > img {
    min-height: 0;
    max-height: none;
  }

  .page-intro {
    min-height: 540px;
    background-position: 60% center;
  }

  .page-intro h1,
  .page-hero h1 {
    max-width: 11ch;
  }

  .media-card:only-child .media-frame {
    aspect-ratio: 4 / 3;
  }

  .item-actions {
    justify-content: start;
  }
}

/* Public-site redesign: modern academic editorial */
body:not(.admin-body) {
  --public-ink: #10233f;
  --public-green: #145da0;
  --public-green-deep: #082f63;
  --public-mint: #e3edf9;
  --public-gold: #e0ad18;
  --public-red: #b8860b;
  --public-blue: #2f6fb5;
  color: var(--public-ink);
  background: #f7f9fc;
}

body:not(.admin-body) .site-header {
  min-height: 84px;
  padding-inline: clamp(22px, 5vw, 84px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 35, 75, 0.82);
}

body:not(.admin-body) .site-header[data-elevated="true"],
body:not(.admin-body) .site-header.menu-surface {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 3px solid var(--public-gold);
}

body:not(.admin-body) .brand-mark {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 2px 18px 2px 18px;
  border-color: var(--public-gold);
  color: var(--public-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

body:not(.admin-body) .brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

body:not(.admin-body) .site-nav {
  gap: 2px;
}

body:not(.admin-body) .site-nav a {
  position: relative;
  padding: 13px 16px;
  border-radius: 0;
  font-size: 0.86rem;
  text-transform: uppercase;
}

body:not(.admin-body) .site-nav a::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 7px;
  left: 16px;
  height: 2px;
  background: var(--public-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

body:not(.admin-body) .site-nav a:hover::after,
body:not(.admin-body) .site-nav a:focus-visible::after,
body:not(.admin-body) .site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

body:not(.admin-body) .site-nav a[aria-current="page"] {
  color: inherit;
  background: transparent;
}

body:not(.admin-body) .site-nav .admin-signin-link {
  margin-left: 10px;
  padding: 12px 16px;
  border: 1px solid var(--public-gold);
  border-radius: 3px;
  color: #10233f;
  background: var(--public-gold);
  line-height: 1;
}

body:not(.admin-body) .site-nav .admin-signin-link::after {
  display: none;
}

body:not(.admin-body) .site-nav .admin-signin-link:hover,
body:not(.admin-body) .site-nav .admin-signin-link:focus-visible {
  color: #10233f;
  background: #f3c64d;
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

body:not(.admin-body) .hero {
  min-height: 100svh;
  padding: clamp(150px, 18vh, 220px) clamp(22px, 5vw, 84px) 64px;
  margin-top: -84px;
  align-items: end;
}

body:not(.admin-body) .hero-image {
  filter: saturate(0.86) contrast(1.04);
  transform: scale(1.015);
}

body:not(.admin-body) .hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 27, 61, 0.96) 0%, rgba(4, 27, 61, 0.78) 43%, rgba(4, 27, 61, 0.16) 78%),
    linear-gradient(0deg, rgba(4, 27, 61, 0.74), transparent 58%);
}

body:not(.admin-body) .hero-content {
  position: relative;
  width: min(1560px, 100%);
  padding-left: clamp(18px, 2.5vw, 42px);
  border-left: clamp(5px, 0.6vw, 10px) solid var(--public-gold);
}

body:not(.admin-body) .hero h1 {
  max-width: 22ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.2vw, 6.6rem);
  font-weight: 700;
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
}

body:not(.admin-body) .hero p:not(.eyebrow) {
  max-width: 710px;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
}

body:not(.admin-body) .hero-actions {
  gap: 0;
}

body:not(.admin-body) .button {
  border-radius: 2px;
}

body:not(.admin-body) .button.primary {
  color: #10233f;
  border-color: var(--public-gold);
  background: var(--public-gold);
}

body:not(.admin-body) .button.primary:hover,
body:not(.admin-body) .button.primary:focus-visible {
  background: #f3c64d;
}

body:not(.admin-body) .hero .button {
  min-height: 54px;
  padding-inline: 24px;
}

body:not(.admin-body) .hero .button.ghost {
  border-left: 0;
}

body:not(.admin-body) .notice-band {
  position: relative;
  gap: 24px;
  padding: 18px clamp(22px, 5vw, 84px);
  color: #fff;
  background: var(--public-blue);
}

body:not(.admin-body) .notice-band::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--public-gold);
}

body:not(.admin-body) .notice-band strong {
  color: #fff;
}

body:not(.admin-body) .section {
  padding: clamp(72px, 9vw, 132px) clamp(22px, 5vw, 84px);
}

body:not(.admin-body) .section-heading {
  width: min(1180px, 100%);
  margin-bottom: clamp(38px, 5vw, 72px);
}

body:not(.admin-body) .section-heading h2,
body:not(.admin-body) .cta-band h2 {
  max-width: 18ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 5.2rem);
  font-weight: 700;
  line-height: 0.98;
  text-wrap: balance;
}

body:not(.admin-body) .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--public-blue);
  font-size: clamp(1rem, 1.25vw, 1.3rem);
}

body:not(.admin-body) .eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  flex: 0 0 28px;
  background: currentColor;
}

body:not(.admin-body) :is(.hero, .page-intro, .page-hero, .cta-band) .eyebrow {
  color: var(--public-gold);
}

body:not(.admin-body) .intro {
  position: relative;
  background: #ffffff;
}

body:not(.admin-body) .intro::after {
  content: "G";
  position: absolute;
  right: 3vw;
  bottom: -0.17em;
  color: rgba(20, 93, 160, 0.06);
  font-family: Georgia, "Times New Roman", serif;
  font-size: min(40vw, 34rem);
  line-height: 1;
  pointer-events: none;
}

body:not(.admin-body) .intro-grid,
body:not(.admin-body) .value-grid {
  position: relative;
  z-index: 1;
}

body:not(.admin-body) .intro-grid > p {
  padding-left: 24px;
  border-left: 3px solid var(--public-gold);
  font-size: clamp(1.1rem, 1.65vw, 1.45rem);
}

body:not(.admin-body) .value-grid,
body:not(.admin-body) .program-grid {
  gap: 0;
  border-top: 1px solid #ccd8e8;
  border-bottom: 1px solid #ccd8e8;
}

body:not(.admin-body) .value-card,
body:not(.admin-body) .program-card {
  min-height: 290px;
  padding: 34px;
  border: 0;
  border-right: 1px solid #ccd8e8;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

body:not(.admin-body) .value-card:last-child,
body:not(.admin-body) .program-card:last-child {
  border-right: 0;
}

body:not(.admin-body) .value-card .icon,
body:not(.admin-body) .program-card .icon,
body:not(.admin-body) .campus-card .icon {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--card-accent);
}

body:not(.admin-body) .history-preview,
body:not(.admin-body) .history-story {
  color: #fff;
  background: var(--public-green-deep);
}

body:not(.admin-body) .history-preview .section-lead,
body:not(.admin-body) .history-story .history-article,
body:not(.admin-body) .history-preview .media-card time {
  color: rgba(255, 255, 255, 0.76);
}

body:not(.admin-body) .history-story .history-article p {
  color: #fff;
}

body:not(.admin-body) .history-preview .button,
body:not(.admin-body) .history-story .button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}

body:not(.admin-body) .gallery-preview,
body:not(.admin-body) .gallery-page {
  background: #eaf1fa;
}

body:not(.admin-body) .media-grid {
  gap: clamp(16px, 2vw, 28px);
}

body:not(.admin-body) .media-card {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 20px 48px rgba(16, 50, 95, 0.12);
}

body:not(.admin-body) .media-card:nth-child(even) {
  transform: translateY(26px);
}

body:not(.admin-body) .media-card figcaption {
  border-top: 5px solid var(--public-gold);
}

body:not(.admin-body) .media-frame {
  aspect-ratio: 5 / 4;
}

body:not(.admin-body) .media-frame[data-media-src] {
  cursor: zoom-in;
  outline: 0;
}

body:not(.admin-body) .media-frame[data-media-src]::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  pointer-events: none;
  transition: border-color 160ms ease, background 160ms ease;
}

body:not(.admin-body) .media-frame[data-media-src]:hover::after,
body:not(.admin-body) .media-frame[data-media-src]:focus-visible::after {
  border-color: var(--public-gold);
  background: rgba(20, 93, 160, 0.1);
}

body:not(.admin-body) .media-expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 9px 12px;
  color: #fff;
  background: rgba(7, 40, 83, 0.9);
  font-size: 0.75rem;
  font-weight: 800;
  pointer-events: none;
}

.media-viewer-open {
  overflow: hidden;
}

.media-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(2, 15, 35, 0.98);
}

.media-lightbox::backdrop {
  background: #020f23;
}

.media-lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(58px, 7vw, 92px) clamp(18px, 5vw, 72px) 24px;
}

.media-lightbox-stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.media-lightbox img,
.media-lightbox video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
}

.media-lightbox figcaption {
  display: grid;
  gap: 4px;
  max-width: 900px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: max(0.9rem, 12px);
  line-height: 1.5;
  text-align: center;
}

.media-lightbox-count {
  color: var(--public-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.media-lightbox-close {
  position: fixed;
  z-index: 3;
  top: 14px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 1.65rem;
  line-height: 1;
}

.media-lightbox-nav {
  position: fixed;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 48px;
  height: 64px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 2.25rem;
  line-height: 1;
  transform: translateY(-50%);
}

.media-lightbox-prev {
  left: 14px;
}

.media-lightbox-next {
  right: 14px;
}

@media (max-width: 640px) {
  .media-lightbox figure {
    padding-inline: 12px;
  }

  .media-lightbox-nav {
    top: auto;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    transform: none;
  }

  .media-lightbox-prev {
    left: 18px;
  }

  .media-lightbox-next {
    right: 18px;
  }
}

body:not(.admin-body) .cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(68px, 9vw, 128px) clamp(22px, 5vw, 84px);
  background: var(--public-blue);
}

body:not(.admin-body) .cta-band::after {
  content: "VISIT";
  position: absolute;
  right: -0.04em;
  bottom: -0.22em;
  color: rgba(255, 255, 255, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(8rem, 22vw, 24rem);
  font-weight: 700;
  pointer-events: none;
}

body:not(.admin-body) .cta-band > * {
  position: relative;
  z-index: 1;
}

body:not(.admin-body) .page-intro {
  position: relative;
  min-height: min(78vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: flex-start;
  padding: clamp(150px, 20vh, 240px) clamp(22px, 7vw, 130px) clamp(70px, 9vw, 120px);
  background-position: center;
}

body:not(.admin-body) .page-intro::after {
  content: "01";
  position: absolute;
  right: clamp(22px, 5vw, 84px);
  bottom: 44px;
  color: rgba(255, 255, 255, 0.28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 12vw, 11rem);
  line-height: 1;
}

body[data-page="history"] .page-intro::after { content: "02"; }
body[data-page="admissions"] .page-intro::after { content: "03"; }
body[data-page="gallery"] .page-intro::after { content: "04"; }
body[data-page="contact"] .page-intro::after { content: "05"; }

body:not(.admin-body) .page-intro > * {
  width: min(1040px, 100%);
  margin-inline: 0;
}

body:not(.admin-body) .page-intro h1 {
  max-width: 14ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7vw, 7.2rem);
  line-height: 0.94;
  text-wrap: balance;
}

body:not(.admin-body) .page-intro > p:last-child {
  max-width: 720px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

body:not(.admin-body) .story-band,
body:not(.admin-body) .admissions-layout,
body:not(.admin-body) .contact-layout {
  gap: clamp(36px, 7vw, 96px);
}

body:not(.admin-body) .principles-list,
body:not(.admin-body) .feature-list,
body:not(.admin-body) .requirements-grid {
  gap: 0;
  background: transparent;
  border-top: 1px solid #cbd8e8;
}

body:not(.admin-body) .principles-list article,
body:not(.admin-body) .feature-list article,
body:not(.admin-body) .requirements-grid article {
  position: relative;
  padding: 34px;
  border-right: 1px solid #cbd8e8;
  border-bottom: 1px solid #cbd8e8;
  background: transparent;
}

body:not(.admin-body) .principles-list article::before,
body:not(.admin-body) .feature-list article::before,
body:not(.admin-body) .requirements-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34px;
  width: 48px;
  height: 5px;
  background: var(--public-gold);
}

body:not(.admin-body) .steps li {
  padding: 30px 30px 30px 94px;
  border: 0;
  border-bottom: 1px solid #cbd8e8;
  border-radius: 0;
  background: transparent;
}

body:not(.admin-body) .steps li::before {
  color: var(--public-green-deep);
  background: var(--public-gold);
}

body:not(.admin-body) .admission-card,
body:not(.admin-body) .contact-panel {
  border: 0;
  border-radius: 0;
  border-top: 8px solid var(--public-gold);
  background: var(--public-green-deep);
  color: #fff;
  box-shadow: 18px 18px 0 var(--public-mint);
}

body:not(.admin-body) .admission-card p,
body:not(.admin-body) .contact-panel p,
body:not(.admin-body) .admission-card dt {
  color: rgba(255, 255, 255, 0.72);
}

body:not(.admin-body) .history-article {
  border-left-color: var(--public-gold);
}

body:not(.admin-body) .alumni-folder {
  padding: 26px 0;
}

body:not(.admin-body) .alumni-folder summary {
  color: var(--public-green-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

body:not(.admin-body) .site-footer {
  padding: 48px clamp(22px, 5vw, 84px);
  border-top: 8px solid var(--public-gold);
  background: #061f42;
}

body:not(.admin-body) .site-footer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

body:not(.admin-body) .site-footer .footer-copyright {
  align-self: center;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
  text-align: right;
}

body:not(.admin-body) .site-footer .footer-copyright p {
  margin: 0;
}

@media (max-width: 760px) {
  body:not(.admin-body) .site-footer .footer-copyright {
    align-self: flex-start;
    margin-left: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
  }
}

html[data-theme="dark"] body:not(.admin-body) {
  --public-ink: #eef4fb;
  background: #08162b;
}

html[data-theme="dark"] body:not(.admin-body) .intro,
html[data-theme="dark"] body:not(.admin-body) .requirements,
html[data-theme="dark"] body:not(.admin-body) .learning-band,
html[data-theme="dark"] body:not(.admin-body) .alumni-section {
  background: #08162b;
}

html[data-theme="dark"] body:not(.admin-body) .value-card,
html[data-theme="dark"] body:not(.admin-body) .program-card,
html[data-theme="dark"] body:not(.admin-body) .media-card {
  background: #102743;
}

@media (max-width: 1080px) {
  body:not(.admin-body) .site-header {
    min-height: 72px;
  }

  body:not(.admin-body) .site-nav {
    inset: 72px 0 auto;
    gap: 0;
    padding-block: 8px 22px;
    border-bottom: 5px solid var(--public-gold);
  }

  body:not(.admin-body) .site-nav a {
    padding: 15px 5vw;
  }

  body:not(.admin-body) .site-nav a::after {
    right: 5vw;
    left: 5vw;
  }

  body:not(.admin-body) .site-nav .admin-signin-link {
    width: fit-content;
    justify-self: start;
    margin: 10px 5vw 0;
    padding: 14px 18px;
  }

  body:not(.admin-body) .hero {
    min-height: 96svh;
    padding-top: 150px;
    margin-top: -72px;
  }

  body:not(.admin-body) .hero h1 {
    max-width: 18ch;
    font-size: clamp(2.8rem, 7vw, 5.2rem);
  }
}

@media (max-width: 640px) {
  body:not(.admin-body) .brand strong {
    font-size: 0.95rem;
  }

  body:not(.admin-body) .brand small {
    font-size: 0.75rem;
  }

  body:not(.admin-body) .hero {
    min-height: 88svh;
    padding-top: 132px;
    padding-bottom: 44px;
  }

  body:not(.admin-body) .hero-content {
    padding-left: 16px;
  }

  body:not(.admin-body) .hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
    line-height: 1.04;
  }

  body:not(.admin-body) .hero p:not(.eyebrow) {
    margin-top: 16px;
    line-height: 1.5;
  }

  body:not(.admin-body) .hero-actions .button {
    width: 100%;
    border-left: 1px solid;
  }

  body:not(.admin-body) .notice-band::before {
    display: none;
  }

  body:not(.admin-body) .section-heading h2,
  body:not(.admin-body) .cta-band h2 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  body:not(.admin-body) .page-intro {
    min-height: 70svh;
    padding-top: 130px;
  }

  body:not(.admin-body) .page-intro h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 13vw, 4.3rem);
  }

  body:not(.admin-body) .page-intro::after {
    display: none;
  }

  body:not(.admin-body) .value-grid,
  body:not(.admin-body) .program-grid {
    border: 0;
  }

  body:not(.admin-body) .value-card,
  body:not(.admin-body) .program-card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #ccd8e8;
  }

  body:not(.admin-body) .media-card:nth-child(even) {
    transform: none;
  }

  body:not(.admin-body) .admission-card,
  body:not(.admin-body) .contact-panel {
    box-shadow: 10px 10px 0 var(--public-mint);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.admin-body) *,
  body:not(.admin-body) *::before,
  body:not(.admin-body) *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Authenticated administration workspace */
.admin-body:not(.login-active) {
  color: #17212b;
  background: #f5f8fc;
}

.admin-body:not(.login-active) .admin-header {
  color: #17212b;
  border-bottom-color: #d8e1ec;
  background: #fff;
}

.admin-body:not(.login-active) .admin-header .brand-mark {
  color: #145da0;
  border-color: #145da0;
}

.admin-body:not(.login-active) .admin-shell {
  min-height: calc(100vh - 76px);
  padding: clamp(24px, 4vw, 52px) max(20px, calc((100vw - 1440px) / 2));
  background: #f5f8fc;
}

.admin-body:not(.login-active) .admin-dashboard {
  width: min(1440px, 100%);
  color: #17212b;
}

.admin-body:not(.login-active) .dashboard-topbar {
  position: relative;
  overflow: hidden;
  align-items: end;
  padding: clamp(24px, 3vw, 36px) clamp(22px, 4vw, 42px);
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.admin-body:not(.login-active) .dashboard-topbar::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 6px;
  background: #d8a92e;
  content: "";
}

.admin-body:not(.login-active) .dashboard-topbar::after {
  position: absolute;
  top: 0;
  right: 0;
  width: min(28vw, 360px);
  height: 100%;
  border-left: 1px solid #e1e8f1;
  background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(20, 93, 160, 0.06) 18px 19px);
  content: "";
  pointer-events: none;
}

.admin-body:not(.login-active) .dashboard-topbar > * {
  position: relative;
  z-index: 1;
}

.admin-body:not(.login-active) .dashboard-topbar h1 {
  color: #17212b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1;
}

.admin-body:not(.login-active) .dashboard-topbar .eyebrow {
  margin-bottom: 8px;
  color: #145da0;
}

.admin-body:not(.login-active) #adminIdentity {
  margin-bottom: 0;
  color: #627086;
}

.admin-body:not(.login-active) .dashboard-grid {
  display: block;
  margin-top: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-body:not(.login-active) .dashboard-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid #d8e1ec;
  scrollbar-width: thin;
}

.admin-body:not(.login-active) .tab-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #506079;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-body:not(.login-active) .tab-button:hover,
.admin-body:not(.login-active) .tab-button:focus-visible {
  color: #145da0;
  border-color: #bfd0e5;
  background: #eaf1f9;
}

.admin-body:not(.login-active) .tab-button.active {
  color: #fff;
  border-color: #145da0;
  background: #145da0;
}

.admin-body:not(.login-active) .dashboard-panels {
  padding: 24px 0 0;
}

.admin-body:not(.login-active) .admin-panel {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 53, 96, 0.08);
}

.admin-body:not(.login-active) .admin-panel h2,
.admin-body:not(.login-active) .admin-panel h3,
.admin-body:not(.login-active) .admin-form label,
.admin-body:not(.login-active) .admin-fieldset legend {
  color: #17212b;
}

.admin-body:not(.login-active) .panel-heading {
  align-items: end;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e1e8f1;
}

.admin-body:not(.login-active) .panel-collapse-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #bfd0e5;
  border-radius: 6px;
  color: #145da0;
  background: #f4f8fc;
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-body:not(.login-active) .panel-collapse-button:hover,
.admin-body:not(.login-active) .panel-collapse-button:focus-visible {
  border-color: #145da0;
  background: #e2edf8;
}

.admin-body:not(.login-active) .admin-panel.is-collapsed {
  padding-bottom: 20px;
}

.admin-body:not(.login-active) .admin-panel.is-collapsed > :not(.panel-heading) {
  display: none;
}

.admin-body:not(.login-active) .admin-panel.is-collapsed .panel-heading {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-body:not(.login-active) .admin-panel .panel-heading p,
.admin-body:not(.login-active) .field-help,
.admin-body:not(.login-active) .section-intro {
  color: #627086;
}

.admin-body:not(.login-active) .admin-form input,
.admin-body:not(.login-active) .admin-form select,
.admin-body:not(.login-active) .admin-form textarea {
  color: #17212b;
  border-color: #c8d5e5;
  background: #fbfcfe;
}

.admin-body:not(.login-active) .admin-form input:focus,
.admin-body:not(.login-active) .admin-form select:focus,
.admin-body:not(.login-active) .admin-form textarea:focus {
  border-color: #145da0;
  box-shadow: 0 0 0 3px rgba(20, 93, 160, 0.14);
}

.admin-body:not(.login-active) .admin-fieldset,
.admin-body:not(.login-active) .upload-preview,
.admin-body:not(.login-active) .branding-preview,
.admin-body:not(.login-active) .logo-manager-preview {
  border-color: #d8e1ec;
  background: #f8fafd;
}

.admin-body:not(.login-active) .branding-preview small,
.admin-body:not(.login-active) .logo-manager-preview small {
  color: #627086;
}

.admin-body:not(.login-active) .panel-divider {
  margin: 34px 0;
  background: #d8e1ec;
}

.admin-body:not(.login-active) .admin-list {
  gap: 10px;
}

.admin-body:not(.login-active) .admin-item,
.admin-body:not(.login-active) .metric-card {
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  background: #fbfcfe;
}

.admin-body:not(.login-active) .admin-media-thumb {
  background: #e8eef6;
}

.field-optional {
  color: #627086;
  font-size: 0.75rem;
  font-weight: 600;
}

.inquiry-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.inquiry-details span {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 7px 9px;
  border: 1px solid #dbe5f0;
  border-radius: 5px;
  color: #42546b;
  background: #f5f8fc;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.inquiry-details b {
  color: #145da0;
  font-weight: 800;
}

@media (max-width: 640px) {
  .admin-body:not(.login-active) .admin-shell {
    padding: 20px 14px 32px;
  }

  .admin-body:not(.login-active) .dashboard-topbar {
    align-items: start;
    padding-bottom: 20px;
  }

  .admin-body:not(.login-active) .dashboard-topbar::after {
    display: none;
  }

  .admin-body:not(.login-active) .dashboard-actions,
  .admin-body:not(.login-active) .dashboard-actions .button {
    width: 100%;
  }

  .admin-body:not(.login-active) .admin-panel {
    padding: 18px;
  }

  .admin-body:not(.login-active) .panel-heading {
    align-items: start;
  }

  .admin-body:not(.login-active) .panel-collapse-button {
    padding-inline: 10px;
  }
}

/* Refined public hero composition */
body:not(.admin-body) .hero {
  min-height: min(100svh, 900px);
  padding-bottom: clamp(54px, 7vh, 82px);
}

body:not(.admin-body) .hero-content {
  width: min(1080px, 100%);
  padding-left: clamp(22px, 2.8vw, 44px);
}

body:not(.admin-body) .hero h1 {
  max-width: 18ch;
  font-size: clamp(2.8rem, 4.6vw, 5.35rem);
  line-height: 0.99;
  white-space: normal;
  text-wrap: balance;
}

body:not(.admin-body) .hero p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 24px;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.65;
}

body:not(.admin-body) .hero .eyebrow,
body:not(.admin-body) .page-intro .eyebrow {
  margin-bottom: clamp(18px, 2.4vw, 28px);
  font-size: clamp(0.82rem, 0.9vw, 1rem);
}

body:not(.admin-body) .hero-actions {
  gap: 10px;
  margin-top: 32px;
}

body:not(.admin-body) .hero-content::after {
  margin-top: 30px;
}

body:not(.admin-body) .page-intro {
  min-height: min(72svh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "title summary";
  column-gap: clamp(44px, 7vw, 120px);
  row-gap: 0;
  align-content: end;
  padding: clamp(150px, 19vh, 210px) clamp(28px, 7vw, 130px) clamp(68px, 8vw, 104px);
}

body:not(.admin-body) .page-intro > * {
  width: auto;
  max-width: none;
}

body:not(.admin-body) .page-intro .eyebrow {
  grid-area: eyebrow;
}

body:not(.admin-body) .page-intro h1 {
  grid-area: title;
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.7rem);
  line-height: 0.98;
  text-wrap: balance;
}

body:not(.admin-body) .page-intro > p:last-child {
  grid-area: summary;
  align-self: end;
  max-width: 440px;
  margin: 0 0 0.35rem;
  padding-left: clamp(20px, 2.4vw, 34px);
  border-left: 3px solid var(--public-gold);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.7;
}

body:not(.admin-body) .page-intro-no-summary {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "eyebrow"
    "title";
}

body:not(.admin-body) .page-intro::after {
  opacity: 0.58;
}

@media (max-width: 820px) {
  body:not(.admin-body) .page-intro {
    min-height: 68svh;
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "summary";
    padding: 132px clamp(22px, 6vw, 48px) 54px;
  }

  body:not(.admin-body) .page-intro h1 {
    max-width: 13ch;
    font-size: clamp(2.45rem, 8.5vw, 4.2rem);
  }

  body:not(.admin-body) .page-intro > p:last-child {
    max-width: 620px;
    margin-top: 28px;
    padding: 20px 0 0;
    border-top: 2px solid var(--public-gold);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  body:not(.admin-body) .hero {
    min-height: 92svh;
    padding: 126px 20px 42px;
  }

  body:not(.admin-body) .hero-content {
    padding-left: 16px;
    border-left-width: 4px;
  }

  body:not(.admin-body) .hero h1 {
    max-width: 15ch;
    font-size: clamp(2rem, 9.2vw, 2.8rem);
    line-height: 1;
  }

  body:not(.admin-body) .hero p:not(.eyebrow) {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.55;
  }

  body:not(.admin-body) .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    margin-top: 26px;
  }

  body:not(.admin-body) .hero-actions .button {
    min-width: 0;
    min-height: 50px;
    padding-inline: 10px;
    font-size: 0.88rem;
  }

  body:not(.admin-body) .hero .button.ghost {
    border-left: 1px solid rgba(255, 255, 255, 0.52);
  }

  body:not(.admin-body) .hero-content::after {
    margin-top: 24px;
  }

  body:not(.admin-body) .page-intro {
    min-height: 66svh;
    padding: 118px 22px 46px;
  }

  body:not(.admin-body) .page-intro h1 {
    max-width: 13ch;
    font-size: clamp(2.25rem, 10.2vw, 3.15rem);
    line-height: 1.01;
  }

  body:not(.admin-body) .page-intro > p:last-child {
    margin-top: 24px;
    padding-top: 18px;
    font-size: 1rem;
    line-height: 1.58;
  }
}

@media (max-width: 360px) {
  body:not(.admin-body) .hero-actions {
    grid-template-columns: 1fr;
  }
}

/* Final narrow-screen constraints for the public header, heroes, and admin sign-in. */
@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body:not(.admin-body) .site-header {
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding-inline: 14px;
  }

  body:not(.admin-body) .site-header .brand,
  .admin-header .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  body:not(.admin-body) .site-header .brand > span:last-child,
  .admin-header .brand > span:last-child {
    min-width: 0;
  }

  body:not(.admin-body) .brand strong,
  body:not(.admin-body) .brand small,
  .admin-header .brand strong,
  .admin-header .brand small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.admin-body) .nav-toggle {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  body:not(.admin-body) :is(.hero, .page-intro, .page-hero, .section, .cta-band, .site-footer),
  body:not(.admin-body) :is(.hero-content, .page-intro > *, .page-hero > *) {
    min-width: 0;
    max-width: 100%;
  }

  body:not(.admin-body) .hero-content {
    width: 100%;
    padding-left: 14px;
  }

  body:not(.admin-body) .hero h1 {
    max-width: 100%;
    font-size: clamp(1.7rem, 8.4vw, 2.2rem);
    overflow-wrap: normal;
    word-break: normal;
  }

  body:not(.admin-body) .page-intro h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 11.5vw, 3.35rem);
    line-height: 1;
    overflow-wrap: normal;
    word-break: normal;
  }

  body:not(.admin-body) :is(.hero p, .page-intro p) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body:not(.admin-body) .hero-actions,
  body:not(.admin-body) .hero-actions .button {
    width: 100%;
    max-width: 100%;
  }

  .admin-header {
    width: 100%;
    min-width: 0;
    gap: 8px;
    padding-inline: 14px;
  }

  .admin-header > .button {
    flex: 0 0 auto;
    padding: 9px 10px;
    font-size: 12px;
  }

  .admin-body.login-active .admin-login {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 42px 16px;
  }

  .admin-body.login-active .login-intro,
  .admin-body.login-active .login-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .admin-body.login-active .login-intro h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.03;
  }

  .admin-body.login-active .login-form {
    padding: 20px;
  }

  .admin-body.login-active .login-form input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  body:not(.admin-body) .hero h1 {
    max-width: 15ch;
    font-size: clamp(2rem, 9.2vw, 2.8rem);
    line-height: 1;
  }

  body:not(.admin-body) .page-intro h1 {
    max-width: 13ch;
    font-size: clamp(2.25rem, 10.2vw, 3.15rem);
    line-height: 1.01;
  }

  body:not(.admin-body) .page-intro > p:last-child {
    max-width: 100%;
  }
}

/* Keep both inner-page hero variants on the same editorial layout. */
body:not(.admin-body) .hero h1 {
  max-width: 24ch;
  font-size: clamp(2.6rem, 3.8vw, 4.65rem);
  line-height: 1;
}

body:not(.admin-body) .hero-title-line {
  display: block;
  text-wrap: balance;
}

body:not(.admin-body) .hero-title-now {
  display: grid;
  width: min(9.5ch, 58%);
  grid-template-columns: minmax(30px, 1fr) auto minmax(30px, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
  align-items: center;
  margin: 0.2em 0 0.12em;
  color: var(--public-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62em;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
}

body:not(.admin-body) .hero-title-now::before,
body:not(.admin-body) .hero-title-now::after {
  height: 2px;
  background: currentColor;
  content: "";
}

body:not(.admin-body) .page-hero {
  min-height: min(72svh, 760px);
}

body:not(.admin-body) .page-hero > div {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "title summary";
  column-gap: clamp(44px, 7vw, 120px);
  align-items: end;
  padding: clamp(150px, 19vh, 210px) clamp(28px, 7vw, 130px) clamp(68px, 8vw, 104px);
}

body:not(.admin-body) .page-hero .eyebrow {
  grid-area: eyebrow;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  font-size: clamp(0.82rem, 0.9vw, 1rem);
}

body:not(.admin-body) .page-hero h1 {
  grid-area: title;
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 5.7rem);
  line-height: 0.98;
  text-wrap: balance;
}

body:not(.admin-body) .page-hero > div > p:last-child {
  grid-area: summary;
  align-self: end;
  max-width: 440px;
  margin: 0 0 0.35rem;
  padding-left: clamp(20px, 2.4vw, 34px);
  border-left: 3px solid var(--public-gold);
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.7;
}

body:not(.admin-body) .page-hero-no-summary > div {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "eyebrow"
    "title";
}

@media (max-width: 820px) {
  body:not(.admin-body) .page-hero > div {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "summary";
    padding: 132px clamp(22px, 6vw, 48px) 54px;
  }

  body:not(.admin-body) .page-hero h1 {
    max-width: 13ch;
    font-size: clamp(2.45rem, 8.5vw, 4.2rem);
  }

  body:not(.admin-body) .page-hero > div > p:last-child {
    max-width: 620px;
    margin-top: 28px;
    padding: 20px 0 0;
    border-top: 2px solid var(--public-gold);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  body:not(.admin-body) .hero h1 {
    max-width: 17ch;
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  body:not(.admin-body) .hero-title-now {
    width: min(9ch, 72%);
    margin-block: 0.28em 0.2em;
    font-size: 0.68em;
  }

  body:not(.admin-body) .page-hero {
    min-height: 66svh;
  }

  body:not(.admin-body) .page-hero > div {
    padding: 118px 22px 46px;
  }

  body:not(.admin-body) .page-hero h1 {
    max-width: 13ch;
    font-size: clamp(2.25rem, 10.2vw, 3.15rem);
    line-height: 1.01;
  }

  body:not(.admin-body) .page-hero > div > p:last-child {
    margin-top: 24px;
    padding-top: 18px;
    font-size: 1rem;
    line-height: 1.58;
  }
}
