/* ------------- 
 Section: News 
------------- */

section#news {
    background: transparent;
    /* background: linear-gradient(318deg, rgba(71, 167, 183, 1) 0%, rgba(55, 156, 214, 1) 100%); */
    padding: 0;
    display: flex;
    flex-direction: column;
}

section#news .heading_withlink::before {
    -webkit-mask: url('https://static.mrwebsites.ca/icon/fa/solid/newspaper.svg') no-repeat center / contain;
    mask: url('https://static.mrwebsites.ca/icon/fa/solid/newspaper.svg') no-repeat center / contain;
}

.news_widget {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    color: var(--mr-color-light);
    gap: 1em;
}

.news_widget .news_item {
    width: 100%;
}

.news_more {
    width: calc(40% - 2em);
    min-width: 234px;
    flex-grow: 1;
    margin: 0 1em;
}

.news_widget .news_item {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0 15px;
    flex-grow: 1;
    /* flex-wrap: wrap; */
    background: var(--mr-card-surface-soft);
    margin-bottom: .5rem;
    color: var(--mr-color-text);
    align-items: center;
    border: var(--mr-card-border);
    border-radius: var(--mr-card-border-radius);
    box-shadow: none;
    overflow: hidden;
}

.news_widget .news_item .news_img {
    /* background-size: cover; */
    /* background-repeat: no-repeat; */
    /* background-position: center; */
    /* margin: 0 1em 1em; */
    /* width: 200px; */
    /* min-width: 30px; */
    flex-grow: 0;
    /* min-height: auto; */
    height: 100%;
    flex-grow: 1;
    max-height: 270px;
}

.news_listings .news_item {
    position: relative;
    background: var(--mr-card-surface-soft);
    padding: var(--mr-card-padding);
    margin-bottom: 1em;
    border: var(--mr-card-border);
    border-radius: var(--mr-card-border-radius);
}

.news_item h2 {
    margin-top: 0;
}

.news_details {
    /* width: calc(100% - 280px); */
    /* padding: 0 0.5em; */
    flex-grow: 1;
    min-width: 65%;
    margin: 0;
    padding: 1rem 2rem;
}

.news_description {
    font-size: clamp(16px, 1.5vw, 1rem);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.news_title {
    color: var(--mr-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(22px, 2vw, 1.7rem);
    line-height: 1.1;
    /* margin-bottom: 0.5em; */
    display: block;
    text-transform: none;
    text-transform: uppercase;
}

.news_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin: 0;
}

.news_tag {
    background: var(--mr-badge-surface);
    color: var(--mr-badge-text);
    border-radius: var(--mr-badge-radius);
    padding: var(--mr-badge-padding-y) var(--mr-badge-padding-x);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news_widget .load_more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid var(--mr-color-accent);
    color: var(--mr-color-accent);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    background: transparent;
}

.news_widget .load_more:hover {
    border: 1px solid var(--mr-color-accent-shade);
    transform: none;
    box-shadow: none;
    background: color-mix(in srgb, var(--mr-color-accent) 10%, transparent);
}

.news_widget .load_more span {
    display: inline-flex;
    align-items: center;
}

.news_read_more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f172a;
    text-decoration: none;
    margin-top: 0.35rem;
}

.news_read_more:hover {
    text-decoration: underline;
}

.news_more .news_item .news_img,
.news_more .news_item .news_description {
    display: none;
}

.news_more .news_details {
    width: 100%;
    margin: 0;
}

.news_more .news_item {
    border-bottom: 3px solid white;
    margin-bottom: 1em;
}

.news_more .news_title {
    font-size: 1.4em;
}

.news_title:hover {
    /* color: black; */
    text-decoration: underline;
}

.news_story {
    /* flex-direction: column; */
    background: transparent;
    display: flex;
    width: calc(100% - 14em);
    margin: auto;
    position: relative;
    padding: 0;
    text-align: left;
    color: #000000;
    box-shadow: none;
    width: calc(100% - 14em);
    height: 100%;
    border-radius: var(--mr-card-border-radius);
    overflow: hidden;
    text-decoration: none;
}

.news_date {
    color: #8b8b8b;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--mr-color-contrast);
    /* width: 100%; */
    font-weight: 700;
    margin-bottom: 0;
    margin-right: 1rem;
}

.news_content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 2em;
    justify-content: center;
    width: 74%;
    position: relative;
    letter-spacing: .06em;
}

.news_photo {
    /* width: 26%; */
    /* padding-bottom: 13%; */
    /* padding-bottom: 27%; */
    display: block;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
    margin-bottom: 2em;
}

.news_summary {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    font-size: 1.2em;
}

.news_readmore {
    justify-self: self-end;
    align-self: flex-end;
    background: transparent;
    color: var(--mr-color-primary);
    font-weight: 900;
    padding: .25em 2em;
    border-top-left-radius: var(--mr-radius-lg);
    position: absolute;
    bottom: 0;
    right: 0;
    text-transform: uppercase;
    margin-bottom: 0;
}

.news_headline {
    font-size: 2em;
    font-weight: 900;
    text-decoration: none;
    margin-bottom: .25em;
}

.news_story:hover {
    color: black;
}

.news_readmore:after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: .5em;
    font-size: .9em;
    background-color: currentColor;
    -webkit-mask: url('https://static.mrwebsites.ca/icon/fa/solid/chevron-right.svg') no-repeat center / contain;
    mask: url('https://static.mrwebsites.ca/icon/fa/solid/chevron-right.svg') no-repeat center / contain;
}

.single_news .news_date,
.news_item .news_date {
    border-bottom: none;
    /* margin-bottom: .25rem; */
    display: block;
}

.news_meta_row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.news_meta_row-detail {
    margin: 0 0 1.5rem;
}

.news_date-pill {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 0.5rem 1rem;
    border-radius: var(--mr-radius-pill);
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--mr-color-text) 12%, transparent);
    color: var(--mr-color-text, #16324a);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    font-size: .95rem;
}

.news_date-pill::before {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    background-color: currentColor;
    -webkit-mask: url('https://static.mrwebsites.ca/icon/fa/solid/calendar-days.svg') no-repeat center / contain;
    mask: url('https://static.mrwebsites.ca/icon/fa/solid/calendar-days.svg') no-repeat center / contain;
}

.news_tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.news_tags_label {
    display: inline-flex;
    align-items: center;
    color: var(--mr-color-text, #16324a);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
}

.news_tag {
    display: inline-flex;
    align-items: center;
    padding: .55rem .9rem;
    border-radius: var(--mr-radius-pill);
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--mr-color-text) 12%, transparent);
    color: var(--mr-color-text, #16324a);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
}

.single_news h1 + .news_meta_row-detail {
    margin-top: .75rem;
}

.news_icon::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url('https://static.mrwebsites.ca/icon/fa/solid/newspaper.svg') no-repeat center / contain;
    mask: url('https://static.mrwebsites.ca/icon/fa/solid/newspaper.svg') no-repeat center / contain;
}

.search_results_section.showall a:nth-of-type(n + 4) {
    display: flex;
}

.news_widget h2 {
    width: 100%;
    border-bottom-color: var(--mr-color-primary);
    border-bottom-width: 5px;
}

.news_widget .news_item .news_img img {
    margin: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.news_widget .flex_holder {
    min-width: 280px;
    width: calc(33.3% - 30px);
    margin: 0 15px;
    flex-grow: 1;
}

.news_source {
    color: grey;
    order: 3;
    font-size: 1em;
}

article.news_item.featured {
    width: 100%;
    position: relative;
    padding-bottom: 45%;
}

article.news_item.featured img {
    width: 100%;
}

article.news_item.featured .news_details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    background: black;
    background: linear-gradient(0deg, rgb(39 38 38) 0%, rgba(0, 0, 0, 0) 100%);
    margin: 0;
    padding: 2rem;
    justify-content: flex-end;
    z-index: 99999;
    color: white;
}

article.news_item.featured a.news_img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
}

article.news_item {}

.news_description p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    margin: 0.4em 0;
    color: grey;
}

.featured .news_description p {
    color: #d1d0d0;
}

.featured a.news_title {
    font-size: 1.5em;
}

a.news_title:hover {
    /* color: grey; */
}

.news_item>a {
    width: 9em;
    height: 7em;
    position: relative;
}

.news_item>a img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news_block .news_widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 0;
}

@media (max-width: 640px) {
    .news_meta_row-detail {
        gap: .6rem;
    }

    .news_date-pill,
    .news_tag {
        padding: .55rem .8rem;
        font-size: .88rem;
    }
}

.news_block .flex_holder {
    display: none;
}

.news_block .news_item {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--mr-radius-lg);
    overflow: hidden;
    box-shadow: none;
    transition: border-color 0.2s ease;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
}

.news_block .news_item:hover {
    transform: none;
    box-shadow: none;
}

.news_block .news_media {
    position: relative;
    display: block;
    flex: 0 0 190px;
    aspect-ratio: 4 / 3;
    background: var(--mr-surface-muted);
    overflow: hidden;
}

.news_block .news_media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news_block .news_item > a {
    width: auto;
    height: auto;
}

.news_block .news_details {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #0f172a;
    flex-grow: 1;
    width: 100%;
}

.news_block .news_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.news_block .news_meta_row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.news_block .news_meta_row .news_meta,
.news_block .news_meta_row .news_tags {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
}

.news_block .news_title {
    color: #0f172a;
    font-size: clamp(28px, 2.5vw, 32px);
    line-height: 1.25;
    text-transform: none;
}

.news_block .news_description p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4b5563;
    margin: 0;
}

.news_block .news_source_row {
    /* margin-top: 2px; */
}

.news_block .news_source {
    color: #6b7280;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news_block .news_item.featured {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    position: relative;
    padding-bottom: 0;
    gap: 0;
}

.news_block .news_item.featured .news_media {
    position: relative;
    height: 100%;
}

.news_block .news_item.featured .news_details {
    position: static;
    background: transparent;
    margin: 0;
    z-index: auto;
    width: auto;
    min-width: auto;
}

.news_block .news_item.featured .news_media {
    flex-basis: 42%;
    min-height: 260px;
}

.news_block .news_item.featured .news_details {
    padding: 24px 28px;
}

.news_block .news_item.featured .news_title {
    font-size: clamp(22px, 2.6vw, 32px);
}

.news_block .news_item.featured .news_description p {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
}

@media (max-width: 900px) {
    .news_block .news_item,
    .news_block .news_item.featured {
        flex-direction: column;
    }

    .news_block .news_item .news_media,
    .news_block .news_item.featured .news_media {
        flex-basis: auto;
        width: 100%;
        min-height: 180px;
        max-height: 30vw;
    }
}


.featured .news_tags {
    margin: 0.35rem 0 0.5rem;
}


.news_more_wrap {
    width: 100%;
}/* STW 2026 feature overrides */
.news_widget .news_item,
.news_block .news_item {
  border: var(--mr-card-border);
  border-radius: var(--mr-card-border-radius);
  background: var(--mr-card-background);
  box-shadow: 0 10px 24px rgba(27,31,24,.08);
}
.news_widget .news_title,
.news_block .news_title {
  color: var(--mr-color-primary-shade);
  font-family: var(--mr-font-heading);
}
.news_widget .news_date,
.news_block .news_date {
  color: #697064;
}

/* St. Walburg theme overrides */
.news_widget .news_item,
.news_story,
.news_listings .news_item {
    background: var(--mr-card-background);
    border: var(--mr-card-border);
    border-radius: var(--mr-card-border-radius);
    box-shadow: none;
}

.news_title,
.news_headline {
    color: var(--mr-color-dark);
    text-transform: none;
    font-family: var(--mr-font-heading);
}

.news_date,
.news_source,
.news_description p {
    color: color-mix(in srgb, var(--mr-color-text) 68%, #fff);
}

.news_tag {
    background: color-mix(in srgb, var(--mr-color-tertiary) 20%, #fff);
    color: var(--mr-color-dark);
}

.news_widget .load_more {
    border-color: var(--mr-color-primary);
    color: var(--mr-color-primary);
}

.news_widget .load_more:hover {
    border-color: var(--mr-color-primary-shade);
    background: color-mix(in srgb, var(--mr-color-primary) 12%, #fff);
}

.news_read_more,
.news_readmore {
    color: var(--mr-color-primary);
    background: transparent;
}

article.news_item.featured .news_details {
    background: transparent;
}

/* News widget appearance defaults. These rules define the functional contract
   for the shared Full/Compact and Stacked/Tiled settings. Theme styles loaded
   after this file may refine the presentation without having to create layouts. */
.widget-latestnews .news_date_full {
    display: inline;
}

.widget-latestnews .latest-news_widget_view-all {
    --mr-btn-bg: transparent;
    --mr-btn-bg-hover: transparent;
    --mr-btn-border: transparent;
    --mr-btn-border-hover: transparent;
    --mr-btn-color: var(--mr-color-primary-shade, var(--mr-color-primary, #174f38));
    --mr-btn-color-hover: var(--mr-color-primary, #174f38);
    --mr-btn-icon: url('https://static.mrwebsites.ca/icon/fa/solid/arrow-right.svg');
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    width: 100%;
    min-height: 0;
    margin-top: 1rem;
    padding: 1rem 0 0;
    border: 0;
    border-top: 1px solid var(--mr-card-border-color, rgba(38, 49, 58, .18));
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--mr-btn-color) !important;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    text-transform: none;
    opacity: 1;
}

.widget-latestnews .latest-news_widget_view-all:hover,
.widget-latestnews .latest-news_widget_view-all:focus-visible {
    border-top-color: var(--mr-card-border-color, rgba(38, 49, 58, .18));
    background: transparent;
    color: var(--mr-btn-color-hover) !important;
    text-decoration: underline !important;
    transform: none;
}

:is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

:is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item {
    display: grid;
    grid-template-columns: minmax(180px, 30%) minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin: 0;
}

:is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item:not(:has(.news_media)) {
    grid-template-columns: minmax(0, 1fr);
}

:is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_media {
    width: 100%;
    height: 100%;
    min-height: 180px;
}

:is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_details {
    grid-column: 2;
    min-width: 0;
}

:is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item:not(:has(.news_media)) .news_details {
    grid-column: 1;
}

/* Full / stacked reads as an editorial list rather than a column of cards. */
:is(.mr-widget-density-full, .ws-widget-density-full):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item,
:is(.mr-widget-density-full, .ws-widget-density-full):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item:not(:has(.news_media)) {
    padding: clamp(1.4rem, 2vw, 2rem) 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

:is(.mr-widget-density-full, .ws-widget-density-full):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item + .news_item {
    border-top: 1px solid var(--mr-rural-line, var(--mr-card-border-color, rgba(38, 49, 58, .18)));
}

:is(.mr-widget-density-full, .ws-widget-density-full):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_details,
:is(.mr-widget-density-full, .ws-widget-density-full):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item:not(:has(.news_media)) .news_details {
    padding: 0;
}

:is(.mr-widget-layout-tiled, .ws-widget-layout-tiled) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
}

:is(.mr-widget-layout-tiled, .ws-widget-layout-tiled) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item,
:is(.mr-widget-layout-tiled, .ws-widget-layout-tiled) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item:not(:has(.news_media)) {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

:is(.mr-widget-layout-tiled, .ws-widget-layout-tiled) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_media {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
}

:is(.mr-widget-layout-tiled, .ws-widget-layout-tiled) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_details,
:is(.mr-widget-layout-tiled, .ws-widget-layout-tiled) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item:not(:has(.news_media)) .news_details {
    width: 100%;
    min-width: 0;
    padding: 1.5rem;
}

:is(.mr-widget-density-compact, .ws-widget-density-compact) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item {
    box-shadow: none;
}

:is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--mr-rural-line);
    border-radius: 0;
    background: transparent;
}

:is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item:not(:has(.news_media)) {
    grid-template-columns: minmax(0, 1fr);
}

:is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_media {
    width: 120px;
    height: 90px;
    min-height: 0;
}

:is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_details {
    padding: 0;
}

:is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-tiled, .ws-widget-layout-tiled) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

:is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-tiled, .ws-widget-layout-tiled) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_details {
    padding: 1rem;
}

@media (max-width: 640px) {
    /* Compact / stacked remains a thumbnail-led row on phones. Fluid media
       sizing protects the text column at the narrowest supported widths. */
    :is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item {
        grid-template-columns: clamp(80px, 26vw, 96px) minmax(0, 1fr);
        gap: clamp(.7rem, 3.5vw, .9rem);
        align-items: start;
        padding: .9rem 0;
    }

    :is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item:not(:has(.news_media)) {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    :is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_media,
    :is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item > a {
        grid-column: 1;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 4 / 3;
    }

    :is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_details {
        grid-column: 2;
        width: 100%;
        min-width: 0;
        padding: 0;
    }

    :is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item:not(:has(.news_media)) .news_details {
        grid-column: 1;
    }

    :is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_title,
    :is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_description p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    :is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_read_more {
        min-height: 24px;
        padding-block: 2px;
    }

    /* Full / stacked becomes a true single-column story on phones. Keep the
       density in this selector so theme-level desktop sizing cannot reopen a
       narrow second grid track. */
    :is(.mr-widget-density-full, .ws-widget-density-full):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item,
    :is(.mr-widget-density-full, .ws-widget-density-full):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item:not(:has(.news_media)) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 1rem 0;
    }

    :is(.mr-widget-density-full, .ws-widget-density-full):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_media,
    :is(.mr-widget-density-full, .ws-widget-density-full):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item > a {
        grid-column: 1;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 9;
    }

    :is(.mr-widget-density-full, .ws-widget-density-full):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_details {
        grid-column: 1;
        width: 100%;
        min-width: 0;
        padding: 1rem 0 0;
    }

    :is(.mr-widget-density-full, .ws-widget-density-full):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item:not(:has(.news_media)) .news_details {
        padding-top: 0;
    }

    :is(.mr-widget-layout-tiled, .ws-widget-layout-tiled) :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Compact stacked News rows let content own the row height. The thumbnail
   crops to that height, and publication metadata becomes a quiet eyebrow
   above the title instead of competing with it. */
:is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked)
  :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item {
    align-items: stretch;
}

:is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked)
  :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_media {
    position: relative;
    align-self: stretch;
    height: 100%;
    min-height: 3.5rem;
    max-height: none;
    aspect-ratio: auto;
}

:is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked)
  :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked)
  :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_item:has(.news_media) .news_details {
    min-height: 3.5rem;
    justify-content: center;
}

:is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked)
  :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_meta {
    order: -1;
    margin-bottom: .05rem;
}

:is(.mr-widget-density-compact, .ws-widget-density-compact):is(.mr-widget-layout-stacked, .ws-widget-layout-stacked)
  :is(.widget-latestnews .news_block-latest, :is(.widget-news, .news) .news_block-feature) .news_date {
    color: var(--mr-widget-link-color, var(--mr-color-primary));
    font-family: var(--mr-font-accent, inherit);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .02em;
}

/* News detail pills need to stay readable even when broad theme rules override generic .news_tag/.news_date colors. */
.single_news .news_meta_row-detail .news_date-pill {
    background: transparent;
    color: var(--mr-tone-heading-color, var(--mr-color-dark, #16324a));
    border: 1px solid var(--mr-tone-border-color, color-mix(in srgb, var(--mr-color-primary, #16324a) 18%, #fff));
}

.single_news .news_meta_row-detail .news_tag {
    background: transparent;
    color: var(--mr-tone-heading-color, var(--mr-color-dark, #16324a));
    border: 1px solid var(--mr-tone-border-color, color-mix(in srgb, var(--mr-color-tertiary, #c6a96b) 34%, #fff));
}

.single_news .news_meta_row-detail .news_tags_label {
    color: var(--mr-tone-heading-color, var(--mr-color-dark, #16324a));
}

:is(.text-dark, .text-light, .mr-tone-dark, .mr-tone-light) .single_news .news_meta_row-detail :is(.news_date-pill, .news_tag),
.single_news:is(.text-dark, .text-light, .mr-tone-dark, .mr-tone-light) .news_meta_row-detail :is(.news_date-pill, .news_tag) {
    background: var(--mr-card-background-highlight);
    color: var(--mr-tone-heading-color);
    border-color: var(--mr-tone-border-color);
}


/* News slideshow: functional layout and accessible interaction baseline. */
.news-slideshow {
  --news-slideshow-accent: var(--mr-color-primary, #8b2331);
  --news-slideshow-surface: var(--mr-widget-surface, #fff);
  --news-slideshow-text: var(--mr-widget-text, #20252b);
  --news-slideshow-on-media: #fff;
  --news-slideshow-radius: var(--mr-radius-lg, 1rem);
  position: relative;
  overflow: hidden;
  color: var(--news-slideshow-text);
  background: var(--news-slideshow-surface);
  border-radius: var(--news-slideshow-radius);
}

.news-slideshow .swiper-wrapper { align-items: stretch; }
.news-slideshow__slide { position: relative; display: grid; min-height: clamp(28rem, 55vw, 44rem); height: auto; overflow: hidden; }
.news-slideshow__media, .news-slideshow__veil { position: absolute; inset: 0; }
.news-slideshow__media { overflow: hidden; background: var(--news-slideshow-text); background: color-mix(in srgb, var(--news-slideshow-accent) 18%, var(--news-slideshow-text)); }
.news-slideshow__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.news-slideshow__veil { z-index: 1; background: linear-gradient(90deg, rgb(8 12 17 / .9) 0%, rgb(8 12 17 / .64) 48%, rgb(8 12 17 / .12) 100%); }
.news-slideshow__content { position: relative; z-index: 2; align-self: end; width: min(48rem, calc(100% - 8rem)); margin: clamp(2rem, 7vw, 6rem); color: var(--news-slideshow-on-media); }
.news-slideshow__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; margin-bottom: 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.news-slideshow__tag { color: var(--news-slideshow-accent); }
.news-slideshow__title { max-width: 18ch; margin: 0; font-size: clamp(2rem, 4.4vw, 4.75rem); line-height: .98; text-wrap: balance; }
.news-slideshow__title a { color: inherit; text-decoration: none; }
.news-slideshow__title a:hover { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.news-slideshow__description { max-width: 62ch; margin: 1.25rem 0 0; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.6; }
.news-slideshow__cta { margin-top: 1.6rem; }
.news-slideshow__control { position: absolute; z-index: 5; top: 50%; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; color: var(--news-slideshow-on-media); background: rgb(0 0 0 / .42); border: 1px solid rgb(255 255 255 / .48); border-radius: 50%; transform: translateY(-50%); cursor: pointer; }
.news-slideshow__control--previous { left: 1rem; }
.news-slideshow__control--next { right: 1rem; }
.news-slideshow__control:hover { background: var(--news-slideshow-accent); }
.news-slideshow__control:focus-visible, .news-slideshow__pagination button:focus-visible, .news-slideshow a:focus-visible { outline: 3px solid var(--news-slideshow-accent); outline-offset: 3px; }
.news-slideshow__pagination { position: absolute; z-index: 5; right: 0; bottom: 1.35rem; left: 0; display: flex; justify-content: center; gap: .5rem; }
.news-slideshow__pagination .swiper-pagination-bullet { width: .65rem; height: .65rem; margin: 0; padding: 0; background: var(--news-slideshow-on-media); border: 0; opacity: .5; }
.news-slideshow__pagination .swiper-pagination-bullet-active { background: var(--news-slideshow-accent); opacity: 1; }
.news-slideshow__fallback-mark { position: absolute; inset: 0; display: grid; place-items: center; color: rgb(255 255 255 / .13); font-size: clamp(3rem, 11vw, 10rem); font-weight: 800; letter-spacing: -.05em; transform: rotate(-5deg); }
.news-slideshow__view-all { margin-top: 1.25rem; }
.news-slideshow-empty { display: grid; grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.2fr); min-height: clamp(22rem, 42vw, 34rem); overflow: hidden; color: var(--mr-widget-text, #20252b); background: var(--mr-widget-surface, #f4f2ee); }
.news-slideshow-empty__art { position: relative; display: grid; place-items: center; overflow: hidden; color: rgb(255 255 255 / .14); background: linear-gradient(145deg, var(--mr-color-secondary, #444b54), var(--mr-color-primary, #8b2331)); }
.news-slideshow-empty__art::before, .news-slideshow-empty__art::after { position: absolute; content: ""; width: 18rem; aspect-ratio: 1; border: 1px solid rgb(255 255 255 / .22); transform: rotate(45deg); }
.news-slideshow-empty__art::after { width: 11rem; }
.news-slideshow-empty__art span { position: relative; z-index: 1; font-size: clamp(2rem, 5vw, 5rem); font-weight: 800; line-height: .86; letter-spacing: -.05em; text-align: center; text-transform: uppercase; transform: rotate(-5deg); }
.news-slideshow-empty__content { align-self: center; max-width: 42rem; padding: clamp(2rem, 6vw, 5rem); }
.news-slideshow-empty__eyebrow { display: block; margin-bottom: .8rem; color: var(--mr-color-primary, #8b2331); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.news-slideshow-empty h3 { margin: 0; font-size: clamp(2.25rem, 5vw, 4.75rem); line-height: .95; text-wrap: balance; }
.news-slideshow-empty p { max-width: 54ch; margin: 1.2rem 0 0; font-size: 1.05rem; line-height: 1.6; }
.news-slideshow-empty__setup { padding-top: 1rem; border-top: 1px solid currentColor; font-size: .9rem; opacity: .68; }

.news-slideshow .news-slideshow__eyebrow,
.news-slideshow .news-slideshow__title,
.news-slideshow .news-slideshow__description,
.news-slideshow .news-slideshow__cta { opacity: 0; transform: translateY(1.25rem); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.news-slideshow .swiper-slide-active .news-slideshow__eyebrow,
.news-slideshow .swiper-slide-active .news-slideshow__title,
.news-slideshow .swiper-slide-active .news-slideshow__description,
.news-slideshow .swiper-slide-active .news-slideshow__cta { opacity: 1; transform: none; }
.news-slideshow .swiper-slide-active .news-slideshow__eyebrow { transition-delay: .12s; }
.news-slideshow .swiper-slide-active .news-slideshow__title { transition-delay: .2s; }
.news-slideshow .swiper-slide-active .news-slideshow__description { transition-delay: .3s; }
.news-slideshow .swiper-slide-active .news-slideshow__cta { transition-delay: .4s; }
.news-slideshow .swiper-slide-active .news-slideshow__media img { transform: scale(1); }

.news-slideshow--split .news-slideshow__slide { grid-template-columns: minmax(0, 1.2fr) minmax(20rem, .8fr); min-height: 34rem; background: var(--news-slideshow-surface); }
.news-slideshow--split .news-slideshow__media { position: relative; grid-column: 1; grid-row: 1; }
.news-slideshow--split .news-slideshow__veil { display: none; }
.news-slideshow--split .news-slideshow__content { grid-column: 2; grid-row: 1; align-self: center; width: auto; margin: 0; padding: clamp(2rem, 5vw, 5rem); color: var(--news-slideshow-text); }
.news-slideshow--split .news-slideshow__title { font-size: clamp(2rem, 3.3vw, 3.75rem); }
.news-slideshow--split .news-slideshow__control--previous { left: 1rem; }
.news-slideshow--split .news-slideshow__control--next { right: calc(40% + 1rem); }
.news-slideshow--split .news-slideshow__pagination { right: 40%; }

.news-slideshow--cinematic .news-slideshow__slide { min-height: clamp(34rem, 68vw, 54rem); }
.news-slideshow--cinematic .news-slideshow__veil { background: linear-gradient(0deg, rgb(4 7 10 / .92), rgb(4 7 10 / .1) 75%); }
.news-slideshow--cinematic .news-slideshow__content { width: min(70rem, calc(100% - 8rem)); }
.news-slideshow--cinematic .news-slideshow__title { max-width: 14ch; font-size: clamp(3rem, 7.5vw, 8rem); letter-spacing: -.045em; }

@media (max-width: 767px) {
  .news-slideshow { border-radius: 0; }
  .news-slideshow__slide, .news-slideshow--cinematic .news-slideshow__slide { min-height: 34rem; }
  .news-slideshow__content, .news-slideshow--cinematic .news-slideshow__content { width: auto; margin: 0; padding: 2rem 1.25rem 4.5rem; }
  .news-slideshow__title, .news-slideshow--cinematic .news-slideshow__title { font-size: clamp(2rem, 11vw, 3.4rem); }
  .news-slideshow__control { top: auto; bottom: 1rem; transform: none; }
  .news-slideshow--split .news-slideshow__slide { display: grid; grid-template: minmax(15rem, 42vh) auto / 1fr; }
  .news-slideshow--split .news-slideshow__media { grid-column: 1; grid-row: 1; }
  .news-slideshow--split .news-slideshow__content { grid-column: 1; grid-row: 2; padding: 1.75rem 1.25rem 4.5rem; }
  .news-slideshow--split .news-slideshow__control--next { right: 1rem; }
  .news-slideshow--split .news-slideshow__pagination { right: 0; }
  .news-slideshow-empty { grid-template: minmax(13rem, 32vh) auto / 1fr; }
  .news-slideshow-empty__content { padding: 2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .news-slideshow *, .news-slideshow *::before, .news-slideshow *::after { scroll-behavior: auto; transition-duration: .01ms; animation-duration: .01ms; animation-iteration-count: 1; }
  .news-slideshow .news-slideshow__eyebrow, .news-slideshow .news-slideshow__title, .news-slideshow .news-slideshow__description, .news-slideshow .news-slideshow__cta { opacity: 1; transform: none; }
  .news-slideshow__media img { transform: none; }
}
