/* Safar list and step pages. Yellow matches the app icon. */
.safar-public {
  --sfa-yellow: #F4CC00;
  --sfa-ink: #3A2C00;
  --sfa-gold: #C99A00;
  --sfa-paper: #F3ECDA;
}
.safar-public .crumb { padding: 18px 0 0; }
.safar-public .crumb a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-3); font-size: 13px; font-weight: 600; text-decoration: none;
}
.safar-public .crumb a:hover { color: var(--sfa-gold); }

.sfs-list-head {
  background:
    radial-gradient(800px 360px at 10% 0%, rgba(244, 204, 0, 0.20), transparent 70%),
    var(--sfa-paper);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 36px;
}
.sfs-list-head h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: 48px; line-height: 1.12; letter-spacing: -1px;
  margin: 18px 0 12px;
}
[dir="rtl"] .sfs-list-head h1 { font-family: var(--farsi-display); font-weight: 400; letter-spacing: 0; }
.sfs-list-head .lede { max-width: 640px; margin: 0 0 22px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.safar-public .sfa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; border: none;
  cursor: pointer; font-family: inherit;
}
.safar-public .sfa-btn-gold { background: var(--sfa-yellow); color: var(--sfa-ink); }
.safar-public .sfa-btn-gold:hover { background: #E5BE00; }

/* Top and bottom only. A padding shorthand here wipes the .wrap
   side gutter (32px, 24px under 1024px) because this file loads later. */
.sfs-list { padding-top: 36px; padding-bottom: 72px; max-width: 820px; }
.sfs-stage { margin: 0 0 36px; }
.sfs-stage h2 { margin: 0 0 6px; font-size: 22px; }
[dir="rtl"] .sfs-stage h2 { font-family: var(--farsi-display); font-weight: 400; }
.sfs-stage > p { margin: 0 0 14px; color: var(--ink-3); }
.sfs-stage ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sfs-stage a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; text-decoration: none; color: inherit;
}
.sfs-stage a:hover { border-color: var(--sfa-yellow); }
.sfs-stage .num {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 999px;
  background: var(--sfa-yellow); color: var(--sfa-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.sfs-stage .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sfs-stage .t { font-weight: 700; }
.sfs-stage .s { color: var(--ink-3); font-size: 14px; }
.sfs-stage .chev { flex: 0 0 auto; color: var(--ink-4); }
[dir="rtl"] .sfs-stage .chev,
[dir="rtl"] .sstep-after svg { transform: scaleX(-1); }
.sfs-empty { color: var(--ink-3); }

.sstep-wrap {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  padding-bottom: 72px;
}
.sstep-hero { position: relative; padding: 8px 0 44px; margin-bottom: 32px; }
.sstep-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.sstep-hero .eb { margin: 8px 0 0; color: var(--sfa-gold); font-weight: 800; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; }
[dir="rtl"] .sstep-hero .eb { letter-spacing: 0.2px; text-transform: none; font-size: 14px; }
.sstep-hero h1 { margin: 14px 0 0; font-family: var(--serif); font-weight: 500; font-size: 48px; line-height: 1.05; letter-spacing: -1.2px; }
[dir="rtl"] .sstep-hero h1 { font-family: var(--farsi-display); font-weight: 400; letter-spacing: 0; }
.sstep-art {
  aspect-ratio: 16 / 9; border-radius: 18px; margin: 22px 0 0;
  background: #2A2105 center / cover no-repeat;
  box-shadow: 0 18px 40px rgba(110, 84, 8, 0.18);
}
.sstep-hero .lede { color: var(--ink-2); font-size: 17px; line-height: 1.7; max-width: 640px; margin: 22px 0 0; }
.sstep-video, .sstep-cover {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: none; border-radius: 18px; padding: 0; margin: 8px 0 16px;
  background: #1c1c1e center / cover no-repeat;
  background-image: var(--sstep-poster);
  cursor: pointer; overflow: hidden;
}
.sstep-cover { cursor: default; }
.sstep-video .play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  border-radius: 999px; background: var(--sfa-yellow); color: var(--sfa-ink);
  display: flex; align-items: center; justify-content: center;
}
.sstep-video .note {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(255,255,255,0.92); color: var(--sfa-ink);
  font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
}
.sstep-video iframe,
.sstep-video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; background: #000; object-fit: contain;
}
.sstep-video.is-playing { cursor: default; }
.sstep-actions { display: flex; gap: 10px; margin: 18px 0 0; }
.sstep-share {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper-2); border: none; border-radius: 999px;
  padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; color: var(--ink-2); text-decoration: none;
}
.sstep-start {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 14px 22px; border: none; border-radius: 999px;
  background: var(--sfa-yellow); color: var(--sfa-ink); cursor: pointer;
  font: inherit; font-weight: 700; font-size: 14.5px;
  box-shadow: 0 14px 28px rgba(244, 204, 0, 0.34);
}
[dir="rtl"] .sstep-start svg,
[dir="rtl"] .sstep-next .arrow { transform: scaleX(-1); }
.sstep-sec { margin: 0; padding: 56px 0 28px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.sstep-hero + .sstep-sec { border-top: none; padding-top: 24px; }
.sstep-sec.past, .sstep-sec.upcoming { opacity: 0.36; }
.sstep-sec.current { opacity: 1; }
.sstep-sec > header { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.sstep-badge { display: inline-flex; align-items: center; gap: 14px; }
.sstep-sec .num {
  width: 64px; height: 64px; border-radius: 999px; flex: 0 0 64px;
  background: var(--sfa-yellow); color: var(--sfa-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 500; font-size: 24px;
  box-shadow: 0 12px 28px rgba(244, 204, 0, 0.32);
}
[dir="rtl"] .sstep-sec .num { font-family: var(--farsi-display); }
.sstep-sec .of { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--sfa-gold); }
[dir="rtl"] .sstep-sec .of { letter-spacing: 0.2px; text-transform: none; font-size: 13px; }
.sstep-sec h2 { margin: 6px 0 0; font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1.1; letter-spacing: -0.6px; }
[dir="rtl"] .sstep-sec h2 { font-family: var(--farsi-display); font-weight: 400; letter-spacing: 0; }
.sstep-body { padding: 0; }
.sstep-body p { font-size: 17px; line-height: 1.8; color: var(--ink-2); margin: 0 0 16px; }
[dir="rtl"] .sstep-body ol { list-style: persian; }
.sstep-body ol.sstep-verse-list,
.sstep-body ul.sstep-verse-list { list-style: none; padding: 0; margin: 8px 0 18px; }
.sstep-body li.sstep-verse-item { list-style: none; margin: 0 0 12px; }
.sstep-verse {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; cursor: pointer; text-align: start; font: inherit; color: inherit;
}
.sstep-verse:hover { border-color: #41A769; box-shadow: 0 14px 30px rgba(65, 167, 105, 0.18); }
.sstep-verse .ico {
  width: 48px; height: 48px; border-radius: 12px; flex: 0 0 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(65, 167, 105, 0.10) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2341A769' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h10a4 4 0 0 1 4 4v14a2 2 0 0 0-2-2H4z'/%3E%3Cpath d='M4 4v18'/%3E%3C/svg%3E") center no-repeat;
}
.sstep-verse .info { min-width: 0; }
.sstep-verse .l { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3); }
[dir="rtl"] .sstep-verse .l { letter-spacing: 0.2px; text-transform: none; font-size: 13px; }
.sstep-verse .t { display: block; margin-top: 2px; font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--ink); }
[dir="rtl"] .sstep-verse .t { font-family: var(--farsi-display); }
.sstep-verse .chev { margin-inline-start: auto; color: var(--ink-3); flex: 0 0 auto; }
[dir="rtl"] .sstep-verse .chev { transform: scaleX(-1); }
.sstep-verse-note { margin: 8px 0 0; }
.sstep-verse-scrim,
.sstep-verse-sheet { position: fixed; }
.sstep-verse-scrim { inset: 0; background: rgba(20, 16, 8, 0.46); z-index: 80; }
.sstep-verse-sheet {
  z-index: 81; inset-inline: 16px; top: 50%; transform: translateY(-50%);
  max-width: 560px; margin-inline: auto; max-height: min(78vh, 640px);
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 22px 18px; border-radius: 18px; background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.sstep-verse-sheet[hidden],
.sstep-verse-scrim[hidden] { display: none !important; }
.sstep-verse-sheet .k { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #41A769; }
[dir="rtl"] .sstep-verse-sheet .k { letter-spacing: 0.2px; text-transform: none; font-size: 13px; }
.sstep-verse-sheet h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 28px; }
[dir="rtl"] .sstep-verse-sheet h3 { font-family: var(--farsi-display); }
.sstep-verse-sheet .body { overflow: auto; }
.sstep-verse-sheet .body p { margin: 0 0 12px; font-size: 17px; line-height: 1.8; color: var(--ink); }
.sstep-verse-sheet .vn {
  display: inline-block; margin-inline-end: 8px; font-size: 12px; font-weight: 800; color: #41A769;
}
.sstep-verse-sheet .foot { display: flex; align-items: center; gap: 12px; }
.sstep-verse-sheet .foot a { color: #1F7A45; font-weight: 700; }
.sstep-verse-sheet .foot button {
  margin-inline-start: auto; border: 0; background: transparent; font: inherit; font-weight: 700; cursor: pointer;
}
.sstep-next {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 8px; padding: 14px 22px; border: none; border-radius: 999px;
  background: var(--sfa-yellow); color: var(--sfa-ink); cursor: pointer;
  font: inherit; font-weight: 700;
  box-shadow: 0 14px 28px rgba(244, 204, 0, 0.34);
}
.sstep-next .lbl { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
[dir="rtl"] .sstep-next .lbl { letter-spacing: 0; text-transform: none; font-size: 13px; }
.sstep-next .next-name { font-family: var(--serif); font-weight: 500; font-size: 17px; }
[dir="rtl"] .sstep-next .next-name { font-family: var(--farsi-display); }
.sstep-after {
  display: flex; align-items: center; gap: 12px;
  margin-top: 56px; padding: 16px 18px;
  border: 1.5px solid #E8D58A; border-radius: 18px;
  text-decoration: none; color: inherit; background: #fff;
}
.sstep-after .k { display: block; color: var(--sfa-gold); font-size: 12px; font-weight: 800; }
.sstep-after .t { font-weight: 700; flex: 1; }
.sstep-side-sticky { position: sticky; top: 92px; padding-top: 28px; }
.sstep-side p { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.6px; color: var(--ink-3); }
.sstep-side nav { display: flex; flex-direction: column; gap: 2px; position: relative; }
.sstep-side nav::before {
  content: ''; position: absolute; inset-block: 12px; inset-inline-start: 7px;
  width: 2px; background: var(--line);
}
.sstep-side button {
  position: relative; text-align: start; background: transparent; border: none;
  font: inherit; font-size: 14px; color: var(--ink-3); cursor: pointer;
  padding: 8px 0 8px 28px;
}
[dir="rtl"] .sstep-side button { padding: 8px 28px 8px 0; }
.sstep-side button::before {
  content: ''; position: absolute; inset-inline-start: 2px; top: 50%;
  width: 12px; height: 12px; border-radius: 999px; background: #fff;
  border: 2px solid var(--line); transform: translateY(-50%);
}
.sstep-side button.on,
.sstep-side button.visited { color: var(--ink); }
.sstep-side button.on::before,
.sstep-side button.visited::before { background: var(--sfa-yellow); border-color: var(--sfa-yellow); }

@media (max-width: 980px) {
  .sstep-wrap { grid-template-columns: 1fr; }
  .sstep-side { display: none; }
  .sfs-list-head h1 { font-size: 32px; }
}
@media (max-width: 760px) {
  .safar-public .sfa-btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
  .sstep-hero h1 { font-size: 38px; letter-spacing: -1px; }
  .sstep-sec h2 { font-size: 30px; }
  .sstep-sec .num { width: 52px; height: 52px; flex-basis: 52px; font-size: 20px; }
}
