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

/* Schaak-Off map hero — map full bleed; intro below on mobile, overlaid left on desktop. */
.microsite-event-map-block {
    position: relative;
    width: 100%;
}

.microsite-event-map-hero {
    position: relative;
    margin-bottom: 0;
}

.microsite-event-map-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 500;
    pointer-events: none;
    background: linear-gradient(
        to right,
        var(--bb-color-green-950) 0%,
        color-mix(in srgb, var(--bb-color-green-950) 92%, transparent) 38%,
        transparent 72%
    );
}

.microsite-event-map-hero-intro {
    padding-top: var(--bb-padding-md);
    padding-bottom: var(--bb-padding-md);
}

.microsite-event-map-hero-copy {
    pointer-events: auto;
}

.microsite-event-map-hero-actions {
    margin-top: var(--bb-space-lg);
}

.microsite-event-map-block + .container.page-container {
    padding-top: var(--bb-padding-md);
}

@media (max-width: 767.98px) {
    .microsite-event-map-hero {
        height: clamp(220px, 36vh, 300px);
    }
}

@media (min-width: 768px) {
    .microsite-event-map-hero-intro {
        position: absolute;
        inset: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        pointer-events: none;
        padding-top: 0;
        padding-bottom: var(--bb-padding-2xl);
        background: transparent;
    }

    .microsite-event-map-hero-intro .row {
        width: 100%;
    }

    .microsite-event-map-block + .container.page-container {
        padding-top: var(--bb-padding-xl);
    }
}

.microsite-events-search {
    margin-bottom: var(--bb-space-lg);
}

.microsite-event-search-item[hidden],
.microsite-event-search-empty[hidden] {
    display: none !important;
}

.microsite-event-search-empty .bb-empty-state {
    padding-top: 0;
    padding-bottom: 0;
}

.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-2xl);
    --bs-gutter-y: var(--bb-space-2xl);
}

.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 */
