html, body {
    height: 100%;
    min-height: 100dvh;
    overscroll-behavior-y: auto;
}

/* Fixed background layer so rubber-band/overscroll shows the gradient instead of white */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #0b1220;
    pointer-events: none;
}

.site-bg {
    min-height: 100dvh;
    min-height: 100vh; /* fallback for older browsers */
    display: flex;
    flex-direction: column;
}
body {
    color: #e9eef6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#title-bar {
    text-align: center;
    padding: 1.25rem 0 0.25rem;
}

#title-words {
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Nav tweaks */
.nav-pills .nav-link {
    background: transparent;
    color: #f8f9fa;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
}

.nav-pills .nav-link.active {
    background: #ff761b;
    color: #1b1b1b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.nav-pills .nav-link:hover {
    background: rgba(255,255,255,0.06);
}

/* Nav buttons: become white on hover/focus for clearer interaction */
.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
    background: #ffffff;
    color: #ff761b;
}

/* Allow horizontal scrolling on small screens for nav */
.nav-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
}

.nav-pills .nav-link { white-space: nowrap; }

/* Hero */
.hero {
    background: linear-gradient(90deg, rgba(255,154,42,0.06), rgba(255,154,42,0.03));
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 1.25rem;
}

.card.bg-secondary {
    background: rgba(25,25,28,0.75) !important;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(2,6,23,0.6);
}

/* Sponsor grid */
.sponsor-item img { max-height: 64px; max-width: 100%; object-fit: contain; }
.sponsor-item .sponsor-placeholder { background: rgba(255,255,255,0.03); }
.sponsor-item .sponsor-placeholder:hover { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(0,0,0,0.5); }

.card .card-title {
    letter-spacing: 0.25px;
}

.text-muted.small {
    color: rgba(255,255,255,0.6) !important;
}

a.text-decoration-underline {
    text-decoration: underline;
}

.btn-warning.custom {
    background: #ff761b;
    border-color: #ff761b;
    color: #171717;
    transition: background-color 180ms ease, color 180ms ease, transform 120ms ease;
}

.text-warning-sponsors {
    color: #ff761b;
}

/* Hover/focus: white background with brand color text */
.btn-warning.custom:hover,
.btn-warning.custom:focus,
.btn-warning.custom:active {
    background: #ffffff;
    border-color: #ffffff;
    color: #ff761b;
}

/* Small responsive tweaks */
@media (max-width: 768px) {
    .hero { padding: 1.25rem; }
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.95rem; }
    .nav-pills .nav-link { padding: 0.45rem 0.75rem; }
}

@media (max-width: 576px) {
    .hero { padding: 1rem; }
    .hero h1 { font-size: 1.25rem; }
    .hero p { font-size: 0.9rem; }
    .container { padding-left: 0.75rem; padding-right: 0.75rem; }
}

.bg-silver
{
    background-color: #777777;
}

.bg-bronze
{
    background-color: #ce8140;
    font-family: Arial, Helvetica, sans-serif;
}

#title-bar {
background: #2f3743;
padding: 1.75rem 0;
}
#title-bar h1 {
margin: 0;
color: white;
font-size: 1.75rem;
}
.tier-card {
min-height: 120px;
}
.sponsor-logo {
height: 84px;
display: flex;
align-items: center;
justify-content: center;
background: white;
padding: 0.75rem;
border-radius: 0.375rem;
}
.sponsor-name {
color: #f8f9fa;
}