/* KLLD-A11Y-2026-10-15 — WCAG 2.1 AA colour-contrast overrides (stage-built, axe-verified).
 *
 * Brand green #099024 is 4.17:1 against white, which passes AA only for LARGE text (>=18pt, or
 * >=14pt bold). It stays the brand colour for backgrounds, borders, icons and large text.
 * Where SMALL text sits on white or white text sits on green, use the text-safe shade of the
 * same hue, --klld-green-text #077a1e (the existing --klld-green-dk): 5.51:1 on #fff and #fff on it, 5.45:1 on #fcfeff.
 * Owner decision recorded in PROMOTE-a11y-tours.md. Never #0b7016 (deprecated legacy green).
 */
:root{ --klld-green-text:#077a1e; }  /* = --klld-green-dk already used in loop-rental.php */

/* CookieYes banner (cloud-served styles, hence !important). Accept: white on text-safe green.
   Reject: text on #ffcc00 needs >=4.5:1 — #1f4d10 (dark brand-hue green) = 6.53:1. */
html body .cky-btn.cky-btn-accept,
html body button.cky-btn-accept[data-cky-tag="accept-button"]{ background:var(--klld-green-text) !important; border-color:var(--klld-green-text) !important; color:#fff !important; }
html body .cky-btn.cky-btn-reject,
html body button.cky-btn-reject[data-cky-tag="reject-button"]{ color:#1f4d10 !important; }

/* Breadcrumb links and card/post titles printed in brand green at body size */
.st-breadcrumb .container ul li a,
.services-item a.c-main,
.services-item .title a.c-main,
.klld-card a.c-main,
html body .content-item a.c-main,
html body .service-list-wrapper .item .title a{ color:var(--klld-green-text) !important; }  /* beats the #099024 !important in Theme Options custom CSS (option_tree*) */  /* tour cards keep their more-specific white-on-photo rule */

/* Tour-single index rail: "You're here" marker is tiny (6.4pt) */
.klld-orb-here{ color:var(--klld-green-text) !important; }

/* pngbay availability CTA: dark ink on teal #0f7c8c was 3.20:1 -> white = 4.90:1 */
body.klld-png-layout .png-av-cta,
body.klld-png-layout .png-av-cta .arr{ color:#fff !important; }

/* Reviews block (tour single) */
.klld-rv-chip span{ opacity:1 !important; }
.klld-rv-chip.is-on{ background:var(--klld-green-text) !important; border-color:var(--klld-green-text) !important; color:#fff !important; }
.klld-rv-chip.is-on span{ color:#fff !important; }
html body h3.klld-rv-write-h,
.klld-rv-write .klld-rv-write-h,
.klld-rv-write #reply-title,
.klld-rv-write .comment-reply-title{ color:var(--klld-green-text) !important; }
.klld-rv-write #submit,
.klld-rv-write .form-submit input[type="submit"],
.klld-rv-write .form-submit .submit{ background:var(--klld-green-text) !important; color:#fff !important; }
body .klld-rv-list a.st-read-more-review,
body a.st-read-more-review.st-read-more-review{ color:#0b6f7c !important; }

/* Overrides of child style.css rules that print brand green on small text (kept here, not in
   style.css, so the text-green decision lives in this one file). Specificity beats the originals. */
html body .service-list-wrapper .item .title a{ color:var(--klld-green-text) !important; }
@media screen and (max-width:720px){
  html body.st-mod-style .st-style-elementor h3{ color:var(--klld-green-text) !important; }  /* style.css:162 = var(--klld-green) at 18px regular */
}

/* ======================= PART 2 (2026-10-15): other templates ======================= */
/* Gold of the villa templates: reuse the AA values the villa drawer already uses (KLLD-VILLA-BOOKDRAWER
   contrast bump 2026-06-11): text gold #8c6a1e, large/icon gold #a87f2e. */
:root{ --klld-gold-text:#8c6a1e; --klld-gold-large:#a87f2e; }

/* Default content-link colour: SAME selector/specificity as the source rule, loaded later, so every
   more specific component rule (white footer links, nav, cards) still wins exactly as before. */
body.st-mod-style .st-style-elementor a{ color:var(--klld-green-text); }

/* Blog: inline-styled guide box, related-tours box, prev/next, tag cloud, comment submit */
.klld-guide-cta p, .klld-guide-cta a{ color:var(--klld-green-text) !important; }
.klld-blog-rel-eyebrow, .klld-blog-rel-single-link{ color:var(--klld-green-text) !important; }
.nav-links .meta-nav, .post-navigation .meta-nav{ color:var(--klld-green-text) !important; }
.nav-links .post-title, .post-navigation .post-title{ color:var(--klld-green-text) !important; }
a.tag-cloud-link{ color:var(--klld-green-text) !important; }
#commentform #submit, .comment-form #submit, form #submit.submit{ background:var(--klld-green-text) !important; color:#fff !important; }

/* Contextual link list (home, my-account) */
.klld-ctxlinks-list a{ color:var(--klld-green-text) !important; }

/* Cart + checkout */
.woocommerce-cart-form .btn-primary, input[name="apply_coupon"], input[name="update_cart"]{ background:var(--klld-green-text) !important; border-color:var(--klld-green-text) !important; color:#fff !important; }
a.checkout-button{ background:var(--klld-green-text) !important; border-color:var(--klld-green-text) !important; color:#fff !important; }  /* was #ffcc00 on #099024 = 2.76:1 */
.cart_totals th, .cart-subtotal th, .order-total th{ color:var(--klld-green-text) !important; }
.woocommerce-form-login-toggle a.showlogin, .woocommerce-form-coupon-toggle a.showcoupon{ color:var(--klld-green-text) !important; text-decoration:underline !important; }
.woocommerce-terms-and-conditions-link{ text-decoration:underline !important; }
#wc-stripe-express-checkout-button-separator{ color:var(--klld-green-text) !important; }
#place_order{ background:var(--klld-green-text) !important; border-color:var(--klld-green-text) !important; color:#fff !important; }  /* was #14201a on #099024 = 4.01:1 */

/* Booking-form floating label (villa pickup field) */
.focused > label{ color:var(--klld-green-text) !important; }

/* Villa single (st_rental 22365) + villa landing (page 60400) */
#klld-vt .vt-where .vt-pt .vt-pd, #klld-vt .vt-stay .vt-sd .vt-sv em{ color:var(--klld-gold-text) !important; }
#klld-vt .vt-acard .vt-ic{ color:var(--klld-gold-large) !important; }
#klld-vt .vt-book .vt-cta, #klld-vt .vt-bkp-cardlink .cl-go, .klld-villa .hero .hero-cta a{ background:var(--klld-gold-text) !important; color:#fff !important; }

/* PART 2b: out-specify the global !important rules that won on the rendered cart/checkout/blog
   (each selector below is the winning source rule plus `html body`, measured with CDP getMatchedStyles). */
html body input.btn.btn-primary[name="apply_coupon"],
html body input.btn.btn-primary[name="update_cart"]{ background:var(--klld-green-text) !important; border-color:var(--klld-green-text) !important; color:#fff !important; }   /* beats .btn.btn-primary #099024 !important */
html body .woocommerce .wc-proceed-to-checkout a.checkout-button,
html body .woocommerce-page .wc-proceed-to-checkout a.checkout-button{ background:var(--klld-green-text) !important; border-color:var(--klld-green-text) !important; color:#fff !important; }
html body .woocommerce .cart-collaterals .shop_table th,
html body .woocommerce-page .cart-collaterals .shop_table th{ color:var(--klld-green-text) !important; }
html body.woocommerce-checkout #place_order{ background:var(--klld-green-text) !important; border-color:var(--klld-green-text) !important; color:#fff !important; }
html body.single-post .blog-style3 .article-style3 #comment-wrapper #respond .form-submit .submit{ background:var(--klld-green-text) !important; color:#fff !important; }
/* equal-specificity, later-loaded overrides of non-!important source rules that resolve to #099024 */
.single-post .blog-style3 .article-style3 .post-content a{ color:var(--klld-green-text); }
.blog-style3 .st-blog .sidebar-widget.st_categories_new ul li span{ color:var(--klld-green-text); }
