/* Shared keyboard access. Visual changes are limited to focused controls. */
html { scroll-padding-block: 1rem; }
html { -webkit-text-size-adjust: 100%; }
body :is(input, select, textarea) { border-color: #80758e; }
body input[class], body select[class], body textarea[class] { border-color: #80758e; }
body :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]) {
    max-width: 100%; min-width: 0;
}
body label:has(> input:focus-visible) {
    outline: 3px solid #24154e; outline-offset: 3px;
}
body :is(.contact2-topic, .contact2-topic-card, .contact2-topic-card > span, .entry2-field, .event-create5-field) {
    min-width: 0; overflow-wrap: anywhere;
}
body .contact2-topic-card { max-width: 100%; box-sizing: border-box; }
body .contact2-topic-card > span:last-child { min-width: 0; }
body .contact2-topic-card :is(strong, small) { overflow-wrap: anywhere; }
.a11y-error-page, .a11y-content-page {
    width: min(100% - 32px, 960px); margin: 32px auto; overflow-wrap: anywhere;
}
.a11y-event-list { display: grid; gap: 16px; padding: 0; list-style: none; }
.a11y-event-list > li { min-width: 0; padding: 18px; background: #fff; border: 1px solid #80758e; border-radius: 12px; }
.a11y-event-list h2 { margin: 0 0 10px; }
.a11y-event-list p { margin: 8px 0; }
.a11y-event-list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; color: #49308f; }
body dialog.event4-modal {
    width: 100%; height: 100%; max-width: none; max-height: none;
    margin: 0; border: 0; box-sizing: border-box;
}
body dialog.event4-modal::backdrop { background: rgba(28,23,38,.62); }
body .event4-modal-category { color: #49308f; background: #f1edff; }
body .fc .fc-button { min-height: 44px; }
body .event4-modal-close { min-width: 44px; min-height: 44px; }
body .fc .fc-h-event, body .fc .fc-v-event { background-color: #6243d7; border-color: #49308f; }
body .fc :is(.fc-h-event, .fc-v-event) .fc-event-main { color: #fff; }
body .fc .fc-daygrid-dot-event { color: #302838; }
body .fc .fc-toolbar { flex-wrap: wrap; gap: 12px; }
body .fc .fc-toolbar-chunk { max-width: 100%; }
body .fc .fc-button-group { flex-wrap: wrap; }
body .leaflet-control-attribution a { text-decoration: underline; }
body .map2-results-section { overflow: visible; }
body .map2-results-section > .a11y-shortcuts { clear: both; padding-block: 8px; }
/* Event detail links participate in card layout instead of overflowing a 100% button. */
body .map2-result-event { display: flex; flex-direction: column; position: relative; }
body .map2-result-event > .map2-result-button { height: auto; flex: 1 1 auto; }
body .map2-result-event > .map2-event-detail { flex: 0 0 auto; align-self: flex-start; }
body .map2-result-event .map2-result-title {
    white-space: normal; overflow: visible; overflow-wrap: anywhere; text-overflow: clip;
}
body .map2-result-card-footer { gap: 8px; }
.a11y-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #24154e !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 6px #fff !important;
    transition: none !important;
}
body :is(main, section, h2, #discoverResults)[tabindex="-1"]:focus {
    outline: 3px solid #24154e;
    outline-offset: 4px;
}
body .skip-link {
    position: fixed; inset: 8px auto auto 8px; z-index: 100000;
    width: auto; height: auto; max-width: calc(100vw - 16px);
    margin: 0; padding: 12px 16px; overflow: visible;
    clip: auto; clip-path: none; white-space: normal;
    color: #fff; background: #38206d; border-radius: 6px;
    transform: translateY(calc(-100% - 24px)); transition: none !important;
}
body .skip-link:focus { transform: none; }
.a11y-shortcuts {
    display: flex; flex-wrap: wrap; gap: 8px 16px;
    margin: 12px 0 18px; font-size: 1rem;
}
.a11y-shortcuts a, .map2-event-detail {
    display: inline-flex; align-items: center; min-height: 44px;
    color: #49308f; text-decoration: underline; text-underline-offset: .2em;
}
.a11y-shortcuts a { max-width: 100%; overflow-wrap: anywhere; }
.map2-keyboard-help { margin: 0 0 12px; color: #51485f; font-size: .875rem; }
.map2-event-detail { margin: 8px 12px; padding: 8px; }
/* The visible label must show focus for visually hidden native inputs. */
body .map2-checkbox input:focus-visible + span,
body .map2-radius-option input:focus-visible + span,
body .map2-layer-toggle:has(input:focus-visible),
body .community-search-types label:has(input:focus-visible) {
    outline: 3px solid #24154e; outline-offset: 3px;
    box-shadow: 0 0 0 6px #fff;
    transition: none !important;
}
body .leaflet-control-zoom a { min-width: 44px; min-height: 44px; line-height: 44px; }
body .leaflet-popup-close-button { min-width: 44px; min-height: 44px; }
body .leaflet-popup-content { margin-right: 36px; }
/* Leaflet temporarily hides a popup while measuring it. Never animate visibility. */
body .leaflet-popup { transition-property: opacity !important; }
body .leaflet-popup[tabindex="-1"]:focus { outline: 3px solid #24154e; }
body .leaflet-marker-icon:focus-visible { outline-offset: 4px !important; }
@media (prefers-reduced-motion: reduce) {
    html, body, body * { scroll-behavior: auto !important; }
    body *, body *::before, body *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
@media (forced-colors: active) {
    body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
        outline-color: Highlight !important;
    }
}

body .contact2-rating label { color: #746b7c; }
body .contact2-rating input:checked ~ label { color: #815600; text-decoration: underline; }
body .contact2-rating input:focus-visible + label { outline: 3px solid #24154e; outline-offset: 3px; }
