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

.orventa-palette-alternative-1 {
    --orventa-bg: #eef5f4;
    --orventa-paper: #ffffff;
    --orventa-paper-2: #dfecea;
    --orventa-ink: #172b2d;
    --orventa-muted: #607779;
    --orventa-dark: #17393c;
    --orventa-blue: #247f87;
    --orventa-blue-dark: #195d63;
    --orventa-mint: #a9dfd2;
    --orventa-line: #c5d9d6;
    --orventa-soft: #d9e9e6;
}

.orventa-palette-alternative-2 {
    --orventa-bg: #f8eee8;
    --orventa-paper: #fffaf6;
    --orventa-paper-2: #eedfd5;
    --orventa-ink: #3b2924;
    --orventa-muted: #806b62;
    --orventa-dark: #4a2d28;
    --orventa-blue: #b35e45;
    --orventa-blue-dark: #874431;
    --orventa-mint: #e1c6ad;
    --orventa-line: #ddc5b8;
    --orventa-soft: #f0ddd2;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.orventa-type-scale-small .orventa-archive-copy h2 {
    font-size: 1.2rem;
    line-height: 1.16;
}

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

.orventa-type-scale-large .orventa-archive-copy h2 {
    font-size: 1.58rem;
    line-height: 1.12;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .orventa-type-scale-large .orventa-archive-copy h2 {
        font-size: 1.12rem;
        line-height: 1.16;
    }
}
