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

.helvane-palette-alternative-1 {
    --helvane-paper: #f2f6f7;
    --helvane-ivory: #e4ecee;
    --helvane-white: #ffffff;
    --helvane-ink: #1f3035;
    --helvane-muted: #60757a;
    --helvane-aubergine: #15333a;
    --helvane-wine: #2f7180;
    --helvane-wine-light: #5b93a0;
    --helvane-copper: #ad8755;
    --helvane-line: #c7d7da;
}

.helvane-palette-alternative-2 {
    --helvane-paper: #fbf0e9;
    --helvane-ivory: #f2dfd4;
    --helvane-white: #fffaf6;
    --helvane-ink: #3a2925;
    --helvane-muted: #80665d;
    --helvane-aubergine: #4a2729;
    --helvane-wine: #a94f48;
    --helvane-wine-light: #c77569;
    --helvane-copper: #b77b42;
    --helvane-line: #e0c5b7;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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