/* About us page. Loaded by about/index.html only. Rows, photo rings, point tiles, goal cards
   and the download band come from sections.css. */

/* Photo rows: smaller rings, centred against the text */
.about-row {
  align-items: center;
}

.about-row .ornate-photo {
  inline-size: min(100%, 20rem);
}

/* The text fills its column, so the photo sits close to it */
.about-row .season-copy {
  gap: var(--space-3);
  max-inline-size: none;
}

.about-row .season-copy .label-pill + h2 {
  margin-block-start: calc(var(--space-1) * -1);
}

@media (min-width: 1024px) {
  .about-row {
    grid-template-columns: 20rem minmax(0, 1fr);
    gap: var(--space-8);
  }

  .about-row.season-row--flip {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}

/* Consecutive content sections on this page sit closer together */
.seasons + .quote-band-wrap {
  padding-block-start: 0;
}

.quote-band-wrap + .section {
  padding-block-start: var(--space-6);
}

/* Three key figures in one white strip with dividers */
.stat-strip {
  display: grid;
  max-inline-size: none;
  margin-block: var(--space-1);
  padding: 0;
  border: 1px solid var(--c-rule);
  border-radius: var(--radius-m);
  background: var(--c-surface);
  box-shadow: var(--shadow-card);
  list-style: none;
}

.stat-strip li {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
}

.stat-strip li + li {
  border-block-start: 1px solid var(--c-rule);
}

.stat-strip strong {
  color: var(--c-emerald);
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.2;
  white-space: nowrap;
}

.stat-strip span {
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
  line-height: 1.35;
}

@media (min-width: 560px) {
  .stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-strip li + li {
    border-block-start: 0;
    border-inline-start: 1px solid var(--c-rule);
  }
}

/* Closing note under the Hajj risks */
.about-note {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-block-start: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-inline-start: 4px solid var(--c-brass);
  border-radius: var(--radius-s);
  background: var(--c-dawn);
}

.about-note .icon {
  margin-block-start: 0.2em;
  color: var(--c-brass-text);
}

/* Quote band: green panel with the lattice */
.quote-band-wrap {
  padding-block: var(--space-2);
}

.quote-band {
  --focus: var(--c-brass);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--space-6) + 2rem) var(--space-5) var(--space-6);
  border-radius: var(--radius-l);
  background: var(--c-night);
  color: var(--c-on-night);
  text-align: center;
}

.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-on-night);
  opacity: 0.07;
  -webkit-mask: url("/assets/images/pattern-star-cross.svg") center / 96px 96px repeat;
  mask: url("/assets/images/pattern-star-cross.svg") center / 96px 96px repeat;
}

/* Large olive quotation mark */
.quote-band::after {
  content: "\201C";
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-start: 50%;
  z-index: -1;
  color: var(--c-brass);
  font-family: var(--font-head);
  font-size: 6rem;
  line-height: 1;
  opacity: 0.45;
  translate: -50% 0;
}

.quote-band blockquote p {
  max-inline-size: 30ch;
  margin-inline: auto;
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 1.15rem + 1.1vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.quote-band figcaption {
  max-inline-size: 52ch;
  margin: var(--space-3) auto 0;
  color: var(--c-on-night-soft);
}

@media (min-width: 768px) {
  .quote-band {
    padding: calc(var(--space-6) + 2.5rem) var(--space-7) var(--space-6);
  }
}

/* Timeline: three steps, joined by a line */
.timeline {
  position: relative;
  display: grid;
  gap: var(--space-5);
  max-inline-size: none;
  padding: 0;
  list-style: none;
}

.timeline__step {
  position: relative;
  padding: var(--space-4);
  padding-inline-start: calc(var(--space-4) + 3.25rem);
  border: 1px solid var(--c-rule);
  border-radius: calc(var(--radius-l) - 12px);
  background: var(--c-surface);
  box-shadow: var(--shadow-card);
}

.timeline__marker {
  position: absolute;
  inset-block-start: var(--space-4);
  inset-inline-start: var(--space-4);
  display: grid;
  place-items: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border-radius: 50%;
  background: var(--c-emerald);
}

.timeline__marker .icon {
  fill: none;
  stroke: var(--c-brass);
  stroke-width: 1.4;
}

.timeline__when {
  color: var(--c-brass-text);
  font-family: var(--font-head);
  font-weight: 700;
}

.timeline__step h3 {
  margin-block: 2px var(--space-1);
  font-size: 1.125rem;
}

.timeline__step p:last-child {
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
}

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* The line runs through the markers, behind the cards */
  .timeline::before {
    content: "";
    position: absolute;
    inset-block-start: calc(var(--space-4) + 1.25rem);
    inset-inline: var(--space-4);
    border-block-start: 2px dashed var(--c-brass);
    opacity: 0.6;
  }

  .timeline__step {
    padding: calc(var(--space-4) + 3.25rem) var(--space-4) var(--space-4);
  }
}

/* Compact goal cards (this page): tighter padding, no medallion. The icon sits beside the title
   only when the card is wide enough; in a narrow card (phones, the two-column tablet layout) it
   would squeeze the purpose text into a thin column, so it stays above the title there. */
.goal-cards--compact .goal-cards__emblem {
  display: none;
}

.goal-cards--compact .goal-card {
  container-type: inline-size;
}

.goal-cards--compact .goal-card__head {
  row-gap: var(--space-2);
  padding: var(--space-5);
}

.goal-cards--compact .goal-card__head .icon-badge {
  margin: 0 0 var(--space-2);
}

@container (min-width: 26rem) {
  .goal-cards--compact .goal-card__head {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: var(--space-4);
  }

  .goal-cards--compact .goal-card__head .icon-badge {
    grid-row: span 2;
    margin: 0;
  }
}

.goal-cards--compact .goal-card__head h3 {
  font-size: 1.5rem;
}

.goal-cards--compact .goal-card__head p {
  font-size: var(--fs-small);
}

.goal-cards--compact .goal-card__star {
  inline-size: 8rem;
  block-size: 8rem;
}

.goal-cards--compact .goal-card__body {
  gap: var(--space-4);
  padding: var(--space-5);
}

.goal-cards--compact .checklist li + li {
  margin-block-start: var(--space-2);
  padding-block-start: var(--space-2);
}
