/* Each service uses the same content hierarchy, regardless of its photo layout. */
body[class] #main .section-text[id^="service-"] .section-heading h2 {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: .38em .7em .42em;
  border-radius: 14px;
  color: #133008;
  background: #e1eddf;
  font-size: clamp(20px, 1.65vw, 26px);
  line-height: 1.24;
  letter-spacing: -.025em;
  text-transform: none;
  text-wrap: balance;
}

body[class] #main .section-text[id^="service-"]:has(> .prose) {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 16px clamp(24px, 4vw, 64px);
  padding-block: clamp(22px, 2.4vw, 36px);
  border: 0;
}

body[class] #main .section-text[id^="service-"]:has(> .prose) > :is(.section-heading, .prose) {
  margin: 0;
  padding: 0;
}

body[class] #main .section-text[id^="service-"] .prose > :first-child { margin-top: 0; }
body[class] #main .section-text[id^="service-"] .prose > :last-child { margin-bottom: 0; }

body[class] #main .service-fact-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ds-ink);
  list-style: disc outside;
  font: var(--ds-body);
}
body[class] #main .service-fact-list li { margin: 0; padding-left: .12em; }
body[class] #main .service-fact-list li + li { margin-top: .22em; }
body[class] #main .service-fact-list li::marker { color: #c35c26; }

body[class] #main .steps.service-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
body[class] #main .steps.service-steps li {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 18px;
  margin: 0;
  padding: clamp(22px, 2.3vw, 34px);
  border: 0;
  border-radius: 20px;
  color: white;
  background: #133008;
  box-shadow: none;
}
body[class] #main .steps.service-steps .service-step-number {
  margin: 0;
  padding: 0;
  color: #b6dcac;
  background: none;
  font-size: clamp(28px, 3vw, 40px);
  font-family: var(--rc-heading-font);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
}
body[class] #main .steps.service-steps h3 {
  margin: 0;
  color: white;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.24;
  text-wrap: balance;
  text-transform: none;
}

body[class] #main .editorial-entry h3,
body[class] #main .story-link h3 {
  text-transform: none;
  line-height: 1.55;
  text-decoration: none;
}
body[class] #main .editorial-entry h3 a,
body[class] #main .story-link h3 span {
  display: inline;
  padding: .13em .36em;
  border-radius: .35em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: #133008;
  background: #dfecd9;
  text-decoration: underline;
  text-decoration-color: #8ca884;
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}
body[class] #main :is(.story-link, .editorial-entry) p { margin-top: .65rem; }
body[class] #main :is(.story-link small, .entry-meta) strong { color: #133008; font-weight: 700; }
body[class] #main .editorial-entry h3 a:is(:hover, :focus-visible),
body[class] #main .story-link:is(:hover, :focus-visible) h3 span {
  background: #133008;
  color: white;
  text-decoration-color: currentColor;
}
body.page-events #main #events-1 .section-heading h2 {
  display: inline-block;
  padding: .23em .5em;
  border-radius: .4em;
  color: #133008;
  background: #e1eddf;
  text-transform: none;
}

/* Keep the grant checklist and its two illustrations in separate rows on phones. */
@media (max-width: 767px) {
  .hero-scene.scene-project {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas: "idea note" "paper paper" "coins badge";
    align-items: center;
    gap: 12px;
    height: auto;
    max-width: 480px;
    margin-inline: auto;
  }
  .scene-project > :is(.hero-paper, .hero-object, .hero-label) {
    position: relative;
    inset: auto;
    rotate: none;
    translate: none;
    animation: none;
    width: auto;
    max-width: 100%;
  }
  .scene-project > .scene-route { display: none; }
  .scene-project .project-idea { grid-area: idea; }
  .scene-project .project-coins { grid-area: coins; }
  .scene-project > .hero-object { width: 42px; height: 42px; }
  .scene-project .project-note {
    grid-area: note;
    padding: 0;
    background: transparent;
    font-size: 14px;
    line-height: 1.35;
  }
  .scene-project .project-paper { grid-area: paper; padding: 18px 20px; }
  .scene-project .project-paper::before { display: none; }
  .scene-project .paper-row { font-size: 15px; padding-block: 10px; }
  .scene-project .paper-caption, .scene-project .paper-number { font-size: 12px; }
  .scene-project .project-badge {
    grid-area: badge;
    justify-self: start;
    padding: 7px 13px;
  }
  .scene-project .project-badge span, .scene-project .project-badge b {
    display: inline;
    font-size: 14px;
    line-height: 1.4;
  }
  .scene-project .project-badge b { margin-inline-start: .3em; }
}

@media (max-width: 767px) {
  body[class] #main .section-text[id^="service-"]:has(> .prose),
  body[class] #main .steps.service-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body[class] #main .steps.service-steps li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 22px;
  }
}
