/* ═══════════════════════════════════════════════════════════
   Header 1 — Accent Strip
   Thin accent bar · Centered logo · Dark nav · Breaking ticker
   ═══════════════════════════════════════════════════════════ */

.h1-header {
    background: var(--color-surface);
    position: sticky;
    top: 0;
    z-index: 200;
}

/* ── Accent line ── */
.h1-accent-line {
    height: 4px;
    background: var(--color-primary);
}

/* ── Brand row ── */
.h1-brand {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.h1-brand__inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.h1-brand__name {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: var(--color-secondary);
    text-decoration: none;
    letter-spacing: -.03em;
}

.h1-brand__tagline {
    font-size: .65rem;
    color: var(--color-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.h1-brand .custom-logo {
    max-height: 56px;
    width: auto;
}

/* ── Nav bar ── */
.h1-nav {
    background: var(--color-nav-bg);
}

.h1-nav .container {
    display: flex;
    align-items: center;
}

.h1-nav__menu {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.h1-nav__menu::-webkit-scrollbar {
    display: none;
}

.h1-nav__item {
    display: block;
    padding: 14px 20px;
    color: var(--color-nav-text);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s, background .2s;
    position: relative;
}

.h1-nav__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform .25s;
}

.h1-nav__item:hover::after,
.h1-nav__item.is-active::after {
    transform: scaleX(1);
}

.h1-nav__item:hover,
.h1-nav__item.is-active {
    color: var(--color-primary);
}

/* ── Hamburger toggle ── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-nav-text);
    padding: 14px 16px;
    align-items: center;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger-icon span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

/* ── Breaking ticker ── */
.h1-breaking {
    background: var(--color-breaking-bg);
    color: var(--color-breaking-text);
    padding: 8px 0;
    overflow: hidden;
}

.h1-breaking .container {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.h1-breaking__badge {
    flex-shrink: 0;
    font-size: .6rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, .2);
    padding: 3px 10px;
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .7; }
}

.h1-breaking__track {
    flex: 1;
    overflow: hidden;
}

.h1-breaking__list {
    display: flex;
    gap: 48px;
    list-style: none;
    white-space: nowrap;
    animation: ticker-scroll 32s linear infinite;
    font-size: .8rem;
    margin: 0;
    padding: 0;
}

.h1-breaking__list:hover {
    animation-play-state: paused;
}

.h1-breaking__list a {
    color: var(--color-breaking-text);
    text-decoration: none;
}

.h1-breaking__list a:hover {
    text-decoration: underline;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .h1-nav .nav-toggle {
        display: flex;
    }

    .h1-nav__menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 200;
        background: var(--color-nav-bg);
        box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    }

    .h1-nav__menu.is-open {
        display: flex;
    }

    .h1-nav {
        position: relative;
    }

    .h1-nav__item {
        border-bottom: 1px solid rgba(255, 255, 255, .07);
        padding: 14px 20px;
    }

    .h1-nav__item::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .h1-brand {
        padding: 16px 0;
    }

    .h1-brand__name {
        font-size: 1.6rem;
    }
}
