/**
 * Wspólne opcje Ediva dla motywu Yverna.
 * Warstwa B4 zachowuje oryginalny layout i mapuje wspólny kontrakt
 * na istniejące selektory oraz zmienne tego motywu.
 */

.yverna-palette-alternative-1 {
    --yverna-ink: #17313a;
    --yverna-forest: #214954;
    --yverna-clay: #3f8592;
    --yverna-paper: #eef4f4;
    --yverna-white: #ffffff;
    --yverna-sage: #c5dcdd;
    --yverna-line: #c5d5d7;
    --yverna-muted: #62777c;
}

.yverna-palette-alternative-2 {
    --yverna-ink: #3b2924;
    --yverna-forest: #4e3029;
    --yverna-clay: #b66145;
    --yverna-paper: #f8eee7;
    --yverna-white: #fffaf6;
    --yverna-sage: #dfc4ad;
    --yverna-line: #ddc5b7;
    --yverna-muted: #806a60;
}

.yverna-brand .custom-logo-link {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgba(20, 32, 40, 0.16);
    border-radius: 4px;
    background: #fff;
    line-height: 0;
}

.yverna-brand .custom-logo-link .custom-logo,
.yverna-brand .custom-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
}

.yverna-logo-small .yverna-brand .custom-logo {
    max-width: 164px;
    max-height: 52px;
}

.yverna-logo-normal .yverna-brand .custom-logo {
    max-width: 210px;
    max-height: 68px;
}

.yverna-logo-large .yverna-brand .custom-logo {
    max-width: 270px;
    max-height: 86px;
}

.yverna-content-width-narrow :is(.yverna-main, main) {
    width: min(100% - 2rem, 1180px);
    margin-inline: auto;
}

.yverna-content-width-standard :is(.yverna-main, main) {
    width: min(100% - 2rem, 1360px);
    margin-inline: auto;
}

.yverna-content-width-wide :is(.yverna-main, main) {
    width: min(100% - 2rem, 1540px);
    margin-inline: auto;
}

.yverna-content-width-narrow :is(.yverna-entry-content, .entry-content, .yverna-entry-footer, #comments) {
    max-width: 760px;
    margin-inline: auto;
}

.yverna-content-width-wide :is(.yverna-entry-content, .entry-content, .yverna-entry-footer, #comments) {
    max-width: 980px;
}

.yverna-density-compact :is(.yverna-main, main) {
    margin-top: 1.25rem;
}

.yverna-density-compact :is(.yverna-single-hero, .yverna-archive-list, .yverna-single-layout, main > section) {
    gap: 1rem;
    margin-block: 1.5rem;
}

.yverna-density-relaxed :is(.yverna-main, main) {
    margin-top: 2.5rem;
}

.yverna-density-relaxed :is(.yverna-single-hero, .yverna-archive-list, .yverna-single-layout, main > section) {
    gap: 2rem;
    margin-block: 3rem;
}

.yverna-type-scale-small :is(.yverna-single-title-card h1, .yverna-archive-heading h1, .archive-title, .yverna-widget .widget-title) {
    font-size: clamp(1.8rem, 3.4vw, 3.6rem);
}

.yverna-type-scale-large :is(.yverna-single-title-card h1, .yverna-archive-heading h1, .archive-title, .yverna-widget .widget-title) {
    font-size: clamp(2.65rem, 5.4vw, 5.8rem);
}

.yverna-image-emphasis-low :is(.yverna-single-image, .yverna-archive-image, article .wp-post-image) {
    max-height: 300px;
    object-fit: cover;
}

.yverna-image-emphasis-high :is(.yverna-single-image, .yverna-archive-image, article .wp-post-image) {
    min-height: 320px;
    max-height: 620px;
    object-fit: cover;
}

.yverna-accent-strength-muted :is(.yverna-single-title-card h1, .yverna-archive-heading h1, .archive-title, .yverna-widget .widget-title) {
    border-color: currentColor;
    border-width: 1px;
}

.yverna-accent-strength-strong :is(.yverna-single-title-card h1, .yverna-archive-heading h1, .archive-title, .yverna-widget .widget-title) {
    border-color: currentColor;
    border-width: 4px;
}

.yverna-decoration-low :is(.yverna-page-card, .yverna-widget, article) {
    box-shadow: none !important;
}

.yverna-preset-reading :is(.yverna-entry-content, .entry-content) {
    font-size: 1.08rem;
    line-height: 1.88;
}

.yverna-preset-editorial :is(.yverna-brand) {
    background: #182733;
    color: #fff;
}

.yverna-preset-editorial :is(nav) a {
    color: #fff;
}

.yverna-contrast-high {
    color: #101820;
}

.yverna-contrast-high :where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #ffb000;
    outline-offset: 3px;
}

.yverna-contrast-high :is(.yverna-page-card, .yverna-widget, article) {
    border-color: currentColor;
}

.yverna-excerpt-hidden :is(.yverna-archive-copy p, .entry-summary, [class*="-excerpt"]) {
    display: none !important;
}

.yverna-excerpt-full :is(.yverna-archive-copy p, .entry-summary, [class*="-excerpt"]) {
    line-height: 1.72;
}

:is(.yverna-entry-content, .entry-content) h1,
:is(.yverna-entry-content, .entry-content) h2,
:is(.yverna-entry-content, .entry-content) h3,
:is(.yverna-single-title-card h1, .yverna-archive-heading h1, .archive-title, .yverna-widget .widget-title) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: none;
}

@media (max-width: 760px) {
    .yverna-content-width-narrow :is(.yverna-main, main),
    .yverna-content-width-standard :is(.yverna-main, main),
    .yverna-content-width-wide :is(.yverna-main, main) {
        width: min(100% - 1.25rem, 100%);
    }

    .yverna-logo-small .yverna-brand .custom-logo {
        max-width: 146px;
        max-height: 48px;
    }

    .yverna-logo-normal .yverna-brand .custom-logo {
        max-width: 188px;
        max-height: 58px;
    }

    .yverna-logo-large .yverna-brand .custom-logo {
        max-width: 224px;
        max-height: 70px;
    }

    .yverna-type-scale-large :is(.yverna-single-title-card h1, .yverna-archive-heading h1, .archive-title, .yverna-widget .widget-title) {
        font-size: clamp(2.15rem, 10vw, 3.8rem);
    }
}
