.brain-hero .intelligence-panel {
  container-type: inline-size;
}

.brain-hero .brain-orbit {
  width: 200px;
  height: 200px;
}

.brain-hero .brain-nucleus {
  width: 168px;
  height: 168px;
  padding: 12px;
}

.brain-nucleus > span {
  line-height: 1.15;
  margin-bottom: 5px;
}

.brain-nucleus small {
  margin-top: 6px;
  color: #e0eacd;
  font-size: 12px;
  line-height: 1.22;
}

.brain-nucleus small span {
  display: block;
}

.research-news {
  color: #173e30;
  background: #e0ebcf;
  border-bottom: 1px solid #bdcfae;
}

.news-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "label stories controls";
  align-items: center;
  gap: 0 clamp(16px, 2vw, 32px);
  min-height: 62px;
  padding-block: 8px;
}

.news-label {
  grid-area: label;
  padding-inline-end: clamp(16px, 2vw, 32px);
  border-inline-end: 1px solid #a9bf9b;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-stories {
  grid-area: stories;
  display: grid;
  min-width: 0;
}

/* All headlines occupy the same cell, so rotating never moves the hero. */
.news-story {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  visibility: hidden;
}

.news-story.is-current {
  visibility: visible;
}

.news-title {
  color: #143b2c;
  font-size: 0.98rem;
  line-height: 1.36;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.news-title:hover, .news-title:focus-visible {
  text-decoration: underline;
}

.news-meta {
  color: #3d5840;
  font-size: 0.78rem;
  line-height: 1.35;
}

.news-controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: 2px;
}

.research-news [hidden] {
  display: none;
}

.news-controls button {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  padding: 4px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #234b34;
  font-size: 0.84rem;
  font-weight: 700;
}

.news-controls button:hover, .news-controls button:focus-visible {
  background: #cbddb9;
}

.research-news :focus-visible {
  outline: 2px solid #426338;
  outline-offset: 2px;
}

.news-controls svg {
  width: 14px;
  height: 14px;
}

.news-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 1100px) {
  .news-story {
    display: block;
    align-self: center;
    line-height: 1.4;
  }

  .news-meta {
    display: inline-block;
    margin-inline-start: 0.9rem;
  }
}

@container (max-width: 550px) {
  .brain-hero .intelligence-network {
    height: 376px;
  }

  .intelligence-network .node-data, .intelligence-network .node-model {
    top: 13%;
  }

  .intelligence-network .node-sim, .intelligence-network .node-exp {
    top: 87%;
  }
}

@media (max-width: 650px) {
  .news-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "label controls" "stories stories";
    gap: 2px 12px;
    padding-block: 4px 10px;
  }

  .news-label {
    padding: 0;
    border: 0;
  }

  .news-controls {
    margin-inline-end: -6px;
  }

  .news-story {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brain-hero .intelligence-network {
    height: 354px;
  }

  .brain-hero .brain-orbit {
    width: 184px;
    height: 184px;
  }

  .brain-hero .brain-nucleus {
    width: 156px;
    height: 156px;
  }

  .brain-hero .network-node {
    min-width: min(121px, 38%);
  }
}
