/* ==========================================================================
   PSME-SA — Design Tokens
   ========================================================================== */
:root {
  /* Color */
  --blue-primary: #033093;
  --yellow: #fdca04;
  --white: #ffffff;
  --navy: #0b1f3a;
  --gray-light: #f3f5f8;
  --blue-light: #7f98c7;

  --text-body: #1c2733;
  --text-muted: #5b6b80;

  /* Type */
  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --max-width: 1200px;
  /* Sharp corners everywhere — deliberate "engineering blueprint"
     aesthetic. Changing this one token re-skins every button/card/input
     sitewide (see the many `border-radius: var(--radius)` usages) without
     touching each page. */
  --radius: 0px;
  --radius-lg: 0px;
  --header-height: 84px;
  --ticker-height: 34px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--blue-primary);
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}
.btn-primary:hover {
  background: #ffd633;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(2px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost {
  background: transparent;
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}
.btn-ghost:hover {
  background: var(--blue-primary);
  color: var(--white);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: #142c52;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.72rem;
}

.btn-outline:hover .btn-arrow,
.btn-dark:hover .btn-arrow {
  transform: translateX(3px);
}

/* Blueprint grid texture, used as a background utility. Navy base + a
   decorative gear/schematic + diagonal gold "trace line" layer behind the
   copy — matches the interior-page banner treatment used across every
   page header (about/officers/membership/contact/events/news/gallery). */
.blueprint-bg {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.blueprint-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='420' viewBox='0 0 640 420'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.1' stroke-width='1.4'%3E%3Cpath d='M498.4,49.6 L500.5,34.2 L511.5,34.2 L513.6,49.6 L522.6,52 L532.1,39.8 L541.7,45.3 L535.8,59.6 L542.4,66.2 L556.7,60.3 L562.2,69.9 L550,79.4 L552.4,88.4 L567.8,90.5 L567.8,101.5 L552.4,103.6 L550,112.6 L562.2,122.1 L556.7,131.7 L542.4,125.8 L535.8,132.4 L541.7,146.7 L532.1,152.2 L522.6,140 L513.6,142.4 L511.5,157.8 L500.5,157.8 L498.4,142.4 L489.4,140 L479.9,152.2 L470.3,146.7 L476.2,132.4 L469.6,125.8 L455.3,131.7 L449.8,122.1 L462,112.6 L459.6,103.6 L444.2,101.5 L444.2,90.5 L459.6,88.4 L462,79.4 L449.8,69.9 L455.3,60.3 L469.6,66.2 L476.2,59.6 L470.3,45.3 L479.9,39.8 L489.4,52 Z'/%3E%3Ccircle cx='506' cy='96' r='16'/%3E%3Cpath d='M560.2,123.6 L561.5,112.3 L570.5,112.3 L571.8,123.6 L578.5,126.1 L586.8,118.2 L593.7,124 L587.4,133.5 L591,139.7 L602.4,139 L603.9,147.9 L593,151.1 L591.7,158.2 L600.9,165 L596.4,172.8 L585.9,168.2 L580.5,172.8 L583.1,183.9 L574.7,187 L569.6,176.8 L562.4,176.8 L557.3,187 L548.9,183.9 L551.5,172.8 L546.1,168.2 L535.6,172.8 L531.1,165 L540.3,158.2 L539,151.1 L528.1,147.9 L529.6,139 L541,139.7 L544.6,133.5 L538.3,124 L545.2,118.2 L553.5,126.1 Z'/%3E%3Ccircle cx='566' cy='150' r='10'/%3E%3C/g%3E%3Cpath d='M14 402 C 150 380, 300 280, 420 160' fill='none' stroke='%23fdca04' stroke-opacity='0.4' stroke-width='2'/%3E%3Cg fill='%23fdca04' fill-opacity='0.55'%3E%3Ccircle cx='420' cy='160' r='2'/%3E%3Ccircle cx='362' cy='222' r='1.6'/%3E%3Ccircle cx='304' cy='284' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: min(56%, 640px) auto;
  pointer-events: none;
}
.page-header .container {
  position: relative;
  z-index: 1;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger-reveal: the container itself skips the base [data-reveal] fade
   (it's already visible) and instead hands opacity/transform down to its
   direct children, each with an incremental transition-delay, so a grid or
   list animates in one item at a time rather than as a single block. Still
   driven by the same IntersectionObserver in main.js — it only ever toggles
   .is-visible on the [data-reveal] element, nothing more. */
[data-reveal].stagger-children {
  opacity: 1;
  transform: none;
}
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.stagger-children.is-visible > * {
  opacity: 1;
  transform: none;
}
.stagger-children > *:nth-child(1) {
  transition-delay: 0s;
}
.stagger-children > *:nth-child(2) {
  transition-delay: 0.09s;
}
.stagger-children > *:nth-child(3) {
  transition-delay: 0.18s;
}
.stagger-children > *:nth-child(4) {
  transition-delay: 0.27s;
}
.stagger-children > *:nth-child(n + 5) {
  transition-delay: 0.36s;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.14);
}

.header-inner {
  height: var(--header-height);
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Scrolling ticker strip along the bottom of the header */
.header-ticker {
  height: var(--ticker-height);
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid #e4e9f0;
  display: flex;
  align-items: center;
}
.header-ticker-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--blue-primary);
  padding-inline: 18px;
  border-right: 1px solid #e4e9f0;
  align-self: stretch;
}
.header-ticker-icon svg {
  display: block;
}
.header-ticker-viewport {
  overflow: hidden;
  height: 100%;
  flex: 1;
}
.header-ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  white-space: nowrap;
  animation: header-ticker-scroll 26s linear infinite;
}
.header-ticker-item {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-primary);
  padding-inline: 18px;
}
.header-ticker-sep {
  color: var(--text-muted);
}
@keyframes header-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .header-ticker-track {
    animation: none;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--blue-light);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.78);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  position: relative;
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: var(--white);
}
.nav-item > a.nav-link::after,
.nav-item > button.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover::after {
  transform: scaleX(1);
}

.caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}
.has-dropdown.is-open .caret,
.has-dropdown:hover .caret {
  transform: rotate(-135deg) translateY(2px);
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
  z-index: 50;
}
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}
.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 18px;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.header-auth.is-ready {
  opacity: 1;
}
.header-auth .btn {
  padding: 10px 18px;
  font-size: 0.75rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--white);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(11, 31, 58, 0.26) 0%,
      rgba(11, 31, 58, 0.46) 45%,
      rgba(11, 31, 58, 0.92) 100%
    ),
    linear-gradient(90deg, rgba(3, 48, 147, 0.24) 0%, rgba(11, 31, 58, 0.04) 55%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 180px 40px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Blueprint tick ruler along hero edge */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0px,
    var(--yellow) 2px,
    transparent 2px,
    transparent 24px
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding-block: 32px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.kicker-line {
  width: 36px;
  height: 2px;
  background: var(--yellow);
}
.hero-kicker .eyebrow {
  margin: 0;
  color: var(--yellow);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 0.35em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.hero-title .accent {
  color: var(--yellow);
}

.hero-sub {
  max-width: 60ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 38px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.scroll-cue {
  position: absolute;
  right: 40px;
  bottom: 36px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.scroll-cue-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-cue-line {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--yellow);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% {
    top: -100%;
  }
  60% {
    top: 100%;
  }
  100% {
    top: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-line::after {
    animation: none;
    display: none;
  }
}
@media (max-width: 760px) {
  .scroll-cue {
    display: none;
  }
}

/* ==========================================================================
   Dimension stat strip (drafting-callout motif)
   ========================================================================== */
.stat-strip {
  position: relative;
  background: var(--navy);
  padding-block: 40px;
}

.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* Floating variant used only on the homepage hero, where the strip
   overlaps the bottom edge of the hero photo as an elevated card. Other
   pages (e.g. about.html's "By the Numbers" section) reuse the same
   .stat-strip/.stat/.stat-number/.stat-label markup as a plain in-flow
   band and must NOT get this treatment. */
.stat-strip-float {
  z-index: 5;
  margin-top: -70px;
  background: none;
  padding-block: 0;
}
.stat-strip-float .container {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 56px rgba(3, 48, 147, 0.32);
  padding: 36px 16px;
}

.stat {
  position: relative;
  text-align: center;
  padding-inline: 12px;
  border-left: 1px dashed rgba(255, 255, 255, 0.15);
}
.stat:first-child {
  border-left: none;
}

.stat-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(253, 202, 4, 0.1);
  border: 1px solid rgba(253, 202, 4, 0.35);
  color: var(--yellow);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--yellow);
  font-weight: 700;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
}

/* ==========================================================================
   About snippet
   ========================================================================== */
.section {
  padding-block: 100px;
}
.section-gray {
  background: var(--gray-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  max-width: 16ch;
}
.accent-bar {
  width: 48px;
  height: 4px;
  background: var(--yellow);
  margin: 4px 0 20px;
}
.about-copy p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 56ch;
}

.about-visual {
  position: relative;
  aspect-ratio: 1;
}

/* Real event photos scattered behind the seal, like a candid photo pile —
   purely decorative container, so it's excluded from the generic
   [data-reveal] fade (see override below); its children drive their own
   staggered rotate-in instead, keyed off the same .is-visible toggle the
   shared IntersectionObserver in main.js already applies. */
.about-photo-stack[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
.about-photo-card {
  position: absolute;
  width: 37%;
  aspect-ratio: 4 / 5;
  background: var(--white);
  border: 1px solid #e4e9f0;
  box-shadow: 0 18px 40px rgba(3, 48, 147, 0.16);
  padding: 7px 7px 22px;
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  transition:
    transform 0.45s ease,
    box-shadow 0.25s ease,
    opacity 0.45s ease;
}
.about-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-photo-card-caption {
  position: absolute;
  bottom: 6px;
  left: 7px;
  right: 7px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.about-photo-card:nth-child(1) {
  top: -4%;
  left: -10%;
}
.about-photo-card:nth-child(2) {
  top: -8%;
  right: -6%;
}
.about-photo-card:nth-child(3) {
  top: 32%;
  right: -16%;
}
.about-photo-card:nth-child(4) {
  bottom: -4%;
  right: -8%;
}
.about-photo-card:nth-child(5) {
  bottom: -10%;
  left: 10%;
}
.about-photo-card:nth-child(6) {
  top: 36%;
  left: -16%;
}
.about-photo-stack.is-visible .about-photo-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.about-photo-stack.is-visible .about-photo-card:nth-child(1) {
  transform: rotate(-9deg);
  transition-delay: 0.05s;
}
.about-photo-stack.is-visible .about-photo-card:nth-child(2) {
  transform: rotate(7deg);
  transition-delay: 0.15s;
}
.about-photo-stack.is-visible .about-photo-card:nth-child(3) {
  transform: rotate(-6deg);
  transition-delay: 0.25s;
}
.about-photo-stack.is-visible .about-photo-card:nth-child(4) {
  transform: rotate(8deg);
  transition-delay: 0.35s;
}
.about-photo-stack.is-visible .about-photo-card:nth-child(5) {
  transform: rotate(-4deg);
  transition-delay: 0.45s;
}
.about-photo-stack.is-visible .about-photo-card:nth-child(6) {
  transform: rotate(5deg);
  transition-delay: 0.55s;
}
.about-photo-card:hover {
  transform: rotate(0deg) scale(1.1) !important;
  z-index: 5;
  box-shadow: 0 26px 55px rgba(3, 48, 147, 0.26);
}

.community-band {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.community-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.community-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 31, 58, 0.35) 0%,
    rgba(11, 31, 58, 0.25) 40%,
    rgba(11, 31, 58, 0.92) 100%
  );
}
.community-band-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  color: var(--white);
}
.community-band-caption h2 {
  color: var(--white);
  max-width: 640px;
  margin: 6px 0 0;
}

.about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}
.about-gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid #e4e9f0;
}
.about-gallery-item.is-large {
  grid-column: span 2;
  grid-row: span 2;
}
.about-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.about-gallery-item:hover img {
  transform: scale(1.06);
}
.about-gallery-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 31, 58, 0) 55%,
    rgba(11, 31, 58, 0.85) 100%
  );
}
.about-gallery-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: var(--white);
}
.about-gallery-caption .eyebrow {
  color: var(--yellow);
  font-size: 0.62rem;
  margin-bottom: 2px;
  display: block;
}
.about-gallery-caption h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-emblem {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--blue-light);
  box-shadow: 0 14px 34px rgba(3, 48, 147, 0.18);
}
.about-emblem::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px dashed var(--blue-light);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
.about-emblem img {
  width: 62%;
}
.ring-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--gray-light);
}
.ring-dot-1 {
  top: 6%;
  left: 16%;
}
.ring-dot-2 {
  top: 14%;
  right: 8%;
}
.ring-dot-3 {
  bottom: 10%;
  left: 6%;
}
.ring-dot-4 {
  bottom: 4%;
  right: 20%;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-emblem::before {
    animation: none;
  }
}

/* ==========================================================================
   Events preview
   ========================================================================== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.gallery-stats {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.gallery-stats strong {
  color: var(--blue-primary);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.event-card {
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.event-card:hover {
  box-shadow: 0 12px 32px rgba(3, 48, 147, 0.1);
  transform: translateY(-4px);
}

.event-date {
  font-family: var(--font-mono);
  background: var(--navy);
  color: var(--yellow);
  padding: 10px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-body {
  padding: 22px;
}
.event-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.event-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Text link with a sliding arrow, used where a boxed .btn would be too
   heavy (e.g. "View All News" on a dark section). */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
}
.link-arrow:hover {
  color: #ffe066;
}
.link-arrow .btn-arrow {
  transition: transform 0.2s ease;
}
.link-arrow:hover .btn-arrow {
  transform: translateX(3px);
}

/* Dark-card treatment for the homepage "Latest From the Chapter" preview —
   scoped to .events-section so it doesn't affect the admin Event Manager
   grid, which reuses the same .event-card/.event-photo class names on a
   light background. */
.events-section {
  background: var(--navy);
}
.events-section .section-head h2 {
  color: var(--white);
}
.events-section .gallery-error {
  color: rgba(255, 255, 255, 0.55);
}
.events-section .event-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}
.events-section .event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(253, 202, 4, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.events-section .event-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.06);
}
.events-section .event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.events-section .event-photo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.events-section .event-body {
  padding: 20px 22px 24px;
}
.events-section .event-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}
.events-section .event-meta svg {
  flex-shrink: 0;
}
.events-section .event-body h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.events-section .event-body p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================================
   Sponsors marquee
   ========================================================================== */
.partners-section {
  padding-block: 88px;
}
.partners-head {
  margin-bottom: 40px;
}

.partners-marquee {
  overflow: hidden;
  /* Generous vertical room so the hover lift + glow shadow below never get
     clipped by this container's overflow:hidden (needed for the
     horizontal edge-fade mask). */
  padding-block: 32px;
  background: var(--gray-light);
  border-block: 1px solid #e4e9f0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 6%,
    black 94%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 6%,
    black 94%,
    transparent
  );
}
.partners-track {
  display: flex;
  width: max-content;
  animation: sponsors-scroll 70s linear infinite;
}
.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}
.partners-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
@keyframes sponsors-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
  }
}

.partner-logo {
  flex-shrink: 0;
  width: 240px;
  height: 150px;
  margin-inline: 18px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid #e4e9f0;
  box-shadow: 0 4px 16px rgba(3, 48, 147, 0.06);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}
.partner-logo:hover {
  box-shadow: 0 16px 36px rgba(3, 48, 147, 0.14);
  border-color: var(--blue-light);
  transform: translateY(-6px);
}
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 760px) {
  .partners-section {
    padding-block: 56px;
  }
  .partner-logo {
    width: 172px;
    height: 108px;
    margin-inline: 10px;
    padding: 18px 20px;
  }
}

/* ==========================================================================
   Membership CTA banner
   ========================================================================== */
.highlight-band {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding-block: 90px;
  overflow: hidden;
}
.highlight-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 50%;
  width: 340px;
  height: 340px;
  border: 24px solid rgba(253, 202, 4, 0.08);
  border-radius: 50%;
  animation: ctaRingPulse 6s ease-in-out infinite;
}
@keyframes ctaRingPulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.08);
  }
}

.highlight-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.highlight-band-inner h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 20ch;
  margin: 0;
}
.highlight-band-inner p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 44ch;
  margin: 10px 0 0;
}

/* ==========================================================================
   Find Us — map section
   ========================================================================== */
.map-frame {
  position: relative;
  aspect-ratio: 21 / 7;
  border: 1px solid #e4e9f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-light);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(0.2) contrast(1.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
}
.site-footer::before {
  content: "";
  display: block;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0px,
    var(--yellow) 2px,
    transparent 2px,
    transparent 24px
  );
}

.footer-top {
  padding-top: 56px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 46ch;
}

.footer-logo {
  width: 104px;
  flex-shrink: 0;
}
.footer-brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 0.88rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.footer-social-btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
  transform: translateY(-2px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}
.footer-col a:hover {
  color: var(--yellow);
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
}
.footer-contact-row svg {
  flex-shrink: 0;
  color: var(--yellow);
}
.footer-contact-row a {
  color: inherit;
  margin: 0;
}
.footer-contact-row a:hover {
  color: var(--yellow);
}

.footer-membership p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 18px;
  max-width: 30ch;
}
.footer-membership .btn {
  padding: 11px 20px;
  font-size: 0.78rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.45);
}
.footer-top-link {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.15s ease;
}
.footer-top-link:hover {
  color: var(--yellow);
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.page-header {
  position: relative;
  padding-block: 64px 56px;
  color: var(--white);
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0px,
    var(--yellow) 2px,
    transparent 2px,
    transparent 24px
  );
}
.page-header .eyebrow {
  color: var(--yellow);
  display: block;
  margin-bottom: 10px;
}
.page-header h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 20ch;
  margin-bottom: 10px;
}
.page-header p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 56ch;
  margin: 0;
}

/* Soft, slow-pulsing glow behind the header copy — opacity/transform only,
   so it's compositor-cheap even though it's animating continuously. */
.page-header-glow {
  position: absolute;
  top: 50%;
  left: 12%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(253, 202, 4, 0.16) 0%,
    rgba(253, 202, 4, 0) 70%
  );
  filter: blur(2px);
  animation: headerGlowPulse 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes headerGlowPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* Page-header copy entrance — plays once on load, no observer needed since
   this content is already above the fold. */
.page-header .is-entrance {
  animation: headerFadeUp 0.7s ease both;
}
.page-header .eyebrow.is-entrance {
  animation-delay: 0s;
}
.page-header h1.is-entrance {
  animation-delay: 0.08s;
}
.page-header .accent-bar.is-entrance {
  animation-delay: 0.12s;
}
.page-header p.is-entrance {
  animation-delay: 0.16s;
}
@keyframes headerFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   News / Announcements list
   ========================================================================== */
.news-toolbar[hidden] {
  display: none;
}
.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.news-filter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid #d7dee7;
  padding: 9px 16px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.news-filter:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}
.news-filter.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.news-total {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.news-total strong {
  color: var(--blue-primary);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.news-item {
  display: grid;
  grid-template-columns: 140px 120px 1fr;
  gap: 28px;
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
  padding: 32px;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.news-item:hover {
  box-shadow: 0 12px 32px rgba(3, 48, 147, 0.08);
  transform: translateY(-3px);
}

.news-thumb {
  width: 140px;
  height: 140px;
  overflow: hidden;
  border: 1px solid #e4e9f0;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.news-item:hover .news-thumb img {
  transform: scale(1.06);
}

.news-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue-light);
  letter-spacing: 0.03em;
  border-right: 1px dashed var(--blue-light);
  padding-right: 24px;
}
.news-date span {
  display: block;
}
.news-date .day {
  font-size: 2rem;
  color: var(--blue-primary);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.news-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gray-light);
  border: 1px solid var(--blue-light);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.news-body h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.news-body p {
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 68ch;
}

.news-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--blue-primary);
  border-bottom: 1px solid var(--blue-light);
  padding-bottom: 2px;
}
.news-link:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

/* ==========================================================================
   Mission / Vision cards
   ========================================================================== */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.mv-card {
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-top: 3px solid var(--blue-primary);
  border-radius: var(--radius);
  padding: 36px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(3, 48, 147, 0.1);
}
.mv-card.is-vision {
  border-top-color: var(--yellow);
}
.mv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(3, 48, 147, 0.08);
  color: var(--blue-primary);
  margin-bottom: 16px;
  transition: transform 0.25s ease;
}
.mv-card:hover .mv-icon {
  transform: scale(1.08) rotate(-4deg);
}
.mv-card.is-vision .mv-icon {
  background: rgba(253, 202, 4, 0.14);
  color: #b8860a;
}
.mv-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.mv-card p {
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Values grid
   ========================================================================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  padding: 28px 22px;
  border-left: 2px solid var(--blue-light);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}
.value-card:hover {
  border-left-color: var(--yellow);
  transform: translateX(4px);
}
.value-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-primary);
  color: var(--white);
  margin-bottom: 16px;
  transition: background-color 0.25s ease;
}
.value-card:hover .value-icon {
  background: var(--navy);
}
.value-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-light);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 14px;
  transition: color 0.25s ease;
}
.value-card:hover .value-index {
  color: var(--blue-primary);
}
.value-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.value-card-btn {
  margin-top: 16px;
}

/* ==========================================================================
   Story / timeline
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.story-copy p {
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 18px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* The connecting line grows downward once the timeline scrolls into view,
   instead of just being statically present — transform-only, cheap. */
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed var(--blue-light);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1s ease;
}
.timeline.is-visible::before {
  transform: scaleY(1);
}
.timeline li {
  position: relative;
  padding: 0 0 32px 28px;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--blue-primary);
  transition: transform 0.25s ease;
}
.timeline li:hover::before {
  transform: scale(1.5);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-primary);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}
.timeline li h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-body);
  margin: 0 0 4px;
  transition: color 0.2s ease;
}
.timeline li:hover h4 {
  color: var(--blue-primary);
}
.timeline li p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Officers page
   ========================================================================== */
.spotlight {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
  padding: 40px;
}

.officer-photo-frame {
  position: relative;
  width: 140px;
  margin-inline: auto;
}
.officer-photo-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  padding: 5px 10px;
}

.officer-photo {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gray-light);
  border: 2px solid var(--blue-light);
  overflow: hidden;
  flex-shrink: 0;
}
.officer-photo img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58%;
  height: 58%;
  object-fit: contain;
  opacity: 0.9;
}
.spotlight .officer-photo {
  width: 140px;
  height: 140px;
  border-color: var(--yellow);
  border-width: 3px;
  margin-inline: auto;
}

.spotlight-info .eyebrow {
  color: var(--blue-light);
  display: block;
  margin-bottom: 8px;
}
.spotlight-info h2 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.spotlight-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue-primary);
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  display: block;
}
.spotlight-info p {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0;
}

.officer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.officer-card {
  position: relative;
  text-align: center;
  padding: 26px 16px;
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.officer-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}
.officer-card:hover {
  box-shadow: 0 12px 28px rgba(3, 48, 147, 0.08);
  transform: translateY(-3px);
}
.officer-card .officer-photo {
  width: 96px;
  margin: 0 auto 16px;
}
.officer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--blue-primary);
  margin-bottom: 4px;
}
.officer-position {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.placeholder-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--gray-light);
  border: 1px dashed var(--blue-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 48px;
}

/* ==========================================================================
   Events page (with photo placeholders)
   ========================================================================== */
.event-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.event-tile {
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.event-tile:hover {
  box-shadow: 0 12px 32px rgba(3, 48, 147, 0.1);
  transform: translateY(-4px);
}

.event-photo {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--gray-light);
  border-bottom: 1px solid #e4e9f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.event-photo img.has-poster {
  opacity: 1;
}

.event-photo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.event-tile-body {
  padding: 22px;
}

.event-tile-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 8px;
  display: block;
}

.event-tile-body h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.event-tile-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.event-meta svg {
  flex-shrink: 0;
}

.event-register-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.event-register-wrap .btn {
  padding: 10px 20px;
  font-size: 0.78rem;
}
.event-registered-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: #1a7f4d;
}

/* Locked preview for logged-out visitors — the description text really is
   sent to the browser (nothing here is a security control, upcoming_events
   is public-readable now), it's just visually obscured to tease "log in to
   see the rest" rather than hidden outright. */
.event-desc-lock {
  position: relative;
  margin-bottom: 14px;
}
.event-desc-lock p {
  margin-bottom: 0;
}
.event-desc-lock p.is-blurred {
  filter: blur(5px);
  user-select: none;
}
.event-desc-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--blue-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
}
.event-desc-lock-overlay svg {
  flex-shrink: 0;
}
.event-locked-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.register-event-context {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--gray-light);
  border-left: 3px solid var(--blue-primary);
  padding: 12px 16px;
  margin: -4px 0 20px;
  font-size: 0.85rem;
  color: var(--text-body);
}
.register-event-context span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.register-event-context svg {
  flex-shrink: 0;
  color: var(--blue-primary);
}

/* Featured / next-up event */
.event-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 56px;
}
.event-featured .event-photo {
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}
.event-featured .event-photo img {
  width: 120px;
  height: 120px;
}
.event-featured .event-photo img.has-poster {
  width: 100%;
  height: 100%;
}
.event-featured-body {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-featured-body h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.event-featured-body p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ==========================================================================
   Gallery — hero slideshow
   ========================================================================== */
.gallery-hero {
  padding-top: 56px;
  padding-bottom: 24px;
}

.gallery-slider {
  position: relative;
  aspect-ratio: 2 / 1;
  min-height: 380px;
  max-height: 580px;
  background: var(--navy);
  overflow: hidden;
  border-radius: var(--radius);
}

.slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.slide.is-active img {
  animation: kenburns 6.5s ease-out forwards;
}
@keyframes kenburns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 31, 58, 0.15) 0%,
    rgba(11, 31, 58, 0.35) 55%,
    rgba(11, 31, 58, 0.92) 100%
  );
}

.slide-caption {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  z-index: 2;
  color: var(--white);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease 0.25s,
    transform 0.7s ease 0.25s;
}
.slide.is-active .slide-caption {
  opacity: 1;
  transform: translateY(0);
}
.slide-caption .eyebrow {
  color: var(--yellow);
  margin-bottom: 6px;
  display: block;
}
.slide-caption h3 {
  color: var(--white);
  font-size: 1.3rem;
  max-width: 560px;
  margin: 0;
}

.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 3;
  pointer-events: none;
}
.slider-btn {
  pointer-events: all;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(11, 31, 58, 0.4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(3px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.slider-btn:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  transform: scale(1.08);
}

.slider-dots {
  position: absolute;
  right: 28px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.slider-dot.is-active {
  background: var(--yellow);
  transform: scale(1.2);
}

.slider-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 3;
}
.slider-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--yellow);
}
.slider-progress-bar.is-animating {
  animation-name: sliderProgress;
  animation-duration: 5s;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
.slider-progress-bar.is-paused {
  animation-play-state: paused;
}
@keyframes sliderProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Blueprint tick strip echoing hero */
.gallery-slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0px,
    var(--yellow) 2px,
    transparent 2px,
    transparent 24px
  );
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .slide.is-active img {
    animation: none;
  }
  .slider-progress-bar.is-animating {
    animation: none;
  }
}

/* ==========================================================================
   Gallery — yearly albums
   ========================================================================== */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.album-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-light);
  border: 1px solid #e4e9f0;
  display: block;
}

.album-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}
.album-card:hover .album-cover {
  transform: scale(1.06);
}
.album-cover img {
  width: 25%;
  height: 25%;
  object-fit: contain;
  opacity: 0.55;
}
.album-cover.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.gallery-error {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
  grid-column: 1 / -1;
}

.album-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 31, 58, 0.05) 0%,
    rgba(11, 31, 58, 0.85) 100%
  );
}

.album-count {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(3, 48, 147, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.album-info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  color: var(--white);
}
.album-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  display: block;
  margin-bottom: 4px;
}
.album-info h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Gallery — lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.92);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: minmax(0, 1fr);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(11, 31, 58, 0.6);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover {
  background: var(--blue-primary);
}

.lightbox-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  min-height: 320px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  transition: filter 0.15s ease;
}
.lightbox-image.is-loading {
  filter: blur(6px);
}

.lightbox-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(11, 31, 58, 0.5);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.lightbox-nav:hover {
  background: var(--blue-primary);
}
.lightbox-nav.prev {
  left: 16px;
}
.lightbox-nav.next {
  right: 16px;
}

.lightbox-info {
  padding: 28px;
  color: var(--white);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.lightbox-info .eyebrow {
  color: var(--yellow);
}
.lightbox-info h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin: 6px 0 10px;
}
.lightbox-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
}
#lightbox-caption {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-line;
  margin-bottom: 16px;
}
.lightbox-info .news-link {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-bottom: 20px;
  display: inline-block;
}

.lightbox-filmstrip {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
}
.lightbox-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: none;
}
.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.6;
}
.lightbox-thumb.is-active {
  border-color: var(--yellow);
}
.lightbox-thumb.is-active img {
  opacity: 1;
}

@media (max-width: 800px) {
  .lightbox-dialog {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    max-height: 95vh;
    overflow-y: auto;
  }
  .lightbox-main {
    min-height: 220px;
  }
}

.card-block {
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
  padding: 40px;
}

/* ==========================================================================
   Membership — checklist
   ========================================================================== */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--text-body);
}
.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ==========================================================================
   Membership — application steps
   ========================================================================== */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding-bottom: 40px;
}
.step-list li:last-child {
  padding-bottom: 0;
}
.step-list li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue-primary);
  background: var(--white);
  border: 2px solid var(--blue-primary);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: -40px;
  width: 1px;
  border-left: 1px dashed var(--blue-light);
}
.step-body h3 {
  font-size: 1.08rem;
  margin: 4px 0 6px;
}
.step-body p {
  color: var(--text-muted);
  margin: 0;
  max-width: 56ch;
}

/* ==========================================================================
   Membership — apply panel
   ========================================================================== */
.apply-panel {
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.apply-panel-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.apply-panel-meta a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.apply-panel-meta a:hover {
  color: var(--yellow);
}

/* ==========================================================================
   Membership — tier cards
   ========================================================================== */
.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.tier-card {
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.tier-card.is-featured {
  border-color: var(--blue-primary);
  box-shadow: 0 20px 40px rgba(3, 48, 147, 0.1);
  position: relative;
}
.tier-badge {
  position: absolute;
  top: -13px;
  left: 40px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.tier-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  display: block;
  margin-bottom: 10px;
}
.tier-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.tier-card > p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.tier-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex-grow: 1;
}
.tier-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-body);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
}
.tier-list li:last-child {
  border-bottom: none;
}
.tier-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--blue-primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .event-grid {
    grid-template-columns: 1fr;
  }
  .map-frame {
    aspect-ratio: 16 / 9;
  }
  .stat-strip-float {
    margin-top: -40px;
  }
  .stat-strip .container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }
  .stat-strip-float .container {
    padding: 28px 16px;
  }
  .stat:nth-child(3) {
    border-left: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mv-grid {
    grid-template-columns: 1fr;
  }
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .officer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spotlight {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .event-tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-featured {
    grid-template-columns: 1fr;
  }
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tier-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .news-item {
    grid-template-columns: 1fr;
  }
  .news-thumb {
    width: 100%;
    height: 180px;
  }

  .about-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
  .about-gallery-item.is-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .community-band {
    height: 280px;
  }
  .community-band-caption {
    bottom: 20px;
  }
  .community-band-caption h2 {
    font-size: 1.4rem;
  }
  .news-date {
    border-right: none;
    padding-right: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    border-bottom: 1px dashed var(--blue-light);
    padding-bottom: 10px;
  }
  .news-date .day {
    margin-bottom: 0;
  }

  .main-nav {
    position: absolute;
    top: calc(var(--header-height) + var(--ticker-height));
    left: 0;
    right: 0;
    background: var(--blue-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    gap: 4px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    display: none;
  }
  .main-nav.is-open {
    display: flex;
  }
  .header-actions {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .main-nav .header-auth {
    margin: 12px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .main-nav .header-auth .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
  }

  .nav-item {
    width: 100%;
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 4px;
  }
  .nav-item > a.nav-link::after,
  .nav-item > button.nav-link::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .has-dropdown.is-open .dropdown-menu {
    max-height: 260px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .highlight-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .event-tile-grid {
    grid-template-columns: 1fr;
  }
  .album-grid {
    grid-template-columns: 1fr;
  }
  .gallery-slider {
    aspect-ratio: 4 / 3;
    max-height: 420px;
  }
  .slide-caption {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  .slide-caption h3 {
    font-size: 1.15rem;
  }
  .slider-dots {
    right: 20px;
  }
  .slider-controls {
    padding: 0 14px;
  }
  .checklist {
    grid-template-columns: 1fr;
  }
  .step-list li {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }
  .step-list li::before {
    width: 44px;
    height: 44px;
    font-size: 0.72rem;
  }
  .step-list li:not(:last-child)::after {
    left: 21px;
    top: 44px;
  }
  .apply-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Auth — split-panel login/set-password layout, header account state
   ========================================================================== */
/* Two fixed panels rather than a lone card floating over an asymmetric
   background — the earlier single-column version measured as mathematically
   centered, but the gear decoration only on one side made the card *read*
   off-center. Splitting brand/decoration and form into their own columns
   gives each side its own visual center, so nothing has to "balance". */
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-split-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 48px 56px;
  overflow: hidden;
}
.auth-split-wordmark {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  text-decoration: none;
}
.auth-split-logo-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-split-logo-wrap::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(253, 202, 4, 0.16),
    rgba(253, 202, 4, 0) 70%
  );
}
.auth-split-logo {
  position: relative;
  width: 70%;
  max-width: 320px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.4));
}
.auth-split-brand-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
}
.auth-split-brand-content h2 {
  color: var(--white);
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 14px 0 16px;
}
.auth-split-brand-content p {
  color: var(--blue-light);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

.auth-split-form {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 48px 24px;
}

@media (max-width: 900px) {
  .auth-split {
    grid-template-columns: 1fr;
  }
  .auth-split-brand {
    padding: 24px;
    gap: 12px;
  }
  .auth-split-logo-wrap {
    flex: none;
    padding-block: 8px;
  }
  .auth-split-logo {
    width: 120px;
  }
  .auth-split-brand-content {
    display: none;
  }
  .auth-split-form {
    padding: 40px 24px;
  }
}

.auth-card-head {
  margin-bottom: 28px;
}
.auth-card-head h1 {
  margin: 0 0 4px;
  font-size: 2rem;
}
.auth-card-head .accent-bar {
  margin: 4px 0 14px;
}
.auth-card-head p {
  color: var(--text-muted);
  margin: 0;
}

.auth-card {
  max-width: 400px;
  width: 100%;
}

.auth-hint {
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-hint a {
  color: var(--blue-primary);
  text-decoration: underline;
}

.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7dee7;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-input:disabled {
  background: var(--gray-light);
  color: var(--text-muted);
  cursor: not-allowed;
}
.form-input:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(3, 48, 147, 0.12);
}
textarea.form-input {
  resize: vertical;
  min-height: 90px;
}

/* Icon-fronted input, used on the auth pages (email/password fields) */
.input-icon-group {
  position: relative;
}
.input-icon-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}
.input-icon-group .form-input {
  padding-left: 42px;
}
.input-icon-group .password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.input-icon-group .password-toggle:hover {
  color: var(--blue-primary);
}
.input-icon-group.has-toggle .form-input {
  padding-right: 42px;
}

.form-error[hidden] {
  display: none;
}
.form-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #b3261e;
  background: #fdecea;
  border: 1px solid #f4c7c3;
  padding: 12px 14px;
  font-size: 0.85rem;
  margin: -6px 0 16px;
}
.form-error::before {
  content: "!";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.form-info[hidden] {
  display: none;
}
.form-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--blue-primary);
  background: #eaf0fb;
  border: 1px solid #c7d6f2;
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
.form-info::before {
  content: "i";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  font-style: normal;
  margin-top: 1px;
}

.form-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 6px 0 0;
}

/* Attendee-goal progress bar — shared by the admin attendance context
   banner and the public event cards on events.html. */
.goal-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.goal-progress-bar {
  width: 120px;
  max-width: 100%;
  height: 6px;
  background: #e4e9f0;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.goal-progress-fill {
  height: 100%;
  background: var(--blue-primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.goal-progress.is-reached .goal-progress-fill {
  background: #1a7f4d;
}
.goal-progress-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  white-space: nowrap;
}
.goal-progress.is-reached .goal-progress-label {
  color: #1a7f4d;
}
.event-action-area .goal-progress {
  margin-bottom: 12px;
}

.auth-submit {
  width: 100%;
  justify-content: center;
}
.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.members-gate {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff7dd;
  border: 1px solid rgba(253, 202, 4, 0.5);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.members-gate-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--navy);
}
.members-gate-copy {
  flex: 1;
}
.members-gate .eyebrow {
  margin-bottom: 2px;
}
.members-gate h2 {
  font-size: 1.05rem;
  margin: 0;
}
.members-gate .btn {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .members-gate {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ==========================================================================
   Admin — dashboard shell (sidebar + content), event manager, modal
   ========================================================================== */
.admin-shell {
  display: flex;
  height: 100vh;
  background: var(--gray-light);
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 0 6px;
}
.admin-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.admin-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.3;
}
.admin-brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.admin-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.admin-nav-link.is-active {
  background: var(--blue-primary);
  color: var(--white);
}

.admin-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  margin-top: 14px;
}

.admin-content {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 44px 48px;
}

.admin-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.admin-panel-head h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.admin-panel-head p {
  color: var(--text-muted);
  margin: 0;
  max-width: 46ch;
}

.admin-events-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.admin-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}
.admin-summary-card {
  background: var(--white);
  border: 1px solid #e4e9f0;
  padding: 22px;
}
.admin-summary-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--navy);
  margin: 0 0 16px;
}
.admin-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.admin-summary-row:last-child {
  border-bottom: none;
}
.admin-summary-row strong {
  font-family: var(--font-mono);
  color: var(--blue-primary);
  font-size: 0.95rem;
}
.admin-summary-row strong.is-positive {
  color: #1a7f4d;
}
.admin-summary-tips {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.admin-summary-tips li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 12px;
}
.admin-summary-tips li:last-child {
  margin-bottom: 0;
}
.admin-summary-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--yellow);
}
@media (max-width: 1024px) {
  .admin-events-layout {
    grid-template-columns: 1fr;
  }
  .admin-summary {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .admin-summary-card {
    flex: 1;
    min-width: 240px;
  }
}

.attendance-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.attendance-field {
  margin-bottom: 0;
}
.attendance-field .form-input {
  width: 300px;
  max-width: 100%;
}
.attendance-export {
  padding: 12px 20px;
  font-size: 0.78rem;
  white-space: nowrap;
  height: 45px;
}

.attendance-context[hidden] {
  display: none;
}
.attendance-context {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-left: 3px solid var(--blue-primary);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--text-body);
}
.attendance-context strong {
  color: var(--blue-primary);
}
.attendance-context .attendance-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Role-change confirmation modal */
.risk-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.risk-list li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-body);
}
.risk-list .risk-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 1px;
}
.risk-list.is-danger .risk-icon {
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
}
.risk-list.is-safe .risk-icon {
  background: rgba(3, 48, 147, 0.1);
  color: var(--blue-primary);
}
.role-modal-target {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.credentials-box {
  background: var(--gray-light);
  border: 1px solid #e4e9f0;
  padding: 16px 18px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.credentials-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.credentials-row span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.credentials-row strong {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--navy);
  word-break: break-all;
  text-align: right;
}
.btn-primary.is-danger {
  background: #c0392b;
  color: var(--white);
}
.btn-primary.is-danger:hover {
  background: #a5311f;
}

.poster-preview-wrap[hidden] {
  display: none;
}
.poster-preview-wrap {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.poster-preview-wrap img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
}

/* ==========================================================================
   Admin — event manager cards
   ========================================================================== */
.admin-empty-state {
  grid-column: 1 / -1;
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--white);
  border: 1px dashed #d7dee7;
  border-radius: var(--radius);
}
.admin-error-notice {
  grid-column: 1 / -1;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: var(--radius);
  color: #c0392b;
  font-size: 0.85rem;
}

.event-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.event-card:hover {
  border-color: #c7d2e0;
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.08);
}
.event-card-media {
  position: relative;
  height: 140px;
  background: var(--gray-light);
}
.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-card-media.is-placeholder img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 42px auto;
  opacity: 0.4;
}
.event-card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(3, 48, 147, 0.9);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.event-card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.event-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}
.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.event-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.event-card-meta svg {
  flex-shrink: 0;
  color: var(--blue-primary);
}
.event-card .goal-progress {
  margin-top: 2px;
}
.event-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid #e4e9f0;
}
.event-card-actions-row {
  display: flex;
  gap: 8px;
}
.event-card-actions .admin-row-btn {
  flex: 1;
  text-align: center;
}
.event-card-actions .admin-row-btn.is-block {
  width: 100%;
}

/* ==========================================================================
   Admin — attendance cards
   ========================================================================== */
.attendance-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}
.attendance-card {
  width: 100%;
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-left: 3px solid var(--blue-primary);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}
.attendance-card:hover,
.attendance-card:focus-visible {
  border-color: #c7d2e0;
  box-shadow: 0 6px 16px rgba(11, 31, 58, 0.08);
}
.attendance-card:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}
.attendance-card:active {
  transform: scale(0.99);
}
.attendance-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.attendance-card-name {
  margin: 0;
  font-size: 0.98rem;
}
.attendance-card-notes-flag {
  flex-shrink: 0;
  color: var(--blue-primary);
  margin-top: 2px;
}
.attendance-card-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.attendance-card-preview svg {
  flex-shrink: 0;
  color: var(--blue-primary);
}
.attendance-card-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attendance-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #eef1f5;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}
.attendance-card-foot span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.attendance-card-view {
  color: var(--blue-primary);
  text-transform: uppercase;
}
.attendance-card-notes {
  margin: 0;
  padding: 10px 12px;
  background: var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-body);
  white-space: pre-wrap;
  word-break: break-word;
}
.attendance-card-notes-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.attendee-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-body);
}
.attendee-modal-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.attendee-modal-meta svg {
  flex-shrink: 0;
  color: var(--blue-primary);
}
.attendee-modal-empty {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

@media (max-width: 860px) {
  .admin-shell {
    flex-direction: column;
    height: auto;
  }
  /* Three distinct full-width rows (brand / nav / footer) instead of
     wrapping everything into one row — a single wrapping row looks fine at
     tablet widths but falls apart on an actual phone (~375-414px), where
     brand + 3 nav links + 2 footer links can't realistically share a line. */
  .admin-sidebar {
    width: 100%;
    height: auto;
    overflow-y: visible;
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px;
    gap: 14px;
  }
  .admin-brand {
    margin-bottom: 0;
  }
  .admin-nav {
    flex-direction: row;
    flex: initial;
    overflow-x: auto;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .admin-nav-link {
    white-space: nowrap;
  }
  .admin-sidebar-footer {
    flex-direction: row;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 14px;
    margin-top: 0;
  }
  .admin-content {
    height: auto;
    overflow-y: visible;
    padding: 24px 16px;
  }
  .admin-panel-head {
    align-items: flex-start;
  }
  .modal-dialog {
    padding: 24px 20px;
  }
  .attendance-field .form-input {
    width: 100%;
  }
}

/* ==========================================================================
   Admin — event manager table + modal
   ========================================================================== */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #e4e9f0;
  white-space: nowrap;
}
.admin-table td:nth-child(1) {
  white-space: normal;
  min-width: 220px;
}
.admin-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--gray-light);
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-table tbody tr:hover {
  background: var(--gray-light);
}
.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.member-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-light);
  border: 1px solid #d7dee7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.member-contact {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.member-contact .is-empty {
  color: #b7c0cc;
}

.avatar-field {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gray-light);
  border: 1px solid #d7dee7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-preview span {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.avatar-field-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}
.admin-row-btn {
  border: 1px solid #d7dee7;
  background: var(--white);
  color: var(--text-body);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  cursor: pointer;
  border-radius: var(--radius);
}
.admin-row-btn:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}
.admin-row-btn.is-danger:hover {
  border-color: #c0392b;
  color: #c0392b;
}
.admin-row-btn.is-danger[data-armed="true"] {
  background: #c0392b;
  border-color: #c0392b;
  color: var(--white);
}
/* Members panel's Delete opens a confirm modal on a single click (no
   arm/confirm double-click like the Event Manager's), so it needs to read
   as destructive by default, not just on hover. */
.admin-row-actions .admin-row-btn.is-danger {
  border-color: #c0392b;
  color: #c0392b;
}
}

.role-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gray-light);
  color: var(--text-muted);
}
.role-badge.role-admin {
  background: rgba(3, 48, 147, 0.1);
  color: var(--blue-primary);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.6);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.modal-dialog h3 {
  margin-bottom: 24px;
}
.modal-dialog-wide {
  max-width: 860px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  color: var(--text-body);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 28px 22px;
  }
}

/* ==========================================================================
   About page polish — reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .page-header-glow {
    animation: none;
    opacity: 0.6;
  }
  .page-header .is-entrance {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .highlight-band::after {
    animation: none;
    transform: translateY(-50%);
  }
  .stagger-children > * {
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }
  .timeline::before {
    transition-duration: 0.01ms;
  }
}
