/* الجديد الثورة ١ — main portal. Phone-first, RTL. */
:root {
  --ground: #F5F7FA;
  --ground-2: #EDF2F7;
  --surface: #FFFFFF;
  --ink: #1F2937;
  --muted: #5B6573;
  --brick: #0A7C72;
  --brick-deep: #1E3A5F;
  --sand: #DDF2EF;
  --gold: #F59E0B;
  --gold-ink: #92590A;
  --green: #2F6B4F;
  --line: rgba(30, 58, 95, .12);
  --shadow: 0 1px 2px rgba(30, 58, 95, .06), 0 8px 24px -12px rgba(30, 58, 95, .18);
  --radius: 18px;
  --heading: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --display: "Amiri", serif;
  --tabbar: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 16px/1.75 var(--body);
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: var(--brick); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.35; margin: 0; color: var(--brick-deep); }
h1 { font-weight: 700; } h2 { font-weight: 600; font-size: 1.25rem; } h3 { font-weight: 600; font-size: 1.02rem; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(245, 247, 250, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brick-deep); text-decoration: none !important; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { font: 700 1.08rem/1.2 var(--heading); display: block; }
.brand small { display: block; font-size: .72rem; color: var(--muted); }
.mainnav { display: none; margin-inline-start: auto; gap: 2px; }
.mainnav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); font-size: .93rem; text-decoration: none; }
.mainnav a:hover { background: var(--ground-2); }
.mainnav a.on { background: var(--brick); color: #fff; }
@media (min-width: 900px) { .mainnav { display: flex; } }

/* ---------- bottom tab bar (phones) ---------- */
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px -14px rgba(30,58,95,.35); }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tabbar);
  color: var(--muted); font: 500 .72rem var(--body); background: none; border: 0; cursor: pointer; text-decoration: none; }
.tabbar .icon { width: 24px; height: 24px; }
.tabbar .on { color: var(--brick); }
.tabbar .on .icon { stroke-width: 2.2; }
@media (min-width: 900px) { .tabbar { display: none; } }

/* "more" sheet */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet.open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(19, 38, 63, .45); }
.sheet-panel { position: absolute; inset-inline: 0; bottom: 0; background: var(--ground); border-radius: 22px 22px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 85vh; overflow: auto; }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 14px; }
.sheet h3 { font-size: .85rem; color: var(--muted); margin: 14px 4px 8px; font-weight: 500; }
.sheet-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-list a { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-size: .92rem; text-decoration: none; }
.sheet-list a .icon { color: var(--brick); }

/* ---------- hero ---------- */
.hero { background: var(--brick-deep); color: #F8FBFF; position: relative; overflow: hidden; }
.hero-gate { position: absolute; inset-inline-start: -120px; bottom: -200px; width: 560px; height: 560px; opacity: .10; pointer-events: none; }
.hero .wrap { padding-block: 34px 26px; position: relative; z-index: 1; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--sand); background: rgba(255,255,255,.1); padding: 4px 12px; border-radius: 999px; }
.hero h1 { color: #FFF; font-size: clamp(1.6rem, 6vw, 2.6rem); margin: 12px 0 8px; }
.hero p { color: #DCE7F2; max-width: 640px; margin: 0; }
.sitecards { display: grid; gap: 10px; margin-top: 22px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .sitecards { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.sitecard { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  color: #F8FBFF; text-decoration: none !important; transition: background .2s, transform .2s; min-height: 118px; }
.sitecard:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.sitecard .icon { width: 30px; height: 30px; color: var(--gold); }
.sitecard b { font: 600 .95rem/1.35 var(--heading); }
.sitecard span { font-size: .78rem; color: #D3E1EE; line-height: 1.55; }
.sitecard em { font-style: normal; font-size: .74rem; color: var(--gold); margin-top: auto; display: flex; align-items: center; gap: 4px; }

/* ---------- sections ---------- */
.section { padding-block: 26px; }
.section + .section { padding-top: 6px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { display: flex; align-items: center; gap: 8px; }
.section-head h2 .icon { color: var(--gold-ink); }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.more { font-size: .88rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.pagehead { padding-block: 26px 10px; }
.pagehead h1 { font-size: clamp(1.45rem, 5vw, 2rem); }
.pagehead p { color: var(--muted); margin: 6px 0 0; max-width: 680px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 16px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--ground-2); color: var(--brick-deep); font-size: .76rem; font-weight: 500; }
.chip.gold { background: #FEF3C7; color: var(--gold-ink); }
.chip.green { background: #E3F0E8; color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips a { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .86rem; text-decoration: none; }
.chips a.on { background: var(--brick); border-color: var(--brick); color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent;
  font: 600 .93rem var(--body); cursor: pointer; text-decoration: none !important; background: var(--brick); color: #fff; }
.btn:hover { background: var(--brick-deep); }
.btn.ghost { background: transparent; color: var(--brick); border-color: var(--line); }
.btn.ghost:hover { background: var(--ground-2); }
.btn.gold { background: var(--gold); color: var(--brick-deep); }

.empty { text-align: center; padding: 28px 18px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,.5); }
.empty .icon { width: 34px; height: 34px; color: var(--gold-ink); margin: 0 auto 8px; display: block; }
.empty b { display: block; color: var(--ink); font-family: var(--heading); font-weight: 600; margin-bottom: 4px; }

/* ---------- tree announcements ---------- */
.ann-cols { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ann-cols { grid-template-columns: repeat(3, 1fr); } }
.ann h3 { display: flex; align-items: center; gap: 8px; font-size: .95rem; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ann ul { list-style: none; margin: 0; padding: 4px 0; }
.ann li a { display: block; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.ann li a:hover { background: var(--ground); }
.ann li + li a { border-top: 1px solid var(--line); }
.ann li b { display: block; font-weight: 600; font-size: .93rem; }
.ann li span { font-size: .8rem; color: var(--muted); }
.ann.birth h3 .icon { color: var(--green); }
.ann.death h3 .icon { color: var(--muted); }
.ann.event h3 .icon { color: var(--gold-ink); }

/* ---------- progress (appeals, cases) ---------- */
.cause { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); text-decoration: none !important; }
.cause .thumb { aspect-ratio: 16/9; background: var(--ground-2) center/cover; }
.cause .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cause h3 { font-size: .98rem; }
.cause p { font-size: .86rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bar { height: 8px; border-radius: 99px; background: var(--ground-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #D97706); }
.cause .meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.from { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); }

/* ---------- people ---------- */
.avatars { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.avatars::-webkit-scrollbar { height: 6px; } .avatars::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.person { scroll-snap-align: start; text-align: center; color: var(--ink); text-decoration: none !important; display: block; }
.person .ph { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; background: var(--sand) center/cover; border: 3px solid var(--surface); box-shadow: var(--shadow);
  display: grid; place-items: center; font: 700 1.8rem var(--heading); color: var(--brick); }
.person b { display: block; font-size: .86rem; line-height: 1.4; font-weight: 600; }
.person span { display: block; font-size: .74rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.people-grid { display: grid; gap: 18px 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .people-grid { grid-template-columns: repeat(5, 1fr); } }
.people-grid .person .ph { width: 110px; height: 110px; }

.profile { display: grid; gap: 22px; }
@media (min-width: 900px) { .profile { grid-template-columns: 300px 1fr; align-items: start; } }
.profile-card { text-align: center; padding: 22px 18px; }
@media (min-width: 900px) { .profile-card { position: sticky; top: 80px; } }
.profile-card .ph { width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 14px; background: var(--sand) center/cover; display: grid; place-items: center;
  font: 700 3rem var(--heading); color: var(--brick); border: 4px solid var(--surface); box-shadow: var(--shadow); }
.profile-card h1 { font-size: 1.35rem; }
.profile-card .role { color: var(--gold-ink); font-weight: 500; margin-top: 4px; }
.facts { list-style: none; padding: 0; margin: 14px 0 0; text-align: start; font-size: .88rem; }
.facts li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.facts li span { color: var(--muted); }

/* ---------- articles ---------- */
.article-card { display: flex; gap: 14px; padding: 14px; color: var(--ink); text-decoration: none !important; }
.article-card .cover { width: 96px; height: 96px; border-radius: 12px; background: var(--sand) center/cover; flex: none; }
.article-card h3 { font-size: 1rem; margin-bottom: 4px; }
.article-card p { font-size: .86rem; color: var(--muted); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.byline { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.byline .mini { width: 26px; height: 26px; border-radius: 50%; background: var(--sand) center/cover; display: grid; place-items: center; font: 700 .75rem var(--heading); color: var(--brick); }
.prose { font-size: 1.06rem; line-height: 2; }
.prose h2, .prose h3 { margin: 1.4em 0 .5em; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-inline-start: 4px solid var(--gold); background: var(--ground-2); border-radius: 0 12px 12px 0; font-family: var(--display); font-size: 1.15rem; }
.prose img { border-radius: 12px; margin: 1em auto; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.reading { max-width: 760px; margin-inline: auto; }
.article-cover { border-radius: var(--radius); aspect-ratio: 16/8; background: var(--sand) center/cover; margin-bottom: 18px; }

/* ---------- library ---------- */
.books { display: grid; gap: 16px 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .books { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .books { grid-template-columns: repeat(5, 1fr); } }
.book { color: var(--ink); text-decoration: none !important; display: block; }
.book .cover { aspect-ratio: 3/4; border-radius: 10px; background: var(--sand) center/cover; box-shadow: 0 10px 22px -12px rgba(30,58,95,.55); margin-bottom: 8px;
  display: grid; place-items: center; text-align: center; padding: 10px; font: 600 .86rem/1.5 var(--heading); color: var(--brick-deep); border: 1px solid var(--line); }
.book b { display: block; font-size: .88rem; font-weight: 600; line-height: 1.45; }
.book span { display: block; font-size: .76rem; color: var(--muted); }
.videos { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .videos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.video video { width: 100%; aspect-ratio: 16/9; background: #0F1B2D; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.video .body { padding: 12px 14px; }
.video b { font-size: .92rem; font-weight: 600; display: block; line-height: 1.5; }
.tabs { display: flex; gap: 6px; background: var(--ground-2); padding: 4px; border-radius: 14px; width: fit-content; margin-bottom: 18px; }
.tabs a { padding: 8px 18px; border-radius: 10px; color: var(--ink); font-weight: 500; text-decoration: none; font-size: .92rem; }
.tabs a.on { background: var(--surface); color: var(--brick); box-shadow: var(--shadow); }

/* ---------- market ---------- */
.prices { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .prices { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .prices { grid-template-columns: repeat(3, 1fr); } }
.price { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--ink); text-decoration: none !important; }
.price img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--ground-2); }
.price .n { flex: 1; min-width: 0; }
.price .n b { display: block; font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price .n span { font-size: .76rem; color: var(--muted); }
.price .v { text-align: end; font: 700 1rem var(--heading); color: var(--brick); white-space: nowrap; }
.price .v small { display: block; font: 400 .72rem var(--body); color: var(--muted); }
.price .v s { display: block; font: 400 .74rem var(--body); color: var(--muted); }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stats .card { padding: 10px 16px; display: flex; flex-direction: column; min-width: 120px; }
.stats b { font: 700 1.3rem var(--heading); color: var(--brick); }
.stats span { font-size: .8rem; color: var(--muted); }

/* ---------- links ---------- */
.fb { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--ink); text-decoration: none !important; }
.fb .logo { width: 44px; height: 44px; border-radius: 12px; background: #1877F2; color: #fff; display: grid; place-items: center; flex: none; }
.fb .logo .icon { width: 24px; height: 24px; stroke: none; fill: currentColor; }
.fb b { display: block; font-weight: 600; }
.fb span { display: block; font-size: .82rem; color: var(--muted); }
.fb .go { margin-inline-start: auto; color: var(--muted); }

/* ---------- forum ---------- */
.post { padding: 16px; }
.post header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.post .mini { width: 38px; height: 38px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font: 700 .95rem var(--heading); color: var(--brick); flex: none; }
.post header b { display: block; font-size: .93rem; }
.post header span { font-size: .78rem; color: var(--muted); }
.post h3 { margin-bottom: 4px; }
.post p { white-space: pre-line; margin: 0; }
.form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(13, 148, 136, .15); }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.field-validation-error, .err { color: #A3261B; font-size: .82rem; }
.notice { padding: 14px 16px; border-radius: 14px; background: #E3F0E8; color: #1F4D37; display: flex; gap: 10px; align-items: start; }
.notice.warn { background: #FEF3C7; color: #6B4510; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.layout-2 { display: grid; gap: 22px; }
@media (min-width: 900px) { .layout-2 { grid-template-columns: 1fr 380px; align-items: start; } .layout-2 > aside { position: sticky; top: 80px; } }

/* ---------- footer ---------- */
.footer { margin-top: 30px; background: var(--brick-deep); color: #D3E1EE; }
.footer .wrap { padding-block: 28px; display: grid; gap: 22px; }
@media (min-width: 800px) { .footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { color: #FFFFFF; font-size: .95rem; margin-bottom: 10px; }
.footer a { color: #DCE7F2; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.footer .brand { color: #FFFFFF; margin-bottom: 10px; }
.footer .brand small { color: #BFD1E3; }
.footer p { font-size: .88rem; color: #BFD1E3; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; color: #8EA3BC; padding-block: 12px; text-align: center; }

.install { display: none; align-items: center; gap: 10px; padding: 10px 14px; margin-top: 14px; border-radius: 14px; background: rgba(255,255,255,.12); color: #F8FBFF; font-size: .86rem; }
.install.show { display: flex; }
.install button { margin-inline-start: auto; }

/* ===== from the Claude Design canvas: tree palette, logos, icon tiles ===== */
.hero .wrap { display: grid; gap: 28px; padding-block: 40px 56px; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 48px; padding-block: 56px 64px; } }
.hero h1 { font-weight: 800; }
.hero-side > span { display: block; font: 600 .9rem var(--heading); color: #DCE7F2; margin-bottom: 10px; }
.sitecards { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.sitecard { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 20px; min-height: 0; }
.sitecard img { width: 60px; height: 60px; border-radius: 16px; flex: none; box-shadow: 0 10px 20px -10px rgba(0,0,0,.6); }
.sitecard .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sitecard em { direction: ltr; justify-content: flex-end; }
@media (max-width: 600px) {
  .sitecards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .sitecard { flex-direction: column; align-items: center; text-align: center; padding: 0; background: none !important; border: 0; gap: 6px; }
  .sitecard img { width: 64px; height: 64px; border-radius: 18px; }
  .sitecard .t > span, .sitecard em { display: none; }
  .sitecard b { font-size: .74rem; font-weight: 500; }
  .sitecard b .long { display: none; }
}
@media (min-width: 601px) { .sitecard b .short { display: none; } }

.quick { position: relative; margin-top: -30px; z-index: 2; }
.quick .card { border-radius: 24px; padding: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; box-shadow: 0 1px 2px rgba(30,58,95,.06), 0 18px 40px -22px rgba(30,58,95,.4); }
@media (min-width: 900px) { .quick .card { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; } }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 2px; border-radius: 16px; color: var(--ink); text-align: center; font-size: .82rem; font-weight: 500; text-decoration: none; transition: transform .2s, background .2s; }
.quick a:hover { background: var(--ground); transform: translateY(-2px); }
@media (min-width: 900px) { .quick a { font-size: .9rem; } }

.ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; flex: none; }
.ico .icon { width: 26px; height: 26px; }
.ico.sm { width: 38px; height: 38px; border-radius: 11px; } .ico.sm .icon { width: 20px; height: 20px; }
.ico.lg { width: 52px; height: 52px; border-radius: 16px; }
.t-teal { background: #D5EFEC; color: #0A7C72; } .t-navy { background: #E6EDF4; color: #1E3A5F; } .t-blue { background: #E6ECF5; color: #2D4A7A; }
.t-amber { background: #FEF3C7; color: #92590A; } .t-green { background: #E3F0E8; color: #2F6B4F; } .t-red { background: #F6E1E1; color: #9A3434; }
.t-fb { background: #E7F0FE; color: #1877F2; } .t-plum { background: #EFE6F6; color: #5E3A87; } .t-grey { background: #ECEEF1; color: #4B5563; }
.t-solid-fb { background: #1877F2; color: #fff; }
.logo-ico { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.logo-ico.sm { width: 26px; height: 26px; border-radius: 8px; }
.section-head h2 { font-size: 1.35rem; font-weight: 700; }
.head-l { display: flex; align-items: center; gap: 14px; }

.ann h3 { gap: 10px; font-size: 1.02rem; padding: 14px 18px; }
.ann li a { padding: 12px 18px; }
.cause { border-radius: 22px; }
.cause .src { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--muted); }
.cause .tag { margin-inline-start: auto; padding: 2px 10px; border-radius: 999px; font-weight: 500; }
.cause .ttl { display: flex; align-items: center; gap: 12px; }

.person { position: relative; }
.person .badge { position: absolute; top: 70px; inset-inline-end: calc(50% - 50px); width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: #fff; }
.people-grid .person .badge { top: 82px; inset-inline-end: calc(50% - 56px); }
.person.add .ph { background: transparent; border: 2px dashed rgba(13,148,136,.35); box-shadow: none; color: var(--brick); }

.cta-dark { border-radius: 26px; background: var(--brick-deep); color: #F8FBFF; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.cta-dark h2 { color: #fff; font-size: 1.45rem; }
.cta-dark p { color: #D3E1EE; margin: 0; }
.cta-dark .kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.cta-dark .kinds span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.10); font-size: .82rem; color: #DCE7F2; }
.cta-dark .kinds .icon { width: 15px; height: 15px; color: var(--gold); }
.ico.on-dark { background: rgba(245,158,11,.18); color: var(--gold); }

.footer-sites a { display: flex; align-items: center; gap: 10px; }
.footer-sites img { width: 28px; height: 28px; border-radius: 8px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.footer-links a { display: flex; align-items: center; gap: 8px; }
.footer-links .icon { color: var(--gold); width: 17px; height: 17px; }
.sheet-list img { width: 34px; height: 34px; border-radius: 10px; }
.mainnav a { display: inline-flex; align-items: center; gap: 6px; }
.mainnav .icon { width: 18px; height: 18px; }
.lib { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; align-items: start; }
.lib-videos { display: flex; flex-direction: column; gap: 10px; }
.vrow { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; color: var(--ink); font-size: .9rem; font-weight: 500; line-height: 1.5; text-decoration: none !important; }
.vthumb { width: 96px; height: 60px; border-radius: 10px; background: #1F2937; display: grid; place-items: center; flex: none; }
.vthumb span { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--brick); }
.vthumb .icon { width: 14px; height: 14px; }

/* ===== admin ===== */
.admin { display: flex; flex-wrap: wrap; gap: 0; min-height: 100vh; padding-bottom: 0; }
.admin-side { flex: 1 1 240px; max-width: 100%; background: var(--brick-deep); color: #DCE7F2; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 900px) { .admin-side { flex: 0 0 250px; min-height: 100vh; } }
.admin-side .brand { color: #fff; margin-bottom: 14px; } .admin-side .brand small { color: #BFD1E3; }
.admin-side a, .admin-side button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: #DCE7F2; text-decoration: none; font: 500 .93rem var(--body); background: none; border: 0; cursor: pointer; width: 100%; }
.admin-side a:hover, .admin-side button:hover { background: rgba(255,255,255,.08); }
.admin-side a.on { background: rgba(255,255,255,.14); color: #fff; }
.admin-side .count { margin-inline-start: auto; background: var(--gold); color: #13263F; border-radius: 99px; padding: 0 8px; font-size: .75rem; font-weight: 700; }
@media (max-width: 899px) { .admin-side nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; } }
.admin-main { flex: 999 1 560px; min-width: 0; padding: 24px 16px 60px; }
@media (min-width: 900px) { .admin-main { padding: 30px 36px 60px; } }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.admin-head h1 { font-size: 1.5rem; }
.admin-head .btn { margin-inline-start: auto; }
.table-box { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
.list th, .list td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list th { font-weight: 600; color: var(--muted); font-size: .8rem; background: var(--ground); }
.list tr:last-child td { border-bottom: 0; }
.list .thumb-sm { width: 40px; height: 40px; border-radius: 50%; background: var(--sand) center/cover; display: grid; place-items: center; font: 700 .9rem var(--heading); color: var(--brick); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions form { display: inline; }
.iconbtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none !important; }
.iconbtn:hover { background: var(--ground); }
.iconbtn.danger { color: #A3261B; }
.status { display: inline-flex; padding: 2px 10px; border-radius: 99px; font-size: .76rem; font-weight: 600; }
.status.on { background: #D5EFEC; color: #0A7C72; } .status.off { background: #ECEEF1; color: #4B5563; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 22px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 16px; text-decoration: none !important; color: var(--ink); }
.stat b { display: block; font: 700 1.5rem var(--heading); color: var(--brick-deep); line-height: 1.2; }
.stat span { font-size: .82rem; color: var(--muted); }
.edit-grid { display: grid; gap: 18px; }
@media (min-width: 1000px) { .edit-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.field .check input { width: 20px; height: 20px; }
.photo-prev { width: 140px; height: 140px; border-radius: 50%; background: var(--sand) center/cover; margin: 0 auto 10px; display: grid; place-items: center; font: 700 2.4rem var(--heading); color: var(--brick); }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; background: #D5EFEC; color: #075E56; }
.flash.err { background: #FDE7EA; color: #8F1D2C; }
.sub-card { padding: 16px; display: grid; gap: 10px; }
.sub-card .meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: var(--muted); }
.sub-card .body { white-space: pre-line; }
.sub-card details summary { cursor: pointer; color: var(--brick); font-size: .88rem; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--brick-deep); }
.login-card { width: 100%; max-width: 400px; padding: 28px; }
/* 3D icon tiles generated with Codex (brand-assets/generated) */
.pico { width: 48px; height: 48px; border-radius: 15px; object-fit: cover; flex: none; box-shadow: 0 6px 14px -10px rgba(30,58,95,.5); }
.pico.lg { width: 56px; height: 56px; border-radius: 17px; }
.pico.sm { width: 38px; height: 38px; border-radius: 11px; }
@media (min-width: 900px) { .quick .pico.lg { width: 64px; height: 64px; border-radius: 19px; } }
