/* Partner logo strip, shared by the Home and About pages (inc/partners.php).

   A still row of logos. Until v1.25.53 the homepage ran them as a moving
   marquee of repeated copies in 190px boxes, which on a phone showed one or two
   logos at a time sliding past. Here every logo is visible at once: one row on a
   desktop, a two-column grid of equal cells on a phone. */

.mbx-partners {
    background: #fff;
    border-bottom: 1px solid var(--mbx-line);
    padding: 44px 0 46px;
}

.mbx-partners__inner {
    margin: 0 auto;
    max-width: var(--mbx-shell-max, 1360px);
    padding: 0 var(--mbx-shell-pad, 24px);
}

.mbx-partners__title {
    color: var(--mbx-muted);
    font-size: var(--mbx-type-meta);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.5;
    margin: 0 0 26px;
    text-align: center;
}

.mbx-partners__list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 22px 64px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mbx-partners__slot {
    align-items: center;
    display: flex;
    height: 48px;
    justify-content: center;
}

.mbx-partners__link {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
}

/* Logos are drawn into the same 150 x 40 box whatever their shape, so a tall
   mark like Apple's and a long wordmark like Hexnode's read at a similar
   weight instead of the wordmarks dwarfing it. */
.mbx-partners__logo {
    display: block;
    height: auto;
    max-height: 40px;
    max-width: 150px;
    object-fit: contain;
    transition: opacity 180ms ease;
    width: auto;
}

.mbx-partners__link:hover .mbx-partners__logo {
    opacity: 0.7;
}

.mbx-partners__link:focus-visible {
    outline: 3px solid rgba(240, 144, 5, 0.75);
    outline-offset: 4px;
}

.mbx-partners__fallback {
    color: var(--mbx-ink);
    font-size: var(--mbx-type-body);
    font-weight: 600;
}

/* About: the strip sits between two sections rather than under a photo hero, so
   it takes the section rhythm instead of a rule underneath. */
.mbx-partners--about {
    border-bottom: 0;
    border-top: 1px solid var(--mbx-line);
    padding: 64px 0;
}

/* A phone: equal cells two to a row, each with a hairline frame, so the logos
   line up in a grid instead of wrapping into ragged rows of different widths.
   An odd last logo spans the row and sits centred. */
@media (max-width: 700px) {
    .mbx-partners {
        padding: 34px 0 36px;
    }

    .mbx-partners--about {
        padding: 48px 0;
    }

    .mbx-partners__title {
        margin-bottom: 18px;
    }

    .mbx-partners__list {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mbx-partners__slot {
        border: 1px solid var(--mbx-line);
        border-radius: 12px;
        height: 72px;
        padding: 0 16px;
    }

    .mbx-partners__slot:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    /* Smaller than the desktop box: in a 160px cell a 120px wordmark filled
       the frame edge to edge while Apple's mark stayed small in the middle. */
    .mbx-partners__logo {
        max-height: 28px;
        max-width: 96px;
    }
}
