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

.belmora-palette-alternative-1 {
    --belmora-paper: #eef3f7;
    --belmora-sheet: #ffffff;
    --belmora-ink: #142637;
    --belmora-muted: #5d6f7b;
    --belmora-line: #b8cad5;
    --belmora-soft-line: #d7e2e8;
    --belmora-accent: #7fc7dc;
    --belmora-accent-dark: #285d76;
    --belmora-orange: #d8874d;
}

.belmora-palette-alternative-2 {
    --belmora-paper: #f7eee8;
    --belmora-sheet: #fffaf6;
    --belmora-ink: #35241f;
    --belmora-muted: #78635b;
    --belmora-line: #d8c2b8;
    --belmora-soft-line: #eadbd3;
    --belmora-accent: #efb16f;
    --belmora-accent-dark: #8b4935;
    --belmora-orange: #cf5e3e;
}

.belmora-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;
}

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

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

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

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

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

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

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

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

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

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

.belmora-density-compact :is(.belmora-widget-deck, .belmora-archive-ledger, main > section) {
    gap: 1rem;
    margin-block: 1.5rem;
}

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

.belmora-density-relaxed :is(.belmora-widget-deck, .belmora-archive-ledger, main > section) {
    gap: 2rem;
    margin-block: 3rem;
}

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

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

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

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

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

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

.belmora-decoration-low :is(.belmora-archive-row, .belmora-widget-grid > .widget, article) {
    box-shadow: none !important;
}

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

.belmora-preset-editorial :is(.belmora-site-header) {
    background: #182733;
    color: #fff;
}

.belmora-preset-editorial :is(.belmora-primary-navigation) a {
    color: #fff;
}

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

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

.belmora-contrast-high :is(.belmora-archive-row, .belmora-widget-grid > .widget, article) {
    border-color: currentColor;
}

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

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

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

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

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

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

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

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