/* Microsite-only styles (extracted from style.css) */

.microsite-home-section {
    margin-top: var(--bb-space-2xl);
    margin-bottom: var(--bb-space-2xl);
}

.microsite-home-card-grid {
    --bs-gutter-x: var(--bb-space-3xl);
    --bs-gutter-y: var(--bb-space-3xl);
}

.microsite-home-featured-grid {
    --bs-gutter-x: var(--bb-space-2xl);
    --bs-gutter-y: var(--bb-space-2xl);
    margin-bottom: calc(var(--bb-space-3xl) + var(--bb-space-lg));
}

.microsite-home-remaining-grid {
    --bs-gutter-x: var(--bb-space-2xl);
    --bs-gutter-y: var(--bb-space-2xl);
    margin-bottom: var(--bb-space-2xl);
}

.microsite-home-news-section {
    position: relative;
    padding: var(--bb-padding-xl) 0;
}

.microsite-home-news-section::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--bb-color-surface-default);
    z-index: -1;
}

.microsite-home-news-section > * {
    position: relative;
}

.microsite-home-news-section .tc-card {
    background: var(--bb-color-surface-hover);
}

.microsite-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--bb-space-md);
    margin-bottom: var(--bb-space-lg);
}

.microsite-section-link {
    display: inline-flex;
    align-items: center;
    gap: var(--bb-space-xs);
    color: var(--bb-color-text-link-default);
    text-decoration: none;
    white-space: nowrap;
}

.microsite-section-link span {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.microsite-section-link:hover,
.microsite-section-link:focus-visible {
    color: var(--bb-color-text-link-hover);
}

@media (max-width: 575.98px) {
    .microsite-section-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =====================================================================
 * MICROSITE SPONSORS
 * Hand-placed sponsor logos in the microsite footer. Scoped per org via
 * a slug check in the template. Lives inside the footer's .container so
 * its max-width tracks the page content above. Each logo keeps its own
 * intrinsic size as the upper cap (fills its natural height on desktop)
 * and scales fluidly with the viewport width on smaller screens —
 * per-logo clamp() so the relative prominence between logos is preserved.
 * ===================================================================== */
.microsite-sponsors {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: clamp(8px, 2vw, 24px);
    padding-bottom: var(--bb-space-xl);
    margin-bottom: var(--bb-space-lg);
    border-bottom: 1px solid var(--bb-color-border-subtle);
}

.microsite-sponsor-logo {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex: 0 1 auto;
    min-width: 0;
}

.microsite-sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--bb-space-xs);
    min-width: 0;
}

.microsite-sponsor-label {
    margin: 0;
    color: var(--bb-color-text-default);
}


/* Fluid sizing — `vw` scales the logo with the viewport, clamped between
   a mobile-readable minimum and the SVG's intrinsic height on desktop.
   Per-logo so each sponsor's relative prominence is preserved. */
.microsite-sponsor-logo--1 { height: clamp(22px, 7.5vw, 83px); }  /* 101×83 */
.microsite-sponsor-logo--2 { height: clamp(18px, 5.5vw, 60px); }  /* 193×60 */
.microsite-sponsor-logo--3 { height: clamp(14px, 4vw,   45px); }  /* 201×45 */
.microsite-sponsor-logo--4 { height: clamp(24px, 8vw,   88px); }  /* 191×88 */

