/* ============================================================
   WCAG 2.5.8 Target Size (Minimum) Compliance
   ============================================================ */

/* Buttons */
.btn,
.btn-primary,
button[type="submit"],
button[type="reset"],
button[type="button"] {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 12px 24px !important;
    margin-right: 8px !important;
    margin-bottom: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Generic links */
a {
    min-height: auto;
}

    a[href] {
        word-break: normal;
    }

/* ============================================================
   Social Icons
   ============================================================ */

.social-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px !important;
    min-width: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
}



/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    footer[role="contentinfo"] .global-foot__wrapper {
        flex-wrap: wrap;
        gap: 16px;
    }

    footer[role="contentinfo"] .social-links-container {
        margin-left: 0;
    }
}

/* Print */
@media print {
    .btn,
    button,
    a,
    input,
    select,
    textarea {
        min-height: auto !important;
        min-width: auto !important;
    }
}


/* ============================================================
   Skip link / Screen-reader-only helpers
   - keep visually hidden for sighted users but available to AT
   - become visible on keyboard focus and meet 44x44 target size
   ============================================================ */
.visuallyhidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* Hidden by default but becomes visible when focused/active */
.visuallyhidden-focusable {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

    .visuallyhidden-focusable:focus,
    .visuallyhidden-focusable:active {
        position: fixed !important;
        left: 1rem;
        top: 1rem;
        height: auto;
        width: auto;
        clip: auto;
        margin: 0;
        padding: 8px 12px;
        background: #ffffff; /* theme may override */
        color: #000000;
        z-index: 10000;
        display: inline-block;
        min-width: 44px !important;
        min-height: 44px !important;
        line-height: normal !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        border-radius: 2px;
    }

/* Ensure the skip link target meets minimum target size even if custom classes used */
.u-skip-link {
    text-decoration: none;
}

    .u-skip-link:focus,
    .u-skip-link:active {
        min-width: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 12px !important;
    }


/* Navigation Start */
/* Ensure interactive targets meet WCAG 2.1 touch target sizing (44x44 CSS px) and have adequate spacing */

.nav-primary__search-submit,
.nav-primary__search-field,
.social-icon,
.right-link,
.global-foot__legal--link {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    /*margin: 4px; -- PK Header Menu - causing problem when rendering home drop down list menu option*/
    box-sizing: border-box;
}



/*.nav-primary__toggle {
    min-height: 44px !important;
    min-width: 44px !important;
}*/

/* Ensure toggle button in nav is large enough for touch */
/*.nav-primary__toggle {
    min-width: 44px !important;
    min-height: 44px !important;
}*/

/* Provide extra spacing between primary navigation items */


/* Footer link spacing */
.global-foot__legal--list .global-foot__legal--link {
    padding: 8px 6px;
    display: inline-block;
}

.social-links-container a, .social-links-container a > span[class*='social-icon'] {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*    padding: 6px;*/
}
/* Navigation END */

.nav-primary__item.nav-primary__link--has-children {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-primary__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px; /* good touch target */
    padding: 0 4px;
}

.nav-primary__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; /* or at least 24px */
    height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    flex: 0 0 auto;
}

.nav-primary__item {
    position: relative;
}

.nav-primary__sublist {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 220px;
    background: #fff;
}

.nav-primary__item:hover > .nav-primary__sublist,
.nav-primary__item:focus-within > .nav-primary__sublist {
    display: block;
}
