/*
 * IB Masters (ibm) palette. Loaded only when config('branding.assets.ibm.stylesheet') is set
 * and APP_CODE=ibm (see layouts/header + layouts/error). Every other brand never requests this file.
 * It only re-points the shared --home-* tokens from home.css; layout and components are unchanged.
 *
 * Identity: navy #0f2340 (primary), gold #c9972b (action), gold on dark #e3b54f.
 * Contrast (WCAG 2.x): navy on gold 5.95, navy on light gold 8.23, white on navy 15.73,
 * gold-on-dark on navy 8.23, navy on page 15.34, heading gold #a87a1c on page 3.75 (large text only).
 * White on #c9972b is only 2.64, so gold surfaces always carry navy ink.
 */

/* Dark theme (the :root/.ta-home base). */
.ta-home {
	--home-bg: #0b1526;
	--home-ink: #f3f1ea;
	--home-muted: #b9c4d6;
	--home-accent: #e3b54f;
	--home-soft: #132a4b;
	--home-line: #2c3f5e;
	--home-field: #0f2340;
	--home-field-ink: #ffffff;
	--home-field-muted: #d5dceb;
	--home-signal: #e3b54f;
	--home-action: #c9972b;
	--home-action-hover: #e3b54f;
	--home-action-ink: #0f2340;
	--home-field-line: #3a5276;
	--ibm-heading-accent: #e3b54f;
	--ibm-button-dark-hover: #1c3a66;
}

/* Light theme (the default). */
.ta-home.ta-light {
	--home-bg: #fcfcfd;
	--home-ink: #1b2230;
	--home-muted: #58606f;
	--home-accent: #0f2340;
	--home-soft: #f0f3f8;
	--home-line: #d8dde6;
	--ibm-heading-accent: #a87a1c; /* 3.75:1 on the page: large headings only (AA large). */
}

/* The dark band needs a visible edge against the dark page. */
.ta-home:not(.ta-light) :is(.home-method, .about-intro, .catalogue-intro, .packages-intro, .contact-heading, .policy-masthead, .testimonials-featured) { box-shadow: inset 0 1px 0 var(--home-field-line), inset 0 -1px 0 var(--home-field-line); }

/* Gold highlight on the second heading line (on the page background, not the navy band). */
.ta-home .home-intro h1 span + span,
.ta-testimonials .testimonials-intro h1 span,
.ta-about .about-purpose h2 { color: var(--ibm-heading-accent); }

/* Navy buttons on the gold closing band: give hover a visible state. */
.ta-home .home-button-light:is(:hover, :active) { background: var(--ibm-button-dark-hover); color: #ffffff; }

/* Client Portal / language buttons: navy outline in light, gold in dark. */
.ta-home .ta-navbar .ta-btn-outline { border-color: var(--home-accent) !important; }
.ta-home .ta-navbar .ta-btn-outline:is(:hover, :focus-visible) { color: var(--home-action-ink); background: var(--home-action); border-color: var(--home-action) !important; }
.ta-home.ta-light .ta-navbar .ta-btn-outline:is(:hover, :focus-visible) { color: #ffffff; background: var(--home-field); border-color: var(--home-field) !important; }

/* Gold underline for the current page in the main nav. */
.ta-home .nav-link[aria-current="page"] { text-decoration-color: var(--home-action) !important; }
