/**
 * OptConnect media + text sections (PR 3.4, extended by PR 3.6).
 *
 * One stylesheet for the whole family — `optconnect/media-text-split`,
 * `optconnect/media-text-reverse`, `optconnect/media-text-stacked`,
 * `optconnect/media-text-cta` (PR 3.5) and `optconnect/checklist-promo` (PR 3.6). They
 * share the `.oc-media-text` shell and the `__eyebrow` / `__cols` / `__copy` / `__media`
 * / `__title` / `__text` parts; the `--split` and `--stacked` modifiers differ only in
 * how the figure sits against the copy, and `--cta` / `--checklist` are hooks that
 * currently style nothing.
 *
 * It is deliberately short, and shorter than the family's size suggests. Four things
 * that could have lived here do not:
 *
 *   - **The 50/50 split.** `core/columns` with `width: 50%` on each column, declared in
 *     the markup, so the Site Editor's own column controls stay truthful.
 *   - **The stacking breakpoint.** `core/columns` collapses on its own at core's 781px,
 *     so there is no media query here at all — nothing of ours to keep in step with
 *     core. Same as PR 3.1's card grid and PR 3.3's product hero.
 *   - **The 760px measure on the centered copy.** That is the inner group's own
 *     `layout.contentSize`, per plans.md's rule to prefer per-block `contentSize` over
 *     a CSS width.
 *   - **The light band.** `backgroundColor: accent-5` on `optconnect/media-text-reverse`,
 *     so the Site Editor shows the same fill the front end renders.
 *
 * Same no-margins convention as `card-grid.css` (PR 3.1), `cta-band.css` (PR 3.2) and
 * `hero.css` (PR 3.3): nothing inside a block-gapped group gets a `margin` declaration
 * here, because core's flow layout emits
 * `.wp-container-… > * + * { margin-block-start: … }` at one-class specificity and this
 * file loads after it. Spacing between blocks is set with `blockGap` in the pattern
 * markup. The one exception below is labelled as one.
 */

/* --------------------------------------------------------------------------
 * Shared parts
 * ---------------------------------------------------------------------- */

/* The eyebrow labels the section above the `<h2>`. `restly_about` emits it as an
   `<h6>` sitting immediately before the `<h2>` it labels — a heading order no outline
   can make sense of — so PR 3.6 keeps it as a paragraph, the same call PR 3.3 made on
   the heroes. Uppercasing is `text-transform` rather than an all-caps source string, so
   anything reading the DOM gets sentence case. Measured off the live section:
   14px / 600 / #0081C2 / 1.4px tracking, i.e. 0.1em at that size.

   ⚠️ **This is the third copy of the same eyebrow rule in the theme** —
   `.oc-hero__eyebrow` (PR 3.3) and `.oc-card-grid__eyebrow` (PR 3.1) are the other two,
   and the three differ only in colour and weight. That is the state PR 3.2 flagged about
   the button one family before PR 3.3 fixed it with `theme.json` + `button.css`: a
   shared, family-neutral `.oc-eyebrow` is the cleanup, and it is deliberately **not**
   done here because it would rewrite two other families' markup and need their check
   pages re-verified. Open item for whichever PR next needs an eyebrow. */
.oc-media-text .oc-media-text__eyebrow {
	color: var(--wp--preset--color--accent-1, #0081c2);
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
 * Split — figure beside copy
 * ---------------------------------------------------------------------- */

/* core/columns' own `:where()` margin-bottom, not a block gap — see `hero.css`. */
.oc-media-text .oc-media-text__cols {
	margin-bottom: 0;
}

/* PR 3.1's 12px radius, on the split patterns only — the stacked figure is usually a
   transparent-background diagram or logo strip, where a radius clips nothing and reads
   as a stray notch.
   There is deliberately **no sizing rule here at all**. Core's own
   `.wp-block-image img { height: auto; max-width: 100% }` is the whole behaviour we
   want: the family's images run 400px to 2560px wide against a ~545px column, so the
   wide ones cap and the 12 narrower than 600px keep their natural size instead of
   being upscaled. `object-fit` is absent for the same reason — these are diagrams,
   screenshots, maps and logo strips as often as photographs, and cropping them to a
   uniform aspect ratio would lose the content they exist to show. */
.oc-media-text--split .oc-media-text__media img {
	border-radius: 12px;
}

/* --------------------------------------------------------------------------
 * Stacked — copy centered above the figure
 *
 * Centering is one rule on the section rather than a `textAlign` attribute on each
 * block, matching `optconnect/hero-title`. The figure centers with it: `.wp-block-image`
 * is a block box, and the `<img>` inside it is inline.
 * ---------------------------------------------------------------------- */
.oc-media-text--stacked {
	text-align: center;
}

/* A certification seal (`/iso-certifications/`, PR 6.1): a 2560px badge, capped so it
   reads as a mark beside its copy rather than filling the column. */
.oc-media-text .oc-media-text__media--seal {
	max-width: min(100%, 16rem);
	margin-inline: auto;
}
