/* ============================================================================
   ALFATIHRPS — Shared Design Tokens & Ecosystem Navigation ("1 Rumah, 4 Ruangan")
   [edit: Antigravity · 2026-11-28]
   - Dipakai bersama oleh 3 subdomain: alfatihrps.com, alquran.alfatihrps.com,
     dan member.alfatihrps.com (single source of truth).
   - Palet khas: Biru Lapis Lazuli Malam + Emas Manuskrip + Kertas Hangat.
   - 0 perubahan teks agama/dalil/DB, 0-OpenRouter.
   ============================================================================ */

:root {
  --alf-bg: #faf8f4;
  --alf-surface: #ffffff;
  --alf-ink: #0f172a;
  --alf-muted: #475569;
  --alf-line: #dce3ee;
  --alf-line-soft: #eef2f8;

  --alf-pri-night: #07142b;
  --alf-pri-deep: #0e254c;
  --alf-pri: #14366b;
  --alf-pri-mid: #1d4a8c;
  --alf-pri-soft: #edf3fc;

  --alf-gold: #c9973b;
  --alf-gold-hi: #e5c374;
  --alf-gold-pale: #f6dc9b;
  --alf-gold-soft: #fdf8eb;
  --alf-live: #34d399;

  --alf-font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --alf-font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --alf-font-arab: "Amiri", serif;
}

/* Bilah Ekosistem "1 Rumah, 4 Ruangan" — Urutan SAMA PERSIS di semua subdomain:
   Beranda · Al-Qur'an · Doa · Member / Setor */
.alf-eco-bar {
  background: linear-gradient(95deg, var(--alf-pri-night) 0%, var(--alf-pri-deep) 58%, #173d78 100%);
  border-bottom: 1px solid rgba(201, 151, 59, 0.38);
  color: #d6e4f7;
  font-family: var(--alf-font-sans);
  font-size: 12px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 85;
}
.alf-eco-in {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.alf-eco-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}
.alf-eco-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--alf-live);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  flex: none;
}
.alf-eco-links {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.alf-eco-links a {
  color: #cfe0f5;
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.alf-eco-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.alf-eco-links a.is-here {
  background: rgba(246, 220, 155, 0.2);
  border: 1px solid rgba(246, 220, 155, 0.5);
  color: var(--alf-gold-pale);
}
.alf-eco-links a.is-cta {
  background: linear-gradient(135deg, var(--alf-gold-hi), var(--alf-gold));
  color: var(--alf-pri-night) !important;
  font-weight: 800;
}

/* Jembatan Amal 1-Ketuk (Contextual Next-Step antar-ruangan tanpa bolak-balik Beranda) */
.alf-bridge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 37, 76, 0.94) 0%, rgba(26, 68, 132, 0.92) 100%);
  border: 1px solid rgba(201, 151, 59, 0.42);
  border-left: 4px solid var(--alf-gold);
  color: #ffffff;
  font-family: var(--alf-font-sans);
  box-shadow: 0 10px 26px rgba(7, 20, 43, 0.18);
  margin: 18px 0;
}
.alf-bridge-k {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--alf-gold-pale);
  margin-bottom: 3px;
}
.alf-bridge h4 {
  font-family: var(--alf-font-serif) !important;
  font-size: 1.16rem !important;
  line-height: 1.26 !important;
  color: #ffffff !important;
  margin: 0 0 3px !important;
  font-weight: 700 !important;
}
.alf-bridge p {
  font-size: 0.84rem !important;
  line-height: 1.48 !important;
  color: #cfe0f5 !important;
  margin: 0 !important;
}
.alf-bridge-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: none;
}
.alf-bridge-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--alf-gold-hi), var(--alf-gold));
  color: var(--alf-pri-night) !important;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.alf-bridge-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 959px) {
  .alf-eco-brand span { display: none; }
  .alf-eco-in { padding: 6px 10px; justify-content: center; }
  .alf-eco-links a { font-size: 11px; padding: 4px 9px; }
}
