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

.monvera-palette-alternative-1 {
    --monvera-bg: #edf3f4;
    --monvera-paper: #ffffff;
    --monvera-paper-2: #dfe9ea;
    --monvera-ink: #1c2c30;
    --monvera-muted: #66787b;
    --monvera-dark: #1f3c43;
    --monvera-accent: #2f8290;
    --monvera-accent-dark: #24636d;
    --monvera-line: #c6d7da;
    --monvera-soft: #dcebed;
}

.monvera-palette-alternative-2 {
    --monvera-bg: #f7eef1;
    --monvera-paper: #fffafd;
    --monvera-paper-2: #eadce2;
    --monvera-ink: #38262f;
    --monvera-muted: #7b6870;
    --monvera-dark: #492c3a;
    --monvera-accent: #b44f68;
    --monvera-accent-dark: #86394d;
    --monvera-line: #ddc6cf;
    --monvera-soft: #f0dfe5;
}

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

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

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

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

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

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

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

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

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

.monvera-content-width-wide :is(.monvera-entry-content, .monvera-single-tags, #comments) {
    max-width: 980px;
}

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

.monvera-density-compact :is(.monvera-hero, .monvera-widget-deck, .monvera-archive-grid, .monvera-single-body, main > section) {
    gap: 1rem;
    margin-block: 1.5rem;
}

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

.monvera-density-relaxed :is(.monvera-hero, .monvera-widget-deck, .monvera-archive-grid, .monvera-single-body, main > section) {
    gap: 2rem;
    margin-block: 3rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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