/* SAHELI FIRST RESPONDERS — page-specific styles.
   Layered on home.css (tokens, .iei-*) and saheli-movement.css (.sm-hero,
   .sm-section, .sm-principle, .sm-map …), so this page reads as part of the
   Saheli Movement family. Only the pieces that page doesn't have live here. */

.sfr-crumb {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 18px;
}

.sfr-crumb:hover {
  color: var(--seagrass);
}

.sfr-hero__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.sfr-hero__panel {
  max-width: 560px;
}

.sfr-hero__photo {
  aspect-ratio: 4 / 5;
  max-height: 560px;
}

.sfr-h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  color: var(--graphite);
  margin: 0 0 16px;
}

.sfr-h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--graphite);
  margin: 0 0 8px;
}

.sfr-muted {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 18px;
}

/* STATS */
.sfr-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sfr-stat {
  border-top: 3px solid var(--seagrass);
  padding-top: 14px;
}

.sfr-stat--paprika { border-top-color: var(--paprika); }
.sfr-stat--amber { border-top-color: var(--amber); }
.sfr-stat--seagrass { border-top-color: var(--seagrass); }
.sfr-stat--graphite { border-top-color: var(--graphite); }

.sfr-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.sfr-stat span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.sfr-source {
  font-size: 12.5px;
  color: var(--muted);
  margin: 18px 0 44px;
}

/* MAP + DISTRICTS */
.sfr-where {
  display: grid;
  gap: 28px;
}

.sfr-districts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.sfr-districts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: #fcfcfc;
  border: 1px solid rgba(53, 53, 53, 0.08);
  border-left: 3px solid var(--seagrass);
  border-radius: 10px;
}

.sfr-districts b {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--graphite);
}

.sfr-districts span {
  font-size: 12.5px;
  color: var(--muted);
}

/* DIFFERENT */
.sfr-diff {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.sfr-diff .sm-principle p {
  font-size: 14.5px;
}

/* PHOTOS */
.sfr-wide {
  margin: 40px 0 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream-alt);
}

.sfr-wide img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.sfr-wide figcaption,
.sfr-trio figcaption {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  padding: 10px 2px 0;
}

.sm-section--alt .sfr-wide {
  background: transparent;
}

.sfr-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.sfr-trio figure {
  margin: 0;
}

.sfr-trio img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

/* STORIES */
.sfr-stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.sfr-story {
  background: #fcfcfc;
  border: 1.5px solid rgba(53, 53, 53, 0.08);
  border-top: 4px solid var(--seagrass);
  border-radius: 16px;
  padding: 24px 22px;
}

.sfr-story--paprika { border-top-color: var(--paprika); }
.sfr-story--amber { border-top-color: var(--amber); }

.sfr-story__place {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--seagrass);
  margin-bottom: 6px;
}

.sfr-story--paprika .sfr-story__place { color: var(--paprika); }
.sfr-story--amber .sfr-story__place { color: var(--secondary-text); }

.sfr-story__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--graphite);
  margin: 0 0 12px;
}

.sfr-story p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* PILOT (dark band) */
.sfr-pilot {
  background: var(--charcoal-dark);
}

.sfr-pilot .iei-section-inner {
  padding-top: 80px;
  padding-bottom: 80px;
}

.sfr-pilot .iei-h2 {
  margin-bottom: 40px;
}

.sfr-stats--dark .sfr-stat {
  border-top-color: var(--amber);
}

.sfr-stats--dark .sfr-stat:nth-child(2) { border-top-color: var(--seagrass); }
.sfr-stats--dark .sfr-stat:nth-child(3) { border-top-color: var(--paprika); }
.sfr-stats--dark .sfr-stat:nth-child(4) { border-top-color: #fcfcfc; }

.sfr-stats--dark .sfr-stat strong {
  color: #fcfcfc;
}

.sfr-stats--dark .sfr-stat span {
  color: var(--muted-dark);
}

.sfr-pilot__next {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-dark);
  max-width: 640px;
  margin: 36px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--amber);
}

/* MODEL — five-stage cycle */
.sfr-model {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  counter-reset: none;
}

.sfr-stage {
  position: relative;
  background: #fcfcfc;
  border: 1.5px solid rgba(67, 170, 139, 0.3);
  border-radius: 14px;
  padding: 20px 18px;
}

.sfr-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -11px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--seagrass);
  border-right: 2px solid var(--seagrass);
  transform: rotate(45deg);
}

.sfr-stage__num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--seagrass-tint);
  color: var(--primary-text);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sfr-stage h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--graphite);
  margin: 0 0 8px;
}

.sfr-stage p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.sfr-stage--final {
  background: var(--amber-tint);
  border-color: rgba(253, 202, 2, 0.6);
}

.sfr-stage--final .sfr-stage__num {
  background: var(--amber);
  color: var(--charcoal-dark);
}

.sfr-loop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-text);
  margin: 22px 0 0;
}

.sfr-loop svg {
  width: 18px;
  height: 18px;
}

/* ESSAYS */
.sfr-essays {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.sfr-essay p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 14px;
}

.sfr-essay .sm-case__quote p {
  color: var(--graphite);
}

/* TOOLS */
.sfr-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sfr-tool {
  background: #fcfcfc;
  border: 1.5px solid rgba(53, 53, 53, 0.08);
  border-radius: 16px;
  padding: 24px 22px;
}

.sfr-tool__status {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-text);
  background: var(--seagrass-tint);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.sfr-tool__status--dev {
  color: var(--secondary-text);
  background: var(--amber-tint);
}

.sfr-tool h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--graphite);
  margin: 0 0 8px;
}

.sfr-tool p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.sfr-policy {
  margin-top: 48px;
}

.sfr-policy ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.sfr-policy li {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(53, 53, 53, 0.1);
}

.sfr-policy strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--graphite);
}

.sfr-policy span {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* ASKS */
.sfr-asks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sfr-ask {
  border-radius: 16px;
  padding: 24px 20px;
  background: var(--seagrass-tint);
}

.sfr-ask--amber { background: var(--amber-tint); }
.sfr-ask--paprika { background: rgba(236, 78, 32, 0.1); }
.sfr-ask--graphite { background: var(--neutral-tint); }

.sfr-ask h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--graphite);
  margin: 0 0 8px;
}

.sfr-ask p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* CONTACT */
.sfr-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 90px;
}

.sfr-contact__rows {
  display: grid;
  gap: 12px;
}

.sfr-contact__row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid rgba(252, 252, 252, 0.18);
  border-radius: 10px;
}

.sfr-contact__row .mono {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  min-width: 80px;
}

.sfr-contact__row a {
  flex: 1;
  min-width: 0;
  color: #fcfcfc;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.sfr-contact__row a:hover {
  text-decoration: underline;
}

.sfr-copy {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--charcoal-dark);
  background: var(--amber);
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.sfr-copy:hover {
  background: #fcfcfc;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .sfr-model {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sfr-stage--final {
    grid-column: 1 / -1;
  }

  .sfr-stage::after {
    display: none;
  }
}

@media (max-width: 980px) {
  .sfr-hero__grid,
  .sfr-essays,
  .sfr-contact {
    grid-template-columns: 1fr;
  }

  .sfr-hero__photo {
    aspect-ratio: 4 / 3;
  }

  .sfr-stats,
  .sfr-asks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sfr-districts ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sfr-stories,
  .sfr-tools,
  .sfr-trio {
    grid-template-columns: 1fr;
  }

  .sfr-essays {
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .iei-section-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sfr-districts ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sfr-diff,
  .sfr-model,
  .sfr-asks {
    grid-template-columns: 1fr;
  }

  .sfr-wide img {
    aspect-ratio: 4 / 3;
  }

  .sfr-policy li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .sfr-contact {
    padding: 64px 20px;
  }
}
