.ipl-research-pathfinder {
  --research-ink: #effbff;
  --research-muted: #a9c0cc;
  --research-cyan: #27d9ff;
  --research-lime: #b8ff54;
  margin: 3rem auto;
  /* Hero links land below the sticky site header instead of clipping the tool title. */
  scroll-margin-top: 10rem;
}

.research-pathfinder-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  color: var(--research-ink);
  background:
    linear-gradient(90deg, rgba(39, 217, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(39, 217, 255, 0.05) 1px, transparent 1px),
    #071522;
  background-size: 42px 42px;
  border: 1px solid rgba(39, 217, 255, 0.38);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.research-pathfinder-shell::before {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  content: "";
  background: linear-gradient(transparent, rgba(184, 255, 84, 0.36), transparent);
  pointer-events: none;
}

.research-kicker {
  margin: 0 0 0.65rem;
  color: var(--research-lime);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.research-intro {
  max-width: 760px;
  margin: 0 auto 1.75rem;
  color: var(--research-muted);
  text-align: center;
}

.research-pathfinder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.research-checklist {
  display: grid;
  gap: 1rem;
}

.research-fieldset {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(169, 192, 204, 0.25);
  border-radius: 12px;
}

.research-fieldset legend {
  padding: 0 0.45rem;
  color: var(--research-cyan);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
}

.research-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.research-choice {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  min-height: 48px;
  padding: 0.8rem;
  color: var(--research-ink);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(169, 192, 204, 0.18);
  border-radius: 8px;
  cursor: pointer;
}

.research-choice:hover {
  border-color: rgba(39, 217, 255, 0.65);
}

.research-choice input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  accent-color: var(--research-cyan);
}

.research-choice:has(input:focus-visible) {
  outline: 3px solid rgba(39, 217, 255, 0.35);
  outline-offset: 2px;
}

.research-output {
  position: sticky;
  top: 1rem;
  padding: 1.35rem;
  background: rgba(3, 12, 20, 0.83);
  border: 1px solid rgba(184, 255, 84, 0.3);
  border-radius: 12px;
}

.research-status {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.48rem 0.72rem;
  color: #071522;
  background: #ffce4d;
  border: 2px solid currentColor;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.research-status[data-level="archive"] {
  background: #b9c9d0;
}

.research-status[data-level="review"] {
  background: var(--research-cyan);
}

.research-status[data-level="confirmed"] {
  background: var(--research-lime);
}

.research-output h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.research-output p {
  color: var(--research-muted);
}

.research-missing {
  min-height: 2.8em;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(169, 192, 204, 0.2);
  font-size: 0.9rem;
}

.research-output .btn {
  width: 100%;
  margin-top: 0.55rem;
  text-align: center;
}

.research-noscript {
  margin-top: 1rem;
  padding: 1rem;
  color: var(--research-muted);
  border-left: 3px solid var(--research-cyan);
}

.research-noscript a {
  color: var(--research-cyan);
}

@media (max-width: 780px) {
  .research-pathfinder-shell::before {
    display: none;
  }

  .research-pathfinder-grid {
    grid-template-columns: 1fr;
  }

  .research-output {
    position: static;
  }
}

@media (max-width: 520px) {
  .research-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .research-status {
    transform: none;
  }
}
