/* Batch calculator (see batch.js). Colors default to recipe_style.css; a page can override
   --batch-accent, --batch-on-accent, --batch-text, --batch-muted, --batch-line, --batch-surface. */
.batch-calc {
  --_accent: var(--batch-accent, var(--accent, #f59e0b));
  --_on-accent: var(--batch-on-accent, #111);
  --_text: var(--batch-text, var(--text, #f9fafb));
  --_muted: var(--batch-muted, var(--muted, #9ca3af));
  --_line: var(--batch-line, var(--line, rgba(255, 255, 255, .10)));
  --_surface: var(--batch-surface, rgba(255, 255, 255, .03));
  scroll-margin-top: 90px;
}
.batch-calc[hidden] { display: none; }
.batch-calc .batch-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.batch-calc .batch-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.batch-calc .batch-title { margin: 0 0 4px; }
.batch-calc .batch-summary { margin: 0; font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 13px; color: var(--_accent); }
.batch-calc .batch-picker { display: flex; margin: 0; padding: 4px; border: 1px solid var(--_line); border-radius: 999px; background: var(--_surface); }
.batch-calc .batch-picker label { position: relative; cursor: pointer; margin: 0; }
.batch-calc .batch-picker input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.batch-calc .batch-picker span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 999px; font: 600 16px var(--mono, ui-monospace, Menlo, monospace); color: var(--_muted); transition: background .15s, color .15s; }
.batch-calc .batch-picker label:hover span { color: var(--_text); }
.batch-calc .batch-picker input:checked + span { background: var(--_accent); color: var(--_on-accent); }
.batch-calc .batch-picker input:focus-visible + span { outline: 3px solid var(--_accent); outline-offset: 2px; }
.batch-calc .batch-hint { margin: 14px 0 0; font-size: 13px; color: var(--_muted); }
.batch-calc .batch-multi { display: none; }
.batch-calc .batch-hint.is-multi .batch-multi { display: inline; }
@media print {
  .batch-calc .batch-picker, .batch-calc .batch-hint { display: none; }
  .batch-calc .batch-summary { color: #000; }
}
