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

.cirevia-palette-alternative-1 {
    --cirevia-ink: #172b38;
    --cirevia-muted: #60747f;
    --cirevia-violet: #285f7f;
    --cirevia-blue: #2f88b8;
    --cirevia-coral: #d78659;
    --cirevia-mint: #dff2f1;
    --cirevia-lilac: #e7eef7;
    --cirevia-cream: #f4f7f8;
    --cirevia-paper: #ffffff;
    --cirevia-line: #c6d8df;
    --cirevia-soft-line: rgba(40, 95, 127, 0.18);
}

.cirevia-palette-alternative-2 {
    --cirevia-ink: #39241e;
    --cirevia-muted: #7a6259;
    --cirevia-violet: #8a4533;
    --cirevia-blue: #bd6d4d;
    --cirevia-coral: #d84f3d;
    --cirevia-mint: #f5e4d8;
    --cirevia-lilac: #f2ded8;
    --cirevia-cream: #faf2ec;
    --cirevia-paper: #fffaf6;
    --cirevia-line: #e1c8bd;
    --cirevia-soft-line: rgba(138, 69, 51, 0.18);
}

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

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

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

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

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

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

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

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

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

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

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

.cirevia-density-compact :is(.cirevia-widget-deck, .cirevia-card-grid, .cirevia-latest, main > section) {
    gap: 1rem;
    margin-block: 1.5rem;
}

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

.cirevia-density-relaxed :is(.cirevia-widget-deck, .cirevia-card-grid, .cirevia-latest, main > section) {
    gap: 2rem;
    margin-block: 3rem;
}

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

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

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

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

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

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

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

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

.cirevia-preset-editorial :is(.cirevia-site-header) {
    background: #182733;
    color: #fff;
}

.cirevia-preset-editorial :is(.cirevia-primary-navigation) a {
    color: #fff;
}

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

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

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

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

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

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

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

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

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

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

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