/* Public Foxiz interface only. The owning plugin gates this stylesheet. */
body.wp-theme-foxiz :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #005fcc !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 6px #fff !important;
}

.wsvg-skip-link {
    position: fixed;
    z-index: 100001;
    inset-block-start: calc(var(--wsvg-toolbar-offset, 0px) + 12px);
    inset-inline-start: 16px;
    padding: 12px 18px;
    border: 2px solid #fff;
    border-radius: 4px;
    background: #171717;
    color: #fff !important;
    font: 700 1rem/1.3 sans-serif;
    text-decoration: underline !important;
    transform: translateY(-250%);
}

.wsvg-skip-link:focus {
    transform: none;
}

.wsvg-skip-link[hidden],
.wsvg-menu-proxy {
    display: none !important;
}

button.wsvg-theme-toggle,
button.wsvg-mobile-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    text-transform: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

button.wsvg-theme-toggle:hover,
button.wsvg-theme-toggle:active,
button.wsvg-mobile-toggle:hover,
button.wsvg-mobile-toggle:active {
    background: transparent;
    color: inherit;
}

button.wsvg-theme-toggle {
    padding-inline: 4px;
}

button.wsvg-theme-toggle .dark-mode-slide {
    flex: 0 0 auto;
}

body.wsvg-accessibility footer :where(.copyright-menu a, .social-icon a, .social-icons a, a[aria-label="Facebook"], a[aria-label="Instagram"]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

body.wsvg-accessibility footer .copyright-menu a {
    padding: 8px 4px;
}

body.wsvg-accessibility footer .tnp-privacy-field a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.08em;
}

body.wsvg-accessibility :where(.entry-content, .elementor-widget-text-editor, .wsvg-guide) :where(p, li, dd, figcaption) a:not(.elementor-button):not(.wsvg-button):not(.wsvg-link-button) {
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.08em;
}

body.wsvg-accessibility :where(main, #wsvg-main-content, .wsvg-guide [id]) {
    scroll-margin-block-start: var(--wsvg-scroll-offset, 32px);
}

body.wsvg-accessibility .mobile-collapse[aria-hidden="true"] {
    visibility: hidden;
}

body.wsvg-accessibility .mobile-collapse[aria-hidden="false"] {
    visibility: visible;
}

@media (max-width: 767px) {
    /* Native quick-link labels can be wider than a narrow phone. The theme
       hides horizontal overflow, so wrapping must be explicit to avoid cuts. */
    body.wsvg-accessibility .mobile-qview {
        height: auto;
        min-height: 44px;
    }

    body.wsvg-accessibility #menu-salem-visitor-quick-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    body.wsvg-accessibility #menu-salem-visitor-quick-links a {
        min-height: 44px;
        padding-inline: 10px;
    }

    /* Foxiz adds both a widget bottom margin and a row gap when its three
       footer columns stack. Keep one clear gap between groups, not both. */
    body.wsvg-accessibility footer .footer-inner {
        padding-block-start: 30px;
    }

    body.wsvg-accessibility footer .footer-columns > .block-inner {
        row-gap: 24px;
    }

    body.wsvg-accessibility footer .footer-col > .widget:last-child {
        margin-block-end: 0;
    }

    body.wsvg-accessibility footer .footer-col .widget-heading {
        margin-block-end: 12px;
    }

    body.wsvg-accessibility footer .footer-col :where(h4, .heading-title) {
        font-size: 1rem;
        line-height: 1.35;
    }

    body.wsvg-accessibility footer .footer-col .textwidget p:last-child {
        margin-block-end: 0;
    }

    body.wsvg-accessibility footer .footer-col .textwidget br {
        margin: 0;
    }

    body.wsvg-accessibility footer .footer-col .tnp-widget {
        margin-block: 10px 0;
    }

    body.wsvg-accessibility footer .tnp-field-email input,
    body.wsvg-accessibility footer .tnp-submit {
        min-height: 44px;
    }

    body.wsvg-accessibility footer .tnp-field-email input {
        font-size: 16px;
    }

    body.wsvg-accessibility footer .tnp-privacy-field label {
        font-size: 13px;
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.wsvg-accessibility,
    body.wsvg-accessibility {
        scroll-behavior: auto !important;
    }

    body.wsvg-accessibility :where(.mobile-collapse, .burger-icon, .burger-icon span, .dark-mode-slide, .dark-mode-slide-btn, .wsvg-guide *, .wsvg-skip-link) {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
