/* Header 9: Two-Row Split
   Row 1 dark: logo left + breaking ticker right
   Row 2 light: scrollable category nav
*/

.mapgwIheader {
    position: sticky; top: 0; z-index: 200;
    box-shadow: 0 2px 16px rgba(0,0,0,.15);
}

/* ══════════════════════════════════════
   ROW 1 — Dark bar
   ══════════════════════════════════════ */
.mapgwItop {
    background: var(--color-secondary);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.mapgwItop .container {
    display: flex; align-items: center;
    gap: 16px; min-height: 52px;
}

/* ── Logo ── */
.mapgwIbrand { flex-shrink: 0; }
.mapgwIbrand__name {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 900;
    color: #fff; text-decoration: none; letter-spacing: -.02em;
    white-space: nowrap; transition: opacity .2s;
}
.mapgwIbrand__name:hover { opacity: .8; }
.mapgwIbrand .custom-logo {
    max-height: 36px; width: auto; filter: brightness(0) invert(1);
}

/* ── Breaking ticker ── */
.mapgwIticker {
    flex: 1; display: flex; align-items: center;
    gap: 10px; overflow: hidden; min-width: 0;
}
.mapgwIticker__badge {
    flex-shrink: 0; display: flex; align-items: center; gap: 6px;
    font-size: .58rem; font-weight: 900; letter-spacing: .14em;
    text-transform: uppercase; color: var(--color-btn-text);
    background: var(--color-primary); padding: 3px 10px; border-radius: 2px;
    white-space: nowrap;
}
.mapgwIticker__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--color-btn-text);
    animation: mapgwIblink 1.2s step-start infinite;
}
@keyframes mapgwIblink { 0%,100%{opacity:1} 50%{opacity:0} }
.mapgwIticker__track { flex: 1; overflow: hidden; }
.mapgwIticker__list {
    display: flex; gap: 48px; list-style: none; white-space: nowrap;
    animation: ticker-scroll 32s linear infinite;
    font-size: .78rem; color: rgba(255,255,255,.55);
    margin: 0; padding: 0;
}
.mapgwIticker__list:hover { animation-play-state: paused; }
.mapgwIticker__list a {
    color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s;
}
.mapgwIticker__list a:hover { color: #fff; }
@keyframes ticker-scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── Mobile toggle ── */
.mapgwItoggle {
    display: none; background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,.8); padding: 8px; border-radius: 4px;
    flex-shrink: 0; transition: background .2s;
}
.mapgwItoggle:hover { background: rgba(255,255,255,.1); }
.mapg-hi { display: flex; flex-direction: column; gap: 5px; }
.mapg-hi span {
    display: block; width: 22px; height: 2px;
    background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s;
}

/* ══════════════════════════════════════
   ROW 2 — Light nav bar
   ══════════════════════════════════════ */
.mapgwInav {
    background: var(--color-surface);
    border-bottom: 2px solid var(--color-primary);
}
.mapgwInav__menu {
    display: flex; align-items: center;
    overflow-x: auto; scrollbar-width: none;
    padding: 0 5%;
}
.mapgwInav__menu::-webkit-scrollbar { display: none; }
.mapgwInav__item {
    display: flex; align-items: center;
    padding: 11px 16px; flex-shrink: 0;
    color: var(--color-muted); font-size: .8rem; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}
.mapgwInav__item:hover { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.mapgwInav__item.is-active {
    color: var(--color-primary); border-bottom-color: var(--color-primary);
    font-weight: 700;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    .mapgwItoggle { display: flex; }
    /* Hide ticker on mobile to save space */
    .mapgwIticker { display: none; }
    /* Nav collapses */
    .mapgwInav__menu {
        display: none; flex-direction: column; align-items: stretch;
        overflow-x: visible; padding: 0;
        position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
        background: var(--color-surface); box-shadow: 0 8px 24px rgba(0,0,0,.12);
    }
    .mapgwInav__menu.is-open { display: flex; }
    .mapgwInav { position: relative; }
    .mapgwInav__item {
        border-bottom: 1px solid var(--color-border);
        border-left: 3px solid transparent; margin-bottom: 0; padding: 13px 20px;
    }
    .mapgwInav__item.is-active { border-left-color: var(--color-primary); border-bottom-color: var(--color-border); }
}
@media (max-width: 480px) {
    .mapgwIbrand__name { font-size: 1.1rem; }
    .mapgwItop .container { min-height: 46px; }
}
