/* ── Layout: one screen tall. Header and footer stay put, the middle scrolls. ── */

header {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 99999;
    /* Semi-clear so the smoke reads through the header band */
    background:
        linear-gradient(180deg, rgba(8,8,8,0.82) 0%, rgba(18,18,18,0.74) 100%);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.9);
}

/* Weld seam under the header: bright in the middle, fading at both ends */
header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(193,74,9,0.55) 12%, #E0642A 50%, rgba(193,74,9,0.55) 88%, transparent 100%);
    box-shadow: 0 0 18px 1px rgba(224,100,42,0.35);
    pointer-events: none;
}

header a {
    text-decoration: none;
    color: inherit;
}

.header-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    padding: clamp(6px, 1.1vh, 14px) max(var(--gutter), calc((100% - var(--maxw)) / 2)) clamp(4px, 0.7vh, 10px);
    gap: clamp(10px, 2vw, 32px);
}

main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

footer {
    flex-shrink: 0;
    min-height: 0;
    width: 100%;
    position: relative;
    z-index: 99999;
    background: linear-gradient(180deg, rgba(16,16,16,0.86) 0%, rgba(6,6,6,0.9) 100%);
}

footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(193,74,9,0.5) 12%, #C14A09 50%, rgba(193,74,9,0.5) 88%, transparent 100%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: clamp(6px, 1vh, 12px) max(var(--gutter), calc((100% - var(--maxw)) / 2));
}
