/*
 * WCAG 2.1 AA colour contrast.
 *
 * Enabled via inc/assets.php. Remove that enqueue block to restore the original
 * brand colours exactly; nothing else depends on this file.
 *
 * The theme drives its palette from custom properties, so the three failing
 * colours are corrected at source and cascade everywhere that uses var().
 * A handful of rules in the recovered stylesheet hardcode the old hex values
 * with !important (WooCommerce button overrides), so those are matched
 * explicitly below.
 *
 * Values were chosen to clear 4.5:1 against the DARKEST background the theme
 * uses (#f1f4f8), so they are safe on #ffffff and #f7f9fc as well. Picking
 * per-background values was the mistake in the first pass: accent text tuned
 * for white still failed at 4.35:1 once it sat on a soft panel.
 *
 *   accent / links   #6ba035  ->  #527b28   4.97 / 4.72 / 4.51 : 1
 *   muted text       #718096  ->  #637084   5.02 / 4.76 / 4.55 : 1
 *   button fill      #7cb342  ->  #59802f   4.61:1 with white text
 *   button hover               ->  #4f722a   5.57:1 with white text
 *
 * These are minimum viable darkenings that clear the bar, not a designed
 * palette revision. Worth a proper design pass before a brand refresh.
 */

:root {
	--gds-green: #59802f;
	--gds-green-dark: #527b28;
	--gds-green-hover: #4f722a;
	--gds-text-muted: #637084;
}

/* ---------------------------------------------------------------- accents */

.gds-row-head a,
.gds-nav-list a,
.gds-footer a,
.gds-footer-col a,
.gds-action,
.gds-card-price,
.gds-breadcrumb a,
.gds-product-eyebrow,
a.gds-btn-outline,
.woocommerce-Price-amount {
	color: #527b28;
}

.gds-row-head a:hover,
.gds-nav-list a:hover,
.gds-footer a:hover,
.gds-breadcrumb a:hover {
	color: #3f5f1e;
}

/* ------------------------------------------------------------ muted text */

.gds-card-sub,
.gds-card-spec,
.gds-footer-bottom,
.gds-footer-bottom span,
.gds-footer-division,
.gds-currency-note,
.gds-inquiry-note,
.gds-configurator-hint,
.gds-hero-desc,
.gds-section-sub,
.gds-tab,
.woocommerce-result-count,
.gds-breadcrumb,
.gds-breadcrumb span {
	color: #637084;
}

/* ------------------------------------------------- solid green buttons */

.gds-btn-green,
.gds-btn-green:link,
.gds-btn-green:visited,
.gds-btn-cart {
	background: #59802f;
	border-color: #59802f;
	color: #fff;
}

.gds-btn-green:hover,
.gds-btn-green:focus-visible,
.gds-btn-cart:hover {
	background: #4f722a;
	border-color: #4f722a;
	color: #fff;
}

/* The recovered stylesheet sets the WooCommerce place-order and loop
   add-to-cart buttons with !important, so match that specificity. */
html body .gds-wc #place_order,
html body .gds-wc button#place_order,
html body .gds-wc ul.products li.product a.button,
html body .gds-wc ul.products li.product a.add_to_cart_button {
	background: #59802f !important;
	background-color: #59802f !important;
	background-image: none !important;
	border-color: #59802f !important;
	color: #fff !important;
}

html body .gds-wc #place_order:hover,
html body .gds-wc button#place_order:hover,
html body .gds-wc ul.products li.product a.button:hover {
	background: #4f722a !important;
	background-color: #4f722a !important;
	background-image: none !important;
	border-color: #4f722a !important;
}

/* Badges that carry white text on the brand greens. */
.badge-best,
.gds-hero-badge,
.gds-related-tag {
	background: #59802f;
	color: #fff;
}

/* Quick-fact ticks are decorative but read better darkened to match. */
.gds-check {
	stroke: #59802f;
}
