/* ==========================================================================
   Accessibility remediation (WCAG 2.1 AA)
   Added in response to the EnableUser audit. Loaded last in <head> so these
   rules win over the theme defaults without editing the vendor/theme CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   SC 2.4.1 Bypass Blocks — "Skip to main content" link.
   Visually hidden until focused, then pinned to the top-left so keyboard
   users can jump straight to <main id="content">.
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 10px 16px;
    background: #1B3096;
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}
.skip-link:focus {
    left: 0;
    outline: 3px solid #ffbf47;
    outline-offset: 0;
}

/* --------------------------------------------------------------------------
   SC 2.4.7 Focus Visible — make keyboard focus obvious on every interactive
   element. The theme set `outline: 0` on links/buttons, which removed the
   only focus cue for keyboard users.
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid #1B3096 !important;
    outline-offset: 2px !important;
}

/* --------------------------------------------------------------------------
   SC 1.4.3 Contrast (Minimum) — default link colour.
   Theme default #0085BA gives only 4.15:1 on white; #0073A8 gives 5.23:1.
   -------------------------------------------------------------------------- */
a {
    color: #0073A8;
}
a:hover,
a:focus,
a:active {
    color: #14246f;
}

/* --------------------------------------------------------------------------
   SC 1.4.1 Use of Colour + SC 1.4.3 — in-content links must be
   distinguishable from surrounding text by more than colour alone, and must
   meet contrast. Underline links that sit inside running prose only (not
   nav bars, buttons, cards, footers or menus, which are identifiable by
   layout/position).
   -------------------------------------------------------------------------- */
.site-main p a,
.site-main li a:not(.page-link):not(.button-text):not(.button-round),
.single-post-section article a,
.about-page-section .team-inner a,
.entry-content p a,
.footer-note a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   axe "region" — the copyright bar is now nested inside the <footer>
   contentinfo landmark so all page content is contained by a landmark. The
   footer has 20px side padding; negate it here so the bar stays full-bleed
   exactly as before.
   -------------------------------------------------------------------------- */
.footer-section > .copyright-sec {
    margin-left: -20px;
    margin-right: -20px;
}
/* The bar now sits inside .footer-section (color:#fff), but its background is
   light (#f0eff7). Restore dark text so the copyright line meets contrast. */
.footer-section > .copyright-sec,
.footer-section > .copyright-sec .copyright-line {
    color: #1d2144;
}

/* --------------------------------------------------------------------------
   SC 2.5.8 Target Size (Minimum) — the footer legal links sat on one line
   with almost no spacing, giving touch targets under 24x24 CSS px. Give them
   vertical padding and a guaranteed min-height without changing the layout.
   -------------------------------------------------------------------------- */
.foot-condition-link ul li a {
    display: inline-block;
    min-height: 24px;
    padding: 6px 4px;
    line-height: 1.4;
}
.foot-condition-link ul.d-flex {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 4px;
}

/* --------------------------------------------------------------------------
   SC 2.1.1 Keyboard + SC 4.1.2 Name, Role, Value — the floating contact /
   download / WhatsApp FABs are now real <button>s. Strip native button
   chrome so they look exactly as before while staying keyboard-operable.
   -------------------------------------------------------------------------- */
button.ba-we-love-subscribers-fab {
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: inherit;
}

/* --------------------------------------------------------------------------
   SC 2.1.1 Keyboard — the primary-nav dropdowns previously opened on
   `:hover`/`:focus` of the <li>, but keyboard focus lands on the child <a>,
   so the <li> never matched. `:focus-within` opens the submenu while any
   descendant (the parent link or a submenu link) holds focus.
   -------------------------------------------------------------------------- */
.site-header-transparent .main-navigation ul > li.menu-item-has-children:focus-within > ul {
    display: block;
}
.site-header-transparent .main-navigation ul > li.menu-item-has-children:focus-within > a {
    color: #323879;
}

/* --------------------------------------------------------------------------
   SC 2.2.2 Pause, Stop, Hide — honour the user's reduced-motion preference
   by stopping the looping decorative SVG/marquee animations (e.g. the
   animated illustration: .faceMove / .earMove / .neckMove) and any
   CSS-driven auto-scrolling carousels.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .faceMove,
    .earMove,
    .neckMove {
        animation: none !important;
    }
}
