/* UCSF public frontend — works without npm/Vite build */

.ucsf-public .navbar-brand {
    letter-spacing: 0.02em;
}

.ucsf-public .card {
    border-radius: 0.75rem;
}

.ucsf-public .form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.ucsf-public main a:not(.btn):not(.nav-link):not(.navbar-brand) {
    text-decoration: none;
}

.ucsf-public main a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
    text-decoration: underline;
}

.ucsf-public .list-group-item {
    background: #fff;
}

/* Keep Breeze/admin layouts usable if they reference this file */
body {
    margin: 0;
}


/*
 * Branding images (logo / hero) may be multi-megapixel uploads from Site settings.
 * Constrain with max-height/max-width + object-fit so intrinsic dimensions never
 * dump into layout. min-width/min-height: 0 lets flex parents (navbar-brand) shrink
 * the img. Server-side resize of uploads can come later; CSS is the immediate fix.
 */
img.ucsf-navbar-logo,
.ucsf-navbar-logo {
    display: block;
    max-height: 44px;
    height: auto;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    flex-shrink: 1;
    min-width: 0;
    min-height: 0;
}

img.ucsf-footer-logo,
.ucsf-footer-logo {
    display: block;
    max-height: 48px;
    height: auto;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    background: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    min-width: 0;
    min-height: 0;
}

img.ucsf-hero-logo,
.ucsf-hero-logo {
    display: inline-block;
    max-height: 120px;
    height: auto;
    width: auto;
    max-width: min(280px, 100%);
    object-fit: contain;
    margin-bottom: 1rem;
    min-width: 0;
    min-height: 0;
    vertical-align: middle;
}

img.ucsf-hero-logo-lg,
.ucsf-hero-logo-lg {
    max-height: 160px;
    max-width: min(320px, 100%);
    margin-bottom: 0;
}

@media (min-width: 992px) {
    img.ucsf-hero-logo-lg,
    .ucsf-hero-logo-lg {
        max-height: 200px;
        max-width: min(400px, 100%);
    }
}

/* Homepage hero photograph band — cover crop inside a capped box (no <img> dump).
 * Solid dark-blue underlay so white title text stays readable while the photo
 * loads (or if background-image is slow / stale CSS misses the color).
 */
.ucsf-hero-band {
    position: relative;
    min-height: 280px;
    max-height: 420px;
    overflow: hidden;
    background-color: #0d47a1;
    background-image: var(--ucsf-hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ucsf-hero-band-overlay {
    /* Gradient only over the photo. Opaque underlay lives on .ucsf-hero-band
     * (behind background-image) so a solid color never covers the hero photo.
     */
    background-color: transparent;
    background-image: linear-gradient(
        105deg,
        rgba(10, 48, 120, 0.72) 0%,
        rgba(13, 71, 161, 0.45) 55%,
        rgba(0, 0, 0, 0.35) 100%
    );
    min-height: 280px;
    max-height: 420px;
}

/* Optional <img.ucsf-hero-photo> if a template uses an img instead of CSS background */
img.ucsf-hero-photo,
.ucsf-hero-photo {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
}

.ucsf-hero-band .ucsf-hero-logo {
    background: rgba(255, 255, 255, 0.92);
    padding: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.25);
}

.ucsf-hero-placeholder {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}


/* Sponsors — public logo wall + committee thumbs */
.ucsf-sponsor-logo-wrap {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.ucsf-sponsor-logo {
    max-height: 88px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.ucsf-sponsor-logo-placeholder {
    text-align: center;
    padding: 1rem;
}

.ucsf-sponsor-card .card-body {
    min-height: 100%;
}

.ucsf-sponsor-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.ucsf-sponsor-preview {
    max-height: 120px;
    max-width: 240px;
    object-fit: contain;
}

.ucsf-sponsor-strip-logo {
    max-height: 56px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    filter: grayscale(15%);
    opacity: 0.92;
    transition: opacity 0.15s ease, filter 0.15s ease;
}

.ucsf-sponsor-strip-item:hover .ucsf-sponsor-strip-logo {
    filter: none;
    opacity: 1;
}

.ucsf-sponsor-list {
    max-width: 40rem;
}

.ucsf-sponsor-list-item::marker {
    color: var(--bs-primary, #0d6efd);
}
