/* ── Top header ──────────────────────────────────────────── */
.top-header {
    overflow: hidden;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.header-title {
    line-height: 1;
    color: var(--q-color-text-primary);
    font-size: 64px;
    font-style: italic;
    font-weight: 500;
}

.header-subtitle {
    line-height: 0.5;
    color: var(--q-color-text-secondary);
    font-size: 24px;
}

/* ── Stats bar ───────────────────────────────────────────── */
.stats {
    display: flex;
    gap: 8px;
}

.stat-box {
    text-align: center;
    align-content: center;
    border: 3px solid var(--q-color-border-secondary);
    background: var(--q-color-background-secondary);
    aspect-ratio: 1;
    height: 5.5rem;
}

.stat-value {
    color: var(--q-color-text-primary);
    font-size: 42px;
    font-weight: 500;
}

.stat-label {
    font-size: 14px;
    color: var(--q-color-text-secondary);

}

@media (max-width: 768px) {
    /* Header stacks on tablet */
    .top-header {
        gap: 1.5rem;
    }

    .header-title {
        font-size: 48px;
        margin-top: 8px;
    }

    .header-subtitle {
        font-size: 16px;
    }

    /* Stats boxes wrap */
    .stats {
        justify-content: flex-start;
    }
    .stat-box {
        height: 4.75rem;
    }

    .stat-value {
        font-size: 36px;
    }

    .stat-label {
        font-size: 12px;
    }
}

@media (max-width: 500px) {
    .top-header {
        gap: 1rem;
        margin-bottom: 8px;
    }

    .header-title {
        font-size: 36px;
    }

    .header-subtitle {
        font-size: 12px;
    }

    /* Stats inline */
    .stats {
        gap: 4px;
    }

    .stat-box {
        height: 4rem;
    }

    .stat-value {
        font-size: 30px;
    }

    .stat-label {
        font-size: 10px;
    }

}