/* SLM home About band (about.php): 9:16 video on the left, trust badges below. Band colors come from slm-brand.css (Adobe Brown). */
body .ocf-about .ocf-about__grid.slm-about-grid {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    align-items: start; /* the text stays put when the transcript under the video opens */
}

body .ocf-about .ocf-about__media.slm-about-media {
    border: 0;
    background: none;
}

/* 4 trust badges: light cards, colored top border + icon circle (rust, cactus green, deep brown, sand).
   Contrast: #3B2A1F on #FFFFFF 14:1 · #4A4038 on #FFFFFF 10:1 · white icon on #B5522F 5.0:1, on #4E7F46 4.9:1, on #3B2A1F 14:1 · #6B4A32 on #F3E6D6 7.4:1 */
.slm-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: clamp(2rem, 4vw, 3rem) 0 0;
    padding: 0;
    list-style: none;
}

.slm-trust__item {
    --slm-badge: #B5522F;
    --slm-badge-icon: #FFFFFF;
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    margin: 0;
    padding: 1.05rem 1rem;
    border-top: 5px solid var(--slm-badge-top, var(--slm-badge));
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
    color: #3B2A1F;
}

.slm-trust__item--green { --slm-badge: #4E7F46; }
.slm-trust__item--brown { --slm-badge: #3B2A1F; }
.slm-trust__item--sand { --slm-badge: #F3E6D6; --slm-badge-icon: #6B4A32; --slm-badge-top: #F2B233; }

.slm-trust__circle {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--slm-badge);
    color: var(--slm-badge-icon);
}

.slm-trust__item--sand .slm-trust__circle {
    box-shadow: inset 0 0 0 2px #E2CCAE;
}

.slm-trust__circle .slm-icon {
    width: 26px;
    height: 26px;
}

.slm-trust__text {
    display: grid;
    gap: .2rem;
    min-width: 0;
}

.slm-trust__label {
    color: #3B2A1F;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.slm-trust__sub {
    color: #4A4038;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.35;
}

/* Google badge: whole card is the link. */
.slm-trust__item--google {
    padding: 0;
}

.slm-trust__google {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: 100%;
    padding: 1.05rem 1rem;
    border-radius: 12px;
    color: #3B2A1F;
    text-decoration: none;
}

body .ocf-about .slm-trust__google:hover .slm-trust__label,
body .ocf-about .slm-trust__google:focus-visible .slm-trust__label {
    text-decoration: underline;
}

.slm-trust__google:focus-visible {
    outline: 3px solid #F2B233;
    outline-offset: 3px;
}

.slm-trust__stars {
    position: relative;
    display: inline-block;
    width: max-content;
    line-height: 0;
}

.slm-trust__stars svg {
    width: 18px;
    height: 18px;
    margin-right: 2px;
}

.slm-trust__stars-base svg {
    fill: #E2D5C3;
}

.slm-trust__stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
}

.slm-trust__stars-fill svg {
    fill: #FBBC04;
}

/* ---------- Scrolling banner (after About, before Quick Facts). White on rust 5.0:1. ---------- */
.slm-banner {
    display: flex;
    align-items: center;
    gap: .5rem;
    overflow: hidden;
    background: #B5522F;
    color: #FFFFFF;
}

.slm-banner__viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.slm-banner__track {
    display: flex;
    width: max-content;
    animation: slm-banner-scroll 36s linear infinite;
}

.slm-banner:hover .slm-banner__track,
.slm-banner:focus-within .slm-banner__track,
.slm-banner.is-paused .slm-banner__track {
    animation-play-state: paused;
}

.slm-banner__list {
    display: flex;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.slm-banner__item {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: 1.05rem 0;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

/* Dot separator after every item (also after the last, so both copies are the same width and the loop is seamless). */
.slm-banner__item::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: 0 1.75rem;
    border-radius: 50%;
    background: #F2B233;
}

.slm-banner__item .slm-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
}

.slm-banner__toggle {
    flex: 0 0 auto;
    margin: 0 .75rem 0 0;
    padding: .4rem .8rem;
    border: 2px solid #FFFFFF;
    border-radius: 999px;
    background: #3B2A1F;
    color: #FFFFFF;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
}

.slm-banner__toggle:focus-visible {
    outline: 3px solid #F2B233;
    outline-offset: 2px;
}

.slm-banner__toggle-play,
.slm-banner.is-paused .slm-banner__toggle-pause {
    display: none;
}

.slm-banner.is-paused .slm-banner__toggle-play {
    display: inline;
}

@keyframes slm-banner-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .slm-trust__item,
    .slm-trust__google {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .slm-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .7rem;
    }

    .slm-trust__item,
    .slm-trust__google {
        flex-direction: column;
        align-items: flex-start;
        gap: .55rem;
        padding: .85rem .8rem;
    }

    .slm-trust__item--google {
        padding: 0;
    }

    .slm-trust__circle {
        width: 2.6rem;
        height: 2.6rem;
    }

    .slm-trust__label {
        font-size: .98rem;
    }

    .slm-trust__sub {
        font-size: .8rem;
    }

    .slm-banner__item {
        padding: .9rem 0;
        font-size: .95rem;
    }

    .slm-banner__item::after {
        margin: 0 1.25rem;
    }

    .slm-banner__toggle {
        margin-right: .5rem;
        padding: .35rem .65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slm-banner__track {
        width: auto;
        animation: none;
    }

    .slm-banner .slm-banner__list {
        flex: 1 1 auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: .15rem 1.75rem;
        padding: .6rem 1rem;
    }

    .slm-banner__list--copy,
    .slm-banner__toggle {
        display: none;
    }

    .slm-banner .slm-banner__item {
        padding: .4rem 0;
        font-size: .95rem;
    }

    .slm-banner .slm-banner__item::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
    .slm-banner .slm-banner__list {
        gap: .1rem 1.1rem;
        padding: .5rem .75rem;
    }

    .slm-banner .slm-banner__item {
        padding: .3rem 0;
        font-size: .85rem;
    }

    .slm-banner .slm-banner__item .slm-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 860px) {
    body .ocf-about .ocf-about__grid.slm-about-grid {
        grid-template-columns: 1fr;
    }

    /* Phones: heading and text first, then the video. */
    body .ocf-about .slm-about-grid .ocf-about__copy {
        order: -1;
    }
}
