/* Alpha Alpha app — Phi Beta Sigma Royal Blue (#164f90) & Pure White, Arial (Visual Brand Standards) */
:root {
  --blue: #164f90;
  --blue-deep: #0e3a6b;
  --navy: #0b2547;
  --blue-50: #e9f0fa;
  --blue-100: #d4e2f4;
  --paper: #f3f6fb;
  --line: #dfe5ee;
  --ink: #161a22;
  --ink-soft: #4a5263;
  --gold: #c9a24b;
  --ok: #1d6b34;
  --danger: #b3261e;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 37, 71, 0.06), 0 10px 26px -16px rgba(11, 37, 71, 0.35);
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
svg { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

#app { min-height: 100svh; padding-bottom: calc(var(--tabbar) + var(--safe-bottom) + 16px); }

/* ---------- Top bars ---------- */
.hero { position: relative; color: #fff; padding: calc(var(--safe-top) + 18px) 18px 26px; background:
  radial-gradient(120% 90% at 50% -10%, rgba(255, 255, 255, 0.16), transparent 55%),
  linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 60%, var(--navy) 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background:
  conic-gradient(from 200deg at 18% -5%, transparent 0 8deg, rgba(255, 255, 255, 0.1) 9deg 10deg, transparent 11deg 22deg),
  conic-gradient(from 320deg at 84% -5%, transparent 0 8deg, rgba(255, 255, 255, 0.08) 9deg 10deg, transparent 11deg 22deg); }
.hero > * { position: relative; z-index: 1; }
.brandrow { display: flex; align-items: center; gap: 12px; }
.brandrow img { width: 46px; height: 46px; border-radius: 50%; background: #fff; }
.brandrow b { display: block; font-size: 1.02rem; letter-spacing: 0.04em; font-weight: 800; }
.brandrow span { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #cfe0f4; }
.hero h1 { margin: 22px 0 4px; font-size: 1.9rem; line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
.hero p { margin: 0; color: #d8e4f4; font-size: 0.95rem; }

.bar { position: sticky; top: 0; z-index: 20; background: var(--blue-deep); color: #fff; padding: calc(var(--safe-top) + 10px) 8px 10px; display: flex; align-items: center; gap: 6px; min-height: 56px; }
.bar h1 { flex: 1; margin: 0; font-size: 1.06rem; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .back { border: 0; background: transparent; color: #fff; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; }
.bar .back:active { background: rgba(255, 255, 255, 0.12); }
.bar .bar-act { border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 0.82rem; margin-right: 6px; }
.bar .spacer { width: 12px; }

/* ---------- Layout ---------- */
.page { padding: 16px; max-width: 720px; margin: 0 auto; }
.section-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue); margin: 24px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.section-title a { font-size: 0.8rem; letter-spacing: 0; text-transform: none; text-decoration: none; font-weight: 700; }
.section-title:first-child { margin-top: 4px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card + .card { margin-top: 12px; }
.pad { padding: 16px 18px; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.86rem; }
.prose { white-space: pre-line; }

/* Countdown */
.cd { margin-top: -14px; position: relative; z-index: 2; display: block; text-decoration: none; color: inherit; }
.cd .card { padding: 16px 18px; }
.cd .eyebrow { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); }
.cd h2 { margin: 4px 0 2px; font-size: 1.12rem; line-height: 1.2; }
.cd p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.clock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.clock div { background: var(--blue-50); border-radius: 12px; text-align: center; padding: 8px 4px; }
.clock b { display: block; font-size: 1.5rem; line-height: 1.1; color: var(--blue); font-weight: 800; }
.clock span { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 0; padding: 14px 6px 12px; text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: 0.8rem; line-height: 1.15; position: relative; }
.tile .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.tile.primary .ic { background: var(--blue); color: #fff; }
.tile:active { transform: scale(0.97); }
.tile .lock { position: absolute; top: 8px; right: 8px; color: var(--ink-soft); }
.tile .lock svg { width: 13px; height: 13px; }

/* Rows / lists */
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; background: #fff; width: 100%; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.row:last-child { border-bottom: 0; }
.row:active { background: var(--paper); }
.row .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.row .tx { flex: 1; min-width: 0; }
.row .tx strong { display: block; font-size: 0.98rem; }
.row .tx small { display: block; color: var(--ink-soft); font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; }
.row .chev { color: #a5afc0; }
.row .chev svg { width: 18px; height: 18px; }
.row .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-50) center / cover no-repeat; flex: none; display: grid; place-items: center; color: var(--blue); font-weight: 800; font-size: 0.95rem; }

/* Event cards */
.event { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.datebox { background: var(--blue); color: #fff; border-radius: 12px; text-align: center; padding: 8px 4px; align-self: start; }
.datebox b { display: block; font-size: 1.45rem; line-height: 1; font-weight: 800; }
.datebox span { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.datebox.tba { background: var(--blue-50); color: var(--blue); }
.datebox.tba b { font-size: 0.9rem; padding: 6px 0; }
.event h3 { margin: 0 0 2px; font-size: 1.02rem; }
.event p { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.88rem; }
.event img { border-radius: 12px; margin-top: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 999px; border: 2px solid transparent; background: var(--blue); color: #fff; font-weight: 800; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn:disabled { opacity: 0.55; }
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 8px 14px; font-size: 0.84rem; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue-100); }
.btn-light { background: #fff; color: var(--blue); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-block { width: 100%; }
.btn-danger { background: #fff; color: var(--danger); border-color: #efc9c6; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Feature (Centennial) */
.flyer { background: var(--navy); }
.flyer img { width: 100%; max-height: 70svh; object-fit: contain; margin: 0 auto; }
.meta { display: grid; gap: 0; margin: 0; }
.meta div { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.meta div:last-child { border-bottom: 0; }
.meta b { min-width: 64px; color: var(--blue); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.7rem; padding-top: 3px; }
.sched { padding: 14px 16px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--blue); }
.sched:last-child { border-bottom: 0; }
.sched .t { font-weight: 800; color: var(--blue); font-size: 0.82rem; }
.sched h3 { margin: 2px 0; font-size: 1rem; }
.sched p { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.88rem; }

/* Pay links */
.pay { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.pay:last-child { border-bottom: 0; }
.pay .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.pay .tx { flex: 1; min-width: 0; }
.pay strong { display: block; }
.pay small { color: var(--ink-soft); font-size: 0.85rem; }

/* News */
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card .pad small { color: var(--ink-soft); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.news-card h3 { margin: 4px 0 6px; font-size: 1.08rem; }

/* Photos */
.grid-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: var(--radius); overflow: hidden; }
.grid-photos button { border: 0; padding: 0; background: var(--blue-50); aspect-ratio: 1; overflow: hidden; }
.grid-photos img { width: 100%; height: 100%; object-fit: cover; }
.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(5, 15, 32, 0.96); display: grid; place-items: center; padding: calc(var(--safe-top) + 50px) 12px calc(var(--safe-bottom) + 60px); }
.viewer img { max-height: 100%; max-width: 100%; border-radius: 8px; }
.viewer .close { position: absolute; top: calc(var(--safe-top) + 10px); right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; display: grid; place-items: center; }
.viewer p { position: absolute; left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 14px); color: #dfe8f6; text-align: center; margin: 0; font-size: 0.92rem; }

/* People */
.leader { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.leader:last-child { border-bottom: 0; }
.leader .avatar { width: 52px; height: 52px; border-radius: 50%; background: #fff url("/assets/chapter-seal-sm.png") center / 112% no-repeat; box-shadow: 0 0 0 2px var(--blue-50); flex: none; }
.leader .avatar.photo { background-size: cover; }
.leader small { display: block; color: var(--blue); font-weight: 800; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.leader strong { font-size: 1rem; }
.contact-card { text-align: center; padding: 26px 18px; }
.contact-card .avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; font-size: 1.8rem; font-weight: 800; }
.contact-card h2 { margin: 0; font-size: 1.3rem; }

/* Forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field label small { font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin: 0; font-weight: 700; font-size: 0.92rem; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }
.search { width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-size: 16px; margin-bottom: 12px; }
.search:focus { outline: none; border-color: var(--blue); }
.notice { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 14px; padding: 14px 16px; font-size: 0.92rem; }
.notice.gold { background: #fbf6e8; border-color: #efe0b5; }
.preview-photo { border-radius: 12px; max-height: 300px; margin: 0 auto; }

/* Sign-in */
.signin { text-align: center; padding: 28px 20px; }
.signin img { width: 84px; margin: 0 auto 12px; }
.signin h2 { margin: 0 0 6px; color: var(--blue); text-transform: uppercase; font-size: 1.3rem; }
.signin form { text-align: left; margin-top: 18px; }

/* Empty */
.empty { text-align: center; padding: 30px 18px; color: var(--ink-soft); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* Install banner */
.install { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 12px 14px; margin-top: 14px; }
.install img { width: 42px; height: 42px; border-radius: 10px; }
.install .tx { flex: 1; font-size: 0.86rem; line-height: 1.3; }
.install .tx strong { display: block; font-size: 0.95rem; }
.install .x { border: 0; background: transparent; color: #a9bcd8; padding: 6px; }
.install .x svg { width: 18px; height: 18px; }
.sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(5, 15, 32, 0.55); display: flex; align-items: flex-end; }
.sheet { background: #fff; width: 100%; border-radius: 22px 22px 0 0; padding: 22px 20px calc(var(--safe-bottom) + 22px); max-width: 720px; margin: 0 auto; }
.sheet h2 { margin: 0 0 12px; color: var(--blue); }
.sheet ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 10px; }

/* Tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: var(--safe-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tabbar); text-decoration: none; color: #7a8497; font-size: 0.68rem; font-weight: 700; }
.tabbar a[aria-current="page"] { color: var(--blue); }
.tabbar svg { width: 24px; height: 24px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-bottom) + 16px); transform: translate(-50%, 20px); z-index: 90; background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.3s; max-width: calc(100% - 32px); text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.loading { display: grid; place-items: center; min-height: 40svh; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--blue-50); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(4, 1fr); } .grid-photos { grid-template-columns: repeat(4, 1fr); } }
