/*
 * Accessibility additions (issue #50).
 * Kept out of style.css so the LESS build can't overwrite them.
 */

/* Burger toggles are now real <button>s; strip UA chrome so the
   existing background-image styling still renders identically. */
button.burger-menu,
button.burger-menu-close {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    padding: 0;
    background-color: transparent;
    cursor: pointer;
}

/* Skip link: visually hidden until focused. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    background: #29308b;
    color: #fff;
    padding: 10px 18px;
    text-decoration: underline;
}
.skip-link:focus {
    left: 10px;
    top: 10px;
    color: #fff;
}

/* Screen-reader-only text (labels for the country selects). */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Close button for the landing popup. */
.landing-popup .popup-close {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    padding: 4px 8px;
    background: transparent;
    font-size: 1.6em;
    line-height: 1;
    cursor: pointer;
    color: #29308b;
}

/* Honest disabled state for form submit buttons. CF7 disables its submit
   until the consent [acceptance] box is ticked, but the theme only styled
   normal/hover states — a disabled button looked fully clickable and
   silently did nothing. */
.wpcf7 button:disabled,
.wpcf7 input[type="submit"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Country-select GO button: the 0.3-opacity disabled state (~1.6:1 on
   white) was effectively invisible. Keep it visibly disabled but legible. */
.country-select button.submit.disabled {
    color: rgba(41, 48, 139, 0.6) !important;
}
.country-select button.submit.disabled > * {
    opacity: 0.6 !important;
}

/* Failsafe: the #loader overlay is only removed by JS (main.min.js).
   If that script errors or is blocked, the site would stay a blank
   white screen forever — so force the overlay out after 4s regardless. */
#loader {
    animation: bs-loader-failsafe 0.4s ease 4s forwards;
}
@keyframes bs-loader-failsafe {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Team-member popup triggers keep their <a> tag (so all existing .member a
   styles apply) but no longer carry the fake href="member-popin-N" that
   crawled as a 404 — the popup id moved to data-popin-target. */
.member a.open-member-popin {
    cursor: pointer;
}

/* Slider pager tabs are focusable now; make focus visible. */
.slider-pager .slider-item:focus-visible,
.landing-popup .popup-close:focus-visible,
.member a.open-member-popin:focus-visible,
button.burger-menu:focus-visible,
button.burger-menu-close:focus-visible {
    outline: 2px solid #29308b;
    outline-offset: 2px;
}
