/* pages/about.css — per-page composition for /dr-robin/, /patient-stories/, /community-talks/ (enqueued by inc/enqueue.php).
   Only what the base components cannot do; tokens from 00-tokens.css; mobile-first. Owner: page agent about-stories-talks. */

/* ---------- /dr-robin/ umber hero: the CSS-extended dark portrait ---------- */
/* Breadcrumb sits first in the band with no section padding above it: give it a little air under the header. */
.ov-about-hero > .ov-inner > .ov-crumbs:first-child { padding-block-start: var(--space-4); }
/* The portrait's left, top and right edges are its own near-black; the bottom is a crop through the shoulders, so the
   facts-row hairline is pulled up to become the shelf the portrait stands on (no floating hard edge above empty umber). */
.ov-about-hero .ov-facts { margin-block-start: 0; }
.ov-about-hero .ov-hero__media { margin-block-end: 0; }
/* Measured at 1440/1920: the photo's right column sits ~11/255 above the band, so the last 6% also eases into umber. */
@media (min-width: 782px) {
  .ov-about-hero .is-style-ov-extend-dark img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%); mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%); }
}
/* The media column is 8/12 so the photo reaches its native 800 px at 1440; between 782 and 1279 the copy column would
   starve, so ease the split to 5/7 there (core writes the widths inline, hence the !important). */
@media (min-width: 782px) and (max-width: 1279px) {
  .ov-about-hero .ov-hero__copy { flex-basis: 41.667% !important; }
  .ov-about-hero .ov-hero__media { flex-basis: 58.333% !important; }
}
/* art:E5: copy at the portrait's eye line, not 280 px above the shelf. */
@media (min-width: 1024px) { .ov-about-hero .ov-hero__copy { align-self: center; padding-block-end: var(--space-6); } }
@media (max-width: 781px) {
  /* Image first, full-bleed, then the copy; the facts rule follows the lede. Stacked, the photo's bottom crop would be a
     hard line above umber, so the last 14% also fades into the band (the sleeve dissolves into the same black). */
  .ov-about-hero .ov-facts { margin-block-start: var(--space-6); }
  .ov-about-hero .is-style-ov-extend-dark img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%); }
}

/* ---------- /dr-robin/ team: on phones the fact lines need a measure, so cards become rows (hex left, text right) ---------- */
@media (max-width: 639px) {
  .ov-section .ov-team-grid--lg.is-layout-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .ov-team-grid--lg .ov-team-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "hex name" "hex role" "hex fact"; column-gap: var(--space-4); align-items: start; padding-block: var(--space-4); border-top: var(--hairline); }
  .ov-team-grid--lg .ov-team-card:last-child { border-bottom: var(--hairline); }
  .ov-team-grid--lg .ov-team-card > .is-style-ov-hex, .ov-team-grid--lg .ov-team-card > .ov-monogram { grid-area: hex; width: 96px; }
  .ov-team-grid--lg .ov-team-card > .ov-team-card__name { grid-area: name; margin: 0; }
  .ov-team-grid--lg .ov-team-card > .ov-team-card__role { grid-area: role; margin-block-start: 2px; }
  .ov-team-grid--lg .ov-team-card > .ov-team-card__fact { grid-area: fact; margin-block-start: var(--space-2); }
}

/* ---------- lead quote measure: the theme sizes .is-style-ov-lead in em of the 18px body (≈313px); the design asks for
   a 28ch measure at --fs-quote, so size the block from the quote step itself (reported to themeCore) ---------- */
.is-style-ov-lead { max-width: calc(var(--fs-quote) * 17.4); }

/* ---------- /dr-robin/ How she works: stepped lines left, prose + facts table right ---------- */
.ov-approach .ov-facts-table { margin-block-start: var(--space-6); }
.ov-approach .ov-facts-table td { padding-block: .7em; }
.ov-approach .ov-facts-table a { white-space: nowrap; }

/* ---------- /dr-robin/ The room ---------- */
.ov-room__body { max-width: var(--measure); }
/* 55-dynamic.css zeroes figure.ov-slot's margin at the same specificity as the .ov-inner rhythm rule and loads later, so the
   tile lost its gap under the h2 (measured 4.5px overlap at 1440). Restore the section rhythm here (reported to buildInfra). */
#room .ov-inner > .ov-slot { margin-block-start: var(--space-6); }
/* Until Josh drops the clinic loop in, the slot is a poster-only whisper tile: a 1280×720 flat field reads as a hole, so the
   empty state sits at 21:9 on desktop; the moment a video exists (.ov-slot--video) it opens to its designed 16:9. */
@media (min-width: 1024px) { #room .ov-slot--16x9.ov-slot--poster-only { aspect-ratio: 21 / 9; } }
/* Four 640px snapshots: two-up until the row is wide enough for four honest ~300px plates (4-up at 768 gave 155px plates). */
@media (min-width: 768px) and (max-width: 1023px) {
  .ov-section #room .ov-sheet.is-layout-grid, #room .ov-sheet.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* A real room photo in its slot shows in colour at ≤ 640 px (media:M4). */
.ov-sheet figure.ov-sheet__live { max-width: 640px; }

/* ---------- lead-quote bands (dr-robin §5, patient-stories §2): centred, with the note and link under the quote ---------- */
.ov-quote-band .ov-note, .ov-quote-band .ov-textlink { text-align: center; margin-inline: auto; max-width: none; }
.ov-quote-band .ov-note { margin-block-start: var(--space-4); }
.ov-stories-lead { padding-block-start: var(--space-4); }  /* follows a paper hero: one surface, no double gap */

/* ---------- /patient-stories/ ruled grid 2-up; the fifth quote (full Sandy P.) closes the list as one wide ruled row ---------- */
@media (min-width: 768px) {
  .ov-section .ov-quotes--2.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-quotes--2 > .is-style-ov-ruled:nth-child(5):last-child { grid-column: 1 / -1; }
  .ov-quotes--2 > .is-style-ov-ruled:nth-child(5):last-child > * { max-width: var(--measure); }
}
.ov-quotes .is-style-ov-ruled .ov-note { margin-block-start: var(--space-3); }

/* ---------- /patient-stories/ honesty band ---------- */
.ov-honesty .ov-honesty__text { max-width: 44ch; font-size: var(--fs-lede); line-height: 1.45; color: var(--ov-fg-2); }
.ov-honesty .wp-block-buttons { margin-block-start: var(--space-5); }
.ov-honesty .wp-block-buttons + .is-style-ov-rule { margin-block-start: var(--space-6); }

/* ---------- /community-talks/ hero plate: 4:5, crop anchored right so the stock speaker (left 58% of the frame) is out (art:D9) ---------- */
.ov-talks-hero .ov-talks__plate { width: 100%; max-width: 320px; }
.ov-talks-hero .ov-talks__plate img { object-position: 100% 50%; }
@media (min-width: 782px) {
  .ov-talks-hero .ov-hero__media { align-items: flex-end; }
  .ov-talks-hero .ov-talks__plate { max-width: 416px; margin-block-start: var(--space-7); }
}

/* ---------- /community-talks/ topics: a ruled list without numerals (the arrange steps below carry the numbers) ---------- */
.ov-topics { list-style: none; padding: 0; max-width: var(--measure); }
.ov-topics > li { margin: 0; padding-block: var(--space-5); border-top: var(--hairline); max-width: none; }
.ov-topics > li:last-child { border-bottom: var(--hairline); }
.ov-topics > li > strong { display: block; margin-block-end: .25em; font: 400 var(--fs-h4) / 1.3 var(--ov-font-display); color: var(--ov-heading); text-wrap: balance; }
.ov-talks__split .ov-topics + .ov-small { margin-block-start: var(--space-4); }
