/* Accessibility: structural styles (always loaded). Colour/contrast fixes live in a11y-colors-rN.css. */

.sr-only,
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip link: first Tab stop, visible on focus */
.skip-link {
    position: absolute;
    top: -200px;
    right: 8px;
    z-index: 2147483647;
    padding: 10px 16px;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: underline;
}

.skip-link:focus {
    top: 8px;
}

main:focus,
#main-content:focus {
    outline: none;
}

/* Focus ring for keyboard users. !important beats accessibility-widget rules such as *:focus{outline:…!important}. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 3px solid #000 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px #fff !important;
}

#main-content:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Links inside running text are underlined, not only coloured (WCAG 1.4.1) */
.text p a:not(.btn),
.text li a:not(.btn),
.single-article p a:not(.btn),
.single-article li a:not(.btn),
.section-content p a:not(.btn) {
    text-decoration: underline;
}

/* ---- Header: mobile menu ---- */
.header .header__bottom .mob__menu .mob__menu__icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 10px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 992px) {
    /* Closed off-canvas menu: out of the Tab order, not only off-screen */
    .header .header__bottom .mob__menu .mob__menu__wrap {
        visibility: hidden;
    }

    .header .header__bottom .mob__menu .mob__menu__wrap.active {
        visibility: visible;
    }

    .header .header__bottom .mob__menu .mob__menu__wrap .sub-menu.active {
        visibility: inherit;
    }

    /* Separate button that opens a sub-menu (the parent link still navigates) */
    .header .header__bottom .mob__menu .mob__menu__wrap .menu-item-has-children {
        position: relative;
    }

    .header .header__bottom .mob__menu .mob__menu__wrap .a11y-submenu-toggle {
        position: absolute;
        top: 6px;
        left: 0;
        z-index: 2;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
}

/* Desktop sub-menu also opens from the keyboard */
@media (min-width: 993px) {
    .header .header__bottom nav ul .menu-item-has-children:focus-within .sub-menu {
        visibility: visible;
        opacity: 1;
        pointer-events: all;
    }

    .header .header__bottom nav ul .menu-item-has-children.a11y-closed .sub-menu {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
}

/* ---- Headings that changed level, styles kept ---- */
.footer h2.footer__title {
    margin: 0;
    color: var(--text-color-3);
    font-family: "Antic Slab", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 21px;
    line-height: 25px;
}

.footer .footer__links .link__list h2.footer__title {
    margin-top: 80px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer .footer__links .link__list h2.footer__title {
        margin-top: 60px;
        margin-bottom: 30px;
    }
}

.banner-top p.h1 {
    margin: 0;
    font-family: "Antic Slab", sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 48px;
    color: #EBE1C2;
}

@media screen and (max-width: 991px) {
    .banner-top p.h1 {
        font-size: 30px;
        line-height: 33px;
    }
}

/* ---- Forms ---- */
.a11y-field-label {
    display: block;
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    color: #313131;
    text-align: right;
}

.a11y-required-note {
    width: 100%;
    margin: 0 0 10px;
    font-size: 14px;
    color: #313131;
}

/* style.css hid the CF7 error texts: the error must be text, not only a red border (WCAG 1.4.1, 3.3.1) */
.wpcf7 .wpcf7-form-control-wrap .wpcf7-not-valid-tip,
.wpcf7 .wpcf7-not-valid-tip {
    display: block !important;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
    color: #a3001b;
}

.a11y-form-error {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
    color: #a3001b;
}

.a11y-form-error[hidden] {
    display: none;
}

/* ---- Cookie banner (plugin markup) ---- */
#cookie-banner,
#cookie-banner #cookie-banner-text {
    font-size: 13px !important;
    line-height: 1.4 !important;
    cursor: default !important;
}

#cookie-banner.a11y-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#cookie-banner a {
    color: inherit;
    text-decoration: underline;
}

#cookie-banner .a11y-cookie-ok {
    display: inline-block;
    min-height: 32px;
    margin-top: 6px;
    padding: 5px 14px;
    border: 0;
    border-radius: 5px;
    background: #fff;
    color: #d0404a;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

#cookie-banner[hidden] {
    display: none !important;
}

/* ---- Pause control for an autoplaying background video (WCAG 2.2.2) ---- */
.hero .hero__inner {
    position: relative;
}

.a11y-pause {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 5;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
