/* Services — Figma: Catalog — Services › "Services (light)" frames; components: Design system › Components / Services (Light). */
.sv {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 96px;
  padding-inline: var(--gutter);
} /* .inner has no side padding of its own: the gutter keeps text off the screen edge below 1440 */

/* Page header */
.sv-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 824px;
}
.sv-head__intro {
  margin: 0;
}
.sv-inset {
  margin-left: 20px;
} /* eyebrow, intro, filter and links sit 20px in from the heading (Figma) */

/* Location filter + summary */
.sv-filter {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-top: -4px;
}
.sv-filter .select-menu {
  flex: 0 0 240px;
} /* Figma: Services / Location filter — 240px field, arrow at the right */
.sv-summary {
  margin: 0;
  font-size: var(--fs-body-s);
  color: var(--pcli-color-text-secondary);
}
.sv-summary .link {
  margin-left: 6px;
  font-weight: 600;
}

/* Helpful links for the chosen office (Services / Location links) */
.sv-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -16px;
  padding: 12px 20px;
  border-top: 1px solid var(--pcli-color-border-input);
  border-bottom: 1px solid var(--pcli-color-border-input);
}
.sv-links__label {
  font-size: var(--fs-body-s);
  color: var(--pcli-color-text-secondary);
}
.sv-links__label {
  margin-right: 4px;
}
.sv-links .chip,
.chip--link {
  font-weight: 600;
  color: var(--pcli-color-text-link);
  border-color: var(--pcli-color-border-focus);
  transition: background-color 0.15s ease;
}
.sv-links .chip:hover,
.sv-links .chip:focus-visible,
.chip--link:hover,
.chip--link:focus-visible {
  background: rgba(0, 171, 199, 0.15);
} /* Figma: Services / Location link chip › hover */
.sv-links + .sv-grid,
.sv-links + .sv-none {
  margin-top: -8px;
}
.sv-links__chips {
  display: contents;
} /* a group only on phones */

/* Category cards, balanced into three columns */
/* "[City] surgeries & services" — lines up with the category headings (24px in) */
.sv-location-title {
  margin: -10px 0 -16px;
  padding-left: 24px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--pcli-color-text-primary);
}
.sv-grid {
  columns: 3;
  column-gap: 30px;
  column-rule: 1px solid var(--pcli-color-border-input);
}
.sv-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 30px;
  padding: 0 0 12px;
  break-inside: avoid;
  border-radius: 12px;
  background: var(--pcli-color-surface-card, #fff);
} /* no border (Figma, Oct 28) */
.sv-card__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 24px 7px;
}
.sv-card__title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--pcli-color-text-primary);
}
.sv-card__note {
  margin: 0;
  font-size: var(--fs-body-s);
  line-height: 1.5;
  color: var(--pcli-color-text-secondary);
}

/* Service rows (Services / Service row: Default, Available) */
.sv-list {
  margin: 0;
  padding: 0 10px;
  list-style: none;
}
.sv-row {
  display: flex;
  align-items: flex-start; /* the mark stays with the first line when a name wraps */
  gap: 12px;
  padding: 5px 14px;
} /* tight list, no dividers */
.sv-row__mark {
  position: relative;
  flex: 0 0 18px;
  height: 18px;
  font-size: var(--fs-body-m);
  margin-top: calc((1.45em - 18px) / 2); /* centred on the first line of the name (line-height 1.45) */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-row__mark::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pcli-color-action-selected);
}
.sv-row__name {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-body-m);
  line-height: 1.45;
  color: var(--pcli-color-text-primary);
}
.sv-row__tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 980px;
  background: var(--pcli-color-bg-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pcli-color-text-secondary);
  white-space: nowrap;
}
.sv-none {
  padding: 8px 0;
}

@media (max-width: 1100px) {
  .sv-grid {
    columns: 2;
  }
}
/* Phones — Figma: Catalog — Services › "03 Mobile (light)" and "04 Mobile, location selected". Type on the 20px gutter;
   category cards 10px further in (30px); the filter and helpful links 20px further in (40px). Helpful links move below the list. */
@media (max-width: 720px) {
  .sv {
    padding-top: 40px;
    padding-bottom: 64px;
    gap: 28px;
  }
  .sv-inset {
    margin-left: 0;
  }
  .sv-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 0 20px;
  }
  .sv-filter .select-menu {
    flex: none;
    width: 100%;
  }
  .sv-summary {
    padding: 10px 0;
  }
  .sv-grid {
    columns: 1;
    padding: 0 10px;
  }
  .sv-card {
    margin-bottom: 0;
  } /* Figma: no gap between categories (each card keeps its 12px bottom padding) */
  .sv-links {
    order: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0 20px;
    padding: 0;
    border: 0;
  }
  .sv-links__label {
    margin: 0;
  }
  .sv-links__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-self: stretch;
    padding: 12px 0;
    border-top: 1px solid var(--pcli-color-border-input);
    border-bottom: 1px solid var(--pcli-color-border-input);
  }
  .sv-links + .sv-grid,
  .sv-links + .sv-none {
    margin-top: 0;
  }
  .sv-location-title {
    margin: 0 0 -20px;
    padding-left: 34px;
    font-size: 22px;
  }
}
