/* The Partnerships page (templates/partnerships.html). Each partner's logo sits
   on a white tile in both themes, since most logos are drawn for a white
   background. Hand-written, so it needs no Tailwind build. */

/* Cards up to three to a row, centred, so one or two partners do not sit off
   to the left. */
.partner-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.partner-list > li {
    flex: 0 1 22rem;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10rem;
    padding: 1.5rem;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* In place of a logo: the name, set large. A long name breaks mid-word rather
   than spilling out of the tile, and stops at four lines; the heading under
   the tile always has it in full. */
.partner-logo-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    min-width: 0;
    overflow-wrap: anywhere;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.partner-name {
    overflow-wrap: anywhere;
}
