/*
 * Advisory Board page styles (page-advisory-board.html)
 * Loaded conditionally via is_page('advisory-board') — enqueued in functions.php.
 * Sub-session B owns this file. Append-only. Site-wide rules stay in root style.css.
 * Sections: ab-hero, ab-intro, ab-member-card.
 */

/* =============================================================
   ab-hero (Advisory Board) — blue band, full-width rounded studio
   photo + "ADVISORY BOARD" yellow title + mint star-circle accent.
   Slice: docs/design/advisory-board/_slices/01-ab-hero.png
   ============================================================= */

.ao-ab-hero {
	background: var(--wp--preset--color--blue);
	margin-block-start: 0;
	padding: clamp(2rem, 3.4vw, 3.1rem) clamp(0.75rem, 1.4vw, 1.25rem) 0; /* ~49px blue strip above photo, ~20px sides */
	overflow: hidden;
}

/* First block sits right under the header (sticky, in flow — style.css) */
.wp-site-blocks > .ao-ab-hero:first-of-type {
	margin-top: 0;
}

.ao-ab-hero__photo {
	margin: 0;
	width: 100%;
	aspect-ratio: 2743 / 1003; /* matches re-extracted clean photo content (no baked keyline/blue margin) */
	border: 3px solid var(--wp--preset--color--orange); /* standard brand orange */
	border-radius: clamp(14px, 1.6vw, 22px);
	overflow: hidden;
	background: var(--wp--preset--color--blue);
}

.ao-ab-hero__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ao-ab-hero__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-inline: clamp(1.5rem, 5vw, 4.5rem); /* ~72px gutter at 1440 */
	padding-block: clamp(3.25rem, 6.8vw, 6.1rem) clamp(1.5rem, 2.4vw, 2.2rem); /* content sits low: ~98px top, ~35px bottom (sampled) */
}

.ao-ab-hero__heading {
	margin: 0;
	font-family: var(--wp--preset--font-family--work-sans); /* no Mudstone for headings (Sasha QA 2026-06-03) */
	font-weight: 900;
	font-size: clamp(2.5rem, 5vw, 4rem); /* ~64px at >=1280 */
	line-height: 1.0;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--wp--preset--color--yellow);
}

.ao-ab-hero__icon {
	flex: 0 0 auto;
	width: clamp(72px, 8.7vw, 126px);
	color: var(--wp--preset--color--mint);
}

.ao-ab-hero__icon svg,
.ao-ab-hero__icon img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 900px) {
	.ao-ab-hero__photo {
		aspect-ratio: 16 / 10; /* taller crop keeps the subject legible on phones */
	}
	.ao-ab-hero__icon {
		width: 64px;
	}
}

/* =============================================================
   ab-intro (Advisory Board) — orange band, yellow text. Left:
   "Board Members" + group photo in yellow ring. Right: intro
   paragraph + roster. Slice: _slices/02-ab-intro.png
   ============================================================= */

.ao-ab-intro {
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--yellow);
	margin-block-start: 0;
	padding: clamp(2.5rem, 4.3vw, 3.9rem) clamp(1.5rem, 4vw, 3.6rem) clamp(1rem, 1.7vw, 1.6rem); /* top ~62px, bottom ~25px (photo ends near section bottom in slice) */
}

.ao-ab-intro__inner {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(1.75rem, 5vw, 5rem); /* ~72px gutter */
	align-items: start;
	max-width: 1440px;
	margin-inline: auto;
}

.ao-ab-intro__col {
	min-width: 0; /* keep fr tracks stable; heading never forces column blowout */
}

.ao-ab-intro__heading {
	margin: 0 0 clamp(1.75rem, 3.4vw, 3rem);
	font-family: var(--wp--preset--font-family--work-sans);
	font-weight: 700;
	font-size: clamp(2.25rem, 4.8vw, 4.5rem); /* natural Work Sans width — scaleX condensing removed (felt too narrow, Sasha QA 2026-06-03) */
	line-height: 1.0;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap; /* slice shows "Board Members" on ONE line */
	color: var(--wp--preset--color--yellow);
}

/* Group photo — yellow CSS ring (bg) + inset circle-cropped photo */
.ao-ab-intro__photo {
	position: relative;
	width: min(100%, 590px);
	aspect-ratio: 1;
	margin: 0 auto; /* center in left column to match slice indent (~x97) */
	border-radius: 50%;
	background: var(--wp--preset--color--yellow);
}

.ao-ab-intro__photo img {
	position: absolute;
	inset: 6.6%; /* ring thickness ~39px on 590px outer */
	width: 86.8%;
	height: 86.8%;
	object-fit: cover;
	border-radius: 50%;
	clip-path: circle(50%);
}

.ao-ab-intro__intro {
	margin: 0 0 clamp(1.5rem, 2.6vw, 2.25rem);
	font-family: var(--wp--preset--font-family--work-sans);
	font-weight: 400;
	font-size: clamp(1.1rem, 1.3vw, 1.17rem); /* body +10% (Sasha QA 2026-06-03) */
	line-height: 1.5;
	color: var(--wp--preset--color--yellow);
	max-width: 44ch; /* container +10% — stretches right */
}

.ao-ab-intro__label {
	margin: 0 0 0.6rem;
	font-family: var(--wp--preset--font-family--work-sans);
	font-weight: 700;
	font-size: clamp(1rem, 1.25vw, 1.125rem);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--wp--preset--color--yellow);
}

.ao-ab-intro__names {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--work-sans);
	font-weight: 400;
	font-size: clamp(1rem, 1.25vw, 1.125rem); /* ~18px — matches slice band height */
	line-height: 1.5;
	color: var(--wp--preset--color--yellow);
}

.ao-ab-intro__names li {
	margin: 0;
}

@media (max-width: 900px) {
	.ao-ab-intro__inner {
		grid-template-columns: 1fr;
		gap: clamp(2rem, 6vw, 3rem);
	}
	.ao-ab-intro__photo {
		margin-inline: auto;
	}
}

/* =============================================================
   ab-member-card (Advisory Board) — repeating member card:
   yellow bg, role + name + bio (left), portrait in blue ring (right).
   Slice: _slices/03-ab-member-card.png
   ============================================================= */

.ao-ab-member-card {
	background: var(--wp--preset--color--yellow);
	margin-block-start: 0;
}

.ao-ab-member-card__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1rem, 1.6vw, 1.5rem); /* ~24px — names run longer toward the portrait (Sasha QA 2026-06-03) */
	max-width: 1440px;
	margin-inline: auto;
	padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 10vw, 9.1rem); /* left ~146px, right ~56px */
}

.ao-ab-member-card__text {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 800px; /* wider heading container — names run longer right (Sasha QA 2026-06-03) */
}

.ao-ab-member-card__role {
	margin: 0 0 clamp(1rem, 2vw, 1.75rem); /* title→name gap -30% (Sasha QA 2026-06-03) */
	font-family: var(--wp--preset--font-family--work-sans);
	font-weight: 700;
	font-size: 1.22rem; /* "Chair" eyebrow +50% (Sasha QA 2026-06-03) */
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--orange);
}

.ao-ab-member-card__name {
	margin: 0 0 0.3rem; /* slice name→bio gap is only ~6px */
	font-family: var(--wp--preset--font-family--work-sans);
	font-weight: 700;
	font-size: clamp(2rem, 4.25vw, 3.9rem); /* names +15% (Sasha QA 2026-06-03) */
	line-height: 1.05;
	text-transform: none; /* override theme h3 uppercase — slice name is mixed-case */
	color: var(--wp--preset--color--orange);
}

.ao-ab-member-card__pronoun {
	display: block;
}

.ao-ab-member-card__bio {
	margin: 0;
	max-width: 600px; /* keep body container as-is while the heading container widens (Sasha QA 2026-06-03) */
	font-family: var(--wp--preset--font-family--work-sans);
	font-weight: 700; /* slice renders bold; conflicts with #6b 400 default — flagged */
	font-size: clamp(1rem, 1.18vw, 1.0625rem); /* ~17px */
	line-height: 1.65; /* ~28px */
	color: var(--wp--preset--color--orange);
}

/* Portrait — blue CSS ring (bg) + inset circle-cropped photo (canonical photo-in-ring) */
.ao-ab-member-card__photo {
	position: relative;
	flex: 0 0 auto;
	width: clamp(280px, 42vw, 600px);
	aspect-ratio: 1;
	margin: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--blue);
}

.ao-ab-member-card__photo img {
	position: absolute;
	inset: 7.5%; /* ring thickness ~45px on 600px outer */
	width: 85%;
	height: 85%;
	object-fit: cover;
	border-radius: 50%;
	clip-path: circle(50%);
}

@media (max-width: 900px) {
	.ao-ab-member-card__inner {
		flex-direction: column-reverse; /* portrait above text on mobile */
		align-items: flex-start;
		gap: clamp(1.5rem, 5vw, 2.5rem);
		padding-inline: clamp(1.5rem, 6vw, 3rem);
	}
	.ao-ab-member-card__photo {
		width: min(100%, 360px);
		align-self: center;
	}
	.ao-ab-member-card__text {
		max-width: none;
	}
}

/* =============================================================
   Roster jump-links (ab-intro names -> member cards below)
   ============================================================= */

/* `.ao-ab-intro .ao-ab-intro__names a` outranks the editor's global link colour
   (`.editor-styles-wrapper a:where(…)`, orange → blue on hover), which made the names
   orange-on-orange in the editor, visible only on hover (Katie, 6 Dec 2026). Any link
   she adds to the list gets the same yellow, with or without the class. */
.ao-ab-intro__name-link,
.ao-ab-intro .ao-ab-intro__names a,
.ao-ab-intro .ao-ab-intro__names a:hover,
.ao-ab-intro .ao-ab-intro__names a:focus {
	color: inherit;
	text-decoration: none;
	text-underline-offset: 3px;
	cursor: pointer;
}

.ao-ab-intro .ao-ab-intro__names a:hover,
.ao-ab-intro .ao-ab-intro__names a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

/* Anchor target clears the fixed 87px header; smooth scroll for the jump links */
.ao-ab-member-card {
	scroll-margin-top: 104px;
}

html {
	scroll-behavior: smooth;
}

/* Block-conversion parity — Advisory Board patterns.
   Re-asserts class-tied margins that core's is-layout-flow child reset
   zeroes on specificity tie when the wrappers render as wp:group. Values
   restate the originals above — no visual change. */
.wp-block-group.ao-ab-hero {
	margin-top: 0; /* right under the header */
}
.wp-block-group.ao-ab-intro__col--left > .ao-ab-intro__heading {
	margin-block-end: clamp(1.75rem, 3.4vw, 3rem);
}
.wp-block-group.ao-ab-intro__col--right > .ao-ab-intro__intro {
	margin-block-end: clamp(1.5rem, 2.6vw, 2.25rem);
}
.wp-block-group.ao-ab-intro__col--right > .ao-ab-intro__label {
	margin-block-end: 0.6rem;
}

/* Page-content mode equivalent of the .wp-site-blocks first-block rule */
.wp-block-post-content > .ao-ab-hero:first-of-type {
	margin-top: 0;
}

/* Block-conversion — pronoun is now its own paragraph (was a block-span
   INSIDE the name h3, where it inherited the name typography; a standalone
   editable paragraph is edit-safe where a classed span in RichText is not).
   Duplicate the name typography + cancel the h3's 0.3rem bottom margin so
   the stack renders pixel-identically. */
p.ao-ab-member-card__pronoun {
	margin: -0.3rem 0 0.3rem;
	font-family: var(--wp--preset--font-family--work-sans);
	font-weight: 700;
	font-size: clamp(2rem, 4.25vw, 3.9rem);
	line-height: 1.05;
	text-transform: none;
	color: var(--wp--preset--color--orange);
}

/* multi-paragraph bios (2026-10-16, e.g. Bren West) — a gap between paragraphs,
   which the single-paragraph cards never needed */
.ao-ab-member-card__bio + .ao-ab-member-card__bio {
	margin-top: 0.85em;
}

/* Editor parity (Katie, 6 Dec 2026): in the block editor, style-content.css's
   :is(.ao-content-body, .editor-styles-wrapper) p / li / a / h2 rules outrank the
   one-class rules above, so the text went dark on the orange band and the yellow
   cards, and the roster links went orange on orange (invisible until hovered).
   These restate the site's values at a weight that wins there. .editor-styles-wrapper
   exists only in the editor, so the site itself is unchanged. */
.editor-styles-wrapper :is(.ao-ab-intro__heading, .ao-ab-intro__intro, .ao-ab-intro__label, .ao-ab-intro__name-link),
.editor-styles-wrapper .ao-ab-intro__names li {
	color: var(--wp--preset--color--yellow);
}
.editor-styles-wrapper :is(.ao-ab-member-card__role, .ao-ab-member-card__name, .ao-ab-member-card__pronoun, .ao-ab-member-card__bio) {
	color: var(--wp--preset--color--orange);
}
.editor-styles-wrapper .ao-ab-intro__heading {
	font-size: clamp(2.25rem, 4.8vw, 4.5rem);
	line-height: 1.0;
}
.editor-styles-wrapper .ao-ab-intro__intro {
	font-size: clamp(1.1rem, 1.3vw, 1.17rem);
	line-height: 1.5;
}
.editor-styles-wrapper .ao-ab-intro__label {
	font-size: clamp(1rem, 1.25vw, 1.125rem);
	line-height: 1.6;
}
.editor-styles-wrapper .ao-ab-intro__names li {
	font-size: inherit;
	line-height: inherit;
}
.editor-styles-wrapper .ao-ab-member-card__role {
	font-size: 1.22rem;
	line-height: 1.6;
}
.editor-styles-wrapper p.ao-ab-member-card__pronoun {
	font-size: clamp(2rem, 4.25vw, 3.9rem);
	line-height: 1.05;
}
