/* ==========================================================================
   Guide pages (Basics of Islam, Shahadah, Revert, Qiblah, Salah, Lifestyle,
   New Muslim Kit, Prophets). Loaded only by Views/Guides/*. The shared layout
   classes live in style.css; this file holds what the design kept inline on
   each guide page, plus the few helpers the database-driven views need.
   ========================================================================== */

/* ---- Shared helpers ---- */
.guide-rich img { max-width: 100%; height: auto; }
.guide-rich > :last-child { margin-bottom: 0; }
.guide-rich .icon-wrap { width: 46px; height: 46px; border-radius: 12px; }
.guide-measure { max-width: 760px; }
.guide-arabic { font-family: 'Noto Naskh Arabic', 'Amiri', serif; font-weight: 700; line-height: 1.9; }
.guide-block + .guide-block { margin-top: 2rem; }
.guide-topic-icon { width: 48px; height: 48px; font-size: 1.25rem; }
.guide-step-number { width: 36px; height: 36px; }
.guide-card-icon { width: 52px; height: 52px; }
.card-tab-whatIslam:focus-visible { outline: 2px solid var(--ip-area); outline-offset: 2px; }

/* Arabic card: long verses must not run at the 38px of the two-line Shahadah */
.guide-arabic-card .arabicText { font-family: 'Noto Naskh Arabic', 'Amiri', serif; }
.guide-arabic-card .arabicText.is-long { font-size: 26px; line-height: 2; }
.guide-arabic-card audio { max-width: 100%; }
@media (max-width: 575.98px) {
  .guide-arabic-card { padding: 24px 16px; }
  .guide-arabic-card .arabicText { font-size: 26px; }
  .guide-arabic-card .arabicText.is-long { font-size: 20px; }
  .guide-arabic-card .arabicTextWrapper { flex-direction: column; }
}
[data-guide-tts].is-speaking, .audioSmall.is-speaking { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ip-area) 35%, transparent); }
.guide-tts-unavailable [data-guide-tts], .guide-tts-unavailable .guide-rich .audioSmall, .guide-tts-unavailable .guide-rich .audioBtn { display: none !important; }

/* Basics of Islam detail pane: image | title + text | advisor box, from one rich-text body */
.guide-pane { display: grid; grid-template-columns: 1fr; column-gap: 1.5rem; }
.guide-pane > * { min-width: 0; }
@media (min-width: 768px) {
  .guide-pane { grid-template-columns: 1fr 1fr; }
  .guide-pane > * { grid-column: 2; }
  .guide-pane > .guide-pane-img { grid-column: 1; grid-row: 1 / span 12; }
  .guide-pane > .advisor_box { grid-column: 1 / -1; grid-row: 13; margin-top: .5rem; }
  .guide-pane.no-img > * { grid-column: 1 / -1; }
}
@media (min-width: 992px) {
  .guide-pane { grid-template-columns: repeat(3, 1fr); }
  .guide-pane > .advisor_box { grid-column: 3; grid-row: 1 / span 12; align-self: start; margin-top: 0; }
  .guide-pane.no-img > * { grid-column: 1 / span 2; }
  .guide-pane.no-img > .advisor_box { grid-column: 3; }
}

/* Call-out and "at a glance" strip */
.guide-callout { background: linear-gradient(135deg, color-mix(in srgb, var(--ip-area) 6%, transparent), rgba(230,184,92,.06)); border: 2px dashed rgba(230,184,92,.4); }
.guide-glance { background: var(--ip-jewel); }
.guide-glance.is-flush { border-radius: 0; }
.guide-glance-tile { background: rgba(255,255,255,.1); }
.guide-glance-muted { color: rgba(255,255,255,.72); }
.lf-cta-tile { background: rgba(255,255,255,.12); transition: background .2s; }
.lf-cta-tile:hover { background: rgba(255,255,255,.2); }
.lf-hero-tile { background: rgba(255,255,255,.15); backdrop-filter: blur(8px); }
.lf-hero-muted { color: rgba(255,255,255,.75); }

/* Salah: "Learn Salah" accordion and the interactive stepper */
.salah-step-link { border-radius: 10px; }
.salah-step-link.active { background: color-mix(in srgb, var(--ip-area-fill) 10%, transparent); font-weight: 600; }
.salah-rakah-box { min-width: 64px; }
.salah-recite { background: color-mix(in srgb, var(--ip-area-fill) 4%, transparent); }
.salah-recite .salah-arabic { font-family: 'Noto Naskh Arabic', 'Amiri', serif; font-size: 1.6rem; line-height: 2.2; }

/* Prophets page additions */
.ps-hero-chip { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: .8125rem; text-decoration: none; border: 1px solid rgba(255,255,255,.18); transition: background .15s; }
.ps-hero-chip:hover, .ps-hero-chip.active { background: #ffd27f; color: #2b1a00; }
.ps-hero-stat { background: rgba(255,255,255,.1); border-radius: 14px; padding: 14px 10px; text-align: center; color: #fff; }
.ps-tree-scroll { overflow-x: auto; }

/* Dark theme */
body.dark .guide-pane .advisor_box, body.dark .guide-topic-card { background: transparent; }
body.dark .breakItem, body.dark .reflectBox { background: rgba(255,255,255,.04); }


/* ==========================================================================
   Qiblah guide (design: qiblah-guide.html)
   ========================================================================== */
/* ── Qiblah-specific styles ── */
.qiblah-compass-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
}
.qiblah-compass-ring {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 3px solid var(--ip-area);
  background: conic-gradient(color-mix(in srgb, var(--ip-area) 8%, transparent) 0deg, transparent 60deg, transparent 300deg, color-mix(in srgb, var(--ip-area) 8%, transparent) 360deg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--ip-area) 7%, transparent);
}
.qiblah-needle {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px;
  transform-origin: bottom center;
  transform: translateX(-50%) translateY(-100%) rotate(0deg);
  transition: transform 1s cubic-bezier(.34,1.56,.64,1);
}
.qiblah-needle-tip {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 80px solid #e6b85c;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(230,184,92,.5));
}
.qiblah-needle-tail {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 40px solid var(--ip-area);
  margin: 0 auto;
}
.qiblah-needle-dot {
  width: 14px; height: 14px;
  background: #fff;
  border: 3px solid var(--ip-area);
  border-radius: 50%;
  margin: 0 auto;
}
.compass-label {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  color: var(--ip-area-strong);
}
.compass-label.n { top: 8px; left: 50%; transform: translateX(-50%); }
.compass-label.s { bottom: 8px; left: 50%; transform: translateX(-50%); }
.compass-label.e { right: 10px; top: 50%; transform: translateY(-50%); }
.compass-label.w { left: 10px; top: 50%; transform: translateY(-50%); }

.qiblah-step-card {
  border-inline-start: 4px solid var(--ip-area);
  background: var(--bs-body-bg, #faf8f2);
}
.qiblah-fact-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}
.kaaba-illus {
  background: var(--ip-jewel);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.kaaba-illus::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
#qiblahResult { transition: all .4s ease; }
.direction-badge {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ip-area-fill), var(--ip-area));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}


/* ==========================================================================
   Islamic lifestyle (design: islamic-lifestyle.html)
   ========================================================================== */
/* ── Page-specific ── */
.lf-hero-banner {
  background: var(--ip-jewel);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.lf-hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}
.lf-section-banner {
  border-radius: 1.25rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.lf-trait-card {
  border-inline-start: 4px solid var(--trait-color, var(--ip-area));
  background: var(--bs-body-bg, #faf8f2);
  transition: transform .2s, box-shadow .2s;
}
.lf-trait-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.lf-icon-circle {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.lf-timeline { position: relative; padding-inline-start: 2rem; }
.lf-timeline::before {
  content: ''; position: absolute;
  inset-inline-start: 11px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--ip-area), #e6b85c);
}
.lf-timeline-item { position: relative; padding-bottom: 1.75rem; }
.lf-timeline-item:last-child { padding-bottom: 0; }
.lf-timeline-dot {
  position: absolute; inset-inline-start: -1.85rem; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ip-area); border: 3px solid #faf8f2;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #fff; font-weight: 700;
  z-index: 1;
}
.lf-compare-col {
  border-radius: 1rem;
  padding: 1.5rem;
}
.lf-verse-block {
  border-inline-start: 5px solid #e6b85c;
  background: rgba(230,184,92,.07);
  border-start-start-radius: 0; border-start-end-radius: .75rem; border-end-end-radius: .75rem; border-end-start-radius: 0;
  padding: 1.25rem 1.5rem;
}
.lf-gender-step {
  background: color-mix(in srgb, var(--ip-area) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--ip-area) 20%, transparent);
  border-radius: .875rem;
  padding: 1.1rem 1.25rem;
}
.lf-pill-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.misconception-card {
  border-radius: 1rem;
  overflow: hidden;
}
.misconception-card .mc-myth { background: rgba(220,53,69,.07); border-inline-start: 4px solid #dc3545; }
.misconception-card .mc-truth { background: color-mix(in srgb, var(--ip-area) 7%, transparent); border-inline-start: 4px solid var(--ip-area); }

/* ── Sidebar TOC ── */
.lf-toc-link {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 8px;
  text-decoration: none; color: var(--bs-secondary-color, #666);
  font-size: .875rem; margin-bottom: 2px;
  transition: background .15s, color .15s;
}
body.dark .lf-toc-link,
body.dark .lf-side-link{color:var(--ip-muted)}
.lf-toc-link:hover, .lf-toc-link.active {
  background: color-mix(in srgb, var(--ip-area) 12%, transparent);
  color: var(--ip-area-strong); font-weight: 600;
}
.lf-toc-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; background: color-mix(in srgb, var(--ip-area) 10%, transparent); color: var(--ip-area-strong);
  transition: background .15s, color .15s;
}
.lf-toc-link.active .lf-toc-icon { background: var(--ip-area); color: #fff; }
.lf-side-link {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 4px; text-decoration: none;
  font-size: .8rem; color: var(--bs-secondary-color, #666);
  border-radius: 6px; transition: color .15s;
  margin-bottom: 2px;
}
.lf-side-link:hover { color: var(--ip-area-strong); }
.lf-timeline-item-card { transition: box-shadow .2s; }
.lf-timeline-item-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08) !important; }
.lf-section-hidden { display: none !important; }


/* ==========================================================================
   New Muslim kit (design: new-muslim-kit.html)
   ========================================================================== */
/* ══ Hero ══ */
.kit-hero {
  background: var(--ip-jewel);
  position: relative; overflow: hidden;
  padding: 4rem 0 3rem;
}
.kit-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 100px 100px;
}
.kit-badge-free {
  background: #e6b85c; color: #1a1a1a;
  font-size: .9rem; font-weight: 800;
  padding: 8px 20px; border-radius: 50px;
  display: inline-block; letter-spacing: .04em;
  box-shadow: 0 4px 16px rgba(230,184,92,.4);
}
/* ══ Box animation ══ */
.kit-box-wrapper {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
}
.kit-box {
  width: 240px; height: 180px;
  background: linear-gradient(160deg, #fffbf0, #fdf3d0);
  border-radius: 16px 16px 12px 12px;
  border: 2px solid rgba(230,184,92,.5);
  box-shadow: 0 24px 60px rgba(0,0,0,.25), 0 6px 16px rgba(0,0,0,.15);
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 20px;
}
.kit-box::before {
  content: '';
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 260px; height: 50px;
  background: linear-gradient(160deg, #fffdf5, #fde68a);
  border-radius: 12px 12px 0 0;
  border: 2px solid rgba(230,184,92,.5);
  border-bottom: none;
}
.kit-box-logo {
  font-size: 2.2rem; font-weight: 800;
  color: var(--ip-area-strong); line-height: 1; text-align: center;
}
.kit-box-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  color: #92710a; text-transform: uppercase; margin-top: 4px;
}
.kit-ribbon {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 26px; background: #e6b85c; border-radius: 2px;
}
.kit-ribbon::before, .kit-ribbon::after {
  content: '';
  position: absolute; top: 0; width: 30px; height: 18px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(135deg, #e6b85c, #f5cc6a);
}
.kit-ribbon::before { left: 4px; transform-origin: left center; transform: rotate(-15deg); }
.kit-ribbon::after  { right: 4px; transform-origin: right center; transform: scaleX(-1) rotate(-15deg); }
.kit-float-badge {
  position: absolute; top: -10px; inset-inline-end: -12px;
  background: var(--ip-area); color: #fff;
  font-size: .65rem; font-weight: 700; letter-spacing: .05em;
  padding: 5px 10px; border-radius: 30px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ip-area) 40%, transparent);
  text-transform: uppercase;
}
.kit-items-overflow {
  position: absolute; top: -28px;
  display: flex; justify-content: center; gap: 8px;
}
.kit-item-peeking {
  width: 42px; height: 52px;
  border-radius: 8px; border: 2px solid rgba(255,255,255,.8);
  overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,.2);
  background: #fff;
}
.kit-item-peeking img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
/* ══ Kit items grid ══ */
.kit-item-card {
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.kit-item-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.kit-item-img {
  height: 160px; background: linear-gradient(135deg, var(--ip-area-soft), #ecfdf5);
  display: flex; align-items: center; justify-content: center;
}
.kit-item-img img {object-fit: contain; }
.kit-item-icon-fallback {
  width: 72px; height: 72px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
/* ══ Trust bar ══ */
.trust-bar {
  background: var(--ip-jewel);
}
.trust-item { border-inline-end: 1px solid rgba(255,255,255,.15); }
.trust-item:last-child { border-inline-end: none; }
/* ══ Steps ══ */
.step-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ip-area), var(--ip-area-fill));
  color: #fff; font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 12px color-mix(in srgb, var(--ip-area) 35%, transparent);
}
/* ══ Form ══ */
.kit-form-wrapper {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
.kit-form-sidebar {
  background: var(--ip-jewel);
  padding: 2.5rem;
  position: relative; overflow: hidden;
}
.kit-form-sidebar::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}
.kit-form-body { background: var(--bs-body-bg, #faf8f2); padding: 2.5rem; }
.kit-check-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.kit-check-item:last-child { border-bottom: none; }
.kit-check-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .85rem; color: #e6b85c;
}
/* ══ Social proof ══ */
.testimonial-card {
  border-radius: 1rem;
  transition: transform .2s;
}
.testimonial-card:hover { transform: translateY(-3px); }
/* ══ Guarantee badge ══ */
.guarantee-ring {
  width: 120px; height: 120px; border-radius: 50%;
  border: 4px solid var(--ip-area);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: color-mix(in srgb, var(--ip-area) 7%, transparent);
  flex-shrink: 0;
}
/* ══ Sticky form scroll target ══ */
html { scroll-behavior: smooth; }


/* ==========================================================================
   Stories of the prophets (design: prophets-stories.html)
   ========================================================================== */
/* ══ Layout ══ */
.ps-sidebar {
  position: sticky;
  top: 80px;
  height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ip-area) 30%, transparent) transparent;
}
.ps-sidebar::-webkit-scrollbar { width: 4px; }
.ps-sidebar::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ip-area) 30%, transparent); border-radius: 4px; }

/* ══ Hero ══ */
.ps-hero {
  background: var(--ip-jewel);
  padding: 4rem 0 3rem;
  position: relative; overflow: hidden;
}
.ps-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(230,184,92,.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--ip-area) 10%, transparent) 0%, transparent 40%);
}
.ps-hero-arabic {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 2.2rem; color: rgba(230,184,92,.6);
  line-height: 1.4; text-align: right;
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  pointer-events: none;
}

/* ══ Sidebar prophet list ══ */
.ps-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  text-decoration: none;
  color: var(--bs-body-color);
}
.ps-nav-item:hover {
  background: color-mix(in srgb, var(--ip-area) 8%, transparent);
  border-color: color-mix(in srgb, var(--ip-area) 20%, transparent);
  color: var(--ip-area-strong);
}
.ps-nav-item.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ip-area-fill) 12%, transparent), color-mix(in srgb, var(--ip-area) 8%, transparent));
  border-color: color-mix(in srgb, var(--ip-area) 35%, transparent);
  color: var(--ip-area-strong);
  font-weight: 600;
}
.ps-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ip-area) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: var(--ip-area-strong);
  flex-shrink: 0;
}
.ps-nav-item.active .ps-num {
  background: var(--ip-area-fill); color: #fff;
}

/* ══ Prophet section ══ */
.ps-section { display: none; }
.ps-section.active { display: block; }

/* ══ Prophet header card ══ */
.ps-prophet-header {
  background: var(--ip-jewel);
  border-radius: 1.25rem;
  padding: 2rem 2rem 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.ps-prophet-header::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.ps-prophet-header::after {
  content: '';
  position: absolute; bottom: -50px; right: 60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(230,184,92,.06);
}
.ps-prophet-num-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  font-size: 1.3rem; font-weight: 800; color: #e6b85c;
  border: 2px solid rgba(230,184,92,.4);
  flex-shrink: 0;
}
.ps-arabic-name {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.6rem; color: rgba(230,184,92,.9);
  line-height: 1;
}
.ps-era-badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  padding: 4px 12px; border-radius: 30px; display: inline-block;
}
a.ps-era-badge { text-decoration: none; }
a.ps-era-badge:hover,
a.ps-era-badge:focus-visible { color: #fff; border-color: rgba(230,184,92,.6); }
.ps-mentioned-badge {
  background: rgba(230,184,92,.18);
  border: 1px solid rgba(230,184,92,.35);
  color: #e6b85c;
  font-size: .75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 30px; display: inline-block;
}

/* ══ Stat cards ══ */
.ps-stat-card {
  border-radius: .9rem;
  padding: 1rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--ip-area) 15%, transparent);
  background: color-mix(in srgb, var(--ip-area) 4%, transparent);
  text-align: center;
}

/* ══ Content cards ══ */
.ps-content-card {
  border-radius: 1rem;
  border: 1px solid var(--bs-border-color, #e2e8f0);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.ps-content-header {
  padding: .75rem 1.25rem;
  font-weight: 700; font-size: .9rem;
  letter-spacing: .04em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.ps-content-header.green  { background: color-mix(in srgb, var(--ip-area) 10%, transparent); color: var(--ip-area-strong); }
.ps-content-header.gold   { background: rgba(230,184,92,.1); color: #92710a; }
.ps-content-header.blue   { background: rgba(59,130,246,.1); color: #1d4ed8; }
.ps-content-header.purple { background: rgba(139,92,246,.1); color: #7c3aed; }
.ps-content-header.red    { background: rgba(239,68,68,.1);  color: #dc2626; }
.ps-content-body { padding: 1.25rem; }

/* ══ Timeline (hardships) ══ */
.ps-timeline { position: relative; padding-inline-start: 28px; }
.ps-timeline::before {
  content: ''; position: absolute; inset-inline-start: 9px; top: 4px; bottom: 4px;
  width: 2px; background: linear-gradient(to bottom, var(--ip-area), #e6b85c);
  border-radius: 2px;
}
.ps-tl-item { position: relative; margin-bottom: 1rem; }
.ps-tl-item:last-child { margin-bottom: 0; }
.ps-tl-dot {
  position: absolute; inset-inline-start: -24px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ip-area); border: 2px solid #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ip-area) 30%, transparent);
}

/* ══ Miracle pills ══ */
.ps-miracle-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(139,92,246,.08);
  border: 1px solid rgba(139,92,246,.2);
  color: #7c3aed; font-size: .8rem; font-weight: 600;
  padding: 5px 12px; border-radius: 30px;
}

/* ══ Quran verse box ══ */
.ps-quran-box {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ip-area-fill) 6%, transparent), color-mix(in srgb, var(--ip-area) 4%, transparent));
  border-inline-start: 4px solid var(--ip-area-fill);
  border-start-start-radius: 0; border-start-end-radius: .75rem; border-end-end-radius: .75rem; border-end-start-radius: 0;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.ps-quran-arabic {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.3rem; direction: rtl; text-align: right;
  color: var(--ip-area-strong); margin-bottom: 4px;
}
.ps-quran-ref {
  font-size: .75rem; font-weight: 700; color: color-mix(in srgb, var(--ip-area-strong) 70%, transparent);
  letter-spacing: .04em; text-transform: uppercase;
}
/* The note the design puts under the du'a of Yunus and Ayyub. */
.ps-quran-note {
  background: color-mix(in srgb, var(--ip-area) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--ip-area) 15%, transparent);
}

/* ══ Family tree ══ */
.ps-tree {
  position: relative;
  overflow-x: auto;
}
.ps-tree-node {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 4px;
  min-width: 90px;
}
.ps-tree-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  border: 2px solid;
  flex-shrink: 0;
}
.ps-tree-avatar.green  { background: color-mix(in srgb, var(--ip-area) 12%, transparent); border-color: var(--ip-area); color: var(--ip-area-strong); }
.ps-tree-avatar.gold   { background: rgba(230,184,92,.12); border-color: #e6b85c; color: #92710a; }
.ps-tree-avatar.blue   { background: rgba(59,130,246,.12); border-color: #3b82f6; color: #1d4ed8; }
.ps-tree-avatar.purple { background: rgba(139,92,246,.12); border-color: #8b5cf6; color: #7c3aed; }
.ps-tree-avatar.star   { background: linear-gradient(135deg,var(--ip-area-fill),var(--ip-area)); border-color: #e6b85c; color: #fff; }
.ps-tree-name { font-size: .72rem; font-weight: 700; text-align: center; color: var(--bs-body-color); }
.ps-tree-arabic { font-family: 'Noto Naskh Arabic',serif; font-size: .85rem; color: var(--ip-area-strong); }
.ps-tree-connector {
  display: flex; align-items: center; padding-top: 16px; padding-bottom: 4px;
}
.ps-tree-line-v {
  width: 2px; height: 24px;
  background: linear-gradient(to bottom, var(--ip-area), #e6b85c);
  margin: 0 auto;
}
.ps-tree-line-h {
  height: 2px; background: linear-gradient(to right, var(--ip-area), #e6b85c);
  flex: 1;
}
.ps-tree-row {
  display: flex; justify-content: center; gap: 16px;
  flex-wrap: wrap;
}
.ps-chain-row {
  display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; justify-content: center;
}
.ps-chain-arrow {
  padding-top: 18px; font-size: 1.2rem; color: var(--ip-area-strong);
  flex-shrink: 0;
}

/* ══ Mobile pill nav ══ */
.ps-mob-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px;
  scrollbar-width: none;
}
.ps-mob-scroll::-webkit-scrollbar { display: none; }
.ps-mob-btn {
  flex-shrink: 0; padding: 6px 14px; border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--ip-area) 30%, transparent);
  background: transparent; color: var(--bs-body-color);
  font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.ps-mob-btn.active {
  background: var(--ip-area-fill); border-color: var(--ip-area-fill); color: #fff;
}

/* ══ No-scroll utility ══ */
.ps-hidden { display: none !important; }

/* Qiblah view helpers (the design wrote these inline) */
.kaaba-illus > * { position: relative; z-index: 1; }
.kaaba-illus-glyph { font-size: 5rem; line-height: 1; }
.kaaba-illus-muted { color: rgba(255,255,255,.85); }
.qiblah-makkah-label { position: absolute; bottom: 30px; font-size: 11px; font-weight: 700; color: var(--ip-area-strong); }
.qiblah-result { background: color-mix(in srgb, var(--ip-area) 5%, transparent); }
.qiblah-how-number { width: 28px; height: 28px; }

/* Lifestyle view helpers (the design wrote these inline) */
.lf-hero-title { font-size: 2.4rem; line-height: 1.2; }
.lf-hero-lead { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 560px; }
.lf-hero-btn-solid, .lf-hero-btn-solid:hover { background: #fff; color: var(--ip-area-strong); }
.lf-hero-btn-ghost, .lf-hero-btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.lf-hero-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }
.lf-aside-quote { color: rgba(255,255,255,.88); font-size: .8rem; }
.lf-topic-thumb { height: 120px; object-fit: cover; display: block; }
.lf-topic-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lf-chapter-nav { border-top: 2px solid color-mix(in srgb, var(--ip-area) 15%, transparent); }
@media (max-width: 575.98px) { .lf-hero-title { font-size: 1.8rem; } }

/* New Muslim kit view helpers (the design wrote these inline) */
.kit-hero-title { font-size: 2.6rem; line-height: 1.15; }
.kit-hero-accent { color: #ffd894; }
.kit-hero-lead { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 520px; }
.kit-hero-point { color: rgba(255,255,255,.9); }
.kit-hero-btn, .kit-hero-btn:hover { background: linear-gradient(135deg, #ffd27f, #f2a83b); color: #2b1a00; border-radius: 50px; font-size: 1.05rem; box-shadow: 0 6px 20px rgba(230,184,92,.4); }
.kit-hero-note { color: rgba(255,255,255,.7); font-size: .85rem; }
.kit-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }
.kit-box-stage { padding-top: 40px; }
.kit-box-caption { font-size: .75rem; color: var(--ip-area-strong); font-weight: 600; }
.kit-trust-label { font-size: .75rem; color: rgba(255,255,255,.7); letter-spacing: .05em; }
.kit-badge-gold { color: #6f5207; }
.kit-item-img-soft { background: linear-gradient(135deg, var(--ip-area-soft), #dcfce7); }
.kit-item-icon-soft { background: color-mix(in srgb, var(--ip-area) 15%, transparent); color: var(--ip-area-strong); font-size: 2.5rem; }
.kit-band { background: color-mix(in srgb, var(--ip-area) 4%, transparent); }
.kit-stars { color: #f59e0b; }
.kit-avatar { width: 40px; height: 40px; flex-shrink: 0; object-fit: cover; }
.kit-avatar-initial { background: var(--ip-area); }
.kit-form-wrapper { max-width: 960px; }
.kit-form-lead { max-width: 500px; }
.kit-sidebar-muted { color: rgba(255,255,255,.7); font-size: .85rem; }
.kit-sidebar-faint { color: rgba(255,255,255,.5); font-size: .75rem; }
.kit-check-caption { color: rgba(255,255,255,.65); font-size: .78rem; }
.kit-shipping-box { background: rgba(255,255,255,.1); }
.kit-submit-btn, .kit-submit-btn:hover { background: linear-gradient(135deg, var(--ip-area-fill), var(--ip-area)); color: #fff; border-radius: 12px; font-size: 1.05rem; box-shadow: 0 6px 20px color-mix(in srgb, var(--ip-area) 35%, transparent); }
.kit-success-box { background: color-mix(in srgb, var(--ip-area) 7%, transparent); border: 1px solid color-mix(in srgb, var(--ip-area) 20%, transparent); }
.kit-closing { background: var(--ip-jewel); }
.kit-closing-lead { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 560px; }
@media (max-width: 575.98px) { .kit-hero-title { font-size: 2rem; } }

/* Prophets view helpers (the design wrote these inline) */
.ps-hero-mark { width: 52px; height: 52px; border-radius: 14px; background: rgba(230,184,92,.2); border: 2px solid rgba(230,184,92,.4); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #e6b85c; }
.ps-hero-eyebrow { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #ffd894; font-weight: 700; }
.ps-hero-eyebrow-sub { font-size: .8rem; color: rgba(255,255,255,.6); }
.ps-hero-title { font-size: 2.5rem; line-height: 1.15; }
.ps-hero-lead { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 600px; margin-bottom: 1.5rem; }
.ps-hero-fact { color: rgba(255,255,255,.8); font-size: .9rem; }
.ps-hero-fact i { color: #ffd894; }
.ps-hero-chip-more { background: rgba(255,216,148,.2); color: #ffe3b0; font-weight: 700; }
.ps-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
.ps-sidebar-title { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(100,100,100,.7); }
.ps-honorific { font-size: .9rem; color: rgba(255,255,255,.6); }
a.ps-nav-item { color: inherit; }
a.ps-mob-btn { display: inline-block; }
@media (max-width: 575.98px) { .ps-hero-title { font-size: 1.9rem; } .ps-hero { padding: 2.5rem 0 2rem; } }


/* ==========================================================================
   Salah guide and interactive walkthrough (design: salah-guide.html)
   ========================================================================== */
/* Colour per position: --salah-tint is the soft ground, --salah-accent the text on it. */
.salah-theme-green  { --salah-tint: var(--ip-area-soft); --salah-accent: var(--ip-area-fill); --salah-badge-bg: #d1e7dd; }
.salah-theme-blue   { --salah-tint: #eff6ff; --salah-accent: #0d6efd; --salah-badge-bg: #cfe2ff; }
.salah-theme-purple { --salah-tint: #f5f0fb; --salah-accent: #6f42c1; --salah-badge-bg: #e9e2f8; }
.salah-theme-orange { --salah-tint: #fffbeb; --salah-accent: #b45309; --salah-badge-bg: #fff3cd; }
.salah-theme-red    { --salah-tint: #fff1f2; --salah-accent: #dc3545; --salah-badge-bg: #f8d7da; }

/* Positions timeline: the "What to Recite" panel takes the colour of its position */
.salah-recite-panel { background: var(--salah-tint, var(--ip-area-soft)); }
.salah-recite-panel.salah-theme-green  { background: #d1e7dd; }
.salah-recite-panel.salah-theme-blue   { background: #cfe2ff; }
.salah-recite-panel.salah-theme-purple { background: #ede4f9; }
.salah-recite-panel.salah-theme-orange { background: #fdf0e4; }
.salah-recite-panel.salah-theme-red    { background: #fbe4e6; }
.salah-theme-text { color: var(--salah-accent, var(--ip-area-strong)); }
.salah-howto > :last-child { margin-bottom: 0; }
.Namaztimeline-card:focus-visible { outline: 2px solid var(--ip-area-fill); outline-offset: 2px; }

/* Prayer cards: one box per unit, each a link into the walkthrough */
.salah-rakah-link { color: inherit; transition: border-color .15s, box-shadow .15s; }
.salah-rakah-link:hover, .salah-rakah-link:focus-visible { border-color: var(--ip-area-fill) !important; box-shadow: 0 2px 8px color-mix(in srgb, var(--ip-area-fill) 15%, transparent); }
.salah-rakah-count { width: fit-content; min-width: 28px; }

/* Rak'ah breakdown toggle */
.salah-breakdown-toggle { cursor: pointer; background: linear-gradient(135deg, var(--ip-area-fill) 0%, var(--ip-area) 100%); }
.salah-breakdown-icon { width: 52px; height: 52px; background: rgba(255,255,255,.18); }
.salah-breakdown-title { font-size: 1.2rem; }
.salah-breakdown-lead { color: rgba(255,255,255,.82); }
.salah-breakdown-chip { background: rgba(255,255,255,.18); border-radius: 50px; padding: 8px 18px; white-space: nowrap; }
.salah-breakdown-chevron { transition: transform .3s ease; }
.salah-breakdown-toggle[aria-expanded="true"] .salah-breakdown-chevron { transform: rotate(180deg); }

/* Walkthrough */
.salah-walk-info { background: rgba(25,135,84,.05); }
.salah-walk-progress { height: 5px; border-radius: 6px; }
.salah-walk-progress .progress-bar { transition: width .35s ease; }
.salah-walk-tint { background: var(--salah-tint, var(--ip-area-soft)); }
.salah-walk-accent { color: var(--salah-accent, var(--ip-area-strong)); }
.salah-walk-circle { width: 34px; height: 34px; font-size: 13px; background: var(--salah-accent, var(--ip-area-fill)); }
.salah-walk-badge { background: var(--salah-badge-bg, #d1e7dd); color: var(--salah-accent, var(--ip-area-strong)); }
.salah-walk-img { max-height: 190px; object-fit: contain; }
.salah-walk-moon { font-size: 3.5rem; }
.salah-step-rail { top: 96px; }
.salah-step-img { max-height: 320px; }
#paRecitePills .recite-pill { cursor: pointer; }

body.dark .salah-theme-green  { --salah-tint: color-mix(in srgb, var(--ip-area) 12%, transparent); --salah-accent: var(--ip-area); --salah-badge-bg: color-mix(in srgb, var(--ip-area) 20%, transparent); }
body.dark .salah-theme-blue   { --salah-tint: rgba(59,130,246,.12); --salah-accent: #8ab4ff; --salah-badge-bg: rgba(59,130,246,.2); }
body.dark .salah-theme-purple { --salah-tint: rgba(139,92,246,.12); --salah-accent: #b79cf5; --salah-badge-bg: rgba(139,92,246,.2); }
body.dark .salah-theme-orange { --salah-tint: rgba(245,158,11,.12); --salah-accent: #f5c26b; --salah-badge-bg: rgba(245,158,11,.2); }
body.dark .salah-theme-red    { --salah-tint: rgba(239,68,68,.12); --salah-accent: #f59aa3; --salah-badge-bg: rgba(239,68,68,.2); }
body.dark .salah-recite-panel[class*="salah-theme-"] { background: var(--salah-tint); }
body.dark .salah-walk-info { background: color-mix(in srgb, var(--ip-area) 8%, transparent); }

/* New Muslim kit: badge and feature tags of an item (StarterKitItem.Badge / FeatureTags) */
.kit-badge-special { background: #e6b85c; color: #1a1a1a; }
.kit-tag-purple { background: rgba(139,92,246,.12); color: #5534d6; }
body.dark .kit-tag-purple { color: #bba8ff; }

/* ── Lapis & Saffron layer (2026): the guide tabs on tokens, so dark mode reads ── */
.localTabs { background: var(--ip-surface); border-color: var(--ip-line) !important; border-radius: var(--ip-radius-xl); color: var(--ip-ink); }
.localTabs .nav-link { background: var(--ip-surface); border-color: var(--ip-line); color: var(--ip-ink); transition: border-color .2s var(--ip-ease), transform .2s var(--ip-ease), box-shadow .2s; }
.localTabs .nav-link:hover { border-color: color-mix(in srgb, var(--ip-area) 45%, var(--ip-line)); transform: translateY(-1px); box-shadow: var(--ip-shadow-sm); }
.localTabs .nav-link.active { background: var(--ip-area-soft); border-color: var(--ip-area); border-inline-start: 5px solid var(--ip-area-fill); color: var(--ip-ink); }
.localTabs .tabTitle, .localTabs .contentArea h2, .localTabs .contentArea h3, .localTabs .contentArea h4, .localTabs .contentArea h5, .localTabs .contentArea h6, .localTabs .summaryCard h6 { color: var(--ip-ink); }
.localTabs .tabDesc, .localTabs .contentArea p { color: var(--ip-muted); }
.localTabs .summaryCard { background: color-mix(in srgb, var(--ip-surface) 92%, transparent); border-color: color-mix(in srgb, var(--ip-surface) 70%, var(--ip-line)); }
.localTabs .summaryCard li { color: var(--ip-ink-2); }
body.dark .localTabs .tabsSidebar { background: color-mix(in srgb, var(--ip-area) 8%, var(--ip-surface)); }
body.dark .guide-rich, body.dark .guide-rich p { color: var(--ip-ink-2); }
.localTabs .contentArea { background: var(--ip-surface); }
.localTabs .contentArea .rounded-4.p-3, .localTabs .contentArea [class*="bg-"][class*="-subtle"] { color: var(--ip-ink); }
