/*
 * E17 audience pages (WO-60, FD-212): For groups and For growing SMEs, as drawn in Groups.png and
 * Scale.png (desktop 1440, mobile 390). Owned by the audiences lane.
 *
 * Loads with core/group on every page (functions.php), so every rule here is scoped under
 * .fd-page--audiences, the class on each section group of these two pages. No hex: colours come
 * from theme.json tokens. Phone first; min-width queries at the token breakpoints only. Rules that
 * another page group needs go in sections.css through the integrator, not here.
 */

/* Section rhythm: 96 px above and below on every band (Groups.png and Scale.png, both widths). */
.fd-page--audiences.is-style-section-page,
.fd-page--audiences.is-style-section-sunken,
.fd-page--audiences.is-style-section-inverse {
	padding-block: var(--wp--preset--spacing--96);
}

.fd-page--audiences > * {
	box-sizing: border-box;
}

/* Section heading: 38 px Lexend 700 on a 46 px line at every width, 740 px measure. */
/* Core centres a max-width child of a constrained group with !important auto margins, so the measure is padding on a full-width box. */
.fd-page--audiences .fd-aud-h2 {
	padding-inline-end: max(0px, min(calc(100% - 46.25rem), 28.75rem));
	margin-block: var(--wp--preset--spacing--12) 0;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0;
}

.fd-page--audiences.fd-page--audiences > .is-style-eyebrow + .fd-aud-h2 {
	margin-block-start: var(--wp--preset--spacing--12);
}

.fd-page--audiences.is-style-section-inverse .is-style-eyebrow {
	color: var(--wp--preset--color--cta-primary);
}

.fd-page--audiences .is-style-eyebrow {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.fd-page--audiences .fd-aud-section-lead {
	padding-inline-end: max(0px, min(calc(100% - 47rem), 28rem));
	margin-block: var(--wp--preset--spacing--16) 0;
	color: var(--wp--preset--color--text-secondary);
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* Hero: eyebrow, 57 px H1, lead, two buttons. 88 px above, 80 px below. */
.fd-page--audiences.fd-aud-hero {
	padding-top: 5.5rem;
	padding-bottom: 5rem;
}

.fd-page--audiences .fd-aud-h1 {
	max-width: 37.75rem;
	margin-block: 1.5rem 0;
	font-weight: 700;
	line-height: 1.0351;
	letter-spacing: -0.036em;
}

.fd-page--audiences .fd-aud-lead {
	max-width: 36rem;
	margin-block: var(--wp--preset--spacing--24) 0;
	font-size: 1.1875rem;
	line-height: 1.6;
}

.fd-page--audiences.is-style-section-inverse .fd-aud-lead {
	color: var(--wp--preset--color--text-on-inverse-soft);
}

/* Groups.png sets the hero lead on a 560 px measure ("… not for / their software"). */
.fd-page--audiences.fd-aud-hero:not(.fd-aud-hero--light) .fd-aud-lead {
	max-width: 35rem;
}

.fd-page--audiences:not(.is-style-section-inverse) .fd-aud-lead {
	color: var(--wp--preset--color--text-secondary);
}

.fd-page--audiences .fd-page-split .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--24);
}

.fd-page--audiences .wp-block-button__link {
	min-height: 3.5rem;
	padding-inline: 1.625rem;
	font-size: 1rem;
	line-height: 1.2;
}

.fd-page--audiences.is-style-section-inverse .is-style-outline-inverse .wp-block-button__link {
	border-color: var(--wp--preset--color--inverse-outline);
	color: var(--wp--preset--color--text-on-inverse);
}

.fd-page--audiences:not(.is-style-section-inverse) .is-style-outline .wp-block-button__link {
	border-color: var(--wp--preset--color--text-primary);
	background: transparent;
	color: var(--wp--preset--color--text-primary);
}

.fd-page--audiences .fd-btn-white .wp-block-button__link {
	border-color: transparent;
	background: var(--wp--preset--color--surface-raised);
	color: var(--wp--preset--color--text-on-cta);
}

/* ---- Groups hero panel ---- */
.fd-page--audiences .fd-aud-panel {
	gap: 0;
	padding: 1.625rem;
}

.fd-page--audiences .fd-aud-panel .fd-panel__label {
	margin-block-end: 0.875rem;
}

.fd-page--audiences .fd-aud-panel__template {
	display: flex;
	align-items: center;
	justify-content: space-between;
	column-gap: var(--wp--preset--spacing--16);
	box-sizing: border-box;
	min-height: 3rem;
	padding: 0.8125rem var(--wp--preset--spacing--16);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--brand-primary);
	color: var(--wp--preset--color--text-on-brand);
}

.fd-page--audiences .fd-aud-panel__template > * {
	margin: 0;
}

.fd-page--audiences .fd-aud-panel__name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.fd-page--audiences .fd-aud-panel__meta {
	max-width: 11rem;
	text-align: end;
	color: var(--wp--preset--color--text-on-brand-soft);
	font-size: 0.75rem;
	line-height: 1.35;
}

/* Phone: the cells stack as a list, name left and status right (M7); three columns from 768 px. */
.fd-page--audiences .fd-aud-panel__cells {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.5rem;
	margin-block: 0.875rem 0;
}

.fd-page--audiences .fd-aud-cell {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.125rem 0.75rem;
	min-height: 2.75rem;
	padding: 0.625rem 0.75rem;
	border-radius: var(--wp--custom--radius--sm);
}

.fd-page--audiences .fd-aud-cell > * {
	margin: 0;
}

.fd-page--audiences .fd-aud-cell__name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
}

.fd-page--audiences .fd-aud-cell .fd-panel__status {
	flex-wrap: wrap;
	align-items: flex-start;
}

.fd-page--audiences .fd-aud-cell .fd-panel__status,
.fd-page--audiences .fd-aud-cell__sub {
	font-size: 0.8125rem;
	line-height: 1.3;
}

.fd-page--audiences .fd-aud-cell__sub {
	color: var(--wp--preset--color--text-on-inverse-muted);
}

/* The group view is the template's result, so it takes the template blue, not the onboarding orange (V9). */
.fd-page--audiences .fd-aud-cell.fd-panel__cell--highlight {
	background: var(--wp--preset--color--brand-primary);
	color: var(--wp--preset--color--text-on-brand);
}

.fd-page--audiences .fd-aud-cell.fd-panel__cell--dashed {
	border: 1px dashed var(--wp--preset--color--inverse-outline);
	background: transparent;
}

.fd-page--audiences .fd-aud-cell.fd-panel__cell--highlight .fd-aud-cell__sub {
	color: inherit;
}

.fd-page--audiences .fd-page-split {
	row-gap: 3.5rem;
}

@media (min-width: 768px) {
	.fd-page--audiences .fd-aud-panel__cells {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fd-page--audiences .fd-aud-cell {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: center;
		gap: 0.125rem;
		min-height: 3.875rem;
	}
}

.fd-page--audiences .fd-aud-panel .fd-panel__note {
	margin-block-start: 0.75rem;
	font-size: 0.75rem;
}

/* ---- Proof strip: Kaeron logos, one line, the case link ---- */
.fd-page--audiences.fd-aud-proof {
	padding-block: 1.5625rem;
	border-bottom: 1px solid var(--wp--preset--color--line-default);
}

.fd-page--audiences .fd-aud-proof__grid {
	display: grid;
	gap: var(--wp--preset--spacing--20);
	align-items: center;
}

.fd-page--audiences .fd-aud-proof__grid > * {
	margin: 0;
}

.fd-page--audiences .fd-aud-proof__text {
	color: var(--wp--preset--color--text-secondary);
	font-size: 0.9375rem;
	line-height: 1.27;
}

.fd-page--audiences .fd-aud-proof__link {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1rem;
	font-weight: 600;
}

.fd-page--audiences .fd-aud-proof__link a {
	position: relative;
	color: var(--wp--preset--color--brand-primary);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* Standalone text links keep a 44 px touch target (AGENTS.md section 6): a transparent ::after
   reaches 12 px above and below the 20 px line, so the drawn section heights do not change. */
.fd-page--audiences .fd-aud-proof__link a::after,
.fd-page--audiences .fd-aud-close__mail a::after {
	content: "";
	position: absolute;
	inset: -0.75rem -0.25rem;
}

@media (min-width: 1024px) {
	/* The link column takes its own width, so "Read the case →" stays on one line at 1001-1099 too
	   (QA audit 2); the text keeps its drawn 600 px measure from 1200. */
	.fd-page--audiences .fd-aud-proof__grid {
		grid-template-columns: 20.25rem minmax(0, 1fr) max-content;
		gap: 0;
	}

	.fd-page--audiences .fd-aud-proof__text {
		max-width: 37.5rem;
	}

	.fd-page--audiences .fd-aud-proof__link {
		justify-self: end;
		padding-inline-start: 1rem;
		white-space: nowrap;
	}
}

/* ---- Cards: problems (white on sunken), budget (inverse), phases ---- */
.fd-page--audiences .fd-aud-cards,
.fd-page--audiences .fd-aud-phases,
.fd-page--audiences .fd-aud-steps {
	margin-block-start: 2.25rem;
}

.fd-page--audiences .fd-aud-cards .fd-card-grid__list,
.fd-page--audiences .fd-aud-phases .fd-card-grid__list,
.fd-page--audiences .fd-aud-steps .fd-card-grid__list {
	gap: var(--wp--preset--spacing--16);
}

@media (min-width: 768px) {
	.fd-page--audiences .fd-aud-cards .fd-card-grid__list,
	.fd-page--audiences .fd-aud-phases .fd-card-grid__list {
		column-gap: var(--wp--preset--spacing--16);
	}

	.fd-page--audiences .fd-aud-steps .fd-card-grid__list {
		column-gap: 0;
	}
}

.fd-page--audiences .fd-aud-cards .fd-card {
	gap: var(--wp--preset--spacing--8);
	padding: 1.625rem 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface-raised);
}

/* 40 px at 390 too (QA audit 2: mobile/Scale.png, first line "Never an invoice" 338 px, so the drawn tight
   tracking); 37 px at 360 so no word overflows. The phone cards keep the drawn 24 px padding (178 px card 1). */
.fd-page--audiences.fd-aud-budget .fd-aud-h2 {
	font-size: clamp(2.28rem, 10.3vw, 2.5rem);
	letter-spacing: -0.01em;
}

.fd-page--audiences.fd-aud-budget .fd-aud-cards .fd-card {
	padding: 1.5rem;
}

@media (min-width: 768px) {
	.fd-page--audiences.fd-aud-budget .fd-aud-cards .fd-card {
		padding: 1.625rem;
	}
}

@media (min-width: 768px) {
	.fd-page--audiences .fd-aud-cards .fd-card {
		padding: 1.625rem;
	}
}

.fd-page--audiences .fd-aud-cards .fd-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
}

.fd-page--audiences .fd-aud-cards .fd-card__body {
	font-size: 0.9375rem;
	line-height: 1.6;
}

.fd-page--audiences .fd-aud-cards--inverse .fd-card {
	border-color: var(--wp--preset--color--inverse-line);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--inverse-raised);
	color: var(--wp--preset--color--text-on-inverse-soft);
}

.fd-page--audiences .fd-aud-cards--inverse .fd-card__title {
	color: var(--wp--preset--color--text-on-inverse);
	font-size: 1.1875rem;
}

.fd-page--audiences .fd-aud-cards--inverse .fd-card__body {
	color: var(--wp--preset--color--text-on-inverse-soft);
}

/* Playbook: a 2 px rule across, then four numbered columns. */
.fd-page--audiences .fd-aud-steps {
	padding-top: var(--wp--preset--spacing--32);
	border-top: 2px solid var(--wp--preset--color--text-primary);
}

.fd-page--audiences .fd-aud-steps .fd-card {
	gap: var(--wp--preset--spacing--8);
	padding: 0 1.5rem 0 0;
	border-top: 0;
}

.fd-page--audiences .fd-aud-steps .fd-card-grid--numbered .fd-card::before,
.fd-page--audiences .fd-aud-steps.fd-card-grid--numbered .fd-card::before {
	content: counter(fd-card, decimal);
	color: var(--wp--preset--color--brand-primary);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	margin-block-end: 0.3125rem;
}

.fd-page--audiences .fd-aud-steps.fd-card-grid--numbered li:nth-child(4) .fd-card::before,
.fd-page--audiences .fd-aud-steps.fd-card-grid--numbered .fd-card:nth-of-type(4)::before {
	color: var(--wp--preset--color--method-ochre);
}

.fd-page--audiences .fd-aud-steps .fd-card-grid__list {
	row-gap: 1.6875rem;
}

.fd-page--audiences .fd-aud-steps .fd-card__title {
	margin-block-end: 0.125rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.fd-page--audiences .fd-aud-steps .fd-card__body {
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* ---- Why Odoo fits a group: copy and four figure tiles ---- */
.fd-page--audiences.fd-aud-why .fd-aud-h2,
.fd-page--audiences.fd-aud-faq .fd-section-intro__heading,
.fd-page--audiences.fd-aud-limits .fd-aud-h2 {
	font-size: 2.375rem;
	line-height: 1.17;
}

.fd-page--audiences.fd-aud-faq .fd-section-intro__heading {
	line-height: 1.1;
}

@media (min-width: 768px) {
	.fd-page--audiences.fd-aud-why .fd-aud-h2,
	.fd-page--audiences.fd-aud-faq .fd-section-intro__heading,
	.fd-page--audiences.fd-aud-limits .fd-aud-h2 {
		font-size: 2.25rem;
		line-height: 1.2;
	}

	.fd-page--audiences.fd-aud-limits .fd-aud-h2 {
		font-size: 2.375rem;
		line-height: 1.17;
	}
}

.fd-page--audiences.fd-aud-why .fd-page-split {
	row-gap: 2rem;
}

.fd-page--audiences.fd-aud-why .fd-aud-lead {
	margin-block-start: 1.25rem;
}

.fd-page--audiences.fd-aud-why .fd-aud-lead {
	font-size: 1.0625rem;
	line-height: 1.65;
}

.fd-page--audiences .fd-btn-white .wp-block-button__link {
	min-height: 3rem;
}

@media (min-width: 1024px) {
	.fd-page--audiences.fd-aud-why .fd-page-split {
		grid-template-columns: minmax(0, 1fr) 37.75rem;
	}

	/* As drawn the heading breaks after "at" (a 460 px measure) and sits 6 px lower (QA audit 1, Groups 1). */
	.fd-page--audiences.fd-aud-why .fd-aud-h2 {
		max-width: 29rem;
		margin-block-start: 1.125rem;
	}
}

.fd-page--audiences .fd-aud-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--12);
}

.fd-page--audiences .fd-aud-tile {
	box-sizing: border-box;
	min-height: 8.6875rem;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--24);
	border: 1px solid var(--wp--preset--color--inverse-line);
	border-radius: var(--wp--custom--radius--xl);
	background: var(--wp--preset--color--inverse-raised);
}

.fd-page--audiences .fd-aud-tile > * {
	margin: 0;
}

.fd-page--audiences .fd-aud-tile__value {
	color: var(--wp--preset--color--text-on-inverse);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
}

/* QA audit 2: the drawn label is the dim grey at about 14 px (227 px ink for tile 1 at 1440). */
.fd-page--audiences .fd-aud-tile__label {
	margin-block-start: 0.375rem;
	color: var(--wp--preset--color--text-on-inverse-dim);
	font-size: 0.875rem;
	line-height: 1.3;
}

/* ---- Kaeron case card and the checklist card ---- */
.fd-page--audiences .fd-aud-case__grid {
	display: grid;
	gap: var(--wp--preset--spacing--32);
}

.fd-page--audiences .fd-aud-case__card {
	box-sizing: border-box;
	padding: 2.125rem;
	border-radius: 1.5rem;
	background: var(--wp--preset--color--surface-raised);
}

.fd-page--audiences .fd-aud-checklist {
	box-sizing: border-box;
	padding: 2.125rem;
	border-radius: 1.5rem;
	background: var(--wp--preset--color--brand-primary);
	color: var(--wp--preset--color--text-on-brand);
}

.fd-page--audiences .fd-aud-case__card > *,
.fd-page--audiences .fd-aud-checklist > * {
	margin-block: 0;
}

.fd-page--audiences .fd-aud-case__eyebrow,
.fd-page--audiences .fd-aud-checklist__eyebrow {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.fd-page--audiences .fd-aud-case__eyebrow {
	color: var(--wp--preset--color--brand-primary);
}

.fd-page--audiences .fd-aud-checklist__eyebrow {
	color: var(--wp--preset--color--eyebrow-on-brand);
}

.fd-page--audiences .fd-aud-case__title {
	max-width: 37.5rem;
	margin-block-start: 1.25rem;
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
}

.fd-page--audiences .fd-aud-checklist__title {
	margin-block-start: var(--wp--preset--spacing--16);
	color: var(--wp--preset--color--text-on-brand);
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1.2;
}

.fd-page--audiences .fd-aud-checklist__text {
	margin-block-start: var(--wp--preset--spacing--16);
	color: var(--wp--preset--color--text-on-brand-soft);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.fd-page--audiences .fd-aud-checklist .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--24);
}

.fd-page--audiences .fd-aud-checklist .wp-block-button,
/* The drawn checklist button is 48 px high with a 16 px label (QA audit 1, Groups 3). */
.fd-page--audiences.fd-page .fd-aud-checklist .wp-block-button__link {
	width: 100%;
	min-height: 3rem;
	padding-block: 0.625rem;
	font-size: 1rem;
}

.fd-page--audiences .fd-aud-timeline {
	position: relative;
	display: grid;
	gap: var(--wp--preset--spacing--16);
	margin-block-start: 1.125rem;
	padding-inline-start: 2rem;
}

.fd-page--audiences .fd-aud-timeline::before {
	content: "";
	position: absolute;
	inset-block: 0.5rem;
	inset-inline-start: 0.4375rem;
	width: 2px;
	background: var(--wp--preset--color--line-strong);
}

.fd-page--audiences .fd-aud-timeline__item {
	position: relative;
}

.fd-page--audiences .fd-aud-timeline__item::before {
	content: "";
	position: absolute;
	inset-block-start: 0.3125rem;
	inset-inline-start: -2rem;
	width: 0.875rem;
	height: 0.875rem;
	box-sizing: border-box;
	border: 2px solid var(--wp--preset--color--brand-primary);
	border-radius: 50%;
	background: var(--wp--preset--color--brand-primary);
}

.fd-page--audiences .fd-aud-timeline__item--next::before {
	background: var(--wp--preset--color--surface-raised);
}

.fd-page--audiences .fd-aud-timeline__item > * {
	margin: 0;
}

/* The timeline titles are drawn in the body face, semibold (QA audit 1, Groups 3). */
.fd-page--audiences .fd-aud-timeline__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

.fd-page--audiences .fd-aud-timeline__text {
	color: var(--wp--preset--color--text-secondary);
	font-size: 0.90625rem;
	line-height: 1.38;
}

@media (min-width: 1024px) {
	.fd-page--audiences .fd-aud-case__grid {
		grid-template-columns: minmax(0, 1fr) 27.4375rem;
		align-items: stretch;
	}
}

/* ---- FAQ: every answer open, a triangle before each question (Groups.png, Scale.png) ----
 * Drawn like the industry FAQ: a 38 px heading and questions 4.9% wider than 18 px (18.88 px). */
.fd-page--audiences.fd-page-faq {
	padding-block: 5.5rem;
}

.fd-page--audiences .fd-faq .fd-section-intro__eyebrow {
	color: var(--wp--preset--color--brand-primary);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.fd-page--audiences .fd-faq .fd-section-intro__heading {
	margin-block-start: 1.5625rem;
	font-size: 2.375rem;
	line-height: 1.1;
}

/* ---- Scale: hero tiles, phases, limits, band ---- */
.fd-page--audiences.fd-aud-hero--light {
	padding-bottom: 4.5rem;
}

@media (min-width: 1024px) {
	.fd-page--audiences.fd-aud-hero--light .fd-page-split {
		grid-template-columns: minmax(0, 1fr) 30.0625rem;
	}
}

.fd-page--audiences.fd-aud-hero--light .fd-aud-h1 {
	max-width: none;
}

.fd-page--audiences.fd-aud-hero--light .fd-aud-lead {
	max-width: 37rem;
}

.fd-page--audiences.fd-aud-hero--light .fd-card-grid__list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--12);
}

.fd-page--audiences.fd-aud-hero--light .fd-card {
	gap: var(--wp--preset--spacing--8);
	padding: var(--wp--preset--spacing--24);
	border: 0;
	border-radius: var(--wp--custom--radius--xl);
	background: var(--wp--preset--color--surface-raised);
}

.fd-page--audiences.fd-aud-hero--light .fd-card__title {
	color: var(--wp--preset--color--brand-primary);
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1.25;
}

.fd-page--audiences.fd-aud-hero--light .fd-card__body {
	font-size: 0.875rem;
	line-height: 1.3;
}

.fd-page--audiences.fd-aud-hero--light .fd-card--inverse {
	background: var(--wp--preset--color--surface-inverse);
}

.fd-page--audiences.fd-aud-hero--light .fd-card--inverse .fd-card__title {
	color: var(--wp--preset--color--cta-primary);
}

.fd-page--audiences.fd-aud-hero--light .fd-card--inverse .fd-card__body {
	color: var(--wp--preset--color--text-on-inverse-soft);
}

.fd-page--audiences .fd-aud-phases .fd-card {
	padding: 1.5rem;
	border: 0;
	border-radius: var(--wp--custom--radius--xl);
	background: var(--wp--preset--color--surface-sunken);
}

.fd-page--audiences .fd-aud-phases .fd-card:last-child {
	background: var(--wp--preset--color--method-cream);
}

.fd-page--audiences .fd-aud-phases .fd-card__tag {
	color: var(--wp--preset--color--text-secondary);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.fd-page--audiences .fd-aud-phases li:nth-child(2) .fd-card__tag,
.fd-page--audiences .fd-aud-phases li:nth-child(3) .fd-card__tag {
	color: var(--wp--preset--color--brand-primary);
}

/* method-ochre is 3.84:1 on the cream card; the darker configured-chip text passes 4.5:1 (axe) */
.fd-page--audiences .fd-aud-phases li:nth-child(4) .fd-card__tag {
	color: var(--wp--preset--color--chip-configured-text);
}

.fd-page--audiences .fd-aud-phases .fd-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.fd-page--audiences .fd-aud-phases .fd-card__body {
	font-size: 0.9375rem;
	line-height: 1.6;
}

.fd-page--audiences .fd-aud-chiprows {
	display: grid;
	gap: 0.625rem;
}

.fd-page--audiences .fd-aud-chiprow {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--12);
	box-sizing: border-box;
	padding: 1rem 1.125rem;
	border: 1px solid var(--wp--preset--color--line-default);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface-raised);
}

.fd-page--audiences .fd-aud-chiprow > * {
	margin: 0;
}

.fd-page--audiences .fd-aud-chip {
	/* One fixed tag column, so every row's text starts at the same x (V4). */
	flex: 0 0 7.5rem;
	box-sizing: border-box;
	text-align: center;
	padding: 0.1875rem 0.5rem;
	border-radius: var(--wp--custom--radius--pill);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.fd-page--audiences .fd-aud-chip--standard {
	background: var(--wp--preset--color--chip-standard-fill);
	color: var(--wp--preset--color--chip-standard-text);
}

.fd-page--audiences .fd-aud-chip--configured {
	background: var(--wp--preset--color--method-cream);
	color: var(--wp--preset--color--chip-configured-text);
}

.fd-page--audiences .fd-aud-chip--outside {
	background: var(--wp--preset--color--chip-outside-fill);
	color: var(--wp--preset--color--chip-outside-text);
}

.fd-page--audiences .fd-aud-chiprow__text {
	font-size: 0.9375rem;
	line-height: 1.55;
}

@media (min-width: 1024px) {
	.fd-page--audiences.fd-aud-limits .fd-page-split {
		grid-template-columns: minmax(0, 1fr) 40.375rem;
		align-items: start;
	}
}

/* Band: "Smaller entity or a first step?" is one card; its link is the dark pill button. */
.fd-page--audiences.fd-aud-band {
	padding-block: 4.375rem;
}

.fd-page--audiences .fd-aud-bandcard .fd-card-grid__list {
	grid-template-columns: minmax(0, 1fr);
}

.fd-page--audiences .fd-aud-bandcard .fd-card {
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
	padding: 0;
	border: 0;
}

.fd-page--audiences .fd-aud-bandcard .fd-card__title {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.3;
}

.fd-page--audiences .fd-aud-bandcard .fd-card__body {
	max-width: 40rem;
	font-size: 1.0625rem;
	line-height: 1.25;
}

.fd-page--audiences .fd-aud-bandcard .fd-card__link {
	align-self: flex-start;
	margin-block-start: var(--wp--preset--spacing--16);
	min-height: 3.25rem;
	padding-inline: 1.375rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface-inverse);
	color: var(--wp--preset--color--text-on-inverse);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	text-decoration: none;
}

@media (min-width: 768px) {
	.fd-page--audiences .fd-aud-bandcard .fd-card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: var(--wp--preset--spacing--32);
		align-items: center;
	}

	.fd-page--audiences .fd-aud-bandcard .fd-card__title,
	.fd-page--audiences .fd-aud-bandcard .fd-card__body {
		grid-column: 1;
	}

	.fd-page--audiences .fd-aud-bandcard .fd-card__link {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: center;
		margin-block-start: 0;
	}
}

/* ---- Close band ---- */
.fd-page--audiences.fd-page-close .fd-aud-close__title {
	max-width: 56rem;
	margin-block: 0;
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.027em;
}

.fd-page--audiences .fd-aud-close__lead {
	margin-block: var(--wp--preset--spacing--16) 0;
	color: var(--wp--preset--color--text-on-inverse-soft);
	font-size: 1.125rem;
	line-height: 1.6;
}

/* The drawn lead is a 630 px measure, so it breaks after "and" (QA audit 1, S12). */
.fd-page--audiences.fd-aud-close .fd-aud-close__lead {
	max-width: 39.375rem;
}

.fd-page--audiences.fd-aud-close .wp-block-buttons {
	margin-block-start: 1.375rem;
}

.fd-page--audiences .fd-aud-close__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.9375rem var(--wp--preset--spacing--24);
	margin-block-start: 1.375rem;
}

.fd-page--audiences .fd-aud-close__actions > *,
.fd-page--audiences.fd-aud-close .fd-aud-close__actions .wp-block-buttons {
	margin-block: 0;
}

.fd-page--audiences .fd-aud-close__mail {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
}

.fd-page--audiences.fd-aud-close {
	padding-block: 5.5rem 6rem;
}

@media (min-width: 768px) {
	.fd-page--audiences.fd-aud-close {
		padding-bottom: 5.5rem;
	}

	.fd-page--audiences .fd-aud-close__actions {
		row-gap: 1.25rem;
	}
}

.fd-page--audiences .fd-aud-close__mail a {
	position: relative;
	color: var(--wp--preset--color--text-on-inverse);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
