/* ===========================================================================
   Zeta Beta Xi — collegiate design system (navy + gold)
   Placeholder-driven; swap content per README.
   =========================================================================== */

:root {
  --navy:        #0A1F44;
  --navy-2:      #12305F;
  --navy-deep:   #071634;
  --gold:        #C8A24B;
  --gold-bright: #E8C766;
  --gold-deep:   #9A7628;
  --cream:       #F7F5EF;
  --cream-2:     #EFEADC;
  --ink:         #12151C;
  --muted:       #5B6270;
  /* "white" is warm paper sitewide — true #fff stays only on the crest badge */
  --white:       #FBF8F1;
  --paper:       #FDFBF6;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --display: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1160px;
  --shadow: 0 18px 50px rgba(10, 31, 68, 0.16);
  --shadow-sm: 0 6px 18px rgba(10, 31, 68, 0.10);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 .4em; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy .section-title { color: var(--gold-bright); }
.section--cream2 { background: var(--cream-2); }
.center { text-align: center; }

/* Eyebrow + gold rule */
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: .8rem;
}
.section--navy .eyebrow { color: var(--gold-bright); }
.rule { width: 74px; height: 3px; background: var(--gold); border: 0; margin: 1.1rem 0; }
.center .rule { margin-inline: auto; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.section--navy .lede { color: #cdd6e6; }
.center .lede { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-block; font-weight: 600; font-size: .98rem;
  padding: .85rem 1.7rem; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--navy-deep); box-shadow: 0 10px 24px rgba(200,162,75,.35); }
.btn--gold:hover { box-shadow: 0 14px 30px rgba(200,162,75,.5); transform: translateY(-2px); }
.btn--ghost { border-color: var(--gold); color: var(--gold-bright); }
.btn--ghost:hover { background: var(--gold); color: var(--navy-deep); }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { background: var(--navy-2); transform: translateY(-2px); }

/* ---------- Header / nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(7, 22, 52, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200,162,75,.28);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--cream); }
.brand img { height: 42px; width: auto; }
.brand__txt { font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; }
.brand__txt small { display: block; font-family: var(--sans); font-size: .6rem; letter-spacing: .25em; color: var(--gold-bright); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { color: #d7deec; font-size: .92rem; font-weight: 500; letter-spacing: .02em; transition: color .15s; }
.nav__links a:hover { color: var(--gold-bright); }
.nav__cta { padding: .55rem 1.2rem; font-size: .88rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--gold-bright); margin: 5px 0; transition: .25s; }

/* Account indicator (top-right) */
.nav__account { display: flex; align-items: center; position: relative; }
.nav__chip {
  display: flex; align-items: center; gap: .55rem; cursor: pointer;
  background: rgba(200,162,75,.10); border: 1.5px solid rgba(200,162,75,.5);
  color: var(--cream); border-radius: 999px; padding: .32rem .7rem .32rem .35rem;
  font-family: var(--sans); font-size: .9rem; transition: background .15s, border-color .15s;
}
.nav__chip:hover { background: rgba(200,162,75,.2); border-color: var(--gold); }
.nav__avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--navy-deep);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .95rem;
}
.nav__chip-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.nav__caret { color: var(--gold-bright); font-size: .7rem; }
.admin-badge {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--navy-deep);
  font-size: .6rem; font-weight: 800; letter-spacing: .1em; padding: .12rem .4rem; border-radius: 5px;
}
.nav__menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 232px;
  background: #0c2350; border: 1px solid rgba(200,162,75,.35); border-radius: 12px;
  padding: .5rem; z-index: 120; box-shadow: 0 18px 44px rgba(0,0,0,.5);
  display: none;
}
.nav__menu.open { display: block; }
.nav__menu-head { padding: .5rem .6rem .7rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .4rem; }
.nav__menu-head b { display: block; color: var(--cream); font-family: var(--display); font-size: 1rem; }
.nav__menu-head span { display: block; color: #b9c4dc; font-size: .74rem; overflow: hidden; text-overflow: ellipsis; }
.nav__menu-head .admin-badge { display: inline-block; margin-top: .45rem; }
.nav__menu a, .nav__menu button {
  display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  color: #d7deec; font-family: var(--sans); font-size: .9rem; padding: .6rem .6rem; border-radius: 8px; transition: background .12s, color .12s;
}
.nav__menu a:hover, .nav__menu button:hover { background: rgba(200,162,75,.12); color: var(--gold-bright); }
.nav__menu-admin { color: var(--gold-bright) !important; font-weight: 600; }
.nav__menu-divider { height: 1px; background: rgba(255,255,255,.08); margin: .4rem 0; }
.nav__menu-signout:hover { background: rgba(180,52,43,.18) !important; color: #ff9c93 !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--cream); padding-top: 72px; overflow: hidden;
}
/* Smooth navy field with warm gold accent glows on both sides. */
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(80% 70% at 26% 42%, rgba(200,162,75,.30), rgba(200,162,75,0) 60%),
    radial-gradient(90% 80% at 96% 8%, rgba(232,199,102,.16), rgba(232,199,102,0) 55%),
    radial-gradient(140% 120% at 50% 120%, var(--navy-2), rgba(18,48,95,0) 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-deep) 100%);
}
/* Two columns: crest on the left, text on the right — no overlap. */
.hero__inner {
  position: relative; z-index: 2; width: min(var(--wrap), 92vw); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.hero__crest-col { display: flex; justify-content: center; }
.hero__crest-img {
  width: 100%; max-width: 460px; height: auto;
  filter: drop-shadow(0 18px 46px rgba(0,0,0,.55));
  animation: heroCrestIn 1s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes heroCrestIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.hero__text { text-align: left; }
.hero__kicker { font-size: .82rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-bright); font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.6); margin: 0 0 .4rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; margin: .2rem 0 0; text-shadow: 0 4px 24px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.85); }
.hero h1 .amp { color: var(--gold-bright); font-style: italic; }
/* Stronger gold accent under the headline. */
.hero__rule { border: 0; height: 3px; width: 96px; margin: 1.2rem 0 1.3rem;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
  border-radius: 3px; box-shadow: 0 0 18px rgba(232,199,102,.45); }
.hero__tag { font-size: clamp(1.02rem, 1.7vw, 1.3rem); max-width: 46ch; margin: 0 0 2rem; color: #eef1f7; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--gold-bright); font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; opacity: .85; }

/* Stack on narrower screens: crest on top, text centered below. */
@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; gap: 1.2rem; text-align: center; }
  .hero__crest-img { max-width: 300px; }
  .hero__text { text-align: center; }
  .hero__rule { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
}

/* ---------- About / values ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.founding-note { background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: 2rem 2.2rem; box-shadow: var(--shadow); border: 1px solid rgba(200,162,75,.3); }
.founding-note h3 { color: var(--gold-bright); font-size: 1.5rem; }
.stat-row { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.stat { }
.stat b { display: block; font-family: var(--display); font-size: 2.4rem; color: var(--gold-bright); line-height: 1; }
.stat span { font-size: .82rem; letter-spacing: .06em; color: #cdd6e6; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.value { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold); }
.value h3 { color: var(--navy); font-size: 1.35rem; }
.value p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Badges */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.badge { text-align: center; }
.badge__seal {
  width: 92px; height: 92px; margin: 0 auto .8rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold-deep));
  display: grid; place-items: center; color: var(--navy-deep); font-size: 2rem;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.25), 0 8px 20px rgba(0,0,0,.3); border: 3px solid var(--gold-bright);
}
.badge b { display: block; color: var(--gold-bright); font-family: var(--display); font-size: 1rem; }
.badge span { font-size: .74rem; color: #cdd6e6; letter-spacing: .05em; }

/* ---------- Brotherhood / flip cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.6rem; }
.flip { perspective: 1200px; aspect-ratio: 4/5; }
.flip__inner { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.4,.2,.2,1); transform-style: preserve-3d; }
.flip:hover .flip__inner, .flip:focus-within .flip__inner, .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.flip__front { background: var(--navy-2); }
.flip__front img { width: 100%; height: 100%; object-fit: cover; }
.flip__name { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem 1rem; background: linear-gradient(transparent, rgba(7,22,52,.92)); color: var(--cream); }
.flip__name b { font-family: var(--display); font-size: 1.1rem; display: block; }
.flip__name span { font-size: .78rem; color: var(--gold-bright); letter-spacing: .04em; }
.flip__back { background: var(--navy); color: var(--cream); transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; padding: 1.4rem; border: 2px solid var(--gold); }
.flip__back .role { color: var(--gold-bright); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .74rem; }
.flip__back .quote { font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; margin-top: .5rem; }
.flip__back .meta { margin-top: auto; font-size: .82rem; color: #cdd6e6; }
.eboard-label { margin-top: 2.4rem; }

/* ---------- Rush ---------- */
.rush-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.steps { list-style: none; padding: 0; margin: 1.4rem 0 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 1.4rem 3.2rem; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-weight: 700; display: grid; place-items: center; font-family: var(--display); }
.steps li b { display: block; color: var(--navy); font-family: var(--display); font-size: 1.15rem; }
.section--navy .steps li b { color: var(--gold-bright); }
.steps li p { margin: .15rem 0 0; color: var(--muted); font-size: .95rem; }
.section--navy .steps li p { color: #cdd6e6; }

/* ---------- Forms ---------- */
.card-form { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border-top: 5px solid var(--gold); }
.section--navy .card-form { color: var(--ink); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--navy); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid #d8d3c4; border-radius: 10px;
  font-family: var(--sans); font-size: .98rem; background: var(--cream); transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,75,.25); }
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.form-status { margin-top: 1rem; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #1c7a41; }
.form-status.err { display: block; color: #b4342b; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- Alumni ---------- */
.alumni-cta { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.give-card { background: linear-gradient(160deg, var(--navy-2), var(--navy-deep)); border: 1px solid rgba(200,162,75,.4); border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow); }
.give-card h3 { color: var(--gold-bright); font-size: 1.7rem; }

/* ---------- Events ---------- */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.6rem; }
.event { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.event:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.event__body { padding: 1.3rem 1.4rem 1.6rem; }
.event__tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.event h3 { color: var(--navy); font-size: 1.3rem; margin: .3rem 0 .4rem; }
.event p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.6rem; }
.gallery button { padding: 0; border: 0; cursor: pointer; background: none; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.06); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(7,22,52,.94); display: none; align-items: center; justify-content: center; padding: 4vw; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; border: 3px solid var(--gold); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(200,162,75,.15); color: var(--gold-bright); border: 1.5px solid var(--gold); border-radius: 999px; cursor: pointer; font-size: 1.4rem; width: 52px; height: 52px; display: grid; place-items: center; transition: background .15s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--navy-deep); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 20px; } .lightbox__nav.next { right: 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
.socials { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.4rem; }
.social { display: flex; align-items: center; gap: .8rem; color: var(--cream); padding: .8rem 1rem; border: 1px solid rgba(200,162,75,.35); border-radius: 12px; transition: background .15s, border .15s; }
.social:hover { background: rgba(200,162,75,.12); border-color: var(--gold); }
.social .ic { width: 34px; height: 34px; display: grid; place-items: center; background: var(--gold); color: var(--navy-deep); border-radius: 8px; font-weight: 700; flex: none; }
.social b { display: block; } .social span { font-size: .82rem; color: #cdd6e6; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #b9c2d6; padding: 3rem 0 2rem; text-align: center; }
.footer img { height: 74px; margin: 0 auto 1rem; }
.footer__nav { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin: 1.2rem 0; }
.footer__nav a { color: #cdd6e6; font-size: .9rem; }
.footer__nav a:hover { color: var(--gold-bright); }
.footer small { display: block; margin-top: 1rem; color: #7c869c; font-size: .8rem; }
.footer .motto { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-bright); }

/* ---------- Admin: tabs, search, edit modal ---------- */
.btn--danger { background: #b4342b; color: #fff; }
.btn--danger:hover { background: #9a2b23; transform: translateY(-2px); }

.admin-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.admin-tabs button {
  background: var(--white); border: 1.5px solid #d8d3c4; color: var(--muted);
  border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.admin-tabs button.on { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.tab-count { display: inline-block; min-width: 1.4em; text-align: center; font-size: .75rem; background: rgba(200,162,75,.25); color: inherit; border-radius: 999px; padding: 0 .35em; margin-left: .2em; }
.admin-tabs button.on .tab-count { background: rgba(255,255,255,.2); }
.admin-search {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid #d8d3c4; border-radius: 12px;
  font-family: var(--sans); font-size: .95rem; background: var(--white); margin-bottom: 1.2rem;
}
.admin-search:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,75,.22); }

.admin-modal { position: fixed; inset: 0; z-index: 220; background: rgba(7,22,52,.85); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 4vw; overflow-y: auto; }
.admin-modal.open { display: flex; }
.admin-modal__card { background: var(--cream); color: var(--ink); border-radius: 16px; width: min(560px, 96vw); padding: 2rem; position: relative; border-top: 6px solid var(--gold); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.admin-modal__card h3 { color: var(--navy); margin-top: 0; }
.admin-modal__close { position: absolute; top: 14px; right: 14px; background: none; border: 0; font-size: 1.3rem; color: var(--muted); cursor: pointer; }
.admin-modal__card .field label { color: var(--navy); }

/* ---------- Privacy "locked" states ---------- */
.flip__locked { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: .5rem; text-align: center; padding: 1rem; color: #cdd6e6; }
.flip__lock-ic { font-size: 1.6rem; }
.bm__locked { margin-top: 1rem; padding: 1.1rem; background: rgba(10,31,68,.05); border: 1px dashed rgba(10,31,68,.25); border-radius: 12px; text-align: center; }
.bm__locked b { display: block; color: var(--navy); font-family: var(--display); font-size: 1.1rem; margin: .2rem 0; }
.bm__locked span { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.bm__locked .btn { padding: .5rem 1.2rem; font-size: .9rem; }
.bm__loading { color: var(--muted); text-align: center; padding: 1rem; }
.bm__bio { color: var(--ink); font-size: .95rem; margin-top: 1rem; }

/* ---------- Brotherhood directory cards (homepage) ---------- */
.dir-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2.6rem; }
.dir-card {
  display: block; background: var(--white); border-radius: var(--radius); padding: 2.2rem;
  box-shadow: var(--shadow-sm); border-top: 5px solid var(--gold); transition: transform .18s, box-shadow .2s;
}
.dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dir-card__ic { font-size: 2rem; display: block; margin-bottom: .6rem; }
.dir-card b { font-family: var(--display); font-size: 1.5rem; color: var(--navy); display: block; }
.dir-card__count { display: inline-block; min-height: 1.2em; color: var(--gold-deep); font-weight: 700; font-size: .9rem; margin: .2rem 0 .5rem; }
.dir-card p { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.dir-card__go { color: var(--gold-deep); font-weight: 600; font-size: .92rem; }

/* ---------- Subpages (active/alumni) ---------- */
.page-body { background: var(--cream); }
.page-main { padding-top: 72px; }
.page-hero { background: var(--navy); color: var(--cream); padding: clamp(3rem, 7vw, 5rem) 0; }
.page-hero .lede { color: #cdd6e6; }
#pageCount { color: var(--gold-bright); font-weight: 600; }
.nav__links a.on { color: var(--gold-bright); font-weight: 700; }
.page-empty { color: var(--muted); padding: 1.4rem 0; }

.eb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 1rem; }
.eb-card {
  background: var(--white); border: 0; border-radius: var(--radius); padding: 1.6rem 1rem; text-align: center;
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold); cursor: pointer; transition: transform .15s, box-shadow .2s;
  font-family: var(--sans);
}
.eb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.eb-card__av { width: 64px; height: 64px; margin: 0 auto .7rem; border-radius: 50%; background: var(--navy); color: var(--gold-bright); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.eb-card b { display: block; font-family: var(--display); color: var(--navy); font-size: 1.1rem; }
.eb-card__role { display: block; color: var(--gold-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; margin: .25rem 0; }
.eb-card small { color: var(--muted); font-size: .78rem; }

.bro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1rem; }
.bro-card {
  display: flex; align-items: center; gap: .8rem; text-align: left; cursor: pointer;
  background: var(--white); border: 1.5px solid #e4dfd2; border-radius: 12px; padding: .8rem .9rem;
  font-family: var(--sans); transition: border-color .15s, box-shadow .15s, transform .12s;
}
.bro-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.bro-card__av { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--navy-2); color: #cdd6e6; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .95rem; }
.bro-card--live .bro-card__av { background: var(--navy); color: var(--gold-bright); }
.bro-card__dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-bright); border: 2px solid var(--white); }
.bro-card__meta { min-width: 0; }
.bro-card__meta b { display: block; color: var(--navy); font-family: var(--display); font-size: 1.02rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bro-card__meta small { color: var(--muted); font-size: .76rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bro-card__tag { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--gold-deep); }
.bro-card__tag--off { color: #a9a290; font-weight: 500; }
.bro-card--live { border-color: rgba(200,162,75,.55); }

/* ---------- Tree: legend, toggles, registration colors ---------- */
.tree-legend { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; color: var(--muted); font-size: .85rem; }
.tree-legend .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }
.tree-legend .dot--reg { background: var(--gold); box-shadow: 0 0 0 2px rgba(200,162,75,.3); }
.tree-legend .dot--unreg { background: var(--navy-2); }
.tree-legend .dot--chev { width: auto; height: auto; border-radius: 6px; background: var(--white); border: 1px solid #d8d3c4; padding: 0 .4rem; font-size: .75rem; color: var(--gold-deep); font-weight: 700; }
.tree-toggle {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  background: var(--gold); color: var(--navy-deep); border-radius: 999px; padding: .1rem .55rem;
  font-size: .72rem; font-weight: 800; box-shadow: var(--shadow-sm); white-space: nowrap; z-index: 3;
}
.tree-toggle:hover { background: var(--gold-bright); }
.tree-node--reg { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,75,.25), var(--shadow-sm); }
.tree-node--reg .tree-node__av { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--navy-deep); }

/* ---------- Portal: claim chooser ---------- */
.portal-choose h3, .portal-claim h3 { color: var(--navy); font-family: var(--display); text-align: center; }
.portal-choice {
  display: block; width: 100%; text-align: left; background: var(--cream); border: 1.5px solid #d8d3c4;
  border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .8rem; cursor: pointer; font-family: var(--sans);
  transition: border-color .15s, background .15s;
}
.portal-choice:hover { border-color: var(--gold); background: #fbf8ef; }
.portal-choice b { display: block; color: var(--navy); font-size: 1rem; }
.portal-choice span { color: var(--muted); font-size: .85rem; }
.claim-list { max-height: 300px; overflow-y: auto; }
.claim-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%;
  background: var(--cream); border: 1.5px solid #e4dfd2; border-radius: 10px; padding: .7rem .9rem;
  margin-bottom: .5rem; cursor: pointer; font-family: var(--sans); text-align: left;
}
.claim-row:hover { border-color: var(--gold); }
.claim-row b { color: var(--navy); }
.claim-row span { color: var(--muted); font-size: .8rem; flex: none; }

/* ---------- Real crest badge (white-background art framed on navy) ---------- */
.crest-badge { background: #fff; border-radius: 10px; padding: 3px; border: 1.5px solid var(--gold); box-shadow: 0 5px 16px rgba(0,0,0,.3); object-fit: contain; }
.brand .crest-badge { border-radius: 8px; padding: 2px; }
.footer .crest-badge { border-radius: 14px; padding: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .rush-grid, .alumni-cta, .contact-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .events { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .dir-cards { grid-template-columns: 1fr; }
  .eb-grid { grid-template-columns: repeat(2, 1fr); }
  .bro-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .bro-grid, .eb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(7,22,52,.98); padding: 1rem 0; border-bottom: 1px solid rgba(200,162,75,.3);
    transform: translateY(-140%); transition: transform .3s; align-items: stretch;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: .9rem 8vw; }
  .nav__links .nav__cta { margin: .6rem 8vw; text-align: center; }
  .nav__toggle { display: block; }
  .nav__account { margin-left: auto; margin-right: .6rem; }
  .nav__chip-name { max-width: 92px; }
  .form-row { grid-template-columns: 1fr; }
  .stat-row { gap: 1.6rem; }
}
@media (max-width: 460px) {
  .badges, .grid-cards, .gallery { grid-template-columns: 1fr 1fr; }
  .nav__chip-name { display: none; }
}

/* ---------- Family tree ---------- */
.tree-shell { position: relative; }
.tree-viewport {
  position: relative; height: min(70vh, 620px); background:
    radial-gradient(circle at 50% 0%, #fffdf7, var(--cream-2));
  border: 1px solid rgba(10,31,68,.12); border-radius: var(--radius);
  overflow: hidden; cursor: grab; touch-action: none; box-shadow: inset 0 2px 20px rgba(10,31,68,.06);
}
.tree-viewport.grabbing { cursor: grabbing; }
.tree-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.tree-links { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.tree-links path { fill: none; stroke: var(--gold); stroke-width: 2.5; opacity: .55; }
.tree-node {
  position: absolute; display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem;
  background: var(--white); border: 2px solid var(--navy); border-radius: 12px; cursor: pointer;
  box-shadow: var(--shadow-sm); text-align: left; transition: transform .12s, box-shadow .2s, border-color .2s;
}
.tree-node:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 10px 24px rgba(200,162,75,.35); z-index: 5; }
.tree-node__av { width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; background: var(--navy); color: var(--gold-bright); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .95rem; }
.tree-node__av img { width: 100%; height: 100%; object-fit: cover; }
.tree-node__meta { overflow: hidden; }
.tree-node__meta b { display: block; font-family: var(--display); font-size: .92rem; color: var(--navy); line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.tree-node__meta small { color: var(--gold-deep); font-size: .72rem; }
.tree-controls { position: absolute; top: 12px; right: 12px; z-index: 10; display: flex; gap: .4rem; }
.tree-controls button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(10,31,68,.15); background: var(--white); color: var(--navy); font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-sm); transition: background .15s; }
.tree-controls button:hover { background: var(--gold); color: var(--navy-deep); }
.tree-hint { text-align: center; color: var(--muted); font-size: .82rem; margin-top: .9rem; }

/* Brother modal */
.bmodal { position: fixed; inset: 0; z-index: 210; background: rgba(7,22,52,.9); display: none; align-items: center; justify-content: center; padding: 5vw; }
.bmodal.open { display: flex; }
.bmodal__card { background: var(--cream); border-radius: 18px; width: min(440px, 94vw); padding: 2rem; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.5); border-top: 6px solid var(--gold); }
.bmodal__close { position: absolute; top: 14px; right: 14px; background: none; border: 0; font-size: 1.3rem; color: var(--muted); cursor: pointer; }
.bmodal__head { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1.2rem; }
.bmodal__avatar { width: 76px; height: 76px; flex: none; border-radius: 50%; background: var(--navy); color: var(--gold-bright); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.5rem; overflow: hidden; }
.bmodal__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bmodal__head h3 { color: var(--navy); margin: 0; font-size: 1.5rem; }
.bmodal__sub { margin: 0; color: var(--gold-deep); font-weight: 600; font-size: .9rem; }
.bmodal__body .bm__row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid rgba(10,31,68,.08); font-size: .95rem; }
.bmodal__body .bm__row span { color: var(--muted); }
.bmodal__body .bm__row b { color: var(--navy); text-align: right; }
.bmodal__body .bm__quote { font-family: var(--serif); font-size: 1.2rem; color: var(--navy-2); margin-top: 1rem; }

/* ---------- Brother portal ---------- */
.portal-wrap { max-width: 560px; margin-inline: auto; }
.portal-tabs { display: flex; gap: .5rem; margin-bottom: 1.4rem; }
.portal-tabs button { flex: 1; padding: .7rem; border: 1.5px solid #d8d3c4; background: var(--cream); border-radius: 10px; font-weight: 600; cursor: pointer; color: var(--muted); }
.portal-tabs button.on { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.portal-msg { text-align: center; padding: 1.5rem 1rem; }
.portal-msg__ic { font-size: 2.6rem; margin-bottom: .5rem; }
.portal-msg h3 { color: var(--navy); }
.portal-msg p { color: var(--muted); }
.portal-live { color: #1c7a41; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.portal-signout { display: block; margin: 1rem auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; }

/* ---------- Admin page ---------- */
.admin-body { background: var(--navy-deep); color: var(--cream); min-height: 100vh; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1rem,5vw,3rem); border-bottom: 1px solid rgba(200,162,75,.3); }
.admin-topbar .brand img { height: 40px; }
.admin-back { color: var(--gold-bright); font-size: .9rem; }
.admin-wrap { width: min(760px, 94vw); margin: 2.5rem auto; }
.admin-card, .admin-msg { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 2rem; max-width: 420px; margin: 3rem auto; box-shadow: var(--shadow); }
.admin-card h2, .admin-msg h2 { color: var(--navy); }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.admin-head h2 { color: var(--gold-bright); margin: 0; }
.admin-empty { text-align: center; color: #cdd6e6; padding: 2rem; }
.admin-row { display: flex; align-items: center; gap: 1rem; background: var(--white); color: var(--ink); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.admin-row__ph { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--navy); color: var(--gold-bright); display: grid; place-items: center; font-family: var(--display); overflow: hidden; }
.admin-row__ph img { width: 100%; height: 100%; object-fit: cover; }
.admin-row__info { flex: 1; min-width: 0; }
.admin-row__info b { display: block; color: var(--navy); font-family: var(--display); font-size: 1.1rem; }
.admin-row__info span { color: var(--muted); font-size: .85rem; }
.admin-row__info em { display: block; color: var(--navy-2); font-size: .85rem; margin-top: .2rem; }
.admin-row__act { display: flex; gap: .5rem; flex: none; }
.admin-row__act .btn { padding: .5rem 1rem; font-size: .85rem; }

@media (max-width: 620px) {
  .admin-row { flex-wrap: wrap; }
  .admin-row__act { width: 100%; }
  .admin-row__act .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flip__inner { transition: none; }
}

/* ============================================================================
   v4 — Members platform components
   ============================================================================ */

/* ---------- Portal: profile fieldsets + account tab ---------- */
.pf-group { border: 1px solid #e3ddcc; border-radius: 12px; padding: 1rem 1.2rem 1.2rem; margin: 0 0 1.3rem; }
.pf-group legend { font-family: var(--display); color: var(--navy); font-size: 1.02rem; padding: 0 .5rem; }
.pref-row { display: flex; gap: .9rem; flex-wrap: wrap; padding-top: .55rem; }
.pref-box { display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; color: var(--ink); cursor: pointer; }
.acct-block { background: var(--white); border: 1px solid #e3ddcc; border-radius: 12px; padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; }
.acct-block h4 { margin: 0 0 .8rem; color: var(--navy); font-family: var(--display); font-size: 1.1rem; }
.acct-block--danger { border-color: #e8c9c9; }
.btn--ghost-danger { background: none; border: 1.5px solid #b54848; color: #b54848; }
.btn--ghost-danger:hover { background: #b54848; color: #fff; }
.form-note.center { text-align: center; }
.form-note a { color: var(--gold-deep); text-decoration: underline; }

/* ---------- Family (branch) selector ---------- */
.fam-bar { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin: 1.4rem 0 .4rem; }
.fam-chip { border: 1.5px solid var(--navy-2); background: var(--white); color: var(--navy); border-radius: 999px; padding: .42rem 1rem; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.fam-chip i { font-style: normal; opacity: .55; font-size: .78rem; }
.fam-chip:hover { border-color: var(--gold-deep); }
.fam-chip.on { background: var(--navy); color: var(--gold-bright); border-color: var(--navy); }

/* ---------- Roster filters ---------- */
.page-filters { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin: -0.4rem 0 1.4rem; }
.page-filter { padding: .55rem .8rem; border-radius: 10px; border: 1.5px solid #d8d2c2; background: var(--white); color: var(--ink); font-size: .9rem; }
.page-filter-hint { font-size: .84rem; color: var(--muted); }
.bro-card__av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.eb-card__av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.bro-card__extra { color: var(--gold-deep) !important; }

/* ---------- Author chip (gallery/board) ---------- */
.author-chip { display: inline-flex; align-items: center; gap: .45rem; }
.author-chip__av { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--gold-bright); display: inline-grid; place-items: center; font-size: .75rem; font-style: normal; overflow: hidden; flex: none; }
.author-chip__av img { width: 100%; height: 100%; object-fit: cover; }
.author-chip b { font-size: .92rem; color: var(--navy); }

/* ---------- Gallery ---------- */
.gallery-teaser { margin-top: 2.4rem; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery a img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.06); }

.gupload { background: var(--white); border: 1.5px dashed #cfc7b2; border-radius: 14px; padding: 1.2rem; margin-bottom: 2rem; }
.gupload__drop { display: block; text-align: center; padding: 1.2rem; cursor: pointer; color: var(--navy); border-radius: 10px; transition: background .15s; }
.gupload__drop:hover { background: var(--cream-2); }
.gupload__drop b { display: block; font-family: var(--display); font-size: 1.1rem; }
.gupload__drop span { color: var(--muted); font-size: .85rem; }
.gupload__row { display: flex; gap: .7rem; margin-top: .8rem; }
.gupload__row input { flex: 1; padding: .7rem .9rem; border-radius: 10px; border: 1.5px solid #d8d2c2; font-size: .95rem; }

.ggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.ggrid__cell { position: relative; padding: 0; border: 0; background: var(--navy); border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 1; box-shadow: var(--shadow-sm); }
.ggrid__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ggrid__cell:hover img { transform: scale(1.05); }
.ggrid__ph { display: grid; place-items: center; height: 100%; color: var(--gold-bright); }
.ggrid__hover { position: absolute; inset: auto 0 0 0; padding: .4rem .6rem; background: linear-gradient(transparent, rgba(7,22,52,.75)); color: #fff; font-size: .85rem; text-align: left; opacity: 0; transition: opacity .2s; }
.ggrid__cell:hover .ggrid__hover { opacity: 1; }

.gmodal { position: fixed; inset: 0; z-index: 210; background: rgba(7,22,52,.9); display: none; align-items: center; justify-content: center; padding: 3vw; }
.gmodal.open { display: flex; }
.gmodal__card { background: var(--white); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); width: min(1020px, 94vw); max-height: 88vh; position: relative; }
.gmodal__close { position: absolute; top: 10px; right: 12px; z-index: 2; border: 0; background: rgba(7,22,52,.5); color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.gmodal__img { background: #0b1830; display: grid; place-items: center; }
.gmodal__img img { width: 100%; height: 100%; max-height: 88vh; object-fit: contain; }
.gmodal__side { display: flex; flex-direction: column; padding: 1.1rem 1.2rem; overflow-y: auto; }
.gmodal__author { padding-bottom: .7rem; border-bottom: 1px solid #eee7d6; }
.gmodal__caption { color: var(--ink); font-size: .95rem; margin: .8rem 0; }
.gmodal__actions { display: flex; align-items: center; gap: .9rem; padding: .5rem 0 .8rem; border-bottom: 1px solid #eee7d6; }
.glike { border: 0; background: none; cursor: pointer; font-size: 1.05rem; color: var(--navy); font-weight: 600; }
.glike.on { color: #c0392b; }
.gdate { color: var(--muted); font-size: .82rem; }
.gdelete { margin-left: auto; border: 0; background: none; color: #b54848; cursor: pointer; font-size: .82rem; text-decoration: underline; }
.gcomments { flex: 1; overflow-y: auto; padding: .8rem 0; min-height: 120px; }
.gcomment { margin-bottom: .9rem; }
.gcomment p { margin: .25rem 0 .1rem; font-size: .92rem; color: var(--ink); }
.gcomment small { color: var(--muted); font-size: .78rem; }
.gcomment small a { color: #b54848; }
.gcompose { display: flex; gap: .6rem; padding-top: .8rem; border-top: 1px solid #eee7d6; }
.gcompose input { flex: 1; padding: .65rem .85rem; border-radius: 10px; border: 1.5px solid #d8d2c2; font-size: .92rem; }
.gcompose .btn { padding: .6rem 1.1rem; font-size: .88rem; }

/* ---------- Events ---------- */
.ev-list { display: grid; gap: 1.1rem; margin-top: 2.4rem; max-width: 860px; margin-inline: auto; }
.ev-card { display: flex; gap: 1.2rem; background: var(--white); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); align-items: flex-start; }
.ev-card--members { border: 1.5px solid var(--gold); }
.ev-card__date { flex: none; width: 74px; text-align: center; background: var(--navy); color: var(--cream); border-radius: 12px; padding: .6rem .3rem; }
.ev-card__date b { display: block; font-size: 1.6rem; font-family: var(--display); color: var(--gold-bright); line-height: 1.1; }
.ev-card__date span { font-size: .72rem; letter-spacing: .18em; }
.ev-card__date small { display: block; font-size: .68rem; opacity: .7; }
.ev-card__body h3 { color: var(--navy); margin: .15rem 0 .2rem; font-size: 1.25rem; }
.ev-card__meta { color: var(--gold-deep); font-size: .88rem; font-weight: 600; margin: 0 0 .35rem; }
.ev-card__body p { color: var(--muted); font-size: .93rem; margin: 0; }
.admin-row--past { opacity: .55; }

/* ---------- Giving campaigns ---------- */
.give-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.give-tile { background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); text-align: center; }
.give-tile__ic { font-size: 1.9rem; }
.give-tile h4 { color: var(--navy); font-family: var(--display); font-size: 1.15rem; margin: .55rem 0 .4rem; }
.give-tile p { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.give-tile__soon { display: inline-block; color: var(--muted); font-size: .82rem; border: 1.5px dashed #cfc7b2; border-radius: 999px; padding: .45rem 1rem; }

/* ---------- Discussion board ---------- */
.board-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.board-tabs button { border: 1.5px solid var(--navy-2); background: var(--white); color: var(--navy); border-radius: 999px; padding: .5rem 1.1rem; font-size: .88rem; font-weight: 600; cursor: pointer; }
.board-tabs button i { font-style: normal; opacity: .55; font-size: .78rem; }
.board-tabs button.on { background: var(--navy); color: var(--gold-bright); border-color: var(--navy); }
.thread-list { display: grid; gap: .7rem; }
.thread-row { display: flex; align-items: center; gap: 1rem; text-align: left; background: var(--white); border: 0; border-radius: 12px; padding: 1rem 1.2rem; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s; }
.thread-row:hover { transform: translateY(-2px); }
.thread-row__main { flex: 1; min-width: 0; }
.thread-row__main b { display: block; color: var(--navy); font-family: var(--display); font-size: 1.08rem; margin-bottom: .25rem; }
.thread-row__main span { color: var(--muted); font-size: .82rem; display: inline-flex; align-items: center; gap: .35rem; }
.thread-row__count { flex: none; color: var(--gold-deep); font-weight: 700; font-size: .9rem; }
.thr-tag { display: inline-block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 6px; padding: .15rem .5rem; margin-right: .5rem; vertical-align: 2px; }
.thr-tag--offering { background: #e4f2e4; color: #2c6e2c; }
.thr-tag--seeking { background: #eee7fb; color: #5b3ea8; }
.thread-view { background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow-sm); max-width: 820px; }
.thread-view h2 { color: var(--navy); font-family: var(--display); margin: 0 0 .5rem; }
.thread-view__meta { color: var(--muted); font-size: .86rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.thread-view__meta a { color: #b54848; text-decoration: underline; }
.thread-view__body { color: var(--ink); margin: 1.1rem 0 1.4rem; line-height: 1.7; }

/* ---------- Notification bell ---------- */
.bell { position: relative; margin-right: .35rem; }
.bell__btn { position: relative; border: 0; background: rgba(255,255,255,.08); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: 1.05rem; display: grid; place-items: center; }
.bell__btn:hover { background: rgba(255,255,255,.16); }
.bell__badge { position: absolute; top: -3px; right: -3px; background: #c0392b; color: #fff; font-size: .66rem; font-weight: 700; border-radius: 999px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; }
.bell__menu { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, 88vw); background: var(--white); border-radius: 14px; box-shadow: 0 18px 50px rgba(7,22,52,.35); display: none; overflow: hidden; z-index: 120; }
.bell__menu.open { display: block; }
.bell__head { padding: .8rem 1rem; font-family: var(--display); color: var(--navy); border-bottom: 1px solid #eee7d6; font-weight: 700; }
.bell__list { max-height: 340px; overflow-y: auto; }
.bell__row { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem 1rem; border-bottom: 1px solid #f2ede0; color: var(--ink); font-size: .86rem; }
.bell__row:hover { background: var(--cream); }
.bell__row.unread { background: #fdf6e5; }
.bell__row i { font-style: normal; flex: none; }
.bell__row span { flex: 1; line-height: 1.4; }
.bell__row em { font-style: normal; color: var(--muted); font-size: .74rem; flex: none; }
.bell__empty { padding: 1.2rem 1rem; color: var(--muted); font-size: .88rem; text-align: center; }

/* ---------- Admin stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.stat-card { background: var(--white); border-radius: 12px; padding: 1.1rem 1rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat-card b { display: block; font-size: 1.7rem; font-family: var(--display); color: var(--navy); }
.stat-card span { color: var(--muted); font-size: .8rem; }
.stat-h { color: var(--gold-bright); font-family: var(--display); margin: 1.6rem 0 .7rem; }
.thread-view .stat-h { color: var(--navy); }
.stat-list { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.stat-list__row { display: flex; gap: .8rem; align-items: baseline; padding: .65rem 1rem; border-bottom: 1px solid #f2ede0; font-size: .88rem; }
.stat-list__row b { color: var(--navy); flex: none; }
.stat-list__row span { color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-list__row em { font-style: normal; color: var(--muted); font-size: .78rem; flex: none; }

/* ---------- v4 responsive ---------- */
@media (max-width: 900px) {
  .ggrid { grid-template-columns: repeat(3, 1fr); }
  .give-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .gmodal__card { grid-template-columns: 1fr; overflow-y: auto; }
  .gmodal__img img { max-height: 44vh; }
}
@media (max-width: 560px) {
  .ggrid { grid-template-columns: repeat(2, 1fr); }
  .gupload__row { flex-direction: column; }
  .ev-card { flex-direction: column; }
  .ev-card__date { width: 100%; display: flex; align-items: baseline; gap: .5rem; justify-content: center; }
  .fam-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .4rem; }
  .fam-chip { flex: none; }
  .page-filters { flex-direction: column; align-items: stretch; }
  .thread-row { flex-wrap: wrap; }
  .bell__menu { position: fixed; right: 3vw; left: 3vw; width: auto; top: 64px; }
}

/* ---------- Admin roster management (v4.1) ---------- */
.admin-addbar { display: flex; gap: .7rem; margin: 0 0 1.1rem; flex-wrap: wrap; }
.admin-addbar .btn { padding: .6rem 1.2rem; font-size: .9rem; }
.schip { display: inline-block; vertical-align: 2px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 6px; padding: .14rem .5rem; margin-left: .45rem; background: #e8e4d8; color: #6b6355; }
.schip--active { background: #dff0df; color: #2c6e2c; }
.guide-intro h3 { color: var(--gold-bright); font-family: var(--display); margin: 0 0 .3rem; }
.guide-intro p { color: #cdd6e6; margin-bottom: 1.2rem; }
.guide-sec { background: var(--white); border-radius: 12px; margin-bottom: .7rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.guide-sec summary { cursor: pointer; padding: .95rem 1.2rem; font-weight: 700; color: var(--navy); font-family: var(--display); font-size: 1.02rem; list-style: none; }
.guide-sec summary::-webkit-details-marker { display: none; }
.guide-sec summary::before { content: '▸ '; color: var(--gold-deep); }
.guide-sec[open] summary::before { content: '▾ '; }
.guide-sec > div { padding: 0 1.3rem 1.1rem; color: var(--ink); font-size: .93rem; }
.guide-sec ol, .guide-sec ul { margin: .3rem 0 .6rem; padding-left: 1.3rem; }
.guide-sec li { margin-bottom: .35rem; }

/* ============================================================================
   v5 — admin cleanup, tree editor, profile popup, calendar, welcome
   ============================================================================ */

/* ---------- Admin: grouped tabs + hints ---------- */
.admin-tabgroup { display: flex; align-items: center; gap: .8rem; margin-bottom: .55rem; flex-wrap: wrap; }
.admin-tabgroup__label { font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright); width: 72px; flex: none; }
.admin-tabgroup .admin-tabs { margin: 0; }
.admin-hint { background: rgba(255,255,255,.07); border-left: 3px solid var(--gold); color: #cdd6e6; font-size: .88rem; padding: .7rem 1rem; border-radius: 8px; margin: 0 0 1rem; }
.admin-hint b { color: var(--gold-bright); }
.admin-hint a { color: var(--gold-bright); text-decoration: underline; }
.admin-hint--tip { background: rgba(200,162,75,.12); }

/* ---------- Admin: tree editor ---------- */
.treeed-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap; }
.treeed-list { background: var(--white); border-radius: 12px; padding: .9rem 1rem; box-shadow: var(--shadow-sm); overflow-x: auto; }
.treeed-row { display: flex; align-items: center; gap: .6rem; padding: .45rem .4rem; border-bottom: 1px solid #f2ede0; min-width: 540px; }
.treeed-row:last-child { border-bottom: 0; }
.treeed-row__connector { color: var(--gold-deep); flex: none; width: 18px; text-align: center; }
.treeed-row__name { flex: 1; min-width: 0; }
.treeed-row__name b { color: var(--navy); font-size: .95rem; }
.treeed-row__name small { display: block; color: var(--muted); font-size: .76rem; }
.treeed-reg { color: #2c6e2c; font-style: normal; }
.treeed-row__act { display: flex; gap: .35rem; flex: none; }
.treeed-row__act button { border: 1px solid #d8d2c2; background: var(--cream); color: var(--navy); font-size: .74rem; font-weight: 600; border-radius: 7px; padding: .3rem .6rem; cursor: pointer; transition: all .12s; }
.treeed-row__act button:hover { border-color: var(--gold-deep); background: #fff; }
.treeed-row__act button.danger { color: #b54848; }
.treeed-row__act button.danger:hover { border-color: #b54848; }
.treeed-help p { margin-bottom: .8rem; font-size: .93rem; color: var(--ink); }

/* ---------- Public tree: search, family menu, pulse, path ---------- */
.tree-search { position: relative; max-width: 380px; margin: 1.4rem auto 0; }
.tree-search input { width: 100%; padding: .7rem 1rem; border-radius: 999px; border: 1.5px solid #d8d2c2; font-size: .95rem; background: var(--white); }
.tree-search__results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; overflow: hidden; display: none; }
.tree-search__results button { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; width: 100%; text-align: left; padding: .6rem 1rem; border: 0; background: none; cursor: pointer; }
.tree-search__results button:hover { background: var(--cream-2); }
.tree-search__results button b { color: var(--navy); font-size: .92rem; }
.tree-search__results button span { color: var(--muted); font-size: .78rem; }
.tree-search__none { display: block; padding: .7rem 1rem; color: var(--muted); font-size: .88rem; }
.tree-node--family { justify-content: flex-start; }
.tree-node--family .tree-toggle { margin-left: auto; }
.tree-node--pulse { animation: nodePulse 1.2s ease-in-out 2; }
@keyframes nodePulse { 0%,100% { box-shadow: var(--shadow-sm); } 50% { box-shadow: 0 0 0 6px rgba(232,199,102,.55); } }
.tree-node--path { border-color: var(--gold) !important; box-shadow: 0 0 0 2px rgba(200,162,75,.35); }
.bm-jump { color: var(--gold-deep); text-decoration: underline; }

/* ---------- Portal: slim login + perks ---------- */
.portal-duo { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 2rem; align-items: start; justify-content: center; }
.card-form--slim { max-width: 460px; }
.perks { display: grid; gap: .9rem; align-content: start; }
.perks__title { color: var(--gold-bright); font-family: var(--display); margin: 0 0 .2rem; font-size: 1.25rem; }
.perk { display: flex; align-items: center; gap: 1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(200,162,75,.25); border-radius: 12px; padding: .9rem 1.1rem; color: var(--cream); }
.perk__ic { font-size: 1.5rem; flex: none; }
.perk b { display: block; font-family: var(--display); font-size: 1.02rem; }
.perk small { color: #b9c4dc; font-size: .82rem; line-height: 1.4; display: block; }
.perk i { margin-left: auto; font-style: normal; opacity: .7; flex: none; }
.perk--live { border-color: var(--gold); transition: transform .15s, background .15s; }
.perk--live:hover { transform: translateX(4px); background: rgba(200,162,75,.14); }
.perk--live i { color: var(--gold-bright); }

/* ---------- Profile popup ---------- */
.pmodal { position: fixed; inset: 0; z-index: 220; background: rgba(7,22,52,.9); display: none; align-items: flex-start; justify-content: center; padding: 4vh 3vw; overflow-y: auto; }
.pmodal.open { display: flex; }
.pmodal__card { position: relative; width: min(680px, 96vw); max-height: 92vh; overflow-y: auto; }
.pmodal__close { position: absolute; top: 12px; right: 14px; z-index: 2; border: 0; background: var(--cream-2); color: var(--navy); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.pmodal__close:hover { background: var(--gold); }

/* ---------- Events calendar ---------- */
.ev-toggle { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.ev-toggle button { border: 1.5px solid var(--navy-2); background: var(--white); color: var(--navy); border-radius: 999px; padding: .5rem 1.3rem; font-size: .9rem; font-weight: 600; cursor: pointer; }
.ev-toggle button.on { background: var(--navy); color: var(--gold-bright); border-color: var(--navy); }
#eventsMonth { max-width: 860px; margin: 1.6rem auto 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.cal-head b { font-family: var(--display); color: var(--navy); font-size: 1.35rem; }
.cal-nav { border: 1.5px solid #d8d2c2; background: var(--white); color: var(--navy); width: 38px; height: 38px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.cal-nav:hover { border-color: var(--gold-deep); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .3rem 0; }
.cal-cell { position: relative; min-height: 74px; background: var(--white); border: 1px solid #eee7d6; border-radius: 8px; padding: .35rem .4rem; text-align: left; font-family: var(--sans); cursor: default; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.cal-cell--pad { background: transparent; border: 0; }
.cal-cell--today { border-color: var(--gold); box-shadow: 0 0 0 1.5px var(--gold); }
.cal-cell--has { cursor: pointer; }
.cal-cell--has:hover { border-color: var(--gold-deep); }
.cal-cell__n { font-size: .78rem; font-weight: 700; color: var(--navy); }
.cal-chip { display: block; font-size: .64rem; font-weight: 600; color: #fff; background: var(--navy-2); border-radius: 4px; padding: .1rem .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip--rush { background: #8a5a1f; }
.cal-chip--philanthropy { background: #2c6e2c; }
.cal-chip--reunion { background: #7a4a9e; }
.cal-chip--meeting { background: #12305F; }
.cal-chip--social { background: #9A7628; }
.cal-more { font-size: .64rem; color: var(--muted); }
.cal-detail { margin-top: 1.1rem; }
.cal-detail h4 { color: var(--navy); font-family: var(--display); margin: 0 0 .6rem; }
.cal-detail__ev { background: var(--white); border-radius: 10px; padding: .8rem 1rem; box-shadow: var(--shadow-sm); margin-bottom: .6rem; }
.cal-detail__ev b { display: block; color: var(--navy); font-size: 1.05rem; }
.cal-detail__ev small { color: var(--gold-deep); font-weight: 600; }
.cal-detail__ev p { color: var(--muted); font-size: .9rem; margin: .3rem 0 0; }

/* ---------- Welcome page ---------- */
.welcome-step { display: flex; gap: 1.2rem; background: var(--white); border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm); margin-bottom: 1.1rem; align-items: flex-start; }
.welcome-step__n { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold-bright); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.welcome-step h3 { color: var(--navy); margin: 0 0 .4rem; font-size: 1.25rem; }
.welcome-step p { color: var(--muted); font-size: .95rem; margin-bottom: .8rem; }
.welcome-step p a { color: var(--gold-deep); text-decoration: underline; }
.welcome-step .btn { padding: .6rem 1.3rem; font-size: .88rem; }

/* ---------- v5 responsive ---------- */
@media (max-width: 860px) {
  .portal-duo { grid-template-columns: 1fr; }
  .card-form--slim { max-width: none; }
}
@media (max-width: 620px) {
  .cal-cell { min-height: 52px; }
  .cal-chip { display: none; }
  .cal-cell--has::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-deep); position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); }
  .admin-tabgroup__label { width: 100%; }
  .welcome-step { flex-direction: column; }
}

/* ============================================================================
   v6 — avatar photos, banner, RSVPs, spotlight, mentor finder, alumni map
   ============================================================================ */

/* ---------- Header avatar photo ---------- */
.nav__avatar { overflow: hidden; }
.nav__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- Announcement banner ---------- */
.site-banner { position: fixed; top: 72px; left: 0; right: 0; z-index: 95;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
  box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.site-banner__inner { width: min(var(--wrap), 94vw); margin-inline: auto; display: flex; align-items: center; gap: 1rem; padding: .55rem 0; }
.site-banner a, .site-banner span { color: var(--navy-deep); font-weight: 700; font-size: .92rem; flex: 1; }
.site-banner a { text-decoration: underline; }
.site-banner__x { border: 0; background: rgba(7,22,52,.15); color: var(--navy-deep); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; flex: none; font-size: .8rem; }
.site-banner__x:hover { background: rgba(7,22,52,.3); }

/* ---------- Event RSVPs ---------- */
.ev-rsvp { display: flex; align-items: center; gap: .7rem; margin-top: .8rem; flex-wrap: wrap; }
.ev-rsvp__btn { border: 1.5px solid var(--navy-2); background: var(--white); color: var(--navy); border-radius: 999px; padding: .4rem 1rem; font-size: .84rem; font-weight: 700; cursor: pointer; transition: all .15s; }
.ev-rsvp__btn:hover { border-color: var(--gold-deep); }
.ev-rsvp__btn.on { background: var(--navy); color: var(--gold-bright); border-color: var(--navy); }
.ev-rsvp b { color: var(--navy); }
.ev-rsvp__who { color: var(--muted); font-size: .8rem; width: 100%; }

/* ---------- Brother spotlight ---------- */
.spot-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; max-width: 860px; margin-inline: auto; text-align: left; }
.spot-card__photo { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.spot-card__body { padding: 2rem 2.2rem 2rem 0; }
.spot-card__body h3 { color: var(--navy); font-size: 1.7rem; margin: 0 0 .2rem; }
.spot-card__sub { color: var(--gold-deep); font-weight: 600; font-size: .9rem; margin: 0 0 .9rem; }
.spot-card__quote { font-family: var(--serif); font-style: italic; color: var(--navy-2); font-size: 1.1rem; margin: 0 0 .8rem; }
.spot-card__bio { color: var(--muted); font-size: .95rem; margin: 0 0 1.3rem; }
@media (max-width: 720px) {
  .spot-card { grid-template-columns: 1fr; }
  .spot-card__photo { min-height: 240px; max-height: 320px; }
  .spot-card__body { padding: 0 1.5rem 1.6rem; }
}

/* ---------- Mentor finder ---------- */
.mentor-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0 1.2rem; }

/* ---------- Alumni map ---------- */
.alumni-map { height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--cream-2); }
.alumni-map .leaflet-popup-content a { color: var(--gold-deep); text-decoration: underline; display: inline-block; padding: .1rem 0; }
@media (max-width: 620px) { .alumni-map { height: 300px; } }

/* ============================================================================
   v7 — e-board manager, polls, committees, suggestions, class pages
   ============================================================================ */

/* ---------- Admin: e-board seats ---------- */
.seat-row { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid #f2ede0; flex-wrap: wrap; }
.seat-row:last-child { border-bottom: 0; }
.seat-row__title { flex: none; width: 120px; font-weight: 700; color: var(--gold-deep); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.seat-row__who { flex: 1; min-width: 140px; }
.seat-row__who b { color: var(--navy); }
.seat-row__who small { display: block; color: var(--muted); font-size: .78rem; }
.seat-row__who--empty { color: var(--muted); font-style: italic; }
.seat-row__act { display: flex; gap: .4rem; flex: none; }
.seat-row__act .btn { padding: .4rem .9rem; font-size: .8rem; }

/* ---------- Polls ---------- */
.poll-card { background: var(--white); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm); margin-bottom: 1.1rem; max-width: 680px; }
.poll-card h3 { color: var(--navy); font-family: var(--display); margin: 0 0 .9rem; font-size: 1.25rem; }
.poll-opt { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; border: 1.5px solid #e3ddcc; background: var(--cream); border-radius: 10px; padding: .65rem .9rem; margin-bottom: .5rem; cursor: pointer; overflow: hidden; transition: border-color .15s; }
.poll-opt:hover { border-color: var(--gold-deep); }
.poll-opt.on { border-color: var(--gold); }
.poll-opt.closed { cursor: default; }
.poll-opt__bar { position: absolute; inset: 0 auto 0 0; background: rgba(200,162,75,.18); transition: width .3s; }
.poll-opt__label { position: relative; font-weight: 600; color: var(--navy); font-size: .92rem; }
.poll-opt__n { position: relative; color: var(--muted); font-size: .8rem; flex: none; }
.poll-card__meta { color: var(--muted); font-size: .82rem; margin-top: .5rem; }
.poll-card__meta a { color: #b54848; text-decoration: underline; }
.poll-closed { color: #b54848; }

/* ---------- Board: committee tabs + suggestion box ---------- */
.board-tabs__comm { border-style: dashed !important; }
.sug-box { background: var(--white); border: 1.5px dashed #cfc7b2; border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.sug-box__head b { color: var(--navy); font-family: var(--display); }
.sug-box__head span { color: var(--muted); font-size: .85rem; margin-left: .5rem; }
.sug-box .gcompose { border-top: 0; padding-top: .7rem; }
.sug-mine { padding: .45rem 0 0; font-size: .86rem; color: var(--ink); }
.sug-mine .schip { margin: 0 .4rem 0 0; }
.sug-card { background: var(--white); border-radius: 12px; padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); margin-bottom: .8rem; }
.sug-card__body { color: var(--ink); margin: 0 0 .2rem; }
.sug-card small { color: var(--muted); font-size: .76rem; }
.sug-card__resp { background: var(--cream-2); border-left: 3px solid var(--gold); border-radius: 6px; padding: .5rem .8rem; margin: .6rem 0 0; color: var(--ink); font-size: .88rem; }
.sug-card__act { margin-top: .7rem; }
.sug-card__act textarea { width: 100%; min-height: 60px; border: 1.5px solid #d8d2c2; border-radius: 8px; padding: .6rem .8rem; font-family: var(--sans); font-size: .88rem; margin-bottom: .5rem; }
.sug-card__act .btn { padding: .45rem 1rem; font-size: .82rem; margin-right: .4rem; }

/* ---------- Class page + modal class link ---------- */
.bm-class { color: var(--gold-deep); text-decoration: underline; }

/* ============================================================================
   v8 — lockdown notes, board redesign, mobile fixes, cream + admin restyle
   ============================================================================ */

/* ---------- global: warm form fields ---------- */
input, select, textarea { background: var(--paper); }

/* ---------- lockdown ---------- */
.tree-lockline { text-align: center; color: var(--muted); font-size: .95rem; background: var(--white); border: 1.5px dashed var(--gold); border-radius: 999px; padding: .55rem 1.2rem; display: inline-block; margin: .8rem auto 0; }
.center .tree-lockline { display: inline-block; }
.tree-lockline a { color: var(--gold-deep); text-decoration: underline; }

/* ---------- mobile fixes ---------- */
.fam-select { display: none; width: 100%; max-width: 420px; margin: 1rem auto 0; padding: .7rem 1rem; border-radius: 12px; border: 1.5px solid var(--navy-2); color: var(--navy); font-weight: 600; font-size: .95rem; }
@media (max-width: 700px) {
  .fam-bar { display: none !important; }
  .fam-select { display: block; }
}
@media (max-width: 820px) {
  .hero__scroll { display: none; } /* collided with the CTA buttons on phones */
  .alumni-cta { text-align: center; }
  .alumni-cta .lede { margin-inline: auto; }
  .alumni-cta .hero__cta { justify-content: center !important; }
}

/* ---------- board redesign ---------- */
.board-tabs .bt { border: 1.5px solid var(--navy-2); background: var(--white); color: var(--navy); border-radius: 999px; padding: .5rem 1.05rem; font-size: .88rem; font-weight: 600; cursor: pointer; }
.board-tabs .bt.on { color: #fff; border-color: transparent; }
.bt--chapter.on { background: var(--navy); color: var(--gold-bright) !important; }
.bt--advice.on { background: #1f6f6b; }
.bt--social.on { background: var(--gold-deep); }
.bt--opportunities.on { background: #2c6e2c; }
.bt--polls.on { background: #5b3ea8; }
.board-tabs__comm.on { background: var(--navy); color: var(--gold-bright) !important; }
.bt__new { font-style: normal; background: #c0392b; color: #fff; border-radius: 999px; font-size: .66rem; padding: .05rem .4rem; vertical-align: 1px; }
.bt--help { padding: .5rem .8rem !important; }

.board-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.6rem; margin-top: 1rem; align-items: start; }
@media (max-width: 900px) { .board-layout { grid-template-columns: 1fr; } .board-aside { display: none; } }

.cat-band { display: flex; gap: .8rem; align-items: center; background: var(--white); border-radius: 12px; padding: .8rem 1.1rem; font-size: 1.3rem; box-shadow: var(--shadow-sm); border-left: 5px solid var(--navy); margin-bottom: .9rem; }
.cat-band b { display: block; color: var(--navy); font-family: var(--display); font-size: 1.05rem; }
.cat-band span { color: var(--muted); font-size: .82rem; }
.cat-band--advice { border-left-color: #1f6f6b; }
.cat-band--social { border-left-color: var(--gold-deep); }
.cat-band--opportunities { border-left-color: #2c6e2c; }
.cat-band--comm { border-left-color: var(--gold); }

.board-controls { display: flex; gap: .7rem; align-items: center; justify-content: space-between; margin: 0 0 1rem; flex-wrap: wrap; }

.thread-row { border-left: 4px solid var(--navy); }
.thread-row--advice { border-left-color: #1f6f6b; }
.thread-row--social { border-left-color: var(--gold-deep); }
.thread-row--opportunities { border-left-color: #2c6e2c; }
.thread-row--comm { border-left-color: var(--gold); border-left-style: dashed; }
.thread-row__av { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--navy); color: var(--gold-bright); display: grid; place-items: center; font-family: var(--display); overflow: hidden; }
.thread-row__av img { width: 100%; height: 100%; object-fit: cover; }
.thread-row__prev { display: block; color: var(--muted); font-size: .84rem; margin: .1rem 0 .2rem; }
.thread-row.unread .thread-row__main > b { color: var(--navy-deep); }
.thr-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-right: .45rem; vertical-align: 1px; }
.thr-hot { font-style: normal; font-size: .85rem; }

.board-aside { background: var(--white); border-radius: 12px; padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); position: sticky; top: 88px; }
.board-aside h4 { margin: 0 0 .6rem; color: var(--navy); font-family: var(--display); font-size: 1rem; }
.board-aside__row { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #f0ead9; padding: .5rem 0; cursor: pointer; }
.board-aside__row:last-child { border-bottom: 0; }
.board-aside__row b { display: block; color: var(--navy); font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-aside__row span { color: var(--muted); font-size: .74rem; }

.board-empty { text-align: center; padding: 2.5rem 1rem 3rem; position: relative; }
.board-empty img { width: 130px; margin: 0 auto 1rem; opacity: .25; filter: grayscale(35%); }
.board-empty p { color: var(--muted); font-size: .95rem; }
.board-empty b { color: var(--navy); }

.react-bar { display: inline-flex; gap: .35rem; margin-top: .35rem; }
.react { border: 1px solid #e0dac8; background: var(--paper); border-radius: 999px; padding: .12rem .55rem; font-size: .8rem; cursor: pointer; transition: all .12s; }
.react:hover { border-color: var(--gold-deep); }
.react.on { background: #fdf3d9; border-color: var(--gold); }

.thread-view__photo { margin: 1rem 0; }
.thread-view__photo img { max-width: 100%; max-height: 440px; border-radius: 12px; box-shadow: var(--shadow-sm); }

/* ---------- admin console redesign ---------- */
.admin-body { background:
  radial-gradient(90% 60% at 85% -10%, rgba(200,162,75,.14), rgba(200,162,75,0) 55%),
  radial-gradient(70% 50% at 0% 100%, rgba(18,48,95,.7), rgba(18,48,95,0) 60%),
  var(--navy-deep); }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(200,162,75,.28); margin-bottom: 1.3rem; flex-wrap: wrap; }
.admin-head__id { display: flex; align-items: center; gap: .9rem; }
.admin-head__id img { height: 52px; width: auto; }
.admin-head h2 { margin: 0; color: var(--gold-bright); }
.admin-head__sub { color: #b9c4dc; font-size: .82rem; }
.admin-tabgroup { margin-bottom: .7rem; }
.admin-tabgroup__label { color: rgba(232,199,102,.75); }
.admin-tabs button { border: 1px solid rgba(200,162,75,.35); background: rgba(255,255,255,.06); color: #d7deec; border-radius: 999px; padding: .5rem 1.05rem; font-size: .86rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.admin-tabs button:hover { border-color: var(--gold); color: var(--gold-bright); }
.admin-tabs button.on { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--navy-deep); border-color: transparent; box-shadow: 0 6px 18px rgba(200,162,75,.35); }
.admin-tabs button.on .tab-count { background: rgba(7,22,52,.25); color: var(--navy-deep); }
.tab-count { background: rgba(200,162,75,.22); color: var(--gold-bright); border-radius: 999px; padding: .06rem .45rem; font-size: .72rem; }
.admin-search { border: 1.5px solid rgba(200,162,75,.35); background: rgba(255,255,255,.9); }
.admin-row { border: 1px solid transparent; transition: transform .15s, border-color .15s; }
.admin-row:hover { transform: translateY(-2px); border-color: var(--gold); }
.stat-card { border-top: 3px solid var(--gold); }
.stat-h { display: flex; align-items: center; gap: .6rem; }
.stat-h::after { content: ''; flex: 1; height: 1px; background: rgba(200,162,75,.3); }
