/* ETHA text contrast · WCAG 2.2 AA (1.4.3). */
:root:root {
    --etha-ink: #252525;
    --etha-muted-ink: #525252;
    --etha-link: #805600;
    --etha-link-hover: #593b00;
    --fs-experimental-link-color: var(--etha-link);
    --fs-experimental-link-color-hover: var(--etha-link-hover);
}

.dark,
#footer {
    --fs-experimental-link-color: #ffcf56;
    --fs-experimental-link-color-hover: #ffe4a2;
}

/* Yellow fills stay recognisable and use a dark foreground. */
a.button:is(.primary, .secondary, .alt):not(.is-outline, .is-link, .is-underline),
button.button:is(.primary, .secondary, .alt):not(.is-outline, .is-link, .is-underline),
input[type="submit"]:not(.is-outline),
.badge.post-date:not(.badge-outline) .badge-inner,
.nav-pagination > li .current,
.nav-pagination > li > a:hover,
.wpc-filters-main-wrap .wpc-filters-submit-button,
.wnas-filter .wnas-filter__apply {
    color: var(--etha-ink) !important;
}

.wpc-filters-main-wrap li.wpc-term-item .wpc-filter-link,
.wpc-filters-main-wrap .wpc-term-count,
.wpc-filters-main-wrap .wpc-term-count span {
    color: var(--etha-muted-ink);
    opacity: 1;
}

.wpc-filters-main-wrap li.wpc-term-item:has(:checked) .wpc-filter-link {
    color: var(--etha-ink);
}

#main :is(p, li) > a:not([class], [role="button"]),
#main :is(p, li) > strong > a:not([class], [role="button"]) {
    text-decoration: underline;
    text-underline-offset: .13em;
}

:is(input, textarea)::placeholder {
    color: var(--etha-muted-ink);
    opacity: 1;
}

:is(.woocommerce-ordering, .widget_archive) select {
    color: var(--etha-ink);
    background-color: #fff;
}

/* Text over a photograph needs a predictable backdrop. */
.banner .text-box-content.dark > .text-inner:has(:is(h1, h2, h3, h4, p)) {
    background-color: #252525;
    color: #fff;
}

.wpc-filters-main-wrap li.wpc-term-item:has(.wpc-term-count-value) :is(.wpc-term-item-content-wrapper, label) {
    opacity: 1;
}

.banner .text-box-content.dark > .text-inner :is(.text, p, h1, h2, h3, h4, h5, h6) {
    color: #fff !important;
}

body .wpc-filters-main-wrap li.wpc-term-count-0:not(.wpc-has-not-empty-children) label,
body .wpc-filters-main-wrap li.wpc-term-count-0:not(.wpc-has-not-empty-children) label a {
    opacity: 1;
}

.page-id-1119 #main .text > p.lead,
.etha-customers li {
    color: #212121 !important;
}

.page-id-9510 #main .text:not(.dark *) > h2 {
    color: var(--etha-link) !important;
}

.section.dark:has(> .section-bg) > .section-content > .row > .col > .col-inner:has(> :is(h1, h2, h3, h4, p, .text)) {
    background-color: #252525;
    color: #f1f1f1;
}

.section.section-bg-shadow:not(.dark) > .section-content .col-inner > .text {
    background-color: #fff;
    color: #252525;
}

body .wpc-filters-main-wrap li.wpc-term-count-0:not(.wpc-has-not-empty-children) {
    opacity: 1;
}

.wpc-filters-main-wrap li.wpc-term-count-0 :is(.wpc-filter-link, .wpc-term-count span) {
    color: var(--etha-muted-ink);
}

.section.dark:has(> .section-bg) > .section-content > .row > .col > .col-inner > :is(h1, h2, h3, h4, p),
.section.dark:has(> .section-bg) > .section-content > .row > .col > .col-inner > .text > :is(h1, h2, h3, h4, p) {
    color: #fff !important;
}

.error404 #main strong > span {
    color: var(--etha-link);
}

.button:is(.primary, .secondary).is-outline:not(.dark *) {
    color: var(--etha-link);
}

.button:is(.primary, .secondary).is-outline:is(:hover, :focus-visible) {
    color: var(--etha-ink);
}

.entry-category a {
    color: var(--fs-experimental-link-color);
    opacity: 1;
}

.entry-category a:is(:hover, :focus-visible) {
    color: var(--fs-experimental-link-color-hover);
}

.entry-content a[class="button"] {
    color: var(--etha-ink);
}

.single-post .entry-category {
    opacity: 1;
}
