/* News home shares the cooperation page's palette and component details.
   Keep editorial layout, feed behavior and semantic deadline colors. */
.portal-news-page .hemu-portal-main {
  --portal-paper: #f7f8f5;
  --portal-surface: #fff;
  --portal-ink: #172e26;
  --portal-text: #506259;
  --portal-muted: #64736c;
  --portal-line: #dbe2dc;
  --portal-line-strong: #c6d2c9;
  --portal-green: #246b4d;
  --portal-green-soft: #edf2eb;
  --news-accent: #c6ed90;
  --news-interaction-blue: #0b5f9e;
}

html[data-theme="dark"] .portal-news-page .hemu-portal-main {
  --portal-paper: #111e19;
  --portal-surface: #182820;
  --portal-ink: #eff5ef;
  --portal-text: #bac8bf;
  --portal-muted: #a3b4a9;
  --portal-line: #364a3e;
  --portal-line-strong: #4b6153;
  --portal-green: #c6ed90;
  --portal-green-soft: #1b3026;
  --news-interaction-blue: #79baff;
}

.portal-news-page .hemu-portal-masthead {
  color: #fff;
  background: #123d2e;
  border-bottom-color: #365847;
}

.portal-news-page .hemu-portal-masthead.is-news::before {
  background-image: linear-gradient(90deg, #123d2e 34%, #123d2e8c 66%, #123d2e66), url("./images/news-home/news-research-masthead-v2.jpg");
  background-size: 100% 100%, auto 175%;
  background-position: center, right 58%;
  background-repeat: no-repeat;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.portal-news-page .masthead-grid {
  width: min(calc(100% - 64px), 1368px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
  gap: 32px;
  padding-block: 36px;
}

.portal-news-page .portal-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d4e8cd;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.5;
  white-space: nowrap;
}

.portal-news-page .portal-kicker span {
  width: auto;
  height: auto;
  flex-shrink: 0;
  color: var(--news-accent);
  background: none;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

html body.portal-news-page .hemu-portal-main .masthead-title h1 {
  color: #fff;
  font-family: var(--font) !important;
  font-size: clamp(38px, 3.6vw, 52px);
  font-weight: 650;
  letter-spacing: -.025em !important;
  line-height: 1.28;
}

.portal-news-page .masthead-intro {
  max-width: none;
  margin: 0;
  color: #d1e2ce;
  font-size: 15px;
  line-height: 1.85;
  text-align: left;
  text-indent: 0;
}
.portal-news-page .masthead-date { color: #d1e2ce; }
.portal-news-page .masthead-date strong { color: var(--news-accent); }
.portal-news-page .masthead-date :is(small, span) { color: #d1e2ce; }

/* Long article titles must not determine the height of the whole lead row.
   The full title stays in the DOM and in the existing link's accessible name. */
.portal-news-page .news-focus-layout { align-items: start; }
.portal-news-page .news-lead-feature {
  min-height: 340px;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr);
}

.portal-news-page .news-lead-feature .nh-hero-media {
  position: relative;
  display: block;
  min-height: 0;
}

.portal-news-page .news-lead-feature .news-lead-image {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
}

.portal-news-page .news-lead-feature .news-lead-copy {
  padding: 24px;
  background: var(--portal-surface);
}

html body.portal-news-page .hemu-portal-main .news-lead-copy h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 13px 0 12px;
  font-family: var(--font) !important;
  font-size: clamp(24px, 1.9vw, 28px);
  font-weight: 650 !important;
  line-height: 1.4;
}

.portal-news-page .news-lead-copy > p:not(.portal-accent-label) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--portal-text);
  font-size: 14px;
  line-height: 1.8;
}

.portal-news-page .news-lead-copy footer {
  margin-top: auto;
  padding-top: 14px;
  color: var(--portal-muted);
  font-size: 12px;
}
.portal-news-page .portal-accent-label:not(.is-alert) { color: var(--portal-green); }

.portal-news-page .news-lead-feature,
.portal-news-page .news-snapshot-card {
  border-color: var(--portal-line);
  border-radius: 4px;
  background: var(--portal-surface);
  box-shadow: none;
}

.portal-news-page .portal-section-title,
.portal-news-page .news-snapshot-card > header h2 { font-weight: 650; color: var(--portal-ink); }
.portal-news-page .portal-section-title > i,
.portal-news-page .news-snapshot-card > header h2::before { background: var(--portal-green); }
/* Date-based status colors and emphasis remain owned by news-home-blocks.css. */

.portal-news-page .portal-text-link {
  min-height: 44px;
  color: var(--portal-green);
  font-weight: 600;
}
.portal-news-page .portal-content.hemu-portal-shell { padding-bottom: 24px; }
.portal-news-page .hemu-portal-main :is(a, button):focus-visible {
  outline: 3px solid #4a9dff;
  outline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .portal-news-page .news-lead-feature:hover,
  .portal-news-page .news-lead-feature:focus-within {
    border-color: var(--portal-green);
    box-shadow: 0 12px 28px #0c302318;
    transform: none;
  }
}

/* Weekly highlights use the same rows and header as the latest-news list. */
.portal-news-page .news-weekly-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.portal-news-page .news-channel-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 0;
  margin: 0 0 18px;
  border-block: 1px solid var(--portal-line);
  scroll-margin-top: calc(var(--site-header-height) + 18px);
}
.portal-news-page .news-channel-nav > span {
  margin-right: auto;
  color: var(--portal-muted);
  font-size: 13px;
}
.portal-news-page .news-channel-nav > a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 3px;
  color: var(--portal-green);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 180ms ease;
}
.portal-news-page .news-channel-nav > a:is(:hover, :focus-visible) {
  background: var(--portal-green-soft);
}
.portal-news-page .news-channel-nav small {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.portal-news-page .news-snapshot-grid { margin-top: 0; }

@media (min-width: 1181px) {
  .portal-news-page .news-focus-layout { align-items: stretch; }
  .portal-news-page .news-weekly-card { padding: 20px 18px 12px; }
}

@media (max-width: 1180px) {
  .portal-news-page .masthead-grid { grid-template-columns: 1fr 1fr; }
  .portal-news-page .masthead-date { grid-column: 2; margin-top: 0; }
}

@media (max-width: 760px) {
  .portal-news-page .news-focus-layout { gap: 18px; }
  .portal-news-page .news-lead-feature { grid-template-columns: 1fr; min-height: 0; }
  .portal-news-page .news-lead-feature .nh-hero-media { aspect-ratio: 1.9; }
  .portal-news-page .news-lead-copy footer { margin-top: 18px; }
  .portal-news-page .news-lead-feature .news-lead-copy { padding: 22px; }
}

@media (max-width: 640px) {
  .portal-news-page .hemu-portal-masthead.is-news::before {
    background-image: linear-gradient(90deg, #123d2eeb, #123d2e99), url("./images/news-home/news-research-masthead-v2.jpg");
    background-size: 100% 100%, auto 110%;
    background-position: center, right center;
  }
  .portal-news-page .news-channel-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
  .portal-news-page .news-channel-nav > span { display: none; }
  .portal-news-page .news-channel-nav > a { justify-content: space-between; padding-inline: 10px; min-height: 44px; }
  .portal-news-page .masthead-grid {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 28px;
  }
  .portal-news-page .masthead-date { grid-column: auto; margin: 0; justify-self: start; }
  html body.portal-news-page .hemu-portal-main .masthead-title h1 { font-size: clamp(34px, 9vw, 41px); }
  .portal-news-page .masthead-intro { font-size: 14px; }
  .portal-news-page .portal-content.hemu-portal-shell { width: calc(100% - 28px); padding-top: 24px; }
  html body.portal-news-page .hemu-portal-main .news-lead-copy h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-news-page .news-lead-feature { transition: none; transform: none; }
}

/* The two time ranges share one reading surface; the feed rules stay intact. */
.portal-news-page .news-feed-header { display: flex; justify-content: space-between; gap: 12px; }
.portal-news-page .news-feed-switch { display: flex; gap: 4px; align-items: center; }
.portal-news-page .news-feed-switch button { min-width: 46px; min-height: 40px; padding: 6px 10px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--portal-muted); font: 600 12px/1.3 var(--font); cursor: pointer; }
.portal-news-page .news-feed-switch button[aria-pressed="true"] { background: var(--portal-green-soft); color: var(--portal-green); border-color: var(--portal-line); }
.portal-news-page .news-feed-switch button:is(:hover, :focus-visible) { color: var(--news-interaction-blue); }
.portal-news-page [data-nh-panel][hidden] { display: none !important; }
.portal-news-page .news-snapshot-list > a { min-height: 58px; }
.portal-news-page .news-snapshot-list > a strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; overflow: hidden; overflow-wrap: anywhere; line-height: 1.5; }
.portal-news-page .news-weekly-card .news-snapshot-list > a { grid-template-columns: 36px minmax(0,1fr) auto; gap: 12px; }
.portal-news-page .news-weekly-card .news-snapshot-list > a > small { display: none; }
.portal-news-page .news-weekly-card .news-snapshot-list strong { font-size: 14px; }
.portal-news-page .news-snapshot-grid { grid-template-columns: minmax(0,1fr); margin-top: 26px; }
.portal-news-page .news-snapshot-list.is-deadline { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 32px; }
.portal-news-page .news-channel-sync { margin: 14px 0 0; color: var(--portal-muted); font-size: 12px; }
.portal-news-page .news-alert-shimmer::after { content: none; animation: none; }
html:not([data-theme="dark"]) .portal-news-page .hemu-portal-masthead { background: #eff4e9; border-color: #dbe2dc; }
html:not([data-theme="dark"]) .portal-news-page .hemu-portal-masthead.is-news::before { background-image: linear-gradient(90deg,#eff4e9 30%,#eff4e9eb 51%,#eff4e975 69%,#eff4e91a),url("./images/news-home/news-research-masthead-v2.jpg"); }
html:not([data-theme="dark"]) body.portal-news-page .hemu-portal-main .masthead-title h1 { color: #19392d; }
html:not([data-theme="dark"]) .portal-news-page :is(.portal-kicker,.portal-kicker span,.masthead-date strong) { color: #246b4d; }
html:not([data-theme="dark"]) .portal-news-page :is(.masthead-intro,.masthead-date,.masthead-date small,.masthead-date span) { color: #506259; }
@media (max-width:760px) {
  .portal-news-page .masthead-grid { gap: 12px; padding-block: 22px; }
  .portal-news-page .news-channel-nav { margin-bottom: 18px; padding-block: 6px; }
  .portal-news-page .news-lead-feature .nh-hero-media { aspect-ratio: 2.7; }
  .portal-news-page .news-lead-feature .news-lead-copy { padding: 18px; }
  html body.portal-news-page .hemu-portal-main .news-lead-copy h2 { font-size: 22px; line-height: 1.45; }
  .portal-news-page .news-snapshot-list.is-deadline { grid-template-columns: minmax(0,1fr); }
  .portal-news-page .news-snapshot-list > a { min-height: 66px; }
  .portal-news-page .news-weekly-card .news-snapshot-list strong { font-size: 14px; }
  .portal-news-page .news-snapshot-grid { margin-top: 20px; }
  html:not([data-theme="dark"]) .portal-news-page .hemu-portal-masthead.is-news::before { background-image: linear-gradient(90deg,#eff4e9f5,#eff4e9d9 65%,#eff4e99c),url("./images/news-home/news-research-masthead-v2.jpg"); }
}
html:not([data-theme="dark"]) .portal-news-page .masthead-date { padding: 8px 12px; background: #f7faf3ed; border: 1px solid #dbe2dcc7; border-radius: 4px; }
