/* ==========================================================================
   Noor Lehulu (org site) styles — layered on core/app.css design tokens.
   Owned by the org agent. Uses the shared --brand/--gold/--ink/--muted/--line
   variables and reuses .card/.btn/.badge/.chip from the kit.
   ========================================================================== */

/* Shared typographic helpers used across org pages */
.h2 { font-size: var(--fs-h2); margin: 0 0 var(--sp-3); }
.h3 { font-size: var(--fs-h3); margin: 0 0 var(--sp-2); }
.page-h1 { margin-top: 0; }
.prose { color: var(--ink); line-height: 1.65; margin: 0 0 var(--sp-3); }
.prose:last-child { margin-bottom: 0; }
.section-sub { margin: 0 0 var(--sp-5); font-size: var(--fs-md); line-height: 1.5; max-width: 68ch; }
.sub-head { margin-top: var(--sp-6); }
.meta { font-size: var(--fs-sm); }
.row-between { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---- Chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 600; border: 1px solid var(--line); }
.chip-static { background: var(--brand-tint); color: var(--brand-dark); border-color: transparent; }
.chip-value { background: #fcf3e3; color: #7a5a14; border-color: transparent; }
/* Values section — a little more presence than plain tags. */
#values .chips { gap: 12px; }
#values .chip-value { font-size: 1rem; padding: 12px 20px 12px 16px; box-shadow: var(--shadow-sm); }
#values .chip-value::before { content: "✓"; font-weight: 900; color: var(--gold); font-size: .95em; }

/* ---- Hero (home) — bold, generous, Meta-inspired ---- */
.hero-home { position: relative; overflow: hidden; border: 1px solid var(--line-2);
  padding: clamp(32px, 6vw, 80px) clamp(24px, 6vw, 80px);
  background:
    radial-gradient(90% 120% at 6% -10%, color-mix(in srgb, var(--brand-tint) 92%, #fff), transparent 62%),
    linear-gradient(135deg, var(--brand-tint), #fff 76%); }
.hero-home-inner { max-width: 46ch; position: relative; z-index: 1; }
.hero-eyebrow { margin: 0; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--brand-dark); }
.hero-title { margin: 0; font-size: var(--fs-display); line-height: .98; letter-spacing: -.03em;
  color: var(--brand-dark); }
.hero-tagline { margin: 0; color: var(--gold); font-weight: 800; font-size: var(--fs-md); }
.hero-lead { margin: 0; max-width: 52ch; font-size: var(--fs-md); color: var(--muted); line-height: 1.5; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--sp-2); }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; }

/* ---- Product showcase — colorful product grid (one per app) ---- */
.showcase-head { margin-bottom: var(--sp-5); }
.showcase-title { margin: 6px 0 0; }
.pcard-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .pcard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pcard-grid { grid-template-columns: 1fr; } }
.pcard { --pc: var(--brand); --pc-tint: var(--brand-tint);
  display: flex; flex-direction: column; gap: 5px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: var(--sp-5); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.pcard:hover { text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--pc) 42%, var(--line)); }
.pcard-icon { display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 16px; font-size: 28px; margin-bottom: 4px;
  background: var(--pc-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 18%, transparent); }
.pcard-name { font-weight: 800; font-size: 1.28rem; letter-spacing: -.01em; color: var(--ink); }
.pcard-tag { font-weight: 700; color: var(--pc); }
.pcard-blurb { color: var(--muted); line-height: 1.5; flex: 1; margin-top: 2px; }
.pcard-go { font-weight: 700; color: var(--pc); margin-top: 8px; }
.pcard:hover .pcard-go { text-decoration: underline; }
.pcard[data-app="connect"]       { --pc:#1a4fd0; --pc-tint:#dde6fb; }
.pcard[data-app="amana"]         { --pc:#6d28d9; --pc-tint:#ece0fc; }
.pcard[data-app="academy"]       { --pc:#0b6580; --pc-tint:#d8ecf1; }
.pcard[data-app="consult"]       { --pc:#9a4708; --pc-tint:#f8dcbf; }
.pcard[data-app="research"]      { --pc:#372cb8; --pc-tint:#e2dffa; }
.pcard[data-app="opportunities"] { --pc:#be123c; --pc-tint:#fbe0e6; }

/* ---- Vision & Mission ---- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.vm-panel { border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: var(--sp-6); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.vm-vision { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; }
.vm-mission { background: var(--card); }
.vm-year { font-size: 3.4rem; font-weight: 800; opacity: .35; letter-spacing: -.02em; }
.vm-kicker { font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: var(--fs-sm); }
.vm-vision .vm-kicker { color: var(--gold-light); }
.vm-mission .vm-kicker { color: var(--brand-dark); }
.vm-rule { display: block; width: 42px; height: 3px; background: var(--gold); margin: 10px 0; border-radius: 2px; }
.vm-lead { margin: 0; line-height: 1.6; font-size: var(--fs-md); }
@media (max-width: 720px) { .vm-grid { grid-template-columns: 1fr; } }

/* ---- Objectives ---- */
/* Clean, editorial numbered list — two columns on desktop, dividers instead of boxes
   so uneven-length aims read tidily (no stretched empty cards). */
.obj-grid { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-8); }
.obj-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: var(--sp-5) 2px; border-top: 1px solid var(--line-2);
  background: none; border-radius: 0; box-shadow: none; transition: none; }
.obj-card:hover { box-shadow: none; transform: none; }
.obj-num { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-dark); font-weight: 800; font-size: 1.15rem;
  display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.obj-text { font-size: var(--fs-md); line-height: 1.55; }
@media (max-width: 720px) { .obj-grid { grid-template-columns: 1fr; } }

/* ---- Projects boxes ---- */
.proj-boxes { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-4); margin-top: var(--sp-4); }
.proj-boxes-full { grid-template-columns: 1fr 1fr; }
.proj-box { border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: var(--sp-6); background: var(--card); box-shadow: var(--shadow-sm); }
.proj-box-head { margin-bottom: var(--sp-3); }
.proj-list { display: grid; gap: var(--sp-3); }
.proj-item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid transparent; }
.proj-item:hover { background: var(--brand-tint); text-decoration: none; }
.proj-logo { flex: 0 0 auto; }
.proj-item-text { display: flex; flex-direction: column; gap: 2px; }
.proj-item-name { font-weight: 800; color: var(--brand-dark); }
.proj-item-sum { font-size: var(--fs-sm); }
.proj-item-note { font-size: var(--fs-sm); color: var(--gold); font-weight: 600; }
.proj-item-open { font-size: var(--fs-sm); color: var(--brand); font-weight: 700; }
.proj-all-link { display: inline-block; margin-top: var(--sp-4); font-weight: 700; color: var(--brand-dark); }
@media (max-width: 720px) { .proj-boxes, .proj-boxes-full { grid-template-columns: 1fr; } }

/* ---- Get involved ---- */
.member-name { margin: 0 0 6px; color: var(--brand-dark); font-size: 1.2rem; }
.contact-card { margin-top: var(--sp-5); text-align: center; }
.contact-email { display: inline-block; margin-top: 8px; font-weight: 800; font-size: var(--fs-md); color: var(--brand-dark); }

/* ---- Governance ---- */
.gov-flow { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: var(--sp-4) 0; }
.gov-node { width: min(560px, 100%); text-align: center; border-radius: var(--radius-lg); padding: var(--sp-5); border: 1px solid var(--line-2); background: var(--card); box-shadow: var(--shadow-sm); }
.gov-node-label { display: block; font-weight: 800; color: var(--brand-dark); }
.gov-node-desc { display: block; font-size: var(--fs-sm); margin-top: 4px; }
.gov-node-top { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; border-color: transparent; }
.gov-node-top .gov-node-label, .gov-node-top .gov-node-desc { color: #fff; }
.gov-node-board { background: var(--brand-tint); }
.gov-arrow { color: var(--muted); font-size: 1.2rem; }

/* ---- Team / founders / leadership ---- */
.avatar-lg { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.avatar-tba { background: var(--muted); }
.lead-card { display: flex; gap: 14px; align-items: center; }
.lead-role { font-weight: 700; color: var(--brand-dark); }
.lead-tba { font-style: italic; }
.founder-name { font-weight: 700; }
.founder-city { font-size: var(--fs-sm); }
.founder-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); }
.founder-card { display: flex; gap: 12px; align-items: center; }
.founder-info { display: flex; flex-direction: column; min-width: 0; }

/* ---- News ---- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-4); }
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.news-card:hover { text-decoration: none; box-shadow: var(--shadow-md); }
.news-cover { width: 100%; height: 150px; object-fit: cover; display: block; }
.news-body { padding: 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.news-title { font-size: var(--fs-md); color: var(--brand-dark); line-height: 1.3; }
.news-article { max-width: 760px; margin: 0 auto; }
.article-meta { margin: 8px 0 4px; align-items: center; }
.news-hero { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); display: block; margin: 16px 0; }

/* ---- Support / supporters ---- */
.support-hero { background: linear-gradient(135deg, var(--brand-tint), #fff); }
.support-lead { max-width: 620px; margin: 10px auto 0; }
.support-count { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 18px;
  border-radius: var(--radius-pill); background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; }
.plan-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; margin-top: var(--sp-5); }
.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--gold); }
.plan-loved { position: absolute; top: -12px; inset-inline-end: 16px; }
.plan-name { margin: 0 0 4px; color: var(--brand-dark); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 16px; }
.plan-amount { font-size: 1.9rem; font-weight: 800; }
.plan-perks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.plan-details { margin-top: auto; }
.plan-choose { width: 100%; justify-content: center; list-style: none; }
.plan-choose::-webkit-details-marker { display: none; }
.plan-form { margin-top: 14px; background: var(--brand-tint); padding: 14px; border-radius: var(--radius-sm); }
.checkline { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; }
.thanks-wrap { max-width: 640px; margin: 0 auto; display: grid; gap: 20px; }
.thanks-plan { margin-top: 14px; }
.pay-instructions { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: var(--fs-sm);
  line-height: 1.6; margin: 0; padding: 16px; border-radius: var(--radius-sm); background: var(--brand-tint); border: 1px solid var(--line); }
.support-wall-head { margin-bottom: 30px; }
.wall-count { margin-top: 18px; }
.wall-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.supporter-card { display: flex; align-items: center; gap: 13px; padding: 16px; }
.supporter-avatar { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  overflow: hidden; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.supporter-avatar.anon { background: var(--muted); }
.supporter-avatar img { width: 100%; height: 100%; object-fit: cover; }
.supporter-info { min-width: 0; }
.supporter-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.supporter-meta { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; font-size: var(--fs-sm); }
.supporter-tier { font-weight: 700; color: var(--gold); }
.wall-cta { margin-top: 36px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.wall-cta .h3 { color: #fff; }

/* ---- Account ---- */
.acct-page { max-width: 560px; }
.acct-card { max-width: 520px; margin-top: var(--sp-4); }
.acct-supporter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acct-photo-row { display: flex; align-items: center; gap: 14px; }
.acct-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.acct-avatar-initial { display: grid; place-items: center; background: var(--gold-light); color: #1a1205; font-weight: 800; font-size: 26px; }

/* ---- Notifications ---- */
.notif-list { display: grid; gap: 12px; margin-top: 18px; }
.notif-card { display: flex; gap: 14px; align-items: flex-start; position: relative; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; background: var(--card); }
.notif-card:not(.notif-read)::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
  width: 4px; border-radius: var(--radius) 0 0 var(--radius); background: var(--brand); }
.notif-read { opacity: .6; }
.notif-icon { font-size: 20px; flex: 0 0 auto; }
.notif-body { flex: 1 1 auto; min-width: 0; }
.notif-title { font-weight: 800; }
.notif-text { font-size: var(--fs-sm); margin-top: 5px; line-height: 1.55; }
.notif-link { display: inline-block; margin-top: 8px; color: var(--brand-dark); font-weight: 700; font-size: var(--fs-sm); }
.notif-time { flex: 0 0 auto; font-size: var(--fs-sm); }

/* ==========================================================================
   Admin (custom staff area)
   ========================================================================== */
.admin-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.admin-subnav a { padding: 6px 12px; border-radius: var(--radius-sm); font-size: var(--fs-sm); border: 1px solid var(--line); color: var(--ink); }
.admin-subnav a:hover { background: var(--brand-tint); text-decoration: none; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-4); }
.admin-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); color: inherit; }
.admin-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.admin-card .ic { font-size: 24px; }
.admin-card .body { flex: 1; }
.admin-card .t { font-weight: 800; color: var(--brand-dark); }
.admin-card .d { font-size: var(--fs-sm); }
.badge-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--gold);
  color: #3a2c07; font-weight: 800; font-size: var(--fs-sm); display: inline-grid; place-items: center; }
.badge-count.zero { background: #eef1ef; color: var(--muted); }

.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.admin-filters .input { width: auto; flex: 1 1 220px; }
.admin-filters .select { width: auto; }
.select-sm { padding: 6px 10px; font-size: var(--fs-sm); width: auto; }
.cell-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.activity-cell { font-size: var(--fs-sm); line-height: 1.6; }
.edit-panel { margin-top: var(--sp-4); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-row .field { flex: 1 1 180px; margin: 0; }
.lang-fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; }
.lang-fieldset legend { font-weight: 700; color: var(--brand-dark); padding: 0 6px; }
.profile-pills { align-items: center; margin: 10px 0 14px; }
.admin-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.footprint-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.footprint-grid ul { margin: 0; padding-left: 18px; font-size: var(--fs-sm); }

/* ---- Admin: Page-content catalog ---- */
.content-catalog { margin: 16px 0 24px; }
.pc-section { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px; }
.pc-section + .pc-section { margin-top: 10px; }
.pc-section.pc-hidden { background: repeating-linear-gradient(45deg, #fafbfa, #fafbfa 10px, #f3f5f3 10px, #f3f5f3 20px); }
.pc-sec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-sec-head .spacer { flex: 1; }
.pc-blocks { display: grid; gap: 6px; margin-top: 10px; }
.pc-block { display: grid; grid-template-columns: 160px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); text-decoration: none; }
.pc-block:hover { background: var(--brand-tint); text-decoration: none; border-color: var(--brand); }
.pc-block-label { font-weight: 700; font-size: var(--fs-sm); }
.pc-block-val { color: var(--muted); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-block-edit { font-size: 1rem; }
@media (max-width: 680px) { .pc-block { grid-template-columns: 1fr auto; } .pc-block-val { grid-column: 1 / -1; white-space: normal; } }
