/* GGICT — design system.
   Theme: deep navy + antique gold with a geometric lattice and soft radial glows (after umooriqtesadiyah.org),
   serif display headings and warm sand surfaces (after thesaifeefoundation.org), GIANTS red kept for the brand mark. */
:root {
  --navy: #122B48; --navy-deep: #0B1D33; --navy-mid: #1C3C63; --glow: rgba(46, 98, 133, .55);
  --gold: #B9A155; --gold-light: #D3C077; --gold-pale: #EDE3C4; --gold-dark: #806C26;
  --red: #D7262C; --sand: #F6F1E6; --sand-deep: #EFE7D6;
  --ink: #262626; --muted: #6B6B6B; --line: #E6E1D6; --bg: #FFFFFF; --bg-soft: #F8F6F0; --bg-alt: #FBFAF6;
  --ok: #2E7D4F; --warn: #9A7B16; --bad: #B8322F; --info: #2E6285;
  --radius: 16px; --radius-lg: 25px; --radius-btn: 8px; --shadow: 0 18px 44px rgba(11, 29, 51, .14); --shadow-sm: 0 4px 14px rgba(11, 29, 51, .07);
  --font: 'Open Sans', 'Segoe UI', system-ui, Arial, sans-serif; --head: 'Faustina', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.4, 0, .2, 1); --container: 1200px;
  /* Girih "star and cross" lattice: interlaced 8-point stars (two squares, one turned 45°) on a 200px grid, whose
     points meet at the tile edges and leave cross shapes between them. Drawn twice — a soft wide halo under a thin
     line — to read as interlaced bands, like the reference site's background. */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cg id='s'%3E%3Crect x='-70.7' y='-70.7' width='141.4' height='141.4'/%3E%3Crect x='-70.7' y='-70.7' width='141.4' height='141.4' transform='rotate(45)'/%3E%3Ccircle r='15'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='7' stroke-linejoin='round'%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' x='200'/%3E%3Cuse href='%23s' y='200'/%3E%3Cuse href='%23s' x='200' y='200'/%3E%3Crect x='80' y='80' width='40' height='40' transform='rotate(45 100 100)'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='1.5' stroke-linejoin='round'%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' x='200'/%3E%3Cuse href='%23s' y='200'/%3E%3Cuse href='%23s' x='200' y='200'/%3E%3Crect x='80' y='80' width='40' height='40' transform='rotate(45 100 100)'/%3E%3C/g%3E%3C/svg%3E");
  --sheet-shadow: 0 30px 80px rgba(2, 10, 24, .45), 0 2px 0 rgba(255, 255, 255, .6) inset;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* The whole public site sits on the navy lattice; content floats in white sheets (see .sheet / .page-pad). */
body { margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.6; font-size: 16px; isolation: isolate;
  background: var(--lattice) center top / 200px 200px, linear-gradient(90deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 100%); background-attachment: scroll; }
body::before { content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 480px at 8% 0%, var(--glow), transparent 70%), radial-gradient(640px 560px at 96% 92%, rgba(185, 161, 85, .16), transparent 70%), radial-gradient(520px 520px at 60% 55%, rgba(46, 98, 133, .25), transparent 70%);
  animation: glow-drift 22s ease-in-out infinite; }
body.is-admin { background: var(--bg-alt); } body.is-admin::before { display: none; }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease), opacity .15s var(--ease); }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); font-weight: 600; }
h1 { font-family: var(--head); font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-family: var(--font); font-size: clamp(1.45rem, 2.2vw, 1.75rem); color: var(--gold-dark); font-weight: 600; }
h3 { font-family: var(--font); font-size: 1.25rem; color: var(--gold-dark); font-weight: 600; }
h4 { font-family: var(--font); font-size: 1.05rem; }
.navy-surface h2, .navy-surface h3 { color: #fff; }

/* ---------- Motion ---------- */
@keyframes page-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes quote-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes glow-drift { 0% { transform: translate(0, 0); } 50% { transform: translate(40px, 24px); } 100% { transform: translate(0, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.page-enter { animation: page-enter .5s var(--ease) both; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease-out, transform .7s ease-out; transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
p { margin: 0 0 1em; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .95em; background: var(--sand); padding: .1em .4em; border-radius: 6px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .center { text-align: center; } .block { display: block; } .nowrap { white-space: nowrap; }
.lead { font-size: 1.12rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -.18em; display: inline-block; }
.loading { padding: 80px; text-align: center; color: var(--muted); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Navy surfaces (login, standalone cards) carry their own lattice + glow; on the public pages the body already does. */
.navy-surface { background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 100%); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.navy-surface::before { content: ''; position: absolute; inset: 0; background: var(--lattice) center / 200px 200px; pointer-events: none; z-index: 0; }
.navy-surface::after { content: ''; position: absolute; inset: -20%; background: radial-gradient(600px 420px at 12% 8%, var(--glow), transparent 70%), radial-gradient(540px 480px at 92% 96%, rgba(185, 161, 85, .20), transparent 70%); pointer-events: none; z-index: 0; animation: glow-drift 18s ease-in-out infinite; }
.navy-surface > * { position: relative; z-index: 1; }
.glass { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 20px; }

/* ---------- Sheets & bands (the page rhythm of the reference site) ---------- */
.band { padding: 36px 0; position: relative; }
.band-navy { color: #fff; padding: 72px 0; }
.band-navy h2, .band-navy h3 { color: #fff; } .band-navy .eyebrow { color: var(--gold-light); } .band-navy p { color: rgba(255, 255, 255, .82); }
.band-navy .section-title::after { background: linear-gradient(90deg, var(--gold-light), rgba(211, 192, 119, .3)); }
.sheet { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 56px 64px; box-shadow: var(--sheet-shadow); border: 1px solid rgba(255, 255, 255, .5); position: relative; }
.sheet + .sheet { margin-top: 36px; }
.sheet-overlap { margin-top: -72px; }
.sheet .section-title:first-child, .sheet .eyebrow:first-child + .section-title { margin-top: 0; }
.on-navy { color: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; margin-top: 44px; }
.photo-stack { display: grid; gap: 18px; }
.photo-stack .ph-frame { display: block; width: 100%; aspect-ratio: 16/10; border-radius: 20px; box-shadow: 0 14px 34px rgba(11, 29, 51, .18); transition: transform .5s var(--ease); }
.photo-stack a:hover .ph-frame { transform: scale(1.02); }
/* Whole-image frames: the photo is shown complete (contain) over a blurred copy that fills the box. */
.pic-wrap { position: relative; overflow: hidden; background: var(--navy-deep); isolation: isolate; }
.pic-wrap .pic-bg { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(14px) saturate(1.15) brightness(.7); pointer-events: none; transform: translateZ(0); }
.pic-wrap .pic { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-stack .ph-cap { font-size: .8rem; color: var(--muted); margin-top: 6px; display: block; }
.mv { display: grid; grid-template-columns: 52px 1fr; gap: 16px; margin: 22px 0; }
.mv-ic { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--gold-pale); color: var(--gold-dark); display: grid; place-items: center; background: var(--sand); }
.mv-ic .ic { width: 26px; height: 26px; }
.mv h3 { margin: 0 0 .3em; font-size: 1.12rem; } .mv p { margin: 0; color: #444; font-size: .98rem; line-height: 1.7; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tile { padding: 24px 24px 22px; color: #fff; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease); }
.tile:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .12); border-color: rgba(211, 192, 119, .55); text-decoration: none; }
.tile .cause-icon { width: 48px; height: 48px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.tile strong { display: block; font-size: 1.02rem; margin-bottom: 4px; } .tile small { color: rgba(255, 255, 255, .72); line-height: 1.5; display: block; }
.tile .tile-dir { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .82rem; color: var(--gold-light); }
.tile .tile-dir .avatar { width: 26px; height: 26px; font-size: .6rem; box-shadow: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; font: 600 .95rem var(--font); padding: 10px 28px; border-radius: var(--radius-btn); border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), opacity .15s var(--ease); text-decoration: none !important; line-height: 1.5; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 29, 51, .16); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--navy); color: #fff; } .btn-primary:hover { background: var(--navy-deep); }
.btn-gold { background: var(--gold); color: var(--navy-deep); } .btn-gold:hover { background: var(--gold-light); }
.btn-white { background: #fff; color: var(--navy); } .btn-white:hover { background: var(--sand); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--gold); } .btn-ghost:hover { background: var(--sand); }
.btn-danger { background: var(--bad); color: #fff; } .btn-danger:hover { filter: brightness(.9); }
.btn-lg { font-size: 1.02rem; padding: 13px 34px; } .btn-sm { font-size: .84rem; padding: 6px 16px; } .btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: wait; transform: none; box-shadow: none; }
.icon-btn { background: none; border: 0; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--navy); display: inline-flex; transition: background-color .15s var(--ease), transform .2s var(--ease); }
.icon-btn:hover { background: var(--sand); transform: scale(1.08); } .icon-btn.danger { color: var(--bad); }
.round-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); border: 0; display: inline-grid; place-items: center; cursor: pointer; transition: transform .25s var(--ease), background-color .2s var(--ease); }
.round-btn:hover { background: var(--gold-light); transform: scale(1.08); }
.link-btn { background: none; border: 0; color: var(--navy); cursor: pointer; font: inherit; font-size: .85rem; padding: 0 4px; text-decoration: underline; }
.more { font-weight: 600; white-space: nowrap; color: var(--gold-dark); display: inline-flex; align-items: center; gap: 4px; transition: gap .2s var(--ease); }
.more:hover { gap: 10px; text-decoration: none; }

/* ---------- Header (dark, sticky, like the reference) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: transparent; color: #fff; transition: box-shadow .3s var(--ease), background-color .3s var(--ease), backdrop-filter .3s var(--ease); }
.site-header > * { position: relative; }
.scrolled .site-header { background: rgba(11, 29, 51, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(2, 10, 24, .35); }
.util-bar { background: rgba(0, 0, 0, .22); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.util-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding-top: 6px; padding-bottom: 6px; }
.util-bar a { color: var(--gold-light); } .util-bar a:hover { color: #fff; text-decoration: none; } .util-bar .util-admin { color: rgba(255, 255, 255, .5); }
.util-links { display: flex; gap: 22px; margin-left: auto; }
.util-motto { color: #fff; display: inline-flex; align-items: center; gap: 8px; letter-spacing: .14em; }
.util-motto img { height: 22px; width: auto; }
.nav-row { display: flex; align-items: center; gap: 24px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 54px; width: 54px; flex: none; background: #fff; border-radius: 12px; padding: 5px; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }
.brand-mark img, .brand-mark svg { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .b1 { font-family: var(--head); font-weight: 700; font-size: 1.7rem; color: #fff; letter-spacing: .06em; }
.brand-text .b2 { font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-top: 3px; white-space: nowrap; }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { position: relative; padding: 10px 14px; font-weight: 400; font-size: .9rem; color: #fff; border-radius: 8px; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease); }
.main-nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.main-nav a.active { color: var(--gold-light); font-weight: 600; } .main-nav a.active::after { transform: scaleX(1); }
.main-nav .nav-accent { color: var(--gold-light); }
.nav-donate { flex: none; }
.nav-toggle { display: none; margin-left: auto; color: #fff; } .nav-toggle:hover { background: rgba(255, 255, 255, .12); }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .12); background: var(--navy-deep); max-height: calc(100vh - 140px); overflow: auto; }
.mobile-nav a { padding: 14px 20px; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mobile-nav a.active { color: var(--gold-light); box-shadow: inset 4px 0 0 var(--gold); }
.nav-open .mobile-nav { display: flex; animation: page-enter .3s var(--ease); }

/* ---------- Hero ---------- */
.hero.has-img { background-image: linear-gradient(90deg, rgba(11, 29, 51, .94) 0%, rgba(18, 43, 72, .82) 55%, rgba(18, 43, 72, .5) 100%), var(--hero); background-size: cover; background-position: center; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 64px 20px 132px; }
.hero.navy-surface { background: transparent; overflow: visible; } .hero.navy-surface::before, .hero.navy-surface::after { display: none; }
.hero-quote { color: var(--gold-light); font-family: var(--head); font-size: 3.4rem; line-height: .5; margin-bottom: 22px; }
.hero-eyebrow { color: var(--gold-light); font-size: 1.05rem; margin-bottom: 10px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.7rem); margin-bottom: .3em; }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, .85); margin-bottom: 1.8em; max-width: 54ch; line-height: 1.6; }
.hero-text.swap { animation: quote-fade .6s var(--ease) both; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-arrows { display: flex; gap: 10px; margin-top: 30px; }
.hero-dots { display: flex; gap: 8px; align-items: center; margin-left: 14px; }
.hero-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background-color .3s, transform .3s; }
.hero-dots span.on { background: var(--gold-light); transform: scale(1.3); }
.hero-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; border: 1px solid rgba(255, 255, 255, .5); transition: transform .4s var(--ease), box-shadow .4s var(--ease); animation: float 7s ease-in-out infinite; }
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0, 0, 0, .3); text-decoration: none; animation-play-state: paused; }
.hero-card img.portrait { width: 150px; height: 150px; border-radius: 20px; object-fit: cover; border: 4px solid var(--gold-pale); }
.hero-card .eyebrow { color: var(--gold-dark); }
.hero-card h3 { font-family: var(--head); font-size: 1.5rem; margin: .1em 0 .3em; color: var(--navy); }
.hero-card p { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.hero-card .badge-row { display: flex; align-items: center; gap: 10px; }
.hero-card .badge-row img { height: 44px; width: auto; }
.hero-card .team-strip { display: flex; margin-top: 8px; }
.hero-card .team-strip .avatar { width: 34px; height: 34px; margin-left: -8px; border: 2px solid #fff; font-size: .7rem; box-shadow: none; transition: transform .25s var(--ease); }
.hero-card .team-strip .avatar:first-child { margin-left: 0; }
.hero-card:hover .team-strip .avatar { transform: translateX(3px); }

/* ---------- Sections ---------- */
.eyebrow { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--gold-dark); }
.navy-surface .eyebrow { color: var(--gold-light); }
.section-title { position: relative; padding-bottom: 12px; margin: 40px 0 22px; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; transition: width .4s var(--ease); }
.section-title.in::after, section:hover .section-title::after { width: 88px; }
.section-title.center { text-align: center; } .section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 64ch; margin: -8px 0 24px; }
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
/* Inner pages: title sits on the navy background, the content is one white sheet */
.page-pad { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--sheet-shadow); border: 1px solid rgba(255, 255, 255, .5); padding: 48px 56px 64px; margin-bottom: 80px; }
.page-head { padding: 56px 0 44px; position: relative; color: #fff; }
.page-head h1 { color: #fff; margin-bottom: .25em; } .page-head p { font-size: 1.1rem; color: rgba(255, 255, 255, .8); max-width: 70ch; margin: 0; }
.page-head a { color: var(--gold-light); }
.crumb { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 10px; color: var(--gold-light); }
.crumb a { color: var(--gold-light); }
.page-head::before { content: '“'; position: absolute; left: 20px; top: 8px; font-family: var(--head); font-size: 4rem; line-height: 1; color: rgba(211, 192, 119, .35); }
.impact { padding: 88px 0 56px; }
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 24px 0; }
.kpi { text-align: center; padding: 26px 12px 22px; background: #fff; border-radius: var(--radius-lg); border: 1px solid rgba(18, 43, 72, .1); position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.kpi::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 44px; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px; transition: width .3s var(--ease); }
.kpi:hover::before { width: 80px; }
.kpi-num { font-family: var(--head); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--navy); line-height: 1.1; }
.kpi-label { color: var(--muted); font-weight: 600; margin-top: 6px; font-size: .88rem; }
.split { padding: 96px 0; } .split.alt { background: var(--sand); }
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-inner.reverse .split-media { order: 2; }
.split-text h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); } .split-text p { font-size: 1.05rem; margin-bottom: 1.6em; color: #444; line-height: 1.75; }
.mission-card { border-radius: var(--radius-lg); padding: 48px 56px; }
.mission-card h3 { color: #fff; font-size: 1.6rem; font-family: var(--head); } .mission-card p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 1.05rem; line-height: 1.75; }
.mission-card .q { font-family: var(--head); font-size: 3.4rem; line-height: .4; color: var(--gold-light); margin-bottom: 22px; display: block; }
.avenue-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.avenue-mosaic a { background: var(--c); color: #fff; padding: 26px 18px; border-radius: var(--radius); font-weight: 700; display: flex; flex-direction: column; gap: 14px; min-height: 150px; font-size: .95rem; transition: transform .3s var(--ease), filter .3s var(--ease); }
.avenue-mosaic a:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-3px); } .avenue-mosaic .ic { width: 34px; height: 34px; }
.causes { padding: 72px 0 96px; }
.cause-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cause { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid rgba(18, 43, 72, .1); border-radius: var(--radius); color: var(--ink); font-weight: 600; background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.cause:hover { box-shadow: var(--shadow); text-decoration: none; transform: translateY(-4px); border-color: var(--gold-light); }
.cause-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; transition: transform .35s var(--ease); } .cause-icon .ic { width: 24px; height: 24px; }
.cause:hover .cause-icon { transform: rotate(-8deg) scale(1.1); }
.latest { padding: 40px 0 96px; }
.team-band { padding: 96px 0; background: var(--sand); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.join-band { padding: 64px 0 104px; color: #fff; }
.join-band h2 { color: #fff; font-size: 2.2rem; font-family: var(--head); }
.join-band .lead { color: rgba(255, 255, 255, .8); max-width: 60ch; }
.join-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.join-links a { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-lg); padding: 28px; color: #fff; display: grid; gap: 6px; backdrop-filter: blur(6px); transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease); }
.join-links a:hover { background: rgba(255, 255, 255, .14); text-decoration: none; transform: translateY(-4px); border-color: rgba(211, 192, 119, .6); }
.join-links span { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; margin-bottom: 8px; transition: transform .35s var(--ease); }
.join-links a:hover span { transform: scale(1.1) rotate(-6deg); }
.join-links strong { font-family: var(--head); font-size: 1.25rem; } .join-links small { opacity: .8; }

/* ---------- Cards & grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid rgba(18, 43, 72, .1); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: var(--gold-light); }
.card-media { position: relative; display: block; }
.cover { aspect-ratio: 16/9; background: var(--sand); overflow: hidden; } .cover .pic { transition: transform .6s var(--ease); }
.card:hover .cover img { transform: scale(1.05); }
.cover-ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); color: rgba(255, 255, 255, .85); position: relative; }
.cover-ph::after { content: ''; position: absolute; inset: 0; background: var(--lattice); opacity: .8; }
.cover-ph .ic { width: 64px; height: 64px; position: relative; z-index: 1; }
.sample-tag { position: absolute; top: 12px; left: 12px; background: rgba(11, 29, 51, .7); color: var(--gold-light); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.25rem; margin: 0; } .card-body h3 a { color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); }
.chip:hover { text-decoration: none; background: color-mix(in srgb, var(--c) 20%, #fff); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: .88rem; margin: 0; }
.facts dt { color: var(--muted); font-weight: 600; } .facts dd { margin: 0; }
.progress { height: 8px; background: var(--sand-deep); border-radius: 4px; overflow: hidden; margin-top: auto; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); border-radius: 4px; transition: width .6s; }
.progress-meta { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 14px 22px; border: 1px solid rgba(18, 43, 72, .1); border-radius: var(--radius-lg); color: var(--ink); background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.person:hover { box-shadow: var(--shadow); text-decoration: none; transform: translateY(-5px); border-color: var(--gold-light); }
.person .avatar { color: #fff; font-size: 1.6rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease); } .person:hover .avatar { transform: scale(1.06); }
.person-row .avatar { font-size: 1.6rem; }
.person strong { font-family: var(--head); font-size: 1.08rem; color: var(--navy); } .person span { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.person-row { flex-direction: row; text-align: left; align-items: center; gap: 16px; }
.person .past-pres { color: var(--gold-dark); font-weight: 600; font-size: .78rem; letter-spacing: .02em; }
.person .nick, .nick { color: var(--gold-dark); font-family: var(--head); font-style: italic; font-size: .95rem; }
.official-name { color: var(--muted); font-size: .9rem; letter-spacing: .03em; }
.profile-name h1 { margin-bottom: 0; }
.biz-card { border: 1px solid var(--gold-pale); background: linear-gradient(180deg, #fffdf7, #fff); }
.biz-card .biz-cat { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); background: var(--sand); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.biz-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.biz-links a { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.biz-links a:hover { border-color: var(--gold); text-decoration: none; background: var(--sand); }
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.view-switch a { padding: 8px 16px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.view-switch a.on { background: var(--navy); color: #fff; } .view-switch a:hover { text-decoration: none; }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.biz-tile { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.biz-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-light); text-decoration: none; }
.biz-tile strong { display: block; color: var(--navy); } .biz-tile small { display: block; color: var(--muted); }
.biz-tile .avatar { width: 56px; height: 56px; }
.update-cta { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--sand); font-size: .92rem; }

/* ---------- Member profile (Facebook-style header: cover, overlapping picture, actions) ---------- */
.profile-page { padding-top: 0; overflow: hidden; }
.cover-wrap { position: relative; margin: 0 -56px 0; aspect-ratio: 3 / 1; max-height: 380px; background: var(--navy); overflow: hidden; }
.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-default { background: radial-gradient(600px 300px at 15% 0%, var(--glow), transparent 70%), radial-gradient(500px 300px at 95% 100%, rgba(185, 161, 85, .35), transparent 70%), linear-gradient(90deg, var(--navy-deep), var(--navy-mid)); position: relative; }
.cover-default::before { content: ''; position: absolute; inset: 0; background: var(--lattice) center / 200px 200px; }
.cover-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 35%, transparent 70%, rgba(0, 0, 0, .25)); pointer-events: none; }
.cover-crumb { position: absolute; left: 20px; top: 16px; z-index: 2; color: #fff; display: inline-flex; align-items: center; gap: 6px; background: rgba(11, 29, 51, .45); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.cover-crumb:hover { text-decoration: none; background: rgba(11, 29, 51, .7); }
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: end; margin-top: -72px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 32px; position: relative; z-index: 2; }
.profile-avatar { width: 176px; height: 176px; font-size: 3rem; box-shadow: 0 0 0 6px #fff, 0 10px 30px rgba(11, 29, 51, .25); }
.profile-id { padding-bottom: 6px; min-width: 0; }
.profile-id h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 2px; line-height: 1.15; }
.profile-id h1 .nick { font-size: .6em; font-weight: 400; }
.profile-id .official-name { font-size: 1rem; }
.profile-meta { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.profile-actions { display: grid; gap: 10px; justify-items: end; padding-bottom: 6px; }
.social-row { display: flex; gap: 8px; }
.icon-pill { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); color: var(--navy); background: #fff; transition: transform .25s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
.icon-pill:hover { background: var(--sand); border-color: var(--gold); transform: translateY(-2px); text-decoration: none; }
.icon-pill .ic { width: 20px; height: 20px; }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.intro-card { position: static; }
.intro-card h3 { align-self: flex-start; margin-bottom: .2em; }
.profile-page .profile { margin-top: 0; }
.member-year-grid .person { padding: 18px 10px 16px; } .member-year-grid .person strong { font-size: .98rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; display: inline-grid; place-items: center; font-family: var(--font); font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); letter-spacing: .03em; background: linear-gradient(145deg, hsl(var(--h, 215) 42% 46%), hsl(var(--h, 215) 42% 32%)); font-size: .9rem; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold-pale); }
.avatar-sm { width: 34px; height: 34px; font-size: .75rem; box-shadow: none; } .avatar-lg { width: 96px; height: 96px; font-size: 1.6rem; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gold); }
.avatar-xl { width: 128px; height: 128px; font-size: 2.2rem; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--gold); } .avatar-xxl { width: 180px; height: 180px; font-size: 3rem; box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--gold); }
.timeline { list-style: none; padding: 0 0 0 22px; margin: 0; border-left: 2px solid var(--gold-pale); }
.timeline li { position: relative; padding: 0 0 16px 14px; }
.timeline li::before { content: ''; position: absolute; left: -29px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; } .list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.prose-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; } .prose h2 { margin-top: 1.4em; } .prose h2:first-child { margin-top: 0; }
.flow { padding-left: 1.2em; } .flow li { margin-bottom: .5em; }
.tenure-list { display: grid; gap: 14px; }
.tenure-row { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 18px 24px; border: 1px solid rgba(18, 43, 72, .1); border-radius: var(--radius-lg); color: var(--ink); background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.tenure-row:hover { box-shadow: var(--shadow); text-decoration: none; border-color: var(--gold-light); transform: translateX(6px); }
.tenure-main strong { display: block; font-family: var(--head); font-size: 1.35rem; color: var(--navy); } .tenure-main small { color: var(--muted); }
.tenure-stats { display: flex; gap: 26px; text-align: center; font-size: .82rem; color: var(--muted); } .tenure-stats b { display: block; font-size: 1.25rem; color: var(--navy); font-family: var(--head); }
.avenue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.avenue-card { display: flex; flex-direction: column; gap: 10px; padding: 30px; border: 1px solid rgba(18, 43, 72, .1); border-top: 5px solid var(--c); border-radius: var(--radius-lg); color: var(--ink); background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.avenue-card:hover { box-shadow: var(--shadow); text-decoration: none; transform: translateY(-5px); }
.avenue-card .cause-icon { transition: transform .35s var(--ease); } .avenue-card:hover .cause-icon { transform: rotate(-8deg) scale(1.1); }
.avenue-card h3 { margin: 0; } .avenue-card p { color: var(--muted); margin: 0; flex: 1; font-size: .95rem; }
.avenue-dir { display: flex; align-items: center; gap: 10px; font-weight: 700; } .avenue-dir small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.avenue-stats { display: flex; gap: 20px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; } .avenue-stats b { color: var(--navy); font-size: 1.05rem; }
.avenue-head { background: transparent; color: #fff; border: 0; }
.avenue-head h1 .ic { width: .9em; height: .9em; color: var(--gold-light); margin-right: 6px; }
.avenue-head::before { color: color-mix(in srgb, var(--c) 70%, #fff); }
.avenue-head h1, .avenue-head p, .avenue-head a, .avenue-head .crumb { color: #fff; }
.donate-cta { background: var(--sand); border-radius: var(--radius-lg); padding: 26px; border-left: 5px solid var(--gold); }
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 48px; }
.profile-card { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; align-self: start; position: sticky; top: 124px; }
.kv { display: grid; grid-template-columns: fit-content(45%) minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: .95rem; width: 100%; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; word-break: break-word; }

/* ---------- Project detail ---------- */
.project-hero { position: relative; color: #fff; max-width: var(--container); margin: 28px auto 0; padding: 0 20px; }
.project-hero .cover-hero { aspect-ratio: auto; height: 400px; opacity: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--sheet-shadow); } .cover-hero.cover-ph { opacity: 1; }
.project-hero-text { position: absolute; inset: 0 20px; border-radius: var(--radius-lg); display: flex; align-items: flex-end; padding-bottom: 36px; background: linear-gradient(rgba(11, 29, 51, .1), transparent 18%, rgba(11, 29, 51, .45) 55%, rgba(11, 29, 51, .95)); text-shadow: 0 1px 3px rgba(0, 0, 0, .45); z-index: 2; }
.project-hero-text .chip { text-shadow: none; }
/* Wide screens: the photo sits to the right of its frame so the title reads over the blurred fill on the left. */
@media (min-width: 1025px) {
  .project-hero .cover-hero .pic { object-position: right center; }
  .project-hero-text .container { max-width: 60%; margin: 0; padding-left: 44px; }
  .project-hero-text { background: linear-gradient(90deg, rgba(11, 29, 51, .92) 0%, rgba(11, 29, 51, .72) 42%, rgba(11, 29, 51, .15) 70%, transparent 100%), linear-gradient(transparent 55%, rgba(11, 29, 51, .85)); }
  [dir="rtl"] .project-hero .cover-hero .pic { object-position: left center; }
  [dir="rtl"] .project-hero-text .container { margin: 0 0 0 auto; padding-left: 0; padding-right: 44px; }
  [dir="rtl"] .project-hero-text { background: linear-gradient(270deg, rgba(11, 29, 51, .92) 0%, rgba(11, 29, 51, .72) 42%, rgba(11, 29, 51, .15) 70%, transparent 100%), linear-gradient(transparent 55%, rgba(11, 29, 51, .85)); }
}
.project-layout > * { min-width: 0; }
.gallery { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.project-hero-text h1, .project-hero-text p, .project-hero-text a, .project-hero-text .crumb { color: #fff; } .project-hero-text .chip { background: rgba(255, 255, 255, .92); }
.project-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; margin-top: 28px; }
.side { display: grid; gap: 18px; align-content: start; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; background: #fff; }
.side-card h3 { margin-bottom: .6em; } .side-card .btn { margin: 14px 0 8px; }
.warn-card { border-left: 5px solid var(--gold); background: var(--sand); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-item { position: relative; border: 0; padding: 0; cursor: zoom-in; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--sand); }
.gallery-item .pic { transition: transform .5s var(--ease); } .gallery-item:hover .pic { transform: scale(1.04); }
.gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(11, 29, 51, .6); color: #fff; font-size: .8rem; padding: 4px 8px; text-align: left; }
.lightbox { max-height: 80vh; margin: 0 auto; object-fit: contain; }
.videos { display: grid; gap: 16px; } .video { aspect-ratio: 16/9; } .video iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.notice { background: #EEF3F7; border-left: 4px solid var(--info); padding: 12px 16px; border-radius: 8px; }
.notice.warn { background: var(--sand); border-left-color: var(--gold); }

/* ---------- Forms ---------- */
.toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.toolbar label { font-weight: 600; display: flex; gap: 8px; align-items: center; }
input, select, textarea { font: inherit; color: var(--ink); border: 1px solid #D5CFC1; border-radius: 8px; padding: 10px 13px; background: #fff; width: 100%; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(185, 161, 85, .2); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--navy); }
input[type=file] { padding: 7px; } input[type=color] { padding: 2px; height: 42px; }
textarea { resize: vertical; }
select { appearance: auto; }
.toolbar input, .toolbar select { width: auto; min-width: 240px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 8px; align-items: center; }
.donate-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.form-card legend { font-family: var(--head); font-weight: 600; font-size: 1.3rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; color: var(--navy); }
.step { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: inline-grid; place-items: center; font: 700 .85rem var(--font); }
.field { display: block; margin-bottom: 14px; font-weight: 600; font-size: .9rem; }
.field > label { display: block; margin-bottom: 4px; }
.field input, .field select, .field textarea { margin-top: 4px; font-weight: 400; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.seg label { border: 1px solid #D5CFC1; border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.seg label:has(:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.preset { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px; cursor: pointer; font: 600 .95rem var(--font); }
.preset.on, .preset:hover { border-color: var(--gold); background: var(--sand); }
.hint { color: var(--muted); font-size: .85rem; font-weight: 400; margin: 4px 0 0; display: block; }
.req { color: var(--red); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; margin: 8px 0; }
.form-error { color: var(--bad); font-weight: 600; min-height: 1.2em; margin: 8px 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.success { text-align: center; padding: 48px 24px; } .success-icon { color: var(--ok); margin-bottom: 12px; } .success-icon .ic { width: 64px; height: 64px; }
.ticks { list-style: none; padding: 0; } .ticks li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-dark); font-weight: 800; }
.doc-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.doc-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.doc-list li span { flex: 1; } .doc-list li small { display: block; color: var(--muted); } .doc-list .ic { color: var(--gold-dark); width: 22px; height: 22px; }

/* ---------- Bank account boxes ---------- */
.account { border: 2px solid var(--line); border-radius: var(--radius); padding: 0 0 14px; margin: 10px 0 18px; overflow: hidden; background: #fff; }
.account-project { border-color: var(--navy); } .account-admin { border-color: var(--gold-dark); }
.account-flag { padding: 8px 18px; font-weight: 800; letter-spacing: .1em; font-size: .76rem; color: #fff; display: flex; align-items: center; gap: 8px; }
.account-project .account-flag { background: var(--navy); } .account-admin .account-flag { background: var(--gold-dark); }
.account-grid { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 16px 18px 6px; align-items: start; }
.account h4 { margin-bottom: 10px; } .account .kv { font-size: .95rem; }
.qr { text-align: center; font-size: .8rem; color: var(--muted); } .qr svg { width: 150px; height: 150px; margin: 0 auto 4px; }
.qr-official { display: grid; justify-items: center; gap: 4px; }
.qr-official img { width: 170px; height: 170px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.qr-official img:hover { transform: scale(1.04); }
.reg-box { background: var(--sand); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; }
.account-note { margin: 0 18px; font-size: .88rem; color: var(--muted); }

/* ---------- Tables, pills ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { background: var(--sand); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-dark); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; } .table .num { text-align: right; white-space: nowrap; }
.pill { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.pill-ok { background: #E4F1E8; color: var(--ok); } .pill-warn { background: #F7EFD2; color: var(--warn); } .pill-bad { background: #F8E3E2; color: var(--bad); }
.pill-info { background: #E3ECF3; color: var(--info); } .pill-muted { background: var(--sand); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { color: #D8DEE8; margin-top: 0; }
.site-footer.navy-surface { background: rgba(5, 16, 32, .72); border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer.navy-surface::before { opacity: .5; }
.site-footer a { color: #D8DEE8; }
.site-footer a:hover { color: #fff; }
.site-footer .btn-gold { color: var(--navy-deep); } .site-footer .btn-white { color: var(--navy); } .site-footer .btn-white:hover { color: var(--navy-deep); }
.footer-cta { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.footer-cta h3 { color: #fff; font-size: 1.6rem; margin: 0; font-family: var(--head); } .footer-cta p { margin: 4px 0 0; color: rgba(255, 255, 255, .75); }
.footer-cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer .btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .55); } .site-footer .btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: #fff; }
.footer-brand .brand-mark { height: 60px; background: #fff; border-radius: 12px; padding: 4px; }
.footer-brand .b1 { color: #fff; } .footer-brand .b2 { color: var(--gold-light); }
.footer-about { color: rgba(255, 255, 255, .8); max-width: 44ch; }
.footer-affil { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.footer-affil img { height: 36px; width: auto; }
.footer-motto { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--head); font-style: italic; color: var(--gold-light); font-size: 1.05rem; }
.footer-motto img { height: 40px; width: auto; }
.site-footer h4 { color: var(--gold-light); font-size: 1.1rem; margin-bottom: 16px; font-weight: 600; }
.footer-links a { display: block; margin-bottom: 9px; font-size: .95rem; transition: transform .25s var(--ease), color .2s var(--ease); }
.footer-links a:hover { transform: translateX(6px); text-decoration: none; color: var(--gold-light); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; font-size: .95rem; align-items: flex-start; }
.footer-contact .ic { color: var(--gold-light); flex: none; margin-top: 3px; width: 18px; height: 18px; }
.footer-contact ul { list-style: none; padding: 0; margin: 0; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; color: #fff; transition: transform .25s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.social a:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); text-decoration: none; transform: translateY(-3px); }
.footer-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 44px; }
.footer-acct { border-radius: var(--radius); padding: 16px 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; }
.footer-acct strong { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; color: var(--gold-light); }
.footer-acct.project strong { color: #8EC5F0; } .footer-acct.fees strong { color: var(--gold-light); }
.footer-acct span { display: block; color: rgba(255, 255, 255, .85); }
.footer-acct.has-qr { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.footer-qr { display: grid; justify-items: center; gap: 4px; text-decoration: none !important; }
.footer-qr img { width: 92px; height: 92px; background: #fff; padding: 5px; border-radius: 10px; transition: transform .3s var(--ease); }
.footer-qr:hover img { transform: scale(1.06); }
.footer-qr small { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.footer-acct code { background: rgba(255, 255, 255, .1); color: #fff; }
.footer-foot { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; padding-bottom: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .85rem; color: rgba(255, 255, 255, .65); }
.footer-foot .fine { max-width: 72ch; }
.footer-foot a { color: rgba(255, 255, 255, .75); }
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.is-admin .site-header, .is-admin .site-footer { display: none; }

/* ---------- Scroll progress & back-to-top ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); box-shadow: 0 0 8px rgba(211, 192, 119, .7); transition: transform .1s linear; }
.to-top-fab { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); box-shadow: 0 10px 26px rgba(11, 29, 51, .35); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .2s var(--ease); }
.to-top-fab.show { opacity: 1; visibility: visible; transform: none; }
.to-top-fab:hover { background: var(--navy-deep); transform: translateY(-3px); }
.to-top-fab:hover .ic, .to-top-fab:hover svg.lucide { transform: translateY(-2px); }
.to-top-fab .ic, .to-top-fab svg.lucide { width: 22px; height: 22px; position: relative; transition: transform .25s var(--ease); }
.to-top-fab .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-fab .ring circle { fill: none; stroke-width: 2.5; }
.to-top-fab .ring circle:first-child { stroke: rgba(255, 255, 255, .12); }
#to-top-ring { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; transition: stroke-dashoffset .1s linear; }
.is-admin .scroll-progress, .is-admin .to-top-fab { display: none; }
@media (max-width: 640px) { .to-top-fab { right: 16px; bottom: 16px; width: 46px; height: 46px; } }

/* ---------- Modal, toast ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(11, 29, 51, .6); z-index: 200; display: grid; place-items: center; padding: 20px; overflow: auto; }
.modal-wrap { animation: fade-in .2s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal { background: #fff; border-radius: 18px; width: min(640px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: pop-in .3s var(--ease) both; }
.modal-wide { width: min(1000px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); } .modal-head h3 { margin: 0; }
.modal-body { padding: 22px; overflow: auto; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--navy-deep); color: #fff; padding: 12px 20px; border-radius: 10px; opacity: 0; transition: .25s; z-index: 300; font-weight: 600; box-shadow: var(--shadow); max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast-bad { background: var(--bad); }

/* ---------- Admin ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { background: #fff; padding: 40px; border-radius: 20px; width: min(400px, 100%); text-align: center; box-shadow: var(--shadow); }
.login-card .brand-mark { height: 72px; margin: 0 auto 12px; display: inline-block; } .login-card .field { text-align: left; } .login-card .small { display: block; margin-top: 16px; }
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: var(--bg-alt); }
.admin-side { background: var(--navy-deep); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: #fff; font-family: var(--head); font-weight: 700; font-size: 1.3rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.admin-brand img, .admin-brand svg { height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 2px; } .admin-brand small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; color: var(--gold-light); font-family: var(--font); }
.admin-side nav { padding: 10px 0; flex: 1; }
.admin-side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 20px; color: #C9D3E8; font-weight: 600; font-size: .92rem; position: relative; }
.admin-side nav a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; color: #fff; }
.admin-side nav a.on { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 4px 0 0 var(--gold); }
.badge { margin-left: auto; background: var(--gold); color: var(--navy-deep); font-size: .72rem; border-radius: 999px; padding: 1px 7px; }
.admin-user { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.admin-user span { flex: 1; } .admin-user small { display: block; color: #9FB0D0; font-size: .75rem; } .admin-user .icon-btn { color: #fff; }
.admin-main { padding: 24px 28px 60px; min-width: 0; }
.admin-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; } .admin-head h1 { font-size: 1.8rem; margin: 0; flex: 1; }
.admin-menu { display: none; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { font-size: 1.3rem; margin: 0; } .panel-head input, .panel-head select { width: auto; }
.count { font-weight: 600; color: var(--muted); font-size: .9rem; margin-left: 6px; font-family: var(--font); }
.list-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.list-tools input[type=search] { max-width: 280px; } .list-tools select { width: auto; }
.admin-table td { font-size: .92rem; } .admin-table small { color: var(--muted); font-size: .8rem; }
.cell-main { display: flex; align-items: center; gap: 10px; } .cell-main small { display: block; }
.thumb { width: 52px; height: 38px; object-fit: cover; border-radius: 6px; }
.dot-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; }
.actions { white-space: nowrap; text-align: right; } .actions-col { text-align: right; }
.actions .btn { margin-right: 6px; }
.pager { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pager button { border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 8px; cursor: pointer; font: 600 .9rem var(--font); }
.pager button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 22px; }
.small-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 300px)); }
.stat { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink); }
.stat:hover { text-decoration: none; box-shadow: var(--shadow-sm); }
.stat-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--sand); color: var(--gold-dark); display: grid; place-items: center; flex: none; } .stat-ic .ic { width: 24px; height: 24px; }
.stat small { display: block; color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.stat strong { font-family: var(--head); font-size: 1.6rem; color: var(--navy); display: block; line-height: 1.1; } .stat em { font-style: normal; color: var(--muted); font-size: .82rem; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; }
.roles { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; } .roles li { display: grid; grid-template-columns: 220px 1fr; gap: 12px; } .roles span { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.form-grid .field { margin-bottom: 8px; } .form-grid .full { grid-column: 1 / -1; }
.admin-form .form-error { grid-column: 1 / -1; }
.multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 14px; border: 1px solid #D5CFC1; border-radius: 10px; padding: 8px 12px; margin-top: 4px; }
.multi .check { margin: 4px 0; font-weight: 500; }
.img-field { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; } .img-field img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); } .img-field input { width: auto; }
.upload-btn { margin-top: 8px; cursor: pointer; }
.gallery-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 6px; }
.g-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; background: var(--bg-alt); }
.g-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; } .g-item input { padding: 6px 8px; font-size: .85rem; }
.g-actions { display: flex; align-items: center; gap: 2px; font-size: .8rem; } .g-actions label { display: flex; gap: 4px; align-items: center; flex: 1; cursor: pointer; }
.files-edit { list-style: none; padding: 0; margin: 4px 0 0; font-size: .9rem; } .files-edit li { padding: 4px 0; }
fieldset.form-grid { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; } fieldset.form-grid legend { font-weight: 700; padding: 0 6px; }
.settings-form .panel-head { margin-top: 10px; }
.recon .kv { margin-bottom: 14px; }

/* ---------- Reports ---------- */
.report-controls { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; } .report-controls .field { margin: 0; } .report-controls select { width: auto; min-width: 160px; }
.report-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 20px 0 14px; padding: 12px 16px; background: var(--sand); border-radius: 10px; }
.report-preview { border: 1px solid var(--line); border-radius: 10px; overflow: auto; max-height: 75vh; background: #ECEAE4; padding: 20px; }
.report { background: #fff; color: #111; max-width: 800px; margin: 0 auto; padding: 36px 40px; font-size: 13px; line-height: 1.45; font-family: Arial, Helvetica, sans-serif; }
.r-cover { display: flex; gap: 24px; align-items: center; border-bottom: 4px solid #B9A155; padding-bottom: 18px; margin-bottom: 20px; }
.r-logo img, .r-logo svg { height: 80px; width: auto; } .r-cover small { text-transform: uppercase; letter-spacing: .08em; color: #122B48; font-weight: 700; }
.r-cover h1 { font-size: 30px; margin: 2px 0; color: #122B48; font-family: Georgia, serif; } .r-cover h2 { font-size: 20px; margin: 0 0 4px; color: #111; font-family: Georgia, serif; } .r-cover p { margin: 0; color: #666; font-size: 12px; }
.r-sec { margin-bottom: 22px; page-break-inside: auto; } .r-sec h3 { font-size: 16px; color: #122B48; border-left: 5px solid #B9A155; padding-left: 10px; margin: 0 0 10px; font-family: Georgia, serif; }
.r-sec h5 { margin: 12px 0 6px; font-size: 13px; }
.r-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.r-kpi { background: #F6F1E6; border-radius: 6px; padding: 10px 12px; } .r-kpi strong { display: block; font-size: 20px; color: #122B48; } .r-kpi span { color: #555; font-size: 11px; }
.r-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 12px; } .r-table th, .r-table td { border: 1px solid #DDD; padding: 5px 8px; text-align: left; vertical-align: top; }
.r-table th { background: #122B48; color: #fff; font-weight: 700; } .r-table .num { text-align: right; }
.r-facts td:nth-child(odd) { background: #F6F1E6; font-weight: 700; width: 18%; }
.r-project { page-break-inside: avoid; border: 1px solid #E6E1D6; border-radius: 6px; padding: 12px 14px; margin-bottom: 12px; }
.r-project h4 { font-size: 15px; margin: 0 0 8px; color: #111; } .r-project p { margin: 6px 0; }
.r-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; } .r-photos figure { margin: 0; } .r-photos img { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; }
.r-photos figcaption { font-size: 10px; color: #666; margin-top: 2px; }
.r-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .r-pick label { position: relative; cursor: pointer; } .r-pick img { width: 110px; height: 80px; object-fit: cover; border-radius: 4px; border: 3px solid transparent; }
.r-pick input { position: absolute; top: 6px; left: 6px; z-index: 1; } .r-pick input:checked + img { border-color: #B9A155; }
.r-foot { font-size: 10px; color: #777; border-top: 1px solid #DDD; padding-top: 8px; }
.pdf-holder { position: fixed; left: -10000px; top: 0; width: 800px; background: #fff; }
.receipt { max-width: 560px; font-size: 12px; } .receipt .r-cover h1 { font-size: 24px; } .receipt .r-cover p { font-size: 10px; margin: 2px 0; } .receipt .r-table td { padding: 6px 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav { display: none; } .nav-toggle { display: inline-flex; } .nav-donate { margin-left: auto; }
  .hero-inner, .split-inner, .two-col, .prose-grid, .project-layout, .donate-layout, .profile { grid-template-columns: 1fr; }
  .split-inner.reverse .split-media { order: 0; } .profile-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; } .sheet { padding: 40px 32px; } .page-pad { padding: 36px 28px 48px; }
  .cover-wrap { margin: 0 -28px; } .profile-head { grid-template-columns: auto 1fr; } .profile-actions { grid-column: 1 / -1; justify-items: start; } .action-row { justify-content: flex-start; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: .2s; z-index: 60; }
  .admin-nav-open .admin-side { transform: none; box-shadow: var(--shadow); }
  .admin-menu { display: inline-flex; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-row { min-height: 72px; gap: 10px; } .brand { flex: 1; min-width: 0; } .brand-text { min-width: 0; }
  .brand-text .b1 { font-size: 1.25rem; } .brand-text .b2 { font-size: .5rem; white-space: normal; line-height: 1.2; } .brand-mark { height: 42px; }
  .nav-donate { font-size: .85rem; padding: .55em 1.1em; }
  .util-bar .container { justify-content: center; } .util-motto { display: none; }
  .hero-inner { padding: 44px 16px 96px; } .hero-card { grid-template-columns: 1fr; text-align: center; justify-items: center; animation: none; }
  .sheet { padding: 28px 18px; border-radius: 18px; } .sheet-overlap { margin-top: -56px; } .page-pad { padding: 28px 16px 40px; border-radius: 18px; margin-bottom: 48px; }
  .band { padding: 20px 0; } .band-navy { padding: 48px 0; } .project-hero .cover-hero { height: 260px; }
  /* Phone ergonomics: two-up people grids, ≥40px tap targets, no text below 12px */
  .people-grid, .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .person { padding: 18px 8px 14px; gap: 6px; } .person strong { font-size: .95rem; } .person span { font-size: .78rem; }
  .person .avatar-lg { width: 72px; height: 72px; font-size: 1.3rem; }
  .btn-sm, .preset, .link-btn, .view-switch a, .icon-btn, .more, .seg label { min-height: 40px; display: inline-flex; align-items: center; }
  .link-btn { padding: 6px 10px; }
  .toolbar { gap: 10px; } .toolbar input, .toolbar select { min-width: 0; width: 100%; } .view-switch { width: 100%; } .view-switch a { flex: 1; justify-content: center; }
  .filters { grid-template-columns: 1fr 1fr; }
  .eyebrow, .crumb { font-size: .78rem; } .avenue-dir small, .sample-tag, .tile-dir, .footer-acct strong, .pill { font-size: .75rem; }
  .tenure-stats { font-size: .85rem; } .kpi-label { font-size: .85rem; } .biz-card .biz-cat, .qr small, .account-note, .hint { font-size: .8rem; }
  .hero h1 { font-size: 2.1rem; } .hero-sub { font-size: 1rem; }
  .account-grid { padding: 14px 14px 4px; } .qr-official img { width: 150px; height: 150px; }
  .biz-links a { min-height: 40px; }
  .side-card { padding: 18px; } .form-card legend { font-size: 1.1rem; }
  .hero-card .portrait { width: 120px; height: 120px; }
  .profile-page { padding-top: 0; } .cover-wrap { margin: 0 -16px; aspect-ratio: 16 / 7; }
  .profile-head { grid-template-columns: 1fr; justify-items: center; text-align: center; margin-top: -60px; gap: 10px; }
  .profile-avatar { width: 128px; height: 128px; font-size: 2.2rem; } .profile-actions { justify-items: center; } .action-row { justify-content: center; }
  .profile-id h1 { font-size: 1.5rem; } .profile-id h1 .nick { display: block; }
  .hero-card .team-strip { justify-content: center; }
  .split, .causes, .team-band, .join-band, .impact { padding-top: 56px; padding-bottom: 56px; } .mission-card { padding: 32px 26px; }
  .row2, .form-grid, .account-grid, .footer-accounts { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .tenure-row { grid-template-columns: auto 1fr; } .tenure-stats { grid-column: 1 / -1; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-card { padding: 20px 16px; } .admin-main { padding: 16px 14px 48px; }
  .r-kpis, .r-photos { grid-template-columns: repeat(2, 1fr); } .report { padding: 20px 16px; }
  .roles li { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .admin-side, .admin-head, .report-controls, .report-actions, .panel-head, .toast { display: none !important; }
  .report-preview { max-height: none; overflow: visible; background: #fff; padding: 0; border: 0; }
}

/* ===================== Donation appeals, needs-your-support ===================== */
.card-hook { margin: 0; color: #4a4a4a; font-size: .95rem; line-height: 1.45; font-style: italic; }
.need-tag { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; background: var(--gold); color: var(--navy-deep); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(11, 29, 51, .25); }
.need-tag svg { width: 13px; height: 13px; }
.project-card.is-open { box-shadow: 0 0 0 2px var(--gold-pale), 0 8px 24px rgba(11, 29, 51, .08); }
.card-donate { align-self: flex-start; margin-top: 4px; }
.appeal-box { position: relative; background: linear-gradient(135deg, #FBF7EA 0%, #fff 70%); border: 1px solid var(--gold-pale); border-inline-start: 5px solid var(--gold); border-radius: 18px; padding: 22px 26px; margin-bottom: 28px; }
.appeal-box .eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-dark); }
.appeal-box p { font-family: var(--head); font-size: 1.15rem; line-height: 1.6; color: var(--navy); margin: 10px 0 16px; }
.appeal-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.appeal-amt { display: inline-flex; align-items: baseline; gap: 5px; border: 2px solid var(--gold-pale); border-radius: 10px; padding: 7px 12px; font-weight: 700; color: var(--navy); background: #fff; }
.appeal-amt small { font-weight: 600; color: var(--muted); }
.appeal-amt:hover { border-color: var(--gold); background: var(--sand); text-decoration: none; }
.donate-appeal:empty { display: none; }
.donate-appeal { display: flex; gap: 14px; align-items: flex-start; background: var(--sand); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.donate-appeal img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; flex: none; }
.donate-appeal p { margin: 0; font-size: .92rem; line-height: 1.5; color: #3d3d3d; }
.preset small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.needs-band .card-body h3 a { color: var(--navy); }
.needs-band .section-lead { max-width: 760px; }
.more-light { color: var(--gold-light); }

/* ===================== Admin: tagline banner + Visitors ===================== */
.admin-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(110deg, var(--navy-deep), var(--navy) 55%, var(--navy-mid)); color: #fff; border-radius: 14px; padding: 22px 26px; margin-bottom: 22px; position: relative; overflow: hidden; }
.admin-hero::after { content: ""; position: absolute; inset: 0; background: var(--lattice) center / 160px 160px; opacity: .25; pointer-events: none; }
.admin-hero > * { position: relative; z-index: 1; }
.admin-hero .eyebrow { color: var(--gold-light); display: inline-flex; align-items: center; gap: 6px; }
.admin-hero h2 { color: #fff; font-family: var(--head); font-size: clamp(1.2rem, 2vw, 1.55rem); margin: 8px 0 6px; max-width: 820px; }
.admin-hero p { margin: 0; color: rgba(255, 255, 255, .8); }
.admin-hero img { width: 74px; height: auto; flex: none; }
.vchart { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 8px; }
.vchart span { flex: 1; min-width: 3px; background: linear-gradient(180deg, var(--gold), var(--gold-dark)); border-radius: 3px 3px 0 0; }
.vchart span:hover { background: var(--navy); }
.vchart-axis { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; }
.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.vbar { display: block; width: 110px; height: 8px; background: var(--sand); border-radius: 4px; overflow: hidden; }
.vbar span { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.bar-cell { width: 120px; }
.flag { font-size: 1.15rem; vertical-align: -2px; margin-right: 4px; }
.small-head { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 6px; font-family: var(--font); }
.share-list { list-style: none; padding: 0; margin: 0; }
.share-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.share-list li:last-child { border-bottom: 0; }
@media (max-width: 1024px) { .audience-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .admin-hero img { display: none; } .bar-cell { display: none; } }

/* ===================== Language switcher ===================== */
.lang-switch { display: inline-flex; gap: 2px; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 2px; }
.lang-switch button { border: 0; background: transparent; color: var(--gold-light); font: 700 .72rem var(--font); letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; cursor: pointer; min-height: 26px; }
.lang-switch button[lang="ar"] { font-family: "Noto Kufi Arabic", "Segoe UI", sans-serif; letter-spacing: 0; font-size: .8rem; }
.lang-switch button.on { background: var(--gold); color: var(--navy-deep); }
.lang-switch button:hover:not(.on) { background: rgba(255, 255, 255, .14); color: #fff; }
.lang-switch-m { margin: 14px 0 4px; align-self: flex-start; }
.lang-switch-m button { font-size: .9rem; padding: 8px 16px; min-height: 40px; }

/* ===================== Arabic (right-to-left) ===================== */
html.lang-ar body { font-family: "Noto Naskh Arabic", "Open Sans", "Segoe UI", Tahoma, sans-serif; }
html.lang-ar h1, html.lang-ar h2, html.lang-ar h3, html.lang-ar .appeal-box p { font-family: "Noto Kufi Arabic", "Noto Naskh Arabic", "Segoe UI", sans-serif; letter-spacing: 0; }
html.lang-ar .eyebrow, html.lang-ar .util-bar, html.lang-ar .need-tag, html.lang-ar .sample-tag { letter-spacing: 0; }
html.lang-ar p { line-height: 1.8; }
[dir="rtl"] .admin, [dir="rtl"] .login { direction: ltr; text-align: left; font-family: var(--font); }
[dir="rtl"] code { direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .util-links, [dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav-toggle, [dir="rtl"] .nav-donate { margin-left: 0; margin-right: auto; }
[dir="rtl"] .main-nav a::after { transform-origin: right; }
[dir="rtl"] .hero-dots { margin-left: 0; margin-right: 14px; }
[dir="rtl"] .hero-arrows .round-btn svg, [dir="rtl"] .more svg { transform: scaleX(-1); }
[dir="rtl"] .hero-card .team-strip .avatar { margin-left: 0; margin-right: -8px; }
[dir="rtl"] .hero-card .team-strip .avatar:first-child { margin-right: 0; }
[dir="rtl"] .section-title::after { left: auto; right: 0; }
[dir="rtl"] .section-title.center::after { right: 50%; transform: translateX(50%); }
[dir="rtl"] .page-head::before { left: auto; right: 20px; }
[dir="rtl"] .sample-tag { left: auto; right: 12px; }
[dir="rtl"] .need-tag { right: auto; left: 12px; }
[dir="rtl"] .cover-crumb { left: auto; right: 20px; }
[dir="rtl"] .person-row { text-align: right; }
[dir="rtl"] .timeline { padding: 0 22px 0 0; border-left: 0; border-right: 2px solid var(--gold-pale); }
[dir="rtl"] .timeline li::before { left: auto; right: -29px; }
[dir="rtl"] .flow { padding-left: 0; padding-right: 1.2em; }
[dir="rtl"] .avenue-head h1 .ic { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .donate-cta, [dir="rtl"] .warn-card { border-left: 0; border-right: 5px solid var(--gold); }
[dir="rtl"] .notice { border-left: 0; border-right: 4px solid var(--info); }
[dir="rtl"] .notice.warn { border-right-color: var(--gold); }
[dir="rtl"] .gallery-item span { text-align: right; }
[dir="rtl"] .ticks li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .ticks li::before { left: auto; right: 0; }
[dir="rtl"] .table th, [dir="rtl"] .table td { text-align: right; }
[dir="rtl"] .table .num { text-align: left; }
[dir="rtl"] .to-top-fab { right: auto; left: 24px; }
@media (max-width: 640px) { [dir="rtl"] .to-top-fab { left: 16px; } }
[dir="rtl"] .skip { left: auto; right: -999px; } [dir="rtl"] .skip:focus { right: 8px; }
[dir="rtl"] .pdf-holder { left: auto; right: -10000px; }

/* ===================== Phone layout pass ===================== */
@media (max-width: 640px) {
  /* compact header: one-line utility bar, smaller logo that stays inside the bar */
  .util-bar { font-size: .66rem; letter-spacing: .06em; }
  .util-bar .container { justify-content: space-between; gap: 10px; padding-top: 4px; padding-bottom: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .util-bar .container::-webkit-scrollbar { display: none; }
  .util-links { gap: 12px; margin-left: 0; } .util-bar a { white-space: nowrap; } .util-bar .util-admin { display: none; }
  .lang-switch button { padding: 2px 8px; min-height: 24px; font-size: .68rem; } .lang-switch button[lang="ar"] { font-size: .74rem; }
  .nav-row { min-height: 60px; gap: 8px; } .brand { gap: 8px; }
  .brand-mark { width: 40px; height: 40px; padding: 4px; border-radius: 10px; }
  .brand-text .b1 { font-size: 1.1rem; } .brand-text .b2 { font-size: .46rem; letter-spacing: .1em; }
  .nav-donate { font-size: .8rem; padding: .5em .95em; }
  .mobile-nav { max-height: calc(100vh - 100px); }
  /* hero */
  .hero-inner { padding: 28px 16px 84px; } .hero-quote { font-size: 2.4rem; margin-bottom: 14px; }
  .hero h1 { font-size: 1.9rem; } .hero-eyebrow { font-size: .92rem; } .hero-sub { margin-bottom: 1.3em; }
  .hero-cta .btn-lg { flex: 1; justify-content: center; padding: .8em 1em; font-size: .95rem; }
  .hero-arrows { margin-top: 18px; }
  /* impact numbers two-up */
  .kpi-strip { grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
  .kpi { padding: 16px 8px 14px; border-radius: 14px; } .kpi-num { font-size: 1.55rem; } .kpi-label { font-size: .78rem; line-height: 1.25; }
  .sheet-overlap { margin-top: -48px; }
  /* project page: image on top, title below it (never over the photo) */
  .project-hero { margin-top: 12px; padding: 0 16px; }
  .project-hero .cover-hero { height: 230px; border-radius: 18px 18px 0 0; box-shadow: none; }
  .project-hero-text { position: static; inset: auto; background: var(--navy-deep); border-radius: 0 0 18px 18px; padding: 14px 0 18px; text-shadow: none; box-shadow: var(--sheet-shadow); }
  .project-hero-text h1 { font-size: 1.45rem; margin: 6px 0 4px; } .project-hero-text p { margin: 0; font-size: .92rem; }
  .project-layout { margin-top: 16px; gap: 24px; }
  .appeal-box { padding: 16px 16px 18px; border-radius: 14px; } .appeal-box p { font-size: 1.02rem; }
  .appeal-cta .btn { flex: 1 1 100%; justify-content: center; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; } .gallery-item { border-radius: 10px; }
  .page-pad, .sheet, .card-body, .side-card, .appeal-box { overflow-wrap: break-word; }
  /* cards */
  .card-grid { gap: 16px; } .card-body { padding: 16px 16px 18px; } .card-body h3 { font-size: 1.1rem; }
  .facts { font-size: .84rem; } .card-donate { align-self: stretch; justify-content: center; }
  .need-tag { font-size: .64rem; padding: 4px 8px; }
  /* needs-your-support band */
  .needs-band .section-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  /* donate form */
  .donate-appeal { flex-direction: column; } .donate-appeal img { width: 100%; height: 150px; }
  .presets { gap: 6px; } .preset { padding: 8px 10px; font-size: .9rem; flex: 1 1 30%; text-align: center; }
  .seg { flex-wrap: wrap; }
  /* footer */
  .footer-cta .container { flex-direction: column; align-items: flex-start; gap: 14px; } .footer-cta .btns { display: flex; flex-wrap: wrap; gap: 8px; }
  .footer-foot { flex-direction: column; gap: 8px; text-align: center; }
  .to-top-fab { width: 42px; height: 42px; right: 12px; bottom: 12px; }
}
@media (max-width: 400px) {
  .brand-text .b2 { display: none; } .hero h1 { font-size: 1.7rem; }
  .filters { grid-template-columns: 1fr; }
}
