/* Approved logo-only portfolio layout; scoped to the public brands sections. */
.brand-section,
.smopc-brands-intro,
.brands-showcase { background: #f7f8fa; }
.brand-section .smopc-brand-heading,
.smopc-brands-intro { text-align: center; }
.brand-section .smopc-brand-heading { margin-bottom: 36px; }
.brand-section::before,
.brand-section::after { display: none; }
.smopc-brand-eyebrow {
    margin-bottom: 12px;
    color: #596b91;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.brand-section .smopc-brand-heading .section-title-modern,
.smopc-brands-intro h1 {
    margin: 0 0 12px;
    color: #0e1a4a;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -.045em;
}
.brand-section .smopc-brand-heading .section-description-modern,
.smopc-brands-intro p {
    max-width: 640px;
    margin: 0 auto;
    color: #596b91;
    font-size: clamp(.95rem, 1.5vw, 1.125rem);
    line-height: 1.6;
}
.brand-section .brands-grid-modern,
.brands-showcase .brands-grid {
    --bs-gutter-x: 28px;
    --bs-gutter-y: 32px;
}
.brand-section .brands-grid-modern > [class*="col-"],
.brands-showcase .brands-grid > [class*="col-"] {
    display: flex;
    width: 50%;
    flex: 0 0 auto;
}
.brand-section .brands-grid-modern > .col-12.text-center:only-child { width: 100%; display: block; }
.smopc-brand-tile {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3;
    border: 1px solid rgba(22, 40, 106, .06);
    border-radius: 16px;
    background: var(--brand-background, #fff);
}
.smopc-brand-tile:focus-within { z-index: 2; }
.smopc-brand-logo {
    position: absolute;
    inset: 0;
    padding: 6% 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}
.smopc-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.smopc-brand-logo:focus-visible,
.smopc-brand-qr summary:focus-visible {
    outline: 3px solid var(--brand-ink, #243047);
    outline-offset: 2px;
}
.smopc-brand-qr { position: absolute; right: 6px; bottom: 6px; z-index: 3; }
.smopc-brand-qr summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--brand-ink, #243047);
    font-size: 18px;
    cursor: pointer;
    list-style: none;
    border-radius: 6px;
}
.smopc-brand-qr summary::-webkit-details-marker { display: none; }
.smopc-brand-qr-popup {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    width: 210px;
    max-width: calc(100vw - 48px);
    padding: 16px;
    border: 1px solid #d8e2f2;
    border-radius: 12px;
    background: #fff;
    color: #243047;
    box-shadow: 0 8px 28px rgba(14, 26, 74, .15);
    text-align: center;
}
.smopc-brand-qr-popup img { display: block; width: 100%; height: auto; }
.smopc-brand-qr-popup span { display: block; margin-top: 10px; font-size: .75rem; }
@media (min-width: 768px) {
    .brand-section .brands-grid-modern > [class*="col-"],
    .brands-showcase .brands-grid > [class*="col-"] { width: calc(100% / 3); }
}
@media (max-width: 575.98px) {
    .brand-section .brands-grid-modern,
    .brands-showcase .brands-grid { --bs-gutter-x: 16px; --bs-gutter-y: 20px; }
    .smopc-brand-tile { aspect-ratio: 1; border-radius: 14px; }
    .smopc-brand-logo { padding: 12% 10% 18%; }
    .smopc-brand-qr { right: 2px; bottom: 2px; }
    .smopc-brand-qr summary { font-size: 16px; }
    .brand-section .brands-grid-modern > [class*="col-"]:nth-child(odd) .smopc-brand-qr-popup,
    .brands-showcase .brands-grid > [class*="col-"]:nth-child(odd) .smopc-brand-qr-popup {
        right: auto;
        left: -80px;
    }
}
