/* Home service cards */
.service-choice-card { position: relative; }
.home-service-main::after { content: ""; position: absolute; inset: 0; }
.home-service-main + a { position: relative; }
.home-service-links {
  display: grid;
  margin-top: auto;
  border-top: 1px solid #cad6d2;
}
.home-service-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 700;
}
.home-service-links a + a { border-top: 1px solid #cad6d2; }
.home-service-links a:hover { text-decoration: underline; }
.service-card.service-choice-card:hover { background: white; color: var(--ink); }
.service-card.service-choice-card:hover .service-tag { color: var(--teal); }

/* Service finder */
.purpose-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0 12px;
  gap: 10px;
}
.purpose-menu a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  align-items: center;
  padding: 16px 18px;
  background: white;
  border: 1px solid #c8d9d2;
  border-radius: 4px;
  color: #243d3b;
  line-height: 1.5;
}
.purpose-menu a:hover { background: #eff8f5; border-color: #457269; }
.purpose-menu a span { font-size: 12px; font-weight: 700; color: #48665d; }
.purpose-menu strong { grid-column: 1; font-size: 15px; }
.purpose-menu i { grid-column: 2; grid-row: 1 / 3; font-style: normal; }
.service-extra-links, .enger-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  font-size: 14px;
}
.service-extra-links a, .enger-related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: .22em;
}

/* Shared ENGER choices on the service overview and detail pages */
.enger-feature {
  grid-column: 1 / -1;
  min-width: 0;
  scroll-margin-top: 100px;
}
.enger-feature > h3 { margin: 0; font-size: clamp(25px, 3vw, 34px); }
.enger-intro { margin: 4px 0 18px; line-height: 1.75; }
.enger-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.enger-path {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #c8d9d2;
  border-top: 4px solid #337766;
  border-radius: 4px;
  background: white;
  color: #243d3b;
  scroll-margin-top: 100px;
}
.enger-path > .enger-audience { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #42685d; }
.enger-path :is(h3, h4) { margin: 0; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.45; }
.enger-path > .enger-description { margin: 12px 0 18px; line-height: 1.85; font-size: 15px; }
.enger-example {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto 0 16px;
  min-height: 172px;
  background: #f2f7f4;
  border: 1px solid #d7e3dc;
  border-radius: 4px;
}
.search-example { padding: 12px 18px; }
.search-example p, .screen-example figcaption { margin: 0; color: #45665e; font-size: 12px; font-weight: 700; }
.search-example dl { margin: 5px 0 0; }
.search-example dl > div { display: flex; gap: 12px; padding: 5px 0; border-bottom: 1px solid #d7e3dc; }
.search-example dl > div:last-child { border: 0; }
.search-example dt { flex: 0 0 5em; font-size: 13px; }
.search-example dd { margin: 0; font-size: 14px; font-weight: 700; }
.screen-example { align-items: center; padding: 6px 12px; }
.enger-path .screen-example img { display: block; width: 100%; height: 142px; object-fit: cover; object-position: top; }
.screen-example figcaption { text-align: center; }
.enger-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 15px; }
.enger-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}
.enger-actions .enger-consult {
  padding: 10px 16px;
  border-radius: 999px !important;
  background: var(--e8-ink);
  color: white !important;
}
.enger-actions .enger-consult:hover { background: var(--e8-accent); }
.enger-view { color: #243d3b; text-decoration: underline; text-underline-offset: .22em; }
.enger-related { margin: 4px 0 14px; }
:is(.home-service-links, .purpose-menu, .enger-actions, .service-extra-links, .enger-related) a:focus-visible {
  outline: 3px solid #36796c;
  outline-offset: 3px;
}
@media (max-width: 860px) {
  .purpose-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .enger-paths { grid-template-columns: 1fr; }
  .enger-path { scroll-margin-top: 84px; }
  .purpose-menu { grid-template-columns: 1fr; gap: 6px; }
  .purpose-menu a { gap: 1px 8px; padding: 10px 14px; }
}
