/* Header utility & brand — isolated from main stylesheet */

.header-utility {
    background: #102d53;
    color: #fff;
    font-size: 0.75rem;
}

.header-utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 32px;
    padding-block: 4px;
}

.header-rates {
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-clock {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-brand {
    border-bottom: 1px solid var(--color-border);
}

.header-brand-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    min-height: 72px;
    padding-block: 10px;
}

.header-brand-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-brand-right {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.header-ad-slot {
    min-height: 90px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-brand .site-logo {
    justify-content: flex-start;
    text-align: left;
}

/* Compatibility with legacy header-top-inner layout */
.header-top-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

@media (max-width: 768px) {
    .header-brand-inner {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 10px 12px;
    }

    .header-ad-slot {
        grid-column: 1 / -1;
        min-height: 50px;
    }

    .header-brand-right {
        grid-column: 2;
        grid-row: 1;
    }

    .header-utility-inner {
        font-size: 0.68rem;
    }
}
