﻿/* ============================================================
   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;
    }
    a.anchorbuttonblue {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 20px !important;
        min-height: 20px !important;
        color: #ffffff !important;
    }


/* ============================================================
   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;
    box-sizing: border-box;
}

/* 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;
}

/* Navigation Structure - FIXED FOR HORIZONTAL LAYOUT */
.nav-primary__item {
    display: inline-flex;
    position: relative;
    align-items: center;
    flex-direction: row;
    margin: 0;
    padding: 0;
}

.nav-primary__item.nav-primary__link--has-children {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: 2px;
    padding-right: 1px !important;
}

@media (min-width: 1024px) {
    .nav-primary__link--has-children > a.nav-primary__link {
        padding-right: 25px !important;
    }
}


.nav-primary__link {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 8px 12px;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
    line-height: 1;
}

.nav-primary__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    min-height: auto;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    flex: 0 0 auto;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transform: translateY(-1px);
}

.nav-primary__sublist {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 220px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-primary__sublist .nav-primary__item {
    display: block;
    width: 100%;
    flex-direction: column;
}

.nav-primary__sublist .nav-primary__link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.nav-primary__sublist .nav-primary__link:last-child {
    border-bottom: none;
}

.nav-primary__item:hover > .nav-primary__sublist,
.nav-primary__item:focus-within > .nav-primary__sublist {
    display: block;
}
/* Navigation END */


/* ============================================================
   FOOTER — FINAL LAYOUT (matches your screenshot)
   ============================================================ */

/* Top blue bar */
footer[role="contentinfo"] .footer__dept {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2774ae;
    color: #fff;
    padding: 32px 24px;
}

/* Bottom gray bar */
footer[role="contentinfo"] .global-foot__wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: nowrap;
}

/* Left group: copyright + links */
footer[role="contentinfo"] .global-foot__legal {
    display: flex;
    align-items: center;
    gap: 50px;
    flex: 0 0 auto;
    min-width: 0;
    flex-wrap: nowrap;
}

/* Copyright text */
footer[role="contentinfo"] .global-foot__legal--copyright {
    white-space: nowrap;
    margin: 0;
    flex: 0 0 auto;
}

    /* Fix link inside copyright */
    footer[role="contentinfo"] .global-foot__legal--copyright .copy__link-a {
        display: inline !important;
        white-space: nowrap !important;
        padding: 0 !important;
        margin: 0 !important;
    }

/* Legal links row */
footer[role="contentinfo"] .global-foot__legal--list {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

footer[role="contentinfo"] .footer__dept a {
    color: #ffffff !important;
}

    footer[role="contentinfo"] .footer__dept a:hover {
        background: transparent !important;
        color: #ffe500 !important;
    }

/* Legal links */
footer[role="contentinfo"] .global-foot__legal--link {
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

/* RIGHT SIDE: SOCIAL ICONS */
footer[role="contentinfo"] .social-links-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin-left: auto; /* 🔥 pushes icons to far right */
    padding: 0;
    /* ============================================================
   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;
        }
    }
}

