/* ==========================================================================
   Our Services list
   --------------------------------------------------------------------------
   One row per service, as many columns as fit (about four on a laptop, two
   on a tablet, one on a phone). Every row is the same height and the arrow
   sits at the same place, so the list stays even however many services are
   added. Layer 3 tokens only.
   ========================================================================== */

.slist__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

.slist__grid > li { display: flex; }

.slist__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 3.5rem;
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-left: 4px solid var(--color-edge-gold);
  border-radius: var(--radius-md);
  color: var(--color-heading);
  font-weight: var(--fw-semi);
  line-height: var(--lh-snug);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

a.slist__item:hover {
  border-color: var(--color-accent-gold);
  box-shadow: var(--shadow-sm);
}
a.slist__item:hover .slist__icon { transform: translateX(3px); }
a.slist__item:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.slist__icon { flex: none; color: var(--color-link-accent); stroke-width: 2; transition: transform 160ms ease; }

/* Drafts are only listed before launch, for reviewers. */
.slist__item--draft { color: var(--color-text-muted); font-weight: var(--fw-medium); border-left-color: var(--color-divider); }

/* Phones: one column, so rows are a little tighter to keep 14+ services
   from running to a full screen and a half. */
@media (max-width: 39.99rem) {
  .slist__grid { gap: var(--sp-2); }
  .slist__item { min-height: 3rem; padding-block: var(--sp-2); }
}

@media (prefers-reduced-motion: reduce) {
  .slist__item, .slist__icon { transition: none; }
}
