/* ! rs-isomix.css v1.0 (30 Nov 2026, page-only file: Isotopes, A-level) · the Isotope mixer's mix bar (rs-isomix.js) */

#ctIso .im-mix {
  margin-top: 14px;
}

#ctIso .im-mix-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0 0 4px;
}

#ctIso .im-hint {
  display: block;
  flex-basis: 100%;
  font-size: 0.88rem;
  color: #5d6273;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the bar: one fixed height for every element (and for nothing chosen), so the card never changes height */

#ctIso .im-bar {
  position: relative;
  height: 48px;
  margin: 0 12px;
  touch-action: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

#ctIso .im-bar.is-empty {
  cursor: default;
}

#ctIso .im-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 28px;
  border-radius: 6px;
  background: #e9ebf0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #c9ced9;
}

#ctIso .im-seg {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
}

#ctIso .im-seg + .im-seg {
  box-shadow: inset 2px 0 0 #fff;
}

#ctIso .im-handle {
  position: absolute;
  top: 2px;
  width: 18px;
  height: 44px;
  margin-left: -9px;
  border: 2px solid #394362;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(37, 36, 47, 0.35);
  cursor: ew-resize;
  touch-action: none;
  z-index: 2;
}

#ctIso .im-handle::before {
  content: "";
  position: absolute;
  inset: -4px -14px;
}

/* 46 × 52 px touch target */

#ctIso .im-grip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 16px;
  margin: -8px 0 0 -3px;
  border-left: 2px solid #394362;
  border-right: 2px solid #394362;
}

#ctIso .im-handle:focus {
  outline: none;
}

#ctIso .im-handle:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 2px;
}

#ctIso .im-handle:hover, #ctIso .im-handle:active {
  background: #eef1f8;
}

/* the key: always three cells, so two- and three-isotope elements are the same height */

#ctIso .im-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 0;
}

#ctIso .im-key-cell {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  font-size: 0.85rem;
  line-height: 1.3;
}

#ctIso .im-key-cell.is-blank .im-sw {
  background: transparent;
  border-color: transparent;
}

#ctIso .im-sw {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 3px;
  border: 1px solid rgba(37, 36, 47, 0.35);
}

#ctIso .im-key-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#ctIso .im-key-name {
  color: var(--rs-ink, #25242f);
  white-space: nowrap;
}

#ctIso .im-key-val {
  font-weight: 800;
  color: var(--rs-navy, #394362);
}

#ctIso .im-reset-row {
  margin-top: 6px;
}

#ctIso .im-frac {
  vertical-align: middle;
  font-size: 0.92em;
}

#ctIso .im-ro-note {
  color: #5d6273;
  font-size: 0.92em;
}

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

#ctIso #isoSvg text {
  font-family: inherit;
}

.im-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 420px) {
  #ctIso .im-key-cell {
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  #ctIso .im-bar {
    margin: 0 9px;
  }
}

#ctIso .im-nw {
  white-space: nowrap;
}

/* narrow screens: an isotope name may wrap only at its hyphen; two lines are always reserved, so nothing moves */

@media (max-width: 480px) {
  #ctIso .im-key-name {
    white-space: normal;
    min-height: 2.6em;
  }
}

