/* The homepage stage and the interior mastheads share one architectural palette. */
:root {
  --hero-wash: linear-gradient(112deg, #09211d, #10392f 54%, #122b27);
  --hero-ink: #f6f3e9;
  --hero-copy: #ceddd6;
  --hero-brass: #e6c580;
  --hero-rule: rgb(202 176 117 / 38%);
  --hero-lattice: rgb(228 199 137 / 9%);
  --section-inset: clamp(32px, 4vw, 60px);
}
html[data-theme="light"] {
  --hero-wash: linear-gradient(112deg, #f9f7ed, #edf4eb 53%, #e2ede2);
  --hero-ink: #14372e;
  --hero-copy: #385349;
  --hero-brass: #78571e;
  --hero-rule: rgb(131 103 51 / 34%);
  --hero-lattice: rgb(115 100 58 / 10%);
}
html[data-theme] body #home, html body .site-hero {
  background: var(--hero-wash) !important;
  border-block-end: 1px solid var(--hero-rule);
}
.site-hero {
  position: relative;
  isolation: isolate;
  color: var(--hero-ink);
  text-align: start;
  padding-block: clamp(28px, 3.1vw, 52px);
}
.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(45deg, transparent 0 31px, var(--hero-lattice) 31px 32px),
    repeating-linear-gradient(-45deg, transparent 0 31px, var(--hero-lattice) 31px 32px);
  mask-image: linear-gradient(to right, transparent 20%, black);
}
[dir="rtl"] .site-hero::before { mask-image: linear-gradient(to left, transparent 20%, black); }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(140px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}
.hero-intro { min-width: 0; }
.hero-crumb, .hero-kicker, .hero-intro :is(.hero-actions,.hero-details) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-crumb { font-size: 14px; line-height: 1.55; color: var(--hero-copy); }
.hero-crumb a { color: inherit; text-underline-offset: .22em; }
.hero-crumb a:hover { color: var(--hero-brass); text-decoration: underline; }
.hero-crumb i { font-size: 9px; color: var(--hero-brass); }
[dir="rtl"] .hero-crumb i { transform: rotate(180deg); }
.hero-kicker {
  margin-block-start: 18px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--hero-brass);
}
.hero-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
html[data-theme] #home .hero-pill-badge.hero-kicker {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  flex-direction: row !important;
  box-shadow: none !important;
}
html[data-theme] #home .hero-kicker .badge-text { color: var(--hero-brass) !important; }
html[data-theme] #home .hero-lead-grand { color: var(--hero-copy) !important; }
html[lang="en"] #home .hero-headline-grand { font-size: clamp(34px, 3.8vw, 60px) !important; line-height: 1.14 !important; }
html[lang="ur"] #home .hero-headline-grand { font-size: clamp(34px, 3.45vw, 58px) !important; line-height: 1.72 !important; }
.hero-intro h1 {
  margin: 6px 0 12px;
  font-size: clamp(32px, 3.45vw, 54px);
  line-height: 1.14;
  color: var(--hero-ink);
  text-align: start;
  text-wrap: balance;
}
.hero-intro > p {
  margin: 0;
  max-inline-size: 76ch;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.65;
  color: var(--hero-copy);
}
html[lang="ur"] .hero-crumb { font-size: 18px; line-height: 1.8; }
html[lang="ur"] .hero-kicker { font-size: 20px; line-height: 1.8; }
html[lang="ur"] .hero-intro h1 {
  font-size: clamp(32px, 3.1vw, 54px) !important;
  line-height: 1.72 !important;
}
html[lang="ur"] .hero-intro > p { font-size: clamp(19px, 1.45vw, 23px); line-height: 1.95; }
.hero-intro :is(.hero-actions,.hero-details) { margin: 18px 0 0; gap: 10px; }
.hero-detail {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--hero-rule);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hero-copy);
}
.hero-detail i { color: var(--hero-brass) !important; }
html[lang="ur"] .hero-detail { font-size: 17px; line-height: 1.85; }
.hero-emblem {
  justify-self: center;
  width: clamp(130px, 12vw, 172px);
  aspect-ratio: 480 / 620;
  display: grid;
  place-items: center;
  background: url("images/mihrab-stage.svg") center / contain no-repeat;
  pointer-events: none;
}
.hero-emblem i {
  display: grid;
  place-items: center;
  width: 43%;
  aspect-ratio: 1;
  margin-block-start: 16%;
  border: 1px solid #bca163;
  border-radius: 50%;
  background: #153d31;
  color: #ead298;
  font-size: clamp(25px, 2.1vw, 35px);
  box-shadow: 0 0 0 4px #14372e, 0 0 0 5px rgb(226 201 146 / 44%);
}
.site-hero + :is(section,main,.recovery-links) { padding-block-start: var(--section-inset) !important; }
.site-hero + section > .container > .inner-page-screen-preview:first-child { margin-block-start: 0; }
.site-hero + section .mgmt-hero-stats-grid { margin: 0 auto var(--section-inset); }
.site-hero + .blog-section .blog-search-bar {
  margin: 0 0 20px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgb(12 39 30 / 10%);
}
.site-hero + .blog-section .blog-search-bar:focus-within { outline: 2px solid var(--hero-brass); }
.recovery-links { padding-block-end: var(--section-inset); }
.recovery-links .error-popular-links { margin: 0; padding: 0; border: 0; }
.recovery-links .error-links-flex { justify-content: start; }
body :is(.inner-page-screen-preview,.mgmt-stat-card,.ifta-form-card,.policy-box,.blog-card,.feature-card,.calc-card,.tracker-card,.tour-step-card) {
  border-radius: 18px;
  border-color: var(--color-border-subtle);
}
body .inner-page-screen-preview {
  background: var(--color-bg-card);
  box-shadow: 0 4px 16px rgb(6 32 24 / 10%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (max-width: 700px) {
  .hero-layout { display: block; }
  .hero-crumb, .hero-kicker { padding-inline-end: 63px; }
  .hero-kicker { margin-block-start: 8px; }
  .hero-emblem {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 18px;
    width: 48px;
  }
  .hero-emblem i { font-size: 11px; box-shadow: none; }
  .hero-intro h1 { margin-block: 10px; }
  .site-hero { padding-block: 24px 30px; }
  .hero-intro .hero-actions > a { max-inline-size: 100%; white-space: normal; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-intro h1 { animation: page-arrival .28s ease-out; }
}
@media (max-width: 480px) {
  .hero-intro .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-intro .hero-actions .btn { width: 100%; justify-content: center; }
}

.section-index {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 22px;
  margin: 0 0 24px;
  padding-block: 4px 12px;
  border-bottom: 1px solid var(--color-border-subtle);
  text-align: start;
  font-size: 15px;
  line-height: 1.5;
}
.section-index > span { color: var(--color-text-muted); }
.section-index i { margin-inline-end: 5px; font-size: 12px; }
.section-index ul { display: flex; flex-wrap: wrap; gap: 2px 18px; padding: 0; margin: 0; list-style: none; }
.section-index a { display: inline-flex; align-items: center; min-height: 38px; color: var(--color-text-title); }
.section-index a:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: 5px; }
html[lang="ur"] .section-index { font-size: 19px; line-height: 1.85; }
@media (max-width: 600px) {
  .section-index { display: grid; gap: 0; margin-bottom: 18px; }
  .section-index a { min-height: 44px; }
}
.section-index + .inner-page-screen-preview { margin-block-start: 0; }
.screens-carousel-wrapper .carousel-nav-btn:disabled { opacity: .4; cursor: default; }
.screens-carousel-track { scroll-padding-inline: 12px; }
html[dir="rtl"] .carousel-nav-btn.prev { left: auto; right: -22px; }
html[dir="rtl"] .carousel-nav-btn.next { right: auto; left: -22px; }
html[dir="rtl"] .carousel-nav-btn i { transform: rotate(180deg); }
