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

.delvane-palette-alternative-1 {
    --delvane-ink: #123b4a;
    --delvane-ink-deep: #082831;
    --delvane-blue: #4f7f89;
    --delvane-blue-pale: #e4f0f0;
    --delvane-gold: #b28a4c;
    --delvane-gold-deep: #80602d;
    --delvane-paper: #fffefb;
    --delvane-canvas: #eef4f2;
    --delvane-line: #b9ceca;
    --delvane-text: #20363b;
    --delvane-muted: #687b7d;
}

.delvane-palette-alternative-2 {
    --delvane-ink: #552d2a;
    --delvane-ink-deep: #351917;
    --delvane-blue: #8e5e52;
    --delvane-blue-pale: #f5e8e2;
    --delvane-gold: #c18b45;
    --delvane-gold-deep: #8f5e2a;
    --delvane-paper: #fffaf5;
    --delvane-canvas: #f7eee8;
    --delvane-line: #ddc4b9;
    --delvane-text: #3d2925;
    --delvane-muted: #7c665f;
}

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

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

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

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

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

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

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

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

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

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

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

.delvane-density-compact :is(.delvane-widget-room, .delvane-widget-grid, .delvane-archive-grid, main > section) {
    gap: 1rem;
    margin-block: 1.5rem;
}

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

.delvane-density-relaxed :is(.delvane-widget-room, .delvane-widget-grid, .delvane-archive-grid, main > section) {
    gap: 2rem;
    margin-block: 3rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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