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

.briona-palette-alternative-1 {
    --briona-wine: #173d59;
    --briona-wine-deep: #0c263a;
    --briona-ink: #1e2f3b;
    --briona-paper: #f4f8fa;
    --briona-sheet: #ffffff;
    --briona-blush: #d8e9ef;
    --briona-mustard: #c99346;
    --briona-sage: #8eb0b8;
    --briona-line: #bfd0d5;
    --briona-muted: #62747a;
}

.briona-palette-alternative-2 {
    --briona-wine: #6a352c;
    --briona-wine-deep: #422019;
    --briona-ink: #3b2b26;
    --briona-paper: #fbf4ee;
    --briona-sheet: #fffaf5;
    --briona-blush: #eed2c5;
    --briona-mustard: #d29a3f;
    --briona-sage: #a9a48c;
    --briona-line: #d6bfb2;
    --briona-muted: #77655d;
}

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

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

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

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

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

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

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

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

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

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

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

.briona-density-compact :is(.briona-cabinet, .briona-editorial-desk, .briona-index-cards, main > section) {
    gap: 1rem;
    margin-block: 1.5rem;
}

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

.briona-density-relaxed :is(.briona-cabinet, .briona-editorial-desk, .briona-index-cards, main > section) {
    gap: 2rem;
    margin-block: 3rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

.briona-contrast-high :is(.briona-archive-card, .briona-desk-card, .briona-drawer, article) {
    border-color: currentColor;
}

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

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

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

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

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

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

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

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