.research-news, .research-news-related {
  color: var(--ink);
  min-inline-size: 0;
}

.news-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-block-end: 24px;
}

.news-page-heading h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  font-weight: 750;
  line-height: 1.18;
}

.news-page-heading p { margin: 8px 0 0; color: var(--muted); }
.news-page-meta { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; font-size: .875rem; }
.news-page-meta span:first-child, .news-detail-top > span {
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--green);
  background: var(--wash);
}

.news-workspace { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
.news-stream { min-width: 0; }
.news-filter-panel, .news-detail-content, .news-detail-empty, .research-news-related {
  border: 1px solid var(--line);
  border-radius: var(--radius, 12px);
  background: var(--panel);
  min-inline-size: 0;
}

.news-filter-panel { display: none; padding: 16px 12px; }
.news-filter-group h2 {
  margin: 0 6px 8px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
}
.news-filter-group + .news-filter-group { margin-block-start: 16px; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.news-filters, .news-content-types { display: grid; gap: 2px; }
.news-filters a, .news-content-types a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  min-width: 0;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.news-filters a { position: relative; justify-content: space-between; border-radius: 6px; }
.news-filters small { color: var(--muted); flex: none; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.news-filters a:hover { background: var(--page); }
.news-filters a[aria-current] { background: var(--wash); color: var(--green); font-weight: 700; }
.news-filters a[aria-current]::before {
  content: '';
  position: absolute;
  inset-block: 10px;
  inset-inline-start: 0;
  width: 3px;
  background: var(--green);
}
.news-filters a[aria-current] small { color: inherit; font-weight: 500; }
.news-content-types a { padding: 4px 6px; font-size: .875rem; color: var(--muted); border-radius: 6px; }
.news-content-types a:hover { color: var(--green); background: var(--page); }
.news-content-types a::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border: 1px solid var(--line);
  border-radius: 100%;
}
.news-content-types a[aria-current] { color: var(--ink); }
.news-content-types a[aria-current]::before { background: var(--green); border-color: var(--green); }

.news-filter-form, .news-filter-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.news-filter-field { gap: 4px; color: var(--muted); font-size: .875rem; font-weight: 600; min-inline-size: 0; }
.news-filter-form select, .news-filter-form input, .news-handoff-form select, .news-filter-form button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
}
.news-filter-field :is(select, input) { font-weight: 500; }
.news-filter-form button {
  cursor: pointer;
  color: var(--green);
  font-weight: 700;
  font-size: .875rem;
}
.news-filter-form button:hover { background: var(--wash); }
.news-clear { font-size: .875rem; margin-block-start: 8px; }

.news-mobile-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
}
.news-filters-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-end: 8px;
}
.news-filters-mobile a {
  width: auto;
  padding-inline: 9px;
  background: var(--panel);
  color: var(--muted);
  font-size: .875rem;
}
.news-filters-mobile a[aria-current] { background: var(--green); color: white; }
.news-filters-mobile a[aria-current]::before { display: none; }
.news-mobile-filter-row .news-filter-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.news-mobile-filter-row select, .news-mobile-filter-row button {
  border-color: transparent;
  background: transparent;
  padding-inline: 0 4px;
}
.news-mobile-filter-row select { font-size: .875rem; }
.news-mobile-filter-row :is(select, button):hover { background: var(--wash); }
.news-advanced { margin-block-end: 12px; padding-block-end: 4px; border-block-end: 1px solid var(--line); }
.news-advanced summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  color: var(--green);
  font-size: .875rem;
  font-weight: 650;
}
.news-advanced .news-filter-field { margin-block-end: 8px; }
.news-desktop-advanced summary { cursor: pointer; min-height: 36px; padding: 7px 0; color: var(--green); font-size: .875rem; }
.news-desktop-advanced .news-filter-field + .news-filter-field { margin-block-start: 8px; }

.news-stream-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 4px 16px;
  margin-block: 0 8px;
}
.news-stream-heading h2 { margin: 4px 0 0; font-size: 1.25rem; line-height: 1.35; }
.news-active-market { margin: 5px 0 0; color: var(--muted); font-size: .875rem; }
.news-stream-date { display: flex; gap: 4px 12px; flex-wrap: wrap; margin: 4px 0 0; color: var(--muted); font-size: .875rem; }
.news-stream-date time { font-variant-numeric: tabular-nums; }
.news-sort { position: relative; min-inline-size: min(140px, 100%); font-size: .875rem; }
.news-sort summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.news-sort summary::-webkit-details-marker { display: none; }
.news-sort summary::after { content: '⌄'; }
.news-sort[open] summary { border-color: var(--line); }
.news-sort nav {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 3px) 0 auto auto;
  min-width: max(160px, 100%);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.news-sort nav a { display: flex; align-items: center; min-height: 44px; padding: 6px 8px; border-radius: 4px; text-decoration: none; }
.news-sort nav a:is(:hover, [aria-current]) { background: var(--wash); }

.news-source-state, .news-empty {
  padding: 2px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--wash);
}
.news-source-state { margin-block-end: 12px; min-height: 44px; }
.news-source-state, .news-compact-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 12px;
  font-size: .875rem;
  color: var(--green);
}
.news-source-state[data-state="loading"], .news-source-state[data-state="unavailable"] { background: var(--page); border-color: var(--line); color: var(--muted); }
.news-source-state[data-state="stale"], .news-source-state[data-state="partial"] { background: #f5f0e4; color: #645329; }
.news-updates {
  display: flex;
  margin-block-end: 12px;
}
.news-updates button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #e2d9bf;
  border-radius: 7px;
  background: #f5f0e4;
  color: #645329;
  font: inherit;
  cursor: pointer;
}
.news-updates button span {
  margin-inline-start: 6px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.news-feed-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 42px; }
.news-feed-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.news-feed-clock { color: inherit; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.news-compact-state { color: var(--muted); font-size: .8125rem; }
.news-compact-state .news-feed-status { min-height: 26px; }
.news-retry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}
.news-retry:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-empty { padding: 12px 16px; }
.news-empty p, .news-related-empty { margin: 0; color: var(--muted); }

.news-day + .news-day { margin-block-start: 16px; }
.news-day-label { margin-block: 0 8px; color: var(--ink); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.news-day-first .news-day-label { display: none; }
.news-list, .news-asset-tags { list-style: none; margin: 0; padding: 0; }
.news-list { display: grid; gap: 12px; }
.news-list-row {
  position: relative;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow-wrap: anywhere;
}
.news-list-row.news-current-event { border-color: var(--green); }
.news-current-event::before {
  content: '';
  position: absolute;
  inset-block: 11px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--green);
}
.news-list-row h2, .news-list-row h3 { margin: 4px 0; line-height: 1.35; }
.news-list-row h2 { font-size: 1.125rem; font-weight: 750; }
.news-list-row h3 { font-size: 1rem; }
.news-event-link { color: var(--ink); text-decoration: none; }
.news-event-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.news-list-row p { max-width: 68ch; margin: 4px 0; color: var(--muted); line-height: 1.55; font-size: .9375rem; }
.news-card-meta, .news-list-byline, .news-asset-tags, .news-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.news-card-meta, .news-card-footer { justify-content: space-between; }
.news-card-meta { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.news-list-byline > span + span::before { content: '·'; margin-inline-end: 8px; }
.news-card-time { font-weight: 650; font-variant-numeric: tabular-nums; }
.news-current-event .news-card-time { color: var(--green); }
.news-card-footer { margin-block-start: 6px; }
.news-card-footer .news-asset-tags { flex: 1 1 12rem; }
.news-card-footer .news-list-research { margin-inline-start: auto; }
.news-asset-tags { gap: 4px; min-width: 0; }
.news-asset-tags li {
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #eaf0f0;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.news-text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; color: var(--green); font-weight: 650; text-underline-offset: 3px; }
.news-list-research { font-size: .875rem; text-decoration: none; font-weight: 550; }
.news-list-research:hover { text-decoration: underline; }
.news-current-event .news-list-research { font-weight: 700; }
.news-view-desktop { display: none; }
.news-original-language { margin-inline-start: auto; }

.news-detail-content, .news-detail-empty, .research-news-related { padding: 16px; overflow-wrap: anywhere; }
.news-breadcrumb { margin-block-end: 4px; }
.news-detail-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-block-end: 10px; border-block-end: 1px solid var(--line); }
.news-detail-top h2, .news-detail-empty h2 { margin: 0; font-size: 1.125rem; line-height: 1.35; }
.news-detail-top > span { font-size: .8125rem; }
#news-event-heading { margin: 16px 0 6px; font-size: 1.375rem; font-weight: 750; line-height: 1.33; }
.news-detail-content :is(h3, label) { color: var(--muted); font-size: .875rem; }
.news-detail-content h3 { margin: 0 0 6px; line-height: 1.35; }
.news-detail-content p, .news-detail-empty p { margin: 5px 0; line-height: 1.55; }
.news-detail-empty p { color: var(--muted); font-size: .9375rem; }
.news-publication { display: grid; gap: 4px; margin: 8px 0 0; font-size: .8125rem; }
.news-publication > div { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.news-publication dt { color: var(--muted); }
.news-publication dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.news-publication .news-original-link { font-weight: inherit; }
.news-detail-content section { margin-block-start: 12px; }
.news-scenario ul { margin: 0; padding-inline-start: 17px; }
.news-scenario li::marker { color: var(--green); }
.news-detail-content :is(.news-perspective, .news-analysis) { padding-block-start: 12px; margin-block-start: 12px; border-block-start: 1px solid var(--line); }
.news-analysis p { color: var(--muted); }
.news-detail-content .news-associated { margin-block-start: 16px; }
.news-handoff-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding-block-start: 14px;
  margin-block-start: 16px;
  border-block-start: 1px solid var(--line);
}
.news-handoff-form select { background: var(--page); font-weight: 700; }
.news-handoff-form button {
  min-height: 44px;
  width: 100%;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}
.news-handoff-form button:hover { background: var(--green-dark); }
.news-handoff-form p { color: var(--muted); margin: 0; font-size: .8125rem; }
.news-page-footer { border-block-start: 1px solid var(--line); margin-block-start: 32px; padding-block-start: 12px; color: var(--muted); font-size: .8125rem; }

.research-news-related > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.research-news-related h2 { margin: 0; font-size: 1.125rem; line-height: 1.35; }
.research-news-related .news-list { gap: 0; }
.research-news-related .news-list-row { border: 0; border-block-start: 1px solid var(--line); border-radius: 0; padding: 10px 30px 10px 0; }
.research-news-related .news-event-link::after { content: ''; position: absolute; inset: 0; }
.research-news-related .news-list-row:focus-within { outline: 2px solid var(--green); outline-offset: -2px; }
.news-open { position: absolute; inset-inline-end: 3px; inset-block-start: 50%; translate: 0 -50%; color: var(--green); pointer-events: none; }

@media (min-width: 768px) {
  .news-workspace { grid-template-columns: minmax(176px, 208px) minmax(0, 1fr); }
  .news-filter-panel { display: block; }
  .news-mobile-filters { display: none; }
  .news-view-desktop { display: inline; }
  .news-view-mobile { display: none; }
  .research-news .news-list-row { padding-block: 10px; }
  .research-news .news-list-row h2 { margin-block: 2px; }
  .research-news .news-list-row p { margin-block: 2px; max-width: 76ch; font-size: .875rem; }
  .news-card-footer { margin-block-start: 2px; }
  .news-publication .news-original-link { min-height: 36px; }
}

@media (min-width: 768px) and (pointer: fine) {
  .news-content-types a { min-height: 34px; }
}

@media (min-width: 1280px) {
  .news-workspace { grid-template-columns: 208px minmax(0, 1fr) minmax(285px, 320px); }
  .news-detail-content, .news-detail-empty { padding: 16px 19px; }
  .news-detail-content .news-breadcrumb { display: none; }
}

@media (max-width: 1279px) {
  .news-detail-preview, .news-detail-empty { display: none; }
  .news-detail-empty:has(a) { display: block; grid-column: 1 / -1; }
  .news-has-selection :is(.news-filter-panel, .news-stream) { display: none; }
  .news-has-selection .news-workspace { grid-template-columns: minmax(0, 740px); }
}

@media (max-width: 767px) {
  .news-page-heading { gap: 4px 16px; margin-block-end: 16px; }
  .news-page-heading > div p { display: none; }
  .news-page-meta { width: 100%; justify-content: space-between; font-size: .8125rem; }
  .news-stream { display: flex; flex-direction: column; }
  .news-stream-heading { order: 2; align-items: center; }
  .news-stream-heading h2 { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .news-stream-date time { color: var(--ink); font-weight: 750; }
  .news-sort { min-inline-size: min(120px, 100%); }
  .news-source-state { order: 1; margin-block: 8px 12px; }
  [data-news-updates-slot] { order: 2; }
  .news-source-state[data-state="feed"] .news-feed-clock {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
  .news-day, .news-empty { order: 3; }
  .news-list-row { border-radius: 9px; }
  .news-list-row h2 { font-size: 1.0625rem; }
  .news-card-footer .news-asset-tags { flex-basis: 7rem; }
  .news-card-footer .news-asset-tags:has(li:nth-child(4)) { flex-basis: 100%; }
  .news-original-language { display: none; }
}
