﻿/* ===========================================================
   TOPBAR COMPONENT — topbar.css (Mobile-First)
   =========================================================== */
:root {
    --topbar-h: 30px;
}

.km-topbar {
    background: #2c5c4a; /* var(--navy-dk, #1c3c78);*/
    color: #fffff1; /*rgba(255, 255, 255, 0.75);*/
    height: var(--topbar-h);
    font-size: 0.68rem;
    line-height: 1;
    overflow: hidden;
    /* KHÔNG sticky/fixed: nằm trong luồng bình thường, tự cuộn khuất
       phía trên navbar (đang sticky top:0) => tự ẩn khi cuộn, không cần JS */
}

.km-topbar__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.km-topbar__left,
.km-topbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.km-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
}

.km-topbar__date {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.km-topbar__weather-loc {
    opacity: 0.75;
}

.km-topbar__divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.25);
}

.km-topbar__phone {
    color: #ffffff;
    font-weight: 600;
    transition: color 0.2s ease;
}

    .km-topbar__phone:hover {
        color: var(--gold, #f5a623);
    }

@media (max-width: 400px) {
    .km-topbar__date {
        max-width: 90px;
    }
}

@media (min-width: 768px) {
    .km-topbar {
        --topbar-h: 40px;
        font-size: 0.75rem;
    }
}

@media (min-width: 992px) {
    .km-topbar {
        --topbar-h: 36px;
    }
}
