/** NEWS4J frontend layout. */
.news4j-surface {
    display: block;
    position: relative;
    isolation: isolate;
    container-name: news4j;
    container-type: inline-size;
    min-width: 0;
    min-height: var(--news4j-surface-min-height, 80px);
    margin: var(--news4j-surface-margin, 0);
    padding: var(--news4j-surface-padding, 24px);
    overflow: hidden;
    box-sizing: border-box;
    border-width: var(--news4j-surface-border-width, 0);
    border-style: var(--news4j-surface-border-style, solid);
    border-color: var(--news4j-surface-border-color, transparent);
    border-radius: var(--news4j-surface-radius, 16px);
    background-color: var(--news4j-surface-background-color, transparent);
    box-shadow: none;
}

.news4j-surface::before,
.news4j-surface::after,
.news4j-news-tile::before,
.news4j-news-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.news4j-surface::before {
    z-index: 0;
    background-image: var(--news4j-surface-image, none);
    background-position: var(--news4j-surface-image-position, center center);
    background-size: var(--news4j-surface-image-size, cover);
    background-repeat: var(--news4j-surface-image-repeat, no-repeat);
    opacity: var(--news4j-surface-image-opacity, 1);
}

.news4j-surface::after {
    z-index: 1;
    background-image: var(--news4j-surface-overlay, none);
}

.news4j-news-grid {
    display: grid;
    position: relative;
    z-index: 2;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    min-width: 0;
    min-height: clamp(320px, 32vw, 460px);
    min-height: clamp(320px, 32cqw, 460px);
}

.news4j-news-grid--count-1 {
    grid-template-columns: minmax(0, 1fr);
    min-height: clamp(260px, 30vw, 420px);
    min-height: clamp(260px, 30cqw, 420px);
}

.news4j-news-grid__side {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
    min-height: 0;
}

.news4j-news-grid--count-2 .news4j-news-grid__side {
    grid-template-rows: minmax(0, 1fr);
}

.news4j-news-tile {
    display: flex;
    position: relative;
    isolation: isolate;
    align-items: flex-start;
    min-width: 0;
    min-height: var(--news4j-tile-min-height, 0);
    margin: var(--news4j-tile-margin, 0);
    overflow: hidden;
    box-sizing: border-box;
    border-width: var(--news4j-tile-border-width, 1px);
    border-style: var(--news4j-tile-border-style, solid);
    border-color: var(--news4j-tile-border-color, rgba(11, 79, 138, .10));
    border-radius: var(--news4j-tile-radius, 12px);
    background-color: var(--news4j-tile-background-color, rgba(255, 255, 255, .88));
}

.news4j-news-tile::before {
    z-index: 0;
    background-image: var(--news4j-tile-image, none);
    background-position: var(--news4j-tile-image-position, center center);
    background-size: var(--news4j-tile-image-size, cover);
    background-repeat: var(--news4j-tile-image-repeat, no-repeat);
    opacity: var(--news4j-tile-image-opacity, 1);
}

.news4j-news-tile::after {
    z-index: 1;
    background-image: var(--news4j-tile-overlay, none);
}

.news4j-news-tile__content {
    display: flex;
    position: relative;
    z-index: 2;
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    padding: var(--news4j-tile-padding, clamp(18px, 2.2vw, 32px));
    box-sizing: border-box;
}

.news4j-news-tile--side .news4j-news-tile__content {
    padding: var(--news4j-tile-padding, clamp(16px, 1.6vw, 24px));
}

.news4j-news-tile__title {
    margin: 0;
    color: #243043;
    font-size: clamp(1.15rem, 1.8vw, 1.65rem);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.news4j-news-tile--featured .news4j-news-tile__title {
    color: var(--news4j-featured-title-color, #243043);
    font-family: var(--news4j-featured-title-font-family, inherit);
    font-size: var(--news4j-featured-title-font-size, 38px);
    font-weight: var(--news4j-featured-title-font-weight, 700);
    line-height: var(--news4j-featured-title-line-height, 1.2);
}

.news4j-news-tile--side .news4j-news-tile__title {
    color: var(--news4j-side-title-color, #243043);
    font-family: var(--news4j-side-title-font-family, inherit);
    font-size: var(--news4j-side-title-font-size, 20px);
    font-weight: var(--news4j-side-title-font-weight, 700);
    line-height: var(--news4j-side-title-line-height, 1.2);
}

.news4j-news-tile__title-link,
.news4j-news-tile__title-link:visited {
    color: inherit;
    text-decoration: none;
}

.news4j-news-tile__title-link:hover,
.news4j-news-tile__title-link:focus-visible {
    color: inherit;
    text-decoration: none;
}

.news4j-news-tile__date {
    display: block;
    margin-top: .45rem;
    color: var(--news4j-featured-date-color, #5d6979);
    font-family: var(--news4j-featured-date-font-family, inherit);
    font-size: var(--news4j-featured-date-font-size, 14px);
    font-weight: var(--news4j-featured-date-font-weight, 400);
    line-height: var(--news4j-featured-date-line-height, 1.35);
}

.news4j-news-tile--side .news4j-news-tile__date {
    margin-top: .35rem;
    color: var(--news4j-side-date-color, #5d6979);
    font-family: var(--news4j-side-date-font-family, inherit);
    font-size: var(--news4j-side-date-font-size, 12px);
    font-weight: var(--news4j-side-date-font-weight, 400);
    line-height: var(--news4j-side-date-line-height, 1.3);
}

.news4j-news-tile__excerpt {
    display: flow-root;
    margin-top: 1rem;
}

.news4j-news-tile--side .news4j-news-tile__excerpt {
    margin-top: .65rem;
}

.news4j-news-tile__thumbnail-link {
    display: block;
    width: var(--news4j-featured-image-width, 50px);
    height: var(--news4j-featured-image-height, 50px);
    max-width: min(50%, var(--news4j-featured-image-width, 50px));
    margin-top: .2em;
    overflow: hidden;
    border-radius: var(--news4j-featured-image-radius, 6px);
}

.news4j-news-tile__thumbnail-link--left {
    float: left;
    margin-right: var(--news4j-featured-image-gap, 12px);
    margin-bottom: .35rem;
}

.news4j-news-tile__thumbnail-link--right {
    float: right;
    margin-bottom: .35rem;
    margin-left: var(--news4j-featured-image-gap, 12px);
}

.news4j-news-tile__thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: inherit;
    object-fit: var(--news4j-featured-image-fit, cover);
}

.news4j-news-tile__text {
    margin: 0;
    color: var(--news4j-featured-text-color, #243043);
    font-family: var(--news4j-featured-text-font-family, inherit);
    font-size: var(--news4j-featured-text-font-size, 16px);
    font-weight: var(--news4j-featured-text-font-weight, 400);
    line-height: var(--news4j-featured-text-line-height, 1.55);
    text-align: var(--news4j-featured-text-align, left);
    overflow-wrap: anywhere;
    hyphens: auto;
}

.news4j-news-tile--side .news4j-news-tile__text {
    color: var(--news4j-side-text-color, #243043);
    font-family: var(--news4j-side-text-font-family, inherit);
    font-size: var(--news4j-side-text-font-size, 13px);
    font-weight: var(--news4j-side-text-font-weight, 400);
    line-height: var(--news4j-side-text-line-height, 1.45);
    text-align: var(--news4j-side-text-align, left);
}

.news4j-news-tile__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: var(--news4j-featured-button-justify, flex-start);
    gap: var(--news4j-featured-button-gap, 10px);
    margin-top: auto;
    padding-top: 1.25rem;
}

.news4j-news-tile--side .news4j-news-tile__actions {
    justify-content: var(--news4j-side-button-justify, flex-start);
    gap: var(--news4j-side-button-gap, 6px);
    padding-top: .8rem;
}

.news4j-news-tile__button,
.news4j-news-tile__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: var(--news4j-featured-button-padding-y, 10px) var(--news4j-featured-button-padding-x, 16px);
    border: 1px solid transparent;
    border-radius: var(--news4j-featured-button-radius, 8px);
    font-size: var(--news4j-featured-button-font-size, 15px);
    font-weight: var(--news4j-featured-button-font-weight, 600);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: filter .18s ease, transform .18s ease;
}

.news4j-news-tile--side .news4j-news-tile__button,
.news4j-news-tile--side .news4j-news-tile__button:visited {
    padding: var(--news4j-side-button-padding-y, 6px) var(--news4j-side-button-padding-x, 9px);
    border-radius: var(--news4j-side-button-radius, 6px);
    font-size: var(--news4j-side-button-font-size, 12px);
    font-weight: var(--news4j-side-button-font-weight, 600);
}

.news4j-news-tile__button:hover {
    text-decoration: none;
    filter: brightness(.94);
    transform: translateY(-1px);
}

.news4j-news-tile__button--article,
.news4j-news-tile__button--article:visited {
    border-color: var(--news4j-featured-article-button-border, #0b4f8a);
    background: var(--news4j-featured-article-button-bg, #0b4f8a);
    color: var(--news4j-featured-article-button-color, #ffffff);
}

.news4j-news-tile__button--category,
.news4j-news-tile__button--category:visited {
    border-color: var(--news4j-featured-category-button-border, #0b4f8a);
    background: var(--news4j-featured-category-button-bg, #ffffff);
    color: var(--news4j-featured-category-button-color, #0b4f8a);
}

.news4j-news-tile--side .news4j-news-tile__button--article,
.news4j-news-tile--side .news4j-news-tile__button--article:visited {
    border-color: var(--news4j-side-article-button-border, #0b4f8a);
    background: var(--news4j-side-article-button-bg, #0b4f8a);
    color: var(--news4j-side-article-button-color, #ffffff);
}

.news4j-news-tile--side .news4j-news-tile__button--category,
.news4j-news-tile--side .news4j-news-tile__button--category:visited {
    border-color: var(--news4j-side-category-button-border, #0b4f8a);
    background: var(--news4j-side-category-button-bg, #ffffff);
    color: var(--news4j-side-category-button-color, #0b4f8a);
}

.news4j-news-tile__button--article:hover,
.news4j-news-tile__button--article:focus-visible {
    color: var(--news4j-featured-article-button-color, #ffffff);
}

.news4j-news-tile__button--category:hover,
.news4j-news-tile__button--category:focus-visible {
    color: var(--news4j-featured-category-button-color, #0b4f8a);
}

.news4j-news-tile--side .news4j-news-tile__button--article:hover,
.news4j-news-tile--side .news4j-news-tile__button--article:focus-visible {
    color: var(--news4j-side-article-button-color, #ffffff);
}

.news4j-news-tile--side .news4j-news-tile__button--category:hover,
.news4j-news-tile--side .news4j-news-tile__button--category:focus-visible {
    color: var(--news4j-side-category-button-color, #0b4f8a);
}

.news4j-news-tile__title-link:focus-visible,
.news4j-news-tile__thumbnail-link:focus-visible,
.news4j-news-tile__button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.news4j-news-tile__stretched-link {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
    color: var(--news4j-side-title-color, #243043);
}

.news4j-news-tile__stretched-link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: -5px;
}

.news4j-news-tile--linked {
    cursor: pointer;
}

.news4j-news-tile--linked .news4j-news-tile__content {
    z-index: 3;
    pointer-events: none;
}

.news4j-news-tile--linked .news4j-news-tile__actions {
    pointer-events: none;
}

.news4j-news-tile--linked .news4j-news-tile__button {
    pointer-events: auto;
}

@container news4j (max-width: 767px) {
    .news4j-news-grid {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .news4j-news-grid__side {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
    }

    .news4j-news-tile--featured {
        min-height: max(260px, var(--news4j-tile-min-height, 0px));
    }

    .news4j-news-tile--side {
        min-height: max(180px, var(--news4j-tile-min-height, 0px));
    }
}

@container news4j (max-width: 479px) {
    .news4j-news-tile--featured {
        min-height: max(220px, var(--news4j-tile-min-height, 0px));
    }

    .news4j-news-tile--featured .news4j-news-tile__title {
        font-size: min(var(--news4j-featured-title-font-size, 38px), 32px);
    }

    .news4j-news-tile--side {
        min-height: max(160px, var(--news4j-tile-min-height, 0px));
    }

    .news4j-news-tile--side .news4j-news-tile__title {
        font-size: min(var(--news4j-side-title-font-size, 20px), 24px);
    }
}

@supports not (container-type: inline-size) {
    @media (max-width: 767.98px) {
        .news4j-news-grid {
            grid-template-columns: minmax(0, 1fr);
            min-height: 0;
        }

        .news4j-news-grid__side {
            grid-template-columns: minmax(0, 1fr);
            grid-template-rows: none;
        }

        .news4j-news-tile--featured {
            min-height: max(260px, var(--news4j-tile-min-height, 0px));
        }

        .news4j-news-tile--side {
            min-height: max(180px, var(--news4j-tile-min-height, 0px));
        }
    }

    @media (max-width: 479.98px) {
        .news4j-news-tile--featured {
            min-height: max(220px, var(--news4j-tile-min-height, 0px));
        }

        .news4j-news-tile--featured .news4j-news-tile__title {
            font-size: min(var(--news4j-featured-title-font-size, 38px), 32px);
        }

        .news4j-news-tile--side {
            min-height: max(160px, var(--news4j-tile-min-height, 0px));
        }

        .news4j-news-tile--side .news4j-news-tile__title {
            font-size: min(var(--news4j-side-title-font-size, 20px), 24px);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .news4j-news-tile__button {
        transition: none;
    }

    .news4j-news-tile__button:hover {
        transform: none;
    }
}
