.banner {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: black;
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    transition: height 0.25s ease;
    overflow: hidden;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 8px 40px;
    min-height: 36px;
}

.banner-content a {
    color: inherit;
    text-decoration: underline;
}

.banner-close {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.banner-close:hover {
    opacity: 0.7;
}

.md-header {
    transition: top 0.25s ease;
}

[data-banner-visible="true"] .md-header {
    top: 36px; /* Match banner min-height */
}

/* On small screens, banner might wrap, but we'll try to keep it simple */
@media screen and (max-width: 45em) {
    .banner-content {
        font-size: 0.6rem;
        padding: 8px 30px;
    }
}
