.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap-reverse;
}

header {
    flex: 1;
    min-width: 300px;
}

.downloads-box {
    border: 1px solid #999;
    border-radius: 2px;
    padding: 0.5rem;
    background: #FDFDFD;
    min-width: 180px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.downloads-title {
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    color: #2E3542;
    margin-bottom: 0.2rem;
}

.downloads-links {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: center;
}

.downloads-links a {
    text-align: center;
    padding: 0.3rem 0.6rem;
    color: #2E3542;
    font-size: 0.875rem;
    background-image: linear-gradient(to top, #FFE080, #FFE080 0.15em, rgba(0, 0, 0, 0) 0.15em, rgba(0, 0, 0, 0));
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.downloads-links a:hover {
    background-color: #FFE080;
}

/* Mobile layout: downloads above header */
@media screen and (max-width: 768px) {
    .header-wrapper {
        flex-direction: column-reverse;
    }
    
    .downloads-box {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    header {
        width: 100%;
    }
}
