/**
 * JPD global header.
 *
 * The government top bar follows the MTIC layout.
 * The main JPD navigation uses a white JPD-specific design.
 *
 * @package jpd-theme
 */

body {
    --jpd-top-bar-height: 38px;
    --jpd-main-header-height: 86px;
    --jpd-announcement-bar-height: 0px;
    --jpd-full-header-height: calc(var(--jpd-top-bar-height) + var(--jpd-main-header-height) + var(--jpd-announcement-bar-height));
    padding-top: var(--jpd-full-header-height);
}

.jpd-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body.admin-bar .jpd-header-wrapper {
    top: 32px;
}

/* Top government bar */
.jpd-top-bar {
    position: relative;
    z-index: 2;
    height: var(--jpd-top-bar-height);
    background: var(--jpd-teal, #01b496);
    color: #ffffff;
}

.jpd-top-bar-inner {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) max-content;
    align-items: center;
    gap: 24px;
    width: 100%;
    height: 100%;
    padding: 0 24px;
    box-sizing: border-box;
}

.jpd-top-bar-govbn-logo,
.jpd-top-bar-govbn-logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.jpd-top-bar-govbn-logo img {
    display: block;
    width: auto;
    height: 16px;
}

.jpd-top-bar-menu-wrap {
    min-width: 0;
    height: 100%;
}

.jpd-top-bar-menu,
.jpd-top-bar-menu .sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jpd-top-bar-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 42px;
    height: 100%;
}

.jpd-top-bar-menu > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.jpd-top-bar-menu a {
    color: #ffffff;
    text-decoration: none;
}

.jpd-top-bar-menu > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.jpd-top-bar-menu > li > .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 230px;
    padding: 10px 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.jpd-top-bar-menu > li:hover > .sub-menu,
.jpd-top-bar-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.jpd-top-bar-menu .sub-menu a {
    display: block;
    padding: 9px 18px;
    color: #222222;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.jpd-top-bar-menu .sub-menu a:hover,
.jpd-top-bar-menu .sub-menu a:focus {
    color: var(--jpd-teal, #01b496);
    background: rgba(1, 180, 150, 0.08);
}

.jpd-top-bar-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    height: 100%;
}

.jpd-top-bar-text-sizer {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-size: 0.75rem;
    white-space: nowrap;
}

.jpd-top-bar-btn {
    border: 0;
    border-radius: 2px;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.jpd-top-bar-btn--sm { font-size: 0.5625rem; }
.jpd-top-bar-btn--md { font-size: 0.6875rem; }
.jpd-top-bar-btn--lg { font-size: 0.8125rem; }

.jpd-top-bar-btn--active {
    background: rgba(255, 255, 255, 0.55);
    color: var(--jpd-teal, #01b496);
}

.jpd-top-bar-search {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.jpd-top-bar-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}

.jpd-top-bar-search-icon svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: #777777;
}

.jpd-top-bar-search input[type="search"] {
    width: 210px;
    height: 28px;
    border: 0;
    border-radius: 4px;
    padding: 0 10px 0 32px;
    background: #ffffff;
    color: #222222;
    font-size: 0.8125rem;
    box-sizing: border-box;
}

/* White JPD main navigation */
.jpd-header-main-nav {
    height: var(--jpd-main-header-height);
    background: #ffffff;
}

.jpd-header-main-inner {
    display: flex;
    align-items: center;
    width: min(1440px, 100%);
    height: 100%;
    margin: 0 auto;
    padding: 0 28px;
    box-sizing: border-box;
}

.jpd-header-branding {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 28px;
}

.jpd-header-mobile-actions {
    display: none;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.jpd-header-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #4d4d4d;
    cursor: pointer;
    flex-shrink: 0;
}

.jpd-header-burger:focus-visible {
    outline: 2px solid var(--jpd-secondary, #e8a020);
    outline-offset: 2px;
}

.jpd-header-burger__icon,
.jpd-header-burger__icon::before,
.jpd-header-burger__icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.jpd-header-burger__icon {
    position: relative;
}

.jpd-header-burger__icon::before,
.jpd-header-burger__icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.jpd-header-burger__icon::before {
    top: -7px;
}

.jpd-header-burger__icon::after {
    top: 7px;
}

/* Mobile drawer — hidden on desktop */
.jpd-mobile-nav {
    display: none;
}

.jpd-header-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.jpd-header-logo {
    display: block;
    width: auto;
    height: 54px;
    max-width: 360px;
    object-fit: contain;
}

.jpd-header-menu-container {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    height: 100%;
    min-width: 0;
}

.jpd-header-menu {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jpd-header-menu > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.jpd-header-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 clamp(14px, 1.5vw, 24px);
    color: #4d4d4d;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.jpd-header-menu > li > a:hover,
.jpd-header-menu > li > a:focus {
    color: #111111;
    background: rgba(0, 0, 0, 0.025);
}

.jpd-header-menu > .current-menu-item > a,
.jpd-header-menu > .current-menu-ancestor > a,
.jpd-header-menu > .current_page_item > a {
    color: #111111;
    font-weight: 700;
}


.jpd-header-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

/* Anchor each flyout to the row that owns it. Without this, third-level
   menus align to the top of the whole dropdown and disappear while the
   pointer travels diagonally from a lower parent row. */
.jpd-header-menu .sub-menu > li {
    position: relative;
}

.jpd-header-menu li:hover > .sub-menu,
.jpd-header-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.jpd-header-menu .sub-menu a {
    display: block;
    padding: 10px 18px;
    color: #444444;
    font-size: 0.875rem;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.jpd-header-menu .sub-menu a:hover,
.jpd-header-menu .sub-menu a:focus {
    color: var(--jpd-secondary, #e8a020);
    background: rgba(232, 160, 32, 0.08);
}

.jpd-header-menu .sub-menu > .menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-right: 16px;
}

.jpd-header-menu .sub-menu > .menu-item-has-children > a::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.jpd-header-menu .sub-menu > .menu-item-has-children:hover > a,
.jpd-header-menu .sub-menu > .menu-item-has-children:focus-within > a {
    color: var(--jpd-secondary, #e8a020);
    background: rgba(232, 160, 32, 0.08);
}

.jpd-header-menu .sub-menu > .menu-item-has-children:hover > a::after,
.jpd-header-menu .sub-menu > .menu-item-has-children:focus-within > a::after {
    transform: rotate(45deg);
}

.jpd-header-menu .sub-menu .sub-menu {
    top: -3px;
    left: calc(100% - 1px);
    border-radius: 6px;
    transform: translateX(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.jpd-header-menu .sub-menu > li:hover > .sub-menu,
.jpd-header-menu .sub-menu > li:focus-within > .sub-menu {
    transform: translateX(0);
}

/* Hover bridge across the 1px overlap so the flyout stays open while
   the pointer travels from the parent row into the nested menu. */
.jpd-header-menu .sub-menu > .menu-item-has-children::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 4px;
    height: 100%;
}

html.jpd-text-small #main-content,
html.jpd-text-small .site-main,
html.jpd-text-small main { font-size: 90%; }

html.jpd-text-normal #main-content,
html.jpd-text-normal .site-main,
html.jpd-text-normal main { font-size: 100%; }

html.jpd-text-large #main-content,
html.jpd-text-large .site-main,
html.jpd-text-large main { font-size: 110%; }

@media (max-width: 1200px) {
    body {
        --jpd-main-header-height: 72px;
    }

    .jpd-top-bar-inner {
        grid-template-columns: 110px minmax(0, 1fr) max-content;
        gap: 14px;
        padding: 0 16px;
    }

    .jpd-top-bar-menu {
        gap: 20px;
    }

    .jpd-top-bar-search {
        display: none;
    }

    .jpd-header-main-nav {
        position: relative;
        z-index: 100001;
    }

    .jpd-header-main-inner {
        justify-content: space-between;
        gap: 12px;
        padding: 0 18px;
    }

    .jpd-header-branding {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 0;
    }

    .jpd-header-logo {
        height: 44px;
        max-width: min(260px, 55vw);
    }

    .jpd-header-mobile-actions {
        display: flex;
    }

    .jpd-header-menu-container {
        display: none;
    }

    .jpd-mobile-nav {
        display: block;
        position: fixed;
        top: var(--jpd-full-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100dvh - var(--jpd-full-header-height));
        z-index: 100000;
        background: #ffffff;
        color: #222222;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-12px);
        transition:
            transform 0.35s cubic-bezier(0.4, 0, 1, 1),
            opacity 0.35s cubic-bezier(0.4, 0, 1, 1),
            visibility 0s linear 0.35s;
        pointer-events: none;
    }

    html.jpd-mobile-nav-open .jpd-mobile-nav,
    html.jpd-mobile-nav-closing .jpd-mobile-nav {
        visibility: visible;
    }

    html.jpd-mobile-nav-open .jpd-mobile-nav {
        opacity: 1;
        transform: translateY(0);
        transition:
            transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s linear 0s;
        pointer-events: auto;
    }

    html.jpd-mobile-nav-closing .jpd-mobile-nav {
        opacity: 0;
        transform: translateY(-12px);
        transition:
            transform 0.35s cubic-bezier(0.4, 0, 1, 1),
            opacity 0.35s cubic-bezier(0.4, 0, 1, 1),
            visibility 0s linear 0.35s;
        pointer-events: none;
    }

    .jpd-header-burger__icon,
    .jpd-header-burger__icon::before,
    .jpd-header-burger__icon::after {
        transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
    }

    html.jpd-mobile-nav-open .jpd-header-burger[aria-expanded="true"] .jpd-header-burger__icon {
        background: transparent;
    }

    html.jpd-mobile-nav-open .jpd-header-burger[aria-expanded="true"] .jpd-header-burger__icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    html.jpd-mobile-nav-open .jpd-header-burger[aria-expanded="true"] .jpd-header-burger__icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    html.jpd-mobile-nav-open,
    html.jpd-mobile-nav-open body,
    html.jpd-mobile-nav-closing,
    html.jpd-mobile-nav-closing body {
        overflow: hidden;
    }

    .jpd-mobile-nav__inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .jpd-mobile-nav__body {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0 24px;
    }

    .jpd-mobile-nav__footer {
        flex-shrink: 0;
        padding: 16px 20px 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        background: #FDC112;
    }

    .jpd-mobile-nav__tools {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .jpd-mobile-nav__tools .jpd-top-bar-text-sizer {
        color: #222222;
    }

    .jpd-mobile-nav__tools .jpd-top-bar-btn {
        background: rgba(255, 255, 255, 0.75);
        color: #222222;
    }

    .jpd-mobile-nav__tools .jpd-top-bar-btn--active {
        background: var(--jpd-dark, #032F3C);
        color: #ffffff;
    }

    .jpd-mobile-nav__search {
        position: relative;
        display: flex;
        align-items: center;
        margin: 0;
    }

    .jpd-mobile-nav__search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        width: 16px;
        height: 16px;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .jpd-mobile-nav__search-icon svg {
        display: block;
        width: 16px;
        height: 16px;
        fill: #777777;
    }

    .jpd-mobile-nav__search input[type="search"] {
        width: 100%;
        height: 44px;
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 4px;
        padding: 0 12px 0 40px;
        background: #ffffff;
        color: #222222;
        font-size: 0.9375rem;
        box-sizing: border-box;
    }

    .jpd-mobile-nav__govbn {
        display: flex;
        justify-content: flex-end;
    }

    .jpd-mobile-nav__govbn img {
        height: 20px;
        width: auto;
    }

    .jpd-mobile-nav__menu,
    .jpd-mobile-nav__menu .sub-menu,
    .jpd-mobile-nav__secondary-menu,
    .jpd-mobile-nav__secondary-menu .sub-menu {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .jpd-mobile-nav__menu > li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .jpd-mobile-nav__menu > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 12px 20px;
        color: #333333;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        box-sizing: border-box;
    }

    .jpd-mobile-nav__menu > li > a:hover,
    .jpd-mobile-nav__menu > li > a:focus {
        color: var(--jpd-secondary, #e8a020);
        background: rgba(232, 160, 32, 0.08);
    }

    .jpd-mobile-nav__menu .menu-item-has-children > a::after {
        content: "";
        width: 8px;
        height: 8px;
        margin-left: 12px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(-45deg);
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    .jpd-mobile-nav__menu .menu-item-has-children.jpd-mobile-submenu-open > a::after {
        transform: rotate(45deg);
    }

    .jpd-mobile-nav__menu > .current-menu-item > a,
    .jpd-mobile-nav__menu > .current-menu-ancestor > a,
    .jpd-mobile-nav__menu > .current_page_item > a {
        color: var(--jpd-secondary, #e8a020);
    }

    .jpd-mobile-nav__menu .menu-item-has-children > .sub-menu {
        display: block;
        height: 0;
        overflow: hidden;
        background: rgba(232, 160, 32, 0.04);
        pointer-events: none;
        transition: height 0.28s ease;
    }

    .jpd-mobile-nav__menu .menu-item-has-children.jpd-mobile-submenu-open > .sub-menu {
        pointer-events: auto;
    }

    .jpd-mobile-nav__menu .sub-menu a {
        display: block;
        padding: 12px 20px 12px 28px;
        color: #444444;
        font-size: 0.9375rem;
        line-height: 1.4;
        text-decoration: none;
        min-height: 48px;
        box-sizing: border-box;
    }

    .jpd-mobile-nav__menu .sub-menu a:hover,
    .jpd-mobile-nav__menu .sub-menu a:focus {
        color: var(--jpd-secondary, #e8a020);
        background: rgba(232, 160, 32, 0.08);
    }

    .jpd-mobile-nav__menu .sub-menu .sub-menu a {
        padding-left: 40px;
    }

    .jpd-mobile-nav__menu .sub-menu .menu-item-has-children > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .jpd-mobile-nav__secondary {
        margin-top: 16px;
        padding-top: 8px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .jpd-mobile-nav__secondary-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        padding: 10px 20px;
        color: #666666;
        font-size: 0.875rem;
        font-weight: 600;
        text-decoration: none;
    }

    .jpd-mobile-nav__secondary-menu > .menu-item-has-children > a::after {
        content: "";
        width: 7px;
        height: 7px;
        margin-left: 12px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(-45deg);
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    .jpd-mobile-nav__secondary-menu > .menu-item-has-children.jpd-mobile-submenu-open > a::after {
        transform: rotate(45deg);
    }

    .jpd-mobile-nav__secondary-menu > .menu-item-has-children > .sub-menu {
        display: block;
        height: 0;
        overflow: hidden;
        pointer-events: none;
        transition: height 0.28s ease;
    }

    .jpd-mobile-nav__secondary-menu > .menu-item-has-children.jpd-mobile-submenu-open > .sub-menu {
        pointer-events: auto;
    }

    .jpd-mobile-nav__secondary-menu .sub-menu a {
        display: block;
        padding: 10px 20px 10px 28px;
        color: #555555;
        font-size: 0.875rem;
        text-decoration: none;
        min-height: 44px;
        box-sizing: border-box;
    }
}

@media (max-width: 782px) {
    body.admin-bar .jpd-header-wrapper {
        top: 46px;
    }
}

@media (max-width: 767px) {
    body {
        --jpd-top-bar-height: 0px;
        --jpd-main-header-height: 68px;
    }

    .jpd-top-bar--desktop {
        display: none;
    }

    .jpd-header-main-inner {
        padding: 0 14px;
    }

    .jpd-header-logo {
        height: 42px;
        max-width: min(210px, 55vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jpd-top-bar-menu .sub-menu,
    .jpd-header-menu .sub-menu,
    .jpd-header-menu .sub-menu > .menu-item-has-children > a::after,
    .jpd-header-menu > li > a,
    .jpd-mobile-nav,
    .jpd-mobile-nav__menu .menu-item-has-children > .sub-menu,
    .jpd-mobile-nav__secondary-menu > .menu-item-has-children > .sub-menu,
    .jpd-header-burger__icon,
    .jpd-header-burger__icon::before,
    .jpd-header-burger__icon::after {
        transition: none;
    }
}

/* Header announcement bar */
body.jpd-has-header-announcement {
    --jpd-announcement-bar-height: 28px;
}

.jpd-header-announcement-bar {
    position: relative;
    z-index: 1;
    width: 100%;
    height: var(--jpd-announcement-bar-height, 28px);
    overflow: hidden;
    background: #FDC112;
    color: #000000;
    font-size: 0.8125rem;
    line-height: 1;
}

.jpd-header-announcement-bar__viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.jpd-header-announcement-bar__track {
    display: flex;
    width: max-content;
    min-width: 100%;
    height: 100%;
    animation: jpd-header-announcement-marquee 42s linear infinite;
    will-change: transform;
}

.jpd-header-announcement-bar:hover .jpd-header-announcement-bar__track,
.jpd-header-announcement-bar:focus-within .jpd-header-announcement-bar__track {
    animation-play-state: paused;
}

.jpd-header-announcement-bar__set {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 100%;
    min-width: 100vw;
    padding: 0 18px;
    box-sizing: border-box;
    gap: 48px;
}

.jpd-header-announcement-bar__item {
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: #000000;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.jpd-header-announcement-bar__item::before {
    display: none;
    content: none;
}


.jpd-header-announcement-bar__item:hover,
.jpd-header-announcement-bar__item:focus-visible {
    color: #000000;
    text-decoration: underline;
    outline: none;
}

@keyframes jpd-header-announcement-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1200px) {
    body.jpd-has-header-announcement {
        --jpd-announcement-bar-height: 34px;
    }

    .jpd-header-announcement-bar {
        font-size: 0.75rem;
    }

    .jpd-header-announcement-bar__track {
        animation-duration: 36s;
    }

    .jpd-header-announcement-bar__set {
        gap: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jpd-header-announcement-bar__track {
        animation: none;
    }

    .jpd-header-announcement-bar__viewport {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .jpd-header-announcement-bar__viewport::-webkit-scrollbar {
        display: none;
    }
}

/* Header dropdown above announcement bar fix
   Keep desktop dropdowns/mega menus above the yellow announcement bar. */
.jpd-header-main-nav {
    position: relative;
    z-index: 20;
    overflow: visible;
}

.jpd-header-menu-container,
.jpd-header-menu,
.jpd-header-menu > li {
    overflow: visible;
}

.jpd-header-menu .sub-menu {
    z-index: 100010;
}

.jpd-top-bar {
    z-index: 30;
}

.jpd-top-bar-menu > li > .sub-menu {
    z-index: 100020;
}

.jpd-header-announcement-bar {
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .jpd-header-main-nav {
        z-index: 100001;
    }

    .jpd-mobile-nav {
        z-index: 100000;
    }
}
