/* Faculty header layout; accents are scoped to department navigation only. */
.ayu-department-header,
.ayu-department-mobile-menu {
    --theme-color: #BA1530;
    --theme-color2: #BA1530;
}

.ayu-department-header .header-logo img {
    max-width: 100%;
    object-fit: contain;
}

.ayu-department-header .main-menu a,
.ayu-department-mobile-menu .th-mobile-menu a {
    font-family: var(--body-font), "Segoe UI", Arial, sans-serif;
}

.ayu-department-header .th-btn {
    box-shadow: 0 8px 20px rgba(186, 21, 48, 0.22);
}

.ayu-department-header a:focus-visible,
.ayu-department-header button:focus-visible,
.ayu-department-mobile-menu a:focus-visible,
.ayu-department-mobile-menu button:focus-visible {
    outline: 2px solid var(--title-color);
    outline-offset: 4px;
}

.ayu-department-header .header-top a:focus-visible {
    outline-color: #fff;
}

@media (min-width: 992px) {
    .ayu-department-header .main-menu li:focus-within > .sub-menu {
        visibility: visible;
        opacity: 1;
        z-index: 99;
        transform: scaleY(1);
    }

    .ayu-department-header .main-menu > ul > li.ayu-category-mega-item:focus-within > .ayu-category-mega {
        pointer-events: auto;
        transform: translate(-50%, 0);
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .ayu-department-header .main-menu > ul > li {
        margin-right: 10px;
        margin-left: 10px;
    }

    .ayu-department-header .main-menu > ul > li > a {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ayu-department-header *,
    .ayu-department-header *::before,
    .ayu-department-header *::after,
    .ayu-department-mobile-menu * {
        transition: none !important;
        animation: none !important;
    }
}
