/* Functional accessibility integration. The original theme owns page styling. */
[hidden] { display: none !important; }
.votsalo-accessibility-open #cc-main,
.votsalo-accessibility-open #cc-main * { visibility: hidden !important; }

html[data-input-modality="keyboard"] :where(a, button, input, select, textarea, [tabindex]):focus-visible,
html[data-input-modality="keyboard"] .patara-nav-toggle:focus-visible,
html[data-input-modality="keyboard"] .select2-container .select2-selection:focus-visible {
    outline: 3px solid #005fcc !important;
    outline-offset: 4px;
    box-shadow: 0 0 0 2px #fff !important;
}
.skip-link {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 2147483647;
    padding: 12px 18px;
    background: #fff;
    color: #222;
    transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* The new landmark must not make the page section a last-child service card. */
#main-content > .services2:last-child { margin-bottom: 0; }

/* Labels retain their accessible names without adding visible rows. */
.contact label,
.booking-inner .booking-field-label {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Native buttons replacing links/divs use the original controls' presentation. */
.patara-nav-toggle { font: inherit; color: inherit; border: 0; align-content: start; }
.language-toggle {
    font: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.patara-menu-sub > button {
    display: inline-block;
    position: relative;
    font: inherit;
    color: #1b1b1b;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: .3s all ease;
}
.patara-menu-sub > button::after { content: ''; display: block; width: 0; }
.patara-menu li:hover > button,
.patara-menu li.open > button { color: #aa8453; }
.patara-menu ul ul .patara-menu-sub > button {
    margin-left: 12px;
    padding: 5px 0 5px 5px;
    line-height: 1.25em;
    text-transform: none;
}
.patara-menu ul ul:not([hidden]) { display: block; }
.sl-nav li ul:not([hidden]) {
    position: absolute;
    top: 29px;
    right: -15px;
    display: block;
    background: #fff;
    width: 120px;
    padding-top: 0;
    z-index: 1;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .2);
}
.music-wrap, .cookies-wrap, .progress-wrap {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-align: start;
    align-content: start;
    padding: 0;
    border: 0;
    appearance: none;
}
.votsalo-control-content { display: block; width: 100%; height: 100%; }

/* Enlarged copyright text must wrap within narrow footer columns. */
:is(.snn-bigger-text-medium, .snn-bigger-text-large, .snn-bigger-text-xlarge) .footer-copyright {
    white-space: normal;
}

/* Keep Google's badge clear of the sound/back-to-top and accessibility buttons. */
.grecaptcha-badge { bottom: 90px !important; }
@media (max-height: 540px) {
    .grecaptcha-badge { bottom: calc(50% + 30px) !important; }
}

html.votsalo-reduced-motion { scroll-behavior: auto !important; }
.votsalo-reduced-motion *, .votsalo-reduced-motion *::before, .votsalo-reduced-motion *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}
.votsalo-reduced-motion .wow { visibility: visible !important; }
.votsalo-reduced-motion .vegas-slide-inner { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
