
/* Intel News workspace redesign */

.fundament-news-workspace {
  --news-blue: #0059ff;
  --news-blue-soft: rgba(0, 89, 255, 0.08);
  --news-ink: #102033;
  --news-muted: #607088;
  --news-border: #d8e1ee;
  --news-border-strong: #bfd0e8;
  --news-surface: #ffffff;
  --news-surface-alt: #f7f9fc;
  --news-surface-soft: #fbfcfe;
  --news-warning: #9a5a00;
  --news-warning-bg: #fff6ea;
  --news-danger: #9f3636;
  --news-danger-bg: #fff3f3;
  --news-ok: #166534;
  --news-ok-bg: #eef8f1;
  gap: 8px;
}

.fundament-news-toolbar {
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 2px;
  background: #fff;
}

.fundament-news-toolbar__actions {
  gap: 10px;
  flex-wrap: wrap;
}

.fundament-news-toolbar__divider {
  width: 1px;
  align-self: stretch;
  background: var(--news-border);
}

.fundament-news-toolbar-search {
  min-width: min(100%, 340px);
}

.fundament-news-toolbar-search__input,
.fundament-news-toolbar-search__button {
  height: 34px;
  border-radius: 8px;
  font-size: 0.82rem;
  box-shadow: none;
}

.fundament-news-toolbar-search__input {
  border-color: var(--news-border);
  background: #fff;
}

.fundament-news-toolbar-search__button {
  padding: 0 12px;
  border-color: rgba(0, 89, 255, 0.22);
  background: #f4f8ff;
  color: var(--news-blue);
}

.fundament-news-toolbar-meta {
  gap: 6px;
}

.fundament-news-toolbar-chip {
  min-width: 88px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--news-surface-soft);
  box-shadow: none;
}

.fundament-news-toolbar-chip--warning {
  background: var(--news-warning-bg);
}

.fundament-news-toolbar-chip--ok {
  background: var(--news-ok-bg);
}

.fundament-news-body {
  overflow: hidden;
}

.fundament-news-layout {
  display: grid;
  grid-template-columns: minmax(220px, 248px) minmax(0, 1.72fr) minmax(300px, 0.84fr);
  gap: 12px;
  min-height: 0;
  height: 100%;
}

.fundament-news-rail,
.fundament-news-stage,
.fundament-news-detail-panel {
  min-height: 0;
}

.fundament-news-rail,
.fundament-news-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}

.fundament-news-stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  min-width: 0;
}

.fundament-news-main-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fundament-news-surface {
  min-width: 0;
}

.fundament-news-rail-section,
.fundament-news-status-card,
.fundament-news-panel,
.fundament-news-card,
.fundament-news-chart-card,
.fundament-news-detail-panel,
.fundament-news-detail-view {
  border: 1px solid var(--news-border);
  border-radius: 8px;
  background: var(--news-surface);
  box-shadow: none;
}

.fundament-news-rail-section,
.fundament-news-detail-panel,
.fundament-news-detail-view,
.fundament-news-panel,
.fundament-news-chart-card {
  padding: 12px;
}

.fundament-news-surface-list,
.fundament-news-rail-card-list,
.fundament-news-detail-panel__stack,
.fundament-news-rail-metric-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fundament-news-rail-section__body,
.fundament-news-surface-header__subtitle,
.fundament-news-panel__subtitle,
.fundament-news-list-item__body,
.fundament-news-card__body,
.fundament-news-detail-panel__body,
.fundament-news-detail-panel__article-meta,
.fundament-news-detail-panel__bullet,
.fundament-news-chart-card__caption,
.fundament-news-status-card__body {
  color: var(--news-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.fundament-news-surface-button,
.fundament-news-detail-panel__link {
  width: 100%;
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid var(--news-border);
  border-radius: 8px;
  background: #fff;
  color: var(--news-ink);
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.fundament-news-surface-button--active,
.fundament-news-surface-button.is-active,
.fundament-news-rail-card.is-active,
.fundament-news-list-item.is-active,
.fundament-news-card.is-active,
.fundament-news-detail-panel__link.is-active {
  border-color: rgba(0, 89, 255, 0.28);
  background: var(--news-blue-soft);
  color: var(--news-blue);
}

.fundament-news-rail-card,
.fundament-news-list-item,
.fundament-news-card {
  padding: 10px 11px;
  border: 1px solid var(--news-border);
  border-radius: 8px;
  background: var(--news-surface-soft);
}

.fundament-news-rail-card--interactive,
.fundament-news-list-item--action,
.fundament-news-card--action {
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.fundament-news-inline-chip,
.fundament-news-list-item__meta-chip,
.fundament-news-card__meta-chip,
.fundament-news-rail-card__meta-chip,
.fundament-news-asset-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--news-blue);
  font-size: 0.7rem;
  font-weight: 700;
}

.fundament-news-asset-chip--muted {
  background: #eef2f7;
  color: var(--news-muted);
}

.fundament-news-status-strip,
.fundament-news-list-item__meta,
.fundament-news-list-item__header,
.fundament-news-card__meta,
.fundament-news-rail-card__meta,
.fundament-news-detail-panel__metric-grid,
.fundament-news-surface-header__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fundament-news-status-card {
  flex: 1 1 220px;
  padding: 12px;
}

.fundament-news-status-card--hero {
  background: #f7fbff;
}

.fundament-news-status-card--warning {
  background: var(--news-warning-bg);
}

.fundament-news-status-card--muted {
  background: #fafbfd;
}

.fundament-news-status-card--error {
  background: var(--news-danger-bg);
}

.fundament-news-surface-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--news-border);
  border-radius: 8px;
  background: #fff;
}

.fundament-news-surface-header__main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.fundament-news-surface-header__eyebrow,
.fundament-news-toolbar-chip__label,
.fundament-news-meta-block__label,
.fundament-news-metric-tile__label,
.fundament-news-detail-panel__section-title,
.fundament-news-rail-section__title,
.fundament-news-status-card__eyebrow,
.fundament-news-panel__title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--news-muted);
}

.fundament-news-surface-header__title,
.fundament-news-panel__title,
.fundament-news-rail-card__title,
.fundament-news-list-item__title,
.fundament-news-card__title,
.fundament-news-detail-panel__headline,
.fundament-news-status-card__title,
.fundament-news-chart-card__title {
  color: var(--news-ink);
  font-size: 0.96rem;
  font-weight: 700;
}

.fundament-news-surface-header__title {
  font-size: 1.12rem;
}

.fundament-news-surface-header__actions {
  flex: 0 0 auto;
}

.fundament-news-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fundament-news-segmented__button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--news-border);
  border-radius: 8px;
  background: #fff;
  color: var(--news-ink);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.fundament-news-segmented__button.is-active {
  border-color: rgba(0, 89, 255, 0.28);
  background: var(--news-blue-soft);
  color: var(--news-blue);
}

.fundament-news-workgrid {
  display: grid;
  gap: 8px;
}

.fundament-news-workgrid--overview,
.fundament-news-workgrid--category,
.fundament-news-workgrid--archive,
.fundament-news-workgrid--anchor {
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.9fr);
}

.fundament-news-workgrid--secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fundament-news-workstack,
.fundament-news-category-stack,
.fundament-news-anchor-stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fundament-news-category-view,
.fundament-news-anchor-view,
.fundament-news-detail-record {
  min-width: 0;
}

.fundament-news-meta-block,
.fundament-news-metric-tile {
  min-width: 104px;
  padding: 8px 9px;
  border: 1px solid var(--news-border);
  border-radius: 8px;
  background: var(--news-surface-soft);
}

.fundament-news-markdown {
  color: var(--news-ink);
  font-size: 0.9rem;
  line-height: 1.66;
}

.fundament-news-markdown h1,
.fundament-news-markdown h2,
.fundament-news-markdown h3 {
  color: var(--news-ink);
}

.fundament-news-detail-panel__article {
  display: block;
  padding: 9px 10px;
  border: 1px solid var(--news-border);
  border-radius: 8px;
  background: var(--news-surface-soft);
  text-decoration: none;
}

.fundament-news-empty-note {
  padding: 10px;
  border: 1px dashed var(--news-border-strong);
  border-radius: 8px;
  background: var(--news-surface-soft);
  color: var(--news-muted);
  font-size: 0.82rem;
}

.fundament-news-selection-hydrator {
  display: none;
}

@media (max-width: 1380px) {
  .fundament-news-layout {
    grid-template-columns: minmax(220px, 248px) minmax(0, 1fr);
  }

  .fundament-news-detail-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  .fundament-news-workgrid--overview,
  .fundament-news-workgrid--category,
  .fundament-news-workgrid--archive,
  .fundament-news-workgrid--anchor,
  .fundament-news-workgrid--secondary {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .fundament-news-toolbar,
  .fundament-news-toolbar__actions,
  .fundament-news-surface-header {
    flex-direction: column;
    align-items: stretch;
  }

  .fundament-news-toolbar__divider {
    display: none;
  }

  .fundament-news-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Intel News workspace polish */

.fundament-news-workspace {
  background: #f6f8fb;
}

.fundament-news-body {
  padding-top: 2px;
}

.fundament-news-layout {
  align-items: start;
}

.fundament-news-rail,
.fundament-news-stage,
.fundament-news-detail-panel {
  scrollbar-gutter: stable;
}

.fundament-news-rail-section--path {
  background: #f9fbfe;
}

.fundament-news-rail-section__title,
.fundament-news-detail-panel__title,
.fundament-news-panel__title {
  color: #5b6c83;
}

.fundament-news-rail-section__body,
.fundament-news-toolbar__subtitle,
.fundament-news-detail-panel__body,
.fundament-news-panel__subtitle,
.fundament-news-list-item__body,
.fundament-news-card__body,
.fundament-news-rail-card__body {
  max-width: 78ch;
}

.fundament-news-surface-list {
  gap: 6px;
}

.fundament-news-surface-button,
.fundament-news-rail-card--interactive,
.fundament-news-list-item--action,
.fundament-news-card--action,
.fundament-news-segmented__button,
.fundament-news-detail-panel__link,
.fundament-news-toolbar-search__button {
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.fundament-news-surface-button:hover,
.fundament-news-rail-card--interactive:hover,
.fundament-news-list-item--action:hover,
.fundament-news-card--action:hover,
.fundament-news-segmented__button:hover,
.fundament-news-detail-panel__link:hover,
.fundament-news-toolbar-search__button:hover {
  border-color: rgba(0, 89, 255, 0.24);
  background: #f5f8ff;
}

.fundament-news-surface-button:focus-visible,
.fundament-news-rail-card--interactive:focus-visible,
.fundament-news-list-item--action:focus-visible,
.fundament-news-card--action:focus-visible,
.fundament-news-segmented__button:focus-visible,
.fundament-news-detail-panel__link:focus-visible,
.fundament-news-toolbar-search__input:focus-visible,
.fundament-news-toolbar-search__button:focus-visible {
  outline: none;
  border-color: rgba(0, 89, 255, 0.42);
  box-shadow: 0 0 0 2px rgba(0, 89, 255, 0.12);
}

.fundament-news-toolbar-search__input::placeholder {
  color: #7a889d;
}

.fundament-news-toolbar-chip__value,
.fundament-news-meta-block__value,
.fundament-news-metric-tile__value {
  color: var(--news-ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.fundament-news-status-strip {
  align-items: stretch;
}

.fundament-news-status-card,
.fundament-news-panel,
.fundament-news-chart-card,
.fundament-news-detail-view,
.fundament-news-rail-section {
  border-radius: 6px;
}

.fundament-news-status-card--empty {
  background: #fafbfd;
}

.fundament-news-panel__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.fundament-news-panel__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.fundament-news-panel--primary-report .fundament-news-panel__body {
  gap: 12px;
}

.fundament-news-rail-card,
.fundament-news-list-item,
.fundament-news-card,
.fundament-news-detail-panel__link,
.fundament-news-detail-panel__article {
  border-radius: 6px;
}

.fundament-news-rail-card,
.fundament-news-list-item,
.fundament-news-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fundament-news-rail-card__title,
.fundament-news-list-item__title,
.fundament-news-card__title,
.fundament-news-detail-panel__headline,
.fundament-news-detail-panel__article-title {
  line-height: 1.35;
}

.fundament-news-list-item__eyebrow {
  color: #6e7f95;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fundament-news-list-item__chips,
.fundament-news-detail-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fundament-news-inline-chip,
.fundament-news-list-item__meta-chip,
.fundament-news-card__meta-chip,
.fundament-news-rail-card__meta-chip,
.fundament-news-asset-chip {
  border: 1px solid #d8e5ff;
}

.fundament-news-detail-panel {
  padding: 12px;
}

.fundament-news-detail-view {
  display: block;
}

.fundament-news-detail-view + .fundament-news-detail-view {
  margin-top: 0;
}

.fundament-news-detail-panel__stack {
  min-width: 0;
}

.fundament-news-detail-panel__section-title {
  margin-top: 2px;
}

.fundament-news-detail-panel__metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fundament-news-detail-panel__article,
.fundament-news-detail-panel__link {
  color: var(--news-ink);
}

.fundament-news-detail-panel__article-meta {
  margin-top: 4px;
}

.fundament-news-detail-panel__bullet {
  padding-left: 10px;
  position: relative;
}

.fundament-news-detail-panel__bullet::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7b8aa0;
}

.fundament-news-chart-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fundament-news-chart-card__image {
  width: 100%;
  height: auto;
  border: 1px solid var(--news-border);
  border-radius: 6px;
  background: #fff;
}

.fundament-news-markdown > :first-child {
  margin-top: 0;
}

.fundament-news-markdown > :last-child {
  margin-bottom: 0;
}

.fundament-news-markdown p,
.fundament-news-markdown ul,
.fundament-news-markdown ol {
  margin: 0 0 0.72rem;
}

.fundament-news-markdown li + li {
  margin-top: 0.28rem;
}

.fundament-news-empty-note {
  border-style: solid;
  background: #fbfcfe;
}

@media (max-width: 1280px) {
  .fundament-news-layout {
    grid-template-columns: minmax(216px, 236px) minmax(0, 1.55fr) minmax(280px, 0.9fr);
    gap: 10px;
  }
}

@media (max-width: 980px) {
  .fundament-news-detail-panel__metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
