/* Services area: /services/ and the five service pages (Build 3). Builds on the tokens and components in
   /assets/css/site.css; every class is scoped with svc- (the ABA page's drawing with aba-). Calm standard
   (docs/CALM-STANDARD.md): no icons outside
   the service cards, borders rather than boxes, left-aligned text, a steady rhythm. The .more disclosure, the FAQ
   and the steps are styled in site.css and are not restyled here.
   Every text/background pair used here is a role token from site.css (text, muted and heading on the page, the
   surface and the tint), already checked in both themes by tools/check-contrast.py; this file adds no new pair. */

/* ======================================================================
   1. Hero: one primary button, the phone as a quiet text link (the page's third button is in the closing band)
   ====================================================================== */
.svc-hero-actions { --cluster-gap: 0.5rem 1.25rem; }
.svc-hero-phone { margin: 0; color: var(--color-muted); }
.svc-hero-phone a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-heading);
  white-space: nowrap;
}

/* The Applied Behavior Analysis page's drawing beside the heading (card 111, 2026-11-16; the markup is
   src/pages/services/_aba-graph.mjs): a progress graph drawn in code, in a raised figure. Every colour is a token, so
   it follows dark and light: the axes in the strong border, the labels and the starting points in the muted grey, the
   phase lines in the gold accent, the program's points in the link teal. The large radius takes the squircle where
   the browser draws one (site.css's squircle block). */
.aba-figure {
  margin: 0;
  padding: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid rgba(var(--edge-rgb), 0.1);
  box-shadow: var(--shadow);
}
.aba-graph { display: block; width: 100%; height: auto; }
.aba-graph__axis { stroke: var(--color-border-strong); }
.aba-graph__label { fill: var(--color-muted); }
.aba-graph__phase { stroke: var(--color-accent); }
.aba-graph__line--base { stroke: var(--color-muted); }
.aba-graph__dot--base { fill: var(--color-muted); }
.aba-graph__line--program { stroke: var(--color-link); }
.aba-graph__dot--program { fill: var(--color-link); }
/* Windows high contrast (forced colours): the system's colours, set here so the drawing stays legible whatever the
   browser does with an SVG's own colours: the axes, labels, phase lines and starting points in the text colour, the
   program's points in the highlight colour. */
@media (forced-colors: active) {
  .aba-graph { forced-color-adjust: none; }
  .aba-graph__axis, .aba-graph__phase, .aba-graph__line--base { stroke: CanvasText; }
  .aba-graph__label, .aba-graph__dot--base { fill: CanvasText; }
  .aba-graph__line--program { stroke: Highlight; }
  .aba-graph__dot--program { fill: Highlight; }
}

/* ======================================================================
   2. How we help: short prose, then the parts of the service as a compact list
   ====================================================================== */
.svc-prose p { color: var(--color-text); }
.svc-list-lead { margin: 1.5rem 0 0; max-width: var(--measure); color: var(--color-text); }

.svc-parts {
  display: grid;
  gap: 0 clamp(2rem, 4vw, 4rem);
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  max-width: 1040px;
}
@media (min-width: 768px) {
  .svc-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.svc-part { padding-block: 1.1rem 1.2rem; border-top: 1px solid var(--color-border); }
.svc-part__name { margin: 0 0 0.3rem; font-size: var(--step-1); line-height: 1.3; }
.svc-part__line { margin: 0; color: var(--color-muted); }
.svc-part .more { margin-top: 0.25rem; }

/* ======================================================================
   3. Getting started: the steps (site.css), then two one-line notes
   ====================================================================== */
.svc-notes {
  display: grid;
  gap: 0.6rem;
  margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(var(--edge-rgb), 0.12);
  max-width: 860px;
}
.svc-notes li { color: var(--color-text); }
.svc-notes strong { color: var(--color-heading); }

/* ======================================================================
   4. FAQ
   ====================================================================== */
.svc-faq .section-head { margin-bottom: 1.25rem; }

/* ======================================================================
   5. Related services: three quiet links above the closing band
   ====================================================================== */
.svc-related-wrap { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.svc-related__title { margin: 0 0 0.75rem; font-size: var(--step-2); }
.svc-related { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.svc-related .arrow-link { min-height: 44px; font-weight: 600; }
/* Phones: one link per line, so the row never reads as a sequence of arrows. */
@media (max-width: 479.98px) {
  .svc-related { flex-direction: column; align-items: flex-start; }
}

/* ======================================================================
   6. Services overview: the skills and support groups as a quiet list, one column, and the line on joining
   ====================================================================== */
.svc-groups { max-width: 860px; }
@media (min-width: 768px) {
  .svc-groups { grid-template-columns: minmax(0, 1fr); }
}
.svc-join { margin: 1.25rem 0 0; max-width: 860px; color: var(--color-text); }
.svc-join a { font-weight: 600; white-space: nowrap; }
