/* ══ Layout: Header, Navbar, Footer ══ */

/* ── Header / Navbar ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 250;
    background-color: var(--bg-primary);
    border-bottom: 2px solid var(--border-dark);
    min-height: 60px;
}

.site-header .navbar {
    background-color: transparent !important;
    padding: 0.25rem 0;
}

.site-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
}

.site-header .navbar-brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    margin-right: .45rem;
}

.site-header .navbar-brand .brand-accent {
    color: var(--accent-yellow);
}

.site-header .nav-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1rem !important;
    transition: color 0.2s, transform 0.2s;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
    color: var(--text-primary) !important;
    transform: translateY(1px);
}

/* ── Main content ── */
main[role="main"] {
    /* Sticky footer: grow to fill remaining space so the footer stays at the bottom */
    flex: 1 0 auto;
}

/* ── Footer ── */
.site-footer {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    padding: 2rem 0;
    font-size: 0.85rem;
    /* Sticky footer: never grow/shrink, always sits after the flexible main */
    flex-shrink: 0;
}

.site-footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }
