/* Beta Chi Chapter — Omega Psi Phi Fraternity, Inc.
   Royal purple & old gold. No build step. */

:root {
  --purple-950: #12071f;
  --purple-900: #1d0c33;
  --purple-800: #2c1250;
  --purple-700: #3d1a6e;
  --purple-600: #52238f;
  --purple-500: #6a2fb5;
  --purple-100: #eee6f8;
  --purple-50:  #f7f3fc;
  --gold-600: #b8891a;
  --gold-500: #d4a72c;
  --gold-400: #e6bd47;
  --gold-300: #f2d27a;
  --gold-100: #fbf1d6;
  --cream: #fbf8f2;
  --ink: #1b1424;
  --ink-2: #4a4255;
  --ink-3: #6e6679;
  --line: #e7e1d6;
  --white: #fff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(29, 12, 51, .06), 0 2px 8px rgba(29, 12, 51, .05);
  --shadow: 0 4px 14px rgba(29, 12, 51, .08), 0 18px 40px rgba(29, 12, 51, .08);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* never let a component's display rule un-hide something */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-600); text-underline-offset: 3px; }
a:hover { color: var(--purple-500); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--purple-900); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold-400); color: var(--purple-950); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(40px, 6vw, 64px) 0; }
.section--white { background: var(--white); }
.section--purple { background: var(--purple-900); color: #e9e2f3; }
.section--purple h2, .section--purple h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section--purple .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-400); }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 62ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.section-head p { margin: 0; color: var(--ink-3); max-width: 52ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 7, 31, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(230, 189, 71, .18);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); min-width: 0; }
.brand img { width: 34px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; white-space: nowrap; }
.brand-text span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); white-space: nowrap; }
.brand:hover { color: var(--white); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #d9d0e6; text-decoration: none; font-size: .93rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.nav a[aria-current="page"] { color: var(--gold-300); }
.nav .nav-members {
  margin-left: 8px; color: var(--purple-950); background: var(--gold-400);
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
}
.nav .nav-members:hover { background: var(--gold-300); color: var(--purple-950); }
.nav .nav-members[aria-current="page"] { color: var(--purple-950); box-shadow: 0 0 0 2px var(--gold-100) inset; }
.nav .nav-signin {
  margin-left: 6px; display: inline-flex; align-items: center; gap: 6px;
  color: #e9e2f3; border: 1.5px solid rgba(255,255,255,.28); font-weight: 600;
}
.nav .nav-signin svg { width: 16px; height: 16px; }
.nav .nav-signin:hover, .nav .nav-signin[aria-current="page"] { border-color: var(--gold-300); color: var(--gold-300); background: transparent; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.2); color: var(--white);
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--purple-950); padding: 12px var(--gutter) 20px;
    border-bottom: 1px solid rgba(230, 189, 71, .2);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px 14px; border-radius: 10px; font-size: 1rem; }
  .nav .nav-members { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: .2s ease;
  font-family: var(--font-body);
}
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: var(--gold-400); color: var(--purple-950); }
.btn--gold:hover { background: var(--gold-300); color: var(--purple-950); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold-300); color: var(--gold-300); }
.btn--purple { background: var(--purple-700); color: var(--white); }
.btn--purple:hover { background: var(--purple-600); color: var(--white); }
.btn--outline { border-color: var(--purple-700); color: var(--purple-700); background: transparent; }
.btn--outline:hover { background: var(--purple-700); color: var(--white); }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #e9e2f3;
  background:
    radial-gradient(900px 500px at 78% 30%, rgba(212, 167, 44, .22), transparent 60%),
    radial-gradient(700px 600px at 10% 100%, rgba(106, 47, 181, .45), transparent 60%),
    linear-gradient(160deg, var(--purple-950) 0%, var(--purple-800) 60%, var(--purple-700) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(242, 210, 122, .25) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; align-items: center; gap: 40px; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(64px, 10vw, 120px); }
.hero h1 { color: var(--white); margin-bottom: .25em; }
.hero h1 em { font-style: italic; color: var(--gold-300); font-weight: 500; }
.hero-sub { font-size: 1.2rem; color: #d4c9e3; max-width: 46ch; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 30px; padding: 0; list-style: none; font-size: .92rem; color: var(--gold-300); }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; opacity: .9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* The seal source is 300px; keep it at or below that so it stays sharp. */
.hero-crest { justify-self: center; position: relative; width: min(100%, 300px); }
.hero-crest::before {
  content: ""; position: absolute; inset: 8% 4% 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 210, 122, .35), transparent 65%); filter: blur(20px);
}
.hero-crest img { position: relative; width: 100%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-crest img { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-crest { order: -1; width: 180px; justify-self: start; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #e3daf0;
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(212, 167, 44, .2), transparent 60%),
    linear-gradient(160deg, var(--purple-950), var(--purple-800));
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { color: #cfc4df; max-width: 60ch; font-size: 1.1rem; margin: 0; }
.page-hero .crest-watermark { position: absolute; right: max(-60px, calc((100vw - var(--max)) / 2 - 40px)); top: 50%; transform: translateY(-50%); width: 300px; opacity: .08; pointer-events: none; }
@media (max-width: 700px) { .page-hero .crest-watermark { width: 200px; right: -50px; } }
.page-hero .crest-watermark--seal { opacity: .11; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.principle { background: var(--white); padding: 30px 26px; }
.principle .num { font-family: var(--font-display); font-size: .9rem; color: var(--gold-600); font-weight: 600; letter-spacing: .08em; }
.principle h3 { margin: 10px 0 6px; font-size: 1.45rem; }
.principle p { margin: 0; color: var(--ink-3); font-size: .97rem; }
@media (max-width: 860px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* Event card */
.event {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.event:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.event-date {
  width: 66px; text-align: center; border-radius: 12px; overflow: hidden;
  background: var(--purple-50); border: 1px solid var(--purple-100);
}
.event-date .m { display: block; background: var(--purple-700); color: var(--gold-300); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 0; }
.event-date .d { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--purple-900); line-height: 1.25; padding-top: 2px; }
.event-date .w { display: block; font-size: .7rem; color: var(--ink-3); padding-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
.event h3 { font-size: 1.18rem; margin: 2px 0 8px; }
.event-meta { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; color: var(--ink-2); font-size: .95rem; }
.event-meta li { display: flex; gap: 8px; align-items: flex-start; }
.event-meta svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--purple-500); }
.event-note { font-size: .93rem; color: var(--ink-3); margin: 0 0 12px; }
.event-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: var(--purple-50); color: var(--purple-600); border: 1px solid var(--purple-100);
}
.tag--gold { background: var(--gold-100); color: #7a5a0c; border-color: #f1dfa6; }
.tag--past { background: #f2f0f4; color: var(--ink-3); border-color: #e4e0e8; }
.ics-btn {
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--purple-600); background: none; border: 0;
  padding: 4px 2px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.ics-btn:hover { color: var(--purple-500); text-decoration: underline; text-underline-offset: 3px; }
.ics-btn svg { width: 15px; height: 15px; }
.event.is-past { opacity: .82; }
.event.is-past .event-date .m { background: #8b8496; color: #fff; }

.empty {
  border: 1.5px dashed var(--line); border-radius: var(--radius-lg); padding: 34px; text-align: center; color: var(--ink-3);
  background: rgba(255,255,255,.6);
}
.empty strong { display: block; color: var(--purple-900); font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 4px; }

/* Filter pills */
.filters { display: inline-flex; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; gap: 4px; }
.filters button {
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-2); background: none; border: 0;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--purple-700); color: var(--white); }

.month-group + .month-group { margin-top: 40px; }
.month-label { font-family: var(--font-display); font-size: 1.35rem; color: var(--purple-800); margin: 0 0 16px; display: flex; align-items: center; gap: 14px; }
.month-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Officers */
.officer { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.officer-photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--purple-800), var(--purple-600)); position: relative; display: grid; place-items: center; }
.officer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; position: absolute; inset: 0; }
.officer-photo .initials { font-family: var(--font-display); font-size: 3rem; color: var(--gold-300); letter-spacing: .04em; }
.officer-body { padding: 20px 18px 24px; }
.officer-role { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 6px; }
.officer-name { font-family: var(--font-display); font-size: 1.28rem; color: var(--purple-900); margin: 0; }

/* Gallery */
.gallery { columns: 3 280px; column-gap: 18px; }
.gallery figure { break-inside: avoid; margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: auto; }
.gallery figcaption { padding: 12px 16px 14px; font-size: .92rem; color: var(--ink-2); }
.gallery figcaption strong { display: block; color: var(--purple-900); font-size: .98rem; }
.photo-slot {
  aspect-ratio: var(--ar, 4 / 3); display: grid; place-items: center; position: relative;
  background:
    radial-gradient(circle at 70% 20%, rgba(212,167,44,.25), transparent 55%),
    linear-gradient(150deg, var(--purple-800), var(--purple-600));
}
.photo-slot img.crest { width: 64px; opacity: .35; }
.photo-slot span { position: absolute; bottom: 10px; left: 12px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(242,210,122,.7); }

/* Feature (community highlight) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 7vw, 88px); }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature-media { order: 0; } }

/* News */
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-date { font-size: .85rem; font-weight: 600; color: var(--gold-600); letter-spacing: .04em; text-transform: uppercase; padding-top: 4px; }
.news-item h3 { margin-bottom: 8px; }
.news-item p { color: var(--ink-2); }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }

/* Info list (members) */
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price:last-of-type { border-bottom: 0; }
.price span { color: var(--ink-2); }
.price strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--purple-900); }
.pay-methods { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pay-methods li { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--purple-50); border: 1px solid var(--purple-100); flex-wrap: wrap; }
.pay-methods .k { font-weight: 600; color: var(--purple-800); }
.pay-methods .v { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .92rem; color: var(--ink); overflow-wrap: anywhere; }
.copy-btn { font: inherit; font-size: .8rem; font-weight: 600; border: 1px solid var(--purple-100); background: var(--white); color: var(--purple-600); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.copy-btn:hover { border-color: var(--purple-500); }
.resource { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit; }
.resource .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--gold-100); color: #7a5a0c; display: grid; place-items: center; }
.resource .ico svg { width: 22px; height: 22px; }
.resource h3 { font-size: 1.12rem; margin: 2px 0 4px; }
.resource p { margin: 0; color: var(--ink-3); font-size: .95rem; }
a.card.resource:hover { border-color: var(--purple-500); box-shadow: var(--shadow); }
a.card.resource:hover h3 { color: var(--purple-600); }
.callout { border-left: 4px solid var(--gold-500); background: var(--gold-100); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; color: #4d3a0b; }
.callout strong { color: #3b2c06; }
.notice { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-3); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--purple-500); }

/* Contact band */
.contact-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.contact-band address { font-style: normal; font-size: 1.15rem; line-height: 1.6; color: var(--white); }
.contact-band address .lbl { display: block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 6px; }
@media (max-width: 760px) { .contact-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-950); color: #b7abc8; padding: 56px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 48px; }
.footer-brand strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.site-footer h4 { color: var(--gold-300); font-family: var(--font-body); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #d6cde3; text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); }
.footer-base { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .84rem; color: #8f83a3; }
.motto { font-family: var(--font-display); font-style: italic; color: var(--gold-300); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--purple-900); color: var(--white); padding: 10px 18px; border-radius: 999px; font-size: .9rem; opacity: 0; transition: .25s; pointer-events: none; z-index: 80; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* ---------- History carousel ---------- */
.hx { position: relative; }
.hx-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; border-radius: var(--radius-lg); outline-offset: 6px;
  overscroll-behavior-x: contain;
}
.hx-track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .hx-track { scroll-behavior: auto; } }
.hx-slide {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-columns: minmax(240px, .85fr) 1.4fr;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(242, 210, 122, .18); border-radius: var(--radius-lg); overflow: hidden;
}
.hx-art {
  position: relative; overflow: hidden; padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 340px;
  background:
    radial-gradient(420px 300px at 80% 10%, rgba(212,167,44,.32), transparent 60%),
    linear-gradient(165deg, var(--purple-700), var(--purple-950));
}
/* Omega Psi Phi seal behind every slide; the Beta Chi slide uses the chapter crest instead. */
.hx-art::after {
  content: ""; position: absolute; right: -46px; bottom: -46px; width: 250px; height: 250px;
  background: url("../img/seal.png") center / contain no-repeat; opacity: .14;
}
.hx-slide.is-local .hx-art::after { background-image: url("../img/crest-480.png"); width: 230px; height: 270px; bottom: -40px; }
.hx-slide.is-local .hx-art { background: radial-gradient(420px 300px at 80% 10%, rgba(242,210,122,.5), transparent 60%), linear-gradient(165deg, #6b4a0c, var(--purple-900)); }
.hx-slide.is-local .hx-art::after { opacity: .28; }
.hx-era { position: relative; z-index: 1; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); }
.hx-year {
  position: relative; z-index: 1; font-family: var(--font-display); font-weight: 600; line-height: .9;
  font-size: clamp(4.2rem, 10vw, 7.5rem); letter-spacing: -.03em;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500) 70%, var(--gold-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hx-badge { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--gold-400); color: var(--purple-950); }
.hx-body { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.hx-date { font-size: .85rem; font-weight: 600; color: var(--gold-300); letter-spacing: .04em; margin-bottom: 8px; }
.hx-body h3 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.hx-body p { color: #d4c9e3; font-size: 1.04rem; margin: 0; max-width: 60ch; }
.hx-people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.hx-person { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 12px 14px; }
.hx-person strong { display: block; color: var(--gold-300); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.hx-person span { display: block; font-size: .86rem; color: #c7bbd8; line-height: 1.45; margin-top: 2px; }
@media (max-width: 780px) {
  .hx-slide { grid-template-columns: 1fr; }
  .hx-art { min-height: 0; padding: 24px 24px 20px; flex-direction: row; align-items: flex-end; }
  .hx-art .hx-era { order: 2; text-align: right; }
  .hx-art::after, .hx-slide.is-local .hx-art::after { width: 140px; height: 150px; right: -20px; bottom: -30px; }
  .hx-people { grid-template-columns: 1fr; }
}

.hx-controls { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.hx-btn {
  flex: none; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.28); transition: .2s;
}
.hx-btn:hover:not(:disabled) { border-color: var(--gold-300); color: var(--gold-300); }
.hx-btn:disabled { opacity: .3; cursor: default; }
.hx-btn svg { width: 20px; height: 20px; }
.hx-progress { flex: 1; display: flex; align-items: center; gap: 14px; }
.hx-count { font-family: var(--font-display); color: var(--white); font-size: 1.05rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hx-count span { color: #9d90b3; }
.hx-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.hx-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transition: width .35s ease; }

.hx-timeline {
  display: flex; gap: 4px; margin-top: 18px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 2px 6px; scroll-behavior: smooth;
}
.hx-timeline::-webkit-scrollbar { display: none; }
.hx-dot {
  flex: 1 0 auto; min-width: 58px; position: relative; cursor: pointer; background: none; border: 0;
  font: inherit; font-size: .8rem; font-weight: 600; color: #9d90b3; padding: 18px 6px 4px; text-align: center;
  font-variant-numeric: tabular-nums; transition: color .2s;
}
.hx-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(255,255,255,.14); }
.hx-dot::after {
  content: ""; position: absolute; left: 50%; top: 3px; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--purple-900); border: 1.5px solid #7d6f94; transition: .2s;
}
.hx-dot:hover { color: var(--white); }
.hx-dot.is-local { color: var(--gold-400); }
.hx-dot[aria-current="true"] { color: var(--gold-300); }
.hx-dot[aria-current="true"]::after { background: var(--gold-400); border-color: var(--gold-300); transform: scale(1.35); box-shadow: 0 0 0 4px rgba(230,189,71,.2); }
.hx-hint { margin-top: 10px; font-size: .82rem; color: #9d90b3; }
.hx-source { font-size: .85rem; color: #9d90b3; margin-top: 26px; }
.hx-source a { color: var(--gold-300); }

/* Full milestone list (History page) */
.hx-list { position: relative; list-style: none; margin: 0; padding: 0 0 0 28px; }
.hx-list::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold-400), var(--purple-500)); border-radius: 2px; }
.hx-list li { position: relative; padding: 0 0 32px; }
.hx-list li::before { content: ""; position: absolute; left: -27px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--purple-600); }
.hx-list li.is-local::before { border-color: var(--gold-500); background: var(--gold-100); }
.hx-list .yr { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold-600); font-weight: 600; }
.hx-list h3 { margin: 2px 0 6px; font-size: 1.25rem; }
.hx-list p { margin: 0; color: var(--ink-2); max-width: 70ch; }
.hx-list .ppl { margin-top: 8px; color: var(--ink-3); font-size: .95rem; }
@media (max-width: 780px) {
  /* On phones each slide keeps its own height; JS sizes the track to the active slide. */
  .hx-track { align-items: flex-start; overflow-y: hidden; transition: height .3s ease; }
  .hx-body { justify-content: flex-start; }
}
@media (max-width: 780px) and (prefers-reduced-motion: reduce) { .hx-track { transition: none; } }

/* ---------- Brothers directory ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dir-lock { max-width: 480px; margin: 0 auto; text-align: center; padding: clamp(28px, 5vw, 44px); }
.dir-lock > img { margin: 0 auto 14px; width: 64px; }
.dir-lock h2 { font-size: 1.6rem; }
.dir-lock > p { color: var(--ink-3); }
.dir-lock form { text-align: left; margin-top: 22px; display: grid; gap: 12px; }
.dir-label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.dir-pass-row { position: relative; }
.dir-pass-row input {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 48px 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--cream); color: var(--ink);
}
.dir-pass-row input:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 4px rgba(106,47,181,.14); background: var(--white); }
.dir-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.dir-eye svg { width: 20px; height: 20px; }
.dir-eye[aria-pressed="true"] { color: var(--purple-600); }
.dir-check { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--ink-2); }
.dir-check input { width: 18px; height: 18px; accent-color: var(--purple-600); }
.dir-lock .btn { width: 100%; margin-top: 4px; }
.dir-lock .btn:disabled { opacity: .7; cursor: wait; }
.dir-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fdecee; color: #8a1c2b; font-size: .92rem; }

.dir-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: sticky; top: 68px; z-index: 5; padding: 12px 0; background: var(--cream); }
.dir-search { flex: 1 1 260px; position: relative; }
.dir-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.dir-search input, .dir-month select {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
}
.dir-search input { padding-left: 42px; }
.dir-search input:focus, .dir-month select:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 4px rgba(106,47,181,.14); }
.dir-month { flex: 0 1 180px; }
.dir-month select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6679' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.dir-toolbar .btn svg { width: 16px; height: 16px; }
.dir-letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px; }
.dir-letters a { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--purple-600); background: var(--white); border: 1px solid var(--line); }
.dir-letters a:hover { background: var(--purple-700); color: var(--white); border-color: var(--purple-700); }
.dir-count { font-size: .9rem; color: var(--ink-3); margin: 10px 0 18px; }
.dir-group { scroll-margin-top: 150px; }
.dir-group + .dir-group { margin-top: 28px; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.dir-card { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 14px 16px; box-shadow: var(--shadow-sm); }
.dir-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: var(--gold-300); background: linear-gradient(150deg, var(--purple-800), var(--purple-600)); font-size: .95rem; }
.dir-info { flex: 1; min-width: 0; }
.dir-info h3 { font-size: 1.05rem; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-phone { font-variant-numeric: tabular-nums; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.dir-phone:hover { color: var(--purple-600); }
.dir-months { font-size: .78rem; color: var(--ink-3); margin-top: 2px; }
.dir-actions { display: flex; gap: 6px; flex: none; }
.dir-actions a, .dir-actions button {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--purple-100); background: var(--purple-50); color: var(--purple-600); transition: .15s;
}
.dir-actions a:hover, .dir-actions button:hover { background: var(--purple-700); border-color: var(--purple-700); color: var(--white); }
.dir-actions svg { width: 17px; height: 17px; }
mark { background: var(--gold-100); color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 480px) {
  .dir-toolbar { top: 68px; }
  .dir-month { flex: 1 1 auto; }
  .dir-grid { grid-template-columns: 1fr; }
  .dir-actions button { display: none; } /* keep Call + Text on narrow phones */
}

/* ---------- Member information form ---------- */
.mi-form { display: grid; gap: 22px; }
.mi-required-note { margin: 0; font-size: .9rem; color: var(--ink-3); }
.req { color: #b42339; font-weight: 700; }
.opt { color: var(--ink-3); font-weight: 400; font-size: .85em; }
.mi-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mi-section { border: 1px solid var(--line); margin: 0; min-width: 0; padding: clamp(22px, 4vw, 32px); }
.mi-section legend { float: left; width: 100%; padding: 0; margin: 0 0 18px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--purple-900); display: flex; align-items: center; gap: 12px; }
.mi-section legend + * { clear: both; }
.mi-step { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-body); font-size: .85rem; font-weight: 700; background: var(--purple-700); color: var(--gold-300); }
.mi-help { color: var(--ink-3); font-size: .95rem; margin: 0 0 14px; }
.mi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.mi-span-2 { grid-column: 1 / -1; }
.mi-field { display: grid; gap: 6px; align-content: start; }
.mi-field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.mi-field input, .mi-static {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); min-height: 46px;
}
.mi-static { background: transparent; border-style: dashed; color: var(--ink-2); display: flex; align-items: center; }
.mi-field input:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 4px rgba(106,47,181,.14); background: var(--white); }
.mi-field input.is-invalid { border-color: #b42339; background: #fff7f8; }
.mi-err { margin: 4px 0 0; color: #a11d33; font-size: .86rem; font-weight: 500; }
.mi-err--form { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #fdecee; }
.mi-rows { display: grid; gap: 12px; }
.mi-row { display: grid; grid-template-columns: 1.3fr 1.1fr .7fr auto; gap: 10px; align-items: end; padding: 14px; border-radius: 12px; background: var(--purple-50); border: 1px solid var(--purple-100); }
.mi-row .mi-field input { background: var(--white); }
.mi-remove { width: 42px; height: 46px; border-radius: 10px; border: 1px solid var(--purple-100); background: var(--white); color: var(--ink-3); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.mi-remove:hover { color: #a11d33; border-color: #e7b6be; }
.mi-add { margin-top: 12px; font: inherit; font-weight: 600; font-size: .92rem; color: var(--purple-600); background: none; border: 1.5px dashed var(--purple-100); border-radius: 10px; padding: 10px 16px; cursor: pointer; width: 100%; }
.mi-add:hover { border-color: var(--purple-500); background: var(--purple-50); }
.mi-choices { display: grid; gap: 10px; margin-bottom: 14px; }
.mi-choice, .mi-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.mi-choice { padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); transition: .15s; }
.mi-choice:hover { border-color: var(--purple-100); }
.mi-choice:has(input:checked) { border-color: var(--purple-500); background: var(--purple-50); }
.mi-choice input, .mi-check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--purple-600); }
.mi-check { margin-top: 14px; font-size: .97rem; color: var(--ink-2); }
#brother-field { margin: 0 0 6px; max-width: 420px; }
.mi-sig { font-family: var(--font-display) !important; font-style: italic; font-size: 1.25rem !important; }
.mi-pass { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 420px; }
.mi-submit { margin-top: 22px; }
.mi-submit .btn { min-width: 240px; }
.mi-submit .btn:disabled { opacity: .7; cursor: wait; }
.mi-done { max-width: 560px; margin: 0 auto; text-align: center; padding: clamp(28px, 5vw, 48px); }
.mi-done > img { margin: 0 auto 14px; }
.mi-done:focus { outline: none; }
@media (max-width: 640px) {
  .mi-grid { grid-template-columns: 1fr; }
  .mi-row { grid-template-columns: 1fr 1fr; }
  .mi-row .mi-field:first-child { grid-column: 1 / -1; }
  .mi-remove { width: 100%; }
  .mi-submit .btn { width: 100%; min-width: 0; }
}

/* ---------- Officers' records view ---------- */
.ad-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.ad-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ad-table th, .ad-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ad-table thead th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--cream); font-weight: 700; }
.ad-table tbody tr:last-child > * { border-bottom: 0; }
.ad-table tbody tr:hover { background: var(--purple-50); }
.ad-link { font: inherit; font-weight: 600; color: var(--purple-700); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.ad-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ad-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: var(--radius-lg); padding: 0; box-shadow: 0 30px 80px rgba(18,7,31,.35); color: var(--ink); }
.ad-dialog::backdrop { background: rgba(18, 7, 31, .55); backdrop-filter: blur(3px); }
.ad-d-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; background: var(--purple-900); position: sticky; top: 0; }
.ad-d-head h2 { color: var(--white); margin: 0; font-size: 1.5rem; }
.ad-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: none; color: var(--white); font-size: 1.5rem; cursor: pointer; line-height: 1; }
#ad-d-body { padding: 8px 26px 4px; }
#ad-d-body h3 { font-size: .78rem; font-family: var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin: 22px 0 10px; }
.ad-dl { margin: 0; display: grid; gap: 0; }
.ad-kv { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ad-kv dt { color: var(--ink-3); font-size: .92rem; }
.ad-kv dd { margin: 0; }
.ad-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ad-list span, .ad-none { color: var(--ink-3); }
.ad-none { margin: 0; font-size: .95rem; }
.ad-signed { margin: 24px 0 8px; padding: 16px 18px; border-radius: 12px; background: var(--cream); border: 1px dashed var(--line); display: grid; gap: 4px; }
.mi-sig-view { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--purple-900); }
.ad-signed span:last-child { font-size: .85rem; color: var(--ink-3); }
.ad-d-foot { padding: 16px 26px 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 16px; }
.ad-d-foot > span { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; color: #a11d33; }
.ad-danger { border-color: #e7b6be !important; color: #a11d33 !important; }
.ad-danger:hover { background: #fdecee !important; }
.ad-danger-solid { background: #a11d33; color: #fff; }
.ad-danger-solid:hover { background: #861629; color: #fff; }
@media (max-width: 560px) { .ad-kv { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Lineage: Lines & Years ---------- */
.ln-stats-band { background: var(--purple-900); border-top: 1px solid rgba(230,189,71,.18); }
.ln-stats { display: grid; grid-template-columns: repeat(5, 1fr); }
.ln-stat { padding: 22px 12px; text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
.ln-stat:first-child { border-left: 0; }
.ln-stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; color: var(--gold-300); line-height: 1.1; }
.ln-stat span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #b9aecb; }
@media (max-width: 700px) {
  .ln-stats { grid-template-columns: repeat(2, 1fr); }
  .ln-stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .ln-stat:first-child { grid-column: 1 / -1; border-top: 0; }
}
.ln-decades { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 6px 0 4px; padding-bottom: 2px; }
.ln-decades::-webkit-scrollbar { display: none; }
.ln-decades a { flex: none; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--purple-600); background: var(--white); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ln-decades a:hover { background: var(--purple-700); color: var(--white); border-color: var(--purple-700); }
.ln-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .86rem; color: var(--ink-3); margin: 0 0 28px; }
.ln-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.ln-now-sample, .ln-now { font-size: .74rem; font-weight: 600; color: var(--ink-3); background: #f2f0f4; border: 1px solid #e4e0e8; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.ln-timeline { position: relative; padding-left: 34px; }
.ln-timeline::before { content: ""; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--gold-400), var(--purple-500) 30%, var(--purple-500) 80%, var(--gold-400)); border-radius: 2px; }
.ln-year { position: relative; scroll-margin-top: 150px; }
.ln-year + .ln-year { margin-top: 30px; }
.ln-year::before { content: ""; position: absolute; left: -31px; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 3px solid var(--purple-600); }
.ln-year-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.ln-year-head h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.2rem); color: var(--purple-900); font-variant-numeric: tabular-nums; }
.ln-year-head span { font-size: .88rem; color: var(--ink-3); }
.ln-line { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.ln-line + .ln-line { margin-top: 12px; }
.ln-line header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 18px; background: var(--purple-50); border-bottom: 1px solid var(--purple-100); flex-wrap: wrap; }
.ln-line h3 { margin: 0; font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--purple-800); }
.ln-line header span { font-size: .82rem; color: var(--ink-3); }
.ln-line.is-charter { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(230,189,71,.18), var(--shadow-sm); }
.ln-line.is-charter header { background: linear-gradient(90deg, var(--gold-100), #fff8e4); border-bottom-color: #f1dfa6; }
.ln-line.is-charter h3 { color: #6b4e0a; }
.ln-line ul { list-style: none; margin: 0; padding: 8px 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2px 10px; }
.ln-line li { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; flex-wrap: wrap; min-width: 0; }
.ln-line li:hover { background: var(--cream); }
.ln-name { font-weight: 600; color: var(--ink); }
.ln-line li.is-omega .ln-name { color: var(--ink-3); font-weight: 500; }
.ln-badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .72rem; font-weight: 700; flex: none; cursor: default; }
.ln-badge--life { background: var(--gold-100); color: #8a6410; border: 1px solid #f1dfa6; }
.ln-badge--omega { background: var(--purple-700); color: var(--gold-300); font-family: var(--font-display); font-size: .85rem; }
@media (max-width: 520px) {
  .ln-timeline { padding-left: 24px; }
  .ln-timeline::before { left: 5px; }
  .ln-year::before { left: -26px; width: 14px; height: 14px; }
  .ln-line ul { grid-template-columns: 1fr; }
}

/* ---------- Officer portal ---------- */
.pt-tabs { display: flex; gap: 4px; padding: 5px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; width: max-content; max-width: 100%; }
.pt-tabs::-webkit-scrollbar { display: none; }
.pt-tabs button { flex: none; font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink-2); background: none; border: 0; padding: 10px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.pt-tabs button:hover { color: var(--purple-700); }
.pt-tabs button[aria-selected="true"] { background: var(--purple-700); color: var(--white); }
.pt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.pt-head h2 { font-size: 1.9rem; margin: 0 0 4px; }
.pt-head p { margin: 0; color: var(--ink-3); }
.pt-stack { display: grid; gap: 18px; }
.pt-panel .card h3 { font-size: 1.25rem; margin-bottom: 14px; }
.pt-rows { display: grid; gap: 10px; }
.pt-row { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 10px; align-items: end; padding: 12px; border-radius: 12px; background: var(--purple-50); border: 1px solid var(--purple-100); }
#pay-dues .pt-row { grid-template-columns: 1.6fr 1fr auto; }
.pt-row .mi-field input { background: var(--white); }
.pt-row-tools { display: flex; gap: 6px; }
.pt-icon { width: 40px; height: 46px; border-radius: 10px; border: 1px solid var(--purple-100); background: var(--white); color: var(--ink-3); font-size: 1.05rem; cursor: pointer; }
.pt-icon:hover { color: var(--purple-700); border-color: var(--purple-500); }
.pt-icon--del { font-size: 1.4rem; }
.pt-icon--del:hover { color: #a11d33; border-color: #e7b6be; }
.mi-field textarea, .pt-select {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); resize: vertical;
}
.pt-select { min-height: 46px; }
.mi-field textarea:focus, .pt-select:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 4px rgba(106,47,181,.14); background: var(--white); }
.pt-savebar { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.pt-meta { margin-right: auto; font-size: .86rem; color: var(--ink-3); }
.pt-status { font-size: .9rem; font-weight: 600; }
.pt-status.is-ok { color: #1f7a4a; }
.pt-status.is-err { color: #a11d33; }
.dir-error.is-ok { background: #e8f6ee; color: #1f7a4a; }
.pt-sub { font-size: .8rem; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.pt-upload { margin-bottom: 18px; }
.pt-docgrid { grid-template-columns: 2fr 1.2fr 1fr; margin-top: 16px; }
.pt-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 14px; border: 2px dashed var(--purple-100); background: var(--purple-50); cursor: pointer; transition: .15s; }
.pt-drop:hover, .pt-drop.is-over { border-color: var(--purple-500); background: #efe6fa; }
.pt-drop.has-file { border-style: solid; border-color: var(--purple-500); }
.pt-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pt-drop-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--purple-700); color: var(--gold-300); display: grid; place-items: center; }
.pt-drop-icon svg { width: 22px; height: 22px; }
.pt-drop-text { color: var(--ink-2); font-size: .95rem; overflow-wrap: anywhere; }
.pt-drop-text strong { color: var(--purple-800); }
.pt-users { display: grid; gap: 12px; }
.pt-user { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.pt-user.is-off { opacity: .65; }
.pt-user-info { flex: 1; min-width: 0; }
.pt-user-info h3 { font-size: 1.08rem; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-perm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pt-perm { font-size: .76rem; font-weight: 600; color: var(--purple-700); background: var(--purple-50); border: 1px solid var(--purple-100); border-radius: 999px; padding: 3px 10px; }
.pt-perms { border: 0; padding: 0; margin: 18px 0 0; }
.pt-perms legend { font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; padding: 0; }
.pt-perms .mi-check { margin-top: 10px; }
.pt-temp { margin: 16px 0 4px; padding: 16px 18px; border-radius: 12px; background: var(--gold-100); border: 1px solid #f1dfa6; color: #4d3a0b; display: grid; gap: 8px; font-size: .92rem; }
.pt-temp code { font-family: ui-monospace, Consolas, monospace; font-size: 1.35rem; letter-spacing: .06em; color: var(--purple-900); background: var(--white); padding: 8px 12px; border-radius: 8px; justify-self: start; }
.pt-temp .copy-btn { justify-self: start; }
#usr-form .mi-field input:disabled { opacity: .7; }
@media (max-width: 720px) {
  .pt-row, #pay-dues .pt-row { grid-template-columns: 1fr; }
  .pt-row-tools { justify-content: flex-end; }
  .pt-docgrid { grid-template-columns: 1fr; }
  .pt-user { flex-wrap: wrap; }
}

/* ---------- Brothers page: chapter documents ---------- */
.bd-lock { display: flex; gap: 20px; align-items: flex-start; max-width: 640px; }
.bd-lock-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--purple-700); color: var(--gold-300); display: grid; place-items: center; }
.bd-lock-icon svg { width: 24px; height: 24px; }
.bd-lock-body { flex: 1; min-width: 0; }
.bd-lock h3 { font-size: 1.2rem; margin: 4px 0 12px; }
.bd-form { display: flex; gap: 10px; flex-wrap: wrap; }
.bd-form input[type="password"] { flex: 1 1 220px; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); }
.bd-form input:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 4px rgba(106,47,181,.14); background: var(--white); }
.bd-lock .dir-error { margin-top: 10px; }
.bd-group + .bd-group { margin-top: 26px; }
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.bd-doc { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.bd-doc-icon { position: relative; flex: none; width: 44px; height: 52px; border-radius: 8px; background: var(--purple-50); color: var(--purple-600); display: grid; place-items: center; border: 1px solid var(--purple-100); }
.bd-doc-icon svg { width: 22px; height: 22px; margin-top: -8px; }
.bd-doc-icon b { position: absolute; bottom: 5px; font-size: .58rem; letter-spacing: .08em; color: var(--purple-700); }
.bd-doc-info { flex: 1; min-width: 0; }
.bd-doc-info h4 { margin: 0; font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.bd-doc-info h4 a { color: var(--ink); text-decoration: none; }
.bd-doc-info h4 a:hover { color: var(--purple-600); text-decoration: underline; }
.bd-doc-meta { font-size: .84rem; color: var(--ink-3); margin-top: 2px; }
.bd-doc-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
@media (max-width: 560px) { .bd-lock { flex-direction: column; } .bd-grid { grid-template-columns: 1fr; } }

@media (max-width: 1060px) {
  .nav .nav-signin { margin: 8px 0 0; justify-content: center; }
}
