:root {
    --navy: #3070b0;
    --navy-2: #285f9a;
    --red: #b22234;
    --red-dark: #8e1a28;
    --gold: #c9a227;
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #1c2733;
    --muted: #5c6b7a;
    --border: #e2e7ee;
    --radius: 12px;
    --shadow: 0 4px 18px rgba(11, 37, 69, 0.08);
    --shadow-lg: 0 12px 40px rgba(11, 37, 69, 0.14);
    --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--navy-2); }
img { max-width: 100%; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Header / nav ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(11,37,69,.08); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; padding: 10px 22px; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 122px; width: auto; display: block; max-width: 100%; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--navy); text-decoration: none; padding: 8px 12px; border-radius: 7px; font-weight: 600; font-size: 0.94rem; }
.site-nav a:hover { background: #eef2f7; }
.site-nav a.is-active { color: #fff; background: var(--navy-2); }
.site-nav .btn-join { background: var(--navy-2); color: #fff; }
.site-nav .btn-join:hover { background: var(--navy); }
.header-donate { background: var(--red); color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 7px; font-weight: 600; font-size: 0.94rem; white-space: nowrap; }
.header-donate:hover { background: var(--red-dark); }
/* Hamburger — hidden on desktop, shown on mobile */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 40px; padding: 9px 10px; background: #eef2f7; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: #eef2f7; color: var(--navy); border: 1px solid var(--border); border-radius: 9px; padding: 11px 20px; font-size: 0.97rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .05s ease, background .15s ease; }
.btn:hover { background: #e3e9f1; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-danger { background: #fff; color: var(--red); border-color: #e4b9bf; }
.btn-danger:hover { background: #fbe9eb; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { color: #fff; position: relative; overflow: hidden; padding: 0; background-color: var(--navy); background-size: cover; background-position: center 34%; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(201,162,39,.18), transparent 45%); pointer-events: none; }
.hero-inner { max-width: 760px; padding: 64px 22px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; letter-spacing: .14em; text-transform: uppercase; font-size: 0.76rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.hero h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; margin: 0 0 12px; }
.hero p { font-size: 1.05rem; color: #d6e0ee; margin: 0 auto 20px; max-width: 620px; }
.hero .btn-row { justify-content: center; }

/* ---------- Photo band + inline photos ---------- */
.photo-band { background-size: cover; background-position: center 35%; color: #fff; text-align: center; padding: 120px 0; }
.photo-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.prose-photo { width: 100%; border-radius: var(--radius); margin: 0 0 26px; box-shadow: var(--shadow); }
.page-photo { width: 100%; height: 240px; object-fit: cover; display: block; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 28px; }
.join-highlight { background: #eef4fb; border: 1px solid #cfe0f2; border-left: 5px solid var(--navy); border-radius: 10px; padding: 20px 24px; margin: 26px 0 8px; }
.join-highlight h3 { color: var(--navy); margin: 0 0 8px; }
.join-highlight p { margin: 0 0 14px; }
@media (max-width: 680px) { .page-photo { height: 170px; } }
.card-photo { width: calc(100% + 52px); margin: -26px -26px 18px; display: block; height: 170px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.section-tight { padding: 42px 0; }
.section-after-banner { padding-top: 28px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 38px; }
.section-head h2 { font-size: 1.9rem; color: var(--navy); margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Welcome (personable) ---------- */
.welcome { display: grid; grid-template-columns: 130px 1fr; gap: 28px; align-items: center; max-width: 880px; margin: 0 auto; }
.welcome .seal { width: 130px; height: 130px; }
.welcome h2 { color: var(--navy); margin-top: 0; }
.welcome .sig { font-style: italic; color: var(--muted); margin-top: 12px; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 18px; }
.stat { text-align: center; background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stat .num { font-size: 2.1rem; font-weight: 800; color: var(--red); line-height: 1; }
.stat .label { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.stat .stat-source { color: var(--muted); opacity: .75; font-size: 0.72rem; font-style: italic; margin-top: 8px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.22rem; }
.card .icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: #eef2f7; color: var(--navy-2); font-size: 1.3rem; margin-bottom: 14px; }
.card p { margin: 0; color: var(--muted); }
.wg-meta { list-style: none; padding: 14px 0 0; margin: 16px 0 0; border-top: 1px solid var(--border); font-size: 0.86rem; }
.wg-meta li { margin: 6px 0; color: var(--muted); line-height: 1.45; }
.wg-meta strong { color: var(--navy); font-weight: 700; }
.wg-meta a { color: var(--navy-2); word-break: break-word; }

/* ---------- Page banner ---------- */
.page-banner { background: var(--navy); color: #fff; text-align: center; padding: 38px 22px; position: relative; }
.page-banner h1 { font-size: 2.2rem; margin: 0 0 8px; }
.page-banner p { color: #c7d3e3; margin: 0; font-size: 1.05rem; }
/* Photo-backed banner: the image sits behind the title under a navy overlay (set inline). */
.page-banner.has-photo { background-color: var(--navy); background-size: cover; background-repeat: no-repeat; padding: 78px 22px; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.page-banner.has-photo p { color: #e3eaf4; max-width: 620px; margin: 0 auto; }
@media (max-width: 680px) { .page-banner.has-photo { padding: 56px 18px; } }

/* ---------- Prose ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { color: var(--navy); font-size: 1.5rem; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); }
.benefits { list-style: none; padding: 0; margin: 16px 0; }
.benefits li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--text); }
.benefits li::before { content: "✔"; position: absolute; left: 0; top: 0; color: #1c6b3a; font-weight: 700; }

/* ---------- Company directory ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.toolbar input { flex: 1; min-width: 220px; max-width: 420px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; }
.company { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: box-shadow .15s ease, transform .15s ease; }
.company:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.company-head { display: flex; align-items: center; gap: 14px; }
.company-logo { width: 64px; height: 64px; flex: none; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.logo-placeholder { display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.5rem; border: none; }
.company-name { margin: 0; font-size: 1.18rem; }
.company-name a { color: var(--navy); text-decoration: none; }
.company-name a:hover { text-decoration: underline; }
.company-address { color: var(--muted); margin: 14px 0 4px; font-size: 0.95rem; }
.help-label { text-transform: uppercase; letter-spacing: .05em; font-size: 0.72rem; font-weight: 700; color: var(--red); margin: 14px 0 4px; }
.company-desc { color: var(--text); margin: 0 0 12px; }
.company-meta { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--border); font-size: 0.92rem; }
.company-meta li { margin: 5px 0; word-break: break-word; color: var(--muted); }
.company-meta a { color: var(--navy-2); }

/* ---------- Events / schedule ---------- */
.timeline { max-width: 820px; margin: 0 auto; display: grid; gap: 20px; }
.event { display: grid; grid-template-columns: 96px 1fr; gap: 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.event .date { text-align: center; border-right: 1px solid var(--border); padding-right: 18px; }
.event .date .mon { color: var(--red); font-weight: 700; text-transform: uppercase; font-size: 0.82rem; letter-spacing: .05em; }
.event .date .day { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.event .date .yr { color: var(--muted); font-size: 0.82rem; }
.event h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.2rem; }
.event .when { color: var(--muted); font-size: 0.92rem; margin: 0 0 10px; }
.event .speaker { display: inline-flex; align-items: center; gap: 8px; background: #f3f0e3; color: #6e5a14; border-radius: 999px; padding: 5px 12px; font-size: 0.86rem; font-weight: 600; margin-bottom: 10px; }
.event p { margin: 0; color: var(--muted); }
.event-image { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 8px; margin: 10px 0; border: 1px solid var(--border); }

.notice { background: #fff8e8; border: 1px solid #ecd9a3; color: #6e5a14; border-radius: var(--radius); padding: 16px 20px; max-width: 820px; margin: 0 auto 30px; }
.submit-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: #eef2f7; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 0 auto 30px; max-width: 820px; }
.submit-cta strong { color: var(--navy); display: block; }
.submit-cta span { color: var(--muted); font-size: 0.92rem; }
.submit-cta .btn { flex: none; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; text-align: center; padding: 42px 0; }
.cta-band h2 { font-size: 2rem; margin: 0 0 12px; }
.cta-band p { color: #c7d3e3; max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn { background: var(--red); color: #fff; border-color: var(--red); }
.cta-band .btn:hover { background: var(--red-dark); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- Donate ---------- */
.donate-box { background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 28px; max-width: 560px; margin: 30px auto 0; }
.btn-lg { font-size: 1.1rem; padding: 15px 34px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; max-width: 860px; margin: 0 auto; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow); text-align: center; }
.contact-ico { font-size: 2rem; margin-bottom: 10px; }
.contact-card h3 { color: var(--navy); margin: 0 0 8px; font-size: 1.1rem; }
.contact-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.contact-card a { color: var(--navy-2); word-break: break-word; }

/* ---------- Resource directory (Where to Find Help) ---------- */
.res-group { color: var(--navy); font-size: 1.2rem; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.res-group:first-of-type { margin-top: 8px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 8px; }
.res-card { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.res-card h4 { color: var(--navy); margin: 0 0 8px; font-size: 1.02rem; }
.res-card p { margin: 0 0 6px; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.res-card p:last-child { margin-bottom: 0; }
.res-card a { color: var(--navy-2); word-break: break-word; }

/* ---------- Funders ---------- */
.funders { padding: 40px 0 44px; background: #fff; border-top: 1px solid var(--border); text-align: center; }
.funders-label { text-transform: uppercase; letter-spacing: .1em; font-size: 0.78rem; font-weight: 700; color: var(--muted); margin: 0 0 20px; }
.funders-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.funders-logos img { height: 62px; width: auto; opacity: .85; transition: opacity .15s ease; }
.funders-logos a:hover img { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aab9cc; padding: 40px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.site-footer a { color: #cdd8e6; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 0.85rem; text-align: center; }
.footer-bottom a { display: inline; color: var(--gold); padding: 0; }
.partners { color: #8ea2bd; font-size: 0.85rem; }
.footer-flag { width: 150px; margin-top: 18px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.12); }
.empty { color: var(--muted); text-align: center; padding: 30px 0; font-style: italic; }

/* ====================================================================
   ADMIN
   ==================================================================== */
.admin { background: #eef1f5; }
.admin-bar { background: var(--navy); color: #fff; }
.admin-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; gap: 12px; }
.admin-title { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.admin-title img { height: 30px; width: auto; background: #fff; border-radius: 5px; padding: 3px; }

/* dashboard cards */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.dash-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: box-shadow .15s ease, transform .15s ease; }
.dash-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.dash-icon { font-size: 2rem; line-height: 1; flex: none; }
.dash-body h3 { margin: 0 0 4px; color: var(--navy); }
.dash-body p { margin: 0 0 10px; color: var(--muted); font-size: 0.92rem; }
.dash-count { display: inline-block; background: #eef2f7; color: var(--navy-2); font-weight: 700; font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; }

/* leadership cards */
.card.person { text-align: center; }
.person-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; border: 3px solid var(--border); }
.person-photo.logo-placeholder { display: grid; place-items: center; font-size: 2.4rem; border: none; }
.person-role { color: var(--red); font-weight: 700; margin: 0 0 10px; font-size: 0.95rem; }

/* leadership preview row (About page) */
.leaders-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 30px; }
.leader-chip { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; width: 130px; }
.leader-chip img, .leader-chip .leader-ph { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); margin-bottom: 10px; transition: border-color .15s ease, transform .15s ease; }
.leader-chip .leader-ph { display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.8rem; border: none; }
.leader-chip:hover img { border-color: var(--red); transform: translateY(-2px); }
.leader-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; line-height: 1.25; }
.leader-role { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

/* calendar */
.calendar { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; max-width: 880px; margin: 0 auto; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-nav h2 { margin: 0; color: var(--navy); font-size: 1.3rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekdays { margin-bottom: 6px; }
.cal-wd { text-align: center; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 4px 0; }
.cal-cell { min-height: 78px; border: 1px solid var(--border); border-radius: 8px; padding: 5px; background: #fbfcfe; overflow: hidden; }
.cal-empty { background: transparent; border: none; }
.cal-day { font-weight: 700; font-size: 0.82rem; color: var(--navy); }
.cal-today { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.cal-has { background: #fff; }
.cal-event { display: block; background: var(--navy-2); color: #fff; font-size: 0.68rem; line-height: 1.2; padding: 2px 5px; border-radius: 4px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.cal-event { text-decoration: none; cursor: pointer; }
a.cal-event:hover { background: var(--navy); }
button.cal-event { width: 100%; text-align: left; border: 0; font-family: inherit; cursor: pointer; }
button.cal-event:hover { background: var(--navy); }
button.cal-event.has-flyer { background: var(--navy); }

/* ---------- Event popup ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,37,69,.55); }
.modal-card { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 26px 26px 30px; }
.modal-x { position: absolute; top: 8px; right: 14px; background: none; border: 0; font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-x:hover { color: var(--navy); }
.modal-card h3 { color: var(--navy); margin: 0 24px 8px 0; font-size: 1.4rem; }
.modal-meta { color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.modal-speaker { color: var(--navy-2); margin: 0 0 12px; font-weight: 600; }
.modal-flyer { display: block; width: 100%; border-radius: 8px; border: 1px solid var(--border); margin: 6px 0 14px; }
.modal-desc { margin: 6px 0 0; line-height: 1.55; color: var(--text); }

/* ---------- Admin: pending-review alert ---------- */
.review-alert { display: flex; gap: 14px; align-items: flex-start; background: #fff7e6; border: 1px solid #f0d9a0; border-radius: 12px; padding: 16px 20px; margin: 0 0 24px; }
.review-bell { font-size: 1.5rem; line-height: 1.2; }
.review-alert strong { color: #7a5b00; display: block; }
.review-links { margin-top: 6px; display: flex; gap: 18px; flex-wrap: wrap; }
.review-links a { color: var(--navy); font-weight: 600; text-decoration: none; }
.review-links a:hover { text-decoration: underline; }

/* logo thumbnails / previews in admin */
.logo-thumb { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); background: #fff; padding: 3px; display: inline-block; vertical-align: middle; }
.logo-thumb.logo-placeholder { display: inline-grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; }
.logo-preview { display: block; margin: 6px 0; }
.logo-preview img { max-width: 140px; max-height: 90px; border: 1px solid var(--border); border-radius: 8px; padding: 4px; background: #fff; }
.admin-bar nav { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-bar nav a { color: #cdd8e6; text-decoration: none; padding: 7px 11px; border-radius: 6px; }
.admin-bar nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.admin-bar nav a.is-active { color: #fff; background: var(--navy-2); }
.admin-bar .logout { color: var(--gold); }
.admin-nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 38px; padding: 9px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 8px; cursor: pointer; }
.admin-nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.admin-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.admin-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.admin-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.admin-main { padding: 28px 20px 60px; }
.admin-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.admin-head-row h1 { color: var(--navy); margin: 0; }

.flash { background: #e7f6ec; border: 1px solid #b7e0c4; color: #1c6b3a; padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; }
.error { background: #fbe9eb; border: 1px solid #e4b9bf; color: var(--red); padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }

.data-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table th { background: #f7f9fc; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.data-table tr:last-child td { border-bottom: none; }
.data-table a { color: var(--navy-2); word-break: break-all; }
.actions-col { white-space: nowrap; }
.muted { color: var(--muted); }
.inline { display: inline; }
.pill { font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pill-on { background: #e7f6ec; color: #1c6b3a; }
.pill-off { background: #f0f0f0; color: #888; }
.pill-pending { background: #fff3d6; color: #8a6b12; }
.btn-approve { background: #1c6b3a; color: #fff; border-color: #1c6b3a; }
.btn-approve:hover { background: #155029; color: #fff; }

.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); max-width: 760px; }
.form-card label { display: block; margin-bottom: 16px; font-weight: 600; color: var(--navy); }
.form-card input[type=text], .form-card input[type=email], .form-card input[type=tel], .form-card input[type=url], .form-card input[type=number], .form-card input[type=password], .form-card input[type=date], .form-card input[type=time], .form-card input[type=search], .form-card textarea {
    display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; font-family: inherit; font-weight: 400; }
.form-card textarea { resize: vertical; }
.form-card input[type=file] { display: block; margin-top: 6px; font-size: 0.9rem; }
.form-card small.muted { display: block; font-weight: 400; margin-top: 4px; }
.field-group { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px 4px; margin-bottom: 16px; }
.field-group legend { font-weight: 700; color: var(--navy); padding: 0 6px; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }
.req { color: var(--red); }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: var(--card); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 360px; text-align: center; }
.login-box img { width: 64px; height: 64px; margin-bottom: 8px; }
.login-box h1 { color: var(--navy); margin: 0 0 18px; font-size: 1.4rem; }
.login-box label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 14px; text-align: left; }
.login-box input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; }
.login-box .btn { width: 100%; margin-top: 6px; }

@media (max-width: 820px) {
    .welcome { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 760px) {
    .header-inner { flex-wrap: wrap; padding: 8px 16px; gap: 10px; }
    .brand { order: 1; }
    .brand-logo { height: 64px; }
    .header-donate { order: 2; margin-left: auto; }
    .nav-toggle { display: flex; order: 3; }
    .site-nav { order: 4; flex-basis: 100%; margin-left: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 4px; border-top: 1px solid var(--border); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 12px; font-size: 1rem; }
    .site-nav .btn-join { text-align: center; margin-top: 4px; }
    .admin-bar-inner { flex-wrap: wrap; }
    .admin-title { order: 1; }
    .admin-nav-toggle { display: flex; order: 2; margin-left: auto; }
    .admin-bar nav { order: 3; flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 10px; }
    .admin-bar nav.is-open { display: flex; }
    .admin-bar nav a { padding: 11px 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .event { grid-template-columns: 70px 1fr; gap: 14px; }
    .form-row { grid-template-columns: 1fr; }
    .cal-cell { min-height: 52px; padding: 3px; }
    .cal-event { font-size: 0; padding: 3px; margin-top: 2px; }
    .cal-event::before { content: "•"; font-size: 0.8rem; }
}
