/* Give the heads and helix room while keeping the frame inside the research card. */
#trajectory .trajectory-research-head {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
}
#trajectory .trajectory-brain {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: auto;
  padding: 14px;
  border: 2px solid #8b6aa7;
  border-radius: 16px;
  background: #eeedf1;
  box-shadow: 0 0 0 1px #e8ca7c80, 0 0 14px #e3bc624d,
    0 0 30px #dcb24b2e, 0 5px 14px #b793441c;
}
#trajectory .trajectory-brain > svg.research-machine-visual {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  transform: none;
}
#trajectory .trajectory-research-head .eyebrow {
  font-size: clamp(20px, 1.6vw, 23px);
  line-height: 1.4;
}
#trajectory .trajectory-research-head h2 {
  font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1.2;
}
@media (max-width: 900px) {
  #trajectory .trajectory-research-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  #trajectory .trajectory-brain {
    width: 100%;
    max-width: 680px;
    justify-self: start;
  }
}
@media (max-width: 480px) {
  #trajectory .trajectory-brain { padding: 8px; }
  #trajectory .trajectory-research-head h2 { font-size: 32px; }
}
#trajectory .trajectory-outlook-controls {
  grid-template-columns: minmax(0, 1fr);
}
#trajectory .trajectory-outlook-controls .trajectory-driver-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 480px) {
  #trajectory .trajectory-outlook-controls .trajectory-driver-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Paired research actions share one row and a clear middle divider. */
#trajectory .trajectory-research-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0 12px;
}
#trajectory .trajectory-research-actions > .btn {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  white-space: normal;
}
#trajectory .trajectory-research-actions > .btn + .btn {
  border-left: 1px solid var(--line);
}
#trajectory .trajectory-research-actions > .btn:focus-visible {
  outline-offset: -4px;
}
