html { background: var(--canvas); accent-color: var(--accent); }
::selection { background: var(--accent); color: var(--on-accent); }
.scheme-toggle:not([hidden]) {
    flex: none; display: inline-grid; width: 44px; height: 44px; padding: 0; place-items: center;
    background: transparent; color: var(--ink); border: 1px solid var(--field-edge); border-radius: 50%;
}
.scheme-toggle svg { width: 21px; height: 21px; }
html[data-scheme] .scheme-toggle[hidden] { display: inline-block; visibility: hidden; flex: none; width: 44px; height: 44px; }
.scheme-toggle .scheme-moon, .scheme-toggle[aria-pressed=true] .scheme-sun { display: none; }
.scheme-toggle[aria-pressed=true] .scheme-moon { display: inline; }
.scheme-toggle:not([hidden]):hover { background: var(--surface); color: var(--accent); border-color: currentColor; }
.brand > img, .footer-brand > img { filter: var(--logo-filter); }
.invitation-intro img { filter: var(--print-filter); }
.head-tools .social-icon:hover, .site-footer .social-icon:hover, .primary-menu a:hover { color: var(--accent); }
.head-tools > a:hover, .footer-sitemap a:hover, .footer-brand:hover { color: var(--accent); }
.menu-ready .head-main { column-gap: clamp(8px,1.4vw,22px); }
@media (min-width:861px) { .head-main #main-nav { margin-inline-start: auto; } }
@media (max-width:860px) { .head-main > .scheme-toggle { margin-inline-start: 4px; } }

:where(main, .site-footer, dialog) a:not(:where(.btn,.section-link,.tile,.m,.video-choice,.play-poster,.social-icon,.footer-brand,.back-top)) { color: var(--accent); }
:where(.entry-content,.prose,.track,.repertoire-player, .detail-item) a:not(:where(.btn,.tile,.m,.play-poster,.social-icon,.section-link)) { text-decoration-line: underline; }
:where(.entry-content,.prose,.repertoire-player,dialog) a:not(:where(.btn,.section-link,.social-icon,.play-poster)):hover { color: var(--ink); text-decoration-color: var(--accent); }
.home #video .original-video, .home .news a, .filters a, .pager a, .invitation-content a[href$=".pdf" i] { color: var(--accent); }
.home .listen-cards a { color: #fff; }
.tile:hover :is(h2,h3), .m:hover h3, .video-choice:hover span { color: var(--accent); }
.filters a:hover, .pager a:hover, .rail-controls button:hover, .viewer-bar button:hover { background: var(--surface); border-color: var(--accent); color: var(--ink); }
.filters a:hover, .pager a:hover { text-decoration: underline 2px var(--accent); }
.pager .current, .filters [aria-current] { color: var(--on-accent); border-color: var(--accent); background: var(--accent); }
.home .invitation .wpcf7-form input[type=submit]:hover, .invitation .wpcf7-form input[type=submit]:hover { background: var(--accent-hover); color: var(--on-accent); }
.wp-block-button .wp-block-button__link { background: var(--accent); color: var(--on-accent); }
.wp-block-button.is-style-outline .wp-block-button__link { background: var(--canvas); color: var(--accent); border-color: currentColor; }
.wp-block-table :is(td,th), .entry-content hr, .prose hr { border-color: var(--line); }
:where(.entry-content,.prose) blockquote { border-inline-start-color: var(--accent); }
.wp-caption-text, figcaption, .comment-metadata { color: var(--muted); }
input::placeholder, textarea::placeholder { opacity: 1; color: var(--muted); }
input[type=file]::file-selector-button { background: var(--surface); color: var(--ink); border: 1px solid var(--field-edge); }
:where(audio,select,option,input,textarea) { color-scheme: inherit; }
.wpcf7 .wpcf7-not-valid-tip { color: var(--danger); }
.wpcf7 form :is(input,select,textarea)[aria-invalid=true], .wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output { border-color: var(--danger); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--success); }
.wpcf7 .wpcf7-response-output { color: var(--ink); background: var(--raised); }

/* On tinted panels the brand underline identifies a link and the ink stays legible. */
.invitation .booking-details, .invitation a[href$=".pdf" i], dialog a:not(.btn),
.booking-banner a:not(.btn), .site-head .head-tools > a:hover, .primary-menu a:hover,
.footer-sitemap a:hover, .footer-brand:hover {
    color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent);
    text-decoration-thickness: 2px; text-underline-offset: .22em;
}
.home #concerts :is(p,li) a:not(.section-link) { color: var(--ink); text-decoration: underline 2px var(--accent); text-underline-offset: .22em; }
.btn:hover, .section-link:hover, input[type=submit]:hover, .search-submit:hover,
.scheme-toggle:not([hidden]):hover { text-decoration: underline; text-underline-offset: .2em; }
.scheme-toggle:not([hidden]):hover, .rail-controls button:hover, .viewer-bar button:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.home .concert-row .section-link:hover { color: var(--on-accent); background: var(--accent); }
.invitation-content a.section-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }

@media (forced-colors: active) {
    :focus-visible { outline: 3px solid Highlight; }
    .scheme-toggle:not([hidden]) { color: ButtonText; border-color: ButtonText; }
    .brand, .footer-brand img, .invitation-intro img { background: #fff; forced-color-adjust: none; }
    .brand > img, .footer-brand img { filter: invert(1); }
    .invitation-intro img { filter: none; }
}
