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

.ismera-palette-alternative-1 {
    --ismera-paper: #f1f8f7;
    --ismera-white: #ffffff;
    --ismera-black: #142526;
    --ismera-ink: #203839;
    --ismera-muted: #667b7b;
    --ismera-cobalt: #147d82;
    --ismera-cobalt-dark: #0d5b5f;
    --ismera-coral: #e66d6d;
    --ismera-lilac: #e1f0ef;
    --ismera-yellow: #e7c95c;
    --ismera-line: #c8dada;
}

.ismera-palette-alternative-2 {
    --ismera-paper: #faf1f6;
    --ismera-white: #fffafd;
    --ismera-black: #231522;
    --ismera-ink: #382438;
    --ismera-muted: #7b6578;
    --ismera-cobalt: #8a3f78;
    --ismera-cobalt-dark: #642a57;
    --ismera-coral: #cf6656;
    --ismera-lilac: #f0dfeb;
    --ismera-yellow: #d9a847;
    --ismera-line: #dec8d7;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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