/*
 * Generic linked-clients pattern family (cs-linked-clients).
 *
 * Scoped to the NEW pattern family only; loaded in BOTH the editor canvas and the front end
 * by the parent wiring (the family contract). The composition deliberately carries almost no
 * presentation of its own: every logo size lives in the canonical WordPress 7.1.3 resized
 * image serialization (inline width + height:auto), typography and colours are inherited from
 * the theme, and native columns handle the mobile stack, so the owner's edits behave the same
 * on screen and in the editor. These rules only guard the row's own behaviour; none of them
 * turns an image into a background or otherwise makes it uneditable.
 */

/* Mixed mark heights (200px Red Cross beside 65px marks) align on the row's vertical centre,
   matching the delivered clients rows. */
.cs-linked-clients__row {
	align-items: center;
}

/* The canonical save form already carries height:auto; the guard keeps any owner-chosen
   replacement image from distorting when the owner resizes only the width. */
.cs-linked-clients__mark img {
	height: auto;
}

/* Long client names must wrap inside their own column instead of stretching the row. */
.cs-linked-clients__logo {
	min-width: 0;
}

/*
 * The band's own header. The live row opens with a 65px disc of #f77c16 carrying the white
 * user-plus glyph, sitting beside the title; the rows on /talent/, /clients/ and the rest were
 * composed with a centred title and no disc at all, which is the difference the owner sees
 * first. The glyph is the theme's own asset (assets/icons/home-clients/user-plus.png) and it is
 * WHITE on transparent, so the orange is the element's own background — the same composition
 * .cs-home-clients__icon already uses, 41px of glyph plus 12px of padding per side = 65px.
 */
/* DOUBLE-CLASS SELECTORS ON PURPOSE. style.css loads AFTER this file and carries two rules at the
   same specificity that would otherwise win: `.entry-content img { border-radius: var(--radius) }`
   would square the disc (measured: 4px), and `.entry-content a { color: var(--color-link) }` would
   paint the client names blue where the live row paints them #000000. `.cs-linked-clients .cs-link…`
   is (0,2,1) against their (0,1,1), so these win by weight and not by ordering. The alternative —
   !important, or a rule in editor-style.css — is worse: the former is a hammer, and the latter is
   forbidden for this family by
   "the linked-clients pattern carries its geometry in its own markup and no cs-linked-clients rule
   may live in style.css or editor-style.css". */
.cs-linked-clients .cs-linked-clients__head {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0 0 32px;
}

.cs-linked-clients .cs-linked-clients__head h2,
.cs-linked-clients .cs-linked-clients__head .wp-block-heading {
	margin: 0;
	text-align: left;
}

/* THE DISC BELONGS TO THE <img> ALONE. Applying it to the figure as well painted two overlapping
   round shapes of different sizes — measured on the rendered row: a blobby orange form instead of
   a circle. The figure keeps no box of its own. */
.cs-linked-clients .cs-linked-clients__icon {
	margin: 0;
	flex: 0 0 auto;
}

.cs-linked-clients .cs-linked-clients__icon img {
	display: block;
	width: 41px;
	height: 41px;
	padding: 12px;
	border-radius: 50%;
	background-color: #f77c16;
	box-sizing: content-box;
}

/* The live row's client names are black and underlined; the label keeps the underline the theme
   already gives every entry-content link, and takes the live colour. */
.cs-linked-clients .cs-linked-clients__label a {
	color: #000000;
}

/*
 * FULL-SITE LIVE PARITY, T3 batch "services + contact + confirmations"
 * (odd/tasks/full-site-live-parity.md). Measured against the live origin: the
 * client names under each mark are left aligned on all five of this batch's
 * pages that carry the family, while ours centred them with the heading. Only
 * the alignment is declared here — the SIZE and WEIGHT delta (live 20px/400,
 * ours 18px/700 from the theme's generic h5 defaults) is typography, and this
 * stylesheet is contractually forbidden from setting it ("the family inherits
 * existing typography"); see the task report. Page-scoped on purpose: the rest
 * of the family's pages belong to their own batches and this file is the only
 * sheet that may mention this family. /clients/ (631126) is deliberately absent
 * — live centres that row, so a family-wide default would move an audited page.
 */
body:is(.page-id-736339, .page-id-648493, .page-id-344671, .page-id-453369, .page-id-147472) .cs-linked-clients .cs-linked-clients__label {
	text-align: left;
}

body:is(.page-id-453369, .page-id-147472) .cs-linked-clients > .wp-block-heading {
	text-align: left;
}
