
/* GLOSSARY TOOLTIP LINKS — enhanced-tooltipglossary forces
   `span.glossaryLink, a.glossaryLink { color:#000000 !important }` on EVERY
   auto-linked glossary term (118 terms, so these appear all over the site).
   Two problems: pure black is brand-forbidden for text, and on a dark section it
   is invisible — measured 1.33:1 on #0d2818 and 1.48:1 on #1e2e28. Caught on
   Tea for Good, where the word "steep" in the hero was unreadable.
   The plugin uses !important, so overriding needs !important plus more specificity.

   Three cases, chosen by MEASURED contrast rather than one blanket colour —
   on the mid-tone greens black actually beats white (6.20 vs 3.38), so
   whitening everything would have made those two WORSE:
     light grounds (default) -> Charcoal #545454   (6.48 on cream, 7.57 on white)
     dark grounds            -> #ffffff            (6.93 - 15.74)
     mid-tone green / sage   -> forest #0d2818     (4.65 / 5.06)
   The dotted underline is kept in every case: it is the glossary affordance. */
span.glossaryLink,
a.glossaryLink {
  color: #545454 !important;
  border-bottom-color: #545454 !important;
}
/* dark grounds: #1e2e28 / #0d2818 / #3d6152 / #2d4a3e / #015500 */
.mt-hero a.glossaryLink,        .mt-hero span.glossaryLink,
.mt-testimonial a.glossaryLink, .mt-testimonial span.glossaryLink,
.mt-split-quote a.glossaryLink, .mt-split-quote span.glossaryLink,
.mt-cta a.glossaryLink,         .mt-cta span.glossaryLink,
.sc-hero a.glossaryLink,        .sc-hero span.glossaryLink,
.sc-cta a.glossaryLink,         .sc-cta span.glossaryLink,
.mt-brand a.glossaryLink,       .mt-brand span.glossaryLink,
.mt-rrr a.glossaryLink,         .mt-rrr span.glossaryLink,
.mt-tfg a.glossaryLink,         .mt-tfg span.glossaryLink,
.mt-values a.glossaryLink,      .mt-values span.glossaryLink,
.mt-market-day a.glossaryLink,  .mt-market-day span.glossaryLink,
.mt-bar a.glossaryLink,         .mt-bar span.glossaryLink,
.mt-bar-sm a.glossaryLink,      .mt-bar-sm span.glossaryLink,
.rrr-dark a.glossaryLink,       .rrr-dark span.glossaryLink,
.rrr-forest a.glossaryLink,     .rrr-forest span.glossaryLink,
body.single-post .entry-content pre a.glossaryLink,
body.single-post .entry-content table th a.glossaryLink {
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.6) !important;
}
/* mid-tone green / sage grounds: dark type wins here, but never pure black */
.mt-creators a.glossaryLink, .mt-creators span.glossaryLink,
.mt-quiz a.glossaryLink,     .mt-quiz span.glossaryLink {
  color: #0d2818 !important;
  border-bottom-color: rgba(13, 40, 24, 0.6) !important;
}

/* GREEN IS A FILL, NEVER TYPE (brand rule, John 2026-09-06).
   Allowed pairings: black-on-green, white-on-green, green-on-black, green-on-white.
   No text is ever green.

   The odoo-product-sync plugin renders `.ops-mood-label` and `.ops-product-price`
   in #015500 — a dark green — as TYPE (18 and 12 occurrences on the homepage
   alone). Its CSS is printed inline from odoo-product-sync.php, so overriding it
   here is both effective and update-safe: editing the plugin file would be lost
   on its next update. */
.ops-mood-label,
.ops-product-price,
.ops-mood-label a,
.ops-product-price a {
  color: #0d2818 !important;
}

/* AMAYA OUTLINE BUTTONS — added 2026-09-06 with the gintea -> Amaya 3.02 port.
   `.button-more.button-outline` is Amaya's "Continue reading" / "Read more".
   Amaya sets the resting text with `.button-outline:not(:hover){color:#0d2818}`
   and the hover BACKGROUND with `.button-outline:hover{background-color:#0d2818}`
   — but amaya_buttons_outline_colors exposes only `text` and `border` keys, so
   the theme has NO hover-text colour anywhere. On hover the resting rule stops
   matching (it is :not(:hover)) and the text falls back to the INHERITED colour,
   which inside .entry-content is the green link colour #579a62. Result: light
   green text on a green/forest button. The block below is the missing half.
   Note these elements carry neither `.button` nor `.wp-block-button__link`, so
   the white-text rule further down does not reach them. */
.button-outline:hover,
a.button.button-outline:hover,
.button-more:hover,
.button-more.button-outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.button-outline:hover span,
.button-more:hover span,
.button-more.button-outline:hover span,
.button-outline:hover i,
.button-more.button-outline:hover i {
  color: #ffffff !important;
}

/* Square corners — brand rule, and what the theme already intends. */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.button-more,
.button-outline,
.elementor-button,
.wp-block-button__link,
a.more-link {
  border-radius: 0 !important;
}

/* Readable text on the dark button background. */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.elementor-button,
.wp-block-button__link {
  color: #ffffff !important;
}
button span,
.button span,
.elementor-button span,
.elementor-button .elementor-button-text,
.wp-block-button__link span {
  color: inherit !important;
}

/* Button icons inherited the alpha'd accent (#7E98916B) and went murky too. */
button i, button svg,
input[type="submit"] i, input[type="submit"] svg,
.button i, .button svg,
.elementor-button i, .elementor-button svg,
.elementor-button .elementor-button-icon i,
.elementor-button .elementor-button-icon svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}
