/* Shared styles for the SDA Inter College site (homepage + login). */
:root {
  --bg: #f3f7fc;
  --surface: #ffffff;
  --surface-2: #dfeaf6;
  --text: #0f2236;
  --text-muted: #506276;
  --border: #cddcec;
  --brand: #155a9c;
  --brand-ink: #ffffff;
  --accent: #e39a1f;
  --accent-ink: #1a1300;
  --eyebrow-bg: #fde4b8;
  --eyebrow-text: #7a4a00;
  --shadow: rgba(21, 90, 156, 0.14);
  --focus: #155a9c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07192e;
    --surface: #0d2238;
    --surface-2: #123355;
    --text: #ece7d6;
    --text-muted: #9bb0c6;
    --border: #2b4a6b;
    --brand: #7db6e6;
    --brand-ink: #07192e;
    --accent: #ffbf3a;
    --accent-ink: #1a1300;
    --eyebrow-bg: #3a2e0c;
    --eyebrow-text: #e6b85a;
    --shadow: rgba(0, 0, 0, 0.5);
    --focus: #ffbf3a;
  }
}
:root[data-theme="dark"] {
  --bg: #07192e;
  --surface: #0d2238;
  --surface-2: #123355;
  --text: #ece7d6;
  --text-muted: #9bb0c6;
  --border: #2b4a6b;
  --brand: #7db6e6;
  --brand-ink: #07192e;
  --accent: #ffbf3a;
  --accent-ink: #1a1300;
  --eyebrow-bg: #3a2e0c;
  --eyebrow-text: #e6b85a;
  --shadow: rgba(0, 0, 0, 0.5);
  --focus: #ffbf3a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: "Newsreader", ui-serif, Georgia, serif;
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
  color: var(--text);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.02em;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 24px;
}
section { padding-block: 72px; }
@media (max-width: 640px) { section { padding-block: 48px; } }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow-text);
  background: var(--eyebrow-bg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 0.82rem;
  padding-block: 8px;
  text-align: center;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-ink) 15%, transparent);
}
.utility-bar strong { font-weight: 700; }

/* ---------- Nav ---------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--border);
}
.brand-text .name {
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand-text .place {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.brand-text .name { white-space: nowrap; }
@media (max-width: 480px) {
  .brand-text .place { display: none; }
  .nav-row { gap: 10px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 9px 16px; }
}
@media (max-width: 360px) {
  .brand-text .name { white-space: normal; font-size: 0.95rem; }
  .brand-mark { width: 38px; height: 38px; }
  .nav-cta .btn { padding: 8px 12px; }
  details.mobile-menu summary { padding: 8px 10px; }
}
nav.primary-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
}
nav.primary-links a { text-decoration: none; opacity: 0.85; }
nav.primary-links a:hover { opacity: 1; color: var(--brand); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.06); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--surface-2); }
.btn-ghost-brand { background: transparent; color: var(--brand); border: 1px solid var(--border); }
:root[data-theme="dark"] .btn-ghost-brand { color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ghost-brand { color: var(--text); } }

.nav-toggle { display: none; }
details.mobile-menu { display: none; }
@media (max-width: 880px) {
  nav.primary-links { display: none; }
  details.mobile-menu { display: block; }
  details.mobile-menu summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.85rem;
    font-weight: 600;
  }
  details.mobile-menu summary::-webkit-details-marker { display: none; }
  details.mobile-menu:not([open]) .mobile-menu-panel { display: none; }
  details.mobile-menu[open] summary { background: var(--surface-2); }
  .mobile-menu-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 24px;
    right: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 18px 40px var(--shadow);
    display: grid;
    gap: 4px;
  }
  .mobile-menu-panel a {
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
  }
  .mobile-menu-panel a:hover { background: var(--surface-2); }
}

/* ---------- Hero (fixed dark-navy world regardless of theme) ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #07192e 0%, #155a9c 55%, #0f4478 100%);
  color: #f6f2e4;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 360px at 88% 8%, rgba(240, 180, 41, 0.16), transparent 60%),
    radial-gradient(700px 460px at 6% 92%, rgba(143, 179, 242, 0.14), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-block: 64px 56px;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 40px; }
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border: 1px solid rgba(246, 242, 228, 0.28);
  color: rgba(246, 242, 228, 0.92);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(246, 242, 228, 0.06);
}
.hero h1 {
  color: #f6f2e4;
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  font-weight: 600;
  animation: rise 700ms ease both;
}
.hero h1 em { font-style: italic; color: #ffbf3a; font-weight: 500; }
.hero p.lede {
  margin-top: 20px;
  max-width: 46ch;
  color: rgba(246, 242, 228, 0.78);
  font-size: 1.08rem;
  animation: rise 700ms ease 80ms both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  animation: rise 700ms ease 140ms both;
}
.btn-lg { padding: 14px 24px; font-size: 0.96rem; }
.btn-outline-hero {
  background: transparent;
  border: 1px solid rgba(246, 242, 228, 0.35);
  color: #f6f2e4;
}
.btn-outline-hero:hover { background: rgba(246, 242, 228, 0.08); }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(4, 10, 26, 0.55);
  border: 1px solid rgba(246, 242, 228, 0.14);
  animation: rise 800ms ease 100ms both;
}
.hero-card img { width: 100%; height: 360px; object-fit: cover; }
@media (max-width: 640px) { .hero-card img { height: 260px; } }
.hero-card-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(10, 20, 45, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(246, 242, 228, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.hero-card-caption .label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 242, 228, 0.6);
}
.hero-card-caption .value {
  font-family: "Newsreader", serif;
  font-size: 1.02rem;
  color: #f6f2e4;
  margin-top: 4px;
}

.stat-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(246, 242, 228, 0.14);
}
@media (max-width: 720px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-strip .stat {
  padding: 22px 24px;
  border-right: 1px solid rgba(246, 242, 228, 0.12);
}
.stat-strip .stat:last-child { border-right: none; }
.stat-strip .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffbf3a;
  font-variant-numeric: tabular-nums;
}
.stat-strip .cap {
  font-size: 0.8rem;
  color: rgba(246, 242, 228, 0.68);
  margin-top: 4px;
}

/* ---------- Section headers ---------- */
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 14px; }
.section-head p { color: var(--text-muted); margin-top: 12px; font-size: 1.02rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-photo img { height: 420px; object-fit: cover; }
@media (max-width: 640px) { .about-photo img { height: 280px; } }
.about-copy p { color: var(--text-muted); margin-top: 16px; font-size: 1.02rem; }
.value-list {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}
.value-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.value-item:first-child { border-top: none; padding-top: 0; }
.value-item .glyph {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--eyebrow-text);
  background: var(--eyebrow-bg);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-item h3 { font-size: 1.02rem; font-weight: 700; font-family: "Public Sans", sans-serif; }
.value-item p { color: var(--text-muted); font-size: 0.94rem; margin: 4px 0 0; }

/* ---------- Admissions ---------- */
.admissions {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.adm-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 44px;
}
@media (max-width: 720px) { .adm-top { grid-template-columns: 1fr; } }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  position: relative;
}
.step .idx {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.step h3 { font-size: 1.02rem; margin-top: 10px; font-family: "Public Sans", sans-serif; font-weight: 700; }
.step p { color: var(--text-muted); font-size: 0.92rem; margin-top: 8px; }
.key-dates {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.date-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.date-chip .d { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 0.88rem; color: var(--brand); }
:root[data-theme="dark"] .date-chip .d { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .date-chip .d { color: var(--accent); } }
.date-chip .t { font-size: 0.86rem; color: var(--text-muted); }

/* ---------- Academics ---------- */
.stream-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .stream-grid { grid-template-columns: 1fr; } }
.stream-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  background: var(--surface);
}
.stream-card .tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stream-card h3 { font-size: 1.2rem; margin-top: 8px; }
.stream-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.stream-card li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.stream-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.board-note {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--surface-2);
}
.board-note .mono { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Fees ---------- */
.fees-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
table.fees {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--surface);
}
table.fees th, table.fees td {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
table.fees thead th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
}
table.fees td.amt, table.fees th.amt { font-variant-numeric: tabular-nums; font-family: "IBM Plex Mono", monospace; }
table.fees tbody tr:last-child td { border-bottom: none; }
.fees-note { margin-top: 18px; font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Announcements ---------- */
.announce-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.announce-item {
  background: var(--surface);
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
}
@media (max-width: 700px) { .announce-item { grid-template-columns: 1fr; row-gap: 8px; } }
.announce-item .date { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--text-muted); }
.announce-item h3 { font-size: 1rem; font-family: "Public Sans", sans-serif; font-weight: 700; }
.announce-item p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.pill { font-size: 0.7rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; height: fit-content; }
.pill-new { background: var(--eyebrow-bg); color: var(--eyebrow-text); }
.pill-note { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

/* ---------- Gallery ---------- */
.gallery-grid-even {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) { .gallery-grid-even { grid-template-columns: 1fr; } }
.gallery-frame { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.gallery-frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery-frame.tall img { height: 420px; }
@media (max-width: 720px) { .gallery-frame.tall img { height: 280px; } }
.gallery-frame figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(10, 20, 45, 0.68);
  color: #f6f2e4;
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
}
.gallery-col { display: grid; gap: 18px; }
.gallery-recent-head {
  margin-top: 44px;
  margin-bottom: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.gallery-recent-head h3 {
  font-size: 1.2rem;
  font-family: "Newsreader", serif;
  font-weight: 600;
}
.gallery-recent-head p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 6px;
}
.gallery-recent-head .btn { margin-top: 14px; }
.gallery-grid-dynamic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.gallery-grid-dynamic .gallery-frame img { height: 220px; }
.gallery-empty-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.info-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  background: var(--surface);
  display: grid;
  gap: 20px;
}
.info-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.info-row .k { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.info-row .v { font-size: 0.98rem; margin-top: 2px; overflow-wrap: anywhere; }
.info-row .glyph {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.map-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}
.map-graphic { position: relative; height: 130px; margin: 8px 0 18px; }
.map-graphic svg { width: 100%; height: 100%; }

/* ---------- Footer ---------- */
footer {
  background: var(--brand);
  color: var(--brand-ink);
  padding-block: 52px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: #fff; }
.footer-brand .name { font-family: "Newsreader", serif; font-size: 1.05rem; }
footer p.desc { color: color-mix(in srgb, var(--brand-ink) 68%, transparent); font-size: 0.9rem; max-width: 32ch; }
footer h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand-ink) 60%, transparent);
  margin-bottom: 14px;
}
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a { text-decoration: none; color: color-mix(in srgb, var(--brand-ink) 88%, transparent); font-size: 0.9rem; }
footer a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--brand-ink) 18%, transparent);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--brand-ink) 55%, transparent);
}

/* ---------- Staff login page ---------- */
.login-stage {
  min-height: calc(100vh - 220px);
  padding: 96px 16px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Navy band behind the top of the card, matching the homepage hero. */
  background: linear-gradient(180deg, #07192e 0, #155a9c 230px, var(--bg) 230px);
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 24px 60px var(--shadow);
  padding: 76px 32px 30px;
  text-align: center;
  animation: rise 600ms ease both;
}
@media (max-width: 420px) { .login-card { padding: 72px 20px 24px; } }
.login-avatar {
  position: absolute;
  top: -56px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 5px solid var(--surface);
  box-shadow: 0 10px 26px var(--shadow);
  background: var(--surface);
}
.login-card h1 { font-size: 1.9rem; margin-top: 14px; }
.login-sub { color: var(--text-muted); margin: 6px 0 22px; }
.login-alert {
  text-align: left;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.login-alert.err { background: #fbe9e7; color: #8a2f26; border: 1px solid #f3c8c2; }
.login-alert.ok  { background: #e4f3e3; color: #205c26; border: 1px solid #bfe2bd; }
.login-form { display: grid; gap: 6px; text-align: left; }
.login-form label { font-size: 0.85rem; font-weight: 600; margin-top: 10px; }
.login-form input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.login-form input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.pw-field { position: relative; }
.pw-field input { padding-right: 74px; }
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.pw-toggle:hover { background: var(--surface-2); color: var(--text); }
.login-submit { justify-content: center; margin-top: 20px; width: 100%; }
.login-help { color: var(--text-muted); font-size: 0.85rem; margin: 18px 0 0; }
.login-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.login-back { margin-top: 22px; font-size: 0.9rem; color: var(--text-muted); text-decoration: none; }
.login-back:hover { color: var(--text); text-decoration: underline; }
.login-footer { padding-block: 0 24px; }
.login-footer .footer-bottom { margin-top: 0; border-top: none; }

/* "Edit this section" shortcut on the homepage photo (Administrators only). */
.hero-edit {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: #1a1300;
  background: #ffbf3a;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(4, 10, 26, 0.35);
}
.hero-edit:hover { filter: brightness(1.06); }

/* ---------- Testimonials (navy band, matching the homepage hero) ---------- */
.testimonials {
  background: linear-gradient(180deg, #07192e 0%, #155a9c 100%);
  color: #f6f2e4;
}
.testimonials .section-head h2 { color: #f6f2e4; margin-top: 10px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; }
.testi-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffbf3a;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 8px;
}
.testi {
  margin: 0;
  padding: 36px 36px 8px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(246, 242, 228, 0.16);
}
.testi-mark { width: 26px; height: 20px; fill: #ffbf3a; margin-bottom: 22px; flex-shrink: 0; }
.testi blockquote {
  margin: 0;
  font-family: "Newsreader", ui-serif, Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.5;
  color: #f6f2e4;
  flex: 1;
}
.testi figcaption {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(246, 242, 228, 0.16);
  display: grid;
  gap: 4px;
}
.testi-name { font-weight: 700; font-size: 0.95rem; color: #ffffff; }
.testi-role { font-size: 0.86rem; color: rgba(246, 242, 228, 0.62); }
.testi-empty {
  color: rgba(246, 242, 228, 0.75);
  border: 1px dashed rgba(246, 242, 228, 0.3);
  border-radius: 14px;
  padding: 20px;
  max-width: 640px;
}
@media (max-width: 640px) {
  .testi { border-left: none; border-top: 1px solid rgba(246, 242, 228, 0.16); padding: 28px 0 8px; }
  .testi-grid .testi:first-child { border-top: none; padding-top: 12px; }
  .testi blockquote { font-size: 1.12rem; }
}

/* Session choice on the login page */
.login-form select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  height: 50px;
}
.login-form select:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.login-session { margin: -12px 0 20px; font-size: 0.9rem; color: var(--text-muted); }
.login-session a { color: var(--brand); font-weight: 700; }

/* Keep header buttons ("Login" / "Log out") on one line. */
.nav-cta .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .brand-mark { width: 40px; height: 40px; }
  .brand-lockup { gap: 8px; }
  .brand-text .name { font-size: 0.98rem; }
  .nav-cta .btn { padding: 8px 12px; font-size: 0.85rem; }
  details.mobile-menu summary { padding: 8px 10px; }
}

/* Current page in the header menu (used on the Management pages). */
nav.primary-links a[aria-current="page"] { opacity: 1; color: var(--brand); font-weight: 700; }
