.zvistka-header-brand {
    min-width: 0;
    min-height: 44px;
}

.zvistka-header-wordmark,
.zvistka-header-lockup {
    display: block;
    flex: 0 1 auto;
    width: 200px;
    min-width: 0;
    max-width: 100%;
    border-radius: 6px;
}

.zvistka-header-wordmark {
    aspect-ratio: 10 / 3;
    background: #fff url('/assets/brand/logo-horizontal-light-20261015.png?v=fe6c67ed2b74') center / 150% auto no-repeat;
    font-size: 0;
}

html[data-theme="dark"] .zvistka-header-wordmark {
    border-radius: 0;
    background: transparent url('/assets/brand/logo-horizontal-dark-20261016.png?v=b15fb8416fec') center / contain no-repeat;
}

.zvistka-header-lockup {
    --wordmark-label-start: 24.5%;
    --wordmark-label-color: #a51e4a;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    background-color: #fff;
}

html[data-theme="dark"] .zvistka-header-lockup {
    --wordmark-label-start: 22.5%;
    --wordmark-label-color: #f46b91;
    background-color: transparent;
}

.zvistka-header-lockup::before {
    content: "";
    aspect-ratio: 5 / 1;
}

.zvistka-header-lockup > .zvistka-header-wordmark {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    /* Keep the full emblem at the left and clear the news tagline under the lettering. */
    clip-path: polygon(0 0, 100% 0, 100% 67%, var(--wordmark-label-start) 67%, var(--wordmark-label-start) 100%, 0 100%);
}

.zvistka-header-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: .28em;
    margin-inline-start: var(--wordmark-label-start);
    padding-block: 1px 3px;
    color: var(--wordmark-label-color);
    font-size: clamp(.8125rem, 3.5vw, 1rem);
    font-weight: 750;
    line-height: 1.1;
    white-space: nowrap;
}

.zvistka-header-section svg {
    flex: 0 0 auto;
    width: 1.2em;
    height: 1.2em;
}

@media (max-width: 768px) {
    .zvistka-header-wordmark,
    .zvistka-header-lockup {
        width: clamp(100px, calc(100vw - 220px), 140px);
    }
}
