/* طوارئ الجديد الثورة ١ — brown & beige, crystal cards, mobile first */
:root {
  --ground: #EEF2F7;
  --ink: #14223A;
  --ink-2: #26354F;
  --muted: #55647A;
  --brown: #1F3A68;      /* headings (navy) */
  --brown-2: #1E3765;    /* active pills, numbers */
  --brown-3: #2B4F8A;    /* links */
  --accent: #8A6A1F;     /* eyebrow text (gold, dark enough to read) */
  --gold: #E3C27A;
  --gold-2: #C9A04A;
  --tint: #DCE4EF;
  --chip: #E6EDF7;
  --chip-ink: #1F3A68;
  --line: rgba(31, 58, 104, .14);
  --line-2: rgba(31, 58, 104, .26);
  --on-dark: #F4F7FB;
  --on-dark-2: #D5DFEC;
  --on-dark-3: #BCCADD;
  --radius: 22px;
  --display: "Amiri", serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); line-height: 1.7; min-height: 100vh;
  background:
    radial-gradient(520px 420px at 100% 0%, rgba(201, 160, 74, .20), transparent 60%),
    radial-gradient(480px 520px at 0% 40%, rgba(43, 79, 138, .14), transparent 60%),
    radial-gradient(560px 560px at 100% 92%, rgba(201, 160, 74, .14), transparent 60%),
    var(--ground);
  background-attachment: fixed;
  padding-bottom: 92px;
}
img { max-width: 100%; display: block; }
a { color: var(--brown-3); }
a:hover { color: var(--brown); }
h1, h2, h3 { font-family: var(--display); color: var(--brown); margin: 0; line-height: 1.35; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- crystal surfaces */
.glass {
  background: rgba(255, 255, 255, .64);
  border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 38px -22px rgba(20, 38, 74, .42);
  border-radius: var(--radius);
}
.glass-dark {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}
.hero {
  background:
    radial-gradient(420px 320px at 88% 0%, rgba(227, 194, 122, .26), transparent 62%),
    radial-gradient(380px 300px at 4% 100%, rgba(43, 79, 138, .14), transparent 60%),
    linear-gradient(160deg, #2A4B85, #142748);
  color: var(--on-dark);
  border-radius: 26px;
}
.hero h1, .hero h2, .hero h3 { color: var(--on-dark); }

/* ---------- header */
.site-header { padding: 12px 14px 0; position: relative; z-index: 20; }
.site-header .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 20px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); }
.brand img { height: 46px; width: auto; }
.brand b { font-family: var(--display); font-size: 19px; line-height: 1.2; display: block; }
.brand small { font-size: 12px; color: var(--muted); }
.top-nav { display: none; }
.top-nav a { color: var(--brown); text-decoration: none; padding: 10px 16px; border-radius: 99px; font-weight: 500; font-size: 15px; }
.top-nav a.on { background: var(--brown-2); color: var(--on-dark); font-weight: 600; }

/* bottom tab bar (phones) */
.tabbar {
  position: fixed; z-index: 50; bottom: 10px; left: 10px; right: 10px; display: flex; justify-content: space-around; padding: 6px;
  border-radius: 24px; background: rgba(255, 255, 255, .86);
}
.tabbar a {
  flex: 1; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0; color: var(--brown); font-size: 12px; border-radius: 18px; min-height: 52px; justify-content: center;
}
.tabbar a.on { background: var(--brown-2); color: var(--on-dark); font-weight: 600; }
.tabbar svg { width: 22px; height: 22px; }

/* ---------- buttons, chips, inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 99px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #14223A; box-shadow: 0 10px 24px -10px rgba(201, 160, 74, .7); }
.btn-brown { background: linear-gradient(180deg, #2E5596, var(--brown)); color: var(--on-dark); }
.btn-ghost { color: var(--on-dark); }
.btn-light { background: rgba(255, 255, 255, .6); color: var(--brown); border: 1px solid var(--line-2); }
.btn-block { width: 100%; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; color: var(--chip-ink); background: var(--chip); padding: 3px 10px; border-radius: 99px; }
.chip-glass { font-size: 13px; padding: 7px 12px; border-radius: 99px; color: var(--brown); }
.pill-outline { align-self: flex-start; color: var(--gold); font-weight: 600; font-size: 12px; border: 1px solid rgba(242, 201, 140, .45); padding: 5px 12px; border-radius: 99px; }

/* ---------- sections */
.section { padding: 28px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 0 4px 14px; }
.section-head h2 { font-size: 28px; }
.section-head a { font-weight: 600; font-size: 14px; padding: 10px 0; white-space: nowrap; }

/* ---------- home */
.home-hero { padding: 26px 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.home-hero h1 { font-size: 32px; line-height: 1.45; }
.home-hero p { color: var(--on-dark-2); font-size: 15px; line-height: 1.9; }
.home-hero .actions { display: flex; gap: 10px; }
.home-hero .actions .btn { flex: 1; padding: 0 10px; }
.hero-quote { padding: 20px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px; }
.hero-quote blockquote { margin: 0; font-family: var(--display); font-size: 21px; line-height: 1.8; }
.hero-quote figcaption { font-size: 12px; color: var(--on-dark-3); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 14px 16px; display: flex; flex-direction: column; }
.stat b { font-family: var(--display); font-size: 28px; color: var(--brown-2); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }
.about { padding: 20px; font-size: 16px; line-height: 2; color: var(--ink-2); display: flex; flex-direction: column; gap: 12px; }

.rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: none; width: 250px; scroll-snap-align: start; }

/* ---------- honoree cards */
.h-card { text-decoration: none; color: inherit; padding: 10px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease; }
.h-card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 26px 44px -22px rgba(20,38,74,.5); }
.h-card .ph, .ph {
  aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; position: relative;
  background: linear-gradient(150deg, #E3EAF4, #B9C7DC); display: flex; align-items: center; justify-content: center;
}
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.ph .mono { font-family: var(--display); font-size: 64px; font-weight: 700; color: rgba(30, 55, 101, .4); }
.h-card .body { padding: 0 6px 6px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.h-card .name { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--brown); line-height: 1.35; }
.h-card .sum { font-size: 14px; line-height: 1.75; color: var(--ink-2); flex: 1; }
.h-card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-cards .h-card .name { font-size: 18px; }
.grid-cards .h-card .sum { display: none; }

/* ---------- filters */
.filters { padding: 12px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 8px; z-index: 10; }
.search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 0 12px; background: rgba(255,255,255,.55); }
.search input { border: 0; outline: none; flex: 1; font: inherit; font-size: 16px; background: transparent; color: var(--ink); min-height: 46px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none; font: inherit; font-size: 14px; min-height: 40px; padding: 0 14px; border-radius: 99px;
  border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, .55); color: var(--ink); cursor: pointer;
}
.chips button.on { background: var(--brown-2); border-color: var(--brown-2); color: var(--on-dark); font-weight: 600; }
.empty { text-align: center; padding: 28px; color: var(--muted); }

/* ---------- honoree page */
.crumb { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 4px 0; }
.portrait { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(150deg, #E3EAF4, #B9C7DC); display: flex; align-items: center; justify-content: center; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.portrait .mono { font-family: var(--display); font-size: 120px; color: rgba(30, 55, 101, .35); }
.portrait:has(> .mono) { aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .portrait:has(> .mono) { aspect-ratio: 4 / 5; } }
.name-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.name-card h1 { font-size: 30px; line-height: 1.35; }
.tribute { padding: 26px 20px; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.tribute p { font-family: var(--display); font-size: 22px; line-height: 2; }
.tribute .by { font-family: var(--body); font-size: 13px; color: var(--on-dark-3); line-height: 1.6; }
.comment { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.comment .who { display: flex; align-items: center; gap: 10px; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--brown-2); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.avatar.named { background: var(--chip); color: var(--chip-ink); }
.comment .who b { font-size: 15px; display: block; line-height: 1.3; }
.comment .who span { font-size: 12px; color: var(--muted); }
.comment p { font-size: 15px; line-height: 1.9; color: var(--ink-2); white-space: pre-line; }
.writing { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.writing .lead { font-family: var(--display); font-size: 19px; line-height: 1.95; color: var(--ink-2); white-space: pre-line; }
.writing details summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--brown-3); padding: 8px 0; list-style: none; }
.writing details summary::-webkit-details-marker { display: none; }
.writing details[open] summary { display: none; }
.writing .full { font-size: 16px; line-height: 2; color: var(--ink-2); white-space: pre-line; }
.link-card { text-decoration: none; color: inherit; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pager a { text-decoration: none; color: inherit; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.pager a b { font-family: var(--display); font-size: 18px; color: var(--brown); }

/* ---------- appeals */
.appeal { padding: 20px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 16px; }
.appeal h2 { font-size: 30px; }
.appeal .quote { font-family: var(--display); font-size: 20px; line-height: 1.9; color: var(--ink-2); }
.figure { background: rgba(255, 255, 255, .45); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.figure b { font-family: var(--display); font-size: 32px; color: var(--brown-2); line-height: 1.15; }
.bar { height: 9px; background: rgba(31, 58, 104, .14); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--brown-3)); border-radius: 99px; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.35); }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: right; font-weight: 600; font-size: 13px; color: var(--muted); padding: 10px 14px; background: rgba(255, 255, 255, .45); }
table.list td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.list td.num { white-space: nowrap; font-weight: 600; }
table.list tfoot td { font-weight: 700; background: rgba(255, 255, 255, .45); }
table.list td:nth-child(2) { width: 100%; }
@media (max-width: 759px) { table.list th:first-child, table.list td:first-child { display: none; } table.list td, table.list th { padding: 10px 12px; } }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; font: inherit; font-size: 14px; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line-2); background: rgba(255,255,255,.55); color: var(--ink); cursor: pointer; }
.tabs button.on { background: var(--brown-2); border-color: var(--brown-2); color: var(--on-dark); font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.steps li.todo { color: var(--chip-ink); }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.mini-stats div { background: rgba(255, 255, 255, .45); border-radius: 12px; padding: 12px 4px; display: flex; flex-direction: column; }
.mini-stats b { font-family: var(--display); font-size: 19px; line-height: 1.4; color: var(--brown-2); }
.mini-stats span { font-size: 12px; color: var(--muted); }
.appeal-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.appeal-nav a { flex: none; color: var(--on-dark); text-decoration: none; padding: 10px 14px; border-radius: 99px; font-size: 14px; }

/* ---------- teachers */
.verse { font-family: var(--display); font-size: 28px; line-height: 1.8; text-align: center; }
.facts { padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; }
.facts span:first-child { color: var(--muted); }
.facts span:last-child { font-weight: 600; text-align: left; }
.article-body { font-size: 17px; line-height: 2.05; color: var(--ink-2); display: flex; flex-direction: column; gap: 14px; }
.pull { padding: 20px; font-family: var(--display); font-size: 24px; line-height: 1.8; color: var(--brown-2); border-radius: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; }
.timeline .yr { flex: none; min-width: 64px; text-align: center; font-weight: 700; color: var(--on-dark); background: var(--brown-2); border-radius: 12px; padding: 6px 8px; font-size: 13px; }
.timeline b { display: block; font-size: 16px; }
.timeline span { font-size: 14px; color: var(--muted); }

/* ---------- footer */
.site-footer { padding: 28px 0 18px; }

/* ---------- tablet & desktop */
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .wrap { padding: 0 24px; }
  .tabbar { display: none; }
  .top-nav { display: flex; gap: 4px; }
  .brand img { height: 58px; }
  .brand b { font-size: 23px; }
  .site-header { padding: 14px 16px 0; }
  .site-header .topbar { padding: 10px 18px; border-radius: 22px; }
  .home-hero { padding: 56px 48px 64px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 36px; border-radius: 32px; }
  .home-hero .text { flex: 999 1 480px; display: flex; flex-direction: column; gap: 20px; }
  .home-hero h1 { font-size: 52px; line-height: 1.3; }
  .home-hero p { font-size: 18px; }
  .home-hero .actions .btn { flex: none; padding: 0 26px; }
  .hero-quote { flex: 1 1 320px; padding: 30px; }
  .hero-quote blockquote { font-size: 25px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .stat { padding: 22px 24px; }
  .stat b { font-size: 40px; }
  .section { padding-top: 56px; }
  .section-head h2 { font-size: 40px; }
  .about { padding: 32px; font-size: 18px; }
  .rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: 22px; }
  .rail > * { width: auto; }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
  .grid-cards .h-card .name { font-size: 22px; }
  .grid-cards .h-card .sum { display: block; }
  .filters { flex-direction: row; align-items: center; position: static; }
  .filters .search { flex: 1; }
  .honoree-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px; align-items: start; }
  .honoree-layout .side { position: sticky; top: 16px; }
  .tribute { padding: 44px 40px; }
  .tribute p { font-size: 30px; }
  .appeal { padding: 34px; }
  .appeal h2 { font-size: 38px; }
  .appeal-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
  .two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .teacher-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: start; }
  .verse { font-size: 42px; }
}

/* ---------- shared blocks */
.hero .eyebrow { color: var(--gold); }
a.hero, .hero a.teaser { color: var(--on-dark); text-decoration: none; }
.page-hero { padding: 28px 20px; display: flex; flex-direction: column; gap: 12px; }
.page-hero h1 { font-size: 36px; }
.page-hero p { color: var(--on-dark-2); line-height: 1.9; }
.page-hero.center { text-align: center; align-items: center; }
.quote-line { font-family: var(--display); font-size: 20px; line-height: 1.9; max-width: 720px; }
.teaser { padding: 26px 22px; display: flex; flex-direction: column; gap: 8px; }
.teaser-title { font-family: var(--display); font-size: 30px; line-height: 1.5; color: var(--on-dark); }
.teaser-text { color: var(--on-dark-2); line-height: 1.85; font-size: 16px; }
.card-title { font-size: 17px; color: var(--brown); }
.progress-label { font-weight: 600; color: var(--brown-3); }
.subtitle { font-family: var(--display); font-size: 22px; color: var(--brown-3); }
.more { cursor: pointer; font-weight: 600; color: var(--brown-3); padding: 8px 0; }
.lead-text { font-family: var(--display); font-size: 19px; line-height: 2; color: var(--ink-2); }
.appeal-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

/* ---------- donation card (footer) */
.donate { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.donate h2 { font-size: 26px; }
.donate-card { width: 100%; border-radius: 16px; box-shadow: 0 14px 30px -18px rgba(20, 38, 74, .5); }
.donate-info { margin: 0; display: grid; gap: 8px; }
.donate-info div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); }
.donate-info dt { color: var(--muted); font-size: 14px; }
.donate-info dd { margin: 0; font-weight: 700; color: var(--brown); text-align: left; }
.donate-info .acct { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: .5px; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; min-height: 40px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; color: var(--brown-3); cursor: pointer; }
.copy-btn.done { background: var(--brown-2); color: var(--on-dark); border-color: var(--brown-2); }
.footer-note { text-align: center; font-size: 13px; color: var(--muted); padding: 16px 0 4px; }
@media (min-width: 760px) {
  .page-hero { padding: 44px 40px; border-radius: 32px; }
  .page-hero h1 { font-size: 48px; }
  .quote-line { font-size: 24px; }
  .teaser { padding: 44px 48px; border-radius: 30px; }
  .teaser-title { font-size: 38px; }
  .donate { padding: 28px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; column-gap: 28px; }
  .donate h2 { grid-column: 1 / -1; font-size: 32px; }
  .donate-card { grid-row: span 2; }
}

/* ---------- what طوارئ has done */
/* ---------- footer credits */
.credits { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; padding: 18px 0 4px; font-size: 14px; color: var(--muted); }
.credits b { color: var(--brown); font-weight: 600; }

/* =====================================================================
   2026-10 redesign: navy masthead, white content cards, navy tab bar.
   Shared parts (masthead, tab bar, donate box) apply to every page;
   the home sections follow the mobile home design.
   ===================================================================== */
:root { --heading: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif; --navy: #142748; --page: #F3F5F9; }
body { background: var(--page); padding-bottom: 100px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; color: #14274A; }

/* ---------- masthead (all pages) */
.masthead { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 0 0 34px 34px; padding: 18px 20px 22px; }
.masthead.has-hero { padding-bottom: 32px; }
.masthead .rings { position: absolute; pointer-events: none; }
.masthead .rings-a { top: -96px; left: -110px; }
.masthead .rings-b { bottom: -120px; right: -70px; }
.masthead-inner { position: relative; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-logo { flex: none; width: 50px; height: 50px; border-radius: 17px; background: #fff; display: flex; align-items: center; justify-content: center; }
.brand-logo img { width: 40px; height: 43px; object-fit: contain; }
.brand-name { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; }
.brand-name b { font-family: var(--heading); font-weight: 700; font-size: 16px; color: #fff; line-height: 1.5; }
.brand-name span { font-family: "Amiri", serif; font-size: 15px; color: var(--gold); line-height: 1.5; }
.brand-name:hover b { color: #fff; }
.masthead .top-nav a { color: var(--on-dark-2); }
.masthead .top-nav a:hover { color: #fff; }
.masthead .top-nav a.on { background: var(--gold); color: #14223A; }

/* ---------- home intro (inside the masthead) */
.home-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.place-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(227, 194, 122, .12); border: 1px solid rgba(227, 194, 122, .4); color: var(--gold); font-size: 12px; font-weight: 500; line-height: 1.6; }
.place-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.home-intro h1 { font-size: 27px; line-height: 1.6; color: #fff; text-wrap: balance; }
.home-intro p { font-size: 14.5px; line-height: 1.95; color: var(--on-dark-2); text-wrap: pretty; }
.intro-actions { align-self: stretch; display: flex; gap: 10px; margin-top: 6px; }
.btn-cta, .btn-line { height: 52px; border-radius: 17px; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 600; font-size: 14.5px; text-decoration: none; padding: 0 12px; }
.btn-cta { flex: 1.25; background: var(--gold); color: #14223A; }
.btn-cta:hover { background: #F0D9A0; color: #14223A; }
.btn-line { flex: 1; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- home sections */
.home { max-width: 1200px; margin: 0 auto; }
.home-block { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.home-block.pad { padding: 0 16px; }
.block-head { padding: 0 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.home-block.pad .block-head { padding: 0 4px; }
.block-head .eyebrow { display: block; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.block-head h2 { font-size: 21px; line-height: 1.5; }
.block-head a { flex: none; min-height: 44px; display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 600; color: var(--brown-3); text-decoration: none; }

/* honorees: swipeable photo strip */
.strip { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip-card { position: relative; flex: 0 0 152px; height: 212px; border-radius: 24px; overflow: hidden; background: #1E3765; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; }
.strip-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.strip-card .mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 64px; color: rgba(255, 255, 255, .3); }
.strip-card .shade { position: absolute; inset: 38% 0 0 0; background: linear-gradient(to top, rgba(9, 18, 36, .94), rgba(9, 18, 36, .6) 45%, rgba(9, 18, 36, 0)); }
.strip-card .count { position: absolute; top: 10px; inset-inline-end: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(9, 18, 36, .72); color: #fff; font-size: 11.5px; line-height: 1.6; }
.strip-card .cap { position: relative; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.strip-card .cap b { font-family: var(--heading); font-weight: 600; font-size: 14px; line-height: 1.6; color: #fff; }
.strip-card .cap span { font-size: 11.5px; color: var(--on-dark-2); }

/* appeals: one row per appeal with a status mark */
.appeal-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.appeal-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid #E6EBF2; border-radius: 22px; color: var(--ink); text-decoration: none; }
.appeal-row:hover { border-color: #C9D5E6; color: var(--ink); }
.mark { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mark.done { background: #1E3765; color: #fff; }
.mark.soft { background: #E9EFF8; color: #1E3765; }
.mark.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.mark.ring b { position: relative; font-family: var(--heading); font-weight: 700; font-size: 13px; color: #1E3765; }
.appeal-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.appeal-text .status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; }
.appeal-text .status .dot { width: 6px; height: 6px; border-radius: 50%; }
.appeal-text .status.done { color: #1F6045; }
.appeal-text .status.done .dot { background: #2E8560; }
.appeal-text .status.ongoing { color: var(--brown-3); }
.appeal-text .status.ongoing .dot { background: var(--brown-3); }
.appeal-text .status.active { color: #7A5C14; }
.appeal-text .status.active .dot { background: var(--gold-2); }
.appeal-text b { font-family: var(--heading); font-weight: 600; font-size: 15.5px; line-height: 1.5; color: #14274A; }
.appeal-text .sum { font-size: 13px; line-height: 1.7; color: var(--muted); }
.appeal-text .figure-line { font-size: 12px; font-weight: 600; color: #1E3765; }

/* work: one white card listing everything */
.work-list { list-style: none; margin: 0; padding: 4px 16px; background: #fff; border: 1px solid #E6EBF2; border-radius: 24px; display: flex; flex-direction: column; }
.work-list li { display: flex; align-items: center; gap: 14px; padding: 13px 0; }
.work-list li + li { border-top: 1px solid #EDF1F6; }
.work-ic { flex: none; width: 44px; height: 44px; border-radius: 15px; background: #F7EFD9; color: #6B5010; display: flex; align-items: center; justify-content: center; }
.work-list p { margin: 0; flex: 1; font-size: 14px; line-height: 1.8; color: var(--ink-2); }

/* about */
.about-block { padding: 0 20px; gap: 12px; }
.about-block .block-head { padding: 0; }
.gold-bar { width: 40px; height: 4px; border-radius: 4px; background: var(--gold-2); }
.about-block p { font-size: 14.5px; line-height: 2; color: var(--ink-2); text-wrap: pretty; }

/* ---------- donate box (footer, all pages) */
.site-footer { padding: 34px 0 18px; }
.donate-box { position: relative; overflow: hidden; padding: 22px 20px; background: var(--navy); border-radius: 30px; display: flex; flex-direction: column; gap: 16px; color: #fff; scroll-margin-top: 16px; }
.donate-box .rings { position: absolute; top: -110px; left: -90px; pointer-events: none; }
.donate-head, .donate-acct, .donate-dl, .donate-note, .donate-box .donate-card { position: relative; }
.donate-head h2 { font-size: 22px; line-height: 1.5; color: #fff; }
.donate-box .donate-card { width: 100%; border-radius: 18px; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.donate-acct { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.donate-acct .lbl { display: block; font-size: 12px; color: var(--on-dark-3); }
.donate-acct .num { display: block; font-family: var(--heading); font-weight: 700; font-size: 34px; letter-spacing: 2px; line-height: 1.35; color: #fff; }
.donate-box .copy-btn { flex: none; height: 46px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--gold); color: #14223A; font-weight: 600; font-size: 14px; }
.donate-box .copy-btn.done { background: #fff; color: #14223A; }
.donate-dl { margin: 0; display: flex; flex-direction: column; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 2px 16px; }
.donate-dl div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.donate-dl div + div { border-top: 1px solid rgba(255, 255, 255, .14); }
.donate-dl dt { font-size: 12.5px; color: var(--on-dark-3); }
.donate-dl dd { margin: 0; font-size: 14px; font-weight: 600; color: #fff; text-align: end; }
.donate-note { font-size: 12.5px; line-height: 1.9; color: var(--on-dark-2); }
.credits { font-size: 12.5px; padding-top: 22px; }

/* ---------- navy tab bar (phones) */
.tabbar { bottom: 14px; left: 16px; right: 16px; gap: 4px; padding: 7px; background: var(--navy); border: 0; border-radius: 26px; box-shadow: 0 22px 40px -18px rgba(9, 18, 36, .7); }
.tabbar a { min-height: 54px; border-radius: 20px; color: var(--on-dark-2); font-size: 11.5px; font-weight: 500; }
.tabbar a:hover { color: #fff; }
.tabbar a.on { background: var(--gold); color: #14223A; font-weight: 600; }

/* ---------- wider screens */
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .masthead { padding: 22px 32px 26px; border-radius: 0 0 40px 40px; }
  .masthead.has-hero { padding-bottom: 56px; }
  .brand-logo { width: 58px; height: 58px; }
  .brand-name b { font-size: 19px; }
  .masthead .top-nav { gap: 4px; }
  .home-intro { max-width: 760px; gap: 18px; }
  .home-intro h1 { font-size: 42px; line-height: 1.5; }
  .home-intro p { font-size: 17px; }
  .intro-actions { align-self: flex-start; }
  .btn-cta, .btn-line { flex: none; padding: 0 28px; }
  .home-block { margin-top: 48px; }
  .home-block.pad, .about-block { padding: 0 24px; }
  .block-head { padding: 0 24px; }
  .block-head h2 { font-size: 28px; }
  .strip { padding: 0 24px 8px; scroll-padding-inline: 24px; gap: 16px; }
  .strip-card { flex-basis: 200px; height: 280px; }
  .strip-card .cap b { font-size: 16px; }
  .appeal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .work-list { padding: 6px 24px; }
  .work-list p { font-size: 15.5px; }
  .about-block p { font-size: 16.5px; max-width: 760px; }
  .donate-box { max-width: 760px; margin: 0 auto; padding: 30px 32px; }
}

/* ---------- writings: collapse / expand in place */
.writing-text { font-size: 16px; line-height: 2; color: var(--ink-2); white-space: pre-line; }
.more-btn { align-self: flex-start; font: inherit; font-size: 14px; font-weight: 600; color: var(--brown-3); background: none; border: 0; padding: 8px 0; min-height: 44px; cursor: pointer; }

/* ---------- home: all contributors, two per row */
.strip.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
.strip.grid2 .strip-card { height: auto; aspect-ratio: 3 / 4; }
@media (min-width: 760px) { .strip.grid2 { gap: 18px; } .strip.grid2 .strip-card { aspect-ratio: 4 / 5; } }

/* ---------- install-as-app window (same pattern as the Aljadid family site) */
.install-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(9, 18, 36, .55); opacity: 0; transition: opacity .2s ease; }
.install-modal.open { opacity: 1; }
.install-card { width: min(340px, 100%); background: #fff; border-radius: 22px; padding: 26px 22px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 30px 60px -20px rgba(9, 18, 36, .6);
  transform: scale(.94); transition: transform .2s ease; }
.install-modal.open .install-card { transform: scale(1); }
.install-icon { width: 84px; height: 84px; border-radius: 22px; background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -10px rgba(20, 38, 74, .45); border: 1px solid rgba(31, 58, 104, .1); }
.install-icon img { width: 72px; height: 72px; border-radius: 18px; }
.install-card h2 { margin: 6px 0 0; font-size: 19px; color: var(--brown); line-height: 1.4; }
.install-card p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.install-steps { margin: 4px 0 0; padding: 10px 12px; padding-inline-start: 28px; width: 100%; box-sizing: border-box; text-align: right;
  background: var(--ground); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.install-steps svg { vertical-align: -3px; color: var(--brown-3); }
.install-actions { display: flex; gap: 10px; width: 100%; margin-top: 8px; }
.install-btn { flex: 1.4; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px;
  min-height: 48px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; background: linear-gradient(160deg, #2A4B85, #142748);
  animation: installPulse 2s ease-in-out infinite; }
.install-later { flex: 1; font: inherit; font-weight: 600; font-size: 15px; min-height: 48px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--brown-3); border: 1.5px solid var(--line-2); }
@keyframes installPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(42, 75, 133, .45); } 50% { box-shadow: 0 0 0 10px rgba(42, 75, 133, 0); } }
@media (prefers-reduced-motion: reduce) { .install-btn { animation: none; } .install-modal, .install-card { transition: none; } }
