/**
 * UG-611 homepage value-prop strip.
 * Figma: SW_EXT_the-universal-group 18701:14196 (desktop), 18809:25246 (mobile, stacked).
 */

.ug-value-strip {
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    border-top: 1px solid #ebebeb;
    clear: both;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: 100%;
}

.ug-value-strip-list {
    display: flex;
    list-style: none;
    margin: 0 auto;
    max-width: 1440px;
    padding: 0 20px;
    box-sizing: border-box;
}

.ug-value-strip-item {
    border-right: 1px solid #ebebeb;
    display: flex;
    flex: 1 1 0;
    margin: 0;
    min-width: 0;
}

.ug-value-strip-item:last-child {
    border-right: 0;
}

.ug-value-tile {
    align-items: center;
    box-sizing: border-box;
    color: #1a1a1a;
    display: flex;
    flex: 1 1 auto;
    gap: 14px;
    min-height: 118px;
    padding: 22px 18px;
    text-decoration: none;
    transition: background-color .15s;
}

.ug-value-tile:hover {
    background: #f5f5f5;
}

a.ug-value-tile:hover,
a.ug-value-tile:focus,
a.ug-value-tile:visited {
    color: #1a1a1a;
    text-decoration: none;
}

a.ug-value-tile:hover .ug-value-tile-title {
    text-decoration: underline;
}

/* The theme outlines links on any focus, so a mouse click left a black border on the tile.
   Only keyboard focus (:focus-visible) shows an outline. */
.ug-value-strip a.ug-value-tile:focus {
    box-shadow: none;
    outline: none;
}

.ug-value-strip a.ug-value-tile:focus-visible {
    outline: 2px solid #c41230;
    outline-offset: -2px;
}

.ug-value-tile-badge {
    align-items: center;
    background: #ffe5e9;
    color: #c41230;
    display: flex;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.ug-value-tile-text {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.35;
    min-width: 0;
}

.ug-value-tile-title {
    color: #c8102e;
    font-weight: 800;
}

.ug-value-tile-sub {
    color: #1a1a1a;
    font-weight: 400;
}

/* Mobile: tiles stack vertically */
@media (max-width: 767px) {
    .ug-value-strip-list {
        flex-direction: column;
        padding: 0 16px;
    }

    .ug-value-strip-item {
        border-bottom: 1px solid #ebebeb;
        border-right: 0;
    }

    .ug-value-strip-item:last-child {
        border-bottom: 0;
    }

    .ug-value-tile {
        min-height: 0;
        padding: 16px 0;
    }

    .ug-value-tile:hover {
        background: transparent;
    }

    .ug-value-tile-text {
        font-size: 15px;
    }
}

/* Tablet: two columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .ug-value-strip-list {
        flex-wrap: wrap;
    }

    .ug-value-strip-item {
        border-bottom: 1px solid #ebebeb;
        flex-basis: 50%;
    }

    .ug-value-strip-item:nth-child(2n) {
        border-right: 0;
    }

    .ug-value-strip-item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}
