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

.asteron-palette-alternative-1 {
    --asteron-night: #0b2134;
    --asteron-navy: #194263;
    --asteron-ink: #162a3a;
    --asteron-ice: #e8f4f8;
    --asteron-cyan: #5aa6ba;
    --asteron-copper: #d19a67;
    --asteron-paper: #ffffff;
    --asteron-line: #bfd5de;
    --asteron-muted: #5b727d;
}

.asteron-palette-alternative-2 {
    --asteron-night: #4a251e;
    --asteron-navy: #714135;
    --asteron-ink: #38231e;
    --asteron-ice: #f8e9e2;
    --asteron-cyan: #c66e5b;
    --asteron-copper: #9f4b38;
    --asteron-paper: #fffaf6;
    --asteron-line: #e2c6bb;
    --asteron-muted: #796159;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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