/* VIRASAT ORIGINAL LOGO REFINEMENT */

/* Navigation logo */

header.navigation a.brand {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    flex-shrink: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none;
}

header.navigation a.brand::before,
header.navigation a.brand::after {
    content: none !important;
    display: none !important;
}

header.navigation a.brand img[data-logo] {
    display: block !important;
    position: static !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    aspect-ratio: 1;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    transform: none !important;
    filter: none !important;
}

header.navigation a.brand > span {
    display: inline-block !important;
    position: static !important;
    white-space: nowrap;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

/* Circular entrance emblem */

#entrance .entrance-brand {
    --emblem-size: clamp(112px, 17vw, 154px);
    position: relative;
    text-align: center;
    isolation: isolate;
}

#entrance .entrance-brand img[data-logo] {
    display: block;
    position: relative;
    z-index: 2;
    width: var(--emblem-size) !important;
    height: var(--emblem-size) !important;
    aspect-ratio: 1;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 1px solid rgba(181,154,98,.65) !important;
    outline: none !important;
    margin: 0 auto 28px !important;
    padding: 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

/* Outer architectural ring */

#entrance .entrance-brand::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: calc(var(--emblem-size) + 24px);
    height: calc(var(--emblem-size) + 24px);
    border: 1px solid rgba(181,154,98,.45);
    border-top-color: #B59A62;
    border-bottom-color: #B59A62;
    border-radius: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    animation: virasat-emblem-ring 3s linear infinite;
}

/* Inner architectural ring */

#entrance .entrance-brand::after {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    width: calc(var(--emblem-size) + 40px);
    height: calc(var(--emblem-size) + 40px);
    border: 1px dashed rgba(181,154,98,.28);
    border-radius: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    animation: virasat-emblem-reverse 5s linear infinite;
}

@keyframes virasat-emblem-ring {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes virasat-emblem-reverse {
    from {
        transform: translateX(-50%) rotate(360deg);
    }
    to {
        transform: translateX(-50%) rotate(0deg);
    }
}

#entrance.open .entrance-brand::before,
#entrance.open .entrance-brand::after {
    animation-play-state: paused;
}

/* Mobile logo alignment */

@media (max-width: 760px) {

    header.navigation a.brand {
        gap: 9px !important;
    }

    header.navigation a.brand img[data-logo] {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
    }

    #entrance .entrance-brand {
        --emblem-size: 112px;
    }

    #entrance .entrance-brand img[data-logo] {
        box-shadow: none;
    }
}

@media (max-width: 380px) {

    header.navigation a.brand img[data-logo] {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    #entrance .entrance-brand::before,
    #entrance .entrance-brand::after {
        animation: none !important;
    }
}