/* =========================================================
   Jalalabad Thana Trust UK – soft style
   Colours are set once here. Change them to change the whole site.
   ========================================================= */
:root {
  /* Main colours – change these to re-colour the whole website */
  --navy: #1E2B47;
  --navy-2: #2A3A5C;
  --coral: #D6553C;
  --coral-dark: #BC4430;
  --coral-soft: #FBE7E1;
  --teal: #2F8F80;
  --teal-soft: #E0F1EE;
  --gold: #E3A93F;
  --gold-soft: #FBF1DC;
  --violet-c: #6B5BD2;

  --bg: #F6F6F9;
  --panel: #FFFFFF;
  --ink: #1E2B47;
  --ink-2: #3A4766;
  --muted: #5D6780;
  --line: #E6E5EE;
  --soft: #F1F0F6;
  --soft-2: #F7F7FA;
  --green: #D6553C;      /* old name kept so older pages still work: main action colour */
  --green-2: #2F8F80;
  --saffron: #E3A93F;
  --brick: #D6553C;
  --danger: #B23A1C;
  --lav: #F1F0F8;
  --cream: #FBF1DC;
  --mint: #E0F1EE;
  --pink: #FBE7E1;
  --violet: #ECEAFB;
  --sky: #E8EFF8;
  --radius: 18px;
  --shadow: 0 30px 60px -36px rgba(30, 43, 71, .45);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--coral); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; font-family: var(--display); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* ---------- Layout ---------- */
.page { padding: 24px 16px 48px; min-height: 60vh; }
.shell {
  max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start;
}
.public-shell { max-width: 1000px; margin: 0 auto; }
.main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar h1 { flex: 1 1 200px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid-wide { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-name { font-weight: 900; font-size: 15px; line-height: 1.15; }
.brand-tag { font-weight: 700; font-size: 13px; color: var(--brick); }
.me-card { display: flex; gap: 12px; align-items: center; background: var(--soft-2); border-radius: 20px; padding: 12px; color: var(--ink); }
.me-card:hover { text-decoration: none; background: var(--soft); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; min-height: 46px; border-radius: 14px;
  color: var(--ink-2); font-weight: 700;
}
.nav a:hover { background: var(--soft); text-decoration: none; }
.nav a.active { background: var(--panel); color: var(--coral); box-shadow: 0 2px 10px rgba(30,43,71,.08); }
.nav svg { width: 19px; height: 19px; flex: none; }
.nav .label { flex: 1; }
.count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--saffron); color: var(--ink);
  font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center;
}
.nav a.active .count { background: #fff; }

/* Mobile top bar and bottom menu */
.mobile-bar, .bottom-nav, .mobile-only { display: none; }

/* ---------- Cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.white { background: var(--panel); border: 1.5px solid var(--line); }
.card.lav { background: var(--lav); } .card.cream { background: var(--cream); } .card.mint { background: var(--mint); }
.card.pink { background: var(--pink); } .card.violet { background: var(--violet); } .card.sky { background: var(--sky); }
.card.green { background: var(--green); color: #fff; }
.card.green .muted { color: #CFE6DA; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }

.hero { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.hero .text { flex: 1 1 240px; }

/* ---------- Avatars ---------- */
.avatar {
  width: 44px; height: 44px; border-radius: 999px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; border: 3px solid #fff; overflow: hidden; background: var(--lav); color: var(--ink);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: 11px; border-width: 2px; }
.avatar.lg { width: 96px; height: 96px; font-size: 28px; border-width: 5px; }
.avatar.xl { width: 120px; height: 120px; font-size: 34px; border-width: 5px; }
.av-lav { background: var(--lav); } .av-cream { background: var(--cream); } .av-mint { background: var(--mint); }
.av-pink { background: var(--pink); } .av-violet { background: var(--violet); } .av-sky { background: var(--sky); }
.av-dark { background: var(--ink); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 11px 20px; min-height: 46px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  background: var(--navy); color: #fff; text-decoration: none; line-height: 1.1; border-radius: 12px;
  position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 24px -14px rgba(30,43,71,.7); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .rip { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .22; animation: rip .6s var(--ease) forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(4); opacity: 0; } }
.btn.green, .btn.coral { background: var(--coral); box-shadow: 0 8px 18px -12px rgba(214,85,60,.9); }
.btn.green:hover, .btn.coral:hover { background: var(--coral-dark); }
.btn.saffron { background: var(--saffron); color: var(--ink); }
.btn.outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.outline:hover { border-color: var(--ink); }
.btn.soft { background: var(--soft); color: var(--ink); }
.btn.white { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--soft); box-shadow: none; transform: none; }
.btn.danger { background: #FFF4F1; color: #9A2B17; border: 1.5px solid #F2C4BC; }
.btn.sm { padding: 8px 14px; min-height: 38px; font-size: 13.5px; border-radius: 10px; }
.btn.lg { min-height: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.block { width: 100%; }
.btn svg { width: 17px; height: 17px; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 999px; border: 0; background: var(--soft); display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; position: relative; color: var(--ink);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .count { position: absolute; top: 4px; right: 2px; border: 2px solid #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 900; background: var(--soft); }
.pill.dark { background: var(--ink); color: #fff; }
.pill.mint { background: var(--mint); color: var(--green-2); }
.pill.cream { background: #FBE3CF; color: #8A4B1A; }
.pill.pink { background: var(--pink); color: #7A1F3D; }
.inline { display: inline; margin: 0; }

/* ---------- Forms ---------- */
form { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 14px; font-weight: 700; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password],
.field input[type=number], .field input[type=url], .field input[type=search], .field input[type=datetime-local],
.field input[type=time], .field select, .field textarea, .input {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 54px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--coral); outline: none; box-shadow: 0 0 0 4px var(--coral-soft); }
.field .help { font-size: 13px; color: var(--muted); font-weight: 600; }
.field .errors, .form-errors { color: var(--danger); font-size: 14px; font-weight: 800; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 14px; cursor: pointer; font-size: 14px; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--green); flex: none; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.phone-row { display: flex; gap: 8px; }
.phone-row input { flex: 1; min-width: 0; }
.dial {
  flex: none; min-width: 72px; display: flex; align-items: center; justify-content: center;
  background: var(--mint); color: var(--green); border-radius: 14px; font-weight: 900; padding: 0 12px;
}
.code-input { font-size: 30px !important; font-weight: 900 !important; letter-spacing: .5em; text-align: center; }

/* Segmented switch (Mobile / Email, Upcoming / Past) */
.segment { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; gap: 2px; }
.segment a, .segment button, .segment label {
  border: 0; background: transparent; border-radius: 999px; padding: 10px 18px; min-height: 42px; font: inherit;
  font-size: 14px; font-weight: 900; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center;
}
.segment .on, .segment input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(30,43,71,.14); }
.segment a:hover { text-decoration: none; }
.segment label { padding: 0; }
.segment label span { padding: 10px 18px; border-radius: 999px; display: inline-block; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }

/* Choice cards (donation purpose, meeting app, report reason) */
.choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.choice { position: relative; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 11px 12px; cursor: pointer; min-height: 56px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--coral); background: var(--coral-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--saffron); }
.choice b { font-size: 14px; }
.choice span { font-size: 12px; color: var(--muted); font-weight: 700; }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice-list label { display: flex; gap: 12px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 700; cursor: pointer; }
.choice-list input { width: 20px; height: 20px; accent-color: var(--ink); }
.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.amounts button { border: 2px solid var(--line); background: #fff; border-radius: 18px; padding: 14px 4px; min-height: 58px; font: inherit; font-size: 17px; font-weight: 900; cursor: pointer; color: var(--ink); }
.amounts button.on { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ---------- Posts ---------- */
.composer { background: var(--soft); border-radius: 24px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.composer textarea { width: 100%; border: 0; background: #fff; border-radius: 18px; padding: 12px 16px; font: inherit; font-size: 15px; resize: vertical; min-height: 48px; }
.composer .file-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink-2); cursor: pointer; padding: 10px; }
.composer input[type=file] { font-size: 13px; max-width: 220px; }
.post { border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.post { background: var(--panel); border: 1px solid var(--line); }
.post.pinned { background: var(--cream); border-color: transparent; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-head .who { flex: 1; min-width: 0; }
.post-head .who a { color: var(--ink); }
.post-text { font-size: 16px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.post-photo { border-radius: 20px; overflow: hidden; max-height: 480px; }
.post-photo img { width: 100%; height: 100%; object-fit: cover; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.act { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--soft); color: var(--ink-2); border-radius: 999px; padding: 9px 14px; min-height: 40px; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; list-style: none; }
.act::-webkit-details-marker { display: none; }
.act svg { width: 16px; height: 16px; }
.act.liked { background: var(--coral-soft); color: var(--coral-dark); }
.act.liked svg { fill: var(--coral); stroke: var(--coral-dark); }
details.comments > summary { list-style: none; }
details.comments[open] > summary { background: #fff; }
.comment-box { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,.75); border-radius: 18px; padding: 12px; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment .bubble { background: #fff; border-radius: 14px; padding: 8px 12px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; font: inherit; font-size: 14px; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: 50px; z-index: 20; min-width: 220px; background: #fff; border-radius: 18px; box-shadow: 0 20px 40px -12px rgba(40,36,70,.35); padding: 8px; display: flex; flex-direction: column; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; border-radius: 12px; padding: 12px; min-height: 44px; font: inherit; font-size: 14px; font-weight: 800; color: var(--ink); text-align: left; cursor: pointer; width: 100%; }
.menu-list a:hover, .menu-list button:hover { background: var(--soft); text-decoration: none; }
.menu-list .danger { color: var(--danger); }

/* ---------- Lists ---------- */
.list-item { display: flex; align-items: center; gap: 12px; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .name { font-weight: 800; font-size: 15px; color: var(--ink); }
.date-tile { width: 54px; flex: none; text-align: center; border-radius: 14px; background: #fff; padding: 6px 0; line-height: 1.1; }
.date-tile .d { font-size: 11px; font-weight: 900; color: var(--muted); text-transform: uppercase; }
.date-tile .n { font-size: 20px; font-weight: 900; }
.link-row { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.85); border-radius: 14px; padding: 6px 6px 6px 10px; }
.link-row .url { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; flex: none; }
.app-badge i { width: 22px; height: 22px; border-radius: 7px; color: #fff; font-style: normal; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.app-zoom i { background: #2D6CDF; } .app-meet i { background: #1E7E45; }
.member-card { border-radius: 24px; padding: 18px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.member-card:nth-child(6n+1) { background: var(--lav); } .member-card:nth-child(6n+2) { background: var(--cream); }
.member-card:nth-child(6n+3) { background: var(--mint); } .member-card:nth-child(6n+4) { background: var(--pink); }
.member-card:nth-child(6n+5) { background: var(--violet); } .member-card:nth-child(6n) { background: var(--sky); }
.member-card .name { font-weight: 900; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 900; }
.chips a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips a:hover { text-decoration: none; }
.leader { border-radius: 28px; padding: 24px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.leader:nth-child(3n+1) { background: var(--lav); } .leader:nth-child(3n+2) { background: var(--cream); } .leader:nth-child(3n) { background: var(--mint); }
.silhouette { width: 100%; height: 100%; }
.stat { border-radius: 22px; padding: 16px; }
.stat .k { font-size: 13px; font-weight: 800; }
.stat .v { font-size: 30px; font-weight: 900; }
.empty { background: var(--soft-2); border-radius: 22px; padding: 26px; text-align: center; color: var(--muted); font-weight: 800; }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--soft-2); border-radius: 16px; padding: 12px 14px; font-size: 14px; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice { display: flex; align-items: center; gap: 14px; border-radius: 20px; padding: 14px 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); }
.notice.unread { background: var(--violet); border-color: transparent; }
.notice:hover { text-decoration: none; }
.notice .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--saffron); flex: none; }
.table-wrap { overflow-x: auto; }
table.simple { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.simple th, table.simple td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
table.simple th { font-weight: 900; background: var(--soft); }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.prose h2 { margin-top: 10px; }

/* ---------- Auth pages ---------- */
.auth { display: flex; flex-wrap: wrap; background: var(--panel); border-radius: 36px; box-shadow: var(--shadow); overflow: hidden; }
.auth .side { flex: 1 1 360px; background: var(--lav); padding: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.auth .form-side { flex: 1 1 380px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.badge-logo { width: 200px; height: 200px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: calc(100% - 32px); }
.toast { background: var(--navy); color: #fff; border-radius: 12px; padding: 13px 22px; font-size: 15px; font-weight: 800; box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); display: flex; gap: 10px; align-items: center; transition: opacity .4s, transform .4s; }
.toast.error { background: #8A2B17; } .toast.warning { background: #7A4B0E; }
.toast.hide { opacity: 0; transform: translateY(10px); }

/* =========================================================
   NEW DESIGN PARTS
   ========================================================= */
.gut { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.inner { max-width: 1180px; margin: 0 auto; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.h-display { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.h-section { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
.lift { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 28px 44px -32px rgba(30,43,71,.6); }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.icon-tile svg { width: 22px; height: 22px; }
.g2 { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section { padding-block: 80px; }
.section.band { background: var(--soft-2); }
.pagehead { padding-block: 64px 56px; }
.pagehead .inner { display: grid; gap: 12px; }

/* ---------- Top bar (every page) ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--line); }
.site-head .inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; min-height: 76px; }
.site-head .brand-badge .badge-logo { width: 50px; height: 50px; }
.site-head .brand-name { font-family: var(--display); font-size: 17px; font-weight: 700; }
.site-head .brand-tag { color: var(--teal); font-size: 12px; font-weight: 600; }
.topnav { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.topnav a { padding: 10px 14px; font-weight: 600; font-size: 15px; color: var(--ink); position: relative; border-radius: 10px; }
.topnav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--coral); transform: scaleX(0); opacity: 0; transition: transform .3s var(--ease), opacity .3s; }
.topnav a:hover { color: var(--coral); text-decoration: none; }
.topnav a:hover::after, .topnav a.on::after { transform: scaleX(1); opacity: 1; }
.topnav a.on { color: var(--coral); }
.head-actions { display: flex; gap: 8px; align-items: center; }
.head-actions .avatar { width: 40px; height: 40px; }

/* ---------- Home ---------- */
.hero-band { background: radial-gradient(1200px 500px at 85% -10%, var(--coral-soft), transparent 60%), linear-gradient(180deg, var(--lav), #fff); }
.hero-band .inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-block: 72px 64px; }
.mark { background: linear-gradient(transparent 64%, var(--gold) 64%, var(--gold) 90%, transparent 90%); }
.facts { display: flex; gap: 36px; flex-wrap: wrap; }
.facts strong { display: block; font-family: var(--display); font-size: 30px; line-height: 1; }
.facts span { font-size: 14px; color: var(--muted); }
.hero-badge { border-radius: 28px; background: radial-gradient(circle at 50% 45%, #fff 0, #F6F1E7 70%); display: grid; place-items: center; padding: 6%; aspect-ratio: 5 / 4; box-shadow: 0 44px 70px -50px rgba(30,43,71,.7); }
.hero-badge .badge-logo { width: min(100%, 380px); height: auto; filter: drop-shadow(0 24px 30px rgba(15,76,58,.25)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.aim { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.aim .n { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--coral); width: 34px; padding-top: 2px; }
.aim h3 { font-size: 18px; }

/* ---------- Live world clock ---------- */
.clock { background: var(--navy); color: #fff; border-radius: 22px; padding: 22px 26px; box-shadow: 0 30px 50px -36px rgba(30,43,71,.8); }
.clock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.clock-head strong { font-family: var(--display); font-size: 18px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #9FE3D6; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ED1B8; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }
.zones { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.zone { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 14px; display: grid; gap: 2px; }
.zone.home { background: rgba(214,85,60,.22); border-color: rgba(214,85,60,.45); }
.zone .place { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #C7CEDC; display: flex; align-items: center; gap: 6px; }
.zone .t { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.zone .t small { font-size: 14px; opacity: .6; margin-left: 2px; }
.zone .d { font-size: 12.5px; color: #C7CEDC; }
.clock.mini { padding: 18px; border-radius: 18px; }
.clock.mini .zones { grid-template-columns: 1fr; gap: 0; }
.clock.mini .zone { background: none; border: 0; border-top: 1px solid rgba(255,255,255,.1); border-radius: 0; padding: 9px 0; grid-template-columns: 1fr auto; align-items: center; }
.clock.mini .zone:first-child { border-top: 0; }
.clock.mini .zone .t { font-size: 19px; grid-row: 1 / 3; grid-column: 2; }

/* ---------- Committee ---------- */
.person { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); text-align: center; display: grid; gap: 8px; justify-items: center; font: inherit; }
.person .avatar { transition: transform .3s var(--ease); }
.person:hover .avatar { transform: scale(1.04); }
.officer { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; }
dialog.profile { border: 0; border-radius: 22px; padding: 0; width: min(440px, calc(100% - 32px)); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
dialog.profile::backdrop { background: rgba(17,26,44,.55); backdrop-filter: blur(3px); }
dialog.profile .cover { height: 110px; background: linear-gradient(120deg, var(--coral-soft), var(--gold-soft) 50%, var(--teal-soft)); }
dialog.profile .body { padding: 0 26px 26px; margin-top: -48px; display: grid; gap: 10px; }

/* ---------- Online Learning ---------- */
.tabs { display: inline-flex; gap: 4px; background: var(--soft); padding: 5px; border-radius: 14px; flex-wrap: wrap; }
.tabs a { border-radius: 10px; min-height: 44px; padding: 0 18px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -4px rgba(30,43,71,.2); }
.tabs svg { width: 18px; height: 18px; }
.course { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.course .top { padding: 22px 22px 16px; display: grid; gap: 8px; }
.course details { border-top: 1px solid var(--line); }
.course summary { padding: 14px 22px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.course summary::-webkit-details-marker { display: none; }
.course summary::after { content: "⌄"; font-size: 18px; transition: transform .3s; }
.course details[open] summary::after { transform: rotate(180deg); }
.course ol { margin: 0; padding: 0 22px 16px 44px; display: grid; gap: 6px; color: var(--muted); }
.course .foot { padding: 0 22px 20px; margin-top: auto; }
.thumb { aspect-ratio: 16 / 9; border-radius: 14px; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--teal-soft) center / cover no-repeat; }
.play { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; transition: transform .25s var(--ease); box-shadow: 0 8px 20px -8px rgba(0,0,0,.35); }
.lecture:hover .play { transform: scale(1.12); }
.lecture { display: grid; gap: 10px; color: var(--ink); }
.lecture:hover { text-decoration: none; }
.len { position: absolute; right: 10px; bottom: 10px; background: rgba(30,43,71,.85); color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }

/* ---------- Donate ---------- */
.notice-box { border-radius: 16px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.notice-box svg { width: 22px; height: 22px; flex: none; }
.cause-card { display: grid; gap: 6px; color: var(--ink); border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.cause-card:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -28px rgba(30,43,71,.6); text-decoration: none; }
.cause-card.on { border-color: var(--coral); background: var(--coral-soft); }
.bar { height: 8px; border-radius: 99px; background: rgba(30,43,71,.1); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--coral), var(--gold)); }
.pay { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: 13px; background: #fff; }

/* ---------- Member area ---------- */
.sidebar .nav a { color: var(--ink); }
.sidebar .nav .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); flex: none; }
.sidebar .nav a.active .ico { background: var(--coral-soft); }
.invite-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.invite-pick label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 12px 4px 4px; font-weight: 600; font-size: 14px; cursor: pointer; }
.invite-pick label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.invite-pick input { position: absolute; opacity: 0; pointer-events: none; }
.vis-pick { display: inline-flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 12px; flex-wrap: wrap; }
.vis-pick label { cursor: pointer; }
.vis-pick span { display: inline-block; padding: 9px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); }
.vis-pick input { position: absolute; opacity: 0; pointer-events: none; }
.vis-pick input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(30,43,71,.14); }
.when-tile { text-align: center; border-radius: 14px; padding: 10px 12px; min-width: 76px; background: var(--sky); }
.when-tile small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--coral); }
.when-tile strong { display: block; font-family: var(--display); font-size: 18px; line-height: 1.2; }

/* ---------- Footer ---------- */
.site-foot { background: var(--navy); color: #C7CEDC; font-size: 14px; }
.site-foot .inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-block: 52px 26px; }
.site-foot strong { color: #fff; display: block; margin-bottom: 10px; }
.site-foot a { display: block; color: inherit; padding: 3px 0; font-weight: 500; }
.site-foot a:hover { color: #fff; }
.site-foot .base { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot .badge-logo { width: 64px; height: 64px; margin-bottom: 12px; }

/* ---------- Tablets ---------- */
@media (max-width: 1100px) {
  .two-col { grid-template-columns: 1fr; }
  .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .site-head .inner { grid-template-columns: 1fr auto; row-gap: 4px; padding-bottom: 12px; }
  .topnav { grid-column: 1 / -1; order: 3; justify-content: flex-start; gap: 8px; }
  .topnav a { background: var(--soft); border-radius: 99px; padding: 8px 14px; font-size: 14px; }
  .topnav a::after { display: none; }
  .topnav a.on { background: var(--coral); color: #fff; }
  .shell { grid-template-columns: 1fr; gap: 18px; }
  .sidebar { position: static; }
  .sidebar .nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .sidebar .nav a { min-height: 40px; padding: 6px 12px 6px 6px; background: #fff; border: 1px solid var(--line); border-radius: 99px; }
  .sidebar .nav .ico { width: 28px; height: 28px; }
  .sidebar .me-card, .sidebar .side-extra { display: none; }
  .mobile-only { display: block; margin-top: 12px; }
  .head-actions .btn.sm:not(.coral):not(.ghost) span, .head-actions .avatar { display: inline-flex; }
}
/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .hero-band .inner, .g2, .split { grid-template-columns: 1fr !important; }
  .hero-band .inner { gap: 32px; padding-block: 44px; }
  .g3, .g4, .site-foot .inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: 56px; }
  .pagehead { padding-block: 44px 36px; }
  .page { padding: 16px 16px 40px; }
  h1 { font-size: 26px; }
  .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .g3, .g4, .site-foot .inner { grid-template-columns: 1fr; }
  .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone .t { font-size: 24px; }
  .site-head .brand-tag { display: none; }
  .site-head .brand-name { font-size: 15px; }
  .facts { gap: 24px; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .tabs a { flex-direction: column; gap: 4px; font-size: 12.5px; padding: 8px 4px; min-height: 62px; text-align: center; justify-content: center; line-height: 1.2; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* Logo sizes */
.auth .side .badge-logo { width: 150px; height: 150px; }
.site-head .badge-logo { flex: none; }
.public-shell { max-width: 1040px; }
.auth { border-radius: 28px; }
@media (max-width: 560px) {
  .site-head .badge-logo { width: 42px !important; height: 42px !important; }
  .head-actions .btn.sm { padding: 6px 10px; }
  .auth .side { display: none; }
  .auth .form-side { padding: 24px 18px; }
}
.cause-card:has(input:checked) { border-color: var(--coral); background: var(--coral-soft); box-shadow: 0 0 0 1px var(--coral) inset; }
.cause-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
a.card, a.cause-card { font-weight: 500; }
a.card:hover { text-decoration: none; }
@media (max-width: 560px) {
  .g4:has(> .person) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .person .avatar.xl { width: 96px; height: 96px; }
  .person strong { font-size: 16px !important; }
}
.card.hero .muted { color: #C7CEDC; }
/* clock: 12-hour time with AM/PM */
.zone .t em { font-style: normal; font-size: 12px; font-weight: 700; margin-left: 5px; opacity: .75; letter-spacing: .04em; }
.clock.mini .zone .t em { font-size: 10px; margin-left: 3px; }
.clock-note { font-size: 12.5px; color: #F2C566; margin: -6px 0 12px; }

/* =========================================================
   GALLERY, PHOTOS IN POSTS, VIEWER
   ========================================================= */
.mtile { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--soft); border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; isolation: isolate; }
.mtile img, .mtile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease), filter .3s; }
.mtile:hover img, .mtile:hover video { transform: scale(1.045); }
.mtile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.mtile video { background: #1b2233; }
.playmark { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(17,26,44,.62); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.playmark svg { margin-left: 3px; }
.moremark { position: absolute; inset: 0; background: rgba(17,26,44,.55); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 30px; font-weight: 700; }
.pubmark { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--teal); display: grid; place-items: center; }
.pubmark svg { width: 15px; height: 15px; }
.mtile.is-extra { display: none; }

.ggrid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.ggrid.home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ggrid.home .mtile:first-child { grid-column: span 2; grid-row: span 2; }
.mini-grid { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-grid .mtile { border-radius: 10px; }

/* Photos inside a News post, like Facebook */
.pgrid { display: grid; gap: 4px; border-radius: 16px; overflow: hidden; margin-inline: -2px; }
.pgrid .mtile { border-radius: 0; }
.pgrid.n1 .mtile { aspect-ratio: auto; max-height: 560px; }
.pgrid.n1 .mtile img { height: auto; max-height: 560px; object-fit: contain; background: var(--soft); }
.pgrid.n1 .mtile video { aspect-ratio: 16 / 9; height: auto; }
.pgrid.n2 { grid-template-columns: 1fr 1fr; }
.pgrid.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.pgrid.n3 .mtile:first-child { grid-row: span 2; aspect-ratio: auto; height: 100%; }
.pgrid.n4 { grid-template-columns: repeat(3, 1fr); }
.pgrid.n4 .mtile:first-child { grid-column: span 3; aspect-ratio: 16 / 9; }

/* Composer and upload */
.composer { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; gap: 12px; }
.composer-top { display: flex; gap: 12px; align-items: flex-start; }
.composer-top textarea { flex: 1; background: var(--soft-2); border: 1px solid var(--line); min-height: 52px; }
.composer-bar { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.composer .file-label { border-radius: 10px; color: var(--teal); font-weight: 700; }
.composer .file-label:hover { background: var(--teal-soft); }
.composer.over, .dropzone.over { outline: 2px dashed var(--coral); outline-offset: 4px; }
.previews { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.previews:empty { display: none; }
.previews.big { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.pv { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); animation: pop .3s var(--ease); }
.pv img, .pv video { width: 100%; height: 100%; object-fit: cover; }
.pv-tag { position: absolute; left: 6px; bottom: 6px; background: rgba(17,26,44,.7); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.pv-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(17,26,44,.72); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.dropzone { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 36px 20px; border: 2px dashed var(--line); border-radius: 20px; background: var(--soft-2); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover { border-color: var(--coral); background: var(--coral-soft); }
.progress { position: relative; height: 34px; border-radius: 10px; background: var(--soft); overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--teal), #4FB3A3); transition: width .2s; }
.progress span { position: relative; display: grid; place-items: center; height: 100%; font-size: 13px; font-weight: 700; }
.upload-errors { background: #FFF4F1; color: #9A2B17; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; display: grid; gap: 4px; }

/* Viewer */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10,14,24,.94); display: grid; grid-template-columns: 64px minmax(0,1fr) 64px; grid-template-rows: minmax(0,1fr) auto; animation: fade .25s var(--ease); padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
@keyframes fade { from { opacity: 0; } }
.lb-stage { grid-column: 2; grid-row: 1; display: grid; place-items: center; min-height: 0; padding: 56px 0 12px; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; border-radius: 8px; animation: pop .3s var(--ease); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-btn { border: 0; background: rgba(255,255,255,.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; align-self: center; justify-self: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); font-size: 28px; z-index: 2; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
.lb-bar { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 14px 20px 18px; color: #C7CEDC; }
.lb-info { display: grid; gap: 2px; min-width: 0; max-width: 70ch; font-size: 14px; }
.lb-info b { color: #fff; font-size: 15px; }
.lb-info a { color: #F2C566; }
.lb-info p { color: #fff; margin-top: 4px; }
.lb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lb-act { border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; border-radius: 99px; padding: 8px 16px; font: 600 13px var(--body); cursor: pointer; }
.lb-act:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.lb-act.danger { border-color: #F2A190; color: #FFC2B5; }
.item-stage { background: #0F1522; border-radius: 18px; overflow: hidden; display: grid; place-items: center; max-height: 78vh; }
.item-stage img, .item-stage video { max-width: 100%; max-height: 78vh; }

/* Chips */
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; }
.chip-link svg { width: 15px; height: 15px; }
.chip-link:hover { border-color: var(--ink); text-decoration: none; }
.chip-link.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-state { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 20px; background: var(--panel); border: 1px dashed var(--line); border-radius: 24px; }

/* =========================================================
   EVENTS
   ========================================================= */
.ev-cover { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--coral-soft), var(--gold-soft) 55%, var(--teal-soft)) center / cover no-repeat; overflow: hidden; }
.ev-cover-art { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: rgba(30,43,71,.16); font-family: var(--display); line-height: .9; }
.ev-cover-art b { font-size: 110px; font-weight: 800; }
.ev-cover-art small { font-size: 22px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ev-date { position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 12px; padding: 6px 10px; text-align: center; line-height: 1.05; box-shadow: 0 8px 20px -10px rgba(0,0,0,.4); color: var(--ink); }
.ev-date small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.ev-date b { font-family: var(--display); font-size: 22px; }
.ev-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); font-weight: 500; }
.ev-card:hover { text-decoration: none; }
.ev-card-body { display: grid; gap: 4px; padding: 16px 18px 18px; }
.ev-card-body b { font-family: var(--display); font-size: 18px; line-height: 1.25; }
.ev-card.past .ev-cover { aspect-ratio: 16 / 9; }
.ev-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; color: var(--ink); font-weight: 500; }
.ev-feature:hover { text-decoration: none; }
.ev-feature .ev-cover { aspect-ratio: auto; min-height: 320px; height: 100%; }
.ev-feature-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 4vw, 40px); justify-content: center; }
.ev-facts { display: grid; gap: 6px; color: var(--ink-2); font-weight: 600; }
.ev-facts span { display: flex; gap: 8px; align-items: center; }
.ev-facts svg { width: 18px; height: 18px; color: var(--coral); flex: none; }
.live-pill { background: var(--teal) !important; color: #fff !important; }
.ev-hero { min-height: clamp(260px, 38vw, 420px); border-radius: 28px; display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--navy), #33466F 60%, #5A3E5D) center / cover no-repeat; color: #fff; overflow: hidden; }
.ev-hero-text { padding: clamp(22px, 4vw, 44px); display: grid; gap: 12px; }
.ev-hero h1 { color: #fff; }
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.ev-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.ev-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.ev-text { font-size: 17px; max-width: 68ch; display: grid; gap: 12px; }
.ev-text p { margin: 0; }
.faces { display: flex; flex-wrap: wrap; gap: 4px; }
.event-mini { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink); font-weight: 500; transition: border-color .2s; }
.event-mini:hover { border-color: var(--coral); text-decoration: none; }
.event-mini > span:last-child { display: grid; gap: 2px; }
.cal { width: 58px; text-align: center; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; line-height: 1.1; }
.cal small { display: block; background: var(--coral); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 0; }
.cal b { display: block; font-family: var(--display); font-size: 24px; padding: 4px 0 6px; }

/* Admin money + members */
.money { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.money .stat-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 4px; }
.money .stat-box .v { font-family: var(--display); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.money .stat-box .k { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.status { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--soft); }
.status.paid { background: var(--teal-soft); color: #1F6B5F; }
.status.pending { background: var(--gold-soft); color: #8A5E0F; }
.status.failed, .status.cancelled { background: #FFF0EC; color: #9A2B17; }
.member-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.member-row:first-child { border-top: 0; }
table.simple td.num, table.simple th.num { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 1180px) {
  .site-head .inner { grid-template-columns: 1fr auto; row-gap: 4px; padding-bottom: 12px; }
  .topnav { grid-column: 1 / -1; order: 3; justify-content: flex-start; gap: 8px; }
  .topnav a { background: var(--soft); border-radius: 99px; padding: 8px 14px; font-size: 14px; }
  .topnav a::after { display: none; }
  .topnav a.on { background: var(--coral); color: #fff; }
}
@media (max-width: 980px) {
  .ev-layout { grid-template-columns: 1fr; }
  .ev-side { position: static; order: -1; }
  .ev-feature { grid-template-columns: 1fr; }
  .ev-feature .ev-cover { min-height: 220px; aspect-ratio: 16 / 9; }
  .money { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .ggrid .mtile { border-radius: 4px; }
  .ggrid.home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .lb { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; font-size: 24px; background: rgba(0,0,0,.35); }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-bar { padding: 12px 16px 16px; }
  .ev-cover-art b { font-size: 80px; }
}
.del-box { position: relative; }
.del-box summary { list-style: none; }
.del-box summary::-webkit-details-marker { display: none; }
.del-box[open] form { position: absolute; right: 0; top: 44px; z-index: 30; width: 260px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 20px 40px -16px rgba(30,43,71,.45); }
@media (max-width: 560px) { .member-row { grid-template-columns: auto minmax(0, 1fr); } .member-row > .row { grid-column: 1 / -1; justify-content: flex-start !important; } .del-box[open] form { left: 0; right: auto; } }
.composer .file-label { white-space: nowrap; }
.composer .file-label svg { width: 20px; height: 20px; }
.pill { white-space: nowrap; }
.lb { background: rgba(8,11,20,.97); backdrop-filter: blur(6px); }
.lb-stage img, .lb-stage video { max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); }
input[type=search].input, .field input[type=search] { -webkit-appearance: none; appearance: none; min-height: 44px; }

/* =========================================================
   SIMPLE LAYOUT (top menu + phone bottom bar)
   Works on every phone, tablet and computer.
   ========================================================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
main#main { flex: 1 0 auto; }
img, video, svg { max-width: 100%; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.member-main { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; padding-bottom: 48px; }
.public-main { padding-top: 28px; padding-bottom: 56px; }
.page-in { -webkit-animation: pageIn .45s var(--ease) both; animation: pageIn .45s var(--ease) both; }
@-webkit-keyframes pageIn { from { opacity: .001; -webkit-transform: translateY(12px); } }
@keyframes pageIn { from { opacity: .001; transform: translateY(12px); } }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* Top bar */
.top { position: -webkit-sticky; position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 68px; max-width: 1140px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.top .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; text-decoration: none; }
.top .brand .badge-logo { width: 46px; height: 46px; flex: none; transition: transform .5s var(--ease); }
.top .brand:hover .badge-logo { transform: rotate(-8deg) scale(1.05); }
.top .brand b { display: block; font-family: var(--display); font-size: 17px; line-height: 1.15; }
.top .brand small { display: block; font-size: 12px; color: var(--teal); font-weight: 600; }
.mainnav { display: flex; gap: 2px; margin-left: auto; }
.mainnav a { position: relative; padding: 10px 13px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; transition: color .2s, background .2s; white-space: nowrap; }
.mainnav a:hover { background: var(--bg); text-decoration: none; }
.mainnav a[aria-current="page"] { color: var(--coral); }
.mainnav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--coral); -webkit-transform: scaleX(0); transform: scaleX(0); transition: transform .35s var(--ease); }
.mainnav a[aria-current="page"]::after { -webkit-transform: scaleX(1); transform: scaleX(1); }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.iconbtn { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--bg); display: inline-grid; place-items: center; color: var(--ink); transition: background .2s, transform .2s var(--ease); flex: none; text-decoration: none; }
.iconbtn:hover { background: var(--line); text-decoration: none; }
.iconbtn:active { -webkit-transform: scale(.92); transform: scale(.92); }
.iconbtn svg { width: 20px; height: 20px; }
.me-btn { padding: 0; overflow: hidden; }
.me-btn .avatar { width: 42px; height: 42px; border-width: 2px; font-size: 13px; }
.dot { position: absolute; top: 6px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px #fff; }

/* Footer */
.foot { background: var(--navy); color: #C7CEDC; font-size: 14px; margin-top: 24px; }
.foot-in { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 26px max(18px, env(safe-area-inset-right, 0px)) 26px max(18px, env(safe-area-inset-left, 0px)); }
.foot b { color: #fff; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: #E2E6EF; font-weight: 600; }

@media (max-width: 560px) {
  .top-in { min-height: 60px; gap: 10px; }
  .top .brand .badge-logo { width: 40px; height: 40px; }
  .top .brand b { font-size: 15px; }
  .top .brand small { display: none; }
  .top-actions .btn.sm { padding: 0 12px; min-height: 40px; }
}
@media (max-width: 360px) {
  .is-visitor .top .brand > span { display: none; }
}

/* Touch screens: no "stuck" hover effects */
@media (hover: none) {
  .lift:hover, .btn:hover, .ev-card:hover, .cause-card:hover { -webkit-transform: none; transform: none; box-shadow: none; }
  .mtile:hover img, .mtile:hover video { -webkit-transform: none; transform: none; }
}
/* Phones: 16px text in boxes so iPhone does not zoom in */
@media (max-width: 900px) {
  input, select, textarea, .comment-form input, .composer textarea { font-size: 16px !important; }
}
/* Older browsers without :has() – same look via a class set by app.js */
.choice.is-checked { border-color: var(--coral); background: var(--coral-soft); }
.cause-card.is-checked { border-color: var(--coral); background: var(--coral-soft); }
.invite-pick label.is-checked { border-color: var(--teal); background: var(--teal-soft); }

/* Admin overview */
.admin-tabs { align-self: flex-start; flex-wrap: wrap; }
.admin-stats { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-box { display: grid; gap: 2px; color: var(--ink); font-weight: 500; text-decoration: none; }
a.stat-box:hover { text-decoration: none; border-color: var(--coral); }
.stat-box .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat-box .v { font-family: var(--display); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
.stat-box .d { font-size: 13px; color: var(--teal); font-weight: 600; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--body); fill: var(--muted); font-size: 12px; }
.chart text.strong { fill: var(--ink); font-weight: 700; }
.chart .grow { transform-origin: bottom; transform-box: fill-box; -webkit-animation: barup .9s var(--ease) both; animation: barup .9s var(--ease) both; }
@keyframes barup { from { transform: scaleY(0); } }
.chart .line { stroke-dasharray: 2000; stroke-dashoffset: 2000; -webkit-animation: draw 1.6s var(--ease) .2s forwards; animation: draw 1.6s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.report-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; color: var(--ink); font-weight: 500; text-decoration: none; }
.report-card:hover { text-decoration: none; }
.report-card > span:nth-child(2) { display: grid; gap: 2px; }
.report-card svg { width: 22px; height: 22px; color: var(--coral); }
.doc { width: 44px; height: 54px; border-radius: 8px; background: var(--coral-soft); color: var(--coral-dark); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.content-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-grid .card { display: grid; gap: 10px; color: var(--ink); font-weight: 500; text-decoration: none; }
.content-grid .card svg { width: 26px; height: 26px; color: var(--coral); }
@media (prefers-reduced-motion: reduce) { .chart .line { stroke-dashoffset: 0; } }
@media (max-width: 900px) { .admin-stats, .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .content-grid { grid-template-columns: 1fr; } .stat-box .v { font-size: 22px; } }

/* Clock strip (one line) and small clock */
.clock-strip { background: var(--navy); color: #fff; border-radius: 20px; padding: 14px 18px; display: grid; grid-template-columns: auto repeat(6, minmax(0, 1fr)); gap: 6px; align-items: center; }
.clock-strip .lbl { display: grid; gap: 2px; padding-right: 12px; font-size: 13px; }
.clock-strip .lbl b { font-family: var(--display); font-size: 15px; }
.clock-strip .zone, .clock-mini .zone { background: none; border: 0; border-radius: 0; display: grid; gap: 0; padding: 4px 12px; border-left: 1px solid rgba(255,255,255,.12); }
.clock-strip .zone .place, .clock-mini .zone .place { font-size: 11.5px; letter-spacing: .05em; }
.clock-strip .zone .t { font-size: 21px; }
.clock-strip .zone .d, .clock-mini .zone .d { display: none; }
.clock-strip .clock-note { grid-column: 1 / -1; margin: 6px 0 0; }
.clock-mini { background: var(--navy) !important; color: #fff; border: 0 !important; display: grid; gap: 4px; }
.clock-mini b { font-family: var(--display); }
.clock-mini .zone { border: 0; padding: 4px 0; grid-template-columns: 1fr auto; align-items: center; }
.clock-mini .zone .t { font-size: 18px; }
@media (max-width: 900px) {
  .clock-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .clock-strip .lbl { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 0 0 2px; }
  .clock-strip .zone:nth-child(2), .clock-strip .zone:nth-child(5) { border-left: 0; padding-left: 0; }
  .clock-strip .zone .place { font-size: 10.5px; letter-spacing: .02em; }
}

/* Calmer page headings (no big coloured bands) */
.pagehead .h-display, .h-display { font-size: clamp(32px, 5vw, 48px); }
.section { padding-block: 44px 60px; }

/* Simple home */
.hero-simple { padding-block: 48px 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 36px; align-items: center; }
.hero-txt { display: grid; gap: 18px; }
.hero-txt h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; }
.hero-txt mark { background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 90%, transparent 90%); color: inherit; }
.hero-logo { display: grid; place-items: center; }
.hero-logo .badge-logo { width: min(100%, 320px); height: auto; filter: drop-shadow(0 30px 34px rgba(15,76,58,.22)); -webkit-animation: floaty 6s ease-in-out infinite; animation: floaty 6s ease-in-out infinite; }
.home-sec { display: grid; gap: 14px; padding-top: 30px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sec-head h2 { font-size: 24px; }
.ggrid.home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ggrid.home .mtile:first-child { grid-column: span 2; grid-row: span 2; }
.join-band { background: var(--navy); color: #fff; border-radius: 22px; padding: 30px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.join-band h2 { font-size: 26px; color: #fff; }
.join-band p { opacity: .8; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-logo { order: -1; }
  .hero-logo .badge-logo { width: 170px; }
  .hero-simple { padding-block: 24px 18px; }
}
@media (max-width: 560px) {
  .ggrid.home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ggrid.home .mtile:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .join-band { padding: 24px; }
}
.grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-3 h3 { font-size: 18px; }
.aims { display: grid; padding: 6px 22px; }
.aim-row { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.aim-row:first-child { border-top: 0; }
.num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--coral-soft); color: var(--coral-dark); display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; }
.people { display: grid; gap: 24px 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.people .person strong { font-family: var(--display); font-size: 16px; }
@media (max-width: 700px) { .grid-3 { grid-template-columns: 1fr; } }
.people-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.person-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; }
.person-row .who { display: grid; color: var(--ink); min-width: 0; text-decoration: none; }
.person-row .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-menu { display: grid; padding: 8px; gap: 2px; }
.me-menu a, .me-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; min-height: 48px; border: 0; background: none; border-radius: 12px; color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; text-decoration: none; transition: background .2s; }
.me-menu a:hover, .me-menu button:hover { background: var(--bg); text-decoration: none; }
.me-menu svg { width: 20px; height: 20px; color: var(--coral); }
.me-menu span:first-of-type { flex: 1; }
.me-menu form button { color: var(--coral-dark); }
.member-main > *, .stack > *, .card { min-width: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.segment { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 560px) { .chart text { font-size: 19px; } }


/* =========================================================
   FULL LAYOUT (as in the preview PDF)
   Top menu for everyone + left menu in the member area.
   ========================================================= */
.top-in { max-width: 1240px; flex-wrap: wrap; column-gap: 16px; }
.mainnav { margin-left: auto; }
.btn.myarea { background: var(--navy); color: #fff; }
.wrap.shell { max-width: 1240px; padding-top: 26px; padding-bottom: 56px; }
.shell .main { gap: 20px; }
.me-card { border: 1px solid var(--line); background: var(--panel); }
.me-card b { display: block; font-family: var(--display); font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .nav form { margin: 0; }
.nav-out { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 11px 14px; min-height: 46px; border-radius: 14px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; text-align: left; }
.nav-out:hover { background: var(--soft); }
.sidebar .nav-out .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); flex: none; }
.nav svg, .nav-out svg { width: 18px; height: 18px; }
.sidebar .clock.mini .zone .d { font-size: 11.5px; }
.clock .clock-note { margin: -4px 0 12px; }
.site-foot { margin-top: 32px; }
.site-foot .foot-about span { display: block; max-width: 34ch; }
.site-foot .badge-logo { width: 60px; height: 60px; }

/* Home page parts */
.hero-band .lead { margin-top: 2px; }
.hero-band h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; }
.serve-card { display: grid; gap: 10px; align-content: start; color: var(--ink); font-weight: 500; }
.serve-card:hover { text-decoration: none; }
.serve-card .go { color: var(--coral); font-weight: 700; font-size: 14px; }
.mv-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.officers { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.about-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }

/* News page parts */
.meet-banner { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.meet-banner h2 { color: #fff; font-size: 21px; }
.meet-banner .small { color: #C7CEDC; }
.meet-banner .btn.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.support-card { background: var(--violet); border: 0; }

/* Tablets and phones: menus become buttons that wrap (nothing hidden) */
@media (max-width: 1180px) {
  .top-in { padding-bottom: 10px; row-gap: 2px; }
  .mainnav { order: 3; flex-basis: 100%; margin-left: 0; flex-wrap: wrap; gap: 8px; }
  .mainnav a { background: var(--soft); border-radius: 99px; padding: 7px 14px; font-size: 14px; }
  .mainnav a::after { display: none; }
  .mainnav a[aria-current="page"] { background: var(--coral); color: #fff; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 980px) {
  .wrap.shell { padding-top: 16px; }
  .sidebar .nav-out { min-height: 40px; padding: 6px 12px 6px 6px; background: #fff; border: 1px solid var(--line); border-radius: 99px; width: auto; color: var(--ink); }
  .sidebar .nav-out .ico { width: 28px; height: 28px; }
  .sidebar .nav a .count { margin-left: -4px; }
  .about-split { grid-template-columns: 1fr; gap: 28px; }
  .officers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .mainnav { gap: 6px; }
  .mainnav a { padding: 6px 12px; font-size: 13.5px; }
  .top-actions .iconbtn:first-child { display: none; }
  .btn.myarea { padding: 0 12px; }
  .officers { grid-template-columns: 1fr; }
  .meet-banner .row { width: 100%; }
}
/* small fixes */
.date-tile .d, .date-tile .n { display: block; }
.date-tile { background: #fff; }
.sidebar .nav { gap: 2px; }
.sidebar .nav a, .sidebar .nav-out { min-height: 44px; padding: 6px 12px; }
.top .brand { flex: 0 1 auto; min-width: 0; }
@media (max-width: 560px) {
  .top-in { flex-wrap: wrap; }
  .top .brand { flex: 1 1 0; }
  .top .brand b { font-size: 14.5px; line-height: 1.2; }
}

/* Slide in on scroll (added by app.js) */
.reveal { opacity: 0; -webkit-transform: translateY(18px); transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; -webkit-transform: none; transform: none; }
/* small icons inside text lines */
p > svg, .small > svg, .note > svg, li > svg { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; margin-right: 4px; }
/* Safety: any small icon without its own size stays small */
:where(svg[viewBox="0 0 24 24"]:not([width])) { width: 20px; height: 20px; flex: none; }
.menu-list svg { width: 18px; height: 18px; }

/* Sign up */
.pw-row { display: flex; gap: 8px; align-items: stretch; }
.pw-row input { flex: 1; min-width: 0; width: auto; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; }
.pw-row input:focus { border-color: var(--coral); outline: none; box-shadow: 0 0 0 4px var(--coral-soft); }
.pw-row .btn { min-width: 70px; }
.more-box { border: 1.5px dashed var(--line); border-radius: 14px; padding: 12px 14px; }
.more-box summary { cursor: pointer; font-weight: 700; color: var(--ink-2); list-style: none; }
.more-box summary::-webkit-details-marker { display: none; }
.more-box summary::before { content: "+ "; color: var(--coral); }
.more-box[open] summary::before { content: "− "; }

/* WhatsApp button (only shows when the admin adds the Trust's number) */
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }

.invite-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--teal-soft); border: 0; }
.join-link { display: inline-block; margin-top: 6px; background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 14px; word-break: break-all; color: var(--ink); }

/* =========================================================
   HOME – new look (split welcome, floating cards, tiles, team band)
   ========================================================= */
.home-hero { background: radial-gradient(900px 420px at 90% -10%, var(--teal-soft), transparent 60%), linear-gradient(180deg, #fff, var(--bg)); }
.hero2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 64px; align-items: center; padding-block: 56px 64px; }
.hero2-text { display: grid; gap: 20px; justify-items: start; }
.hero2-text h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.03; font-weight: 800; }
.hero2-text .hl { color: var(--teal); }
.tag-pill { background: var(--teal-soft); color: #1F6B5F; font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 99px; }
.hello-card { display: flex; gap: 14px; align-items: center; text-align: left; background: var(--navy); color: #fff; border: 0; border-radius: 20px; padding: 14px 18px 14px 14px; max-width: 520px; cursor: pointer; font: inherit; margin-top: 4px; transition: transform .25s var(--ease); }
.hello-card:hover { transform: translateY(-3px); }
.hello-card > span:last-child { display: grid; gap: 3px; }
.hello-card b { color: #F2C566; font-family: var(--display); font-size: 18px; }
.hello-card > span:last-child > span { color: #C7CEDC; font-size: 14px; line-height: 1.5; }
.hello-card .avatar { width: 72px; height: 72px; border-radius: 16px; border: 0; box-shadow: none !important; background: #34466B; }

.hero2-pic { position: relative; padding: 26px 26px 26px 0; }
.hero2-grid { position: absolute; inset: 0 0 0 56px; border-radius: 28px; background-color: var(--navy); background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 44px 44px; }
.hero2-frame { position: relative; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: #FBF6EC; display: grid; place-items: center; box-shadow: 0 40px 60px -40px rgba(0,0,0,.6); }
.hero2-frame .badge-logo { width: 64%; height: auto; -webkit-animation: floaty 6s ease-in-out infinite; animation: floaty 6s ease-in-out infinite; }
.hero2-img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; z-index: 2; display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 12px 16px 12px 12px; color: var(--ink); font-weight: 500; text-decoration: none; box-shadow: 0 24px 40px -20px rgba(30,43,71,.55); max-width: 270px; -webkit-animation: cardIn .7s var(--ease) both; animation: cardIn .7s var(--ease) both; }
.float-card:hover { text-decoration: none; }
.float-card > span:last-child { display: grid; line-height: 1.3; }
.float-card b { font-size: 15px; }
.float-card > span:last-child > span:not(.eyebrow) { font-size: 12.5px; color: var(--muted); }
.fc-top { top: -14px; right: -14px; -webkit-animation-delay: .25s; animation-delay: .25s; }
.fc-top b { font-family: var(--display); font-size: 19px; }
.fc-bottom { bottom: -18px; left: -22px; -webkit-animation-delay: .45s; animation-delay: .45s; }
.fc-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.float-card .cal { width: 50px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.tiles3 { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.tile-main { display: grid; gap: 12px; align-content: start; padding: 30px; }
.tile { border-radius: 22px; padding: 30px; display: grid; gap: 12px; align-content: start; }
.tile h3 { font-size: 22px; }
.tile p { line-height: 1.6; }
.tile-ico { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; }
.tile-ico svg { width: 24px; height: 24px; }
.tile-coral { background: var(--coral-soft); color: #5D3A30; } .tile-coral .tile-ico { color: var(--coral); }
.tile-green { background: #D7EBC4; color: #2F4A22; } .tile-green .tile-ico { color: #2E6B2A; }
.tile h3 { color: var(--ink); }

.team-band { background: #161E33; padding-block: 72px; margin-top: 24px; }
.team-title { color: #fff; text-align: center; font-size: clamp(32px, 4.4vw, 46px); font-weight: 700; }
.grad { background: linear-gradient(90deg, #8FD3C5, #F2C566, #F2A190); -webkit-background-clip: text; background-clip: text; color: transparent; }
.team-sub { text-align: center; color: #AEB7CB; margin-bottom: 30px; }
.team-person { background: none; border: 0; cursor: pointer; display: grid; justify-items: center; gap: 6px; color: #fff; font: inherit; text-align: center; }
.team-person b { font-size: 18px; margin-top: 8px; }
.team-person > span:last-child { font-size: 13.5px; color: #AEB7CB; }
.team-photo { width: 100%; max-width: 220px; aspect-ratio: 1; border-radius: 28px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; transition: transform .35s var(--ease); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-person:hover .team-photo { transform: translateY(-6px) rotate(-1.5deg); }
.team-photo.t1 { background: linear-gradient(160deg, #7C83E8, #A9A4F0); } .team-photo.t2 { background: linear-gradient(160deg, #2F8F80, #7CC4B6); }
.team-photo.t3 { background: linear-gradient(160deg, #D6553C, #F0A58F); } .team-photo.t4 { background: linear-gradient(160deg, #C98A1D, #F2C566); }
.join-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 30px 34px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.join-card .badge-logo { width: 72px; height: 72px; flex: none; }
.join-card h2 { font-size: 28px; }
.home-hero + .gut .clock { margin-top: 8px; }

@media (max-width: 980px) {
  .hero2 { grid-template-columns: 1fr; gap: 44px; padding-block: 32px 48px; }
  .tiles3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero2-pic { padding: 16px 16px 16px 0; }
  .hero2-grid { left: 36px; }
  .float-card { padding: 9px 12px 9px 9px; max-width: 220px; }
  .fc-top { right: -6px; top: -16px; }
  .fc-top b { font-size: 16px; }
  .fc-bottom { left: -6px; bottom: -22px; }
  .fc-ico { width: 36px; height: 36px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 22px 14px; }
  .join-card { padding: 24px; }
  .join-card .row { flex-wrap: wrap !important; }
}

.photo-drop { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1.5px dashed var(--line); border-radius: 16px; cursor: pointer; background: var(--soft-2); transition: border-color .2s, background .2s; }
.photo-drop:hover { border-color: var(--coral); background: var(--coral-soft); }
.photo-prev { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; color: var(--muted); border: 1px solid var(--line); }
.photo-prev svg { width: 28px; height: 28px; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }

/* Home: clean logo card, members strip, IT line */
.hero2-frame { aspect-ratio: 5 / 4.4; }
.hero2-frame .badge-logo { width: 74%; max-width: 420px; filter: drop-shadow(0 24px 30px rgba(15,76,58,.25)); }
.mem-strip { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.mem-chip { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 12px; display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--ink); font-weight: 500; text-decoration: none; }
.mem-chip:hover { text-decoration: none; }
.mem-chip b { font-size: 15px; line-height: 1.25; margin-top: 6px; }
.mem-chip span:last-child { font-size: 13px; color: var(--muted); }
.mem-chip .avatar.lg { width: 76px; height: 76px; font-size: 22px; }
.team-phone { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13.5px; color: #F2C566 !important; font-weight: 600; }
.team-phone svg { width: 14px; height: 14px; }
.it-line { margin: 34px auto 0; display: grid; gap: 4px; justify-items: center; text-align: center; color: #C7CEDC; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 14px 20px; max-width: 640px; }
.it-line b { color: #fff; }
@media (max-width: 560px) { .mem-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-person > span:not(.team-photo):not(.team-phone) { font-size: 13.5px; color: #AEB7CB; }

/* ===== Motion: smooth and gentle (switched off for people who prefer less motion) ===== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero2-text > * { -webkit-animation: riseIn .8s var(--ease) both; animation: riseIn .8s var(--ease) both; }
  .hero2-text > *:nth-child(2) { -webkit-animation-delay: .08s; animation-delay: .08s; }
  .hero2-text > *:nth-child(3) { -webkit-animation-delay: .16s; animation-delay: .16s; }
  .hero2-text > *:nth-child(4) { -webkit-animation-delay: .24s; animation-delay: .24s; }
  .hero2-text > *:nth-child(5) { -webkit-animation-delay: .32s; animation-delay: .32s; }
  .hero2-pic { -webkit-animation: picIn 1s var(--ease) .15s both; animation: picIn 1s var(--ease) .15s both; }
  .mem-chip .avatar, .member-card .avatar { transition: transform .35s var(--ease); }
  .mem-chip:hover .avatar, .member-card:hover .avatar { transform: scale(1.07) rotate(-3deg); }
  .serve-card .icon-tile, .tile-ico { transition: transform .35s var(--ease); }
  .serve-card:hover .icon-tile { transform: translateY(-3px) rotate(-6deg); }
  .sidebar .nav a { transition: background .2s, transform .2s var(--ease), color .2s; }
  .sidebar .nav a:hover { transform: translateX(3px); }
}
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } }
@keyframes picIn { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.reveal { transition-duration: .7s; }

/* Admin: storage meter */
.disk-card { display: grid; gap: 10px; margin-top: 16px; }
.disk-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.disk-top h2 { font-size: 18px; margin: 0; }
.disk-bar { height: 12px; border-radius: 99px; background: var(--soft-2, #EEF0F5); overflow: hidden; }
.disk-bar span { display: block; height: 100%; border-radius: inherit; background: var(--teal, #1F8A78); transition: width .8s ease; }
.disk-warn .disk-bar span { background: #E0A126; }
.disk-full .disk-bar span { background: var(--coral, #D6553C); }
.disk-full { border-color: var(--coral, #D6553C); }

/* Profile: contact buttons the member chose to show */
.contact-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid var(--line, #E3E1EC); overflow-wrap: anywhere; }
.pill-link svg { width: 16px; height: 16px; }
.pill-link.wa { background: #25D366; color: #fff; border-color: #25D366; }
