/**
 * Site-wide ambient background, dual-tone layers, and partition depth.
 */

:root {
  /* Soft ice blue — sky/cyan family, one step darker than sky-50 */
  --site-cream: #e0f2fe;
  --site-cream-light: #f0f9ff;
  --site-cream-pale: #f8fdff;
  --site-cream-deep: #bae6fd;
  --site-rose: #7dd3fc;
  --site-rose-deep: #67d8f7;
  --site-aqua-glow: rgba(8, 145, 178, 0.16);
  --site-cyan-glow: rgba(34, 211, 238, 0.18);
  --site-link: #155e75;
  --site-link-hover: #0e7490;
  --site-footer-gradient: linear-gradient(
    180deg,
    color-mix(in srgb, var(--site-cream) 92%, white) 0%,
    var(--site-cream-deep) 100%
  );
  --site-card-border: rgba(14, 116, 144, 0.34);
  --site-card-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 1px 3px rgba(12, 74, 110, 0.1),
    0 6px 16px rgba(12, 74, 110, 0.12),
    0 14px 32px -6px rgba(12, 74, 110, 0.2);
  --site-card-shadow-hover:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 4px 10px rgba(12, 74, 110, 0.14),
    0 18px 40px -8px rgba(12, 74, 110, 0.26),
    0 0 0 1px rgba(6, 182, 212, 0.22);
  --site-partition-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 -2px 0 rgba(12, 74, 110, 0.04) inset,
    0 2px 4px rgba(12, 74, 110, 0.1),
    0 10px 24px -4px rgba(12, 74, 110, 0.18),
    0 22px 48px -10px rgba(12, 74, 110, 0.22);
  --site-partition-shadow-deep:
    0 2px 0 rgba(255, 255, 255, 1) inset,
    0 -3px 0 rgba(12, 74, 110, 0.06) inset,
    0 6px 14px rgba(12, 74, 110, 0.12),
    0 22px 48px -8px rgba(12, 74, 110, 0.26),
    0 40px 80px -20px rgba(12, 74, 110, 0.24);
}

/* ── Fixed atmosphere (injected by site.js) ── */
#site-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--site-cream);
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.site-ready #site-atmosphere {
  opacity: 1;
}

/* Dual-tone split: warm cream (left) ↔ rose-gold (right) */
#site-atmosphere .site-atmosphere__dual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      112deg,
      var(--site-cream) 0%,
      var(--site-cream-deep) 38%,
      var(--site-rose) 62%,
      var(--site-rose-deep) 100%
    );
}

/* Visible partition seam between the two background tones */
#site-atmosphere .site-atmosphere__dual-stripe {
  position: absolute;
  inset: -10% -20%;
  background: linear-gradient(
    112deg,
    transparent 0%,
    transparent 44%,
    rgba(34, 211, 238, 0.22) 49.2%,
    rgba(8, 145, 178, 0.18) 50%,
    rgba(34, 211, 238, 0.22) 50.8%,
    transparent 56%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.site-ready #site-atmosphere .site-atmosphere__dual-stripe {
  opacity: 0.85;
}

#site-atmosphere .site-atmosphere__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 42% at 8% 22%, var(--site-cyan-glow), transparent 58%),
    radial-gradient(ellipse 48% 40% at 92% 18%, var(--site-aqua-glow), transparent 55%),
    radial-gradient(ellipse 55% 45% at 78% 82%, rgba(8, 145, 178, 0.1), transparent 58%),
    radial-gradient(ellipse 40% 35% at 18% 78%, rgba(103, 232, 249, 0.12), transparent 52%);
  animation: site-mesh-drift 28s ease-in-out infinite alternate;
}

#site-atmosphere .site-atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(8, 145, 178, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
}

.site-atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}

.site-atmosphere__orb--1 {
  width: min(44vw, 440px);
  height: min(44vw, 440px);
  top: 6%;
  left: -6%;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.9) 0%, rgba(34, 211, 238, 0.24) 45%, transparent 72%);
  animation: site-orb-float-1 22s ease-in-out infinite;
}

.site-atmosphere__orb--2 {
  width: min(52vw, 500px);
  height: min(52vw, 500px);
  top: 32%;
  right: -10%;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.85) 0%, rgba(8, 145, 178, 0.28) 50%, transparent 72%);
  animation: site-orb-float-2 26s ease-in-out infinite;
}

.site-atmosphere__orb--3 {
  width: min(40vw, 380px);
  height: min(40vw, 380px);
  bottom: 4%;
  left: 28%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.32) 0%, transparent 70%);
  animation: site-orb-float-3 20s ease-in-out infinite;
}

@keyframes site-mesh-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(2%, -1.5%) scale(1.04);
  }
}

@keyframes site-orb-float-1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(4%, 6%);
  }
}

@keyframes site-orb-float-2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-5%, 4%);
  }
}

@keyframes site-orb-float-3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(3%, -5%);
  }
}

/* ── Body & layout stacking ── */
body.site-body {
  position: relative;
  background: transparent !important;
  min-height: 100vh;
  isolation: isolate;
}

body.site-body site-navbar,
body.site-body site-footer {
  position: relative;
  z-index: 2;
}

/* Floating Facebook / YouTube rail — always above footer & content */
#site-social-rail.site-social-rail {
  position: fixed;
  right: 0;
  z-index: 60;
}

body.site-body #site-footer.site-footer-glass {
  position: relative;
  z-index: 3;
  background: var(--site-footer-gradient) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(8, 145, 178, 0.12) !important;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.6) inset,
    0 -16px 40px -12px rgba(12, 74, 110, 0.1);
}

body.site-body #site-footer.site-footer-compact {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

#site-footer .footer-columns {
  width: 100%;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) and (max-width: 1023px) {
  #site-footer .footer-columns--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
    row-gap: 2rem;
  }

  #site-footer .footer-columns--4 > :first-child {
    grid-column: 1 / -1;
  }

  #site-footer .footer-columns--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
    row-gap: 2rem;
  }

  #site-footer .footer-columns--3 > :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  #site-footer .footer-columns--4 {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 2.5rem;
  }

  #site-footer .footer-columns--4 > * {
    flex: 1 1 0;
    min-width: 0;
  }

  #site-footer .footer-columns--3 {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 2.5rem;
  }

  #site-footer .footer-columns--3 > * {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (min-width: 640px) {
  body.site-body #site-footer.site-footer-compact {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

body.site-body main {
  position: relative;
  z-index: 1;
}

/* ── Partition blocks: cards & widgets only (not page sections) ── */
.site-partition {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--site-card-border);
  box-shadow: var(--site-partition-shadow);
}

.site-partition::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(8, 145, 178, 0.1);
}

/* ── Full-width section bands (standard edge-to-edge layout) ── */
.site-band {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  box-shadow: none;
}

.site-band::after {
  display: none;
}

.site-band--cream {
  background: linear-gradient(180deg, var(--site-cream) 0%, var(--site-cream-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.site-band--rose {
  background: linear-gradient(180deg, var(--site-cream-deep) 0%, var(--site-rose) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.site-band--cream + .site-band--rose,
.site-band--rose + .site-band--cream {
  border-top: 1px solid rgba(8, 145, 178, 0.08);
}

/* Home — Highlights: lighter ice-blue band */
body.site-body[data-page="home"] #home-highlight-section {
  background: linear-gradient(
    180deg,
    var(--site-cream-pale) 0%,
    var(--site-cream-light) 100%
  ) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* Home — Quick announcements: match footer surface */
body.site-body[data-page="home"] #announcements {
  background: var(--site-footer-gradient) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(8, 145, 178, 0.12);
}

body.site-body[data-page="home"] #home-highlight-section + .site-legacy-band {
  border-top-color: rgba(8, 145, 178, 0.06);
}

/* Home — About our school: extra-light band */
body.site-body[data-page="home"] .home-about-band {
  background: linear-gradient(
    180deg,
    var(--site-cream-pale) 0%,
    var(--site-cream-light) 100%
  ) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* Inline action links — View all news →, Read more →, footer contact */
.site-action-link {
  color: var(--site-link);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.site-action-link:hover {
  color: var(--site-link-hover);
}

.group:hover .site-action-link {
  color: var(--site-link-hover);
}

/* Maroon legacy strip — full bleed like the nav */
.site-legacy-band {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow:
    0 4px 16px -4px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-legacy-band #home-legacy {
  width: 100%;
}

/* ── Glass / 3D panel utilities ── */
.site-glass {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(248, 250, 252, 0.76) 100%
  ) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, 0.78) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 20px -6px rgba(12, 74, 110, 0.12),
    0 20px 40px -12px rgba(12, 74, 110, 0.14),
    0 0 0 1px rgba(8, 145, 178, 0.05);
}

.site-glass-deep {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 248, 238, 0.84) 100%
  ) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: var(--site-partition-shadow-deep);
}

.site-card-3d {
  transform: translateZ(0);
  transform-style: preserve-3d;
  border: 1px solid var(--site-card-border) !important;
  box-shadow: var(--site-card-shadow);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}

.site-card-3d:hover {
  transform: translateY(-6px) scale(1.008);
  border-color: rgba(6, 182, 212, 0.45) !important;
  box-shadow: var(--site-card-shadow-hover) !important;
}

/* ── Header & footer ── */
body.site-body #site-header {
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: rgba(8, 145, 178, 0.1) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 36px -10px rgba(12, 74, 110, 0.14);
}

body.site-body #site-header > .relative.bg-gradient-to-r {
  background: linear-gradient(
    90deg,
    var(--site-cream) 0%,
    color-mix(in srgb, var(--site-cream) 55%, white) 50%,
    var(--site-cream-deep) 100%
  ) !important;
}

/* Header identity — standard school title stack */
.site-header-identity {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-header-est {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #155e75;
}

.site-header-name {
  margin: 0.2rem 0 0;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #0e7490;
}

.site-header-motto {
  margin: 0.35rem 0 0;
  max-width: 28rem;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  color: #1e293b;
}

@media (min-width: 640px) {
  .site-header-name {
    font-size: 1.45rem;
  }

  .site-header-motto {
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .site-header-name {
    font-size: 1.6rem;
  }
}

/* Header info boxes — vertically centered in the title strip */
.site-header-brand-row {
  align-items: center;
}

.site-header-brand-link {
  align-self: center;
}

/* Circular logo — blends PNG white box into header gradient */
.site-logo-mark {
  display: flex;
  height: 4rem;
  width: 4rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  background: linear-gradient(145deg, var(--site-cream), rgba(255, 255, 255, 0.92));
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.1);
}

.site-logo-mark--initials {
  border: 2px solid rgba(8, 145, 178, 0.18);
  background: linear-gradient(145deg, var(--site-cream), color-mix(in srgb, var(--site-cream) 40%, white));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.site-logo-mark__img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.2rem;
}

@media (min-width: 640px) {
  .site-logo-mark {
    height: 4.75rem;
    width: 4.75rem;
  }
}

.site-header-info-boxes {
  align-self: center;
}

@media (min-width: 640px) {
  .site-header-info-boxes {
    align-items: stretch;
  }
}

.site-header-info-boxes__item {
  display: flex;
  align-items: stretch;
}

.site-header-info-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 4.125rem;
  padding: 0.35rem 0.4rem;
  overflow: hidden;
}

.site-header-info-card__title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header-info-card__text {
  margin: 0.2rem 0 0;
  font-size: 0.5625rem;
  font-weight: 400;
  line-height: 1.3;
  color: #0f172a;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

@media (min-width: 640px) {
  .site-header-info-card {
    padding: 0.4rem 0.45rem;
    min-height: 4.25rem;
  }

  .site-header-info-card__title {
    font-size: 0.75rem;
  }

  .site-header-info-card__text {
    font-size: 0.6rem;
  }
}

/* ── Home page: full-width bands ── */
body.site-body[data-page="home"] #home-hero.site-hero-panel {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, white 14%, var(--site-cream)) 0%,
    var(--site-cream) 100%
  ) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 -1px 0 rgba(8, 145, 178, 0.06);
  border-bottom: 1px solid rgba(8, 145, 178, 0.06);
}

body.site-body[data-page="home"] #hero-slider {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 16px 40px -12px rgba(12, 74, 110, 0.2),
    0 0 0 1px rgba(8, 145, 178, 0.06) !important;
}

/* ── Inner pages: standard full-width content (no floating box) ── */
body.site-body[data-page]:not([data-page="home"]) main {
  background: linear-gradient(
    180deg,
    var(--site-cream) 0%,
    var(--site-cream-deep) 52%,
    var(--site-rose) 100%
  );
}

body.site-body[data-page="contact"] {
  background-color: var(--site-cream);
}

body.site-body[data-page="contact"]:not([data-page="home"]) main,
body.site-body[data-page="contact"]:not([data-page="home"]) main.site-band--cream {
  background: linear-gradient(180deg, var(--site-cream) 0%, var(--site-cream-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.site-body[data-page="contact"] #site-atmosphere {
  background: var(--site-cream);
}

body.site-body[data-page="contact"] #site-atmosphere .site-atmosphere__dual {
  background: linear-gradient(180deg, var(--site-cream) 0%, var(--site-cream-deep) 100%);
}

body.site-body[data-page="contact"] #site-atmosphere .site-atmosphere__mesh,
body.site-body[data-page="contact"] #site-atmosphere .site-atmosphere__dual-stripe,
body.site-body[data-page="contact"] #site-atmosphere .site-atmosphere__grid,
body.site-body[data-page="contact"] #site-atmosphere .site-atmosphere__orb {
  display: none;
}

@media (min-width: 1024px) {
  .home-alumni-featured > .flex {
    min-height: 100%;
  }

  .contact-map-form .contact-map-col {
    min-height: 100%;
  }

  .contact-map-form .contact-map-frame {
    min-height: 100%;
  }
}

body.site-body[data-page]:not([data-page="home"]) main > .mx-auto.max-w-7xl,
body.site-body:not([data-page]) main > .mx-auto.max-w-lg {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* ── Auto-glass content cards ── */
body.site-body .site-auto-glass,
body.site-body announcement-card article,
body.site-body #home-quick-announcements > li > article {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(248, 250, 252, 0.82) 100%
  ) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--site-card-border) !important;
  box-shadow: var(--site-card-shadow) !important;
}

body.site-body #page-about section {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.86) 0%,
    var(--site-cream) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--site-card-border);
  box-shadow: var(--site-card-shadow);
}

body.site-body #page-about section:nth-child(even) {
  background: linear-gradient(
    145deg,
    var(--site-cream) 0%,
    var(--site-cream-deep) 100%
  );
}

body.site-body #page-about section + section {
  margin-top: 1.5rem;
}

body.site-body #page-about #chairman .site-chairman-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

body.site-body #page-about #chairman .site-chairman-card > * {
  min-width: 0;
}

/* Principal's Desk standalone — lift effect, fuller layout, sidebar height match */
body.about-standalone-principal #principal .principal-standalone-explore {
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  body.about-standalone-principal main .inner-page-balanced-grid {
    align-items: stretch;
  }

  body.about-standalone-principal main .inner-page-balanced-grid > div:first-child {
    display: flex;
    flex-direction: column;
  }

  body.about-standalone-principal #page-about.inner-page-balanced-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
  }

  body.about-standalone-principal #page-about > #principal.site-about-principal-standalone {
    flex: 1;
  }

  body.about-standalone-principal #page-sidebar.inner-page-balanced-sidebar {
    display: flex;
    flex-direction: column;
  }

  body.about-standalone-principal #page-sidebar.inner-page-balanced-sidebar .site-sidebar-panel:last-child {
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  body.about-standalone-principal
    #page-sidebar.inner-page-balanced-sidebar
    .site-sidebar-panel:last-child
    > a.site-sidebar-panel__card {
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  body.about-standalone-principal
    #page-sidebar.inner-page-balanced-sidebar
    .site-sidebar-panel:last-child
    > a.site-sidebar-panel__card
    > div.p-4 {
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  body.about-standalone-principal
    #page-sidebar.inner-page-balanced-sidebar
    .site-sidebar-panel:last-child
    .site-action-link {
    margin-top: auto;
    padding-top: 0.5rem;
  }
}

/* Sidebar — self-contained panels (Related info, Fund appeal) */
body.site-body #page-sidebar {
  min-width: 0;
}

body.site-body #page-sidebar.site-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.site-sidebar-panel {
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--site-card-border);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.94) 0%,
    var(--site-cream) 100%
  );
  padding: 1.125rem 1rem;
  box-shadow: var(--site-card-shadow);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease;
}

.site-sidebar-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--site-card-shadow-hover);
  border-color: rgba(6, 182, 212, 0.4);
}

.site-sidebar-panel__card {
  max-width: 100%;
  min-width: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 8px 20px -10px rgba(12, 74, 110, 0.14),
    0 0 0 1px rgba(8, 145, 178, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.site-sidebar-panel__card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 28px -10px rgba(12, 74, 110, 0.18),
    0 0 0 1px rgba(34, 211, 238, 0.1);
}

@media (min-width: 1024px) {
  .site-sidebar-panel {
    padding: 1.25rem 1.125rem;
  }
}

.site-sidebar-panel h2 {
  overflow-wrap: anywhere;
}

.site-sidebar-panel ul {
  margin: 0;
  padding: 0;
}

.site-sidebar-panel ul.site-sidebar-related-links {
  margin-top: 1.25rem;
}

@media (min-width: 1024px) {
  .site-sidebar-panel ul.site-sidebar-related-links {
    margin-top: 1.5rem;
  }
}

.site-sidebar-panel a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-sidebar-panel a.site-sidebar-link {
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(34, 211, 238, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .site-sidebar-panel:hover,
  .site-sidebar-panel__card:hover {
    transform: none;
  }
}

.site-sidebar-panel__card img {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Rendered cards site-wide */
body.site-body main .rounded-2xl.bg-white,
body.site-body main .rounded-xl.bg-white,
body.site-body main figure.rounded-2xl.border.bg-white,
body.site-body main .rounded-2xl.border,
body.site-body main .rounded-xl.border {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.94) 0%,
    var(--site-cream) 100%
  ) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--site-card-border) !important;
  box-shadow: var(--site-card-shadow) !important;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
}

body.site-body main .rounded-2xl.bg-white:hover,
body.site-body main figure.rounded-2xl.border.bg-white:hover,
body.site-body main .rounded-2xl.border:hover,
body.site-body main .rounded-xl.border:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.42) !important;
  box-shadow: var(--site-card-shadow-hover) !important;
}

body.site-body main .rounded-2xl.bg-mes-light,
body.site-body main .rounded-xl.bg-mes-light {
  background: linear-gradient(
    145deg,
    var(--site-cream) 0%,
    var(--site-cream-deep) 100%
  ) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 28px -10px rgba(12, 74, 110, 0.14);
}

/* Header info boxes */
body.site-body #site-header a[class*="border-slate-200"][class*="bg-white"],
body.site-body #site-header div[class*="border-slate-200"][class*="bg-white"],
body.site-body #site-header .site-glass {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 10px 24px -8px rgba(12, 74, 110, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  #site-atmosphere .site-atmosphere__mesh,
  .site-atmosphere__orb {
    animation: none !important;
  }

  .site-card-3d:hover {
    transform: none;
  }
}

/* ── Home highlight poster ── */
.site-highlight-poster {
  position: relative;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.25),
    0 24px 60px -16px rgba(0, 0, 0, 0.45);
}

.site-highlight-poster__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
}

.site-highlight-poster__media img {
  max-height: min(52vw, 20rem);
}

@media (min-width: 1024px) {
  .site-highlight-poster__media img {
    max-height: 26rem;
  }
}

announcement-card .announcement-card__media,
#home-quick-announcements .announcement-card__media {
  aspect-ratio: 16 / 10;
  min-height: 8rem;
  max-height: 12rem;
}

@media (min-width: 640px) {
  announcement-card .announcement-card__media,
  #home-quick-announcements .announcement-card__media {
    max-height: 14rem;
  }
}

/* ── Gallery lightbox ── */
#gallery-lightbox {
  z-index: 110;
}

/* Desktop main nav — aligned top-level links (plain + dropdown) */
#site-main-nav .site-nav-link {
  box-sizing: border-box;
}

#site-main-nav ul > li {
  display: flex;
  align-items: stretch;
}

#site-main-nav .group > .site-nav-link {
  width: 100%;
}

/* News ticker — light strip under nav */
#site-news-ticker {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px -2px rgba(12, 74, 110, 0.1);
}

#site-news-ticker .site-news-ticker-label {
  line-height: 1.2;
}

#site-news-ticker .site-news-ticker-track {
  will-change: transform;
  color: #0f172a;
}

.site-news-ticker-scroll::before,
.site-news-ticker-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.25rem;
  pointer-events: none;
  z-index: 1;
}

.site-news-ticker-scroll::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 30%, transparent);
}

.site-news-ticker-scroll::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.95) 30%, transparent);
}

#gallery-lightbox.gallery-lightbox-open .gallery-lightbox-backdrop {
  opacity: 1;
}

#gallery-lightbox.gallery-lightbox-open .gallery-lightbox-panel {
  transform: scale(1);
  opacity: 1;
}

#gallery-lightbox .gallery-lightbox-backdrop {
  opacity: 0;
  transition: opacity 0.35s ease;
}

#gallery-lightbox .gallery-lightbox-panel {
  transform: scale(0.94);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  #gallery-lightbox .gallery-lightbox-backdrop,
  #gallery-lightbox .gallery-lightbox-panel {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.gallery-batch-track {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 118, 110, 0.45) transparent;
  -webkit-overflow-scrolling: touch;
}

.gallery-batch-aspect {
  line-height: 0;
}

.gallery-batch-aspect .js-gallery-lightbox {
  display: block;
  height: 100%;
  width: 100%;
  line-height: 0;
}

.gallery-batch-aspect img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.gallery-batch-track::-webkit-scrollbar {
  height: 8px;
}

.gallery-batch-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.45);
}

.gallery-batch-track::-webkit-scrollbar-track {
  background: transparent;
}

.website-maintainer-card {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px rgba(0, 0, 0, 0.08);
}
