/* JCC Phase 6.9.6b — test-site Researcher Help popup, live popup-only port. */

body.jcc-research-help-ready .inline-info-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-left: 6px;
  padding: 0;
  place-items: center;
  border: 1px solid #9fb9d5;
  border-radius: 50%;
  color: #123b70;
  background: #fff;
  font: 800 12px/1 system-ui, sans-serif;
  cursor: pointer;
  transform: none;
}

body.jcc-research-help-ready .inline-info-icon:hover,
body.jcc-research-help-ready .inline-info-icon:focus-visible,
body.jcc-research-help-ready .inline-info-icon[aria-expanded="true"] {
  border-color: #164a82;
  color: #fff;
  background: #164a82;
  outline: 2px solid rgba(35, 145, 225, .24);
  outline-offset: 2px;
  box-shadow: none;
}

/* The new controller owns mapped information buttons. */
body.jcc-research-help-ready .global-info-popover {
  display: none !important;
}

.jcc-global-tooltip {
  position: fixed;
  z-index: 9999999;
  max-height: calc(100vh - 24px);
  padding: 0;
  overflow: auto;
  border: 1px solid #bed1e4;
  border-top: 4px solid #16366b;
  border-radius: 14px;
  color: #16345c;
  background: #fff;
  box-shadow: 0 18px 48px rgba(13, 38, 69, .22);
  font: 14px/1.45 system-ui, sans-serif;
}

.jcc-global-tooltip[hidden] { display: none !important; }

.jcc-global-tooltip header {
  position: relative;
  padding: 20px 52px 10px 20px;
}

.jcc-global-tooltip h2 {
  display: block;
  margin: 5px 0 0;
  padding: 0;
  border: 0;
  color: #12376b;
  font-size: 20px;
  line-height: 1.3;
}

.jcc-global-tooltip h3 {
  margin: 0 0 5px;
  color: #124579;
  font-size: 14px;
}

.jcc-global-tooltip p { margin: 0; color: #16345c; font-size: 14px; line-height: 1.45; }
.jcc-global-tooltip section { padding: 0 20px 14px; }

.jcc-help-eyebrow {
  color: #617f9f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.jcc-help-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #15416f;
  background: #edf4fa;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.jcc-help-close:hover,
.jcc-help-close:focus-visible {
  color: #fff;
  background: #164a82;
  outline: 2px solid rgba(35, 145, 225, .24);
  outline-offset: 2px;
}

.jcc-help-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 20px 15px;
  padding: 12px 14px;
  border: 1px solid #b9d9f3;
  border-radius: 8px;
  background: #f2f9ff;
}

.jcc-help-result span {
  color: #5c7695;
  font-size: 12px;
  font-weight: 700;
}

.jcc-help-result strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #0f376d;
  text-align: right;
}

.jcc-global-tooltip .jcc-help-caution {
  margin: 0 14px 14px;
  padding: 12px 14px;
  border: 1px solid #eacb78;
  border-radius: 8px;
  background: #fff9e9;
}

.jcc-global-tooltip footer {
  padding: 12px 20px;
  border-top: 1px solid #dce5ee;
  color: #617995;
  background: #f7f9fc;
  font-size: 12px;
}

@media (max-width: 800px) {
  .jcc-global-tooltip {
    inset: auto 8px 8px !important;
    width: auto !important;
    max-height: min(78vh, 620px);
  }
}

@media print {
  .jcc-global-tooltip { display: none !important; }
}
