/* VOIDLING BOUND arm.css - PATCH NOTES skin (2026-07-03 reskin).
   Per-arm identity in the patch-notes system is the small colored chip/square
   (VOID VIOLET #6a4fa3) plus honest version chips; the egg-speckle motif is
   retired in favor of the shared single blue rule under the header. The signal
   BLUE from base.css carries links + primary actions; void violet is the arm's
   quiet accent (live emphasis, warnings, the arm chip). Nature colors stay literal
   bordered swatches (they represent physical game objects).

   All 2026-07-03 walkthrough accessibility fixes are PRESERVED: 44px steppers and
   tap targets, direct-entry numeric stat inputs, 14px+ tier/attr sublabels, 16px
   metric labels, the prominent sterility warning, the clamped-value feedback, and
   the tier named on the plate. This is a color/type swap only. */

:root {
  --accent: #6a4fa3;      /* void violet, quiet arm accent */
  --accent-ink: #5b3a8a;  /* darker violet for text on light */
}

.arm-chip.arm-void { background: var(--arm-void); }

/* ---------- motif: retired egg-speckle -> shared blue rule shows through ---------- */
/* HTML still carries class="motif-rule speckle-rule"; speckle-rule is now a no-op
   so the base 2px blue .motif-rule renders as the single patch-notes motif. */
.speckle-rule { height: 2px; border: 0; background: var(--blue); background-image: none; }

/* ---------- two persistent parent panels ---------- */
.parents { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 2px; }
/* 375px fix: stack the two parent panels vertically below 640px (no h-scroll). */
@media (max-width: 640px) { .parents { grid-template-columns: 1fr; } }
.parent-panel {
  border: 1px solid var(--hair-strong); border-radius: 4px; background: var(--panel);
  padding: 10px;
}
.pp-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 0 0 8px;
}
.pp-name {
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  text-transform: none; letter-spacing: 0; color: var(--ink);
}
.pp-copy {
  font-family: var(--sans); font-size: 14px; text-transform: none; letter-spacing: 0;
  font-weight: 600; background: var(--panel); color: var(--ink);
  border: 1px solid var(--hair-strong); border-radius: 4px;
  min-height: 44px; padding: 6px 12px; cursor: pointer; white-space: nowrap;
}
.pp-copy:hover, .pp-copy:active { border-color: var(--slate); }

/* ---------- attribute steppers ---------- */
.attr-row {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin: 5px 0;
}
.attr-label {
  font-family: var(--mono); font-size: 0.875rem; text-transform: none;
  letter-spacing: 0; color: var(--ink); flex: 1 1 auto; min-width: 0;
}
.stepper { display: flex; align-items: stretch; gap: 0; flex: none; }
/* 44px tap floor. */
.stepper button {
  width: 44px; min-height: 44px; border: 1px solid var(--hair-strong);
  background: var(--panel); color: var(--ink); font-family: var(--mono);
  font-size: 1.1rem; font-weight: 700; cursor: pointer; line-height: 1;
}
.stepper button:hover, .stepper button:active { border-color: var(--slate); background: var(--page); }
.stepper .st-minus { border-radius: 4px 0 0 4px; border-right-width: 0.75px; }
.stepper .st-plus { border-radius: 0 4px 4px 0; border-left-width: 0.75px; }
/* direct-entry numeric input so a stat can be typed. */
.stepper .st-val {
  width: 46px; min-height: 44px; text-align: center;
  border-top: 1px solid var(--hair-strong); border-bottom: 1px solid var(--hair-strong);
  border-left: none; border-right: none; background: var(--panel);
  font-family: var(--mono); font-size: 1.05rem; font-weight: 700;
  color: var(--ink); padding: 0; -moz-appearance: textfield;
}
.stepper .st-val::-webkit-outer-spin-button,
.stepper .st-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .st-val:focus { outline: 2px solid var(--blue); outline-offset: -2px; }

/* ---------- hatchery tier ladder (4 toggles) ---------- */
.tier-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.tier-btn {
  min-height: 44px; padding: 5px 10px; border: 1px solid var(--hair-strong);
  border-radius: 4px; background: var(--panel); color: var(--ink);
  font-family: var(--mono); cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1;
}
.tier-btn:hover { border-color: var(--slate); }
.tier-btn .tb-pct { font-size: 0.95rem; font-weight: 700; }
/* tier sublabels carry meaning; 12.8px min. */
.tier-btn .tb-sub { font-size: 0.8rem; color: var(--slate); letter-spacing: 0; }
.tier-btn.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tier-btn.on .tb-sub { color: rgba(255,255,255,0.82); }

/* ---------- offspring range plate (base .answer-plate = 2px light result block) ---------- */
.range-plate .answer-big { font-size: clamp(1.5rem, 7vw, 2.4rem); color: var(--ink); }
/* 2026-07-03 retrofit (V1, R2): the pre-interaction plate is a LABELED example
   default, not a fake answer. The tag renders small and quiet (below the answer
   tier) and disappears on the first real edit. */
.range-plate .plate-eg {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
  color: var(--accent-ink); letter-spacing: 0; line-height: 1.4;
  border: 1px solid var(--accent); border-radius: 3px;
  padding: 4px 8px; margin: 0 0 8px; background: #f6f2fb;
}
.range-grid { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.range-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-family: var(--mono);
}
/* attribute labels 14px, metric labels 16px (meaning-carrying floor). */
/* 2026-07-03 retrofit (V8, R9): "RECUPERATION" wrapped mid-word ("RECUPERAT ION")
   on the 375px plate. Keep the attribute name on one line; the fixed-width label
   column plus the range's own baseline keep the layout intact at 375px. */
.range-line .rl-attr {
  font-size: 0.875rem; text-transform: none; letter-spacing: 0;
  color: var(--slate); flex: none; width: 6.9em;
  white-space: nowrap; overflow-wrap: normal;
}
.range-line .rl-range { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.range-line .rl-note { font-size: 0.8rem; color: var(--slate-soft); }
.plate-headline {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px;
  border-top: 1px solid var(--hair); padding-top: 8px;
}
.plate-metric { display: flex; flex-direction: column; }
.plate-metric .pm-label {
  font-family: var(--mono); font-size: 1rem; letter-spacing: 0;
  text-transform: none; color: var(--slate); margin-bottom: 2px;
}
.plate-metric .pm-value { font-family: var(--mono); font-size: clamp(1.3rem, 6vw, 1.9rem); font-weight: 700; line-height: 1; color: var(--ink); }

/* ---------- community-measured inline tag ---------- */
/* the single most important trust signal; 12.8px min. */
.cm-tag {
  font-family: var(--mono); font-size: 0.8rem; text-transform: none;
  letter-spacing: 0; color: var(--accent-ink); font-weight: 700;
  border: 1px solid var(--accent); border-radius: 3px; padding: 1px 5px;
  margin-left: 6px; white-space: nowrap; vertical-align: middle;
}
.cm-note {
  font-family: var(--mono); font-size: 0.8rem; color: var(--slate);
  margin: 6px 0 0; line-height: 1.5;
}
.cm-note .cm-tag { margin-left: 0; margin-right: 4px; }

/* ---------- cap / warning notes under the plate ---------- */
.cap-note {
  font-family: var(--mono); font-size: 0.8rem; color: var(--accent-ink);
  margin: 8px 0 0; line-height: 1.5;
}

/* ---------- sterility warning (prominent: accent border + tint, 14px+) ---------- */
.sterility-warn {
  border: 1px solid var(--accent); border-radius: 4px;
  background: #f6f2fb; color: var(--ink); padding: 8px 10px; margin: 8px 0 0;
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.45;
}
.sterility-warn .sw-head {
  color: var(--accent-ink); font-weight: 700; text-transform: none;
  letter-spacing: 0; font-size: 0.8rem; display: block; margin-bottom: 3px;
}
.sterility-warn .cm-tag { margin-left: 0; margin-right: 4px; }
.plate-sterility {
  font-family: var(--mono); font-size: 0.86rem; color: var(--accent-ink);
  font-weight: 700; margin: 8px 0 0; line-height: 1.5;
}

/* ---------- parent status (fertility) picker ---------- */
.status-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.status-lab {
  font-family: var(--mono); font-size: 0.8rem; text-transform: none;
  letter-spacing: 0; color: var(--slate); display: block; margin: 6px 0 3px;
}
/* 2026-07-03 retrofit (V3, R7): quiet disambiguation note between the mutant
   fertility VARIANT and the mutated subspecies TIER. Demoted-reference tier. */
.status-hint {
  font-family: var(--sans); font-size: 0.78rem; color: var(--slate);
  line-height: 1.4; margin: 0 0 4px;
}
.status-btn {
  min-height: 44px; padding: 6px 12px; border: 1px solid var(--hair-strong);
  border-radius: 4px; background: var(--panel); color: var(--ink);
  font-family: var(--mono); font-size: 0.82rem; cursor: pointer;
}
.status-btn:hover { border-color: var(--slate); }
.status-btn.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- version plate -> patch-notes version chip line ---------- */
.version-plate {
  font-family: var(--mono); font-size: 0.8rem; color: var(--slate);
  letter-spacing: 0; margin: 12px 0 2px; border: 1px solid var(--hair-strong);
  border-radius: 3px; padding: 8px 11px; background: var(--panel);
}

/* ---------- swatch pickers (natures, rarities, species) ---------- */
.pick-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.pick-btn {
  min-height: 44px; padding: 6px 10px; border: 1px solid var(--hair-strong);
  border-radius: 4px; background: var(--panel); color: var(--ink);
  font-family: var(--mono); font-size: 0.82rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}
.pick-btn:hover { border-color: var(--slate); }
.pick-btn.on { background: var(--blue); border-color: var(--blue); color: #fff; }
/* nature color swatch: literal, bordered, not decoration */
.nat-swatch {
  width: 15px; height: 15px; border: 1px solid var(--hair-strong); border-radius: 3px;
  display: inline-block; flex: none;
}
.pick-btn.on .nat-swatch { border-color: #fff; }
.sw-orange { background: #d1751f; } .sw-purple { background: #6b4aa0; }
.sw-green { background: #2e8f43; } .sw-blue { background: #2b62b8; }
.sw-yellow { background: #d9b100; }

/* nature select */
.nat-select {
  width: 100%; min-height: var(--tap); border: 1px solid var(--hair-strong);
  border-radius: 4px; background: var(--panel); color: var(--ink);
  font-family: var(--mono); font-size: 1.05rem; padding: 10px 12px;
}
.nat-select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }

/* ---------- solver / result blocks (natures + subspecies pages) ---------- */
.result-block {
  border: 2px solid var(--border-2); border-radius: 4px; background: var(--panel);
  padding: 12px; margin: 10px 0;
}
.result-block .rb-label {
  font-family: var(--mono); font-size: 0.875rem; font-weight: 700;
  text-transform: none; letter-spacing: 0; color: var(--slate);
  margin: 0 0 6px;
}
.result-block .rb-main { font-family: var(--mono); font-size: 1rem; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.result-block p { margin: 6px 0 0; font-size: 0.86rem; color: var(--slate); }

/* pairing chips on the nature solver */
.pairing { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pairing .pc {
  border: 1px solid var(--hair-strong); border-radius: 3px; background: var(--panel);
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
  padding: 4px 9px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink);
}
.pairing .pc-x { font-family: var(--mono); font-weight: 700; color: var(--slate-soft); }

/* ---------- subspecies helper tables ---------- */
.sub-table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 14px; }
.sub-table th, .sub-table td { border-bottom: 1px solid var(--hair); padding: 8px 10px; text-align: left; vertical-align: top; }
.sub-table th { color: var(--slate); font-weight: 600; font-size: 13px; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--hair-strong); }

/* visible feedback when a typed value is clamped. */
.st-val.clamped { background: var(--blue); color: #fff; transition: background 0.15s; }

/* tier named on the plate. */
.plate-tier { font-family: var(--mono); font-size: 0.875rem; color: var(--slate); margin-bottom: 4px; }
