/* The anchor is the interactive element. Its contents stay aligned in every state. */
#services .service-row {
  --service-inline-padding: 36px;
  padding-inline: var(--service-inline-padding);
}

#services .service-action {
  --service-rim: rgb(77 93 81 / 40%);
  --service-relief: inset 0 1px 0 rgb(255 255 255 / 95%),
    inset 0 -1px 0 rgb(65 80 69 / 7%), 0 2px 5px rgb(33 52 39 / 8%);
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--service-rim);
  border-radius: 13px;
  background-color: var(--service-action-glass, rgb(255 255 255 / 62%));
  background-image: linear-gradient(160deg, rgb(255 255 255 / 12%), transparent 55%);
  color: var(--service-action-ink, #27362f);
  box-shadow: var(--service-relief);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  transition: background-color .22s ease, border-color .22s ease,
    box-shadow .22s ease, color .22s ease;
}

#services .service-row:focus-visible {
  outline: 2px solid #365947;
  outline-offset: 3px;
}
#services .service-row:focus-visible .service-action {
  background-color: var(--service-action-hover, #fff);
  color: var(--service-action-hover-ink, #27362f);
  border-color: #456450;
  box-shadow: var(--service-relief), 0 0 0 3px rgb(69 100 80 / 17%);
}
@media (hover: hover) and (pointer: fine) {
  #services .service-row:hover .service-action {
    background-color: var(--service-action-hover, #fff);
    color: var(--service-action-hover-ink, #27362f);
    border-color: rgb(67 86 73 / 62%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 95%),
      0 0 0 2px rgb(84 106 89 / 8%), 0 3px 9px rgb(33 52 39 / 10%);
  }
}
#services .service-row:active .service-action {
  box-shadow: inset 0 1px 3px rgb(33 52 39 / 22%), inset 0 -1px 0 rgb(255 255 255 / 75%);
}

@media (max-width: 800px) {
  #services .service-row { --service-inline-padding: 28px; }
}
@media (max-width: 520px) {
  #services .service-row { --service-inline-padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  #services .service-action { transition: none; }
}
@media (forced-colors: active) {
  #services .service-row:focus-visible { outline-color: Highlight; }
  #services .service-action { border-color: LinkText; }
}
