/* Keep the original header, but allow its image group to fit narrower desktops. */
/* Clean, tightly framed logo at its natural aspect ratio. */
img.client-logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
    object-position: center
}

#hd img.client-logo {
    width: 66px;
    height: 44px
}

footer img.client-logo {
    width: 120px;
    height: 80px
}

/* Original supplied wordmark; category names and tagline remain editable text. */
@font-face {
    font-family: BrandRounded;
    src: url('/client-assets/brand-rounded-900.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap
}

.client-brand-panel {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    min-height: 176px;
    text-align: center
}

img.client-brand-wordmark {
    width: 210px;
    height: 140px;
    object-fit: contain;
    object-position: center
}

.client-brand-labels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    font-family: BrandRounded, 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.5
}

.client-brand-labels span {
    padding: 4px 14px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #ff9400, #f97300);
    text-shadow: 0 1px 1px #0002
}

.client-brand-labels span:nth-child(2) {
    background: linear-gradient(135deg, #70ba22, #429900)
}

.client-brand-labels span:nth-child(3) {
    background: linear-gradient(135deg, #009aff, #007bd9)
}

.client-brand-labels span:nth-child(4) {
    background: linear-gradient(135deg, #f653ad, #e92b8e)
}

.client-brand-tagline {
    margin: 0;
    color: #08305a;
    font-family: BrandRounded, 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
    font-weight: 900;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: .02em
}

@media(max-width:23rem) {
    .client-brand-labels {
        gap: 6px
    }

    .client-brand-labels span {
        padding-left: 10px;
        padding-right: 10px
    }
}

@media(min-width:40rem) {
    .client-brand-panel {
        min-height: 208px
    }

    img.client-brand-wordmark {
        width: 255px;
        height: 170px
    }
}

@media(min-width:64rem) {
    .client-brand-panel {
        min-height: 256px;
        gap: 4px;
        padding: 6px 12px
    }

    img.client-brand-wordmark {
        width: 360px;
        height: 240px
    }

    .client-brand-labels {
        font-size: 24px;
        gap: 10px
    }

    .client-brand-labels span {
        padding: 5px 24px
    }

    .client-brand-tagline {
        font-size: 30px
    }

    /* Keep the vertical composition while tightening the adjacent contact band. */
    .client-brand-panel+section {
        padding-top: 20px;
        padding-bottom: 20px
    }

    .client-brand-panel+section .mb-4:empty {
        display: none
    }
}

.site-header-row {
    gap: 1.5rem
}

.site-header-row>div:first-child {
    flex: 1 1 auto;
    min-width: 0
}

.site-header-row>div:first-child>img {
    flex: 0 1 auto;
    min-width: 0;
    object-fit: contain
}

.site-header-row>div:last-child {
    flex: 0 0 auto
}

.site-header-row>div:last-child>a {
    flex-shrink: 0;
    white-space: nowrap
}

.site-header-row>div:last-child svg {
    flex-shrink: 0
}

.site-header-row .client-header-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #06c755;
    padding: 12px 20px;
    white-space: nowrap
}

.site-header-row .client-header-line img {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain
}

.site-header-row .client-header-line:hover {
    filter: none;
    background: #06c755
}

@media(min-width:64rem) and (max-width:74.999rem) {

    .site-header-row,
    .site-header-row>div {
        gap: 1rem
    }
}
