.mocna-header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.mocna-topbar {
    border-bottom: 1px solid var(--border);
}

.mocna-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    gap: 20px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--olive-light);
}

.mocna-masthead {
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    align-items: center;
    min-height: 205px;
    padding-block: 25px;
}

.mocna-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
}

.mocna-brand-emblem {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
}

.mocna-wordmark {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(55px, 8vw, 112px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .12em;
    padding-left: .12em;
    color: var(--ivory);
}

.mocna-brand-tagline {
    color: var(--olive-light);
    font-size: 10px;
    letter-spacing: 3px;
    text-align: center;
}

.mocna-icon-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 12px;
    background: transparent;
    border: 0;
    color: var(--ivory);
    cursor: pointer;
}

.mocna-icon-button svg {
    width: 25px;
    height: 25px;
}

.mocna-icon-button span {
    font-size: 9px;
    letter-spacing: 2px;
}

.mocna-icon-button:hover {
    color: var(--olive-light);
}

.mocna-navigation {
    border-top: 1px solid var(--border);
}

.mocna-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(14px, 2.4vw, 38px);
    min-height: 54px;
}

.mocna-nav-inner a {
    position: relative;
    padding: 18px 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .2s ease;
}

.mocna-nav-inner a:hover,
.mocna-nav-inner a.is-active {
    color: var(--olive-light);
}

.mocna-nav-inner a::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--olive-light);
    transition: width .2s ease;
}

.mocna-nav-inner a:hover::after,
.mocna-nav-inner a.is-active::after {
    width: 100%;
}

.mocna-search-panel {
    border-top: 1px solid var(--border);
    padding: 25px 0;
    background: var(--forest);
}

.mocna-search-panel[hidden] {
    display: none;
}

.mocna-search-form {
    display: flex;
    gap: 12px;
}

.mocna-search-form input {
    flex: 1;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--ivory);
}

.mocna-search-form button {
    border: 0;
    padding: 15px 25px;
    background: var(--olive);
    color: var(--ivory);
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
}

.mocna-header :focus-visible {
    outline: 2px solid var(--ivory);
    outline-offset: 4px;
}

@media (min-width: 901px) {
    .mocna-navigation.is-collapsed {
        display: none;
    }
}

@media (max-width: 900px) {

    .mocna-topbar-inner {
        justify-content: center;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .mocna-topbar-inner span:first-child,
    .mocna-topbar-inner span:last-child {
        display: none;
    }

    .mocna-masthead {
        grid-template-columns: 44px 1fr 44px;
        min-height: 145px;
        padding-block: 20px;
    }

    .mocna-wordmark {
        font-size: clamp(34px, 10vw, 68px);
    }

    .mocna-brand-emblem {
        width: 32px;
        height: 32px;
    }

    .mocna-brand-tagline {
        font-size: 7px;
        letter-spacing: 1.2px;
    }

    .mocna-icon-button {
        padding: 6px;
    }

    .mocna-icon-button span {
        display: none;
    }

    .mocna-navigation {
        display: none;
    }

    .mocna-navigation.is-open {
        display: block;
    }

    .mocna-nav-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-block: 10px;
    }

    .mocna-nav-inner a {
        border-bottom: 1px solid var(--border);
        padding: 16px 8px;
    }

    .mocna-search-form button {
        padding-inline: 12px;
    }
}

/* MOCNA Original Brand Identity */

.mocna-header .mocna-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mocna-header .mocna-brand-emblem {
    display: none;
}

.mocna-header .mocna-wordmark {
    display: block;
    padding: 0;
    line-height: 0;
}

.mocna-header .mocna-original-wordmark {
    display: block;
    width: clamp(180px, 23vw, 350px);
    height: auto;
    object-fit: contain;
}

@media (max-width: 520px) {
    .mocna-header .mocna-original-wordmark {
        width: clamp(145px, 48vw, 220px);
    }
}

