.dw-ahm {
    --dw-ahm-duration: 320ms;
    --dw-ahm-dropdown-offset: 10px;
    --dw-ahm-mobile-width: 75%;
    --dw-ahm-hover-underline: currentColor;
    --dw-ahm-active-underline: currentColor;
    --dw-ahm-underline-height: 2px;
    --dw-ahm-underline-offset: 2px;
    --dw-ahm-desktop-gap: 28px;
    --dw-ahm-desktop-main-separator-color: rgba(0, 0, 0, .15);
    --dw-ahm-desktop-main-separator-width: 1px;
    --dw-ahm-desktop-main-separator-height: 20px;
    --dw-ahm-separator-color: rgba(0, 0, 0, .15);
    --dw-ahm-separator-width: 1px;
    --dw-ahm-separator-spacing: 12px;
    --dw-ahm-desktop-dropdown-separator-color: rgba(0, 0, 0, .15);
    --dw-ahm-desktop-dropdown-separator-width: 1px;
    --dw-ahm-desktop-dropdown-separator-spacing: 6px;
    --dw-ahm-mobile-dropdown-indent: 18px;
    --dw-ahm-desktop-indicator-color: currentColor;
    --dw-ahm-mobile-indicator-color: currentColor;
    position: relative;
    width: 100%;
}

.dw-ahm *,
.dw-ahm *::before,
.dw-ahm *::after {
    box-sizing: border-box;
}

.dw-ahm ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dw-ahm a {
    text-decoration: none;
}

.dw-ahm button {
    font: inherit;
}

.dw-ahm__desktop-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

.dw-ahm__desktop-item {
    position: relative;
}

.dw-ahm-desktop-main-separator-yes .dw-ahm__desktop-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: calc(var(--dw-ahm-desktop-gap) / -2);
    width: var(--dw-ahm-desktop-main-separator-width);
    height: var(--dw-ahm-desktop-main-separator-height);
    background-color: var(--dw-ahm-desktop-main-separator-color);
    transform: translate(50%, -50%);
    pointer-events: none;
}

.dw-ahm__desktop-row {
    display: flex;
    align-items: center;
}

.dw-ahm__desktop-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: inherit;
    transition: color var(--dw-ahm-duration) ease, background-color var(--dw-ahm-duration) ease, border-color var(--dw-ahm-duration) ease;
}

.dw-ahm-underline-yes .dw-ahm__desktop-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-1 * var(--dw-ahm-underline-offset));
    height: var(--dw-ahm-underline-height);
    background: var(--dw-ahm-hover-underline);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dw-ahm-duration) ease, background-color var(--dw-ahm-duration) ease;
}

.dw-ahm-underline-yes .dw-ahm__desktop-item:hover > .dw-ahm__desktop-row .dw-ahm__desktop-link::after,
.dw-ahm-underline-yes .dw-ahm__desktop-link:focus-visible::after {
    transform: scaleX(1);
}

.dw-ahm-underline-yes .dw-ahm__desktop-link.is-active::after,
.dw-ahm-underline-yes .dw-ahm__desktop-item.has-active-link > .dw-ahm__desktop-row .dw-ahm__desktop-link::after {
    background: var(--dw-ahm-active-underline);
    transform: scaleX(1);
}

/* Hover is a temporary interaction state and intentionally wins over Active. */
.dw-ahm-underline-yes .dw-ahm__desktop-link.is-active:hover::after,
.dw-ahm-underline-yes .dw-ahm__desktop-item.has-active-link:hover > .dw-ahm__desktop-row .dw-ahm__desktop-link::after {
    background: var(--dw-ahm-hover-underline);
    transform: scaleX(1);
}

.dw-ahm .dw-ahm__desktop-dropdown-toggle,
.dw-ahm .dw-ahm__desktop-dropdown-toggle:hover,
.dw-ahm .dw-ahm__desktop-dropdown-toggle:focus,
.dw-ahm .dw-ahm__desktop-dropdown-toggle:focus-visible,
.dw-ahm .dw-ahm__desktop-dropdown-toggle:active,
.dw-ahm .dw-ahm__mobile-dropdown-toggle,
.dw-ahm .dw-ahm__mobile-dropdown-toggle:hover,
.dw-ahm .dw-ahm__mobile-dropdown-toggle:focus,
.dw-ahm .dw-ahm__mobile-dropdown-toggle:focus-visible,
.dw-ahm .dw-ahm__mobile-dropdown-toggle:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 6px;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.dw-ahm .dw-ahm__desktop-dropdown-toggle,
.dw-ahm .dw-ahm__desktop-dropdown-toggle:hover,
.dw-ahm .dw-ahm__desktop-dropdown-toggle:focus,
.dw-ahm .dw-ahm__desktop-dropdown-toggle:focus-visible,
.dw-ahm .dw-ahm__desktop-dropdown-toggle:active {
    color: var(--dw-ahm-desktop-indicator-color) !important;
}

.dw-ahm .dw-ahm__mobile-dropdown-toggle,
.dw-ahm .dw-ahm__mobile-dropdown-toggle:hover,
.dw-ahm .dw-ahm__mobile-dropdown-toggle:focus,
.dw-ahm .dw-ahm__mobile-dropdown-toggle:focus-visible,
.dw-ahm .dw-ahm__mobile-dropdown-toggle:active {
    color: var(--dw-ahm-mobile-indicator-color) !important;
}

.dw-ahm__caret {
    display: block;
    width: .55em;
    height: .55em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-15%);
    transition: transform var(--dw-ahm-duration) ease;
}

.dw-ahm__desktop-item:hover > .dw-ahm__desktop-row .dw-ahm__caret,
.dw-ahm__desktop-item:focus-within > .dw-ahm__desktop-row .dw-ahm__caret,
.dw-ahm__desktop-item.is-dropdown-open > .dw-ahm__desktop-row .dw-ahm__caret,
.dw-ahm__mobile-item.is-dropdown-open > .dw-ahm__mobile-main-row .dw-ahm__caret {
    transform: rotate(225deg) translate(-5%, -5%);
}

.dw-ahm__dropdown {
    position: absolute;
    top: calc(100% + var(--dw-ahm-dropdown-offset));
    left: 0;
    z-index: 1000;
    min-width: 220px;
    padding: 14px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--dw-ahm-duration) ease, transform var(--dw-ahm-duration) ease, visibility var(--dw-ahm-duration) ease;
}

.dw-ahm__dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: var(--dw-ahm-dropdown-offset);
}

.dw-ahm__desktop-item:hover > .dw-ahm__dropdown,
.dw-ahm__desktop-item:focus-within > .dw-ahm__dropdown,
.dw-ahm__desktop-item.is-dropdown-open > .dw-ahm__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dw-ahm__dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dw-ahm__dropdown-link {
    display: block;
    color: inherit;
    transition: color var(--dw-ahm-duration) ease, background-color var(--dw-ahm-duration) ease, border-color var(--dw-ahm-duration) ease;
}

.dw-ahm-desktop-dropdown-separator-yes .dw-ahm__dropdown-item:not(:last-child) {
    border-bottom: var(--dw-ahm-desktop-dropdown-separator-width) solid var(--dw-ahm-desktop-dropdown-separator-color);
    padding-bottom: var(--dw-ahm-desktop-dropdown-separator-spacing);
}

.dw-ahm__burger-area {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
}

.dw-ahm__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    transition: color var(--dw-ahm-duration) ease, background-color var(--dw-ahm-duration) ease, border-color var(--dw-ahm-duration) ease;
}

.dw-ahm__burger .dw-ahm__icon,
.dw-ahm__burger .dw-ahm__icon i,
.dw-ahm__burger .dw-ahm__icon svg {
    width: var(--dw-ahm-burger-size, 28px);
    height: var(--dw-ahm-burger-size, 28px);
    font-size: var(--dw-ahm-burger-size, 28px);
}

.dw-ahm__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dw-ahm__icon svg {
    display: block;
    fill: currentColor;
}

.dw-ahm__mobile-layer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100lvh;
    z-index: 2147483646;
    display: none;
    pointer-events: none;
    overflow: hidden;
    touch-action: none;
}

.dw-ahm__overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    cursor: pointer;
    touch-action: none;
    transition: opacity var(--dw-ahm-duration) ease;
}

.dw-ahm__mobile-panel {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(var(--dw-ahm-mobile-width), 100vw);
    max-width: 100vw;
    height: 100%;
    min-height: 100%;
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--dw-ahm-duration) cubic-bezier(.22, .61, .36, 1), visibility 0s linear var(--dw-ahm-duration);
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.dw-ahm__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 6px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    transition: color var(--dw-ahm-duration) ease, background-color var(--dw-ahm-duration) ease, border-color var(--dw-ahm-duration) ease;
}

.dw-ahm__close .dw-ahm__icon,
.dw-ahm__close .dw-ahm__icon i,
.dw-ahm__close .dw-ahm__icon svg {
    width: var(--dw-ahm-close-size, 28px);
    height: var(--dw-ahm-close-size, 28px);
    font-size: var(--dw-ahm-close-size, 28px);
}

.dw-ahm__mobile-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 48px;
}

.dw-ahm__mobile-item {
    min-width: 0;
}

.dw-ahm__mobile-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    transition: color var(--dw-ahm-duration) ease, background-color var(--dw-ahm-duration) ease, border-color var(--dw-ahm-duration) ease;
}

.dw-ahm__mobile-link {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    text-align: left;
    transition: color var(--dw-ahm-duration) ease;
}

.dw-ahm__mobile-dropdown-toggle {
    margin-left: 10px;
}

.dw-ahm__mobile-dropdown {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows var(--dw-ahm-duration) ease, opacity var(--dw-ahm-duration) ease, visibility var(--dw-ahm-duration) ease;
}

.dw-ahm__mobile-dropdown-inner {
    min-height: 0;
    overflow: hidden;
}

.dw-ahm__mobile-item.is-dropdown-open > .dw-ahm__mobile-dropdown {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

.dw-ahm__mobile-dropdown-list {
    display: flex;
    margin-left: var(--dw-ahm-mobile-dropdown-indent, 0px);
    flex-direction: column;
    gap: 6px;
}

.dw-ahm__mobile-dropdown-link {
    display: block;
    color: inherit;
    transition: color var(--dw-ahm-duration) ease, background-color var(--dw-ahm-duration) ease, border-color var(--dw-ahm-duration) ease;
}

.dw-ahm-separator-yes .dw-ahm__mobile-item:not(:last-child) {
    border-bottom: var(--dw-ahm-separator-width) solid var(--dw-ahm-separator-color);
    padding-bottom: var(--dw-ahm-separator-spacing);
}

.dw-ahm.is-mobile-mode {
    z-index: 2147483000;
}

.dw-ahm.is-mobile-mode .dw-ahm__desktop {
    display: none;
}

.dw-ahm.is-mobile-mode .dw-ahm__burger-area {
    display: flex;
}

.dw-ahm.is-mobile-mode .dw-ahm__mobile-layer {
    display: block;
}

.dw-ahm.is-mobile-mode.is-open .dw-ahm__mobile-layer {
    pointer-events: auto;
}

.dw-ahm.is-mobile-mode.is-open .dw-ahm__overlay {
    opacity: 1;
}

.dw-ahm.is-mobile-mode.is-open .dw-ahm__mobile-panel {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
}

body.dw-ahm-body-locked {
    /*
     * Do not use overflow:hidden here. iOS Safari can resize its visual
     * viewport/browser chrome and keep the page visually shortened after the
     * off-canvas closes. The fixed mobile layer itself intercepts gestures.
     */
    overscroll-behavior: none;
}

@media (prefers-reduced-motion: reduce) {
    .dw-ahm *,
    .dw-ahm *::before,
    .dw-ahm *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
    }
}


/* Mobile toggle controls: suppress browser focus/tap rings.
 * These controls are only shown in the configured touch/mobile mode. */
.dw-ahm .dw-ahm__burger,
.dw-ahm .dw-ahm__burger:hover,
.dw-ahm .dw-ahm__burger:focus,
.dw-ahm .dw-ahm__burger:focus-visible,
.dw-ahm .dw-ahm__burger:active,
.dw-ahm .dw-ahm__close,
.dw-ahm .dw-ahm__close:hover,
.dw-ahm .dw-ahm__close:focus,
.dw-ahm .dw-ahm__close:focus-visible,
.dw-ahm .dw-ahm__close:active {
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}


/* Plain text items can be used as mobile section headings. */
.dw-ahm__mobile-text-row {
    width: 100%;
    cursor: default;
}

.dw-ahm__mobile-text-item {
    display: block;
    width: 100%;
    min-width: 0;
    color: inherit;
}

.dw-ahm__desktop-text-item,
.dw-ahm__dropdown-text-item,
.dw-ahm__mobile-dropdown-text-item {
    cursor: default;
}


/* Optional per-link text before and after the actual menu label. */
.dw-ahm__link-before,
.dw-ahm__link-name,
.dw-ahm__link-after {
    display: inline;
}

.dw-ahm__link-before,
.dw-ahm__link-after {
    flex: 0 0 auto;
}
