/* XGene 272: one brand palette + contrast fixes (owner decisions D1, D2, 2 Nov 2026).
   Loads last. Plan: "XGene Colour and Contrast Fix Plan", phases 1–2.
   Phase 1: restore the brand values from xgene-tokens.css (foundation-161 and polish-135 redefined 12 of them).
   Phase 2: targeted contrast fixes. Remove this file to roll back. */

/* ---------- Phase 1: one palette ---------- */
html:root {
	--xg-blue: #115df6;
	--xg-deep-blue: #0a2d84;
	--xg-teal: #0b8d96;
	--xg-lime: #84d400;
	--xg-coral: #f47a3c;
	--xg-coral-hover: #dc5c22;
	--xg-navy: #0f2a4a;
	--xg-ink: #182333;
	--xg-muted: #4a5568;
	--xg-line: #dde2e8;
	--xg-canvas: #f8f5fc;
	--xg-aqua: #eaf8f7;
	--xg-peach: #fff0e8;
	/* Text-safe tokens (design system). */
	--xg-teal-text: #08747c;
	--xg-on-coral: #091f38;
	--xg-lime-text: #456b00;
	--xg-coral-text: #a23d0d;
	--xg-focus: #0a2d84;
}

/* ---------- Phase 2: contrast ---------- */
/* Text links: deep blue (12.2:1 on white). Teal stays for non-text marks. */
.xg-text-link,
.xg-text-link:visited { color: var(--xg-deep-blue) !important; }

/* Small teal labels and eyebrows: text-safe teal (5.1–5.5:1 on white and tints). */
.xg-eyebrow,
.xg220-founder__copy .xg-eyebrow { color: var(--xg-teal-text) !important; }

/* Coral buttons: navy text, never white (6.1:1). */
.xg-button--coral,
.x251-cta,
a.x251-cta { color: var(--xg-on-coral) !important; }

/* One-off greys: brand muted (7.5:1). */
.xg-service-context__items span { color: var(--xg-muted) !important; }

/* Keyboard focus (D2): deep blue on light grounds; lime only on navy bands. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible { outline: 3px solid var(--xg-focus) !important; outline-offset: 2px; }
.xg-navy-band a:focus-visible,
.xg-navy-band button:focus-visible,
[class*="hero--dark"] a:focus-visible,
.site-footer a:focus-visible { outline-color: var(--xg-lime) !important; }

/* Component palettes that hard-code their own values (hub 230, podcast 250, intelligence 190). */
html .xh,
html .xp { --teal: var(--xg-teal-text); --coral: var(--xg-coral); --navy: var(--xg-navy); }
html:root { --xg190-teal: var(--xg-teal-text); --xg190-navy: var(--xg-navy); }
html .xh .btn--coral,
html .xp .btn--coral { color: var(--xg-on-coral) !important; }

/* Eyebrows on tinted sections (some carry their own colour with higher specificity). */
html body .xg-eyebrow,
html body .xg-section-heading .xg-eyebrow,
html body .xg-publications__heading .xg-eyebrow { color: var(--xg-teal-text) !important; }

/* Podcast: active topic chip and the "Latest episode" kicker on grey. */
html .xp .qi.on b { color: var(--xg-navy) !important; }
html .xp #xp-latest { color: var(--xg-deep-blue) !important; }

/* Hero panel spotlight kicker on light panels (accent colour can be too light for small text). */
html .x251--light .x251-k { color: var(--xg-muted) !important; }

/* Small-label contrast on phones (owner approved 3 Nov 2026). Darker shade of each label's own colour; all 4.5:1 or better. */
.xg-editorial-mobile-toc summary span,
.xg-content-card .xg-content-card__type,
.xg120-faq-card > span,
.xs .bcard:not(.bcard--svc):not(.bcard--gl) .blab,
p.x242-slab,
.xg-intake-form .xg-consent a { color:#08747c; }
.xg-content-card .xg-content-card__meta,
.xg-editorial-progress-card em { color:#4a5568; }
.xg-contact-assurance__items > div:nth-child(2) > span { color:#08747c; }
.xg-contact-assurance__items > div:nth-child(3) > span { color:#9a4520; }
.xg190-reg-record-single .xg190-prose--record .x242-sources .x242-slab,
.xg-ri-v2-body .x242-slab,
.xg-ri-v2-toc-mobile summary span,
.xg-expert-archive-summary span { color:#08747c; }
.xg-editorial-progress-card > div:last-child em { color:#4a5568; }
.xg-editorial-journey ol li span,
.navigation.pagination a.page-numbers,
.xg190-pagination a.page-numbers { color:#08747c; }
.xg-contact-assurance__items > div:nth-child(2) > span { color:#08747c !important; }
.xg-contact-assurance__items > div:nth-child(3) > span { color:#9a4520 !important; }
