.nomograph-tabs {
  display: flex;
}

.nomograph-tabs button {
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.data-table [data-numeric] {
  text-align: right;
  white-space: nowrap;
}

.nomograph-body {
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.nomograph-frame {
  margin: 0;
}

.nomograph {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
  font-family: var(--font-sans);
}

.nomo-axis {
  stroke: var(--text-subtle);
  stroke-width: 1.5;
}

.nomo-tick {
  stroke: var(--text-subtle);
  stroke-width: 1;
}

.nomo-label {
  fill: var(--text-muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.nomo-label.minor {
  fill: var(--text-subtle);
  font-size: 10px;
}

.nomo-title {
  fill: var(--text);
  font-size: 12.5px;
  font-weight: 600;
}

.nomo-unit {
  fill: var(--text-subtle);
  font-size: 11px;
}

.nomo-curve {
  fill: none;
  stroke: var(--text-subtle);
  stroke-width: 1.5;
}

.nomo-line {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.nomo-line.anchor {
  stroke-opacity: 0.4;
}

.nomo-crossing {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2;
}

.nomo-own {
  fill: var(--surface);
  stroke: var(--text);
  stroke-width: 1.5;
}

.nomo-handle {
  cursor: grab;
  outline: none;
}

.nomo-handle:active {
  cursor: grabbing;
}

.nomo-hit {
  fill: transparent;
}

.nomo-knob {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2.5;
  transition: r 120ms ease;
}

.nomo-handle:hover .nomo-knob,
.nomo-handle:focus-visible .nomo-knob {
  r: 8.5;
}

.nomo-handle:focus-visible .nomo-hit {
  fill: var(--accent-soft);
  stroke: var(--ring);
  stroke-width: 2;
}

.nomo-reading {
  fill: var(--text);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.nomograph-caption {
  margin-top: var(--space-3);
  font-size: 12.5px;
  line-height: 1.5;
}

.cell-note {
  display: block;
  color: var(--text-subtle);
  font-size: 11.5px;
}

.table-scroll.flush {
  border: 0;
  border-radius: 0 0 var(--radius-large) var(--radius-large);
}

.table-scroll.flush tr:last-child td {
  border-bottom: 0;
}

.table-scroll tr[aria-current="true"] td {
  background: var(--accent-soft);
}

details.panel > summary {
  cursor: pointer;
  list-style: none;
}

details.panel > summary::-webkit-details-marker {
  display: none;
}

details.panel > summary::after {
  content: "+";
  color: var(--text-subtle);
  font-size: 18px;
}

details.panel[open] > summary::after {
  content: "\2212";
}

details.panel:not([open]) > summary {
  border-bottom: 0;
}
