/* Powers of 10 Size Comparator — tool-specific styles only.
   Shared layout, buttons, inputs, badges and notices come from /assets/ui.css.
   Colours use ui.css variables only, except brand navy #0f2a44,
   blue #2a5a8a and orange #e67e22. */

.pot-zoom { margin-bottom: var(--s4); }
.pot-zoom h2 { margin-bottom: var(--s2); }

.pot-slider-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s1);
  font-weight: 650;
  margin-bottom: var(--s2);
}
.pot-exp-readout { color: var(--muted); font-weight: 600; }

.pot-slider {
  width: 100%;
  accent-color: var(--primary);
  margin: 0 0 var(--s1);
  cursor: pointer;
}
.pot-slider:focus-visible { box-shadow: var(--focus-ring); outline: none; border-radius: var(--radius-chip); }
.pot-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: var(--radius-chip);
  background: var(--surface-3);
}
.pot-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--primary);
}
.pot-slider::-moz-range-track {
  height: 8px;
  border-radius: var(--radius-chip);
  background: var(--surface-3);
}
.pot-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--primary);
}

.pot-scale-ends {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--s4);
}

/* Visual scale cue: a track with a marker, and a circle that grows with size. */
.pot-cue {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--s4);
  margin-bottom: var(--s4);
}
.pot-circle-wrap {
  flex: 0 0 auto;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pot-circle {
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.85;
  min-width: 12px;
  min-height: 12px;
  transition: width var(--dur-fast, 120ms) ease-out, height var(--dur-fast, 120ms) ease-out;
}
.pot-cue-text { flex: 1 1 220px; min-width: 0; }
.pot-cue-text p { margin-bottom: var(--s2); }
.pot-cue-text p:last-child { margin-bottom: 0; }

.pot-track {
  position: relative;
  height: 10px;
  border-radius: var(--radius-chip);
  background: var(--surface-3);
  margin-bottom: var(--s4);
}
.pot-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #e67e22;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px #e67e22;
}
.pot-track-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: -8px 0 var(--s4);
}

/* Readout panel */
.pot-readout {
  border-top: 1px solid var(--line);
  padding-top: var(--s4);
  margin-bottom: var(--s4);
}
.pot-sci {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--s1);
  overflow-wrap: anywhere;
}
.pot-plain {
  font-size: var(--fs-lg);
  color: var(--ink-2);
  margin: 0 0 var(--s3);
}
.pot-stop-name { font-size: var(--fs-lg); font-weight: 700; margin: 0 0 var(--s1); }
.pot-stop-note { margin: 0 0 var(--s3); }
.pot-ratio { margin: 0; color: var(--ink-2); }
.pot-ratio strong { color: var(--ink); }

/* Stop chips */
.pot-chips-label { font-weight: 650; margin-bottom: var(--s2); }
.pot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pot-chip {
  min-height: 44px;
  padding: var(--s1) var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-chip);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.pot-chip:hover { border-color: var(--primary); color: var(--primary); }
.pot-chip:focus-visible { box-shadow: var(--focus-ring); outline: none; }
.pot-chip[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Stops table */
.pot-table-wrap { overflow-x: auto; margin-bottom: 0; }
.pot-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.pot-table th,
.pot-table td { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
.pot-table th { color: var(--muted); font-weight: 650; }
.pot-table td:first-child { font-weight: 650; white-space: nowrap; }
.pot-table tr:last-child th,
.pot-table tr:last-child td { border-bottom: none; }
.pot-table .mono { white-space: nowrap; }

.pot-list { margin-bottom: var(--s4); }
.pot-list li { margin-bottom: var(--s2); }
.pot-list li::marker { font-weight: 700; color: var(--primary); }

@media (max-width: 560px) {
  .pot-sci { font-size: var(--fs-2xl); }
  .pot-circle-wrap { width: 130px; height: 130px; }
  .pot-cue { padding: var(--s3); gap: var(--s3); }
  .pot-table th,
  .pot-table td { padding: var(--s1) var(--s2); }
  .pot-table td:first-child { white-space: normal; }
  .pot-table .mono { white-space: normal; }
}
