/* Services index: the visitor's own complaints, each pointing to the service that answers it. */

.sx-match {
  background: var(--sv-paper);
  color: var(--sv-ink);
  padding-block: clamp(8px, 1.6vw, 20px) clamp(36px, 4.5vw, 60px);
}

.sx-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sx-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) auto;
  gap: 16px clamp(24px, 4.5vw, 72px);
  align-items: start;
  padding: clamp(24px, 2.8vw, 36px) 0;
}

.sx-row + .sx-row {
  border-top: 1px solid var(--sv-paper-rule);
}

/* What the visitor might say: set as speech. */
.sx-says {
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(14px, 1.6vw, 20px);
  border-left: 3px solid var(--sv-paper-strong);
}

.sx-says li {
  font: 400 clamp(17px, 1.45vw, 21px)/1.34 var(--sv-serif);
  letter-spacing: -0.01em;
  color: var(--sv-ink);
  text-wrap: pretty;
}

.sx-says li + li {
  margin-top: 8px;
}

.sx-kind {
  margin: 0 0 4px;
  font: 500 14px/1.4 var(--sans);
  color: var(--sv-accent-paper);
}

.sx-svc h2 {
  margin: 0;
  max-width: none;
  font: 500 clamp(26px, 2.6vw, 38px)/1.08 var(--sans);
  letter-spacing: -0.045em;
  color: var(--sv-ink);
}

.sx-svc h2 a {
  color: inherit;
  text-decoration: none;
}

/* The whole row opens the service page; the name stays the link text. */
.sx-svc h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.sx-svc h2 a:focus-visible {
  outline: none;
}

.sx-row:has(a:focus-visible) {
  outline: 2px solid var(--sv-accent-paper);
  outline-offset: 4px;
}

.sx-svc p:last-child {
  margin: 10px 0 0;
  max-width: 52ch;
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.5;
  color: var(--sv-ink2);
  text-wrap: pretty;
}

.sx-arrow {
  font: normal clamp(22px, 2.2vw, 30px)/1 var(--sans);
  color: var(--sv-ink);
  transition: transform 0.16s ease, color 0.16s ease;
}

.sx-row:hover h2 a,
.sx-row:has(a:focus-visible) h2 a {
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 0.05em;
}

.sx-row:hover .sx-arrow,
.sx-row:has(a:focus-visible) .sx-arrow {
  color: var(--sv-accent-paper);
  transform: translate(2px, -2px);
}

.sx-none {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 40px;
  padding-top: clamp(22px, 2.6vw, 32px);
  border-top: 1px solid var(--sv-paper-strong);
}

.sx-none p {
  margin: 0;
  flex: 1 1 420px;
  max-width: 62ch;
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.5;
  color: var(--sv-ink2);
}

.sx-none strong {
  color: var(--sv-ink);
  font-weight: 600;
}

.sx-none-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

@media (max-width: 860px) {
  .sx-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .sx-says {
    grid-column: 1 / -1;
  }
  .sx-svc {
    grid-column: 1;
  }
  .sx-arrow {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sx-arrow {
    transition: none;
  }
}

/* Shorter hero now that the lede is one line: centre it in a lower band. */
main.sv-page .sv-hero {
  padding-block: clamp(32px, 4vw, 56px);
}
@media (min-width: 701px) {
  main.sv-page .sv-hero > .sv-hero-solo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: clamp(320px, 40svh, 420px);
  }
}
