/* Yale Capital homepage recognition badges — v1.1.3
   This file intentionally has a versioned filename to defeat stale mobile Safari CSS. */

body.home .recognition-badges-v113 {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    width: auto !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
}

body.home .recognition-badges-v113 .recognition-badge,
body.home .recognition-badges-v113 .cnbc-badge,
body.home .recognition-badges-v113 .forbes-badge {
    display: block !important;
    flex: 0 0 250px !important;
    width: 250px !important;
    height: 100px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.home .recognition-badges-v113 .recognition-badge > a,
body.home .recognition-badges-v113 .cnbc-badge > a,
body.home .recognition-badges-v113 .forbes-badge > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 250px !important;
    height: 100px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid rgba(16, 22, 50, 0.12) !important;
    border-radius: 2px !important;
    box-shadow: 0 4px 14px rgba(8, 18, 42, 0.10) !important;
    text-decoration: none !important;
    outline: 0 !important;
}

body.home .recognition-badges-v113 .recognition-badge > a:hover,
body.home .recognition-badges-v113 .recognition-badge > a:focus-visible {
    transform: translateY(-2px) !important;
    box-shadow: 0 7px 18px rgba(8, 18, 42, 0.16) !important;
}

/* Both images are constrained by the exact same inner area.  Their natural
   aspect ratios are preserved, so neither award mark is stretched. */
body.home .recognition-badges-v113 .recognition-badge img,
body.home .recognition-badges-v113 .cnbc-badge img,
body.home .recognition-badges-v113 .forbes-badge img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* The CNBC source is transparent. Give its artwork a touch more breathing
   room so it visually balances the Forbes artwork, which includes its own frame. */
body.home .recognition-badges-v113 .cnbc-badge img {
    max-width: 94% !important;
    max-height: 86% !important;
}

body.home .recognition-badges-v113 .forbes-badge img {
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Keep the award row subordinate to the navigation rather than crowding it. */
body.home .nav-badge-wrap {
    align-items: flex-end !important;
}

@media (max-width: 885px) {
    body.home #inner-header {
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    body.home .nav-badge-wrap {
        width: 100% !important;
        align-items: center !important;
        margin-top: 8px !important;
    }

    body.home .recognition-badges-v113 {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 250px !important;
        margin: 13px auto 0 !important;
    }

    /* Same 250 x 100 cards as desktop.  No mobile-only logo scaling. */
    body.home .recognition-badges-v113 .recognition-badge,
    body.home .recognition-badges-v113 .recognition-badge > a {
        flex-basis: 250px !important;
        width: 250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
        height: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;
    }

    /* Add visible navy breathing room after the award stack before the hero. */
    body.home header.header:not(.sticky) {
        padding-bottom: 30px !important;
    }

    body.home header.header.sticky {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 320px) {
    /* Safety only for unusually narrow legacy viewports. */
    body.home .recognition-badges-v113,
    body.home .recognition-badges-v113 .recognition-badge,
    body.home .recognition-badges-v113 .recognition-badge > a {
        width: 238px !important;
        min-width: 238px !important;
        max-width: 238px !important;
    }
}
