/* Masjid Hearts: single styles (ported from the Astro build) */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0;
}

.narrow {
  max-width: 720px;
}

.a-head {
  padding-top: clamp(112px, 13vw, 160px);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.back svg {
  width: 16px;
  height: 16px;
  transition: transform .25s var(--ease);
}

.back:hover {
  color: var(--green);
}

.back:hover svg {
  transform: translateX(-4px);
}

.a-head .eyebrow {
  display: flex;
}

.a-head h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  margin-top: 16px;
  color: var(--green);
}

.summary {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.42rem);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.byline {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.byline span:first-child {
  color: var(--ink);
}

.byline i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
}

.a-cover {
  margin-top: clamp(32px, 5vw, 56px);
  max-width: 1040px;
}

.a-cover .cover {
  aspect-ratio: 16 / 8;
  border-radius: 22px;
}

.prose {
  padding-top: clamp(36px, 5vw, 64px);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.6vw, 1.3rem);
  line-height: 1.68;
  color: #17332e;
}

.prose > * + * {
  margin-top: 1.25em;
}

.prose > p:first-child:first-letter {
  font-family: var(--display);
  font-weight: 650;
  font-size: 3.5em;
  line-height: .82;
  float: left;
  padding: .08em .1em 0 0;
  color: var(--green);
}

.prose h2 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--green);
  margin-top: 1.9em;
  text-wrap: balance;
}

.prose h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.12rem;
  margin-top: 1.7em;
}

.prose a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}

.prose a:hover {
  text-decoration-color: var(--green);
}

.prose strong {
  font-weight: 650;
  color: var(--ink);
}

.prose ul, .prose ol {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: .5em;
}

.prose li::marker {
  color: var(--gold-ink);
}

.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--gold);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2em;
  line-height: 1.35;
  color: var(--green);
}

.prose img {
  border-radius: 16px;
  margin-block: 1.8em;
}

.prose hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.4em 0;
}

.share {
  margin: clamp(44px, 6vw, 72px) 0 var(--section);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.share > span {
  font-weight: 650;
}

.share div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share a, .share button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: none;
  color: var(--green);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}

.share a:hover, .share button:hover {
  border-color: var(--green);
}

.cta {
  padding-block: clamp(56px, 8vw, 96px);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta h2 {
  margin: 14px 0;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.more-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.more-head h2 {
  color: var(--green);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px);
}

@media (width <= 900px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid .card:nth-child(3) {
    display: none;
  }
}

@media (width <= 600px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .cta-btns, .cta-btns .btn {
    width: 100%;
  }
}
