.amr-news-stream {
  --stream-columns: 2;
  --stream-image-width: 245px;
  --stream-image-height: 145px;
  --stream-row-gap: 34px;
  --stream-column-gap: 50px;
  --stream-radius: 0px;
  --stream-primary: #073f8c;
  --stream-title: #071a42;
  --stream-date: #7d8799;
  --stream-badge-bg: #eaf2ff;
  --stream-badge: #073f8c;
  --announcement-divider: #073f8c;
  --announcement-accent: #e39a00;
  box-sizing: border-box;
  width: 100%;
  padding: 18px 20px 0;
  color: var(--stream-title);
  background: #fff;
  border: 1px solid #e1e8ef;
  box-shadow: 0 8px 25px rgba(17, 55, 94, .055);
  font-family: "Fira Sans", "Segoe UI", Arial, sans-serif;
}

.amr-news-stream *, .amr-news-stream *::before, .amr-news-stream *::after { box-sizing: border-box; }
.amr-news-stream__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 16px; margin: 0 0 28px; border-bottom: 1px solid #dbe2eb; }
.amr-news-stream__header h2 { margin: 0; color: var(--stream-title); font: 700 1.35rem/1.25 "Fira Sans", "Segoe UI", Arial, sans-serif; }
.amr-news-stream__header > a { display: inline-flex; align-items: center; gap: 10px; color: var(--stream-primary); text-decoration: none; font-size: .84rem; font-weight: 700; }
.amr-news-stream__header > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.amr-news-stream__grid { display: grid; grid-template-columns: repeat(var(--stream-columns), minmax(0, 1fr)); column-gap: var(--stream-column-gap); row-gap: var(--stream-row-gap); }
.amr-news-stream__item { min-width: 0; height: var(--stream-image-height); display: grid; grid-template-columns: minmax(100px, var(--stream-image-width)) minmax(0, 1fr); gap: 24px; align-items: start; overflow: hidden; margin: 0; padding: 0; background: transparent; border: 0; }
.amr-news-stream__image-link { width: 100%; height: var(--stream-image-height); display: block; overflow: hidden; background: #edf1f6; border-radius: var(--stream-radius); }
.amr-news-stream__image-link img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.amr-news-stream__item:hover img { transform: scale(1.035); filter: saturate(1.04); }
.amr-news-stream__content { min-width: 0; height: 100%; overflow: hidden; padding-top: 3px; }
.amr-news-stream__meta { min-height: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 9px; margin-bottom: 10px; }
.amr-news-stream__meta time { color: var(--stream-date); font-size: .92rem; line-height: 1.25; }
.amr-news-stream__category { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; color: var(--stream-badge); background: var(--stream-badge-bg); border-left: 3px solid var(--stream-primary); border-radius: var(--stream-radius); font-size: .72rem; font-weight: 700; line-height: 1.2; }
.amr-news-stream__item h3 { margin: 0; overflow: hidden; color: var(--stream-title); font: 500 14px/1.45 "Fira Sans", "Segoe UI", Arial, sans-serif; }
.amr-news-stream__item h3 a { display: -webkit-box; overflow: hidden; color: inherit; text-decoration: none; text-wrap: pretty; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; }
.amr-news-stream__item h3 a:hover { color: var(--stream-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.amr-stream-empty { margin: 0; padding: 16px; color: #536173; background: #f3f6fa; border-left: 3px solid #073f8c; }

.amr-news-stream__announcements { margin: 34px -20px 0; background: #fff; }
.amr-news-stream__announcement-divider { position: relative; height: 3px; margin: 0 20px; overflow: hidden; background: var(--announcement-divider); }
.amr-news-stream__announcement-divider span { position: absolute; inset: 0 auto 0 0; width: 78px; background: var(--announcement-accent); }
.amr-news-stream__announcement-header { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 20px; padding: 15px 4px 13px; border-bottom: 1px solid #dbe3ec; }
.amr-news-stream__announcement-header h2 { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--stream-title); font: 700 1.2rem/1.3 "Fira Sans", "Segoe UI", Arial, sans-serif; }
.amr-news-stream__announcement-header svg { width: 25px; height: 25px; fill: none; stroke: var(--stream-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.amr-news-stream__announcement-header > a { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--stream-primary); font-size: .84rem; font-weight: 700; text-decoration: none; }
.amr-news-stream__announcement-header > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.amr-news-stream__announcement-list { display: grid; margin: 0 20px; }
.amr-news-stream__announcement-item { min-height: 52px; display: grid; grid-template-columns: 126px minmax(0, 1fr) 32px; align-items: center; gap: 16px; margin: 0; padding: 8px 4px; border-bottom: 1px solid #e1e8ef; }
.amr-news-stream__announcement-item:last-child { border-bottom: 0; }
.amr-news-stream__announcement-item time { color: var(--stream-date); font-size: .84rem; line-height: 1.25; white-space: nowrap; }
.amr-news-stream__announcement-item h3 { min-width: 0; margin: 0; color: var(--stream-title); font: 500 .92rem/1.4 "Fira Sans", "Segoe UI", Arial, sans-serif; }
.amr-news-stream__announcement-item h3 a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.amr-news-stream__announcement-item h3 a:hover { color: var(--stream-primary); text-decoration: underline; text-underline-offset: 3px; }
.amr-news-stream__announcement-arrow { display: grid; width: 32px; height: 32px; place-items: center; color: var(--stream-primary); font-size: 1.45rem; line-height: 1; text-decoration: none; }
.amr-news-stream__announcement-arrow:hover { background: #edf4fc; }
.amr-news-stream__announcement-empty { margin: 0 20px; padding: 15px 4px 18px; color: #64758a; }

/* In the AMR portal template the module replaces both left news columns. */
.portal-news-layout > .portal-featured:has(.amr-news-stream),
.portal-news-layout > .portal-latest:has(.amr-news-stream) { grid-column: span 2; overflow: visible; background: transparent; border: 0; box-shadow: none; }

@media (max-width: 1180px) {
  .portal-news-layout > .portal-featured:has(.amr-news-stream),
  .portal-news-layout > .portal-latest:has(.amr-news-stream) { grid-column: 1 / -1; }
  .amr-news-stream__item { grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 800px) {
  .amr-news-stream__grid { grid-template-columns: 1fr; row-gap: 22px; }
  .amr-news-stream__item { padding-bottom: 0; border-bottom: 1px solid #e3e8ef; }
  .amr-news-stream__announcements { margin-top: 26px; }
}

@media (max-width: 520px) {
  .amr-news-stream { padding: 14px 13px 0; }
  .amr-news-stream__header { margin-bottom: 20px; }
  .amr-news-stream__item { height: 84px; grid-template-columns: 116px minmax(0, 1fr); gap: 13px; padding-bottom: 0; }
  .amr-news-stream__image-link { height: 84px; }
  .amr-news-stream__meta { margin-bottom: 6px; }
  .amr-news-stream__meta time { font-size: .75rem; }
  .amr-news-stream__category { min-height: 19px; padding: 2px 6px; font-size: .62rem; }
  .amr-news-stream__item h3 { font-size: 14px; line-height: 1.35; }
  .amr-news-stream__item h3 a { -webkit-line-clamp: 2; line-clamp: 2; }
  .amr-news-stream__announcements { margin-right: -13px; margin-left: -13px; }
  .amr-news-stream__announcement-divider { margin: 0 13px; }
  .amr-news-stream__announcement-header { min-height: 55px; margin: 0 13px; padding-inline: 0; }
  .amr-news-stream__announcement-header h2 { font-size: 1.04rem; }
  .amr-news-stream__announcement-header > a { font-size: .74rem; }
  .amr-news-stream__announcement-list { margin: 0 13px; }
  .amr-news-stream__announcement-item { grid-template-columns: minmax(0, 1fr) 30px; gap: 3px 8px; padding: 10px 0; }
  .amr-news-stream__announcement-item time { grid-column: 1; font-size: .73rem; }
  .amr-news-stream__announcement-item h3 { grid-column: 1; font-size: .86rem; }
  .amr-news-stream__announcement-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .amr-news-stream__announcement-empty { margin-inline: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .amr-news-stream__image-link img { transition: none; }
}
