:root {
  --navy: #1a2a45;
  --navy-deep: #101b2e;
  --navy-mid: #2b3d63;
  --crimson: #b4232c;
  --crimson-deep: #8e1a22;
  --leaf: #6f9a14;
  --leaf-soft: #9eca11;
  --sand: #f3efe6;
  --stone: #e4dccb;
  --ink: #162033;
  --muted: #5c6678;
  --paper: #faf8f4;
  --white: #ffffff;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 1180px;
  --header-h: auto;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(158, 202, 17, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(180, 35, 44, 0.08), transparent 50%),
    linear-gradient(180deg, #f7f4ee 0%, var(--paper) 40%, #eef1f6 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--crimson);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0.35rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Notice */
.notice-bar {
  background: linear-gradient(90deg, var(--crimson-deep), var(--crimson) 45%, #d13a42);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 0.65rem 1rem;
}

.notice-bar a {
  color: #fff5f5;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.notice-bar a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.notice-sep {
  margin: 0 0.55rem;
  opacity: 0.65;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(16, 27, 46, 0.08);
}

.header-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-mid) 55%, var(--leaf) 100%);
}

.header-brand-block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  flex: 1;
}

.brand:hover {
  color: var(--ink);
}

.brand-emblem {
  width: clamp(4.5rem, 11vw, 6.25rem);
  height: clamp(4.5rem, 11vw, 6.25rem);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid var(--crimson);
  box-shadow:
    0 0 0 3px rgba(180, 35, 44, 0.12),
    0 10px 28px rgba(26, 42, 69, 0.18);
  background: var(--white);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.1;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 4.2vw, 2.65rem);
  letter-spacing: 0.01em;
  color: var(--crimson);
  text-transform: capitalize;
}

.brand-place {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.85rem);
  font-weight: 600;
  font-style: italic;
  color: var(--leaf);
  letter-spacing: 0.04em;
}

.brand-tagline {
  margin-top: 0.25rem;
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  font-weight: 500;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.4;
}

.header-nav-wrap {
  border-top: 1px solid rgba(26, 42, 69, 0.08);
  background: linear-gradient(180deg, #f8f6f1 0%, #f3f0e8 100%);
}

.header-nav-wrap .site-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.35rem 1.25rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(26, 42, 69, 0.15);
  background: var(--white);
  border-radius: 0.45rem;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: center;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-mid);
  text-decoration: none;
  border-radius: 0.35rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--navy-deep);
  color: var(--white);
}

/* Banner */
.site-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1a2e 0%, #1a2a45 42%, #243a5e 100%);
  color: var(--white);
}

.banner-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.banner-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(255, 255, 255, 0.5) 48px,
      rgba(255, 255, 255, 0.5) 49px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 48px,
      rgba(255, 255, 255, 0.35) 48px,
      rgba(255, 255, 255, 0.35) 49px
    );
}

.banner-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.banner-glow--left {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -80px;
  background: rgba(180, 35, 44, 0.35);
}

.banner-glow--right {
  width: 360px;
  height: 360px;
  right: -60px;
  bottom: -100px;
  background: rgba(158, 202, 17, 0.22);
}

.banner-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 3.25rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .banner-inner {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 3.5rem 1.25rem 3.75rem;
    gap: 2.5rem;
  }
}

.banner-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.banner-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 650;
  line-height: 1.08;
  max-width: 14ch;
}

.banner-lead {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.banner-visual {
  margin: 0;
}

.banner-frame {
  position: relative;
  overflow: hidden;
  border-radius: 0.65rem;
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.banner-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16, 27, 46, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.banner-frame img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 380px;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(1.08) contrast(1.05);
}

.banner-caption {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.btn-primary {
  background: var(--crimson);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(180, 35, 44, 0.35);
}

.btn-primary:hover {
  background: var(--crimson-deep);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Sections */
.section {
  padding: 4.5rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 650;
  line-height: 1.1;
  color: var(--navy-deep);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Resources */
.resources {
  padding-top: 3.5rem;
}

.resource-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .resource-row {
    grid-template-columns: 1fr 1fr;
  }
}

.resource-link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.35rem 1rem;
  padding: 1.35rem 1.4rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(243, 239, 230, 0.7));
  border: 1px solid rgba(26, 42, 69, 0.08);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.resource-link:hover {
  border-color: rgba(180, 35, 44, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(26, 42, 69, 0.08);
  color: var(--ink);
}

.resource-label {
  grid-column: 1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}

.resource-title {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

.resource-arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: 1.4rem;
  color: var(--crimson);
  transition: transform 0.25s var(--ease);
}

.resource-link:hover .resource-arrow {
  transform: translateX(4px);
}

/* Admissions */
.admissions {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.admissions-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 1.75rem;
  background:
    linear-gradient(120deg, rgba(26, 42, 69, 0.96), rgba(43, 61, 99, 0.92)),
    radial-gradient(500px 200px at 100% 0%, rgba(158, 202, 17, 0.25), transparent 60%);
  color: var(--white);
}

.admissions-copy h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 650;
  line-height: 1.15;
  max-width: 28ch;
}

.admissions-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.admissions-copy a {
  color: #dff08a;
  text-decoration: none;
  font-weight: 600;
}

.admissions-copy a:hover {
  color: var(--white);
}

.admissions .btn-primary {
  background: var(--leaf-soft);
  color: var(--navy-deep);
  box-shadow: none;
}

.admissions .btn-primary:hover {
  background: #b6df2a;
  color: var(--navy-deep);
}

/* Explore */
.explore-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .explore-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.explore-grid a {
  display: flex;
  align-items: flex-end;
  min-height: 6.5rem;
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  color: var(--navy-deep);
  background:
    linear-gradient(180deg, transparent 30%, rgba(26, 42, 69, 0.06)),
    linear-gradient(145deg, #fff, var(--sand));
  border-left: 3px solid var(--crimson);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.explore-grid a:hover {
  transform: translateY(-3px);
  border-left-color: var(--leaf);
  color: var(--navy-deep);
  background:
    linear-gradient(180deg, transparent 20%, rgba(158, 202, 17, 0.12)),
    linear-gradient(145deg, #fff, #eef5d8);
}

/* Campus */
.campus {
  background:
    linear-gradient(180deg, transparent, rgba(26, 42, 69, 0.03) 20%, rgba(26, 42, 69, 0.04));
}

.campus-gallery {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .campus-gallery {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }
}

.campus-shot {
  margin: 0;
  overflow: hidden;
  background: var(--navy-deep);
}

.campus-shot img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.campus-shot:hover img {
  transform: scale(1.04);
}

/* Society docs */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(26, 42, 69, 0.12);
}

.doc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0.15rem;
  border-bottom: 1px solid rgba(26, 42, 69, 0.12);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s, padding-left 0.25s var(--ease);
}

.doc-list a::after {
  content: "→";
  color: var(--crimson);
  transition: transform 0.25s var(--ease);
}

.doc-list a:hover {
  color: var(--crimson);
  padding-left: 0.4rem;
}

.doc-list a:hover::after {
  transform: translateX(4px);
}

/* Contact */
.contact-band {
  background:
    linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 760px) {
  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.contact-band h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 650;
}

.contact-address {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.contact-meta p {
  margin: 0 0 0.75rem;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.contact-meta span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-soft);
}

.contact-meta a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-meta a:hover {
  border-bottom-color: var(--leaf-soft);
  color: #e8f7a8;
}

/* Footer */
.site-footer {
  background: #0c1422;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  margin: 0;
}

/* Motion */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-hero {
  position: relative;
  background: linear-gradient(135deg, #0f1a2e 0%, #1a2a45 50%, #243a5e 100%);
  color: var(--white);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(255, 255, 255, 0.5) 48px,
      rgba(255, 255, 255, 0.5) 49px
    );
}

.page-hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 2.5rem;
}

.page-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 650;
  line-height: 1.05;
}

.page-lead {
  margin: 0.65rem 0 0;
  max-width: 40ch;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
}

/* Management */
.management-section {
  padding-top: 3rem;
  padding-bottom: 4.5rem;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.mgmt-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(26, 42, 69, 0.08);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 42, 69, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.mgmt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26, 42, 69, 0.1);
}

.mgmt-photo {
  background: linear-gradient(180deg, #eef1f6 0%, #e4e9f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.25rem 0;
  min-height: 220px;
}

.mgmt-photo img {
  width: auto;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 0.25rem;
  box-shadow: 0 6px 20px rgba(26, 42, 69, 0.12);
}

.mgmt-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mgmt-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--leaf);
}

.mgmt-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--navy-deep);
}

.mgmt-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.15rem;
}

.mgmt-role {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--crimson);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mgmt-address {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Content sections */
.content-section {
  padding-top: 3rem;
  padding-bottom: 4.5rem;
}

.back-link {
  margin: 0 0 1.5rem;
}

.back-link a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-mid);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 42, 69, 0.2);
}

.back-link a:hover {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(26, 42, 69, 0.1);
  border-radius: 0.5rem;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(26, 42, 69, 0.06);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table thead {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
}

.data-table th {
  padding: 0.9rem 1.1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid rgba(26, 42, 69, 0.08);
  color: var(--ink);
  vertical-align: top;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(243, 239, 230, 0.45);
}

.data-table tbody tr:hover {
  background: rgba(158, 202, 17, 0.1);
}

.data-table td:first-child {
  font-weight: 600;
  color: var(--crimson);
  width: 4rem;
}

.data-table td:last-child {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.data-table tfoot td {
  background: var(--navy-deep);
  color: var(--white);
  font-size: 0.95rem;
  border: none;
}

.data-table tfoot td:last-child {
  color: var(--leaf-soft);
}

/* Facility cards */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.facility-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.85rem;
  padding: 1.35rem 1.4rem;
  background: var(--white);
  border: 1px solid rgba(26, 42, 69, 0.08);
  border-left: 3px solid var(--crimson);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.facility-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(26, 42, 69, 0.1);
  border-left-color: var(--leaf);
  color: var(--ink);
}

.facility-num {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--leaf);
  line-height: 1;
}

.facility-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.2;
  color: var(--navy-deep);
}

.facility-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.facility-arrow {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.3rem;
  color: var(--crimson);
  transition: transform 0.25s var(--ease);
}

.facility-card:hover .facility-arrow {
  transform: translateX(4px);
}

/* Staff */
.staff-notice {
  margin-bottom: 2rem;
  padding: 1.5rem 1.6rem;
  background: linear-gradient(135deg, rgba(26, 42, 69, 0.06), rgba(158, 202, 17, 0.1));
  border: 1px solid rgba(26, 42, 69, 0.1);
  border-left: 4px solid var(--navy-mid);
}

.staff-notice p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

.staff-notice p:last-of-type {
  margin-bottom: 1rem;
}

.staff-notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.92rem;
}

.staff-notice-meta strong {
  color: var(--navy-deep);
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy-deep);
  border: 1px solid rgba(26, 42, 69, 0.25);
}

.btn-outline-dark:hover {
  background: var(--navy-deep);
  color: var(--white);
  border-color: var(--navy-deep);
}

.staff-year-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.staff-year-btn {
  appearance: none;
  border: 1px solid rgba(26, 42, 69, 0.15);
  background: var(--white);
  color: var(--navy-mid);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.staff-year-btn:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

.staff-year-btn.is-active {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}

.staff-year-panel {
  display: none;
}

.staff-year-panel.is-active {
  display: block;
}

.staff-pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.staff-card {
  padding: 1.35rem 1.4rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(26, 42, 69, 0.08);
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(26, 42, 69, 0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.staff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(26, 42, 69, 0.09);
}

.staff-card--principal {
  grid-column: 1 / -1;
  border-left: 4px solid var(--crimson);
  background: linear-gradient(135deg, #fff 0%, rgba(243, 239, 230, 0.5) 100%);
}

@media (min-width: 700px) {
  .staff-card--principal {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 1.25rem;
    align-items: start;
  }

  .staff-card--principal .staff-num {
    grid-row: 1;
  }

  .staff-card--principal .staff-name,
  .staff-card--principal .staff-role {
    grid-column: 2;
  }

  .staff-card--principal .staff-details {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
  }
}

.staff-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--leaf);
  margin-bottom: 0.35rem;
}

.staff-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 650;
  color: var(--navy-deep);
  line-height: 1.2;
}

.staff-role {
  margin: 0.25rem 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--crimson);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.staff-details {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.staff-details div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.staff-details dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.staff-details dd {
  margin: 0;
  color: var(--ink);
}

.staff-details a {
  color: var(--navy-mid);
  text-decoration: none;
  font-weight: 600;
}

.staff-details a:hover {
  color: var(--crimson);
}

@media (max-width: 480px) {
  .staff-details div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* Contact page */
.contact-page-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .contact-page-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.contact-panel {
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid rgba(26, 42, 69, 0.08);
  border-radius: 0.5rem;
  box-shadow: 0 4px 24px rgba(26, 42, 69, 0.06);
}

.contact-panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 650;
  color: var(--navy-deep);
}

.contact-panel-address {
  margin: 0 0 1.5rem;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.contact-panel-list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-panel-list div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.contact-panel-list dt {
  margin: 0;
  font-weight: 600;
  color: var(--leaf);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-panel-list dd {
  margin: 0;
  color: var(--ink);
}

.contact-panel-list a {
  color: var(--navy-mid);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(26, 42, 69, 0.15);
}

.contact-panel-list a:hover {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}

.contact-panel--accent {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
  border: none;
}

.contact-panel--accent h2 {
  color: var(--white);
}

.contact-panel-lead {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-panel-note {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.contact-phone-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-phone-list a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #dff08a;
  text-decoration: none;
}

.contact-phone-list a:hover {
  color: var(--white);
}

.contact-panel--accent .btn-primary {
  background: var(--leaf-soft);
  color: var(--navy-deep);
  box-shadow: none;
}

.contact-panel--accent .btn-primary:hover {
  background: #b6df2a;
  color: var(--navy-deep);
}

/* Photo gallery */
.gallery-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gallery-album {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid rgba(26, 42, 69, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-album:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 27, 46, 0.12);
}

.gallery-album-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(26, 42, 69, 0.06);
}

.gallery-album-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-album:hover .gallery-album-media img {
  transform: scale(1.04);
}

.gallery-album-media.is-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.gallery-album-body {
  padding: 1rem 1.1rem 1.15rem;
}

.gallery-album-body h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy-deep);
  text-transform: capitalize;
}

.gallery-album-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.gallery-album-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-album-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy-deep);
  text-transform: capitalize;
}

.gallery-album-heading p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.gallery-photo {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(26, 42, 69, 0.06);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-photo:hover img {
  transform: scale(1.05);
}

.gallery-empty {
  margin: 0;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed rgba(26, 42, 69, 0.15);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 16, 28, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox img {
  max-width: min(1100px, 100%);
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-prev {
  left: 1rem;
}

.gallery-lightbox-next {
  right: 1rem;
}

@media (max-width: 640px) {
  .gallery-lightbox {
    padding: 3rem 1rem;
  }

  .gallery-lightbox-nav {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* Blank page placeholder */
.blank-page {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--white);
  border: 1px dashed rgba(26, 42, 69, 0.15);
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.blank-page p {
  margin: 0;
}

/* Society pages */
.society-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(26, 42, 69, 0.1);
}

.society-nav a {
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-mid);
  text-decoration: none;
  border-radius: 999px;
  background: rgba(26, 42, 69, 0.05);
  transition: background 0.2s, color 0.2s;
}

.society-nav a:hover,
.society-nav a[aria-current="page"] {
  background: var(--navy-deep);
  color: var(--white);
}

.content-prose {
  max-width: 48rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}

.content-prose p {
  margin: 0 0 1rem;
}

.byelaws-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.byelaw-section {
  padding: 1.5rem 1.6rem;
  background: var(--white);
  border: 1px solid rgba(26, 42, 69, 0.08);
  border-left: 3px solid var(--crimson);
  border-radius: 0.35rem;
}

.byelaw-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--navy-deep);
}

.byelaw-section p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.byelaw-section p:last-child {
  margin-bottom: 0;
}

.data-table--wide td:nth-child(2),
.data-table--wide td:nth-child(4) {
  white-space: normal;
  font-weight: 400;
}

.data-table--wide td:nth-child(3) {
  white-space: normal;
}

.cert-gallery {
  display: grid;
  gap: 1.5rem;
}

.cert-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(26, 42, 69, 0.1);
  border-radius: 0.5rem;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(26, 42, 69, 0.06);
}

.cert-shot img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 760px) {
  .cert-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .contact-panel-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal,
.site-banner .reveal {
  transition-delay: 0.05s;
}

.site-banner .banner-title.reveal {
  transition-delay: 0.12s;
}

.site-banner .banner-lead.reveal {
  transition-delay: 0.22s;
}

.site-banner .banner-actions.reveal {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-image {
    animation: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

/* Mobile nav */
@media (max-width: 920px) {
  .header-brand-block {
    padding: 0.85rem 1rem 0.75rem;
  }

  .brand {
    gap: 0.75rem;
  }

  .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-nav-wrap {
    position: relative;
  }

  .site-nav {
    display: none;
    padding: 0.5rem 1rem 1rem !important;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    border-radius: 0.4rem;
    padding: 0.75rem 0.85rem;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .notice-bar p {
    margin: 0;
    line-height: 1.45;
  }

  .notice-sep {
    display: none;
  }

  .banner-inner {
    padding: 2.25rem 1rem 2.5rem;
  }

  .banner-caption {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand-emblem {
    border-width: 2px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .brand-place {
    font-size: 1rem;
  }

  .banner-title {
    max-width: none;
  }

  .explore-grid a {
    min-height: 5.25rem;
    font-size: 1.15rem;
  }

  .contact-meta p {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
