
/* The same routes are present in both versions of the site menu. */
.desktop-nav {
  gap: clamp(14px, 1.45vw, 28px);
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(.84rem, 1.2vw, .98rem);
}

.mobile-nav:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 16px var(--site-gutter) 24px;
  max-height: min(100svh - 86px, 530px);
}

.mobile-nav > a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  min-height: 48px;
  border: 1px solid #d6e3da;
  border-radius: 5px;
  line-height: 1.45;
  word-break: auto-phrase;
}

.mobile-nav > button {
  grid-column: 1 / -1;
  margin-top: 4px;
  border-radius: 5px;
}

.home-hero-actions > a:first-child {
  font-weight: 700;
}

.purpose-entry .purpose-card-body strong {
  font-weight: 700;
  color: #244b3f;
  word-break: auto-phrase;
}

.purpose-entry .purpose-card:where(:hover, :focus-visible) {
  border-color: #2f6b5e;
}

.seo-hero > .service-hero-inner {
  display: grid;
  align-items: center;
  gap: clamp(20px, 3vw, 55px);
}

.service-hero-copy { min-width: 0; }

main .seo-hero .service-hero-copy h1 {
  font-size: clamp(1.95rem, 3.7vw, 3.35rem) !important;
  line-height: 1.4 !important;
  word-break: auto-phrase;
  text-wrap: balance;
}

.service-next {
  align-self: center;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: clamp(12px, 1.5vw, 22px);
  border: 1px solid #cbdad0;
  border-radius: 8px;
  background: #fff;
}

.service-next > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 9px 13px;
  border-radius: 5px;
  background: #f1f6f2;
  color: #204b3f;
  line-height: 1.5;
  font-weight: 700;
  word-break: auto-phrase;
}

.service-next > a:hover { background: #e3eee7; }

.service-next > a > span[aria-hidden] {
  flex: 0 0 auto;
  font-size: 1.15rem;
}

.mobile-contact > :is(a, button) {
  min-width: 0;
  min-height: 48px;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .seo-hero > .service-hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  }
}

@media (max-width: 630px) {
  .service-next > a { font-size: .96rem; }
}

/* Keep the current photograph-led headings and align the next-page choices below them. */
main > .service-next.section-wrap {
  width: calc(100% - var(--site-gutter) - var(--site-gutter));
  max-width: none;
  margin: 20px auto;
  padding: 12px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
main #purpose { padding-block: 38px; }
main #purpose h2 { font-size: clamp(1.6rem,2.6vw,2.2rem); }
@media (max-width: 767px) {
  main > .service-next.section-wrap { grid-template-columns: 1fr; }
}
@media (min-width: 1025px) {
  .header .desktop-nav { gap: clamp(8px,1vw,20px); }
  .header .desktop-nav a { font-size: clamp(.8rem,1.08vw,.96rem); }
}
