/* Homepage-only continuation of the existing service cards. No JS required. */
.template-homepage .home-service-directory { margin-top: 1.75rem; min-width: 0; }
.template-homepage .home-service-directory > summary {
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: .85rem 1.2rem;
  border: 1px solid var(--hp-teal);
  border-radius: 10px;
  background: #fff;
  color: var(--hp-teal);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  list-style-position: inside;
  overflow-wrap: anywhere;
}
.template-homepage .home-service-directory > summary:hover { background: var(--hp-soft); }
.template-homepage .home-service-directory > summary::marker { color: var(--hp-teal); }
.template-homepage .home-service-directory__hide { display: none; }
.template-homepage .home-service-directory[open] .home-service-directory__show { display: none; }
.template-homepage .home-service-directory[open] .home-service-directory__hide { display: inline; }
.template-homepage .home-service-directory__groups {
  columns: 3 17rem;
  column-gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hp-line);
}
.template-homepage .home-service-directory__group { break-inside: avoid; margin: 0 0 1.75rem; min-width: 0; }
.template-homepage .home-service-directory__group h3 {
  margin: 0 0 .5rem;
  color: var(--hp-ink);
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.template-homepage .home-service-directory__group ul { list-style: none; margin: 0; padding: 0; }
.template-homepage .home-service-directory__group li { margin: 0; padding: 0; break-inside: avoid; }
.template-homepage .home-service-directory__group a {
  display: flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: .6rem .45rem;
  margin-inline: -.45rem;
  color: var(--hp-teal);
  border-radius: 5px;
  font-size: 1rem;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.template-homepage .home-service-directory__group a:hover { background: var(--hp-soft); color: var(--hp-ink); }
.template-homepage .home-service-directory :is(summary, a):focus-visible { outline: 3px solid var(--hp-teal); outline-offset: 3px; }
@media (max-width: 600px) {
  .template-homepage .home-service-directory__groups { columns: 1; }
  .template-homepage .home-service-directory > summary { width: 100%; }
}
