/*
 * Contrast repairs measured with axe-core 4.10 on the public pages,
 * 2026-09-26 (homepage, archive, event page, both languages).
 *
 * The site's light green #6e9306 reads at 3.59:1 on white, short of the
 * 4.5:1 WCAG AA asks of body text; the theme's #94ae50 buttons at 2.49:1;
 * two accent buttons (#e67e22 orange, #27ae60 green) under 3:1. Every
 * replacement below was measured (see the ratio beside it) and stays in
 * the same family, so the green site is still green — only darker where it
 * carries text.
 *
 * Loaded after style.css and every page's own <style>, hence !important:
 * many of these colours are set inline in Blade sections, and this sheet
 * exists so a hundred templates need not be touched one by one.
 */

/* light green as TEXT on white: #6e9306 (3.59) -> #4f6a05 (6.18) */
.event-origin-note a,
#comment_login,
.pagination .page-link,
.input-group-addon,
.section-head-1a .section-head-more,
.tt-pill:not(.is-on) .n { opacity: 1 !important; }  /* the count was dimmed to 2.92 by opacity */
.tt-pill:not(.is-on) .n,
.event-card-1a .event-card-type,
.event-card-1a-footer a,
.event-card-1a .event-card-meta a { color: #4f6a05 !important; }

/* light green as a FILL under white text: #6e9306 (3.59) -> #557305 (5.47) */
.btn-hero-search,
.event-origin-note b,
.input-group-btn .btn[type="submit"] { background: #557305 !important; border-color: #557305 !important; color: #fff !important; }

/* the theme's #94ae50 / #74925a fills (2.49 / 3.49) -> #5f7a1e (4.90) */
.btn-success,
.btn.green,
.btn-sm.green,
ul[data-scheme-group] > .active > a { background: #5f7a1e !important; border-color: #5f7a1e !important; color: #fff !important; }

/* the two accent buttons on the event page */
.contact-btn   { background: #b85c0a !important; border-color: #b85c0a !important; color: #fff !important; } /* 4.59 */
.favourite-btn { background: #1b7a43 !important; border-color: #1b7a43 !important; color: #fff !important; } /* 5.37 */

/* greys and blues used for small text */
.breadcrumb > li > a,
.breadcrumb a          { color: #5f6368 !important; }   /* #8d8e8e (3.28) -> 6.05 */
.profile_info          { color: #0f6a99 !important; }   /* #1883ba (4.20) -> 5.93 */
.hero-chips .hero-chip-n { background: #6b6252 !important; color: #fff !important; } /* #bab1a2 (2.12) -> 6.5 */

/* the remaining light-green fills under white text on the cards */
.event-origin-chip,
.advertise-btn,
.event-row-cta:hover,
.event-card-1a-footer a:hover { background: #557305 !important; }

/* Solid colour behind the bands that carry white text. They already have
   it through var(--brand-green) and a gradient; an explicit colour lets a
   checker (and a forced-colours mode) see it. Visually identical. */
.site-footer-1a, .hero-search, .home-stats-band { background-color: #456e23 !important; }

/* the calendar block on the homepage: weekend headers (#b0836b, 3.33) and
   the «+N» day chips (#6c7460 on #eef1e8, 4.27) */
.cal-weekdays .is-weekend { color: #8a5a3c !important; }   /* 5.4 */
.cal-more                 { color: #4b5340 !important; }   /* 6.6 on #eef1e8 */

/* «and N more» under the training block: #6b7885 on cream (4.05) */
#tt-home-more { color: #4f5a66 !important; }   /* 6.1 */

/* the event form: a select's placeholder option in #c3c3c3 (1.76), and the
   amber notes (#a96f06, 3.9–4.2) */
select.form-control, select.form-control option        { color: #2c3526 !important; }
.form-group .input-group span.input-group-addon,
span.input-group-addon[dir="ltr"]                      { color: #4f6a05 !important; }   /* the page's own !important loses on specificity */
[style*="color:#a96f06"], [style*="color: #a96f06"],
a[style*="#a96f06"]                                    { color: #7a4f00 !important; }   /* 6.8 on white, 5.8 on cream */

/* keyboard: a visible focus ring everywhere the theme removed it */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible { outline: 3px solid #e8b73a !important; outline-offset: 2px; }
