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

.fiorena-palette-alternative-1 {
    --fiorena-bg: #eaf1f2;
    --fiorena-paper: #ffffff;
    --fiorena-ink: #193039;
    --fiorena-deep: #24434a;
    --fiorena-sage: #d9e8e9;
    --fiorena-sage-dark: #5f7f83;
    --fiorena-accent: #3e8391;
    --fiorena-accent-soft: #d2e8ec;
    --fiorena-line: rgba(25, 48, 57, 0.22);
}

.fiorena-palette-alternative-2 {
    --fiorena-bg: #f7ece7;
    --fiorena-paper: #fffaf7;
    --fiorena-ink: #3c2822;
    --fiorena-deep: #5b352a;
    --fiorena-sage: #eadbcf;
    --fiorena-sage-dark: #8b6b5e;
    --fiorena-accent: #b64e3b;
    --fiorena-accent-soft: #f0d2c7;
    --fiorena-line: rgba(60, 40, 34, 0.22);
}

.fiorena-brand-island .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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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