/* Card presentation; listing layout and controls stay in the widget. */
.item-news--tool {
    position: relative;
}

.item-news--tool .bivb-home-news__media--icon,
.item-news--tool .bivb-all-news__media--icon {
    background: transparent;
}

.item-news--tool .bivb-home-news__media--icon > img,
.item-news--tool .bivb-all-news__media--icon > img {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    object-fit: contain;
}

.item-news--tool .bivb-home-news__media--icon {
    border: 1px solid var(--bivb-color-border-light);
}

.item-news--tool .bivb-home-news__media--icon > img {
    width: 96px;
    height: 96px;
}

@media (max-width: 767px) {
    .item-news--tool .bivb-home-news__media--icon > img {
        width: 72px;
        height: 72px;
    }
}

.item-news__tool-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.item-news__tool-link:focus-visible {
    outline: var(--bivb-control-focus-width) solid var(--bivb-color-primary);
    outline-offset: var(--bivb-control-focus-offset);
}

@media (max-width: 1024px) {
    .item-news--tool[data-bivb-tool-availability="desktop-only"] {
        padding-right: 40px;
    }
    .item-news--tool[data-bivb-tool-availability="desktop-only"] img {
        filter: grayscale(1);
    }
    .item-news--tool[data-bivb-tool-availability="desktop-only"] .item-news__tool-link {
        display: none;
    }
}

.item-news,
.item-news *,
.item-news *::before,
.item-news *::after {
    box-sizing: border-box;
}

.item-news {
    color: var(--bivb-color-text);
    font-family: var(--bivb-font-family-base-stack);
}

.item-news[hidden] {
    display: none !important;
}

.bivb-all-news__item {
    min-width: 0;
    border-top: 1px solid var(--bivb-color-border-light);
}

.bivb-all-news__item:first-child {
    border-top: 0;
}

.bivb-all-news__card {
    display: grid;
    min-width: 0;
    grid-template-columns: 14.5em minmax(0, 1fr);
    align-items: start;
    gap: 2em;
    padding-block: 1.25em;
    color: inherit;
    text-decoration: none;
}

.bivb-all-news__item--no-media .bivb-all-news__card {
    grid-template-columns: minmax(0, 1fr);
}

.bivb-all-news__media {
    display: flex;
    width: 100%;
    min-width: 0;
    aspect-ratio: 116 / 71;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--bivb-radius-6);
    background: var(--bivb-color-surface-muted);
}

.bivb-all-news__media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bivb-all-news__media--icon {
    background: var(--bivb-color-surface-elevated);
}

.bivb-all-news__media--icon > img {
    width: 3em;
    height: 3em;
    object-fit: contain;
}

.bivb-all-news__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding-block: 0.125em;
}

.bivb-all-news__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    color: var(--bivb-color-text-meta);
    font-size: 0.8125em;
    font-weight: var(--bivb-font-weight-regular);
    line-height: 1.35;
}

.bivb-all-news__item-title {
    margin: 0.375em 0 0;
    color: var(--bivb-color-text);
    font-size: 1.125em;
    font-weight: var(--bivb-font-weight-bold);
    line-height: 1.3;
}

.bivb-all-news__card:hover .bivb-all-news__item-title {
    color: var(--bivb-color-primary);
}

.bivb-all-news__excerpt {
    display: block;
    margin-top: 0.625em;
    color: var(--bivb-color-text-meta);
    font-size: 0.9375em;
    font-weight: var(--bivb-font-weight-regular);
    line-height: 1.45;
}

.bivb-all-news__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: auto;
    padding-top: 0.875em;
}

.bivb-all-news__tags--categories {
    margin-top: 0;
    padding-top: 0.5em;
}

.bivb-all-news__tag {
    display: inline-flex;
    min-height: 1.75em;
    align-items: center;
    padding: 0.25em 0.625em;
    border: 1px solid var(--bivb-color-primary);
    border-radius: var(--bivb-radius-50);
    color: var(--bivb-color-primary);
    font-size: 0.6875em;
    font-weight: var(--bivb-font-weight-regular);
    line-height: 1;
}

@media (max-width: 767px) {

    .bivb-all-news__card {
        display: block;
        padding-block: 1.25em;
    }

    .bivb-all-news__media {
        aspect-ratio: 37 / 18;
        margin-bottom: 1.125em;
    }

    .bivb-all-news__content {
        padding-block: 0;
    }

    .bivb-all-news__meta {
        font-size: 0.75em;
        font-weight: var(--bivb-font-weight-medium);
        text-transform: uppercase;
    }

    .bivb-all-news__item-title {
        margin-top: 0.5em;
        font-size: 1em;
    }

    .bivb-all-news__excerpt {
        margin-top: 0.75em;
        font-size: 0.875em;
        line-height: 1.5;
    }

    .bivb-all-news__tags {
        margin-top: 0.875em;
        padding-top: 0;
    }
}
.bivb-all-news__item { border: 0; }
.bivb-all-news__card { align-items: center; gap: 1.25em; padding-block: 0; }
.bivb-all-news__meta { font-size: 0.875em; font-weight: var(--bivb-font-weight-medium); }
.bivb-all-news__item-title { font-weight: var(--bivb-font-weight-semibold); line-height: 1.1; }
.bivb-all-news__excerpt { color: var(--bivb-color-text-secondary, #585858); line-height: 1.4; }
.bivb-all-news__tags { padding-top: 0.625em; }
.bivb-all-news__tag { padding: 0.25em 0.5833em; font-size: 0.75em; }
@media (max-width: 767px) {
    .bivb-all-news__meta { font-size: 0.75em; }}

.bivb-all-news__card:focus-visible {
    outline: var(--bivb-control-focus-width) solid var(--bivb-color-primary);
    outline-offset: var(--bivb-control-focus-offset);
}

.bivb-home-news__card:focus-visible {
    outline: var(--bivb-control-focus-width) solid var(--bivb-color-primary);
    outline-offset: var(--bivb-control-focus-offset);
}

.bivb-home-news__item {
    min-width: 0;
    border-top: 1px solid var(--bivb-color-border-light);
}

.bivb-home-news__item:first-child {
    border-top: 0;
}

.bivb-home-news__card {
    display: grid;
    min-width: 0;
    grid-template-columns: 14.5em minmax(0, 1fr);
    align-items: start;
    gap: 2em;
    padding-block: 1.25em;
    color: inherit;
    text-decoration: none;
}

.bivb-home-news__item--no-media .bivb-home-news__card {
    grid-template-columns: minmax(0, 1fr);
}

.bivb-home-news__media {
    display: flex;
    width: 100%;
    min-width: 0;
    aspect-ratio: 116 / 71;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--bivb-radius-6);
    background: var(--bivb-color-surface-muted);
}

.bivb-home-news__media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bivb-home-news__media--icon {
    background: var(--bivb-color-surface-elevated);
}

.bivb-home-news__media--icon > img {
    width: 3em;
    height: 3em;
    object-fit: contain;
}

.bivb-home-news__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding-block: 0.125em;
}

.bivb-home-news__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    color: var(--bivb-color-text-meta);
    font-size: 0.8125em;
    font-weight: var(--bivb-font-weight-regular);
    line-height: 1.35;
}

.bivb-home-news__item-title {
    margin: 0.375em 0 0;
    color: var(--bivb-color-text);
    font-size: 1.125em;
    font-weight: var(--bivb-font-weight-bold);
    line-height: 1.3;
}

.bivb-home-news__card:hover .bivb-home-news__item-title {
    color: var(--bivb-color-primary);
}

.bivb-home-news__excerpt {
    display: block;
    margin-top: 0.625em;
    color: var(--bivb-color-text-meta);
    font-size: 0.9375em;
    font-weight: var(--bivb-font-weight-regular);
    line-height: 1.45;
}

.bivb-home-news__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: auto;
    padding-top: 0.875em;
}

.bivb-home-news__tag {
    display: inline-flex;
    min-height: 1.75em;
    align-items: center;
    padding: 0.25em 0.625em;
    border: 1px solid var(--bivb-color-primary);
    border-radius: var(--bivb-radius-50);
    color: var(--bivb-color-primary);
    font-size: 0.6875em;
    font-weight: var(--bivb-font-weight-regular);
    line-height: 1;
}

@media (max-width: 767px) {

    .bivb-home-news__card {
        display: block;
        padding-block: 1.25em;
    }

    .bivb-home-news__media {
        aspect-ratio: 37 / 18;
        margin-bottom: 1.125em;
    }

    .bivb-home-news__content {
        padding-block: 0;
    }

    .bivb-home-news__meta {
        font-size: 0.75em;
        font-weight: var(--bivb-font-weight-medium);
        text-transform: uppercase;
    }

    .bivb-home-news__item-title {
        margin-top: 0.5em;
        font-size: 1em;
    }

    .bivb-home-news__excerpt {
        margin-top: 0.75em;
        font-size: 0.875em;
        line-height: 1.5;
    }

    .bivb-home-news__tags {
        margin-top: 0.875em;
        padding-top: 0;
    }
}
