/* Sayid Mohamed Heritage Club — green, gold and cream, big touch targets. */
:root {
  --green: #173B2B; --green2: #21493A; --green3: #2A5A43; --deep: #12301F; --gold: #D9B23A; --gold2: #B8921E;
  --cream: #F4EFE4; --paper: #FBF8F1; --line: #E2D9C4; --ink: #1B2A20; --ink2: #4A5A50; --muted: #6B6150; --mint: #CFE0D5;
  --ok: #1E7A4C; --okbg: #E2F2E8; --warn: #8A6A12; --warnbg: #FBF1D6; --bad: #B23A2E; --badbg: #FBE6E2;
  --serif: 'Domine', Georgia, serif; --sans: 'Nunito Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); font-size: 17px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--green3); }
h1, h2, h3 { font-family: var(--serif); color: var(--green); margin: 0; line-height: 1.15; }
h1 { font-size: clamp(34px, 7vw, 58px); } h2 { font-size: clamp(26px, 4.5vw, 36px); } h3 { font-size: 21px; }
p { margin: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.muted { color: var(--muted); } .small { font-size: 14.5px; } .tiny { font-size: 12.5px; } .center { text-align: center; }
.hide { display: none !important; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--warn); }
main { padding: 0 0 80px; min-height: 70vh; }
section.band { padding: 44px 0; }

/* header */
.top { background: var(--green); color: #fff; position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.15; }
.brand .mark { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--green); display: grid; place-items: center; font-size: 18px; flex: none; }
.grow { flex: 1; }
.chip { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.chip.gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
@media (max-width: 560px) { .brand .word { display: none; } }

/* hero */
.hero { background: var(--green); color: var(--cream); padding: 48px 0 56px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -180px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: var(--deep); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--cream); }
.hero .lead { color: var(--mint); font-size: 19px; max-width: 640px; }
.hero .eyebrow { color: var(--gold); }
.meter { background: rgba(255,255,255,.12); border-radius: 16px; padding: 20px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 760px; }
.meter b { font-family: var(--serif); font-size: 30px; color: var(--gold); }
.meter span { color: var(--mint); font-size: 14.5px; }
.bar { height: 12px; background: rgba(255,255,255,.18); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.card .bar { background: var(--cream); }
.card .bar > i { background: var(--green3); }

/* cards and buttons */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card.green { background: var(--green); border-color: var(--green); color: var(--cream); }
.card.green h2, .card.green h3 { color: var(--gold); }
.card.green .muted { color: var(--mint); }
.card.gold { background: var(--warnbg); border-color: #EBD9A0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--green); background: #fff; color: var(--green); border-radius: 12px; padding: 13px 20px; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; text-decoration: none; min-height: 50px; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.green { background: var(--green); color: var(--cream); }
.btn.small { padding: 8px 13px; min-height: 40px; font-size: 15px; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; color: var(--green3); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px 0; }

/* group tiles */
.gtile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; cursor: pointer; text-align: start; font: inherit; }
.gtile:hover { border-color: var(--green3); }
.gtile .e { font-size: 30px; }
.gtile h3 { font-size: 20px; }
.gtile .p { font-size: 14.5px; color: var(--ink2); }
.gtile .count { font-size: 13.5px; font-weight: 800; color: var(--green3); }

/* tiers */
.tiers { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tier { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 16px; text-align: center; cursor: pointer; font: inherit; color: var(--ink); }
.tier b { display: block; font-family: var(--serif); font-size: 28px; color: var(--green); }
.tier span { font-size: 14px; color: var(--muted); }
.tier.on { border-color: var(--green); background: var(--green); }
.tier.on b { color: var(--gold); } .tier.on span { color: var(--mint); }

/* forms */
label.f, div.f { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 15px; }
input, select, textarea { font: inherit; font-size: 17px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green3); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 15px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink); }
.pill.on { background: var(--green); border-color: var(--green); color: var(--cream); }
.msg { padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.msg.ok { background: var(--okbg); color: var(--ok); } .msg.err { background: var(--badbg); color: var(--bad); } .msg.info { background: var(--warnbg); color: var(--warn); }

/* wall */
.wall { display: flex; flex-wrap: wrap; gap: 8px; }
.wall span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14.5px; font-weight: 700; }

/* committee */
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--cream); color: var(--ink2); white-space: nowrap; }
.tag.paid { background: var(--okbg); color: var(--ok); } .tag.partial { background: var(--warnbg); color: var(--warn); }
.tag.pledged { background: #EAF0F5; color: #2B5174; } .tag.cancelled { background: var(--badbg); color: var(--bad); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat b { display: block; font-family: var(--serif); font-size: 26px; color: var(--green); }
.stat span { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.mrow { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: inherit; }
.mrow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mrow .amt { text-align: end; font-weight: 800; white-space: nowrap; }
.tnav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.tnav a { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 14.5px; text-decoration: none; color: var(--ink2); }
.tnav a.on { background: var(--green); color: var(--cream); border-color: var(--green); }
table.t { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 15px; }
table.t th, table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; }
table.t th { background: var(--green); color: var(--cream); font-size: 13.5px; }
.scroll-x { overflow-x: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--green); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 60; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
footer { background: var(--green); color: var(--mint); padding: 28px 0; font-size: 14.5px; }
footer a { color: var(--gold); }
.quote { font-family: var(--serif); font-size: 20px; color: var(--cream); line-height: 1.5; }
@media print { .top, footer, .no-print { display: none !important; } body { background: #fff; } }

.grid.g2 { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
@media (max-width: 420px) { .gtile .p { display: none; } .gtile { padding: 14px; } }
@media (max-width: 560px) { .top .chip .word { display: none; } .top .chip { padding: 7px 10px; } }
html, body { overflow-x: hidden; }
.cols { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* member app */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; text-align: center; padding: 8px 2px 7px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 800; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tabs a .i { font-size: 21px; line-height: 1; }
.tabs a.on { color: var(--green); }
body.app main { padding-bottom: 110px; }
body.app footer { display: none; }
.badge { background: var(--bad); color: #fff; border-radius: 999px; font-size: 11.5px; font-weight: 800; padding: 1px 6px; margin-inline-start: 4px; }
.av { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; flex: none; text-decoration: none; }
.av.big { width: 72px; height: 72px; font-size: 30px; }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.post .head { display: flex; gap: 10px; align-items: center; }
.post .body { white-space: pre-wrap; word-wrap: break-word; }
.post.poem .body { font-family: var(--serif); font-size: 18px; line-height: 1.7; color: var(--green); }
.post .acts { display: flex; gap: 16px; }
.post .acts button, .post .acts a { background: none; border: 0; font: inherit; font-weight: 700; color: var(--ink2); cursor: pointer; padding: 4px 0; text-decoration: none; font-size: 15px; }
.post .acts .on { color: var(--bad); }
.kind { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--warn); }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--green); color: var(--cream); border-color: var(--green); }
.bubble .tiny { opacity: .7; display: block; margin-top: 2px; }
.track { display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-decoration: none; color: inherit; }
.track .e { font-size: 32px; }
.lrow { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: inherit; }
.lrow .n { width: 34px; height: 34px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-weight: 800; color: var(--green); flex: none; }
.lrow.done .n { background: var(--okbg); color: var(--ok); }
.lesson-body { white-space: pre-wrap; font-size: 18px; line-height: 1.7; }
.video { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pillar { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.pillar .e { font-size: 34px; }
.pillar.green { background: var(--green); border-color: var(--green); color: var(--cream); }
.pillar.green h3 { color: var(--gold); }
.pillar.green .muted { color: var(--mint); }
a.pill { text-decoration: none; display: inline-block; }
#cir, #groups { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
.gtile b { overflow-wrap: anywhere; }
/* photo hero: young professionals networking, the Sayid's statue beside the title */
.hero.photo { background: #12301F url('../hero-network.jpg') center 35% / cover no-repeat; padding: 56px 0 64px; }
.hero.photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,48,31,.94) 0%, rgba(18,48,31,.82) 45%, rgba(18,48,31,.45) 100%); }
.hero.photo::after { display: none; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.statue { margin: 0; width: 260px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.statue img { width: 260px; height: 360px; object-fit: cover; object-position: center 20%; border-radius: 130px 130px 16px 16px; border: 4px solid var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.statue figcaption { color: var(--gold); font-family: var(--serif); font-size: 15px; text-align: center; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .statue { width: 100%; flex-direction: row; justify-content: flex-start; order: -1; }
  .statue img { width: 96px; height: 120px; border-radius: 48px 48px 10px 10px; border-width: 3px; }
  .statue figcaption { text-align: start; font-size: 16px; }
  .hero.photo::before { background: linear-gradient(180deg, rgba(18,48,31,.78) 0%, rgba(18,48,31,.93) 55%); }
}
.hero-grid > * { min-width: 0; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .cw { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cal .cd { aspect-ratio: 1 / 1; border: 1px solid var(--line); background: #fff; border-radius: 10px; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; cursor: pointer; color: var(--ink); padding: 0; min-height: 40px; }
.cal .cd.blank { border: 0; background: none; cursor: default; }
.cal .cd b { font-size: 15px; }
.cal .cd i { font-style: normal; color: var(--gold2); font-size: 14px; line-height: .8; letter-spacing: 1px; }
.cal .cd.has { background: var(--warnbg); border-color: #EBD9A0; }
.cal .cd.today { border: 2px solid var(--green); }
.cal .cd.pick { background: var(--green); color: var(--cream); border-color: var(--green); }
.cal .cd.pick i { color: var(--gold); }
.tabs a { font-size: 11px; }
