/* Keep the page's section heading; use one sans-serif family inside the diagram. */
.research-section { margin: 15px 0 24px; scroll-margin-top: 24px; }
.research-section > .colorlib-narrow-content > .colorlib-heading { margin-bottom: 8px; }
.research-loop { color: rgba(0, 0, 0, .7); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.65; }
.research-intro p { font-size: 18px; line-height: 1.65; margin: 0 0 10px; }
.research-explorer { display: flex; flex-direction: column; }
.research-map-area { width: 100%; max-width: 760px; margin: 0 auto; container-type: inline-size; }
.research-map { position: relative; width: 100%; aspect-ratio: 760 / 570; margin-top: 14px; }
.research-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.research-track { fill: none; stroke: #e2effa; stroke-width: 2; }
.research-edge { fill: none; stroke: #2c98f0; stroke-width: 2; stroke-linecap: round; opacity: .35; transition: opacity .2s, stroke-width .2s; }
.research-loop[data-active-stage="data"] .research-edge-data,
.research-loop[data-active-stage="training"] .research-edge-training,
.research-loop[data-active-stage="deployment"] .research-edge-deployment { opacity: 1; stroke-width: 3; }
.research-particle { display: none; }
.research-loop.is-playing .research-particle { display: block; }
.research-edge-label { position: absolute; padding: 3px 6px; background: #fff; color: #718493; font-size: 14px; font-weight: 500; white-space: nowrap; line-height: 1.4; }
.research-edge-label-data { top: 43.5%; left: 15%; transform: translate(-50%, -50%); }
.research-edge-label-training { top: 43.5%; left: 85%; transform: translate(-50%, -50%); }
.research-edge-label-feedback { top: 90%; left: 50%; transform: translate(-50%, -50%); }
.research-loop[data-active-stage="data"] .research-edge-label-data,
.research-loop[data-active-stage="training"] .research-edge-label-training,
.research-loop[data-active-stage="deployment"] .research-edge-label-feedback { color: #2c98f0; }
.research-node { position: absolute; z-index: 2; transform: translate(-50%, -50%); width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-family: inherit; text-align: center; line-height: 1.4; cursor: pointer; }
/* Icon centers sit 120 degrees apart on the SVG circle: (380, 295), r = 190. */
.research-node-data { top: 68.421053%; left: 28.349365%; --label-x: -49px; }
.research-node-training { top: 18.421053%; left: 50%; --label-x: 50%; }
.research-node-deployment { top: 68.421053%; left: 71.650635%; --label-x: 101px; }
.research-node-top { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; border: 1px solid #d9eaf8; border-radius: 50%; background: #fff; color: #2c98f0; box-shadow: 0 0 0 5px #fff; transition: color .2s, background .2s, box-shadow .2s; }
.research-node-number { position: absolute; top: -4px; right: -9px; min-width: 21px; padding: 2px 3px; border-radius: 12px; background: #fff; color: #7b8d9d; font-size: 10px; font-weight: 600; line-height: 1.3; }
.research-node svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.research-node > strong { position: absolute; top: calc(100% + 32px); left: var(--label-x); transform: translateX(-50%); width: max-content; margin: 0; padding: 0 5px; background: #fff; color: #222; font-family: inherit; font-size: 18px; font-weight: 600; transition: color .2s; }
.research-node-caption { position: absolute; top: calc(100% + 61px); left: var(--label-x); transform: translateX(-50%); width: max-content; margin: 0; padding: 0 4px; background: #fff; color: #666; font-size: 13px; }
.research-node-training > strong { top: auto; bottom: calc(100% + 39px); }
.research-node-training .research-node-caption { top: auto; bottom: calc(100% + 13px); }
.research-node:hover .research-node-top { background: #f3f9ff; box-shadow: 0 0 0 5px #fff, 0 0 0 9px rgba(44, 152, 240, .06); }
.research-node.is-active .research-node-top { border-color: #2c98f0; background: #2c98f0; color: #fff; box-shadow: 0 0 0 5px #fff, 0 0 0 9px rgba(44, 152, 240, .1); }
.research-node.is-active .research-node-number, .research-node.is-active > strong { color: #2c98f0; }
.research-map-controls { display: flex; justify-content: flex-start; align-items: center; gap: 12px; margin: 14px 0 8px; }
.research-map-controls[hidden], .research-next[hidden] { display: none; }
.research-control-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.research-play { padding: 6px 10px; border: 1px solid #d9e9f7; border-radius: 5px; color: #2c98f0; background: #fff; font: inherit; font-size: 13px; line-height: 1.5; white-space: nowrap; cursor: pointer; }
.research-play:hover { background: #f3f9ff; }
.research-play-icon { display: inline-block; min-width: 12px; font-size: 10px; }
.research-details { position: absolute; z-index: 1; top: 51.754386%; left: 50%; transform: translate(-50%, -50%); width: 36.8%; max-width: 280px; text-align: center; }
.research-detail { padding: 0; }
.research-detail[hidden] { display: none; }
.research-loop.is-enhanced .research-detail:not(.is-active) { display: none; }
.research-detail h4 { margin: 0 0 11px; font-family: inherit; font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.3px; text-wrap: balance; color: #222; }
.research-description { margin: 0 0 13px; font-size: 14px; line-height: 1.6; color: #555; text-wrap: pretty; }
.research-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; list-style: none; padding: 0; margin: 0; font-size: 13.5px; line-height: 1.45; color: #737373; }
.research-topics li { padding: 0; }
.research-related { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; margin-top: 13px; padding-top: 12px; line-height: 1.4; }
.research-related::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 2px; background: #d1e8fb; }
.research-related > span { width: 100%; margin-bottom: 3px; color: #777; font-size: 12px; font-weight: 500; letter-spacing: .2px; }
.research-related a { padding: 2px 0; border-bottom: 1px solid #e1effa; color: #2c98f0; font-size: 16px; font-weight: 600; white-space: nowrap; }
.research-related a:only-of-type { font-size: 18px; }
.research-related a:hover { text-decoration: underline !important; }
.research-related a > span { font-family: inherit; font-size: 13px; font-weight: 400; }
.research-next { padding: 6px 0; border: 0; background: none; color: #2c98f0; font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.research-next span { display: inline-block; margin-left: 4px; }
.research-next:hover { text-decoration: underline; }
.research-loop button:focus-visible, .research-loop a:focus-visible { outline: 2px solid #2c98f0; outline-offset: 4px; }
.research-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 769px) and (max-width: 1150px) {
  .research-node > strong { font-size: 18px; }
  .research-node-caption { font-size: 12px; }
  .research-edge-label { font-size: 13px; }
}
@container (max-width: 720px) {
  .research-map { display: grid; gap: 22px; aspect-ratio: auto; padding: 10px 0 0; }
  .research-connections, .research-edge-label { display: none; }
  .research-node { position: relative; top: auto; left: auto; transform: none; width: 100%; height: auto; display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding: 10px 6px; border-radius: 0; text-align: left; }
  .research-node-top { grid-row: 1 / 3; align-self: center; width: 48px; height: 48px; margin: 0; }
  .research-node > strong { position: static; transform: none; width: auto; margin: 0; padding: 0; font-size: 19px; }
  .research-node-caption { position: static; transform: none; width: auto; grid-column: 2; margin: 3px 0 0; padding: 0; font-size: 13px; }
  .research-node:not(.research-node-deployment)::after { content: "↓"; position: absolute; bottom: -24px; left: 25px; color: #2c98f0; font: 18px/1.4 Arial, sans-serif; }
  .research-map::after { content: "↺ Evaluation & feedback → new data"; order: 1; color: #2c98f0; font-size: 13px; padding-left: 15px; }
  .research-details { position: relative; top: auto; left: auto; transform: none; order: 2; width: 100%; max-width: none; padding: 18px 8px; border-top: 1px solid #e8e8e8; }
}
@media (max-width: 768px) {
  .research-section { scroll-margin-top: 60px; }
  .research-section > .colorlib-narrow-content > .colorlib-heading { font-size: 16px; letter-spacing: 3px; }
  .research-play, .research-next { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .research-loop *, .research-loop *::before, .research-loop *::after { transition: none !important; animation: none !important; }
  .research-loop .research-particle { display: none !important; }
}
