/* pages/services.css — composition only for /services/ and its four children (services page agent). Components stay in the theme files. Mobile-first. */

/* ---------- hero: the [ov_slot] arch figure has no intrinsic width inside the flex media column; cap it at the 416px design size ---------- */
.ov-hero__media > .ov-slot--arch { width: min(100%, 320px); }   /* 320 on phones (DESIGN 5 "Arch media") */
@media (min-width: 782px) { .ov-hero__media > .ov-slot--arch { width: min(100%, 416px); } }
/* poster crops per manifest (chiro shoulder at x≈55%) */
[data-ov-slot="service-chiropractic-hero"] .ov-slot__poster { object-position: 42% 40%; }   /* hands, not the model's face */
/* the lede's service names are the jump list (ux:U11): the base link style, but no arrow and the body colour so the sentence still reads as one */
.ov-svc-hero .ov-lede a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; text-decoration-color: var(--ov-clay); }
.ov-svc-hero .ov-lede a:hover, .ov-svc-hero .ov-lede a:focus-visible { color: var(--ov-link); text-decoration-color: currentColor; }

/* ---------- overview chapters: arch media (slot or whisper tile) sits at the outer edge of its column, never wider than 416 ---------- */
.ov-svc-chapter__media > .ov-slot--arch, .ov-svc-chapter__media > .ov-whisper { width: min(100%, 272px); }   /* subordinate to the 320px hero arch */
@media (min-width: 782px) {
  .ov-svc-chapter__media > .ov-slot--arch, .ov-svc-chapter__media > .ov-whisper { width: min(100%, 416px); }
  .ov-svc-chapter__split:not(.ov-svc-chapter__split--media-left) .ov-svc-chapter__media > :is(.ov-slot--arch, .ov-whisper) { margin-left: auto; }
  .ov-svc-chapter__split { align-items: flex-start; }
}
/* phones: the four chapter pictures repeat the service pages' heroes and cost ~370px each (ux:U5); the overview reads as a typographic index there */
@media (max-width: 781px) { .ov-svc-chapter__media { display: none; } }
.ov-svc-chapter .ov-row__label { margin-block-start: var(--space-5); }
.ov-svc-chapter .ov-tags { margin-block-start: var(--space-2); }
.ov-svc-chapter .wp-block-column > .wp-block-buttons { margin-block-start: var(--space-5); }

/* ---------- tags: one phrase per chip; never break inside a phrase on narrow phones (art:D11) ---------- */
@media (max-width: 479px) { .ov-main--service .ov-tags li { white-space: nowrap; max-width: 100%; } }
/* 10-base.css `.wp-block-list li + li { margin-top: .35em }` outranks the shared `.ov-tags li { margin: 0 }`, so every tag after the first sat 5–6px low
   (measured 1440 and 390). Scoped override until the shared rule is fixed; Home's index rows have the same offset. */
.ov-main--service .ov-tags li + li { margin-top: 0; }

/* ---------- reasons list + closing line ---------- */
.ov-svc-reasons .ov-hexlist { margin-block-start: var(--space-6); max-width: 60rem; }
.ov-svc-closing { margin-block-start: var(--space-6); font-style: italic; color: var(--ov-fg-2); }

/* ---------- related care: compact rows; on phones a ruled list (numeral · title · one line), plates return at 782 (ux:U5) ---------- */
@media (max-width: 781px) {
  .ov-svc-related .ov-rows--compact .ov-row { grid-template-columns: 2.25rem minmax(0, 1fr); grid-template-areas: "n body"; column-gap: var(--space-3); padding-block: var(--space-4); }
  .ov-svc-related .ov-rows--compact .ov-row > .is-style-ov-plate { display: none; }
  .ov-svc-related .ov-rows--compact .ov-row__body > * + * { margin-block-start: var(--space-1); }
}
/* italic numeral on the title's baseline (art:E14): grid baseline self-alignment, so the plate (start-aligned) is untouched */
.ov-svc-related .ov-rows--compact .ov-row > .ov-row__n, .ov-svc-related .ov-rows--compact .ov-row > .ov-row__body { align-self: baseline; }

/* ---------- chiropractic: wide 3:2 plate under the three paragraphs ---------- */
.ov-svc-gentle .ov-svc-wideplate { margin-block-start: var(--space-7); margin-inline: auto; max-width: 880px; }

/* ---------- acupuncture: FAQ tile + accordion ---------- */
.ov-svc-faq__tile > .ov-whisper { max-width: 416px; }
@media (max-width: 781px) { .ov-svc-faq__tile > .ov-whisper { aspect-ratio: 16 / 9; max-width: none; } }
.ov-svc-faq__copy > .ov-chapter-mark + h2 { margin-block-start: var(--space-4); }
.ov-svc-faq__copy > .ov-accordion { margin-block-start: var(--space-6); }

/* ---------- massage: therapist cards stack on phones as hex + text rows (the 3-up grid is for the home/about 88px portraits) ---------- */
.ov-svc-therapists .ov-tags { margin-block-start: var(--space-3); }
@media (max-width: 767px) {
  .ov-section .ov-svc-therapists.is-layout-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .ov-svc-therapists .ov-team-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--space-4); align-items: start; padding-block-start: var(--space-5); border-top: var(--hairline); }
  .ov-svc-therapists .ov-team-card > .is-style-ov-hex { grid-row: 1 / span 6; width: 112px; }
  .ov-svc-therapists .ov-team-card > * + * { margin-block-start: var(--space-2); }
  .ov-svc-therapists .ov-team-card > .ov-team-card__name { margin-block-start: 0; }
}
.ov-svc-team .ov-inner > .ov-svc-aside__split { margin-block-start: var(--space-8); padding-block-start: var(--space-6); border-top: var(--hairline); }

/* ---------- auto & work injuries: steps + insurance card ---------- */
.ov-svc-after .ov-inner > .ov-svc-after__split { margin-block-start: var(--space-6); }
.ov-svc-insurance > h3 { font-size: var(--fs-h3); }

/* ---------- porch CTA on phones: the portrait stays subordinate to the 320px hero arch and keeps the headline nearer the fold (ux:U5) ---------- */
@media (max-width: 781px) { .ov-cta--porch .is-style-ov-arch { max-width: 272px; } }

/* ---------- tap targets (measured with getBoundingClientRect, not the CSS cover link): row titles and the breadcrumb root reach 44px ---------- */
.ov-main--service .ov-row__title a { display: inline-block; padding-block: 11px; margin-block: -11px; }
.ov-main--service .ov-crumbs a { padding-inline: 1px; margin-inline: -1px; }
