/* ! rs-isopairs.css v1.0 (30 Nov 2026, page-only file: Isotopes) · "Which atoms made each peak?" (rs-isopairs.js) */

#ctPairs .ct-body {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
}

#ctPairs .ct-choose {
  grid-column: 1 / -1;
}

#ctPairs .ip-chips button {
  min-width: 8.2em;
  justify-content: center;
}

#ctPairs .ip-chips .ip-pk {
  min-width: 6.2em;
  font-variant-numeric: tabular-nums;
}

#ctPairs .ip-chips button:disabled {
  opacity: 0.5;
  cursor: default;
}

#ctPairs .ip-svg {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d0d4e0;
  border-radius: 8px;
}

#ctPairs .ip-svg text {
  font-family: inherit;
}

#ctPairs .ip-bar {
  cursor: pointer;
}

#ctPairs .ip-cap {
  margin: 6px 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #5d6273;
  text-align: center;
}

#ctPairs .ip-side-lab {
  margin: 0 0 6px;
}

/* the grid of pairs: first atom down the side, second atom across the top */

#ctPairs .ip-grid {
  display: grid;
  grid-template-columns: minmax(4.6em, auto) repeat(2, minmax(0, 1fr));
  gap: 4px;
  font-size: 0.95rem;
}

#ctPairs .ip-corner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 700;
  color: #5d6273;
}

#ctPairs .ip-hd {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 3.9em;
  padding: 4px;
  border-radius: 6px;
  background: #f5f6fb;
  font-weight: 800;
  color: var(--rs-navy, #394362);
}

#ctPairs .ip-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 6.6em;
  padding: 6px 4px;
  border: 2px solid #d0d4e0;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  transition: border-color .2s, background-color .2s, color .2s;
}

#ctPairs .ip-cell.is-empty {
  border-style: dashed;
  background: #fafbfd;
}

#ctPairs .ip-cell-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#ctPairs .ip-dots {
  display: inline-flex;
  gap: 2px;
}

#ctPairs .ip-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #25242f;
}

#ctPairs .ip-mz {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--rs-ink, #25242f);
  font-variant-numeric: tabular-nums;
}

#ctPairs .ip-p {
  font-size: 0.85rem;
  line-height: 1.3;
}

#ctPairs .ip-frac {
  vertical-align: middle;
  font-size: 0.92em;
}

#ctPairs .ip-frac > span:first-child {
  padding: 0 3px 1px;
}

#ctPairs .ip-frac > span:last-child {
  padding-top: 1px;
}

#ctPairs .ip-cell.is-on {
  border-color: #0f766e;
  background: #e3f4f1;
}

#ctPairs .ip-cell.is-off {
  color: #6b7080;
}

#ctPairs .ip-cell.is-off .ip-mz {
  color: #6b7080;
}

#ctPairs .ip-grid.ip-in .ip-cell, #ctPairs .ip-grid.ip-in .ip-hd {
  animation: ipIn .45s ease-out both;
}

#ctPairs .ip-cell.ip-pulse {
  animation: ipPulse .6s ease-out;
}

@keyframes ipIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ipPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 118, 110, .45);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(15, 118, 110, 0);
  }
}

#ctPairs .ip-obs .rs-frac {
  vertical-align: middle;
  font-size: 0.9em;
}

#ctPairs .ip-nw {
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  #ctPairs .ip-grid.ip-in .ip-cell, #ctPairs .ip-grid.ip-in .ip-hd, #ctPairs .ip-cell.ip-pulse {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ctPairs .ip-cell {
    transition: none;
  }
}

@container (max-width: 700px) {
  #ctPairs .ct-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 400px) {
  #ctPairs .ip-grid {
    font-size: 0.88rem;
    grid-template-columns: minmax(3.9em, auto) repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  #ctPairs .ip-p {
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  #ctPairs .ip-chips button {
    min-width: 0;
  }
}

@media (max-width: 400px) {
  #ctPairs .ip-chips .ip-pk {
    min-width: 5.6em;
  }
}

@media (max-width: 359.98px) {
  #ctPairs .ip-cell {
    min-height: 8.6em;
  }
}

/* the working goes on two lines in these narrow cells: both lines are reserved */

