/* Etinosa — public site */

:root {
  --forest: #0b1711;
  --forest-mid: #122019;
  --forest-soft: #1a2f23;
  --leaf: #2a5a42;
  --mint: #8fceb0;
  --gold: #b8923f;
  --gold-soft: #d9bc72;
  --gold-deep: #8a6a2a;
  --cream: #f6f1e8;
  --cream-deep: #ebe3d4;
  --paper: #fffcf7;
  --ink: #101d16;
  --muted: #5f7267;
  --line: rgba(184, 146, 63, 0.28);
  --danger: #b84d4d;
  --warn: #b8892e;
  --success: #2f7d55;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 28px 70px rgba(8, 16, 12, 0.18);
  --shadow-soft: 0 12px 40px rgba(8, 16, 12, 0.08);
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(184, 146, 63, 0.08), transparent 40%),
    radial-gradient(ellipse at 100% 20%, rgba(42, 90, 66, 0.06), transparent 45%),
    var(--cream);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.65rem;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 23, 17, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(184, 146, 63, 0.22);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--cream);
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold-deep));
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(184, 146, 63, 0.3);
}

.brand-mark-logo {
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid rgba(246, 241, 232, 0.12);
  overflow: hidden;
}

.brand-mark-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.2rem;
}

.login-card .brand-mark-logo {
  border-color: rgba(16, 29, 22, 0.1);
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-text small {
  display: block;
  margin-top: 0.28rem;
  color: rgba(246, 241, 232, 0.5);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.95rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav > a:not(.btn) {
  color: rgba(246, 241, 232, 0.78);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.site-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav > a:not(.btn):hover,
.site-nav > a:not(.btn).active {
  color: var(--gold-soft);
}

.site-nav > a:not(.btn).active::after,
.site-nav > a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: rgba(246, 241, 232, 0.06);
  border: 1px solid rgba(246, 241, 232, 0.15);
  border-radius: 10px;
  cursor: pointer;
  padding: 0.55rem 0.6rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: var(--cream);
  border-radius: 2px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.92rem var(--font-body);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 0.46rem 0.95rem; font-size: 0.8rem; }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--forest);
  box-shadow: 0 10px 26px rgba(184, 146, 63, 0.28);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #e6cd8c, var(--gold-soft));
}

.btn-outline {
  border-color: rgba(246, 241, 232, 0.35);
  color: var(--cream) !important;
  background: rgba(246, 241, 232, 0.04);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-soft) !important;
  background: rgba(184, 146, 63, 0.1);
}

.btn-dark {
  background: var(--forest);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
}

.btn-dark:hover { background: var(--forest-soft); }

.btn-ghost {
  background: transparent;
  border-color: rgba(42, 90, 66, 0.35);
  color: var(--leaf);
}

.btn-ghost:hover {
  border-color: var(--leaf);
  background: rgba(42, 90, 66, 0.06);
}

.btn-danger { background: var(--danger); color: #fff; }

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: var(--cream);
  overflow: hidden;
  background: var(--forest);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(185deg, rgba(11, 23, 17, 0.25) 0%, rgba(11, 23, 17, 0.72) 48%, rgba(11, 23, 17, 0.96) 100%),
    radial-gradient(ellipse at 78% 18%, rgba(184, 146, 63, 0.28), transparent 42%),
    radial-gradient(ellipse at 12% 70%, rgba(42, 90, 66, 0.35), transparent 45%),
    url("../img/hero.svg") center / cover no-repeat;
}

.hero-media .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}

.hero.hero-has-photo .hero-media {
  background: var(--forest);
}

.hero.hero-has-photo .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(185deg, rgba(11, 23, 17, 0.38) 0%, rgba(11, 23, 17, 0.58) 42%, rgba(11, 23, 17, 0.92) 100%),
    linear-gradient(90deg, rgba(11, 23, 17, 0.5) 0%, rgba(11, 23, 17, 0.18) 55%, rgba(11, 23, 17, 0.4) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(246, 241, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 232, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 75%);
  pointer-events: none;
  animation: gridDrift 28s linear infinite;
}

.hero.hero-has-photo::before {
  opacity: 0.28;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: 140px;
  background: linear-gradient(transparent, var(--cream));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 8rem 0 5.5rem;
  max-width: 740px;
}

.hero-caption {
  margin: 1.6rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.55);
  animation: rise 0.95s 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroKenBurns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 7rem);
  line-height: 0.9;
  margin: 0 0 1rem;
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  font-weight: 500;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
  max-width: 28ch;
  animation: rise 0.95s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero > .container > .hero-inner > p,
.hero-inner > p {
  font-size: 1.08rem;
  color: rgba(246, 241, 232, 0.78);
  max-width: 34rem;
  animation: rise 0.95s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
  animation: rise 0.95s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(72px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-dark {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(184, 146, 63, 0.12), transparent 40%),
    var(--forest);
  color: var(--cream);
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(235, 227, 212, 0.65), rgba(235, 227, 212, 0.95));
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.6rem;
}

.section-head h2 {
  font-size: clamp(2.15rem, 4.2vw, 3rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-head p {
  color: rgba(246, 241, 232, 0.65);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.feature {
  padding: 1.75rem 0 0.4rem;
  border-top: 1px solid rgba(184, 146, 63, 0.4);
  transition: transform 0.25s ease;
}

.feature:hover { transform: translateY(-3px); }

.feature h3 {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* —— Stats band —— */
.stats-band {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  padding-bottom: 0.5rem;
}

/* —— President’s Desk —— */
.president-desk {
  padding-top: 3.5rem;
}

.president-spotlight {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.2rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(184, 146, 63, 0.16), transparent 45%),
    linear-gradient(145deg, #132419 0%, #0f1c14 55%, #1a2f23 100%);
  color: var(--cream);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.president-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 241, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 232, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}

.president-portrait,
.president-message {
  position: relative;
  z-index: 1;
}

.president-photo-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid rgba(217, 188, 114, 0.65);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  background: var(--forest-mid);
}

.president-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.president-spotlight:hover .president-photo-frame img {
  transform: scale(1.04);
}

.president-fallback-avatar {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5;
  border-radius: 18px !important;
  font-size: 5rem !important;
}

.president-portrait-meta {
  margin-top: 1.15rem;
}

.president-portrait-meta h3 {
  font-size: 1.85rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.president-portrait-meta .role {
  color: var(--gold-soft);
  font-weight: 600;
}

.president-portrait-meta .term {
  margin-top: 0.35rem;
  color: rgba(246, 241, 232, 0.55);
  font-size: 0.88rem;
}

.president-message .eyebrow {
  color: var(--gold-soft);
}

.president-message h2 {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  color: #fff;
  margin-bottom: 1.1rem;
}

.president-message blockquote {
  margin: 0;
  padding: 0 0 0 1.15rem;
  border-left: 3px solid var(--gold);
}

.president-message blockquote p {
  color: rgba(246, 241, 232, 0.86);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1rem;
}

.president-message blockquote p:last-child {
  margin-bottom: 0;
}

.president-signoff {
  margin: 1.5rem 0 1.25rem;
  display: grid;
  gap: 0.2rem;
}

.president-signoff strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-soft);
}

.president-signoff span {
  color: rgba(246, 241, 232, 0.55);
  font-size: 0.9rem;
}

.president-message .btn-ghost {
  border-color: rgba(217, 188, 114, 0.4);
  color: var(--gold-soft);
}

.president-message .btn-ghost:hover {
  background: rgba(184, 146, 63, 0.12);
  border-color: var(--gold);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  background: var(--paper);
  border: 1px solid rgba(16, 29, 22, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.35rem;
  overflow: hidden;
}

.stat {
  padding: 1.35rem 1.2rem;
  border-radius: 12px;
  text-align: left;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.35rem;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat span {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.stat:nth-child(odd) {
  background: rgba(184, 146, 63, 0.08);
}

.section-head-center {
  text-align: center;
  margin-inline: auto;
  max-width: 34rem;
}

/* —— Officers —— */
.officer-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(217, 188, 114, 0.35), transparent 50%),
    linear-gradient(145deg, var(--leaf), var(--forest));
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 700;
  border: 3px solid var(--gold);
  box-shadow: 0 12px 28px rgba(11, 23, 17, 0.18);
  overflow: hidden;
  flex-shrink: 0;
}

.officer-avatar.has-photo {
  background: var(--forest-mid);
  padding: 0;
}

.officer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.officer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.officer-grid-page {
  grid-template-columns: repeat(3, 1fr);
}

.officer-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(16, 29, 22, 0.06);
  box-shadow: 0 16px 40px rgba(11, 23, 17, 0.07);
  animation: rise 0.7s ease both;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.officer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(11, 23, 17, 0.14);
}

.officer-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(217, 188, 114, 0.28), transparent 50%),
    linear-gradient(160deg, var(--leaf), var(--forest));
}

.officer-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.7s ease;
}

.officer-card:hover .officer-card-media img {
  transform: scale(1.06);
}

.officer-card-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(246, 241, 232, 0.9);
  letter-spacing: -0.02em;
}

.officer-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(11, 23, 17, 0.78) 100%),
    linear-gradient(90deg, rgba(11, 23, 17, 0.12), transparent 40%);
  pointer-events: none;
}

.officer-card-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.94);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.officer-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.3rem 1.4rem;
  flex: 1;
}

.officer-card-body h3 {
  font-size: 1.45rem;
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
}

.officer-card-body .term {
  color: var(--gold-deep);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.members-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.members-filter label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.members-filter select {
  min-width: 11rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 29, 22, 0.14);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.members-count {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.member-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.member-directory-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(16, 29, 22, 0.06);
  box-shadow: 0 14px 36px rgba(11, 23, 17, 0.06);
  animation: rise 0.7s ease both;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.member-directory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(11, 23, 17, 0.12);
}

.member-directory-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(217, 188, 114, 0.24), transparent 50%),
    linear-gradient(160deg, var(--leaf), var(--forest));
}

.member-directory-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.member-directory-card:hover .member-directory-media img {
  transform: scale(1.05);
}

.member-directory-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(246, 241, 232, 0.9);
}

.member-directory-badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 1;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.94);
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.member-directory-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
}

.member-directory-body h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.2;
}

.member-directory-meta {
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.member-directory-body p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.officer-card-body p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}

.officer-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  color: var(--leaf);
  font-size: 0.88rem;
  font-weight: 600;
  transition: gap 0.2s ease, color 0.2s ease;
}

.officer-card-link:hover {
  color: var(--gold-deep);
  gap: 0.55rem;
}

.officers-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
}

/* —— Gallery —— */
.gallery-section {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(184, 146, 63, 0.08), transparent 42%),
    var(--cream);
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
  grid-auto-rows: 140px;
}

.gallery-mosaic-home {
  grid-auto-rows: 130px;
}

.gallery-mosaic-page {
  grid-auto-rows: 160px;
}

.gallery-tile {
  position: relative;
  grid-column: span 3;
  grid-row: span 2;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--forest-mid);
  box-shadow: 0 14px 36px rgba(11, 23, 17, 0.1);
  animation: rise 0.65s ease both;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-tile-wide {
  grid-column: span 6;
}

.gallery-tile-tall {
  grid-row: span 3;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s ease;
}

.gallery-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, transparent 35%, rgba(11, 23, 17, 0.82) 100%);
  color: var(--cream);
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-tile-overlay strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.gallery-tile-overlay span {
  font-size: 0.82rem;
  color: rgba(246, 241, 232, 0.75);
  line-height: 1.4;
}

.gallery-tile:hover,
.gallery-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(11, 23, 17, 0.18);
  outline: none;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  transform: scale(1.06);
}

.gallery-tile:hover .gallery-tile-overlay,
.gallery-tile:focus-visible .gallery-tile-overlay {
  opacity: 1;
}

.gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(11, 23, 17, 0.92);
  backdrop-filter: blur(8px);
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(246, 241, 232, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-inner {
  margin: 0;
  max-width: min(920px, 100%);
  width: 100%;
}

.gallery-lightbox-inner img {
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.gallery-lightbox-inner figcaption {
  margin-top: 1rem;
  text-align: center;
  color: rgba(246, 241, 232, 0.88);
}

.gallery-lightbox-inner figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.gallery-lightbox-inner figcaption span:empty {
  display: none;
}

/* —— Announcements —— */
.announcements-section {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

.announcements-block {
  margin-bottom: 0.5rem;
}

.announcements-head {
  margin-bottom: 1.35rem;
}

.announcements-head h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  margin: 0;
}

.announcements-list {
  display: grid;
  gap: 1rem;
}

.announcement-card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(16, 29, 22, 0.08);
  border-radius: 18px;
  padding: 1.35rem 1.45rem 1.4rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.announcement-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--leaf), var(--gold));
}

.announcement-card--pinned {
  border-color: rgba(184, 146, 63, 0.28);
  background: linear-gradient(135deg, rgba(255, 252, 247, 1) 0%, rgba(246, 241, 232, 0.92) 100%);
}

.announcement-pin {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 0.55rem;
}

.announcement-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.announcement-card-head h3 {
  font-size: 1.35rem;
  margin: 0;
}

.announcement-date {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.announcement-body {
  color: var(--ink);
  line-height: 1.65;
  font-size: 0.96rem;
}

.announcement-body p {
  margin: 0 0 0.75rem;
}

.announcement-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--leaf);
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 90, 66, 0.25);
  padding-bottom: 0.1rem;
}

.announcement-link:hover {
  color: var(--gold-deep);
  border-bottom-color: rgba(184, 146, 63, 0.55);
}

@media (min-width: 900px) {
  .announcements-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .announcement-card--pinned {
    grid-column: 1 / -1;
  }
}

/* —— Member portal profile —— */
.member-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.member-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.member-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--leaf), var(--forest-soft));
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(246, 241, 232, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.member-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-hero-avatar {
  width: 96px;
  height: 96px;
  font-size: 2.2rem;
}

.page-hero-compact {
  padding: 3.8rem 0 2.8rem;
}

.member-profile-grid {
  display: grid;
  gap: 1.25rem;
}

.member-profile-panel {
  background: var(--paper);
  border: 1px solid rgba(16, 29, 22, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.member-profile-panel-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(16, 29, 22, 0.06);
  background: rgba(42, 90, 66, 0.04);
}

.member-profile-panel-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.member-profile-panel-body {
  padding: 1.25rem;
}

.member-profile-photo-body {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.member-profile-avatar {
  width: 120px;
  height: 120px;
  font-size: 2.6rem;
}

.member-profile-photo-meta {
  display: grid;
  gap: 0.2rem;
}

.member-profile-photo-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.member-profile-photo-body .form-grid {
  width: 100%;
  text-align: left;
}

.photo-remove {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (min-width: 960px) {
  .member-profile-grid {
    grid-template-columns: minmax(260px, 320px) 1fr;
  }

  .member-profile-grid .member-profile-panel:last-child {
    grid-column: 1 / -1;
  }
}

/* —— Member dashboard ads —— */
.member-ads-block {
  margin-bottom: 0.5rem;
}

.member-ads-head {
  margin-bottom: 1.15rem;
}

.member-ads-head .eyebrow {
  display: block;
  margin-bottom: 0.35rem;
}

.member-ads-head h2 {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  margin: 0;
}

.member-ads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.member-ads-layout--stack .member-ads-grid,
.member-ads-layout--rail .member-ads-grid,
.member-ads-layout--login .member-ads-grid {
  grid-template-columns: 1fr;
}

.member-ad-card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(16, 29, 22, 0.07);
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.member-ad-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--leaf));
}

.member-ad-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.member-ad-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

.member-ad-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.member-ad-image {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(16, 29, 22, 0.06);
}

.member-ad-image img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.member-ad-image:hover img {
  transform: scale(1.03);
}

.member-ad-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(16, 29, 22, 0.08);
}

.member-ad-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.member-ad-cta {
  margin-top: 1rem;
}

.member-ad-follow {
  margin-top: 0.95rem;
}

.member-ad-card--rail .member-ad-follow {
  margin-top: 0.7rem;
  width: 100%;
  justify-content: center;
}

.member-ad-card--compact {
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 16px;
}

.member-ad-card--compact h3 {
  font-size: 1.2rem;
}

.member-ad-card--compact .member-ad-desc {
  font-size: 0.86rem;
  margin-bottom: 0.85rem;
}

.member-ad-card--rail {
  padding: 0.95rem 1rem 1.05rem;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(8, 16, 12, 0.12);
}

.member-ad-card--rail h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.member-ad-card--rail .member-ad-desc {
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-ad-card--rail .member-ad-video,
.member-ad-card--rail .member-ad-image {
  border-radius: 10px;
}

/* Homepage ads side rail */
.ads-home-rail {
  display: none;
}

.ads-home-mobile {
  display: block;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.ads-rail-toggle {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 23, 17, 0.72);
  color: var(--cream);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ads-rail-toggle:hover {
  background: rgba(42, 90, 66, 0.95);
  transform: scale(1.05);
}

.ads-rail-body {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ads-rail-tab {
  display: none;
  position: fixed;
  top: calc(var(--header-h) + 5.5rem);
  right: 0;
  z-index: 31;
  border: 0;
  border-radius: 12px 0 0 12px;
  padding: 0.85rem 0.6rem 0.85rem 0.7rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: -8px 8px 24px rgba(8, 16, 12, 0.22);
}

.ads-home-rail.is-minimized .ads-rail-tab {
  display: block;
  animation: ads-trigger-glow 2.4s ease-in-out infinite, ads-trigger-shake 5s ease-in-out infinite;
}

.ads-home-rail.is-minimized .ads-rail-tab:hover {
  animation: none;
  transform: translateX(-2px) scale(1.03);
  box-shadow: -10px 10px 28px rgba(184, 146, 63, 0.45), 0 0 22px rgba(184, 146, 63, 0.35);
}

.ads-home-rail.is-minimized .ads-rail-body {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  visibility: hidden;
}

.ads-home-rail.is-minimized .ads-rail-toggle {
  display: none;
}

.ads-mobile-shell {
  border: 1px solid rgba(16, 29, 22, 0.08);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.ads-mobile-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: linear-gradient(90deg, rgba(42, 90, 66, 0.08), rgba(184, 146, 63, 0.1));
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ads-mobile-toggle-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(11, 23, 17, 0.08);
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.ads-home-mobile.is-minimized .ads-mobile-toggle {
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(90deg, rgba(184, 146, 63, 0.16), rgba(42, 90, 66, 0.12));
  animation: ads-trigger-glow-soft 2.4s ease-in-out infinite;
}

.ads-home-mobile.is-minimized .ads-mobile-toggle::before {
  content: "Promo";
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.ads-home-mobile.is-minimized .ads-mobile-toggle-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--forest);
  font-weight: 700;
  animation: ads-trigger-shake 4.5s ease-in-out infinite, ads-trigger-glow 2.4s ease-in-out infinite;
}

.ads-home-mobile.is-minimized .ads-mobile-toggle:hover {
  animation: none;
}

.ads-home-mobile.is-minimized .ads-mobile-toggle:hover .ads-mobile-toggle-icon {
  animation: none;
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(184, 146, 63, 0.55);
}

@keyframes ads-trigger-glow {
  0%, 100% {
    box-shadow: -8px 8px 24px rgba(8, 16, 12, 0.22), 0 0 0 0 rgba(184, 146, 63, 0.15);
  }
  50% {
    box-shadow: -10px 10px 30px rgba(184, 146, 63, 0.35), 0 0 20px 4px rgba(184, 146, 63, 0.45);
  }
}

@keyframes ads-trigger-glow-soft {
  0%, 100% {
    box-shadow: inset 0 0 0 0 rgba(184, 146, 63, 0);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(184, 146, 63, 0.35);
  }
}

@keyframes ads-trigger-shake {
  0%, 88%, 100% {
    transform: translateX(0);
  }
  90% {
    transform: translateX(-2px) rotate(-1deg);
  }
  92% {
    transform: translateX(2px) rotate(1deg);
  }
  94% {
    transform: translateX(-2px) rotate(-1deg);
  }
  96% {
    transform: translateX(2px) rotate(1deg);
  }
  98% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ads-home-rail.is-minimized .ads-rail-tab,
  .ads-home-mobile.is-minimized .ads-mobile-toggle,
  .ads-home-mobile.is-minimized .ads-mobile-toggle-icon {
    animation: none;
  }
}

.ads-mobile-body {
  padding: 0.9rem 1rem 1.1rem;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
}

.ads-home-mobile.is-minimized .ads-mobile-body {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.ads-home-mobile.is-minimized .ads-mobile-toggle-icon {
  transform: rotate(180deg);
}

@media (min-width: 1320px) {
  .ads-home-rail {
    display: block;
    position: fixed;
    top: calc(var(--header-h) + 1.25rem);
    right: max(1rem, calc((100vw - 1180px) / 2 - 340px));
    width: min(300px, calc(100vw - 2rem));
    max-height: calc(100vh - var(--header-h) - 2.5rem);
    z-index: 30;
  }

  .ads-rail-body {
    max-height: calc(100vh - var(--header-h) - 2.5rem);
    overflow-y: auto;
    padding-right: 0.15rem;
    scrollbar-width: thin;
  }

  .ads-home-rail .member-ads-block {
    position: relative;
    background: rgba(255, 252, 247, 0.96);
    border: 1px solid rgba(16, 29, 22, 0.08);
    border-radius: 18px;
    padding: 2.35rem 1rem 1.1rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
  }

  .ads-home-mobile {
    display: none;
  }
}

/* —— Inner page hero —— */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(184, 146, 63, 0.22), transparent 38%),
    linear-gradient(135deg, #0b1711 0%, #163226 55%, #0f2018 100%);
  color: var(--cream);
  padding: 4.8rem 0 3.6rem;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 241, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 232, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  color: #fff;
  animation: rise 0.7s ease both;
}

.page-hero p {
  max-width: 36rem;
  color: rgba(246, 241, 232, 0.72);
  font-size: 1.06rem;
  animation: rise 0.7s 0.08s ease both;
}

/* —— Tables —— */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 29, 22, 0.07);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(16, 29, 22, 0.06);
  vertical-align: top;
}

th {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: linear-gradient(180deg, #f8f3ea, #f3ece1);
  font-weight: 600;
}

tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(143, 206, 176, 0.07); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-success { background: rgba(47, 125, 85, 0.14); color: var(--success); }
.badge-warn { background: rgba(184, 137, 46, 0.16); color: #7a5a14; }
.badge-danger { background: rgba(184, 77, 77, 0.14); color: var(--danger); }
.badge-muted { background: rgba(95, 114, 103, 0.14); color: var(--muted); }

/* —— Forms —— */
.form-card {
  background: var(--paper);
  border: 1px solid rgba(16, 29, 22, 0.07);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow);
}

.form-grid { display: grid; gap: 1.05rem; }

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.38rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 29, 22, 0.14);
  background: #fff;
  font: 400 0.95rem var(--font-body);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 146, 63, 0.2);
}

textarea { min-height: 120px; resize: vertical; }

.alert {
  padding: 0.95rem 1.15rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.alert-success {
  background: rgba(47, 125, 85, 0.1);
  color: var(--success);
  border: 1px solid rgba(47, 125, 85, 0.22);
}

.alert-error {
  background: rgba(184, 77, 77, 0.1);
  color: var(--danger);
  border: 1px solid rgba(184, 77, 77, 0.22);
}

.alert-info {
  background: rgba(184, 146, 63, 0.12);
  color: #6e5618;
  border: 1px solid rgba(184, 146, 63, 0.28);
}

/* —— Elections —— */
.election-block {
  padding: 1.7rem 0;
  border-bottom: 1px solid rgba(16, 29, 22, 0.09);
}

.election-block:last-child { border-bottom: 0; }

.candidate-bars {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.cand-row { display: grid; gap: 0.4rem; }

.cand-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.93rem;
  font-weight: 560;
}

.bar {
  height: 11px;
  border-radius: 999px;
  background: rgba(16, 29, 22, 0.08);
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--gold));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(184, 146, 63, 0.35);
}

/* —— CTA —— */
.cta-strip {
  display: grid;
  grid-template-columns: 1.45fr auto;
  gap: 1.6rem;
  align-items: center;
  padding: 2.4rem 1.8rem;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 146, 63, 0.14), transparent 45%),
    var(--paper);
  border: 1px solid rgba(16, 29, 22, 0.07);
  box-shadow: var(--shadow-soft);
}

.cta-strip h2 { font-size: 2.15rem; margin: 0; }
.cta-strip p { margin: 0.45rem 0 0; color: var(--muted); }

/* —— Footer —— */
.site-footer {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184, 146, 63, 0.12), transparent 40%),
    var(--forest);
  color: rgba(246, 241, 232, 0.7);
  padding: 4rem 0 1.6rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 2.2rem;
  margin-bottom: 2.8rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 0.55rem;
  line-height: 1;
}

.site-footer h4 {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.site-footer a {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(246, 241, 232, 0.68);
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer a:hover {
  color: var(--gold-soft);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(246, 241, 232, 0.1);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(246, 241, 232, 0.4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.footer-credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.1rem;
}

.footer-credit-link {
  color: rgba(246, 241, 232, 0.58);
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 241, 232, 0.18);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-credit-link:hover {
  color: var(--gold-soft);
  border-bottom-color: rgba(217, 188, 114, 0.55);
}

.brand-powered-by {
  font-size: 0.78rem;
  color: rgba(246, 241, 232, 0.45);
}

.empty-state {
  padding: 2.8rem 1.5rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(16, 29, 22, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 252, 247, 0.55);
}

.page-hero--compact {
  padding-bottom: 2.5rem;
}

.forum-back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: rgba(246, 241, 232, 0.72);
  font-size: 0.9rem;
  text-decoration: none;
}

.forum-back-link:hover {
  color: var(--gold-soft);
}

.forum-topic-list {
  display: grid;
  gap: 1.1rem;
}

.forum-topic-card {
  padding: 1.35rem 1.45rem;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid rgba(16, 29, 22, 0.06);
  box-shadow: 0 12px 32px rgba(11, 23, 17, 0.06);
  animation: rise 0.65s ease both;
}

.forum-topic-card--pinned {
  border-color: rgba(217, 188, 114, 0.35);
  box-shadow: 0 14px 36px rgba(11, 23, 17, 0.08);
}

.forum-topic-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.forum-topic-pin,
.forum-topic-status {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.forum-topic-pin {
  background: rgba(217, 188, 114, 0.18);
  color: var(--gold-deep);
}

.forum-topic-status--open {
  background: rgba(46, 125, 87, 0.12);
  color: var(--leaf);
}

.forum-topic-status--closed {
  background: rgba(16, 29, 22, 0.08);
  color: var(--muted);
}

.forum-topic-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.55rem;
  line-height: 1.2;
}

.forum-topic-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.forum-topic-card h2 a:hover {
  color: var(--leaf);
}

.forum-topic-excerpt {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.forum-topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.forum-topic-meta--hero {
  margin-top: 0.85rem;
  color: rgba(246, 241, 232, 0.72);
}

.forum-topic-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.95rem;
  color: var(--leaf);
  font-weight: 600;
  font-size: 0.9rem;
}

.forum-signin-note {
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.7);
  border: 1px dashed rgba(16, 29, 22, 0.14);
  color: var(--muted);
}

.forum-signin-note--panel {
  padding: 1.5rem;
  background: var(--paper);
  border-style: solid;
  box-shadow: var(--shadow-soft);
}

.forum-signin-note--panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.forum-thread-layout {
  max-width: 820px;
}

.forum-post {
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid rgba(16, 29, 22, 0.06);
  box-shadow: 0 10px 28px rgba(11, 23, 17, 0.05);
}

.forum-post--opening {
  border-left: 4px solid var(--gold);
}

.forum-post--official {
  border-left: 4px solid var(--leaf);
  background: rgba(255, 252, 247, 0.92);
}

.forum-post-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.forum-post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.forum-post-author strong {
  display: block;
  color: var(--ink);
}

.forum-post-author span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.forum-post-head time {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.forum-post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--leaf), var(--forest));
  color: rgba(246, 241, 232, 0.95);
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.forum-post-avatar--admin {
  background: linear-gradient(160deg, var(--gold-deep), var(--gold));
  color: var(--forest);
}

.forum-post-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.forum-post-body {
  color: var(--ink);
  line-height: 1.65;
}

.forum-replies {
  margin-top: 1.5rem;
}

.forum-replies-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--muted);
}

.forum-replies .forum-post + .forum-post {
  margin-top: 0.85rem;
}

.forum-post--comment {
  border-left-color: rgba(46, 125, 87, 0.45);
  background: rgba(255, 252, 247, 0.88);
}

.forum-comment-thread {
  margin-top: 0.75rem;
  margin-left: 1.15rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(16, 29, 22, 0.08);
}

.forum-comment-thread .forum-post + .forum-post {
  margin-top: 0.75rem;
}

.forum-comment-box {
  margin-top: 0.9rem;
}

.forum-comment-box summary {
  cursor: pointer;
  color: var(--leaf);
  font-size: 0.86rem;
  font-weight: 600;
  list-style: none;
}

.forum-comment-box summary::-webkit-details-marker {
  display: none;
}

.forum-comment-box summary::before {
  content: '↳ ';
}

.forum-comment-form {
  margin-top: 0.85rem;
}

.forum-comment-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--leaf);
  font-size: 0.86rem;
  font-weight: 600;
}

.forum-reply-panel {
  margin-top: 1.75rem;
  padding-top: 0.25rem;
}

.forum-reply-panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.forum-reply-note {
  margin: 0 0 1rem;
  color: var(--muted);
}

.forum-reply-closed {
  margin-top: 0;
}

.forum-opening-admin,
.forum-admin-reply {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(16, 29, 22, 0.08);
}

.forum-admin-reply--official {
  background: rgba(46, 125, 87, 0.04);
  padding-inline: 0.75rem;
  border-radius: 10px;
}

.forum-admin-replies h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.05rem;
}

.notice-box {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  padding: 1.35rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow-soft);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.1rem;
}

.toolbar .field { min-width: 160px; flex: 1; }

ul {
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.85;
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .grid-3,
  .grid-2,
  .stats-row,
  .footer-grid,
  .cta-strip,
  .president-spotlight {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .officer-grid,
  .officer-grid-page {
    grid-template-columns: repeat(2, 1fr);
  }

  .member-directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-mosaic,
  .gallery-mosaic-home,
  .gallery-mosaic-page {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-tile,
  .gallery-tile-wide,
  .gallery-tile-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-tile-overlay {
    opacity: 1;
  }

  .member-ads-grid {
    grid-template-columns: 1fr;
  }

  .officer-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
  }

  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(18, 32, 25, 0.98);
    padding: 1rem 1.35rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    border-bottom: 1px solid rgba(184, 146, 63, 0.2);
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: flex; }

  .site-nav > a:not(.btn) {
    padding: 0.7rem 0.2rem;
  }

  .site-nav .btn {
    width: 100%;
    margin-top: 0.25rem;
  }

  .hero-inner { padding: 6.5rem 0 4.5rem; }
  .hero-brand { font-size: clamp(3.4rem, 16vw, 5rem); }
}

@media (max-width: 560px) {
  .stats-row { grid-template-columns: 1fr; }
  .cta-strip { padding: 1.6rem 1.2rem; }
  .officer-grid,
  .officer-grid-page {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .member-directory-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .member-hero-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* —— Class of picker & context —— */
.class-context-bar {
  background: linear-gradient(90deg, #1a2f23, #122019);
  color: var(--cream);
  border-bottom: 1px solid rgba(184, 146, 63, 0.35);
  font-size: 0.88rem;
}

.class-context-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.class-context-label strong {
  color: var(--gold-soft);
  font-weight: 600;
}

.class-context-switch {
  color: var(--gold-soft);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.class-picker-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.2rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184, 146, 63, 0.18), transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(42, 90, 66, 0.22), transparent 50%),
    var(--forest);
}

.class-picker {
  width: min(920px, 100%);
}

.class-picker-intro {
  text-align: center;
  color: var(--cream);
  margin-bottom: 2rem;
}

.class-picker-intro .brand {
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #fff;
}

.class-picker-intro h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  margin-bottom: 0.6rem;
}

.class-picker-intro p {
  color: rgba(246, 241, 232, 0.78);
  max-width: 36rem;
  margin-inline: auto;
}

.class-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.class-picker-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  padding: 1.35rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(184, 146, 63, 0.28);
  background: rgba(255, 252, 247, 0.96);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: classCardIn 0.45s ease both;
}

.class-picker-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.class-picker-card.is-current {
  border-color: var(--gold);
  outline: 2px solid rgba(184, 146, 63, 0.35);
}

.class-picker-year {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--leaf);
  line-height: 1;
}

.class-picker-card strong {
  font-size: 1.05rem;
}

.class-picker-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.class-picker-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  background: rgba(184, 146, 63, 0.18);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.class-picker-foot {
  text-align: center;
  margin-top: 1.75rem;
  color: rgba(246, 241, 232, 0.7);
}

.class-picker-foot a {
  color: var(--gold-soft);
}

@keyframes classCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .class-context-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
