/*
 * Theme overrides
 * ---------------------------------------------------------------------------
 * Small corrections loaded after the compiled bundle. Kept in a separate file
 * so they can be applied without rebuilding build/main.*.css. Each rule should
 * be folded back into the SCSS source and removed from here at the next build.
 */

/* White buttons inside the coloured intro cards used black text, not the brand
 * green. The card background is chosen per instance, so green text sat on white
 * inside red, amber and green boxes inconsistently. Black is legible on every
 * card colour and raises the contrast ratio from 3.44:1 to 15.9:1. */
.btn.white,
.btn.white:link,
.btn.white:visited,
.sc__intro--card-btn.btn.white {
	color: #1d1d1d;
}

/* The other white-button-in-a-coloured-box component: the Seventy Thirty Text
 * Card used on the section landing pages. Its text colour was set per card
 * variant, so the same Account Login button rendered teal on member pages, red
 * on retiree pages, blue on solid cards and black on employer pages. Black on
 * all of them, which is what btn-yellow already did.
 * Contrast on white: green 3.44:1 and red 3.97:1 both failed WCAG 1.4.3. */
.sttc__card--button.btn-green,
.sttc__card--button.btn-red,
.sttc__card--button.btn-solid,
.sttc__card--button.btn-yellow {
	color: #1d1d1d;
}

/* Bold in the last row of a content table rendered lighter than the rows above.
 * The theme resets tr:last-child td to font-weight 400 (a totals-row rule) and
 * then restores strong/b at 600, but everywhere else strong inherits the global
 * `bolder`, which resolves to 700. So the final row's bold sat one step light.
 * Match 700 so every row looks the same. */
.sc__full-card--content table tbody tr:last-child td strong,
.sc__full-card--content table tbody tr:last-child td b,
.ip__rich-text--content table tbody tr:last-child td strong,
.ip__rich-text--content table tbody tr:last-child td b {
	font-weight: 700;
}
