{"id":60293,"date":"2026-11-22T12:54:01","date_gmt":"2026-11-22T11:54:01","guid":{"rendered":"https:\/\/www.mp-molds.com\/?page_id=60293"},"modified":"2026-11-22T13:03:43","modified_gmt":"2026-11-22T12:03:43","slug":"calculadora-aleacion-plomo-balas","status":"publish","type":"page","link":"https:\/\/www.mp-molds.com\/es\/bullet-lead-alloy-calculator\/","title":{"rendered":"Calculadora de aleaci\u00f3n de plomo para balas"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"60293\" class=\"elementor elementor-60293\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-02b5492 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-column-slider-no wpr-equal-height-no e-con e-parent\" data-id=\"02b5492\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a9e0ffe elementor-widget elementor-widget-html\" data-id=\"a9e0ffe\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!-- MP Molds \u00b7 Lead Alloy Calculator\n     Paste this whole block into a WordPress \"Custom HTML\" block (or a page builder's HTML module).\n     Everything is inside .mp-lloy, so it will not affect the rest of the theme.\n     Based on the Lead Alloy Calculator v12 by bumpo628; hardness estimate by the Rotometals formula. -->\n<style>\n\/* Scoped to .mp-lloy so the same stylesheet works as a standalone page and\n   inside a WordPress Custom HTML block without touching the theme. *\/\n\n.mp-lloy,\n.mp-lloy *,\n.mp-lloy *::before,\n.mp-lloy *::after {\n  box-sizing: border-box;\n}\n\n.mp-lloy {\n  --lloy-navy: #0e2b40;\n  --lloy-navy-2: #12354d;\n  --lloy-ink: #16202b;\n  --lloy-ink-2: #3f5061;\n  --lloy-muted: #5b6b7a;\n  --lloy-faint: #667788;\n  --lloy-line: #e2e8ee;\n  --lloy-line-2: #eef2f6;\n  --lloy-card: #ffffff;\n  --lloy-canvas: #f6f8fa;\n  --lloy-gold: #dc9814;\n  --lloy-gold-2: #f0b64a;\n  --lloy-gold-ink: #8a5a06;\n  --lloy-gold-soft: #fdf7ea;\n  --lloy-good: #1f7a4d;\n  --lloy-warn: #8a5300;\n\n  max-width: 1280px;\n  margin: 0 auto;\n  border-radius: 24px;\n  background: var(--lloy-card);\n  color: var(--lloy-ink);\n  font-family: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n  font-size: 14px;\n  line-height: 1.45;\n  -webkit-font-smoothing: antialiased;\n  box-shadow: 0 40px 90px -70px rgba(9, 28, 42, 0.6), 0 2px 8px rgba(9, 28, 42, 0.05);\n}\n\n.mp-lloy h1,\n.mp-lloy h2,\n.mp-lloy h3,\n.mp-lloy p,\n.mp-lloy ul,\n.mp-lloy dl,\n.mp-lloy dd,\n.mp-lloy li {\n  margin: 0;\n  padding: 0;\n}\n\n.mp-lloy ul {\n  list-style: none;\n}\n\n.mp-lloy button,\n.mp-lloy input,\n.mp-lloy select {\n  font: inherit;\n  color: inherit;\n}\n\n.mp-lloy a {\n  color: inherit;\n}\n\n.mp-lloy [hidden] {\n  display: none !important;\n}\n\n.mp-lloy .lloy-sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  margin: -1px;\n  padding: 0;\n  overflow: hidden;\n  clip: rect(0 0 0 0);\n  white-space: nowrap;\n  border: 0;\n}\n\n\/* ---------- hero ---------- *\/\n\n.mp-lloy .lloy-hero {\n  position: relative;\n  overflow: hidden;\n  border-radius: 24px 24px 0 0;\n  isolation: isolate;\n  padding: 26px 40px 40px;\n  color: #fff;\n  background:\n    radial-gradient(120% 130% at 88% -25%, rgba(220, 152, 20, 0.3), transparent 58%),\n    radial-gradient(80% 120% at -5% 0%, rgba(45, 112, 162, 0.38), transparent 62%),\n    linear-gradient(157deg, #12354d 0%, #0c2436 62%, #091c2a 100%);\n}\n\n.mp-lloy .lloy-hero::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background-image:\n    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),\n    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);\n  background-size: 56px 56px;\n  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);\n  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);\n  pointer-events: none;\n}\n\n.mp-lloy .lloy-hero__top {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 20px;\n  flex-wrap: wrap;\n}\n\n.mp-lloy .lloy-brand {\n  display: inline-flex;\n  align-items: center;\n  gap: 11px;\n  text-decoration: none;\n  border-radius: 12px;\n}\n\n.mp-lloy .lloy-brand:focus-visible {\n  outline: 2px solid var(--lloy-gold-2);\n  outline-offset: 4px;\n}\n\n.mp-lloy .lloy-brand__mark {\n  display: grid;\n  place-items: center;\n  width: 42px;\n  height: 42px;\n  border-radius: 12px;\n  background: linear-gradient(160deg, #f2be58, #dc9814 70%);\n  color: #10283a;\n  font-size: 15px;\n  font-weight: 800;\n  letter-spacing: -0.03em;\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 16px -8px rgba(220, 152, 20, 0.9);\n}\n\n.mp-lloy .lloy-brand__text {\n  display: flex;\n  flex-direction: column;\n  gap: 1px;\n}\n\n.mp-lloy .lloy-brand__name {\n  font-size: 15px;\n  font-weight: 650;\n  letter-spacing: 0.01em;\n}\n\n.mp-lloy .lloy-brand__sub {\n  font-size: 11px;\n  color: #9db3c4;\n  letter-spacing: 0.01em;\n}\n\n.mp-lloy .lloy-controls {\n  display: flex;\n  align-items: flex-end;\n  gap: 10px;\n  flex-wrap: wrap;\n}\n\n.mp-lloy .lloy-select {\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n}\n\n.mp-lloy .lloy-select__caption {\n  font-size: 9.5px;\n  letter-spacing: 0.1em;\n  text-transform: uppercase;\n  color: #8fa7b9;\n  font-weight: 600;\n}\n\n.mp-lloy .lloy-select__box {\n  position: relative;\n  display: flex;\n  align-items: center;\n}\n\n.mp-lloy .lloy-select select {\n  appearance: none;\n  -webkit-appearance: none;\n  max-width: 168px;\n  padding: 8px 30px 8px 12px;\n  border-radius: 10px;\n  border: 1px solid rgba(255, 255, 255, 0.18);\n  background: rgba(255, 255, 255, 0.08);\n  color: #fff;\n  font-size: 12.5px;\n  font-weight: 550;\n  cursor: pointer;\n}\n\n.mp-lloy .lloy-select select:hover {\n  background: rgba(255, 255, 255, 0.14);\n}\n\n.mp-lloy .lloy-select select:focus-visible {\n  outline: 2px solid var(--lloy-gold-2);\n  outline-offset: 2px;\n}\n\n.mp-lloy .lloy-select select option {\n  color: #16202b;\n  background: #fff;\n}\n\n.mp-lloy .lloy-select__box svg {\n  position: absolute;\n  right: 11px;\n  width: 9px;\n  color: #b9c9d6;\n  pointer-events: none;\n}\n\n.mp-lloy .lloy-seg {\n  display: inline-flex;\n  gap: 2px;\n  padding: 3px;\n  border-radius: 11px;\n  border: 1px solid rgba(255, 255, 255, 0.16);\n  background: rgba(255, 255, 255, 0.07);\n}\n\n.mp-lloy .lloy-seg button {\n  appearance: none;\n  border: 0;\n  background: transparent;\n  color: #c3d2de;\n  font-size: 12px;\n  font-weight: 600;\n  font-variant-numeric: tabular-nums;\n  padding: 6px 12px;\n  border-radius: 8px;\n  cursor: pointer;\n  transition: background 0.18s, color 0.18s;\n}\n\n.mp-lloy .lloy-seg button:hover {\n  color: #fff;\n}\n\n.mp-lloy .lloy-seg button[aria-pressed=\"true\"] {\n  background: #fff;\n  color: #10283a;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);\n}\n\n.mp-lloy .lloy-seg button:focus-visible {\n  outline: 2px solid var(--lloy-gold-2);\n  outline-offset: 2px;\n}\n\n.mp-lloy .lloy-hero__text h1 {\n  text-wrap: balance;\n  margin: 30px 0 10px;\n  font-size: clamp(30px, 4.2vw, 44px);\n  line-height: 1.04;\n  letter-spacing: -0.028em;\n  font-weight: 680;\n}\n\n.mp-lloy .lloy-lede {\n  max-width: 64ch;\n  text-wrap: pretty;\n  font-size: 15px;\n  line-height: 1.6;\n  color: #c2d3df;\n}\n\n\/* ---------- mobile result bar ---------- *\/\n\n.mp-lloy .lloy-mobilebar {\n  display: none;\n}\n\n\/* ---------- layout ---------- *\/\n\n.mp-lloy .lloy-layout {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) 372px;\n  gap: 26px;\n  padding: 28px 40px 44px;\n  background: var(--lloy-canvas);\n}\n\n.mp-lloy .lloy-side {\n  display: flex;\n  flex-direction: column;\n  gap: 14px;\n  min-width: 0;\n}\n\n.mp-lloy .lloy-panel {\n  min-width: 0;\n  background: var(--lloy-card);\n  border: 1px solid var(--lloy-line);\n  border-radius: 18px;\n}\n\n.mp-lloy .lloy-panel--list {\n  padding: 20px 20px 10px;\n  align-self: start;\n}\n\n.mp-lloy .lloy-panel__head {\n  display: flex;\n  align-items: flex-end;\n  justify-content: space-between;\n  gap: 16px;\n  flex-wrap: wrap;\n}\n\n.mp-lloy .lloy-panel__head--tight {\n  align-items: center;\n  margin-bottom: 12px;\n}\n\n.mp-lloy .lloy-eyebrow {\n  font-size: 10px;\n  letter-spacing: 0.13em;\n  text-transform: uppercase;\n  font-weight: 700;\n  color: var(--lloy-faint);\n  margin-bottom: 4px;\n}\n\n.mp-lloy .lloy-panel h2 {\n  text-wrap: balance;\n  font-size: 19px;\n  line-height: 1.2;\n  letter-spacing: -0.015em;\n  font-weight: 650;\n}\n\n.mp-lloy .lloy-tools {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n}\n\n.mp-lloy .lloy-search {\n  position: relative;\n  display: flex;\n  align-items: center;\n}\n\n.mp-lloy .lloy-search > svg {\n  position: absolute;\n  left: 11px;\n  width: 13px;\n  color: #93a2b1;\n  pointer-events: none;\n}\n\n.mp-lloy .lloy-search input {\n  width: 196px;\n  height: 36px;\n  padding: 0 30px 0 31px;\n  border: 1px solid var(--lloy-line);\n  border-radius: 10px;\n  background: #fbfcfd;\n  font-size: 13px;\n  color: var(--lloy-ink);\n}\n\n.mp-lloy .lloy-search input::-webkit-search-cancel-button {\n  display: none;\n}\n\n.mp-lloy .lloy-search input:focus {\n  outline: none;\n  border-color: var(--lloy-gold);\n  background: #fff;\n  box-shadow: 0 0 0 3px rgba(220, 152, 20, 0.15);\n}\n\n.mp-lloy .lloy-search__clear {\n  position: absolute;\n  right: 5px;\n  display: grid;\n  place-items: center;\n  width: 24px;\n  height: 24px;\n  border: 0;\n  border-radius: 50%;\n  background: #eef2f6;\n  color: #5b6b7a;\n  font-size: 15px;\n  line-height: 1;\n  cursor: pointer;\n}\n\n.mp-lloy .lloy-search__clear:hover {\n  background: #e2e8ee;\n}\n\n.mp-lloy .lloy-search input:focus-visible,\n.mp-lloy .lloy-row__weight input:focus-visible,\n.mp-lloy .lloy-row__price input:focus-visible,\n.mp-lloy .lloy-mini input:focus-visible,\n.mp-lloy .lloy-bullet__input input:focus-visible {\n  outline: 2px solid var(--lloy-gold-ink);\n  outline-offset: 1px;\n}\n\n.mp-lloy .lloy-select--dark select:focus-visible {\n  outline: 2px solid var(--lloy-navy);\n  outline-offset: 1px;\n}\n\n\/* ---------- buttons ---------- *\/\n\n.mp-lloy .lloy-btn {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 7px;\n  border-radius: 11px;\n  border: 1px solid transparent;\n  font-size: 13px;\n  font-weight: 600;\n  padding: 10px 15px;\n  cursor: pointer;\n  transition: transform 0.15s, background 0.18s, border-color 0.18s, filter 0.18s;\n}\n\n.mp-lloy .lloy-btn svg {\n  width: 15px;\n  height: 15px;\n  flex: none;\n}\n\n.mp-lloy .lloy-btn:focus-visible {\n  outline: 2px solid var(--lloy-navy);\n  outline-offset: 2px;\n}\n\n.mp-lloy .lloy-btn--primary:focus-visible {\n  outline-color: #10283a;\n}\n\n.mp-lloy .lloy-btn--primary {\n  background: linear-gradient(180deg, #eaae33, #dc9814);\n  color: #10283a;\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 18px -14px rgba(150, 96, 5, 0.9);\n}\n\n.mp-lloy .lloy-btn--primary:hover {\n  filter: brightness(1.04);\n  transform: translateY(-1px);\n}\n\n.mp-lloy .lloy-btn--ghost {\n  background: #fff;\n  border-color: var(--lloy-line);\n  color: var(--lloy-ink-2);\n}\n\n.mp-lloy .lloy-btn--ghost:hover {\n  border-color: #cdd6df;\n  background: #fafbfc;\n}\n\n.mp-lloy .lloy-btn--ghost[aria-pressed=\"true\"] {\n  background: #10283a;\n  border-color: #10283a;\n  color: #fff;\n}\n\n.mp-lloy .lloy-btn--small {\n  padding: 8px 12px;\n  font-size: 12px;\n  height: 36px;\n}\n\n\/* ---------- ingredient groups ---------- *\/\n\n.mp-lloy .lloy-tablehead {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) 54px 118px 96px;\n  align-items: center;\n  gap: 14px;\n  margin: 14px 0 0;\n  padding: 0 10px 8px;\n  border-bottom: 1px solid var(--lloy-line-2);\n  font-size: 9.5px;\n  letter-spacing: 0.1em;\n  text-transform: uppercase;\n  font-weight: 700;\n  color: var(--lloy-faint);\n}\n\n.mp-lloy .lloy-tablehead span:nth-child(2),\n.mp-lloy .lloy-tablehead span:nth-child(3),\n.mp-lloy .lloy-tablehead span:nth-child(4) {\n  text-align: right;\n}\n\n.mp-lloy .lloy-groups {\n  margin-top: 10px;\n}\n\n.mp-lloy .lloy-group + .lloy-group {\n  margin-top: 16px;\n  padding-top: 14px;\n  border-top: 1px solid var(--lloy-line-2);\n}\n\n.mp-lloy .lloy-group__title {\n  font-size: 10px;\n  letter-spacing: 0.11em;\n  text-transform: uppercase;\n  font-weight: 700;\n  color: var(--lloy-faint);\n  padding: 0 10px;\n  margin-bottom: 5px;\n}\n\n.mp-lloy .lloy-group__rows {\n  display: flex;\n  flex-direction: column;\n  gap: 1px;\n}\n\n.mp-lloy .lloy-row {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) 54px 118px 96px;\n  align-items: center;\n  gap: 14px;\n  padding: 9px 10px;\n  border-radius: 12px;\n  transition: background 0.18s, box-shadow 0.18s;\n}\n\n.mp-lloy .lloy-row:hover {\n  background: #f8fafb;\n}\n\n.mp-lloy .lloy-row.is-active {\n  background: linear-gradient(90deg, #fffaf0, #fffdf9 70%);\n  box-shadow: inset 3px 0 0 var(--lloy-gold);\n}\n\n.mp-lloy .lloy-row__name {\n  min-width: 0;\n}\n\n.mp-lloy .lloy-row__title {\n  display: block;\n  font-size: 13.5px;\n  font-weight: 560;\n  line-height: 1.25;\n  color: #1c2a37;\n  overflow-wrap: break-word;\n}\n\n.mp-lloy .lloy-row__chips {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 5px;\n  margin-top: 4px;\n}\n\n.mp-lloy .lloy-chip {\n  display: inline-flex;\n  align-items: center;\n  gap: 4px;\n  padding: 1px 7px 1px 6px;\n  border-radius: 999px;\n  background: #f1f4f8;\n  color: #4a5c6e;\n  font-size: 10.5px;\n  font-weight: 550;\n  font-variant-numeric: tabular-nums;\n  white-space: nowrap;\n}\n\n.mp-lloy .lloy-chip i {\n  display: block;\n  width: 5px;\n  height: 5px;\n  border-radius: 50%;\n  background: var(--chip, #93a2b1);\n}\n\n.mp-lloy .lloy-chip--pb {\n  background: #f6f7f9;\n  color: #7b8c9c;\n}\n\n.mp-lloy .lloy-row__bhn {\n  text-align: right;\n  font-variant-numeric: tabular-nums;\n}\n\n.mp-lloy .lloy-row__bhn b {\n  font-size: 13.5px;\n  font-weight: 650;\n}\n\n.mp-lloy .lloy-row__bhn i {\n  display: block;\n  font-style: normal;\n  font-size: 9px;\n  letter-spacing: 0.09em;\n  text-transform: uppercase;\n  color: var(--lloy-faint);\n}\n\n.mp-lloy .lloy-row__weight,\n.mp-lloy .lloy-row__price {\n  position: relative;\n}\n\n.mp-lloy .lloy-row__weight input {\n  width: 100%;\n  height: 36px;\n  padding: 0 30px 0 10px;\n  border: 1px solid #dfe5ec;\n  border-radius: 10px;\n  background: #fff;\n  text-align: right;\n  font-size: 13px;\n  font-variant-numeric: tabular-nums;\n  color: #1c2a37;\n  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;\n}\n\n.mp-lloy .lloy-row__weight input::placeholder {\n  color: #bac5d0;\n}\n\n.mp-lloy .lloy-row__weight input:focus {\n  outline: none;\n  border-color: var(--lloy-gold);\n  box-shadow: 0 0 0 3px rgba(220, 152, 20, 0.16);\n}\n\n.mp-lloy .lloy-row.is-active .lloy-row__weight input {\n  border-color: #e9bd63;\n  background: #fffdf7;\n}\n\n.mp-lloy .lloy-row__weight span {\n  position: absolute;\n  right: 9px;\n  top: 50%;\n  transform: translateY(-50%);\n  font-size: 10px;\n  color: var(--lloy-faint);\n  pointer-events: none;\n}\n\n.mp-lloy .lloy-row__price {\n  text-align: right;\n  font-size: 11.5px;\n  color: var(--lloy-muted);\n  font-variant-numeric: tabular-nums;\n  white-space: nowrap;\n}\n\n.mp-lloy .lloy-row__price small {\n  font-size: 9.5px;\n  color: var(--lloy-faint);\n}\n\n.mp-lloy .lloy-row__price input {\n  width: 100%;\n  height: 30px;\n  padding: 0 24px 0 6px;\n  border: 1px solid #e2e8ee;\n  border-radius: 8px;\n  background: #fff;\n  text-align: right;\n  font-size: 11.5px;\n  font-variant-numeric: tabular-nums;\n}\n\n.mp-lloy .lloy-row__price input:focus {\n  outline: none;\n  border-color: var(--lloy-gold);\n  box-shadow: 0 0 0 3px rgba(220, 152, 20, 0.14);\n}\n\n.mp-lloy .lloy-row__price em {\n  position: absolute;\n  right: 8px;\n  top: 50%;\n  transform: translateY(-50%);\n  font-style: normal;\n  font-size: 9.5px;\n  color: #a3b0bd;\n  pointer-events: none;\n}\n\n\/* ---------- custom alloys ---------- *\/\n\n.mp-lloy .lloy-custom {\n  margin-top: 4px;\n  padding: 12px;\n  border: 1px solid #f0e5cd;\n  border-radius: 14px;\n  background: linear-gradient(180deg, #fffdf8, #fff);\n}\n\n.mp-lloy .lloy-custom + .lloy-custom {\n  margin-top: 8px;\n}\n\n.mp-lloy .lloy-custom.is-active {\n  border-color: #e7c078;\n  background: linear-gradient(180deg, #fffbf1, #fff);\n  box-shadow: inset 3px 0 0 var(--lloy-gold);\n}\n\n.mp-lloy .lloy-custom__row {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) 54px 118px 96px;\n  align-items: center;\n  gap: 14px;\n}\n\n.mp-lloy .lloy-custom__edit {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 8px;\n  margin-top: 10px;\n  padding-top: 10px;\n  border-top: 1px dashed #eee0c6;\n}\n\n.mp-lloy .lloy-mini {\n  display: flex;\n  flex-direction: column;\n  gap: 3px;\n  width: 76px;\n}\n\n.mp-lloy .lloy-mini__label {\n  font-size: 9px;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n  font-weight: 700;\n  color: #8b7a5c;\n}\n\n.mp-lloy .lloy-mini input {\n  width: 100%;\n  height: 30px;\n  padding: 0 7px;\n  border: 1px solid #e8ddc8;\n  border-radius: 8px;\n  background: #fff;\n  text-align: right;\n  font-size: 12px;\n  font-variant-numeric: tabular-nums;\n}\n\n.mp-lloy .lloy-mini input:focus {\n  outline: none;\n  border-color: var(--lloy-gold);\n  box-shadow: 0 0 0 3px rgba(220, 152, 20, 0.14);\n}\n\n.mp-lloy .lloy-mini__static {\n  display: flex;\n  align-items: center;\n  justify-content: flex-end;\n  height: 30px;\n  padding: 0 7px;\n  border: 1px dashed #e6dcc8;\n  border-radius: 8px;\n  background: #faf7f0;\n  font-size: 12px;\n  color: #6d7f90;\n  font-variant-numeric: tabular-nums;\n}\n\n.mp-lloy .lloy-mini__note {\n  display: flex;\n  align-items: flex-end;\n  padding-bottom: 7px;\n  font-size: 9.5px;\n  color: #a39a86;\n  max-width: 150px;\n  line-height: 1.3;\n}\n\n.mp-lloy .lloy-nomatch {\n  padding: 26px 10px 18px;\n  text-align: center;\n  font-size: 13px;\n  color: var(--lloy-muted);\n}\n\n\n\/* ---------- summary ---------- *\/\n\n.mp-lloy .lloy-summary {\n  position: relative;\n  padding: 20px;\n  border: 1px solid rgba(255, 255, 255, 0.08);\n  color: #fff;\n  background:\n    radial-gradient(120% 90% at 100% 0%, rgba(220, 152, 20, 0.2), transparent 55%),\n    linear-gradient(165deg, #163d59, #0d2637 70%, #0a2030);\n}\n\n.mp-lloy .lloy-summary__head {\n  display: flex;\n  align-items: flex-start;\n  justify-content: space-between;\n  gap: 12px;\n}\n\n.mp-lloy .lloy-summary h2 {\n  color: #fff;\n  font-size: 17px;\n}\n\n.mp-lloy .lloy-eyebrow--gold {\n  color: #e7b54a;\n}\n\n.mp-lloy .lloy-link {\n  border: 0;\n  background: none;\n  padding: 2px;\n  color: #9fb5c6;\n  font-size: 11.5px;\n  font-weight: 500;\n  text-decoration: underline;\n  text-underline-offset: 3px;\n  cursor: pointer;\n}\n\n.mp-lloy .lloy-link:hover {\n  color: #fff;\n}\n\n.mp-lloy .lloy-link:focus-visible {\n  outline: 2px solid var(--lloy-gold-2);\n  outline-offset: 2px;\n  border-radius: 4px;\n}\n\n.mp-lloy .lloy-total {\n  display: flex;\n  align-items: baseline;\n  gap: 6px;\n  margin: 16px 0 4px;\n}\n\n.mp-lloy .lloy-total__num {\n  font-size: 40px;\n  font-weight: 680;\n  letter-spacing: -0.035em;\n  line-height: 1;\n  font-variant-numeric: tabular-nums;\n}\n\n.mp-lloy .lloy-total__unit {\n  font-size: 13px;\n  font-weight: 600;\n  color: #a9bfd0;\n}\n\n.mp-lloy .lloy-empty {\n  display: flex;\n  flex-direction: column;\n  gap: 6px;\n  margin-top: 16px;\n  padding: 13px;\n  border: 1px dashed rgba(255, 255, 255, 0.18);\n  border-radius: 12px;\n  background: rgba(255, 255, 255, 0.05);\n  font-size: 12px;\n  line-height: 1.5;\n  color: #a7bdcd;\n}\n\n.mp-lloy .lloy-empty strong {\n  font-size: 13px;\n  color: #fff;\n}\n\n.mp-lloy .lloy-bar {\n  display: flex;\n  height: 10px;\n  margin-top: 18px;\n  border-radius: 999px;\n  overflow: hidden;\n  background: rgba(255, 255, 255, 0.08);\n}\n\n.mp-lloy .lloy-bar span {\n  display: block;\n  height: 100%;\n  transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);\n}\n\n.mp-lloy .lloy-legend {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 3px 12px;\n  margin-top: 10px;\n  font-size: 11px;\n  color: #c6d7e4;\n}\n\n.mp-lloy .lloy-legend li {\n  display: flex;\n  align-items: center;\n  gap: 5px;\n  font-variant-numeric: tabular-nums;\n}\n\n.mp-lloy .lloy-legend i {\n  width: 7px;\n  height: 7px;\n  border-radius: 2px;\n  background: var(--chip, #93a2b1);\n  flex: none;\n}\n\n.mp-lloy .lloy-legend b {\n  color: #fff;\n  font-weight: 600;\n}\n\n.mp-lloy .lloy-bhn {\n  display: flex;\n  align-items: center;\n  gap: 14px;\n  margin-top: 16px;\n  padding-top: 14px;\n  border-top: 1px solid rgba(255, 255, 255, 0.1);\n}\n\n.mp-lloy .lloy-bhn__num {\n  display: flex;\n  align-items: baseline;\n  gap: 4px;\n  flex: none;\n}\n\n.mp-lloy .lloy-bhn__num > span {\n  font-size: 31px;\n  font-weight: 680;\n  line-height: 1;\n  color: #f0b64a;\n  font-variant-numeric: tabular-nums;\n  letter-spacing: -0.03em;\n}\n\n.mp-lloy .lloy-bhn__num small {\n  font-size: 9px;\n  letter-spacing: 0.1em;\n  color: #9fb5c6;\n}\n\n.mp-lloy .lloy-bhn__meta {\n  display: flex;\n  flex-direction: column;\n  gap: 3px;\n  min-width: 0;\n}\n\n.mp-lloy .lloy-bhn__meta strong {\n  font-size: 12px;\n  font-weight: 600;\n  line-height: 1.3;\n}\n\n.mp-lloy .lloy-bhn__ignore {\n  font-size: 10px;\n  line-height: 1.35;\n  color: #8fa6b8;\n}\n\n.mp-lloy .lloy-scale {\n  position: relative;\n  height: 6px;\n  margin: 18px 0 22px;\n  border-radius: 999px;\n  background: linear-gradient(90deg, #a8ccb0, #e6c46a 45%, #c8811c 75%, #8a3a12);\n}\n\n.mp-lloy .lloy-scale__marker {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  width: 12px;\n  height: 12px;\n  margin: -6px 0 0 -6px;\n  border-radius: 50%;\n  background: #fff;\n  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22), 0 1px 4px rgba(0, 0, 0, 0.45);\n  transition: left 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);\n}\n\n.mp-lloy .lloy-scale__end {\n  position: absolute;\n  top: 11px;\n  left: 0;\n  font-size: 8.5px;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n  color: #8fa6b8;\n}\n\n.mp-lloy .lloy-scale__end--last {\n  left: auto;\n  right: 0;\n}\n\n.mp-lloy .lloy-flag {\n  margin-top: 14px;\n  padding: 9px 11px;\n  border: 1px solid rgba(255, 190, 80, 0.24);\n  border-radius: 10px;\n  background: rgba(255, 190, 80, 0.13);\n  font-size: 11px;\n  line-height: 1.45;\n  color: #ffd89a;\n}\n\n.mp-lloy .lloy-flag--light {\n  border-color: #f3dfba;\n  background: #fff6e6;\n  color: var(--lloy-warn);\n}\n\n\/* ---------- cost ---------- *\/\n\n.mp-lloy .lloy-cost {\n  padding: 18px;\n}\n\n.mp-lloy .lloy-cost h2 {\n  font-size: 15px;\n  font-weight: 650;\n}\n\n.mp-lloy .lloy-select--dark .lloy-select__box--small select {\n  background: #f6f8fa;\n  border-color: var(--lloy-line);\n  color: var(--lloy-ink-2);\n  font-size: 11.5px;\n  padding: 5px 24px 5px 9px;\n  border-radius: 8px;\n}\n\n.mp-lloy .lloy-select--dark .lloy-select__box--small svg {\n  width: 8px;\n  right: 9px;\n  color: #93a2b1;\n}\n\n.mp-lloy .lloy-bullet {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  margin-bottom: 14px;\n}\n\n.mp-lloy .lloy-bullet label {\n  font-size: 12.5px;\n  color: var(--lloy-ink-2);\n}\n\n.mp-lloy .lloy-bullet__input {\n  position: relative;\n  display: flex;\n  align-items: center;\n}\n\n.mp-lloy .lloy-bullet__input input {\n  width: 92px;\n  height: 34px;\n  padding: 0 32px 0 9px;\n  border: 1px solid #dfe5ec;\n  border-radius: 9px;\n  background: #fff;\n  text-align: right;\n  font-size: 13px;\n  font-variant-numeric: tabular-nums;\n}\n\n.mp-lloy .lloy-bullet__input input:focus {\n  outline: none;\n  border-color: var(--lloy-gold);\n  box-shadow: 0 0 0 3px rgba(220, 152, 20, 0.15);\n}\n\n.mp-lloy .lloy-bullet__input span {\n  position: absolute;\n  right: 9px;\n  font-size: 10px;\n  color: #93a2b1;\n  pointer-events: none;\n}\n\n.mp-lloy .lloy-facts {\n  border-top: 1px solid var(--lloy-line-2);\n}\n\n.mp-lloy .lloy-facts div {\n  display: flex;\n  align-items: baseline;\n  justify-content: space-between;\n  gap: 10px;\n  padding: 8px 0;\n  border-bottom: 1px solid var(--lloy-line-2);\n}\n\n.mp-lloy .lloy-facts dt {\n  font-size: 11.5px;\n  color: var(--lloy-muted);\n}\n\n.mp-lloy .lloy-facts dd {\n  font-size: 12.5px;\n  font-weight: 600;\n  font-variant-numeric: tabular-nums;\n}\n\n.mp-lloy .lloy-each {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 10px;\n  margin: 14px 0 16px;\n  padding: 11px 14px;\n  border: 1px solid #f2e2c2;\n  border-radius: 12px;\n  background: var(--lloy-gold-soft);\n}\n\n.mp-lloy .lloy-each span {\n  font-size: 11.5px;\n  font-weight: 600;\n  color: #8a6a28;\n}\n\n.mp-lloy .lloy-each strong {\n  font-size: 21px;\n  letter-spacing: -0.025em;\n  color: var(--lloy-gold-ink);\n  font-variant-numeric: tabular-nums;\n}\n\n.mp-lloy .lloy-packs-title {\n  font-size: 10px;\n  letter-spacing: 0.09em;\n  text-transform: uppercase;\n  font-weight: 700;\n  color: var(--lloy-faint);\n  margin-bottom: 7px;\n}\n\n.mp-lloy .lloy-packs {\n  display: grid;\n  grid-template-columns: repeat(5, minmax(0, 1fr));\n  gap: 5px;\n}\n\n.mp-lloy .lloy-pack {\n  padding: 6px 3px;\n  border-radius: 9px;\n  background: #f6f8fa;\n  text-align: center;\n}\n\n.mp-lloy .lloy-pack b {\n  display: block;\n  font-size: 9.5px;\n  font-weight: 600;\n  color: var(--lloy-faint);\n  font-variant-numeric: tabular-nums;\n}\n\n.mp-lloy .lloy-pack span {\n  display: block;\n  margin-top: 2px;\n  font-size: 11px;\n  font-weight: 600;\n  font-variant-numeric: tabular-nums;\n  white-space: nowrap;\n  letter-spacing: -0.01em;\n}\n\n.mp-lloy .lloy-qty {\n  display: flex;\n  align-items: baseline;\n  justify-content: space-between;\n  gap: 10px;\n  margin-top: 14px;\n  padding-top: 12px;\n  border-top: 1px solid var(--lloy-line-2);\n  font-size: 11.5px;\n  color: var(--lloy-muted);\n}\n\n.mp-lloy .lloy-qty strong {\n  font-size: 13px;\n  color: var(--lloy-ink);\n  font-variant-numeric: tabular-nums;\n}\n\n.mp-lloy .lloy-hint {\n  margin-top: 5px;\n  font-size: 10px;\n  line-height: 1.4;\n  color: var(--lloy-faint);\n}\n\n\/* ---------- actions ---------- *\/\n\n.mp-lloy .lloy-actions {\n  padding: 14px;\n}\n\n.mp-lloy .lloy-actions .lloy-btn {\n  width: 100%;\n}\n\n.mp-lloy .lloy-actions__row {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 8px;\n  margin-top: 8px;\n}\n\n.mp-lloy .lloy-status {\n  min-height: 14px;\n  margin-top: 8px;\n  font-size: 11px;\n  text-align: center;\n  color: var(--lloy-good);\n}\n\n\/* ---------- notes ---------- *\/\n\n.mp-lloy .lloy-notes {\n  padding: 10px 40px 6px;\n  background: var(--lloy-canvas);\n}\n\n.mp-lloy .lloy-note {\n  border-top: 1px solid var(--lloy-line);\n}\n\n.mp-lloy .lloy-note summary {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  padding: 14px 0;\n  font-size: 12.5px;\n  font-weight: 650;\n  color: var(--lloy-ink);\n  cursor: pointer;\n  list-style: none;\n}\n\n.mp-lloy .lloy-note summary::-webkit-details-marker {\n  display: none;\n}\n\n.mp-lloy .lloy-note summary::after {\n  content: \"+\";\n  font-size: 15px;\n  font-weight: 400;\n  color: #9aa9b7;\n}\n\n.mp-lloy .lloy-note[open] summary::after {\n  content: \"\u2013\";\n}\n\n.mp-lloy .lloy-note summary:focus-visible {\n  outline: 2px solid var(--lloy-navy);\n  outline-offset: 2px;\n  border-radius: 4px;\n}\n\n.mp-lloy .lloy-notelist {\n  text-wrap: pretty;\n  display: grid;\n  gap: 7px;\n  max-width: 92ch;\n  margin-bottom: 16px;\n  font-size: 12px;\n  line-height: 1.55;\n  color: #4a5c6e;\n}\n\n.mp-lloy .lloy-notelist li {\n  position: relative;\n  padding-left: 15px;\n}\n\n.mp-lloy .lloy-notelist li::before {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  top: 0.58em;\n  width: 4px;\n  height: 4px;\n  border-radius: 50%;\n  background: #cdd7e1;\n}\n\n.mp-lloy .lloy-pressure {\n  display: grid;\n  grid-template-columns: 168px minmax(0, 1fr);\n  gap: 18px;\n  max-width: 660px;\n  margin-bottom: 16px;\n  padding: 14px;\n  border: 1px solid var(--lloy-line);\n  border-radius: 12px;\n  background: #fafcfe;\n}\n\n.mp-lloy .lloy-pressure__field label {\n  display: block;\n  margin-bottom: 6px;\n  font-size: 11px;\n  color: var(--lloy-muted);\n}\n\n.mp-lloy .lloy-bullet__input--small input {\n  width: 100%;\n}\n\n.mp-lloy .lloy-pressure__title {\n  margin-bottom: 4px;\n  font-size: 9.5px;\n  letter-spacing: 0.09em;\n  text-transform: uppercase;\n  font-weight: 700;\n  color: var(--lloy-faint);\n}\n\n.mp-lloy .lloy-pressure__result {\n  font-size: 13px;\n  font-weight: 600;\n  line-height: 1.4;\n}\n\n\/* ---------- footer ---------- *\/\n\n.mp-lloy .lloy-footer {\n  border-radius: 0 0 24px 24px;\n  display: flex;\n  flex-wrap: wrap;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 6px;\n  padding: 16px 40px 22px;\n  text-align: center;\n  border-top: 1px solid var(--lloy-line);\n  background: var(--lloy-canvas);\n  font-size: 11.5px;\n  line-height: 1.55;\n  color: var(--lloy-muted);\n}\n\n.mp-lloy .lloy-footer p {\n  max-width: 82ch;\n}\n\n.mp-lloy .lloy-footer a {\n  color: #5d7a90;\n}\n\n\/* ---------- responsive ---------- *\/\n\n@media (max-width: 1180px) {\n  .mp-lloy .lloy-hero {\n    padding: 24px 28px 34px;\n  }\n\n  .mp-lloy .lloy-layout {\n    grid-template-columns: minmax(0, 1fr) 340px;\n    padding: 26px 28px 36px;\n  }\n\n  .mp-lloy .lloy-notes {\n    padding-left: 28px;\n    padding-right: 28px;\n  }\n\n  .mp-lloy .lloy-footer {\n    padding-left: 28px;\n    padding-right: 28px;\n  }\n}\n\n@media (max-width: 980px) {\n  .mp-lloy .lloy-layout {\n    grid-template-columns: minmax(0, 1fr);\n  }\n\n  .mp-lloy .lloy-side {\n    order: 2;\n  }\n\n  .mp-lloy .lloy-mobilebar {\n    position: sticky;\n    top: 0;\n    z-index: 6;\n    display: flex;\n    align-items: center;\n    gap: 22px;\n    padding: 9px 28px;\n    background: rgba(9, 28, 42, 0.94);\n    border-top: 1px solid rgba(255, 255, 255, 0.09);\n    border-bottom: 1px solid rgba(255, 255, 255, 0.07);\n    backdrop-filter: blur(8px);\n  }\n\n  .mp-lloy .lloy-mobilebar__cell {\n    display: grid;\n    grid-template-columns: auto auto;\n    align-items: baseline;\n    gap: 0 4px;\n    min-width: 0;\n  }\n\n  .mp-lloy .lloy-mobilebar__value {\n    font-size: 15px;\n    font-weight: 650;\n    color: #fff;\n    font-variant-numeric: tabular-nums;\n    white-space: nowrap;\n  }\n\n  .mp-lloy .lloy-mobilebar__cell:nth-child(2) .lloy-mobilebar__value {\n    color: #f0b64a;\n  }\n\n  .mp-lloy .lloy-mobilebar__unit,\n  .mp-lloy .lloy-mobilebar__label {\n    font-size: 9px;\n    letter-spacing: 0.06em;\n    text-transform: uppercase;\n    color: #8fa6b8;\n    white-space: nowrap;\n  }\n\n  .mp-lloy .lloy-mobilebar__label {\n    grid-column: 1 \/ -1;\n    margin-top: 1px;\n  }\n}\n\n@media (max-width: 760px) {\n  .mp-lloy,\n  .mp-lloy .lloy-hero,\n  .mp-lloy .lloy-footer {\n    border-radius: 0;\n  }\n\n  .mp-lloy .lloy-hero {\n    padding: 20px 20px 26px;\n  }\n\n  .mp-lloy .lloy-hero__text h1 {\n  text-wrap: balance;\n    margin-top: 24px;\n    font-size: 30px;\n  }\n\n  .mp-lloy .lloy-lede {\n    font-size: 13.5px;\n  }\n\n  .mp-lloy .lloy-layout {\n    padding: 18px 16px 30px;\n    gap: 14px;\n  }\n\n  .mp-lloy .lloy-panel--list {\n    padding: 16px 12px 8px;\n  }\n\n  .mp-lloy .lloy-tools {\n    width: 100%;\n  }\n\n  .mp-lloy .lloy-search {\n    flex: 1;\n  }\n\n  .mp-lloy .lloy-search input {\n    width: 100%;\n  }\n\n  .mp-lloy .lloy-tablehead {\n    display: none;\n  }\n\n  .mp-lloy .lloy-row__weight input,\n  .mp-lloy .lloy-row__price input,\n  .mp-lloy .lloy-mini input {\n    scroll-margin-block-start: 64px;\n  }\n\n  .mp-lloy .lloy-row,\n  .mp-lloy .lloy-custom__row {\n    grid-template-columns: minmax(0, 1fr) 62px;\n    grid-template-areas:\n      \"name bhn\"\n      \"weight price\";\n    row-gap: 8px;\n    column-gap: 12px;\n    padding: 10px 8px;\n  }\n\n  .mp-lloy .lloy-row__name {\n    grid-area: name;\n  }\n\n  .mp-lloy .lloy-row__bhn {\n    grid-area: bhn;\n  }\n\n  .mp-lloy .lloy-row__weight {\n    grid-area: weight;\n    max-width: 160px;\n  }\n\n  .mp-lloy .lloy-row__price {\n    grid-area: price;\n  }\n\n  .mp-lloy .lloy-row__price input {\n    width: 90px;\n    margin-left: auto;\n  }\n\n  .mp-lloy .lloy-custom {\n    padding: 10px;\n  }\n\n  .mp-lloy .lloy-mini {\n    width: calc(33.333% - 6px);\n  }\n\n  .mp-lloy .lloy-mini__note {\n    display: none;\n  }\n\n  .mp-lloy .lloy-notes {\n    padding: 6px 16px;\n  }\n\n  .mp-lloy .lloy-footer {\n    padding: 14px 16px 20px;\n  }\n\n  .mp-lloy .lloy-mobilebar {\n    padding: 8px 16px;\n    gap: 24px;\n  }\n\n  .mp-lloy .lloy-pressure {\n    grid-template-columns: minmax(0, 1fr);\n    gap: 12px;\n  }\n\n  .mp-lloy .lloy-packs {\n    gap: 4px;\n  }\n\n  .mp-lloy .lloy-pack span {\n    font-size: 10px;\n  }\n}\n\n@media (max-width: 420px) {\n  .mp-lloy .lloy-brand__sub {\n    display: none;\n  }\n\n  .mp-lloy .lloy-select select {\n    max-width: 132px;\n  }\n\n  .mp-lloy .lloy-total__num {\n    font-size: 34px;\n  }\n}\n\n\/* Touch screens get finger-sized controls (WCAG 2.5.5). *\/\n@media (pointer: coarse) {\n  .mp-lloy .lloy-btn,\n  .mp-lloy .lloy-row__weight input,\n  .mp-lloy .lloy-row__price input,\n  .mp-lloy .lloy-mini input,\n  .mp-lloy .lloy-search input,\n  .mp-lloy .lloy-bullet__input input,\n  .mp-lloy .lloy-select select {\n    min-height: 44px;\n  }\n\n  .mp-lloy .lloy-search__clear {\n    width: 34px;\n    height: 34px;\n  }\n\n  .mp-lloy .lloy-seg button {\n    min-height: 40px;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .mp-lloy *,\n  .mp-lloy *::before,\n  .mp-lloy *::after {\n    transition-duration: 0.001ms !important;\n    animation-duration: 0.001ms !important;\n  }\n}\n\n\/* ---------- print ---------- *\/\n\n@media print {\n  .mp-lloy {\n    max-width: none;\n    border-radius: 0;\n    box-shadow: none;\n    -webkit-print-color-adjust: exact;\n    print-color-adjust: exact;\n  }\n\n  .mp-lloy .lloy-controls,\n  .mp-lloy .lloy-mobilebar,\n  .mp-lloy .lloy-actions,\n  .mp-lloy .lloy-tools,\n  .mp-lloy .lloy-search__clear,\n  .mp-lloy .lloy-note summary::after {\n    display: none !important;\n  }\n\n  .mp-lloy .lloy-layout {\n    grid-template-columns: minmax(0, 1fr) 330px;\n    padding: 16px 20px 10px;\n  }\n\n  .mp-lloy .lloy-notes,\n  .mp-lloy .lloy-footer {\n    padding-left: 20px;\n    padding-right: 20px;\n  }\n\n  .mp-lloy .lloy-panel,\n  .mp-lloy .lloy-custom {\n    break-inside: avoid;\n  }\n\n  .mp-lloy .lloy-row__weight input,\n  .mp-lloy .lloy-row__price input,\n  .mp-lloy .lloy-mini input {\n    border: 0;\n    background: transparent;\n    box-shadow: none;\n  }\n}\n\n\/* light theme for paper *\/\n@media print {\n  .mp-lloy .lloy-hero {\n    padding: 14px 20px 16px;\n    border-bottom: 2px solid var(--lloy-navy);\n    background: #fff;\n    color: var(--lloy-ink);\n  }\n\n  .mp-lloy .lloy-hero::after {\n    display: none;\n  }\n\n  .mp-lloy .lloy-hero__text h1 {\n  text-wrap: balance;\n    margin: 8px 0 4px;\n    font-size: 24px;\n    color: var(--lloy-ink);\n  }\n\n  .mp-lloy .lloy-lede {\n    font-size: 11px;\n    color: #4a5c6e;\n  }\n\n  .mp-lloy .lloy-brand__sub {\n    color: var(--lloy-muted);\n  }\n\n  .mp-lloy .lloy-link,\n  .mp-lloy .lloy-select,\n  .mp-lloy .lloy-controls {\n    display: none !important;\n  }\n\n  .mp-lloy .lloy-summary {\n    border: 1px solid #cfd8e2;\n    background: #fff;\n    color: var(--lloy-ink);\n  }\n\n  .mp-lloy .lloy-summary h2,\n  .mp-lloy .lloy-bhn__meta strong,\n  .mp-lloy .lloy-empty strong {\n    color: var(--lloy-ink);\n  }\n\n  .mp-lloy .lloy-eyebrow--gold,\n  .mp-lloy .lloy-bhn__num > span {\n    color: var(--lloy-gold-ink);\n  }\n\n  .mp-lloy .lloy-total__num {\n    color: var(--lloy-ink);\n  }\n\n  .mp-lloy .lloy-total__unit,\n  .mp-lloy .lloy-bhn__num small,\n  .mp-lloy .lloy-bhn__ignore,\n  .mp-lloy .lloy-scale__end,\n  .mp-lloy .lloy-legend {\n    color: var(--lloy-muted);\n  }\n\n  .mp-lloy .lloy-legend b {\n    color: var(--lloy-ink);\n  }\n\n  .mp-lloy .lloy-empty {\n    border-color: #cfd8e2;\n    background: #f7f9fb;\n    color: var(--lloy-muted);\n  }\n\n  .mp-lloy .lloy-bhn {\n    border-top-color: #dfe5ec;\n  }\n\n  .mp-lloy .lloy-bar {\n    background: #e8edf2;\n  }\n\n  .mp-lloy .lloy-flag {\n    border-color: #f3dfba;\n    background: #fff6e6;\n    color: var(--lloy-warn);\n  }\n\n  .mp-lloy .lloy-bullet__input input {\n    border: 0;\n    background: transparent;\n  }\n}\n<\/style>\n<div class=\"mp-lloy\" id=\"mp-lloy\" lang=\"en\" data-no-translation data-no-dynamic-translation>\n  <header class=\"lloy-hero\">\n    <div class=\"lloy-hero__top\">\n      <a class=\"lloy-brand\" id=\"lloy-brand\" href=\"https:\/\/www.mp-molds.com\/en\/\" target=\"_blank\" rel=\"noopener\">\n        <span class=\"lloy-brand__mark\" aria-hidden=\"true\">MP<\/span>\n        <span class=\"lloy-brand__text\">\n          <span class=\"lloy-brand__name\">MP Molds<\/span>\n          <span class=\"lloy-brand__sub\" data-i18n=\"brandSub\"><\/span>\n        <\/span>\n      <\/a>\n      <div class=\"lloy-controls\">\n        <label class=\"lloy-select\">\n          <span class=\"lloy-select__caption\" data-i18n=\"lang\"><\/span>\n          <span class=\"lloy-select__box\">\n            <select id=\"lloy-lang\" aria-label=\"Language\"><\/select>\n            <svg viewBox=\"0 0 10 6\" aria-hidden=\"true\"><path d=\"M1 1l4 4 4-4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/><\/svg>\n          <\/span>\n        <\/label>\n        <div class=\"lloy-seg\" id=\"lloy-units\" role=\"group\" aria-label=\"Units\">\n          <button type=\"button\" data-units=\"imperial\" aria-pressed=\"true\"><span data-i18n=\"unitsImp\"><\/span><\/button>\n          <button type=\"button\" data-units=\"metric\" aria-pressed=\"false\"><span data-i18n=\"unitsMet\"><\/span><\/button>\n        <\/div>\n      <\/div>\n    <\/div>\n    <div class=\"lloy-hero__text\">\n      <h1 data-i18n=\"h1\"><\/h1>\n      <p class=\"lloy-lede\" data-i18n=\"lede\"><\/p>\n    <\/div>\n  <\/header>\n\n  <div class=\"lloy-mobilebar\" id=\"lloy-mobilebar\" aria-hidden=\"true\">\n    <div class=\"lloy-mobilebar__cell\">\n      <span class=\"lloy-mobilebar__value\" id=\"lloy-mb-weight\">0<\/span>\n      <span class=\"lloy-mobilebar__unit\" id=\"lloy-mb-unit\">lb<\/span>\n      <span class=\"lloy-mobilebar__label\" data-i18n=\"total\"><\/span>\n    <\/div>\n    <div class=\"lloy-mobilebar__cell\">\n      <span class=\"lloy-mobilebar__value\" id=\"lloy-mb-bhn\">\u2014<\/span>\n      <span class=\"lloy-mobilebar__label\">BHN<\/span>\n    <\/div>\n    <div class=\"lloy-mobilebar__cell\">\n      <span class=\"lloy-mobilebar__value\" id=\"lloy-mb-cost\">\u2014<\/span>\n      <span class=\"lloy-mobilebar__label\" data-i18n=\"costEach\"><\/span>\n    <\/div>\n  <\/div>\n\n  <main class=\"lloy-layout\">\n    <section class=\"lloy-panel lloy-panel--list\" aria-labelledby=\"lloy-ingredients-title\">\n      <div class=\"lloy-panel__head\">\n        <div class=\"lloy-panel__title\">\n          <p class=\"lloy-eyebrow\" data-i18n=\"ingredientsEyebrow\"><\/p>\n          <h2 id=\"lloy-ingredients-title\" data-i18n=\"ingredientsTitle\"><\/h2>\n        <\/div>\n        <div class=\"lloy-tools\">\n          <div class=\"lloy-search\">\n            <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><circle cx=\"7\" cy=\"7\" r=\"4.6\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\"\/><path d=\"M10.6 10.6L14 14\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\"\/><\/svg>\n            <input id=\"lloy-search\" type=\"search\" autocomplete=\"off\" spellcheck=\"false\" data-i18n-attr=\"placeholder:search\">\n            <button type=\"button\" class=\"lloy-search__clear\" id=\"lloy-search-clear\" hidden aria-label=\"Clear\">\u00d7<\/button>\n          <\/div>\n          <button type=\"button\" class=\"lloy-btn lloy-btn--ghost lloy-btn--small\" id=\"lloy-prices\" aria-pressed=\"false\"><span data-i18n=\"editPrices\"><\/span><\/button>\n        <\/div>\n      <\/div>\n\n      <div class=\"lloy-tablehead\" aria-hidden=\"true\">\n        <span data-i18n=\"alloy\"><\/span>\n        <span>BHN<\/span>\n        <span data-i18n=\"weight\"><\/span>\n        <span data-i18n=\"price\"><\/span>\n      <\/div>\n      <div class=\"lloy-groups\" id=\"lloy-groups\"><\/div>\n      <p class=\"lloy-nomatch\" id=\"lloy-nomatch\" hidden><\/p>\n    <\/section>\n\n    <aside class=\"lloy-side\">\n      <section class=\"lloy-panel lloy-summary\" id=\"lloy-result\" aria-labelledby=\"lloy-summary-title\">\n        <div class=\"lloy-summary__head\">\n          <div>\n            <p class=\"lloy-eyebrow lloy-eyebrow--gold\" data-i18n=\"resultEyebrow\"><\/p>\n            <h2 id=\"lloy-summary-title\" data-i18n=\"resultTitle\"><\/h2>\n          <\/div>\n          <button type=\"button\" class=\"lloy-link\" id=\"lloy-reset\" data-i18n=\"reset\"><\/button>\n        <\/div>\n\n        <div class=\"lloy-total\">\n          <span class=\"lloy-total__num\" id=\"lloy-total\">0<\/span>\n          <span class=\"lloy-total__unit\" id=\"lloy-total-unit\">lb<\/span>\n          <span class=\"lloy-sr\" data-i18n=\"total\"><\/span>\n        <\/div>\n\n        <div class=\"lloy-empty\" id=\"lloy-empty\">\n          <strong data-i18n=\"emptyTitle\"><\/strong>\n          <span data-i18n=\"emptyHint\"><\/span>\n        <\/div>\n\n        <div class=\"lloy-mix\" id=\"lloy-mix\" hidden>\n          <div class=\"lloy-bar\" id=\"lloy-bar\" role=\"img\"><\/div>\n          <ul class=\"lloy-legend\" id=\"lloy-legend\"><\/ul>\n\n          <div class=\"lloy-bhn\">\n            <div class=\"lloy-bhn__num\">\n              <span id=\"lloy-bhn\">\u2014<\/span><small>BHN<\/small>\n            <\/div>\n            <div class=\"lloy-bhn__meta\">\n              <strong id=\"lloy-bhn-band\">\u2014<\/strong>\n              <span class=\"lloy-bhn__ignore\" data-i18n=\"bhnIgnore\"><\/span>\n            <\/div>\n          <\/div>\n          <div class=\"lloy-scale\" aria-hidden=\"true\">\n            <span class=\"lloy-scale__marker\" id=\"lloy-scale-marker\"><\/span>\n            <span class=\"lloy-scale__end\" data-i18n=\"soft\"><\/span>\n            <span class=\"lloy-scale__end lloy-scale__end--last\" data-i18n=\"hard\"><\/span>\n          <\/div>\n        <\/div>\n\n        <p class=\"lloy-flag\" id=\"lloy-warn-sb\" hidden><\/p>\n        <p class=\"lloy-flag\" id=\"lloy-warn-over\" hidden><\/p>\n      <\/section>\n\n      <section class=\"lloy-panel lloy-cost\" aria-labelledby=\"lloy-cost-title\">\n        <div class=\"lloy-panel__head lloy-panel__head--tight\">\n          <h2 id=\"lloy-cost-title\" data-i18n=\"costTitle\"><\/h2>\n          <label class=\"lloy-select lloy-select--dark\">\n            <span class=\"lloy-sr\" data-i18n=\"currency\"><\/span>\n            <span class=\"lloy-select__box lloy-select__box--small\">\n              <select id=\"lloy-currency\" aria-label=\"Currency\"><\/select>\n              <svg viewBox=\"0 0 10 6\" aria-hidden=\"true\"><path d=\"M1 1l4 4 4-4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/><\/svg>\n            <\/span>\n          <\/label>\n        <\/div>\n\n        <div class=\"lloy-bullet\">\n          <label for=\"lloy-bw\" data-i18n=\"bulletWeight\"><\/label>\n          <div class=\"lloy-bullet__input\">\n            <input id=\"lloy-bw\" type=\"text\" inputmode=\"decimal\" autocomplete=\"off\">\n            <span id=\"lloy-bw-unit\">gr<\/span>\n          <\/div>\n        <\/div>\n\n        <dl class=\"lloy-facts\">\n          <div><dt data-i18n=\"alloyCost\"><\/dt><dd id=\"lloy-cost-total\">\u2014<\/dd><\/div>\n          <div><dt><span id=\"lloy-unit-price-label\"><\/span><\/dt><dd id=\"lloy-unit-price\">\u2014<\/dd><\/div>\n        <\/dl>\n\n        <div class=\"lloy-each\">\n          <span data-i18n=\"costEach\"><\/span>\n          <strong id=\"lloy-cost-each\">\u2014<\/strong>\n        <\/div>\n\n        <p class=\"lloy-packs-title\" data-i18n=\"costFor\"><\/p>\n        <div class=\"lloy-packs\" id=\"lloy-packs\"><\/div>\n\n        <div class=\"lloy-qty\">\n          <span data-i18n=\"qty\"><\/span>\n          <strong id=\"lloy-qty\">\u2014<\/strong>\n        <\/div>\n        <p class=\"lloy-hint\" id=\"lloy-qty-hint\" data-i18n=\"noQty\"><\/p>\n        <p class=\"lloy-flag lloy-flag--light\" id=\"lloy-warn-price\" hidden><\/p>\n      <\/section>\n\n      <section class=\"lloy-panel lloy-actions\" aria-labelledby=\"lloy-actions-title\">\n        <h2 class=\"lloy-sr\" id=\"lloy-actions-title\" data-i18n=\"saveShare\"><\/h2>\n        <button type=\"button\" class=\"lloy-btn lloy-btn--primary\" id=\"lloy-copy\">\n          <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M6.4 9.6a2.6 2.6 0 0 0 3.7 0l2.1-2.1a2.6 2.6 0 0 0-3.7-3.7l-1 1\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"\/><path d=\"M9.6 6.4a2.6 2.6 0 0 0-3.7 0L3.8 8.5a2.6 2.6 0 0 0 3.7 3.7l1-1\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"\/><\/svg>\n          <span data-i18n=\"copyLink\"><\/span>\n        <\/button>\n        <div class=\"lloy-actions__row\">\n          <button type=\"button\" class=\"lloy-btn lloy-btn--ghost\" id=\"lloy-csv\">\n            <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M8 2v8m0 0L5 7.2M8 10l3-2.8M3 12.5h10\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/><\/svg>\n            <span data-i18n=\"csv\"><\/span>\n          <\/button>\n          <button type=\"button\" class=\"lloy-btn lloy-btn--ghost\" id=\"lloy-print\">\n            <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M4.5 6V2.5h7V6M4.5 12H3.2A1.2 1.2 0 0 1 2 10.8V7.2A1.2 1.2 0 0 1 3.2 6h9.6A1.2 1.2 0 0 1 14 7.2v3.6a1.2 1.2 0 0 1-1.2 1.2H11.5M4.5 9.5h7v4h-7z\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/><\/svg>\n            <span data-i18n=\"print\"><\/span>\n          <\/button>\n        <\/div>\n        <p class=\"lloy-status\" id=\"lloy-status\" role=\"status\" aria-live=\"polite\"><\/p>\n      <\/section>\n    <\/aside>\n  <\/main>\n\n  <section class=\"lloy-notes\" aria-labelledby=\"lloy-notes-title\">\n    <h2 class=\"lloy-sr\" id=\"lloy-notes-title\" data-i18n=\"notesTitle\"><\/h2>\n\n    <details class=\"lloy-note\" open>\n      <summary data-i18n=\"notesTitle\"><\/summary>\n      <ul class=\"lloy-notelist\">\n        <li data-i18n=\"noteFill\"><\/li>\n        <li data-i18n=\"noteSb\"><\/li>\n        <li data-i18n=\"noteBrittle\"><\/li>\n        <li data-i18n=\"noteAs\"><\/li>\n        <li data-i18n=\"noteHp\"><\/li>\n        <li data-i18n=\"noteQuench\"><\/li>\n      <\/ul>\n    <\/details>\n\n    <details class=\"lloy-note\">\n      <summary data-i18n=\"notesHardness\"><\/summary>\n      <ul class=\"lloy-notelist\">\n        <li data-i18n=\"noteFormula\"><\/li>\n        <li data-i18n=\"noteCup\"><\/li>\n      <\/ul>\n      <div class=\"lloy-pressure\">\n        <div class=\"lloy-pressure__field\">\n          <label for=\"lloy-cup\" data-i18n=\"pressure\"><\/label>\n          <div class=\"lloy-bullet__input lloy-bullet__input--small\">\n            <input id=\"lloy-cup\" type=\"text\" inputmode=\"numeric\" autocomplete=\"off\">\n            <span>CUP<\/span>\n          <\/div>\n        <\/div>\n        <div class=\"lloy-pressure__out\">\n          <p class=\"lloy-pressure__title\" data-i18n=\"pressureTitle\"><\/p>\n          <p class=\"lloy-pressure__result\" id=\"lloy-pressure-out\"><\/p>\n          <p class=\"lloy-hint\" data-i18n=\"pressureHint\"><\/p>\n        <\/div>\n      <\/div>\n    <\/details>\n\n  <\/section>\n\n  <footer class=\"lloy-footer\">\n    <p data-i18n=\"footerDisclaimer\"><\/p>\n    <p><a id=\"lloy-footlink\" href=\"https:\/\/www.mp-molds.com\/en\/reloading-software\/\" target=\"_blank\" rel=\"noopener\" data-i18n=\"visit\"><\/a><\/p>\n  <\/footer>\n<\/div>\n<script>\n(function () {\n'use strict';\n\n\/* ---- data.js ---- *\/\n\/* Alloy reference data, taken from the Lead Alloy Calculator v12 (Alloy12.xls)\n   by bumpo628. Compositions are in mass percent. `price` is per pound in the\n   spreadsheet's example currency; `null` means the sheet had no price. *\/\n\nconst GROUPS = ['ratio', 'shot', 'solder', 'type', 'scrap', 'custom'];\n\nconst INGREDIENTS = [\n  \/\/ Lead\u2013tin ratios (Sn = 1\/(n+1))\n  { id: 'ratio-40', group: 'ratio', name: '40:1', sn: 2.439024, sb: 0, as: 0, cu: 0, ag: 0, bhn: 8, price: 2.41 },\n  { id: 'ratio-30', group: 'ratio', name: '30:1', sn: 3.225806, sb: 0, as: 0, cu: 0, ag: 0, bhn: 9, price: 2.57 },\n  { id: 'ratio-25', group: 'ratio', name: '25:1', sn: 3.846154, sb: 0, as: 0, cu: 0, ag: 0, bhn: 9, price: 2.67 },\n  { id: 'ratio-20', group: 'ratio', name: '20:1', sn: 4.761905, sb: 0, as: 0, cu: 0, ag: 0, bhn: 10, price: 2.79 },\n  { id: 'ratio-16', group: 'ratio', name: '16:1', sn: 5.882353, sb: 0, as: 0, cu: 0, ag: 0, bhn: 11, price: 2.89 },\n  { id: 'ratio-10', group: 'ratio', name: '10:1', sn: 9.090909, sb: 0, as: 0, cu: 0, ag: 0, bhn: 12, price: 3.444545 },\n\n  \/\/ Shot and bought alloys\n  { id: 'antimony', group: 'shot', name: 'Pure Antimony', sn: 0, sb: 100, as: 0, cu: 0, ag: 0, bhn: 50, price: 13.99 },\n  { id: 'chilled-shot', group: 'shot', name: 'Chilled Shot', sn: 0, sb: 2, as: 0.625, cu: 0, ag: 0, bhn: 10, price: 2.0222 },\n  { id: 'magnum-69', group: 'shot', name: 'Magnum Shot (6 or 9)', sn: 0, sb: 4, as: 1.25, cu: 0, ag: 0, bhn: 13, price: 1.9496 },\n  { id: 'magnum-78', group: 'shot', name: 'Magnum Shot (7 \u2013 8.5)', sn: 0, sb: 6, as: 1.25, cu: 0, ag: 0, bhn: 13, price: 1.7518 },\n  { id: 'antimonial-lead', group: 'shot', name: 'Antimonial Lead', sn: 0, sb: 5, as: 0, cu: 0, ag: 0, bhn: 13, price: 1.89 },\n  { id: 'super-hard', group: 'shot', name: 'Rotometals Super Hard', sn: 0, sb: 30, as: 0, cu: 0, ag: 0, bhn: 36, price: 4.09 },\n\n  \/\/ Solder, pewter and tin\n  { id: 'solder-4060', group: 'solder', name: '40\/60 Solder', sn: 40, sb: 0, as: 0, cu: 0, ag: 0, bhn: 15, price: 8.94 },\n  { id: 'solder-5050', group: 'solder', name: '50\/50 Solder', sn: 50, sb: 0, as: 0, cu: 0, ag: 0, bhn: 14, price: 9.97 },\n  { id: 'solder-6040', group: 'solder', name: '60\/40 Solder', sn: 60, sb: 0, as: 0, cu: 0, ag: 0, bhn: 16, price: 11.59 },\n  { id: 'solder-6337', group: 'solder', name: '63\/37 Solder', sn: 63, sb: 0, as: 0, cu: 0, ag: 0, bhn: 17, price: 11.99 },\n  { id: 'pewter', group: 'solder', name: 'Pewter', sn: 92.5, sb: 6, as: 0, cu: 1.5, ag: 0, bhn: 23, price: 5 },\n  { id: 'lf-cu', group: 'solder', name: 'Lead Free 95\/5 Solder (Cu)', sn: 95, sb: 0, as: 0, cu: 5, ag: 0, bhn: 15, price: null },\n  { id: 'lf-sb', group: 'solder', name: 'Lead Free 95\/5 Solder (Sb)', sn: 95, sb: 5, as: 0, cu: 0, ag: 0, bhn: 15, price: 18.49 },\n  { id: 'lf-ag', group: 'solder', name: 'Lead Free 95\/5 Solder (Ag)', sn: 96, sb: 0, as: 0, cu: 0, ag: 4, bhn: 15, price: null },\n  { id: 'tin', group: 'solder', name: 'Pure Tin', sn: 100, sb: 0, as: 0, cu: 0, ag: 0, bhn: 7, price: 15.99 },\n\n  \/\/ Type metals\n  { id: 'electrotype', group: 'type', name: 'Electrotype', sn: 2.5, sb: 2.5, as: 0, cu: 0, ag: 0, bhn: 11, price: null },\n  { id: 'linotype', group: 'type', name: 'Linotype', sn: 4, sb: 12, as: 0, cu: 0, ag: 0, bhn: 19, price: 1.5 },\n  { id: 'stereotype', group: 'type', name: 'Stereotype', sn: 6, sb: 14, as: 0, cu: 0, ag: 0, bhn: 23, price: null },\n  { id: 'monotype', group: 'type', name: 'Monotype', sn: 9, sb: 19, as: 0, cu: 0, ag: 0, bhn: 26, price: 2.5 },\n  { id: 'foundrytype', group: 'type', name: 'Foundrytype', sn: 15, sb: 23, as: 0, cu: 0, ag: 0, bhn: 30, price: 2 },\n\n  \/\/ Scrap and standard alloys\n  { id: 'lead', group: 'scrap', name: 'Pure Lead', sn: 0, sb: 0, as: 0, cu: 0, ag: 0, bhn: 5, price: 1.2 },\n  { id: 'stick-on', group: 'scrap', name: 'Stick-On Wheel Weight', sn: 0.25, sb: 0, as: 0, cu: 0, ag: 0, bhn: 6, price: 1.16 },\n  { id: 'range-lead', group: 'scrap', name: 'Range Lead (avg.)', sn: 0.1666, sb: 1, as: 0, cu: 0, ag: 0, bhn: 10, price: 1.02 },\n  { id: 'clip-on', group: 'scrap', name: 'Clip-On Wheel Weight', sn: 0.5, sb: 3, as: 0.25, cu: 0, ag: 0, bhn: 12, price: 1.08 },\n  { id: 'isotope-cores', group: 'scrap', name: 'Isotope Lead (large cores)', sn: 1, sb: 3, as: 0, cu: 0, ag: 0, bhn: 11, price: 1.111111 },\n  { id: 'isotope-ingots', group: 'scrap', name: 'Isotope Lead (ingots)', sn: 2.5, sb: 2.5, as: 0, cu: 0, ag: 0, bhn: 11, price: 1.166667 },\n  { id: 'lyman-2', group: 'scrap', name: 'Lyman No. 2', sn: 5, sb: 5, as: 0, cu: 0, ag: 0, bhn: 15, price: 2.99 },\n  { id: 'hardball', group: 'scrap', name: 'Hardball Alloy', sn: 2, sb: 6, as: 0, cu: 0, ag: 0, bhn: 16, price: 2.69 },\n\n  \/\/ Custom alloys (composition is editable)\n  { id: 'custom-a', group: 'custom', name: 'Custom Alloy', sn: 0, sb: 0, as: 0, cu: 0, ag: 0, bhn: null, price: null, custom: true },\n  { id: 'custom-b', group: 'custom', name: 'Custom Alloy', sn: 0, sb: 0, as: 0, cu: 0, ag: 0, bhn: null, price: null, custom: true },\n];\n\nconst BY_ID = Object.fromEntries(INGREDIENTS.map((i) => [i.id, i]));\n\n\/* Elements shown in chips and the stacked composition bar. *\/\nconst ELEMENTS = [\n  { key: 'sn', symbol: 'Sn', color: '#3b82f6' },\n  { key: 'sb', symbol: 'Sb', color: '#8b5cf6' },\n  { key: 'as', symbol: 'As', color: '#10b981' },\n  { key: 'cu', symbol: 'Cu', color: '#f59e0b' },\n  { key: 'ag', symbol: 'Ag', color: '#64748b' },\n  { key: 'pb', symbol: 'Pb', color: '#b9c2cc' },\n];\n\n\/* ---- calc.js ---- *\/\n\/* The maths, kept free of the DOM so it can be tested on its own.\n\n   The spreadsheet works in pounds and grains, so that is the canonical unit\n   here; display conversions happen at the edge. Composition is mass percent. *\/\n\nconst GRAINS_PER_LB = 7000;\nconst LB_PER_KG = 2.2046226218487757;\nconst GRAINS_PER_GRAM = 15.43235835294143;\n\nconst num = (v) => (typeof v === 'number' && Number.isFinite(v) ? v : 0);\n\n\/** Rotometals estimate used by the original sheet. *\/\nfunction bhnFromComposition(snPct, sbPct) {\n  return 8.6 + 0.29 * num(snPct) + 0.92 * num(sbPct);\n}\n\n\/** Lead is whatever the other elements leave over. *\/\nfunction compositionOf({ sn, sb, as = 0, cu = 0, ag = 0 }) {\n  const s = num(sn);\n  const a = num(sb);\n  const r = num(as);\n  const c = num(cu);\n  const g = num(ag);\n  return { sn: s, sb: a, as: r, cu: c, ag: g, pb: 100 - (s + a + r + c + g) };\n}\n\n\/**\n * entries: [{ weightLb, sn, sb, as, cu, ag, price }] in percent + lb.\n * Returns weighted composition, hardness, cost and per-line detail.\n *\/\nfunction computeMix(entries) {\n  let totalLb = 0;\n  let sn = 0;\n  let sb = 0;\n  let as = 0;\n  let cu = 0;\n  let ag = 0;\n  let cost = 0;\n  let unpricedLb = 0;\n  const lines = [];\n\n  for (const entry of entries) {\n    const w = num(entry.weightLb);\n    if (!(w > 0)) continue;\n    const percent = compositionOf(entry);\n    totalLb += w;\n    sn += percent.sn * w;\n    sb += percent.sb * w;\n    as += percent.as * w;\n    cu += percent.cu * w;\n    ag += percent.ag * w;\n    if (entry.price == null) unpricedLb += w;\n    else cost += num(entry.price) * w;\n    lines.push({ id: entry.id, weightLb: w, cost: entry.price == null ? null : num(entry.price) * w });\n  }\n\n  const mix = totalLb > 0\n    ? {\n        sn: sn \/ totalLb,\n        sb: sb \/ totalLb,\n        as: as \/ totalLb,\n        cu: cu \/ totalLb,\n        ag: ag \/ totalLb,\n        pb: 100 - (sn + sb + as + cu + ag) \/ totalLb,\n      }\n    : { sn: 0, sb: 0, as: 0, cu: 0, ag: 0, pb: 0 };\n\n  return {\n    totalLb,\n    ...mix,\n    bhn: totalLb > 0 ? bhnFromComposition(mix.sn, mix.sb) : null,\n    cost,\n    pricePerLb: totalLb > 0 ? cost \/ totalLb : null,\n    unpricedLb,\n    lines,\n    compositionTotal: mix.sn + mix.sb + mix.as + mix.cu + mix.ag + mix.pb,\n  };\n}\n\n\/** Cost of one bullet of `grains` from alloy priced `pricePerLb`. *\/\nfunction costPerBullet(grains, pricePerLb) {\n  if (!(num(grains) > 0) || pricePerLb == null) return null;\n  return (num(grains) \/ GRAINS_PER_LB) * pricePerLb;\n}\n\n\/** How many bullets of `grains` the alloy weighs. *\/\nfunction bulletCount(totalLb, grains) {\n  if (!(num(grains) > 0) || !(num(totalLb) > 0)) return 0;\n  return Math.round((num(totalLb) * GRAINS_PER_LB) \/ num(grains));\n}\n\nfunction packCost(each, count) {\n  return each == null ? null : each * count;\n}\n\n\/* --- unit conversions (display edge) ------------------------------------ *\/\n\nfunction lbToDisplay(lb, metric) {\n  return metric ? num(lb) \/ LB_PER_KG : num(lb);\n}\n\nfunction displayToLb(value, metric) {\n  return metric ? num(value) * LB_PER_KG : num(value);\n}\n\nfunction priceToDisplay(pricePerLb, metric) {\n  return metric ? num(pricePerLb) * LB_PER_KG : num(pricePerLb);\n}\n\nfunction priceFromDisplay(value, metric) {\n  return metric ? num(value) \/ LB_PER_KG : num(value);\n}\n\nfunction grainsToDisplay(grains, metric) {\n  return metric ? num(grains) \/ GRAINS_PER_GRAM : num(grains);\n}\n\nfunction grainsFromDisplay(value, metric) {\n  return metric ? num(value) * GRAINS_PER_GRAM : num(value);\n}\n\n\/** Suggested hardness for a chamber pressure in CUP (Missouri Bullet rule). *\/\nfunction bhnForCup(cup) {\n  if (!(num(cup) > 0)) return null;\n  return num(cup) \/ 1279.8;\n}\n\n\/** Qualitative band for a BHN value: 0 very soft \u2026 4 very hard. *\/\nfunction bhnBand(bhn) {\n  if (bhn == null) return null;\n  if (bhn < 9) return 0;\n  if (bhn < 13) return 1;\n  if (bhn < 17) return 2;\n  if (bhn < 23) return 3;\n  return 4;\n}\n\n\/* ---- i18n.js ---- *\/\n\/* The eight languages the MP Molds site runs in (en, de, fr, es, sv, cs, pl, it).\n   Alloy names are proper nouns from the US casting literature, so the few that\n   are generic are translated and the rest stay as casters know them. *\/\n\nconst LANGS = [\n  { code: 'en', label: 'English', locale: 'en-US', currency: 'USD', home: 'https:\/\/www.mp-molds.com\/en\/' },\n  { code: 'de', label: 'Deutsch', locale: 'de-DE', currency: 'EUR', home: 'https:\/\/www.mp-molds.com\/de\/' },\n  { code: 'fr', label: 'Fran\u00e7ais', locale: 'fr-FR', currency: 'EUR', home: 'https:\/\/www.mp-molds.com\/fr\/' },\n  { code: 'es', label: 'Espa\u00f1ol', locale: 'es-ES', currency: 'EUR', home: 'https:\/\/www.mp-molds.com\/es\/' },\n  { code: 'sv', label: 'Svenska', locale: 'sv-SE', currency: 'SEK', home: 'https:\/\/www.mp-molds.com\/sv\/' },\n  { code: 'cs', label: '\u010ce\u0161tina', locale: 'cs-CZ', currency: 'CZK', home: 'https:\/\/www.mp-molds.com\/cs\/' },\n  { code: 'pl', label: 'Polski', locale: 'pl-PL', currency: 'PLN', home: 'https:\/\/www.mp-molds.com\/pl\/' },\n  { code: 'it', label: 'Italiano', locale: 'it-IT', currency: 'EUR', home: 'https:\/\/www.mp-molds.com\/it\/' },\n];\n\nconst STR = {\n  en: {\n    appTitle: 'Lead Alloy Calculator',\n    brandSub: 'Bullet molds & reloading tools',\n    h1: 'Lead Alloy Calculator',\n    lede: 'Weigh what you have \u2014 wheel weights, solder, tin, antimony \u2014 and see the alloy it makes, its estimated Brinell hardness and what every bullet costs.',\n    lang: 'Language',\n    units: 'Units',\n    unitsImp: 'lb \u00b7 gr',\n    unitsMet: 'kg \u00b7 g',\n    ingredientsEyebrow: 'Step 1',\n    ingredientsTitle: 'Weigh your ingredients',\n    search: 'Search alloys\u2026',\n    searchLabel: 'Search alloys',\n    editPrices: 'Edit prices',\n    donePrices: 'Done',\n    groupRatio: 'Lead\u2013tin ratios',\n    groupShot: 'Shot & bought alloys',\n    groupSolder: 'Solder, pewter & tin',\n    groupType: 'Type metals',\n    groupScrap: 'Scrap & standard alloys',\n    groupCustom: 'Your own alloy',\n    alloy: 'Alloy',\n    weight: 'Weight',\n    price: 'Price',\n    resultEyebrow: 'Result',\n    resultTitle: 'Your mix',\n    total: 'Total weight',\n    composition: 'Composition',\n    hardness: 'Estimated hardness',\n    soft: 'soft',\n    hard: 'hard',\n    bhnBands: [\n      'Very soft \u00b7 muzzleloaders',\n      'Soft \u00b7 standard handgun',\n      'Medium \u00b7 magnum handgun',\n      'Hard \u00b7 high-pressure rifle',\n      'Very hard \u00b7 brittle',\n    ],\n    bhnIgnore: 'Estimated from tin and antimony only (Rotometals formula).',\n    emptyTitle: 'Your mix is empty',\n    emptyHint: 'Enter a weight in any row to start \u2014 wheel weights, solder, pure lead, anything you have.',\n    costTitle: 'Cost per bullet',\n    bulletWeight: 'Bullet weight',\n    alloyCost: 'Alloy cost',\n    unitPrice: 'Price per {unit}',\n    costEach: 'One bullet',\n    costFor: 'Cost for',\n    pcs: 'pcs',\n    qty: 'Bullets from this alloy',\n    noQty: 'Set a bullet weight to see the count.',\n    noPrice: 'Some ingredients have no price yet, so the cost is a minimum.',\n    warnSb: 'More than 6 % antimony makes an alloy brittle. Fine for hard-hitting loads, but hollow points can crack.',\n    warnOver: 'The custom alloy adds up to more than 100 % \u2014 reduce one of the values.',\n    customTitle: 'Define your own alloy',\n    customHint: 'Enter the composition you have, then weigh it like any other ingredient.',\n    leadRest: 'Lead fills the rest',\n    notesTitle: 'Casting notes',\n    notesHardness: 'How hardness is estimated',\n    noteFill: 'Fields with a gold edge are yours to fill in \u2014 everything else is calculated.',\n    noteSb: 'Antimony raises hardness. Tin improves mold fill-out and adds a little hardness.',\n    noteBrittle: 'Bullets with more than 6 % antimony are too brittle. Copper also raises hardness.',\n    noteAs: 'Arsenic refines the grain and makes heat treating and water quenching work much better in lead\u2013antimony alloys.',\n    noteHp: 'Hollow points for hunting should be around 2 % tin and 2 % antimony.',\n    noteQuench: 'Water quenching raises hardness \u2014 clip-on wheel weights can go from about 12 BHN to 18.',\n    noteFormula: 'Estimated hardness uses the Rotometals formula: BHN = 8.60 + (0.29 \u00d7 %Sn) + (0.92 \u00d7 %Sb).',\n    noteCup: 'Missouri Bullet suggests an optimum hardness of BHN = CUP \u00f7 1279.8 for your load\u2019s pressure.',\n    pressureTitle: 'Pressure check',\n    pressure: 'Chamber pressure',\n    pressureHint: 'Optimum BHN \u2248 CUP \u00f7 1279.8 \u2014 see your load data for the CUP.',\n    pressureTarget: '\u2248 {bhn} BHN for {cup} CUP',\n    pressureMatch: 'Your mix is about right.',\n    pressureLow: 'Your mix is harder than this load needs.',\n    pressureHigh: 'Your mix is softer than this load needs.',\n    saveShare: 'Save & share',\n    copyLink: 'Copy link',\n    copied: 'Link copied',\n    csv: 'CSV',\n    print: 'Print',\n    reset: 'Reset',\n    resetConfirm: 'Clear all weights and custom alloys?',\n    clearSearch: 'Clear search',\n    clearRow: 'Clear {name}',\n    weightFor: 'Weight of {name}',\n    priceFor: 'Price per {unit} of {name}',\n    customName: 'Custom alloy {n}',\n    noMatch: 'No alloy matches \u201c{q}\u201d.',\n    currency: 'Currency',\n    footerDisclaimer: 'Estimates for planning only. Work up loads from published data.',\n    visit: 'mp-molds.com',\n    names: {\n      'antimony': 'Pure Antimony',\n      'chilled-shot': 'Chilled Shot',\n      'magnum-69': 'Magnum Shot (6 or 9)',\n      'magnum-78': 'Magnum Shot (7 \u2013 8.5)',\n      'antimonial-lead': 'Antimonial Lead',\n      'solder-4060': '40\/60 Solder',\n      'solder-5050': '50\/50 Solder',\n      'solder-6040': '60\/40 Solder',\n      'solder-6337': '63\/37 Solder',\n      'pewter': 'Pewter',\n      'lf-cu': 'Lead Free 95\/5 Solder (Cu)',\n      'lf-sb': 'Lead Free 95\/5 Solder (Sb)',\n      'lf-ag': 'Lead Free 95\/5 Solder (Ag)',\n      'tin': 'Pure Tin',\n      'lead': 'Pure Lead',\n      'stick-on': 'Stick-On Wheel Weight',\n      'range-lead': 'Range Lead (avg.)',\n      'clip-on': 'Clip-On Wheel Weight',\n      'isotope-cores': 'Isotope Lead (large cores)',\n      'isotope-ingots': 'Isotope Lead (ingots)',\n      'hardball': 'Hardball Alloy',\n      'custom-a': 'Custom Alloy',\n      'custom-b': 'Custom Alloy',\n    },\n  },\n\n  de: {\n    appTitle: 'Bleilegierungs-Rechner',\n    brandSub: 'Geschossformen & Wiederladewerkzeug',\n    h1: 'Bleilegierungs-Rechner',\n    lede: 'Wiege ab, was du hast \u2013 Auswuchtgewichte, Lot, Zinn, Antimon \u2013 und sieh die Legierung, ihre gesch\u00e4tzte Brinellh\u00e4rte und die Kosten pro Geschoss.',\n    lang: 'Sprache',\n    units: 'Einheiten',\n    unitsImp: 'lb \u00b7 gr',\n    unitsMet: 'kg \u00b7 g',\n    ingredientsEyebrow: 'Schritt 1',\n    ingredientsTitle: 'Zutaten wiegen',\n    search: 'Legierung suchen\u2026',\n    searchLabel: 'Legierungen suchen',\n    editPrices: 'Preise bearbeiten',\n    donePrices: 'Fertig',\n    groupRatio: 'Blei\u2013Zinn-Verh\u00e4ltnisse',\n    groupShot: 'Schrot & Fertiglegierungen',\n    groupSolder: 'Lot, Zinn & Pewter',\n    groupType: 'Schriftmetalle',\n    groupScrap: 'Altblei & Standardlegierungen',\n    groupCustom: 'Eigene Legierung',\n    alloy: 'Legierung',\n    weight: 'Gewicht',\n    price: 'Preis',\n    resultEyebrow: 'Ergebnis',\n    resultTitle: 'Deine Mischung',\n    total: 'Gesamtgewicht',\n    composition: 'Zusammensetzung',\n    hardness: 'Gesch\u00e4tzte H\u00e4rte',\n    soft: 'weich',\n    hard: 'hart',\n    bhnBands: [\n      'Sehr weich \u00b7 Vorderlader',\n      'Weich \u00b7 Standardpatronen',\n      'Mittel \u00b7 Magnum',\n      'Hart \u00b7 Hochdruck-B\u00fcchse',\n      'Sehr hart \u00b7 spr\u00f6de',\n    ],\n    bhnIgnore: 'Gesch\u00e4tzt nur aus Zinn und Antimon (Rotometals-Formel).',\n    emptyTitle: 'Noch keine Mischung',\n    emptyHint: 'Trag in irgendeiner Zeile ein Gewicht ein \u2013 Auswuchtgewichte, Lot, Reinblei, was du hast.',\n    costTitle: 'Kosten pro Geschoss',\n    bulletWeight: 'Geschossgewicht',\n    alloyCost: 'Legierungskosten',\n    unitPrice: 'Preis pro {unit}',\n    costEach: 'Ein Geschoss',\n    costFor: 'Kosten f\u00fcr',\n    pcs: 'Stk.',\n    qty: 'Geschosse aus dieser Legierung',\n    noQty: 'Geschossgewicht eingeben, um die Anzahl zu sehen.',\n    noPrice: 'F\u00fcr einige Zutaten fehlt der Preis \u2013 die Summe ist ein Mindestwert.',\n    warnSb: '\u00dcber 6 % Antimon macht die Legierung spr\u00f6de. F\u00fcr harte Ladungen in Ordnung, Hohlspitzgeschosse k\u00f6nnen aber brechen.',\n    warnOver: 'Die eigene Legierung ergibt mehr als 100 % \u2013 einen Wert reduzieren.',\n    customTitle: 'Eigene Legierung anlegen',\n    customHint: 'Zusammensetzung eintragen und dann wie jede andere Zutat wiegen.',\n    leadRest: 'Blei f\u00fcllt den Rest',\n    notesTitle: 'Gie\u00dfhinweise',\n    notesHardness: 'Wie die H\u00e4rte gesch\u00e4tzt wird',\n    noteFill: 'Felder mit goldenem Rand f\u00fcllst du selbst aus \u2013 alles andere wird berechnet.',\n    noteSb: 'Antimon erh\u00f6ht die H\u00e4rte. Zinn verbessert das Flie\u00dfverhalten und erh\u00f6ht die H\u00e4rte leicht.',\n    noteBrittle: '\u00dcber 6 % Antimon macht Geschosse zu spr\u00f6de. Kupfer erh\u00f6ht die H\u00e4rte ebenfalls.',\n    noteAs: 'Arsen verfeinert das Gef\u00fcge und verbessert das H\u00e4rten und Abschrecken von Blei-Antimon-Legierungen erheblich.',\n    noteHp: 'Hohlspitzgeschosse f\u00fcr die Jagd sollten etwa 2 % Zinn und 2 % Antimon enthalten.',\n    noteQuench: 'Abschrecken in Wasser erh\u00f6ht die H\u00e4rte \u2013 Klemmgewichte k\u00f6nnen von etwa 12 auf 18 BHN kommen.',\n    noteFormula: 'Die gesch\u00e4tzte H\u00e4rte folgt der Rotometals-Formel: BHN = 8,60 + (0,29 \u00d7 %Sn) + (0,92 \u00d7 %Sb).',\n    noteCup: 'Missouri Bullet empfiehlt als optimale H\u00e4rte BHN = CUP \u00f7 1279,8 f\u00fcr den Druck der Ladung.',\n    pressureTitle: 'Druckcheck',\n    pressure: 'Gasdruck',\n    pressureHint: 'Optimaler BHN \u2248 CUP \u00f7 1279,8 \u2013 siehe Ladedaten.',\n    pressureTarget: '\u2248 {bhn} BHN bei {cup} CUP',\n    pressureMatch: 'Deine Mischung passt gut.',\n    pressureLow: 'Deine Mischung ist h\u00e4rter als n\u00f6tig.',\n    pressureHigh: 'Deine Mischung ist weicher als n\u00f6tig.',\n    saveShare: 'Sichern & teilen',\n    copyLink: 'Link kopieren',\n    copied: 'Link kopiert',\n    csv: 'CSV',\n    print: 'Drucken',\n    reset: 'Zur\u00fccksetzen',\n    resetConfirm: 'Alle Gewichte und eigenen Legierungen l\u00f6schen?',\n    clearSearch: 'Suche l\u00f6schen',\n    clearRow: '{name} leeren',\n    weightFor: 'Gewicht von {name}',\n    priceFor: 'Preis pro {unit} von {name}',\n    customName: 'Eigene Legierung {n}',\n    noMatch: 'Keine Legierung passt zu \u201e{q}\u201c.',\n    currency: 'W\u00e4hrung',\n    footerDisclaimer: 'Nur zur Planung. Ladedaten aus ver\u00f6ffentlichten Quellen verwenden.',\n    visit: 'mp-molds.com',\n    names: {\n      'antimony': 'Reines Antimon',\n      'chilled-shot': 'Hartschrot (Chilled)',\n      'magnum-69': 'Magnum-Schrot (6 oder 9)',\n      'magnum-78': 'Magnum-Schrot (7 \u2013 8,5)',\n      'antimonial-lead': 'Antimonhaltiges Blei',\n      'solder-4060': 'Lot 40\/60',\n      'solder-5050': 'Lot 50\/50',\n      'solder-6040': 'Lot 60\/40',\n      'solder-6337': 'Lot 63\/37',\n      'pewter': 'Pewter (Hartzinn)',\n      'lf-cu': 'Bleifreies Lot 95\/5 (Cu)',\n      'lf-sb': 'Bleifreies Lot 95\/5 (Sb)',\n      'lf-ag': 'Bleifreies Lot 95\/5 (Ag)',\n      'tin': 'Reines Zinn',\n      'lead': 'Reines Blei',\n      'stick-on': 'Klebe-Auswuchtgewicht',\n      'range-lead': 'Kugelfangblei (\u00d8)',\n      'clip-on': 'Klemm-Auswuchtgewicht',\n      'isotope-cores': 'Isotopenblei (gro\u00dfe Kerne)',\n      'isotope-ingots': 'Isotopenblei (Barren)',\n      'hardball': 'Hardball-Legierung',\n      'custom-a': 'Eigene Legierung',\n      'custom-b': 'Eigene Legierung',\n    },\n  },\n\n  fr: {\n    appTitle: 'Calculateur d\u2019alliage de plomb',\n    brandSub: 'Moules \u00e0 balles & outillage de rechargement',\n    h1: 'Calculateur d\u2019alliage de plomb',\n    lede: 'Pesez ce que vous avez \u2014 plombs de roue, soudure, \u00e9tain, antimoine \u2014 et d\u00e9couvrez l\u2019alliage obtenu, sa duret\u00e9 Brinell estim\u00e9e et le co\u00fbt de chaque balle.',\n    lang: 'Langue',\n    units: 'Unit\u00e9s',\n    unitsImp: 'lb \u00b7 gr',\n    unitsMet: 'kg \u00b7 g',\n    ingredientsEyebrow: '\u00c9tape 1',\n    ingredientsTitle: 'Pesez vos ingr\u00e9dients',\n    search: 'Rechercher un alliage\u2026',\n    searchLabel: 'Rechercher un alliage',\n    editPrices: 'Modifier les prix',\n    donePrices: 'Termin\u00e9',\n    groupRatio: 'Rapports plomb\u2013\u00e9tain',\n    groupShot: 'Grenaille & alliages du commerce',\n    groupSolder: 'Soudure, \u00e9tain & pewter',\n    groupType: 'M\u00e9taux typographiques',\n    groupScrap: 'Plomb de r\u00e9cup\u00e9ration & alliages courants',\n    groupCustom: 'Votre alliage',\n    alloy: 'Alliage',\n    weight: 'Poids',\n    price: 'Prix',\n    resultEyebrow: 'R\u00e9sultat',\n    resultTitle: 'Votre m\u00e9lange',\n    total: 'Poids total',\n    composition: 'Composition',\n    hardness: 'Duret\u00e9 estim\u00e9e',\n    soft: 'tendre',\n    hard: 'dur',\n    bhnBands: [\n      'Tr\u00e8s tendre \u00b7 poudre noire',\n      'Tendre \u00b7 charges standard',\n      'Moyen \u00b7 magnum',\n      'Dur \u00b7 carabine haute pression',\n      'Tr\u00e8s dur \u00b7 cassant',\n    ],\n    bhnIgnore: 'Estim\u00e9e \u00e0 partir de l\u2019\u00e9tain et de l\u2019antimoine uniquement (formule Rotometals).',\n    emptyTitle: 'Votre m\u00e9lange est vide',\n    emptyHint: 'Saisissez un poids dans une ligne \u2014 plombs de roue, soudure, plomb pur, ce que vous avez.',\n    costTitle: 'Co\u00fbt par balle',\n    bulletWeight: 'Poids de la balle',\n    alloyCost: 'Co\u00fbt de l\u2019alliage',\n    unitPrice: 'Prix par {unit}',\n    costEach: 'Une balle',\n    costFor: 'Co\u00fbt pour',\n    pcs: 'pcs',\n    qty: 'Balles avec cet alliage',\n    noQty: 'Indiquez le poids d\u2019une balle pour voir la quantit\u00e9.',\n    noPrice: 'Certains ingr\u00e9dients n\u2019ont pas de prix : le total est un minimum.',\n    warnSb: 'Au-del\u00e0 de 6 % d\u2019antimoine, l\u2019alliage devient cassant. Acceptable pour les charges fortes, mais les pointes creuses peuvent se fissurer.',\n    warnOver: 'L\u2019alliage personnalis\u00e9 d\u00e9passe 100 % \u2014 r\u00e9duisez une valeur.',\n    customTitle: 'D\u00e9finir votre alliage',\n    customHint: 'Saisissez sa composition, puis pesez-le comme les autres ingr\u00e9dients.',\n    leadRest: 'Le plomb compl\u00e8te le reste',\n    notesTitle: 'Notes de coul\u00e9e',\n    notesHardness: 'Comment la duret\u00e9 est estim\u00e9e',\n    noteFill: 'Les champs \u00e0 liser\u00e9 dor\u00e9 sont \u00e0 remplir ; tout le reste est calcul\u00e9.',\n    noteSb: 'L\u2019antimoine augmente la duret\u00e9. L\u2019\u00e9tain am\u00e9liore le remplissage du moule et durcit l\u00e9g\u00e8rement.',\n    noteBrittle: 'Au-del\u00e0 de 6 % d\u2019antimoine, les balles sont trop cassantes. Le cuivre augmente aussi la duret\u00e9.',\n    noteAs: 'L\u2019arsenic affine le grain et am\u00e9liore nettement le traitement thermique et la trempe des alliages plomb\u2013antimoine.',\n    noteHp: 'Les balles \u00e0 pointe creuse pour la chasse doivent contenir environ 2 % d\u2019\u00e9tain et 2 % d\u2019antimoine.',\n    noteQuench: 'La trempe \u00e0 l\u2019eau augmente la duret\u00e9 \u2014 un alliage de plombs de roue peut passer d\u2019environ 12 \u00e0 18 BHN.',\n    noteFormula: 'La duret\u00e9 estim\u00e9e suit la formule Rotometals : BHN = 8,60 + (0,29 \u00d7 %Sn) + (0,92 \u00d7 %Sb).',\n    noteCup: 'Missouri Bullet recommande une duret\u00e9 optimale BHN = CUP \u00f7 1279,8 pour la pression de votre charge.',\n    pressureTitle: 'Contr\u00f4le de pression',\n    pressure: 'Pression en chambre',\n    pressureHint: 'BHN optimal \u2248 CUP \u00f7 1279,8 \u2014 voir les donn\u00e9es de votre charge.',\n    pressureTarget: '\u2248 {bhn} BHN pour {cup} CUP',\n    pressureMatch: 'Votre m\u00e9lange est bien adapt\u00e9.',\n    pressureLow: 'Votre m\u00e9lange est plus dur que n\u00e9cessaire.',\n    pressureHigh: 'Votre m\u00e9lange est plus tendre que n\u00e9cessaire.',\n    saveShare: 'Enregistrer & partager',\n    copyLink: 'Copier le lien',\n    copied: 'Lien copi\u00e9',\n    csv: 'CSV',\n    print: 'Imprimer',\n    reset: 'R\u00e9initialiser',\n    resetConfirm: 'Effacer tous les poids et les alliages personnalis\u00e9s ?',\n    clearSearch: 'Effacer la recherche',\n    clearRow: 'Effacer {name}',\n    weightFor: 'Poids de {name}',\n    priceFor: 'Prix par {unit} de {name}',\n    customName: 'Alliage personnalis\u00e9 {n}',\n    noMatch: 'Aucun alliage ne correspond \u00e0 \u00ab {q} \u00bb.',\n    currency: 'Devise',\n    footerDisclaimer: 'Estimations pour la pr\u00e9paration. Reprenez les donn\u00e9es de rechargement publi\u00e9es.',\n    visit: 'mp-molds.com',\n    names: {\n      'antimony': 'Antimoine pur',\n      'chilled-shot': 'Grenaille tremp\u00e9e',\n      'magnum-69': 'Grenaille magnum (6 ou 9)',\n      'magnum-78': 'Grenaille magnum (7 \u2013 8,5)',\n      'antimonial-lead': 'Plomb antimonieux',\n      'solder-4060': 'Soudure 40\/60',\n      'solder-5050': 'Soudure 50\/50',\n      'solder-6040': 'Soudure 60\/40',\n      'solder-6337': 'Soudure 63\/37',\n      'pewter': 'Pewter (\u00e9tain)',\n      'lf-cu': 'Soudure sans plomb 95\/5 (Cu)',\n      'lf-sb': 'Soudure sans plomb 95\/5 (Sb)',\n      'lf-ag': 'Soudure sans plomb 95\/5 (Ag)',\n      'tin': '\u00c9tain pur',\n      'lead': 'Plomb pur',\n      'stick-on': 'Plomb de roue adh\u00e9sif',\n      'range-lead': 'Plomb de stand (moy.)',\n      'clip-on': 'Plomb de roue \u00e0 pince',\n      'isotope-cores': 'Plomb isotopique (gros noyaux)',\n      'isotope-ingots': 'Plomb isotopique (lingots)',\n      'hardball': 'Alliage Hardball',\n      'custom-a': 'Alliage personnalis\u00e9',\n      'custom-b': 'Alliage personnalis\u00e9',\n    },\n  },\n\n  es: {\n    appTitle: 'Calculadora de aleaciones de plomo',\n    brandSub: 'Moldes de balas y herramientas de recarga',\n    h1: 'Calculadora de aleaciones de plomo',\n    lede: 'Pesa lo que tengas \u2014plomos de rueda, soldadura, esta\u00f1o, antimonio\u2014 y descubre la aleaci\u00f3n resultante, su dureza Brinell estimada y el coste de cada bala.',\n    lang: 'Idioma',\n    units: 'Unidades',\n    unitsImp: 'lb \u00b7 gr',\n    unitsMet: 'kg \u00b7 g',\n    ingredientsEyebrow: 'Paso 1',\n    ingredientsTitle: 'Pesa tus ingredientes',\n    search: 'Buscar aleaci\u00f3n\u2026',\n    searchLabel: 'Buscar aleaciones',\n    editPrices: 'Editar precios',\n    donePrices: 'Listo',\n    groupRatio: 'Proporciones plomo\u2013esta\u00f1o',\n    groupShot: 'Perdig\u00f3n y aleaciones compradas',\n    groupSolder: 'Soldadura, esta\u00f1o y peltre',\n    groupType: 'Metales tipogr\u00e1ficos',\n    groupScrap: 'Plomo de desecho y aleaciones comunes',\n    groupCustom: 'Tu propia aleaci\u00f3n',\n    alloy: 'Aleaci\u00f3n',\n    weight: 'Peso',\n    price: 'Precio',\n    resultEyebrow: 'Resultado',\n    resultTitle: 'Tu mezcla',\n    total: 'Peso total',\n    composition: 'Composici\u00f3n',\n    hardness: 'Dureza estimada',\n    soft: 'blanda',\n    hard: 'dura',\n    bhnBands: [\n      'Muy blanda \u00b7 avancarga',\n      'Blanda \u00b7 cargas est\u00e1ndar',\n      'Media \u00b7 magnum',\n      'Dura \u00b7 rifle de alta presi\u00f3n',\n      'Muy dura \u00b7 fr\u00e1gil',\n    ],\n    bhnIgnore: 'Estimada solo con esta\u00f1o y antimonio (f\u00f3rmula Rotometals).',\n    emptyTitle: 'Tu mezcla est\u00e1 vac\u00eda',\n    emptyHint: 'Escribe un peso en cualquier fila: plomos de rueda, soldadura, plomo puro, lo que tengas.',\n    costTitle: 'Coste por bala',\n    bulletWeight: 'Peso de la bala',\n    alloyCost: 'Coste de la aleaci\u00f3n',\n    unitPrice: 'Precio por {unit}',\n    costEach: 'Una bala',\n    costFor: 'Coste para',\n    pcs: 'uds.',\n    qty: 'Balas con esta aleaci\u00f3n',\n    noQty: 'Indica el peso de la bala para ver la cantidad.',\n    noPrice: 'Faltan precios de algunos ingredientes: el total es un m\u00ednimo.',\n    warnSb: 'Por encima del 6 % de antimonio la aleaci\u00f3n se vuelve fr\u00e1gil. Vale para cargas fuertes, pero las puntas huecas pueden agrietarse.',\n    warnOver: 'La aleaci\u00f3n personalizada suma m\u00e1s del 100 %: reduce alg\u00fan valor.',\n    customTitle: 'Define tu aleaci\u00f3n',\n    customHint: 'Introduce su composici\u00f3n y p\u00e9sala como cualquier otro ingrediente.',\n    leadRest: 'El plomo completa el resto',\n    notesTitle: 'Notas de fundici\u00f3n',\n    notesHardness: 'C\u00f3mo se estima la dureza',\n    noteFill: 'Los campos con borde dorado los rellenas t\u00fa; el resto se calcula.',\n    noteSb: 'El antimonio aumenta la dureza. El esta\u00f1o mejora el llenado del molde y endurece un poco.',\n    noteBrittle: 'Con m\u00e1s del 6 % de antimonio las balas son demasiado fr\u00e1giles. El cobre tambi\u00e9n aumenta la dureza.',\n    noteAs: 'El ars\u00e9nico refina el grano y mejora mucho el tratamiento t\u00e9rmico y el temple en aleaciones plomo\u2013antimonio.',\n    noteHp: 'Las puntas huecas de caza deber\u00edan tener alrededor del 2 % de esta\u00f1o y 2 % de antimonio.',\n    noteQuench: 'El temple en agua aumenta la dureza: una aleaci\u00f3n de plomos de rueda puede pasar de 12 a 18 BHN.',\n    noteFormula: 'La dureza estimada usa la f\u00f3rmula Rotometals: BHN = 8,60 + (0,29 \u00d7 %Sn) + (0,92 \u00d7 %Sb).',\n    noteCup: 'Missouri Bullet recomienda una dureza \u00f3ptima de BHN = CUP \u00f7 1279,8 para la presi\u00f3n de la carga.',\n    pressureTitle: 'Comprobaci\u00f3n de presi\u00f3n',\n    pressure: 'Presi\u00f3n en rec\u00e1mara',\n    pressureHint: 'BHN \u00f3ptimo \u2248 CUP \u00f7 1279,8 \u2014 consulta los datos de tu carga.',\n    pressureTarget: '\u2248 {bhn} BHN para {cup} CUP',\n    pressureMatch: 'Tu mezcla es adecuada.',\n    pressureLow: 'Tu mezcla es m\u00e1s dura de lo necesario.',\n    pressureHigh: 'Tu mezcla es m\u00e1s blanda de lo necesario.',\n    saveShare: 'Guardar y compartir',\n    copyLink: 'Copiar enlace',\n    copied: 'Enlace copiado',\n    csv: 'CSV',\n    print: 'Imprimir',\n    reset: 'Reiniciar',\n    resetConfirm: '\u00bfBorrar todos los pesos y aleaciones personalizadas?',\n    clearSearch: 'Borrar b\u00fasqueda',\n    clearRow: 'Borrar {name}',\n    weightFor: 'Peso de {name}',\n    priceFor: 'Precio por {unit} de {name}',\n    customName: 'Aleaci\u00f3n personalizada {n}',\n    noMatch: 'Ninguna aleaci\u00f3n coincide con \u00ab{q}\u00bb.',\n    currency: 'Moneda',\n    footerDisclaimer: 'Solo orientativo. Usa datos de recarga publicados.',\n    visit: 'mp-molds.com',\n    names: {\n      'antimony': 'Antimonio puro',\n      'chilled-shot': 'Perdig\u00f3n templado',\n      'magnum-69': 'Perdig\u00f3n magnum (6 o 9)',\n      'magnum-78': 'Perdig\u00f3n magnum (7 \u2013 8,5)',\n      'antimonial-lead': 'Plomo antimonioso',\n      'solder-4060': 'Soldadura 40\/60',\n      'solder-5050': 'Soldadura 50\/50',\n      'solder-6040': 'Soldadura 60\/40',\n      'solder-6337': 'Soldadura 63\/37',\n      'pewter': 'Peltre',\n      'lf-cu': 'Soldadura sin plomo 95\/5 (Cu)',\n      'lf-sb': 'Soldadura sin plomo 95\/5 (Sb)',\n      'lf-ag': 'Soldadura sin plomo 95\/5 (Ag)',\n      'tin': 'Esta\u00f1o puro',\n      'lead': 'Plomo puro',\n      'stick-on': 'Plomo adhesivo de rueda',\n      'range-lead': 'Plomo de galer\u00eda (med.)',\n      'clip-on': 'Plomo de rueda con grapa',\n      'isotope-cores': 'Plomo isot\u00f3pico (n\u00facleos grandes)',\n      'isotope-ingots': 'Plomo isot\u00f3pico (lingotes)',\n      'hardball': 'Aleaci\u00f3n Hardball',\n      'custom-a': 'Aleaci\u00f3n personalizada',\n      'custom-b': 'Aleaci\u00f3n personalizada',\n    },\n  },\n\n  sv: {\n    appTitle: 'Blylegeringskalkylator',\n    brandSub: 'Kulformar och omladdningsverktyg',\n    h1: 'Blylegeringskalkylator',\n    lede: 'V\u00e4g upp det du har \u2013 hjulvikter, lod, tenn, antimon \u2013 och se legeringen, den uppskattade Brinellh\u00e5rdheten och kostnaden per kula.',\n    lang: 'Spr\u00e5k',\n    units: 'Enheter',\n    unitsImp: 'lb \u00b7 gr',\n    unitsMet: 'kg \u00b7 g',\n    ingredientsEyebrow: 'Steg 1',\n    ingredientsTitle: 'V\u00e4g dina best\u00e5ndsdelar',\n    search: 'S\u00f6k legering\u2026',\n    searchLabel: 'S\u00f6k legeringar',\n    editPrices: 'Redigera priser',\n    donePrices: 'Klar',\n    groupRatio: 'Bly\u2013tenn-f\u00f6rh\u00e5llanden',\n    groupShot: 'Hagel och f\u00e4rdiga legeringar',\n    groupSolder: 'Lod, tenn och tennmetall',\n    groupType: 'S\u00e4ttningsmetaller',\n    groupScrap: 'Skrotbly och vanliga legeringar',\n    groupCustom: 'Din egen legering',\n    alloy: 'Legering',\n    weight: 'Vikt',\n    price: 'Pris',\n    resultEyebrow: 'Resultat',\n    resultTitle: 'Din blandning',\n    total: 'Total vikt',\n    composition: 'Sammans\u00e4ttning',\n    hardness: 'Uppskattad h\u00e5rdhet',\n    soft: 'mjuk',\n    hard: 'h\u00e5rd',\n    bhnBands: [\n      'Mycket mjuk \u00b7 mynningsladdning',\n      'Mjuk \u00b7 standardpatroner',\n      'Medel \u00b7 magnum',\n      'H\u00e5rd \u00b7 h\u00f6gtrycksgev\u00e4r',\n      'Mycket h\u00e5rd \u00b7 spr\u00f6d',\n    ],\n    bhnIgnore: 'Uppskattas endast fr\u00e5n tenn och antimon (Rotometals formel).',\n    emptyTitle: 'Din blandning \u00e4r tom',\n    emptyHint: 'Ange en vikt i valfri rad \u2013 hjulvikter, lod, rent bly, vad du har.',\n    costTitle: 'Kostnad per kula',\n    bulletWeight: 'Kulvikt',\n    alloyCost: 'Legeringskostnad',\n    unitPrice: 'Pris per {unit}',\n    costEach: 'En kula',\n    costFor: 'Kostnad f\u00f6r',\n    pcs: 'st',\n    qty: 'Kulor av legeringen',\n    noQty: 'Ange kulvikt f\u00f6r att se antalet.',\n    noPrice: 'Vissa best\u00e5ndsdelar saknar pris \u2013 summan \u00e4r ett minimum.',\n    warnSb: '\u00d6ver 6 % antimon g\u00f6r legeringen spr\u00f6d. Bra f\u00f6r h\u00e5rda laddningar, men h\u00e5lspetskulor kan spricka.',\n    warnOver: 'Den egna legeringen blir \u00f6ver 100 % \u2013 s\u00e4nk n\u00e5got v\u00e4rde.',\n    customTitle: 'Definiera din egen legering',\n    customHint: 'Ange sammans\u00e4ttningen och v\u00e4g den som alla andra best\u00e5ndsdelar.',\n    leadRest: 'Bly fyller resten',\n    notesTitle: 'Gjutningsanteckningar',\n    notesHardness: 'S\u00e5 uppskattas h\u00e5rdheten',\n    noteFill: 'F\u00e4lt med guldram fyller du i sj\u00e4lv \u2013 resten r\u00e4knas ut.',\n    noteSb: 'Antimon h\u00f6jer h\u00e5rdheten. Tenn f\u00f6rb\u00e4ttrar fyllningen av formen och h\u00f6jer h\u00e5rdheten n\u00e5got.',\n    noteBrittle: '\u00d6ver 6 % antimon blir kulorna f\u00f6r spr\u00f6da. Koppar h\u00f6jer ocks\u00e5 h\u00e5rdheten.',\n    noteAs: 'Arsen finf\u00f6rdelar kornet och g\u00f6r v\u00e4rmebehandling och vattensk\u00f6ljning mycket effektivare i bly\u2013antimonlegeringar.',\n    noteHp: 'H\u00e5lspetskulor f\u00f6r jakt b\u00f6r ha cirka 2 % tenn och 2 % antimon.',\n    noteQuench: 'Vattensk\u00f6ljning h\u00f6jer h\u00e5rdheten \u2013 hjulviktslegering kan g\u00e5 fr\u00e5n 12 till 18 BHN.',\n    noteFormula: 'Uppskattad h\u00e5rdhet enligt Rotometals formel: BHN = 8,60 + (0,29 \u00d7 %Sn) + (0,92 \u00d7 %Sb).',\n    noteCup: 'Missouri Bullet rekommenderar optimal h\u00e5rdhet BHN = CUP \u00f7 1279,8 f\u00f6r laddningens tryck.',\n    pressureTitle: 'Tryckkontroll',\n    pressure: 'Kammartryck',\n    pressureHint: 'Optimal BHN \u2248 CUP \u00f7 1279,8 \u2013 se laddata f\u00f6r CUP.',\n    pressureTarget: '\u2248 {bhn} BHN vid {cup} CUP',\n    pressureMatch: 'Din blandning passar.',\n    pressureLow: 'Din blandning \u00e4r h\u00e5rdare \u00e4n n\u00f6dv\u00e4ndigt.',\n    pressureHigh: 'Din blandning \u00e4r mjukare \u00e4n n\u00f6dv\u00e4ndigt.',\n    saveShare: 'Spara och dela',\n    copyLink: 'Kopiera l\u00e4nk',\n    copied: 'L\u00e4nk kopierad',\n    csv: 'CSV',\n    print: 'Skriv ut',\n    reset: 'Nollst\u00e4ll',\n    resetConfirm: 'Rensa alla vikter och egna legeringar?',\n    clearSearch: 'Rensa s\u00f6kning',\n    clearRow: 'Rensa {name}',\n    weightFor: 'Vikt f\u00f6r {name}',\n    priceFor: 'Pris per {unit} f\u00f6r {name}',\n    customName: 'Egen legering {n}',\n    noMatch: 'Ingen legering matchar \u201d{q}\u201d.',\n    currency: 'Valuta',\n    footerDisclaimer: 'Endast uppskattningar. Anv\u00e4nd publicerade ladddata.',\n    visit: 'mp-molds.com',\n    names: {\n      'antimony': 'Ren antimon',\n      'chilled-shot': 'Chilled-hagel',\n      'magnum-69': 'Magnumhagel (6 eller 9)',\n      'magnum-78': 'Magnumhagel (7 \u2013 8,5)',\n      'antimonial-lead': 'Antimonhaltigt bly',\n      'solder-4060': 'Lod 40\/60',\n      'solder-5050': 'Lod 50\/50',\n      'solder-6040': 'Lod 60\/40',\n      'solder-6337': 'Lod 63\/37',\n      'pewter': 'Tennmetall (pewter)',\n      'lf-cu': 'Blyfritt lod 95\/5 (Cu)',\n      'lf-sb': 'Blyfritt lod 95\/5 (Sb)',\n      'lf-ag': 'Blyfritt lod 95\/5 (Ag)',\n      'tin': 'Ren tenn',\n      'lead': 'Rent bly',\n      'stick-on': 'Klistrig hjulvikt',\n      'range-lead': 'Bancykelbly (medel)',\n      'clip-on': 'Kl\u00e4md hjulvikt',\n      'isotope-cores': 'Isotopbly (stora k\u00e4rnor)',\n      'isotope-ingots': 'Isotopbly (tackor)',\n      'hardball': 'Hardball-legering',\n      'custom-a': 'Egen legering',\n      'custom-b': 'Egen legering',\n    },\n  },\n\n  cs: {\n    appTitle: 'Kalkula\u010dka olov\u011bn\u00fdch slitin',\n    brandSub: 'Formy na st\u0159ely a p\u0159eb\u00edjec\u00ed n\u00e1stroje',\n    h1: 'Kalkula\u010dka olov\u011bn\u00fdch slitin',\n    lede: 'Zva\u017ete, co m\u00e1te \u2013 olov\u011bn\u00e9 z\u00e1t\u011b\u017ee, p\u00e1jku, c\u00edn, antimon \u2013 a uvid\u00edte v\u00fdslednou slitinu, odhad tvrdosti podle Brinella i cenu za st\u0159elu.',\n    lang: 'Jazyk',\n    units: 'Jednotky',\n    unitsImp: 'lb \u00b7 gr',\n    unitsMet: 'kg \u00b7 g',\n    ingredientsEyebrow: 'Krok 1',\n    ingredientsTitle: 'Zva\u017ete suroviny',\n    search: 'Hledat slitinu\u2026',\n    searchLabel: 'Hledat slitiny',\n    editPrices: 'Upravit ceny',\n    donePrices: 'Hotovo',\n    groupRatio: 'Pom\u011bry olovo\u2013c\u00edn',\n    groupShot: 'Broky a hotov\u00e9 slitiny',\n    groupSolder: 'P\u00e1jky, c\u00edn a pewter',\n    groupType: 'Typografick\u00e9 kovy',\n    groupScrap: 'Odpadn\u00ed olovo a b\u011b\u017en\u00e9 slitiny',\n    groupCustom: 'Vlastn\u00ed slitina',\n    alloy: 'Slitina',\n    weight: 'Hmotnost',\n    price: 'Cena',\n    resultEyebrow: 'V\u00fdsledek',\n    resultTitle: 'Va\u0161e sm\u011bs',\n    total: 'Celkov\u00e1 hmotnost',\n    composition: 'Slo\u017een\u00ed',\n    hardness: 'Odhadovan\u00e1 tvrdost',\n    soft: 'm\u011bkk\u00e1',\n    hard: 'tvrd\u00e1',\n    bhnBands: [\n      'Velmi m\u011bkk\u00e1 \u00b7 p\u0159edovky',\n      'M\u011bkk\u00e1 \u00b7 b\u011b\u017en\u00e9 n\u00e1boje',\n      'St\u0159edn\u00ed \u00b7 magnum',\n      'Tvrd\u00e1 \u00b7 pu\u0161ka s vysok\u00fdm tlakem',\n      'Velmi tvrd\u00e1 \u00b7 k\u0159ehk\u00e1',\n    ],\n    bhnIgnore: 'Odhad pouze z c\u00ednu a antimonu (vzorec Rotometals).',\n    emptyTitle: 'Sm\u011bs je pr\u00e1zdn\u00e1',\n    emptyHint: 'Zadejte hmotnost do libovoln\u00e9ho \u0159\u00e1dku \u2013 z\u00e1t\u011b\u017ee, p\u00e1jka, \u010dist\u00e9 olovo, co m\u00e1te.',\n    costTitle: 'Cena za st\u0159elu',\n    bulletWeight: 'Hmotnost st\u0159ely',\n    alloyCost: 'Cena slitiny',\n    unitPrice: 'Cena za {unit}',\n    costEach: 'Jedna st\u0159ela',\n    costFor: 'Cena za',\n    pcs: 'ks',\n    qty: 'St\u0159el z t\u00e9to slitiny',\n    noQty: 'Zadejte hmotnost st\u0159ely pro po\u010det.',\n    noPrice: 'U n\u011bkter\u00fdch surovin chyb\u00ed cena \u2013 sou\u010det je minimum.',\n    warnSb: 'Nad 6 % antimonu je slitina k\u0159ehk\u00e1. Pro siln\u00e9 n\u00e1boje dobr\u00e9, ale dut\u00e9 st\u0159ely mohou praskat.',\n    warnOver: 'Vlastn\u00ed slitina d\u00e1v\u00e1 p\u0159es 100 % \u2013 sni\u017ete n\u011bkterou hodnotu.',\n    customTitle: 'Definujte vlastn\u00ed slitinu',\n    customHint: 'Zadejte slo\u017een\u00ed a pak ji zva\u017ete jako ostatn\u00ed suroviny.',\n    leadRest: 'Olovo dopln\u00ed zbytek',\n    notesTitle: 'Pozn\u00e1mky k odl\u00e9v\u00e1n\u00ed',\n    notesHardness: 'Jak se tvrdost odhaduje',\n    noteFill: 'Pole se zlat\u00fdm okrajem vypl\u0148ujete vy, ostatn\u00ed se po\u010d\u00edt\u00e1.',\n    noteSb: 'Antimon zvy\u0161uje tvrdost. C\u00edn zlep\u0161uje zab\u00edh\u00e1n\u00ed formy a m\u00edrn\u011b zvy\u0161uje tvrdost.',\n    noteBrittle: 'P\u0159i v\u00edce ne\u017e 6 % antimonu jsou st\u0159ely p\u0159\u00edli\u0161 k\u0159ehk\u00e9. Tvrdost zvy\u0161uje i m\u011b\u010f.',\n    noteAs: 'Arsen zjem\u0148uje zrno a v\u00fdrazn\u011b zlep\u0161uje tepeln\u00e9 zpracov\u00e1n\u00ed a kalen\u00ed slitin olovo\u2013antimon.',\n    noteHp: 'Dut\u00e9 st\u0159ely pro lov by m\u011bly m\u00edt kolem 2 % c\u00ednu a 2 % antimonu.',\n    noteQuench: 'Kalen\u00ed ve vod\u011b zvy\u0161uje tvrdost \u2013 slitina ze z\u00e1t\u011b\u017e\u00ed m\u016f\u017ee j\u00edt z 12 na 18 BHN.',\n    noteFormula: 'Odhad tvrdosti podle vzorce Rotometals: BHN = 8,60 + (0,29 \u00d7 %Sn) + (0,92 \u00d7 %Sb).',\n    noteCup: 'Missouri Bullet doporu\u010duje optim\u00e1ln\u00ed tvrdost BHN = CUP \u00f7 1279,8 pro tlak va\u0161eho n\u00e1boje.',\n    pressureTitle: 'Kontrola tlaku',\n    pressure: 'Tlak v komo\u0159e',\n    pressureHint: 'Optim\u00e1ln\u00ed BHN \u2248 CUP \u00f7 1279,8 \u2013 viz data va\u0161eho n\u00e1boje.',\n    pressureTarget: '\u2248 {bhn} BHN p\u0159i {cup} CUP',\n    pressureMatch: 'Va\u0161e sm\u011bs odpov\u00edd\u00e1.',\n    pressureLow: 'Va\u0161e sm\u011bs je tvrd\u0161\u00ed, ne\u017e je pot\u0159eba.',\n    pressureHigh: 'Va\u0161e sm\u011bs je m\u011bk\u010d\u00ed, ne\u017e je pot\u0159eba.',\n    saveShare: 'Ulo\u017eit a sd\u00edlet',\n    copyLink: 'Kop\u00edrovat odkaz',\n    copied: 'Odkaz zkop\u00edrov\u00e1n',\n    csv: 'CSV',\n    print: 'Tisk',\n    reset: 'Vymazat',\n    resetConfirm: 'Vymazat v\u0161echny hmotnosti a vlastn\u00ed slitiny?',\n    clearSearch: 'Vymazat hled\u00e1n\u00ed',\n    clearRow: 'Vymazat {name}',\n    weightFor: 'Hmotnost: {name}',\n    priceFor: 'Cena za {unit}: {name}',\n    customName: 'Vlastn\u00ed slitina {n}',\n    noMatch: '\u017d\u00e1dn\u00e1 slitina neodpov\u00edd\u00e1 \u201e{q}\u201c.',\n    currency: 'M\u011bna',\n    footerDisclaimer: 'Jen orienta\u010dn\u00ed odhad. Pracujte s publikovan\u00fdmi p\u0159eb\u00edjec\u00edmi daty.',\n    visit: 'mp-molds.com',\n    names: {\n      'antimony': '\u010cist\u00fd antimon',\n      'chilled-shot': 'Chlazen\u00e9 broky',\n      'magnum-69': 'Magnum broky (6 nebo 9)',\n      'magnum-78': 'Magnum broky (7 \u2013 8,5)',\n      'antimonial-lead': 'Antimonov\u00e9 olovo',\n      'solder-4060': 'P\u00e1jka 40\/60',\n      'solder-5050': 'P\u00e1jka 50\/50',\n      'solder-6040': 'P\u00e1jka 60\/40',\n      'solder-6337': 'P\u00e1jka 63\/37',\n      'pewter': 'Pewter (c\u00ednov\u00e1 slitina)',\n      'lf-cu': 'Bezolovnat\u00e1 p\u00e1jka 95\/5 (Cu)',\n      'lf-sb': 'Bezolovnat\u00e1 p\u00e1jka 95\/5 (Sb)',\n      'lf-ag': 'Bezolovnat\u00e1 p\u00e1jka 95\/5 (Ag)',\n      'tin': '\u010cist\u00fd c\u00edn',\n      'lead': '\u010cist\u00e9 olovo',\n      'stick-on': 'Samolepic\u00ed z\u00e1t\u011b\u017e',\n      'range-lead': 'Olovo ze st\u0159elnice (pr\u016fm.)',\n      'clip-on': 'Z\u00e1t\u011b\u017e na r\u00e1fky (klip)',\n      'isotope-cores': 'Izotopov\u00e9 olovo (velk\u00e1 j\u00e1dra)',\n      'isotope-ingots': 'Izotopov\u00e9 olovo (ingoty)',\n      'hardball': 'Slitina Hardball',\n      'custom-a': 'Vlastn\u00ed slitina',\n      'custom-b': 'Vlastn\u00ed slitina',\n    },\n  },\n\n  pl: {\n    appTitle: 'Kalkulator stopu o\u0142owiu',\n    brandSub: 'Formy do pocisk\u00f3w i narz\u0119dzia do elaboracji',\n    h1: 'Kalkulator stopu o\u0142owiu',\n    lede: 'Zwa\u017c to, co masz \u2013 ci\u0119\u017carki, lut, cyn\u0119, antymon \u2013 i zobacz stop, jego szacowan\u0105 twardo\u015b\u0107 Brinella oraz koszt ka\u017cdego pocisku.',\n    lang: 'J\u0119zyk',\n    units: 'Jednostki',\n    unitsImp: 'lb \u00b7 gr',\n    unitsMet: 'kg \u00b7 g',\n    ingredientsEyebrow: 'Krok 1',\n    ingredientsTitle: 'Zwa\u017c sk\u0142adniki',\n    search: 'Szukaj stopu\u2026',\n    searchLabel: 'Szukaj stop\u00f3w',\n    editPrices: 'Edytuj ceny',\n    donePrices: 'Gotowe',\n    groupRatio: 'Proporcje o\u0142\u00f3w\u2013cyna',\n    groupShot: '\u015arut i gotowe stopy',\n    groupSolder: 'Luty, cyna i pewter',\n    groupType: 'Metale typograficzne',\n    groupScrap: 'Z\u0142om o\u0142owiu i popularne stopy',\n    groupCustom: 'Tw\u00f3j w\u0142asny stop',\n    alloy: 'Stop',\n    weight: 'Waga',\n    price: 'Cena',\n    resultEyebrow: 'Wynik',\n    resultTitle: 'Twoja mieszanka',\n    total: 'Waga ca\u0142kowita',\n    composition: 'Sk\u0142ad',\n    hardness: 'Szacowana twardo\u015b\u0107',\n    soft: 'mi\u0119kki',\n    hard: 'twardy',\n    bhnBands: [\n      'Bardzo mi\u0119kki \u00b7 bro\u0144 czarnoprochowa',\n      'Mi\u0119kki \u00b7 standardowe naboje',\n      '\u015aredni \u00b7 magnum',\n      'Twardy \u00b7 karabin wysokoci\u015bnieniowy',\n      'Bardzo twardy \u00b7 kruchy',\n    ],\n    bhnIgnore: 'Szacowana tylko z cyny i antymonu (wz\u00f3r Rotometals).',\n    emptyTitle: 'Mieszanka jest pusta',\n    emptyHint: 'Wpisz wag\u0119 w dowolnym wierszu \u2013 ci\u0119\u017carki, lut, czysty o\u0142\u00f3w, co masz.',\n    costTitle: 'Koszt pocisku',\n    bulletWeight: 'Waga pocisku',\n    alloyCost: 'Koszt stopu',\n    unitPrice: 'Cena za {unit}',\n    costEach: 'Jeden pocisk',\n    costFor: 'Koszt dla',\n    pcs: 'szt.',\n    qty: 'Pociski z tego stopu',\n    noQty: 'Podaj wag\u0119 pocisku, aby zobaczy\u0107 liczb\u0119.',\n    noPrice: 'Brakuje ceny niekt\u00f3rych sk\u0142adnik\u00f3w \u2013 suma jest minimalna.',\n    warnSb: 'Powy\u017cej 6 % antymonu stop staje si\u0119 kruchy. Dobry do mocnych naboi, ale pociski z pustym wierzcho\u0142kiem mog\u0105 p\u0119ka\u0107.',\n    warnOver: 'W\u0142asny stop daje ponad 100 % \u2013 zmniejsz kt\u00f3r\u0105\u015b warto\u015b\u0107.',\n    customTitle: 'Zdefiniuj w\u0142asny stop',\n    customHint: 'Podaj sk\u0142ad, a potem zwa\u017c go jak ka\u017cdy inny sk\u0142adnik.',\n    leadRest: 'O\u0142\u00f3w uzupe\u0142nia reszt\u0119',\n    notesTitle: 'Uwagi o odlewaniu',\n    notesHardness: 'Jak szacowana jest twardo\u015b\u0107',\n    noteFill: 'Pola ze z\u0142ot\u0105 ramk\u0105 wype\u0142niasz sam; reszta jest liczona.',\n    noteSb: 'Antymon zwi\u0119ksza twardo\u015b\u0107. Cyna poprawia wype\u0142nianie formy i nieco zwi\u0119ksza twardo\u015b\u0107.',\n    noteBrittle: 'Powy\u017cej 6 % antymonu pociski s\u0105 zbyt kruche. Mied\u017a te\u017c zwi\u0119ksza twardo\u015b\u0107.',\n    noteAs: 'Arsen rozdrabnia ziarno i znacznie poprawia obr\u00f3bk\u0119 ciepln\u0105 oraz hartowanie stop\u00f3w o\u0142\u00f3w\u2013antymon.',\n    noteHp: 'Pociski z pustym wierzcho\u0142kiem do polowania powinny mie\u0107 oko\u0142o 2 % cyny i 2 % antymonu.',\n    noteQuench: 'Hartowanie w wodzie zwi\u0119ksza twardo\u015b\u0107 \u2013 stop z ci\u0119\u017cark\u00f3w mo\u017ce przej\u015b\u0107 z 12 do 18 BHN.',\n    noteFormula: 'Twardo\u015b\u0107 szacowana wzorem Rotometals: BHN = 8,60 + (0,29 \u00d7 %Sn) + (0,92 \u00d7 %Sb).',\n    noteCup: 'Missouri Bullet zaleca optymaln\u0105 twardo\u015b\u0107 BHN = CUP \u00f7 1279,8 dla ci\u015bnienia Twojego naboju.',\n    pressureTitle: 'Kontrola ci\u015bnienia',\n    pressure: 'Ci\u015bnienie w komorze',\n    pressureHint: 'Optymalny BHN \u2248 CUP \u00f7 1279,8 \u2013 sprawd\u017a dane naboju.',\n    pressureTarget: '\u2248 {bhn} BHN przy {cup} CUP',\n    pressureMatch: 'Twoja mieszanka pasuje.',\n    pressureLow: 'Twoja mieszanka jest twardsza ni\u017c potrzeba.',\n    pressureHigh: 'Twoja mieszanka jest mi\u0119ksza ni\u017c potrzeba.',\n    saveShare: 'Zapisz i udost\u0119pnij',\n    copyLink: 'Kopiuj link',\n    copied: 'Skopiowano link',\n    csv: 'CSV',\n    print: 'Drukuj',\n    reset: 'Wyczy\u015b\u0107',\n    resetConfirm: 'Wyczy\u015bci\u0107 wszystkie wagi i w\u0142asne stopy?',\n    clearSearch: 'Wyczy\u015b\u0107 wyszukiwanie',\n    clearRow: 'Wyczy\u015b\u0107 {name}',\n    weightFor: 'Waga: {name}',\n    priceFor: 'Cena za {unit}: {name}',\n    customName: 'W\u0142asny stop {n}',\n    noMatch: '\u017baden stop nie pasuje do \u201e{q}\u201d.',\n    currency: 'Waluta',\n    footerDisclaimer: 'Tylko szacunki. Korzystaj z publikowanych danych elaboracyjnych.',\n    visit: 'mp-molds.com',\n    names: {\n      'antimony': 'Czysty antymon',\n      'chilled-shot': '\u015arut chilled',\n      'magnum-69': '\u015arut magnum (6 lub 9)',\n      'magnum-78': '\u015arut magnum (7 \u2013 8,5)',\n      'antimonial-lead': 'O\u0142\u00f3w antymonowy',\n      'solder-4060': 'Lut 40\/60',\n      'solder-5050': 'Lut 50\/50',\n      'solder-6040': 'Lut 60\/40',\n      'solder-6337': 'Lut 63\/37',\n      'pewter': 'Pewter (stop cyny)',\n      'lf-cu': 'Lut bezo\u0142owiowy 95\/5 (Cu)',\n      'lf-sb': 'Lut bezo\u0142owiowy 95\/5 (Sb)',\n      'lf-ag': 'Lut bezo\u0142owiowy 95\/5 (Ag)',\n      'tin': 'Czysta cyna',\n      'lead': 'Czysty o\u0142\u00f3w',\n      'stick-on': 'Ci\u0119\u017carek samoprzylepny',\n      'range-lead': 'O\u0142\u00f3w z kulochwytu (\u015br.)',\n      'clip-on': 'Ci\u0119\u017carek zaciskowy',\n      'isotope-cores': 'O\u0142\u00f3w izotopowy (du\u017ce rdzenie)',\n      'isotope-ingots': 'O\u0142\u00f3w izotopowy (sztaby)',\n      'hardball': 'Stop Hardball',\n      'custom-a': 'W\u0142asny stop',\n      'custom-b': 'W\u0142asny stop',\n    },\n  },\n\n  it: {\n    appTitle: 'Calcolatore per leghe di piombo',\n    brandSub: 'Stampi per palle e attrezzatura da ricarica',\n    h1: 'Calcolatore per leghe di piombo',\n    lede: 'Pesa quello che hai \u2014 piombi per cerchi, stagno, lega per saldatura, antimonio \u2014 e scopri la lega che ottieni, la durezza Brinell stimata e il costo di ogni palla.',\n    lang: 'Lingua',\n    units: 'Unit\u00e0',\n    unitsImp: 'lb \u00b7 gr',\n    unitsMet: 'kg \u00b7 g',\n    ingredientsEyebrow: 'Passo 1',\n    ingredientsTitle: 'Pesa gli ingredienti',\n    search: 'Cerca una lega\u2026',\n    searchLabel: 'Cerca leghe',\n    editPrices: 'Modifica prezzi',\n    donePrices: 'Fatto',\n    groupRatio: 'Rapporti piombo\u2013stagno',\n    groupShot: 'Pallini e leghe pronte',\n    groupSolder: 'Stagno, peltro e leghe per saldatura',\n    groupType: 'Metalli tipografici',\n    groupScrap: 'Piombo di recupero e leghe comuni',\n    groupCustom: 'La tua lega',\n    alloy: 'Lega',\n    weight: 'Peso',\n    price: 'Prezzo',\n    resultEyebrow: 'Risultato',\n    resultTitle: 'La tua miscela',\n    total: 'Peso totale',\n    composition: 'Composizione',\n    hardness: 'Durezza stimata',\n    soft: 'tenera',\n    hard: 'dura',\n    bhnBands: [\n      'Molto tenera \u00b7 avancarica',\n      'Tenera \u00b7 cariche standard',\n      'Media \u00b7 magnum',\n      'Dura \u00b7 carabina ad alta pressione',\n      'Molto dura \u00b7 fragile',\n    ],\n    bhnIgnore: 'Stimata solo da stagno e antimonio (formula Rotometals).',\n    emptyTitle: 'La miscela \u00e8 vuota',\n    emptyHint: 'Inserisci un peso in una riga qualsiasi: piombi per cerchi, lega per saldatura, piombo puro, quello che hai.',\n    costTitle: 'Costo per palla',\n    bulletWeight: 'Peso della palla',\n    alloyCost: 'Costo della lega',\n    unitPrice: 'Prezzo per {unit}',\n    costEach: 'Una palla',\n    costFor: 'Costo per',\n    pcs: 'pz',\n    qty: 'Palle con questa lega',\n    noQty: 'Inserisci il peso della palla per vedere la quantit\u00e0.',\n    noPrice: 'Mancano i prezzi di alcuni ingredienti: il totale \u00e8 un minimo.',\n    warnSb: 'Oltre il 6 % di antimonio la lega diventa fragile. Va bene per cariche forti, ma le palle a punta cava possono spezzarsi.',\n    warnOver: 'La lega personalizzata supera il 100 %: riduci un valore.',\n    customTitle: 'Definisci la tua lega',\n    customHint: 'Inserisci la composizione e poi pesala come gli altri ingredienti.',\n    leadRest: 'Il piombo completa il resto',\n    notesTitle: 'Note di fusione',\n    notesHardness: 'Come viene stimata la durezza',\n    noteFill: 'I campi con bordo dorato li compili tu; il resto \u00e8 calcolato.',\n    noteSb: 'L\u2019antimonio aumenta la durezza. Lo stagno migliora il riempimento dello stampo e indurisce un po\u2019.',\n    noteBrittle: 'Oltre il 6 % di antimonio le palle sono troppo fragili. Anche il rame aumenta la durezza.',\n    noteAs: 'L\u2019arsenico affina il grano e migliora molto la tempra e il trattamento termico nelle leghe piombo\u2013antimonio.',\n    noteHp: 'Le palle a punta cava per la caccia dovrebbero avere circa il 2 % di stagno e il 2 % di antimonio.',\n    noteQuench: 'La tempra in acqua aumenta la durezza: una lega da piombi per cerchi pu\u00f2 passare da 12 a 18 BHN.',\n    noteFormula: 'La durezza stimata segue la formula Rotometals: BHN = 8,60 + (0,29 \u00d7 %Sn) + (0,92 \u00d7 %Sb).',\n    noteCup: 'Missouri Bullet consiglia una durezza ottimale BHN = CUP \u00f7 1279,8 per la pressione della carica.',\n    pressureTitle: 'Controllo della pressione',\n    pressure: 'Pressione in camera',\n    pressureHint: 'BHN ottimale \u2248 CUP \u00f7 1279,8 \u2014 vedi i dati della carica.',\n    pressureTarget: '\u2248 {bhn} BHN per {cup} CUP',\n    pressureMatch: 'La tua miscela \u00e8 adatta.',\n    pressureLow: 'La tua miscela \u00e8 pi\u00f9 dura del necessario.',\n    pressureHigh: 'La tua miscela \u00e8 pi\u00f9 tenera del necessario.',\n    saveShare: 'Salva e condividi',\n    copyLink: 'Copia link',\n    copied: 'Link copiato',\n    csv: 'CSV',\n    print: 'Stampa',\n    reset: 'Reimposta',\n    resetConfirm: 'Cancellare tutti i pesi e le leghe personalizzate?',\n    clearSearch: 'Cancella ricerca',\n    clearRow: 'Svuota {name}',\n    weightFor: 'Peso di {name}',\n    priceFor: 'Prezzo per {unit} di {name}',\n    customName: 'Lega personalizzata {n}',\n    noMatch: 'Nessuna lega corrisponde a \u00ab{q}\u00bb.',\n    currency: 'Valuta',\n    footerDisclaimer: 'Solo stime. Usa i dati di ricarica pubblicati.',\n    visit: 'mp-molds.com',\n    names: {\n      'antimony': 'Antimonio puro',\n      'chilled-shot': 'Pallini temprati',\n      'magnum-69': 'Pallini magnum (6 o 9)',\n      'magnum-78': 'Pallini magnum (7 \u2013 8,5)',\n      'antimonial-lead': 'Piombo antimonioso',\n      'solder-4060': 'Stagno per saldatura 40\/60',\n      'solder-5050': 'Stagno per saldatura 50\/50',\n      'solder-6040': 'Stagno per saldatura 60\/40',\n      'solder-6337': 'Stagno per saldatura 63\/37',\n      'pewter': 'Peltro',\n      'lf-cu': 'Lega per saldatura senza piombo 95\/5 (Cu)',\n      'lf-sb': 'Lega per saldatura senza piombo 95\/5 (Sb)',\n      'lf-ag': 'Lega per saldatura senza piombo 95\/5 (Ag)',\n      'tin': 'Stagno puro',\n      'lead': 'Piombo puro',\n      'stick-on': 'Piombo adesivo per cerchi',\n      'range-lead': 'Piombo da poligono (media)',\n      'clip-on': 'Piombo per cerchi a clip',\n      'isotope-cores': 'Piombo isotopico (nuclei grandi)',\n      'isotope-ingots': 'Piombo isotopico (pani)',\n      'hardball': 'Lega Hardball',\n      'custom-a': 'Lega personalizzata',\n      'custom-b': 'Lega personalizzata',\n    },\n  },\n};\n\nconst PLACEHOLDER = \/\\{(\\w+)\\}\/g;\n\nfunction interpolate(template, values = {}) {\n  return String(template).replace(PLACEHOLDER, (_, key) => (key in values ? String(values[key]) : `{${key}}`));\n}\n\nfunction strings(lang) {\n  return STR[lang] ?? STR.en;\n}\n\nfunction alloyName(lang, id, fallback) {\n  const table = strings(lang).names ?? {};\n  return table[id] ?? fallback;\n}\n\n\/* ---- app.js ---- *\/\n\/* UI layer: state, rendering, events, sharing. All queries are scoped to the\n   .mp-lloy root so the page can live inside a WordPress content area. *\/\n\nconst STORAGE_KEY = 'mp-lloy-v1';\nconst CURRENCIES = ['USD', 'EUR', 'GBP', 'CHF', 'SEK', 'CZK', 'PLN'];\nconst PACKS = [20, 50, 100, 500, 1000];\n\n\/* ---------- small helpers ---------- *\/\n\nfunction escapeHtml(value) {\n  return String(value).replace(\/[&<>\"']\/g, (ch) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;', \"'\": '&#39;' }[ch]));\n}\n\n\/** Accepts 1,5 \u00b7 1.5 \u00b7 1 000,5 \u2014 anything a European or US keyboard produces. *\/\nfunction parseNumber(raw) {\n  if (typeof raw === 'number') return raw;\n  let text = String(raw).trim();\n  if (!text) return NaN;\n  text = text.replace(\/[^\\d.,-]\/g, '');\n  if (!text || !\/\\d\/.test(text)) return NaN;\n  const dots = (text.match(\/\\.\/g) || []).length;\n  const commas = (text.match(\/,\/g) || []).length;\n  if (dots && commas) {\n    if (text.lastIndexOf(',') > text.lastIndexOf('.')) text = text.replace(\/\\.\/g, '').replace(\/,\/g, '.');\n    else text = text.replace(\/,\/g, '');\n  } else if (commas) {\n    text = commas > 1 ? text.replace(\/,\/g, '') : text.replace(',', '.');\n  } else if (dots > 1) {\n    text = text.replace(\/\\.\/g, '');\n  }\n  const value = Number(text);\n  return Number.isFinite(value) ? value : NaN;\n}\n\nfunction clamp(value, min, max) {\n  return Math.min(max, Math.max(min, value));\n}\n\nfunction base64UrlEncode(text) {\n  return btoa(unescape(encodeURIComponent(text))).replace(\/\\+\/g, '-').replace(\/\\\/\/g, '_').replace(\/=+$\/, '');\n}\n\nfunction base64UrlDecode(text) {\n  const padded = text.replace(\/-\/g, '+').replace(\/_\/g, '\/') + '==='.slice((text.length + 3) % 4);\n  return decodeURIComponent(escape(atob(padded)));\n}\n\n\/* ---------- boot ---------- *\/\n\nfunction boot() {\n  const root = document.getElementById('mp-lloy');\n  if (!root || root.dataset.booted) return;\n  root.dataset.booted = '1';\n\n  const byId = (id) => document.getElementById(id);\n  const one = (selector) => root.querySelector(selector);\n  const all = (selector) => Array.from(root.querySelectorAll(selector));\n\n  let locale = 'en-US';\n  const formatCache = new Map();\n  let saveTimer = null;\n  let statusTimer = null;\n\n  \/* ----- state ----- *\/\n\n  function defaults() {\n    return {\n      lang: 'en',\n      units: 'imperial',\n      weights: {},\n      prices: {},\n      custom: {\n        'custom-a': { sn: 0, sb: 0, as: 0, cu: 0, ag: 0 },\n        'custom-b': { sn: 0, sb: 0, as: 0, cu: 0, ag: 0 },\n      },\n      bulletGrains: 220,\n      currency: 'USD',\n      currencyExplicit: false,\n      cup: null,\n      showPrices: false,\n      query: '',\n    };\n  }\n\n  function sanitizeComposition(raw) {\n    const out = {};\n    for (const key of ['sn', 'sb', 'as', 'cu', 'ag']) {\n      const value = Number(raw && raw[key]);\n      out[key] = Number.isFinite(value) ? clamp(value, 0, 100) : 0;\n    }\n    return out;\n  }\n\n  function mergeState(base, patch) {\n    if (!patch || typeof patch !== 'object') return base;\n    if (typeof patch.lang === 'string' && STR[patch.lang]) base.lang = patch.lang;\n    if (patch.units === 'metric' || patch.units === 'imperial') base.units = patch.units;\n    if (patch.bulletGrains != null) {\n      const grains = Number(patch.bulletGrains);\n      if (Number.isFinite(grains) && grains > 0) base.bulletGrains = grains;\n    }\n    if (patch.cup != null) {\n      const cup = Number(patch.cup);\n      base.cup = Number.isFinite(cup) && cup > 0 ? cup : null;\n    }\n    if (typeof patch.currency === 'string' && CURRENCIES.includes(patch.currency)) {\n      base.currency = patch.currency;\n    }\n    if (patch.currencyExplicit === true) base.currencyExplicit = true;\n    if (patch.weights && typeof patch.weights === 'object') {\n      for (const [id, value] of Object.entries(patch.weights)) {\n        const lb = Number(value);\n        if (BY_ID[id] && Number.isFinite(lb) && lb > 0) base.weights[id] = lb;\n        else delete base.weights[id];\n      }\n    }\n    if (patch.prices && typeof patch.prices === 'object') {\n      for (const [id, value] of Object.entries(patch.prices)) {\n        const price = Number(value);\n        if (BY_ID[id] && Number.isFinite(price) && price >= 0) base.prices[id] = price;\n      }\n    }\n    if (patch.custom && typeof patch.custom === 'object') {\n      for (const id of ['custom-a', 'custom-b']) {\n        if (patch.custom[id]) base.custom[id] = sanitizeComposition(patch.custom[id]);\n      }\n    }\n    return base;\n  }\n\n  function readStorage() {\n    try {\n      const raw = localStorage.getItem(STORAGE_KEY);\n      return raw ? JSON.parse(raw) : null;\n    } catch {\n      return null;\n    }\n  }\n\n  function readHashState() {\n    const match = location.hash.match(\/m=([A-Za-z0-9_-]+)\/);\n    if (!match) return null;\n    try {\n      return JSON.parse(base64UrlDecode(match[1]));\n    } catch {\n      return null;\n    }\n  }\n\n  function pickLanguage(patch, stored) {\n    const fromQuery = new URLSearchParams(location.search).get('lang');\n    if (fromQuery && STR[fromQuery]) return fromQuery;\n    if (patch && STR[patch.l]) return patch.l;\n    \/\/ Jezik strani (TranslatePress \/de\/, \/it\/ ...) ima prednost pred shranjenim in jezikom brskalnika.\n    const siteLang = String(document.documentElement.lang || '').slice(0, 2).toLowerCase();\n    if (STR[siteLang]) return siteLang;\n    if (stored && STR[stored.lang]) return stored.lang;\n    const tags = navigator.languages && navigator.languages.length ? navigator.languages : [navigator.language];\n    for (const tag of tags) {\n      const code = String(tag || '').slice(0, 2).toLowerCase();\n      if (STR[code]) return code;\n    }\n    return 'en';\n  }\n\n  const stored = readStorage();\n  const hashState = readHashState();\n  const state = defaults();\n  const currencyForLang = (code) => (LANGS.find((l) => l.code === code) || LANGS[0]).currency;\n\n  \/\/ A shared link describes a complete mix, so it replaces whatever was saved\n  \/\/ rather than merging into it. Saved state is only a convenience otherwise.\n  if (hashState) {\n    mergeState(state, {\n      lang: hashState.l,\n      units: hashState.u === 1 ? 'metric' : hashState.u === 0 ? 'imperial' : undefined,\n      bulletGrains: hashState.b,\n      currency: hashState.k,\n      cup: hashState.q,\n      weights: hashState.w,\n      prices: hashState.p,\n      custom: hashState.c\n        ? {\n            'custom-a': hashState.c['custom-a'] && { sn: hashState.c['custom-a'][0], sb: hashState.c['custom-a'][1], as: hashState.c['custom-a'][2], cu: hashState.c['custom-a'][3], ag: hashState.c['custom-a'][4] },\n            'custom-b': hashState.c['custom-b'] && { sn: hashState.c['custom-b'][0], sb: hashState.c['custom-b'][1], as: hashState.c['custom-b'][2], cu: hashState.c['custom-b'][3], ag: hashState.c['custom-b'][4] },\n          }\n        : undefined,\n    });\n    state.currencyExplicit = Boolean(hashState.k);\n  } else if (stored) {\n    mergeState(state, stored);\n  }\n\n  state.lang = pickLanguage(hashState, stored);\n  const queryLang = new URLSearchParams(location.search).get('lang');\n  if (queryLang && STR[queryLang]) state.lang = queryLang;\n  if (!state.currencyExplicit) state.currency = currencyForLang(state.lang);\n\n  \/* ----- i18n and formatting ----- *\/\n\n  const t = (key, values) => {\n    const entry = strings(state.lang)[key];\n    if (Array.isArray(entry)) return entry;\n    return interpolate(entry, values);\n  };\n  const nameOf = (item) => alloyName(state.lang, item.id, item.name);\n  const unitWeight = () => (state.units === 'metric' ? 'kg' : 'lb');\n  const unitBullet = () => (state.units === 'metric' ? 'g' : 'gr');\n  const isMetric = () => state.units === 'metric';\n\n  function numberFormat(options) {\n    const key = JSON.stringify(options);\n    if (!formatCache.has(key)) formatCache.set(key, new Intl.NumberFormat(locale, options));\n    return formatCache.get(key);\n  }\n\n  function fmt(value, max = 2, min = 0) {\n    if (value == null || !Number.isFinite(value)) return '\u2014';\n    return numberFormat({ minimumFractionDigits: min, maximumFractionDigits: max }).format(value);\n  }\n\n  function percent(value) {\n    return `${fmt(value, 2)}\\u00a0%`;\n  }\n\n  function money(value, digits = 2) {\n    if (value == null || !Number.isFinite(value)) return '\u2014';\n    const key = `money-${state.currency}-${digits}`;\n    if (!formatCache.has(key)) {\n      const options = { style: 'currency', currency: state.currency, minimumFractionDigits: digits, maximumFractionDigits: digits };\n      let formatter;\n      try {\n        formatter = new Intl.NumberFormat(locale, { ...options, currencyDisplay: 'narrowSymbol' });\n      } catch {\n        formatter = new Intl.NumberFormat(locale, options);\n      }\n      formatCache.set(key, formatter);\n    }\n    return formatCache.get(key).format(value);\n  }\n\n  const weightDisplay = (lb) => (isMetric() ? lb \/ LB_PER_KG : lb);\n  const weightFromInput = (value) => (isMetric() ? value * LB_PER_KG : value);\n  const priceDisplay = (price) => (isMetric() ? price * LB_PER_KG : price);\n  const priceFromInput = (value) => (isMetric() ? value \/ LB_PER_KG : value);\n  const bulletDisplay = (grains) => (isMetric() ? grains \/ GRAINS_PER_GRAM : grains);\n  const bulletFromInput = (value) => (isMetric() ? value * GRAINS_PER_GRAM : value);\n\n  function weightText(lb) {\n    return isMetric() ? fmt(lb \/ LB_PER_KG, 3) : fmt(lb, 2);\n  }\n\n  function priceText(price) {\n    return fmt(isMetric() ? price * LB_PER_KG : price, 2);\n  }\n\n  function bulletText(grains) {\n    return isMetric() ? fmt(grains \/ GRAINS_PER_GRAM, 2) : fmt(grains, 1);\n  }\n\n  \/* ----- persistence and sharing ----- *\/\n\n  function save() {\n    clearTimeout(saveTimer);\n    saveTimer = setTimeout(() => {\n      try {\n        localStorage.setItem(STORAGE_KEY, JSON.stringify(state));\n      } catch {\n        \/* storage may be disabled \u2014 the calculator still works *\/\n      }\n    }, 250);\n  }\n\n  function shareUrl() {\n    const data = { l: state.lang, u: isMetric() ? 1 : 0, b: Math.round(state.bulletGrains * 100) \/ 100, k: state.currency };\n    const weights = {};\n    for (const [id, lb] of Object.entries(state.weights)) {\n      if (lb > 0) weights[id] = Math.round(lb * 10000) \/ 10000;\n    }\n    if (Object.keys(weights).length) data.w = weights;\n    if (Object.keys(state.prices).length) {\n      data.p = {};\n      for (const [id, price] of Object.entries(state.prices)) data.p[id] = Math.round(price * 10000) \/ 10000;\n    }\n    const custom = {};\n    for (const id of ['custom-a', 'custom-b']) {\n      const comp = state.custom[id];\n      if (comp.sn || comp.sb || comp.as || comp.cu || comp.ag) {\n        custom[id] = [comp.sn, comp.sb, comp.as, comp.cu, comp.ag].map((v) => Math.round(v * 1000) \/ 1000);\n      }\n    }\n    if (Object.keys(custom).length) data.c = custom;\n    if (state.cup) data.q = state.cup;\n    const url = new URL(location.href);\n    url.hash = `m=${base64UrlEncode(JSON.stringify(data))}`;\n    return url.toString();\n  }\n\n  function setStatus(message, bad) {\n    const status = byId('lloy-status');\n    status.textContent = message || '';\n    status.style.color = bad ? '#b42318' : '';\n    clearTimeout(statusTimer);\n    if (message) statusTimer = setTimeout(() => (status.textContent = ''), 3200);\n  }\n\n  async function copyText(text) {\n    try {\n      await navigator.clipboard.writeText(text);\n      return true;\n    } catch {\n      const area = document.createElement('textarea');\n      area.value = text;\n      area.setAttribute('readonly', '');\n      area.style.position = 'fixed';\n      area.style.opacity = '0';\n      document.body.appendChild(area);\n      area.select();\n      let ok = false;\n      try {\n        ok = document.execCommand('copy');\n      } catch {\n        ok = false;\n      }\n      document.body.removeChild(area);\n      return ok;\n    }\n  }\n\n  \/* ----- derived data ----- *\/\n\n  function compositionFor(item) {\n    return item.custom ? state.custom[item.id] : item;\n  }\n\n  function entries() {\n    return INGREDIENTS.map((item) => {\n      const comp = compositionFor(item);\n      return {\n        id: item.id,\n        weightLb: state.weights[item.id] || 0,\n        sn: comp.sn,\n        sb: comp.sb,\n        as: comp.as,\n        cu: comp.cu,\n        ag: comp.ag,\n        price: state.prices[item.id] !== undefined ? state.prices[item.id] : item.price,\n      };\n    });\n  }\n\n  function priceOf(item) {\n    return state.prices[item.id] !== undefined ? state.prices[item.id] : item.price;\n  }\n\n  const mix = { current: computeMix(entries()) };\n\n  \/* ----- rendering: static text ----- *\/\n\n  function applyStaticText() {\n    for (const node of all('[data-i18n]')) {\n      const key = node.getAttribute('data-i18n');\n      const text = t(key);\n      if (text !== undefined) node.textContent = text;\n    }\n    for (const node of all('[data-i18n-attr]')) {\n      const [attr, key] = node.getAttribute('data-i18n-attr').split(':');\n      const text = t(key);\n      if (text !== undefined) node.setAttribute(attr, text);\n    }\n    const search = byId('lloy-search');\n    search.setAttribute('aria-label', t('searchLabel'));\n    byId('lloy-search-clear').setAttribute('aria-label', t('clearSearch'));\n    search.setAttribute('placeholder', t('search'));\n    byId('lloy-lang').setAttribute('aria-label', t('lang'));\n    one('#lloy-units').setAttribute('aria-label', t('units'));\n    byId('lloy-currency').setAttribute('aria-label', t('currency'));\n    byId('lloy-brand').href = (LANGS.find((l) => l.code === state.lang) || LANGS[0]).home;\n    byId('lloy-footlink').href = 'https:\/\/www.mp-molds.com\/en\/reloading-software\/';\n    byId('lloy-prices').innerHTML = `<span>${escapeHtml(state.showPrices ? t('donePrices') : t('editPrices'))}<\/span>`;\n    byId('lloy-unit-price-label').textContent = t('unitPrice', { unit: unitWeight() });\n  }\n\n  function renderLanguageSelect() {\n    const select = byId('lloy-lang');\n    select.innerHTML = LANGS.map((lang) => `<option value=\"${lang.code}\"${lang.code === state.lang ? ' selected' : ''}>${escapeHtml(lang.label)}<\/option>`).join('');\n  }\n\n  function renderCurrencySelect() {\n    const select = byId('lloy-currency');\n    select.innerHTML = CURRENCIES.map((code) => `<option value=\"${code}\"${code === state.currency ? ' selected' : ''}>${code}<\/option>`).join('');\n  }\n\n  function syncUnitLabels() {\n    byId('lloy-total-unit').textContent = unitWeight();\n    byId('lloy-bw-unit').textContent = unitBullet();\n    byId('lloy-mb-unit').textContent = unitWeight();\n  }\n\n  \/* ----- rendering: ingredient rows ----- *\/\n\n  function chipMarkup(comp) {\n    return ELEMENTS.filter((element) => Number(comp[element.key]) > 0.0001)\n      .map(\n        (element) =>\n          `<span class=\"lloy-chip${element.key === 'pb' ? ' lloy-chip--pb' : ''}\" style=\"--chip:${element.color}\"><i><\/i>${element.symbol} ${fmt(comp[element.key], 2)}<\/span>`,\n      )\n      .join('');\n  }\n\n  function labelFor(item) {\n    return item.custom ? t('customName', { n: item.id === 'custom-a' ? 1 : 2 }) : nameOf(item);\n  }\n\n  function priceCell(item, displayUnit) {\n    const price = priceOf(item);\n    if (state.showPrices) {\n      const value = price == null ? '' : priceText(price);\n      return `<input type=\"text\" inputmode=\"decimal\" autocomplete=\"off\" data-price=\"${item.id}\" value=\"${escapeHtml(value)}\" placeholder=\"\u2014\" aria-label=\"${escapeHtml(t('priceFor', { unit: displayUnit, name: labelFor(item) }))}\"><em>\/${displayUnit}<\/em>`;\n    }\n    if (price == null) return '<span>\u2014<\/span>';\n    return `<span>${priceText(price)} <small>\/${displayUnit}<\/small><\/span>`;\n  }\n\n  function weightCell(item) {\n    const lb = state.weights[item.id] || 0;\n    const value = lb > 0 ? weightText(lb) : '';\n    return `<label class=\"lloy-sr\" for=\"w-${item.id}\">${escapeHtml(t('weightFor', { name: labelFor(item) }))}<\/label>\n      <input id=\"w-${item.id}\" type=\"text\" inputmode=\"decimal\" autocomplete=\"off\" data-weight=\"${item.id}\" value=\"${escapeHtml(value)}\" placeholder=\"0\">\n      <span>${unitWeight()}<\/span>`;\n  }\n\n  function rowMarkup(item) {\n    const comp = compositionOf(compositionFor(item));\n    const active = (state.weights[item.id] || 0) > 0;\n    const bhn = item.custom ? bhnFromComposition(comp.sn, comp.sb) : item.bhn;\n    return `<div class=\"lloy-row${active ? ' is-active' : ''}\" data-id=\"${item.id}\">\n      <div class=\"lloy-row__name\">\n        <span class=\"lloy-row__title\">${escapeHtml(nameOf(item))}<\/span>\n        <span class=\"lloy-row__chips\">${chipMarkup(comp)}<\/span>\n      <\/div>\n      <span class=\"lloy-row__bhn\"><b>${bhn == null ? '\u2014' : fmt(bhn, 1)}<\/b><i>BHN<\/i><\/span>\n      <div class=\"lloy-row__weight\">${weightCell(item)}<\/div>\n      <div class=\"lloy-row__price\">${priceCell(item, unitWeight())}<\/div>\n    <\/div>`;\n  }\n\n  function customMarkup(item) {\n    const comp = state.custom[item.id];\n    const active = (state.weights[item.id] || 0) > 0;\n    const n = item.id === 'custom-a' ? 1 : 2;\n    const symbols = { sn: 'Sn', sb: 'Sb', as: 'As', cu: 'Cu', ag: 'Ag' };\n    const mini = ['sn', 'sb', 'as', 'cu', 'ag']\n      .map(\n        (key) => `<label class=\"lloy-mini\"><span class=\"lloy-mini__label\">${symbols[key]}<\/span>\n          <input type=\"text\" inputmode=\"decimal\" autocomplete=\"off\" data-comp=\"${item.id}:${key}\" value=\"${fmt(comp[key], 2)}\" aria-label=\"${key}\">\n        <\/label>`,\n      )\n      .join('');\n    return `<div class=\"lloy-custom${active ? ' is-active' : ''}\" data-id=\"${item.id}\">\n      <div class=\"lloy-custom__row\">\n        <div class=\"lloy-row__name\">\n          <span class=\"lloy-row__title\">${escapeHtml(t('customName', { n }))}<\/span>\n          <span class=\"lloy-row__chips\">${chipMarkup(compositionOf(comp))}<\/span>\n        <\/div>\n        <span class=\"lloy-row__bhn\"><b>${fmt(bhnFromComposition(comp.sn, comp.sb), 1)}<\/b><i>BHN<\/i><\/span>\n        <div class=\"lloy-row__weight\">${weightCell(item)}<\/div>\n        <div class=\"lloy-row__price\">${priceCell(item, unitWeight())}<\/div>\n      <\/div>\n      <div class=\"lloy-custom__edit\">\n        ${mini}\n        <span class=\"lloy-mini\"><span class=\"lloy-mini__label\">Pb<\/span><span class=\"lloy-mini__static\" data-pb=\"${item.id}\">${fmt(compositionOf(comp).pb, 2)}<\/span><\/span>\n        <span class=\"lloy-mini__note\">${escapeHtml(t('leadRest'))}<\/span>\n      <\/div>\n    <\/div>`;\n  }\n\n  function matchesQuery(item, query) {\n    if (!query) return true;\n    const haystack = [item.name, alloyName(state.lang, item.id, item.name)].join(' ').toLowerCase();\n    return haystack.includes(query);\n  }\n\n  function renderGroups() {\n    const groupsEl = byId('lloy-groups');\n    const query = state.query.trim().toLowerCase();\n    const groupKeys = { ratio: 'groupRatio', shot: 'groupShot', solder: 'groupSolder', type: 'groupType', scrap: 'groupScrap', custom: 'groupCustom' };\n    let html = '';\n    let visible = 0;\n    for (const group of GROUPS) {\n      const items = INGREDIENTS.filter((item) => item.group === group && matchesQuery(item, query));\n      if (!items.length) continue;\n      visible += items.length;\n      html += `<section class=\"lloy-group\" data-group=\"${group}\"><h3 class=\"lloy-group__title\">${escapeHtml(t(groupKeys[group]))}<\/h3><div class=\"lloy-group__rows\">`;\n      for (const item of items) html += item.custom ? customMarkup(item) : rowMarkup(item);\n      html += '<\/div><\/section>';\n    }\n    groupsEl.innerHTML = html;\n    byId('lloy-nomatch').hidden = visible > 0;\n    byId('lloy-nomatch').textContent = t('noMatch', { q: state.query.trim() });\n    byId('lloy-search-clear').hidden = !state.query;\n  }\n\n  function refreshCustomCard(id) {\n    const card = one(`.lloy-custom[data-id=\"${id}\"]`);\n    if (!card) return;\n    const comp = state.custom[id];\n    card.querySelector('.lloy-row__chips').innerHTML = chipMarkup(compositionOf(comp));\n    card.querySelector('.lloy-row__bhn b').textContent = fmt(bhnFromComposition(comp.sn, comp.sb), 1);\n    const pb = card.querySelector(`[data-pb=\"${id}\"]`);\n    if (pb) {\n      pb.textContent = fmt(compositionOf(comp).pb, 2);\n      pb.style.color = compositionOf(comp).pb < 0 ? '#b42318' : '';\n    }\n  }\n\n  \/* ----- rendering: results ----- *\/\n\n  function renderSummary() {\n    const current = mix.current;\n    const hasMix = current.totalLb > 0;\n    byId('lloy-total').textContent = hasMix ? weightText(current.totalLb) : '0';\n    byId('lloy-empty').hidden = hasMix;\n    byId('lloy-mix').hidden = !hasMix;\n\n    const warnSb = byId('lloy-warn-sb');\n    const warnOver = byId('lloy-warn-over');\n    const composition = { sn: current.sn, sb: current.sb, as: current.as, cu: current.cu, ag: current.ag, pb: current.pb };\n\n    if (!hasMix) {\n      byId('lloy-legend').innerHTML = '';\n      byId('lloy-bar').innerHTML = '';\n      byId('lloy-bhn').textContent = '\u2014';\n      byId('lloy-bhn-band').textContent = '\u2014';\n      byId('lloy-mb-weight').textContent = '0';\n      byId('lloy-mb-bhn').textContent = '\u2014';\n      byId('lloy-mb-cost').textContent = '\u2014';\n      warnSb.hidden = true;\n      warnOver.hidden = true;\n      byId('lloy-cost-total').textContent = '\u2014';\n      byId('lloy-unit-price').textContent = '\u2014';\n      byId('lloy-cost-each').textContent = '\u2014';\n      byId('lloy-packs').innerHTML = PACKS.map((n) => `<div class=\"lloy-pack\"><b>${fmt(n, 0)}<\/b><span>\u2014<\/span><\/div>`).join('');\n      byId('lloy-qty').textContent = '\u2014';\n      byId('lloy-qty-hint').hidden = false;\n      byId('lloy-warn-price').hidden = true;\n      return;\n    }\n\n    byId('lloy-bar').innerHTML = ELEMENTS.map((element) => {\n      const value = Math.max(0, current[element.key] || 0);\n      return value > 0.0001 ? `<span style=\"width:${value.toFixed(3)}%;background:${element.color}\"><\/span>` : '';\n    }).join('');\n    byId('lloy-bar').setAttribute(\n      'aria-label',\n      ELEMENTS.filter((element) => current[element.key] > 0.0001)\n        .map((element) => `${element.symbol} ${percent(current[element.key])}`)\n        .join(', '),\n    );\n\n    byId('lloy-legend').innerHTML = ELEMENTS.filter((element) => current[element.key] > 0.0001)\n      .map(\n        (element) =>\n          `<li><i style=\"--chip:${element.color}\"><\/i><b>${element.symbol}<\/b><span>${percent(current[element.key])}<\/span><\/li>`,\n      )\n      .join('');\n\n    byId('lloy-bhn').textContent = fmt(current.bhn, 1);\n    byId('lloy-bhn-band').textContent = t('bhnBands')[bhnBand(current.bhn)] || '';\n    const position = clamp(((current.bhn - 5) \/ 45) * 100, 2, 98);\n    byId('lloy-scale-marker').style.left = `${position}%`;\n\n    warnSb.hidden = !(current.sb > 6);\n    warnSb.textContent = t('warnSb');\n    warnOver.hidden = !(current.pb < -0.05);\n    warnOver.textContent = t('warnOver');\n\n    byId('lloy-mb-weight').textContent = weightText(current.totalLb);\n    byId('lloy-mb-bhn').textContent = fmt(current.bhn, 1);\n    byId('lloy-mb-cost').textContent = money(costPerBullet(state.bulletGrains, current.pricePerLb), 3);\n\n    byId('lloy-cost-total').textContent = money(current.cost);\n    byId('lloy-unit-price').textContent = money(current.pricePerLb);\n    const each = costPerBullet(state.bulletGrains, current.pricePerLb);\n    byId('lloy-cost-each').textContent = money(each, 3);\n    byId('lloy-packs').innerHTML = PACKS.map(\n      (n) => `<div class=\"lloy-pack\"><b>${fmt(n, 0)}<\/b><span>${money(each == null ? null : each * n)}<\/span><\/div>`,\n    ).join('');\n\n    const count = bulletCount(current.totalLb, state.bulletGrains);\n    byId('lloy-qty').textContent = count > 0 ? `${fmt(count, 0)} ${t('pcs')}` : '\u2014';\n    byId('lloy-qty-hint').hidden = count > 0;\n    byId('lloy-qty-hint').textContent = t('noQty');\n\n    const priceWarn = byId('lloy-warn-price');\n    priceWarn.hidden = !(current.unpricedLb > 0);\n    priceWarn.textContent = t('noPrice');\n  }\n\n  function syncBulletInput() {\n    byId('lloy-bw').value = state.bulletGrains > 0 ? bulletText(state.bulletGrains) : '';\n  }\n\n  function renderPressure() {\n    const target = bhnForCup(state.cup);\n    const out = byId('lloy-pressure-out');\n    if (!target) {\n      out.textContent = '';\n      return;\n    }\n    const text = t('pressureTarget', { bhn: fmt(target, 1), cup: fmt(state.cup, 0) });\n    const current = mix.current;\n    let note = '';\n    if (current.totalLb > 0 && current.bhn != null) {\n      const diff = current.bhn - target;\n      if (Math.abs(diff) <= 1.5) note = t('pressureMatch');\n      else note = diff > 0 ? t('pressureLow') : t('pressureHigh');\n    }\n    out.textContent = note ? `${text}. ${note}` : text;\n  }\n\n  function syncToggles() {\n    for (const button of all('#lloy-units button')) {\n      button.setAttribute('aria-pressed', String(button.dataset.units === state.units));\n    }\n    byId('lloy-prices').setAttribute('aria-pressed', String(state.showPrices));\n    byId('lloy-search').value = state.query;\n  }\n\n  function renderAll() {\n    locale = (LANGS.find((l) => l.code === state.lang) || LANGS[0]).locale;\n    formatCache.clear();\n    root.lang = state.lang;\n    syncUnitLabels();\n    applyStaticText();\n    renderLanguageSelect();\n    renderCurrencySelect();\n    syncToggles();\n    renderGroups();\n    mix.current = computeMix(entries());\n    renderSummary();\n    syncBulletInput();\n    renderPressure();\n    byId('lloy-cup').value = state.cup ? fmt(state.cup, 0) : '';\n    save();\n  }\n\n  function recalc() {\n    mix.current = computeMix(entries());\n    renderSummary();\n    renderPressure();\n    save();\n  }\n\n  \/* ----- events ----- *\/\n\n  byId('lloy-lang').addEventListener('change', (event) => {\n    state.lang = event.target.value;\n    if (!state.currencyExplicit) state.currency = (LANGS.find((l) => l.code === state.lang) || LANGS[0]).currency;\n    renderAll();\n  });\n\n  for (const button of all('#lloy-units button')) {\n    button.addEventListener('click', () => {\n      if (state.units === button.dataset.units) return;\n      state.units = button.dataset.units;\n      renderAll();\n    });\n  }\n\n  byId('lloy-currency').addEventListener('change', (event) => {\n    state.currency = event.target.value;\n    state.currencyExplicit = true;\n    renderSummary();\n    renderPressure();\n    save();\n  });\n\n  byId('lloy-search').addEventListener('input', (event) => {\n    state.query = event.target.value;\n    renderGroups();\n    byId('lloy-search-clear').hidden = !state.query;\n  });\n\n  byId('lloy-search-clear').addEventListener('click', () => {\n    state.query = '';\n    byId('lloy-search').value = '';\n    renderGroups();\n    byId('lloy-search').focus();\n  });\n\n  byId('lloy-prices').addEventListener('click', () => {\n    state.showPrices = !state.showPrices;\n    byId('lloy-prices').innerHTML = `<span>${escapeHtml(state.showPrices ? t('donePrices') : t('editPrices'))}<\/span>`;\n    byId('lloy-prices').setAttribute('aria-pressed', String(state.showPrices));\n    renderGroups();\n    save();\n  });\n\n  const groupsEl = byId('lloy-groups');\n\n  groupsEl.addEventListener('input', (event) => {\n    const target = event.target;\n    if (target.dataset.weight) {\n      const id = target.dataset.weight;\n      const value = parseNumber(target.value);\n      if (Number.isFinite(value) && value > 0) state.weights[id] = weightFromInput(value);\n      else delete state.weights[id];\n      const row = target.closest('.lloy-row, .lloy-custom');\n      if (row) row.classList.toggle('is-active', (state.weights[id] || 0) > 0);\n      recalc();\n      return;\n    }\n    if (target.dataset.price) {\n      const id = target.dataset.price;\n      const value = parseNumber(target.value);\n      if (Number.isFinite(value) && value >= 0) state.prices[id] = priceFromInput(value);\n      else delete state.prices[id];\n      recalc();\n      return;\n    }\n    if (target.dataset.comp) {\n      const [id, key] = target.dataset.comp.split(':');\n      const value = parseNumber(target.value);\n      state.custom[id][key] = Number.isFinite(value) ? clamp(value, 0, 100) : 0;\n      refreshCustomCard(id);\n      const row = target.closest('.lloy-custom');\n      if (row) row.classList.toggle('is-active', (state.weights[id] || 0) > 0);\n      recalc();\n    }\n  });\n\n  groupsEl.addEventListener('focusout', (event) => {\n    const target = event.target;\n    if (target.dataset.weight) {\n      const lb = state.weights[target.dataset.weight] || 0;\n      target.value = lb > 0 ? weightText(lb) : '';\n    } else if (target.dataset.price) {\n      const item = BY_ID[target.dataset.price];\n      if (item) {\n        const price = priceOf(item);\n        target.value = price == null ? '' : priceText(price);\n      }\n    } else if (target.dataset.comp) {\n      const [id, key] = target.dataset.comp.split(':');\n      target.value = fmt(state.custom[id][key], 2);\n    }\n  });\n\n  groupsEl.addEventListener('keydown', (event) => {\n    if (event.key !== 'Enter') return;\n    const target = event.target;\n    const selector = target.dataset.price ? '[data-price]' : target.dataset.comp ? '[data-comp]' : '[data-weight]';\n    if (!selector) return;\n    const fields = all(selector);\n    const index = fields.indexOf(target);\n    if (index >= 0) {\n      event.preventDefault();\n      (fields[index + 1] || fields[0]).focus();\n    }\n  });\n\n  const bulletInput = byId('lloy-bw');\n  bulletInput.addEventListener('input', () => {\n    const value = parseNumber(bulletInput.value);\n    state.bulletGrains = Number.isFinite(value) && value > 0 ? bulletFromInput(value) : 0;\n    recalc();\n  });\n  bulletInput.addEventListener('focusout', () => {\n    bulletInput.value = state.bulletGrains > 0 ? bulletText(state.bulletGrains) : '';\n  });\n\n  const cupInput = byId('lloy-cup');\n  cupInput.addEventListener('input', () => {\n    const value = parseNumber(cupInput.value);\n    state.cup = Number.isFinite(value) && value > 0 ? value : null;\n    renderPressure();\n    save();\n  });\n  cupInput.addEventListener('focusout', () => {\n    cupInput.value = state.cup ? fmt(state.cup, 0) : '';\n  });\n\n  byId('lloy-copy').addEventListener('click', async () => {\n    const url = shareUrl();\n    const ok = await copyText(url);\n    if (ok) {\n      setStatus(t('copied'));\n      history.replaceState(null, '', url);\n    } else {\n      try {\n        window.prompt(t('copyLink'), url);\n      } catch {\n        setStatus(t('copyLink'), true);\n      }\n    }\n  });\n\n  byId('lloy-csv').addEventListener('click', () => {\n    const current = mix.current;\n    const rows = [['Alloy', 'Sn %', 'Sb %', 'As %', 'Cu %', 'Ag %', 'Pb %', 'Weight (lb)', 'Price per lb', 'Cost']];\n    for (const item of INGREDIENTS) {\n      const lb = state.weights[item.id] || 0;\n      if (!(lb > 0)) continue;\n      const comp = compositionOf(compositionFor(item));\n      const price = priceOf(item);\n      rows.push([\n        nameOf(item),\n        comp.sn.toFixed(2),\n        comp.sb.toFixed(2),\n        comp.as.toFixed(2),\n        comp.cu.toFixed(2),\n        comp.pb.toFixed(2),\n        lb.toFixed(4),\n        price == null ? '' : price.toFixed(4),\n        price == null ? '' : (price * lb).toFixed(4),\n      ]);\n    }\n    rows.push([]);\n    rows.push(['Total weight (lb)', current.totalLb.toFixed(4)]);\n    rows.push(['Est. BHN', current.bhn == null ? '' : current.bhn.toFixed(2)]);\n    rows.push(['Price per lb', current.pricePerLb == null ? '' : current.pricePerLb.toFixed(4)]);\n    rows.push(['Bullet weight (grains)', state.bulletGrains.toFixed(2)]);\n    rows.push(['Cost per bullet', costPerBullet(state.bulletGrains, current.pricePerLb)?.toFixed(5) ?? '']);\n    rows.push(['Bullets', String(bulletCount(current.totalLb, state.bulletGrains))]);\n    const csv = rows.map((row) => row.map((cell) => (\/[\",\\n]\/.test(cell) ? `\"${String(cell).replace(\/\"\/g, '\"\"')}\"` : cell)).join(',')).join('\\r\\n');\n    const blob = new Blob(['\\ufeff' + csv], { type: 'text\/csv;charset=utf-8' });\n    const link = document.createElement('a');\n    link.href = URL.createObjectURL(blob);\n    link.download = 'lead-alloy-mix.csv';\n    document.body.appendChild(link);\n    link.click();\n    document.body.removeChild(link);\n    setTimeout(() => URL.revokeObjectURL(link.href), 2000);\n  });\n\n  byId('lloy-print').addEventListener('click', () => window.print());\n\n  byId('lloy-reset').addEventListener('click', () => {\n    if (!confirm(t('resetConfirm'))) return;\n    state.weights = {};\n    state.custom = {\n      'custom-a': { sn: 0, sb: 0, as: 0, cu: 0, ag: 0 },\n      'custom-b': { sn: 0, sb: 0, as: 0, cu: 0, ag: 0 },\n    };\n    state.cup = null;\n    byId('lloy-cup').value = '';\n    renderAll();\n  });\n\n  \/\/ Keep the URL in sync when a shared link is opened and then edited.\n  window.addEventListener('hashchange', () => {\n    const patch = readHashState();\n    if (!patch) return;\n    \/\/ A fresh link replaces the current mix.\n    state.weights = {};\n    state.prices = {};\n    state.custom = {\n      'custom-a': { sn: 0, sb: 0, as: 0, cu: 0, ag: 0 },\n      'custom-b': { sn: 0, sb: 0, as: 0, cu: 0, ag: 0 },\n    };\n    const custom = {};\n    for (const id of ['custom-a', 'custom-b']) {\n      const values = patch.c && patch.c[id];\n      if (Array.isArray(values)) custom[id] = { sn: values[0], sb: values[1], as: values[2], cu: values[3], ag: values[4] };\n    }\n    mergeState(state, {\n      lang: patch.l,\n      units: patch.u === 1 ? 'metric' : 'imperial',\n      bulletGrains: patch.b,\n      currency: patch.k,\n      cup: patch.q,\n      weights: patch.w,\n      prices: patch.p,\n      custom,\n    });\n    state.currencyExplicit = Boolean(patch.k);\n    renderAll();\n  });\n\n  \/* ----- start ----- *\/\n\n  renderAll();\n}\n\nif (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', boot);\nelse boot();\n\n})();\n\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4700ad3 e-con e-atomic-element e-div-block-base e-default-div \" data-id=\"4700ad3\" data-element_type=\"e-div-block\" data-e-type=\"e-div-block\" data-interaction-id=\"4700ad3\">\n    \n<\/div>\n\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>MP MP Molds \u00a1Bienvenido a nuestro calculador de aleaciones de chivato! \u00a1Tu recurso definitivo para comprender y formular mezclas de aleaciones de chivato adaptadas a tus necesidades espec\u00edficas! Aqu\u00ed descubrir\u00e1s c\u00f3mo crear la aleaci\u00f3n perfecta, ya seas un experimentado aficionado a la fabricaci\u00f3n de chivatos o reci\u00e9n est\u00e9s comenzando tu camino en la fabricaci\u00f3n de chivatos. Nuestra herramienta proporciona formulaciones precisas, asegurando que logres la dureza y el rendimiento deseados para tus municiones. Vamos a profundizar en los detalles de las aleaciones de chivato y sus aplicaciones. 0 lb \u2014 BHN \u2014 Conociendo las aleaciones de chivato Importantes notas sobre los aleaciones de chumbo para balas Aplicaci\u00f3n de la presi\u00f3n seg\u00fan la norma CUP: Las mediciones de CUP (Unidades de presi\u00f3n en cobre) son cruciales para comprender c\u00f3mo funcionar\u00e1 su aleaci\u00f3n bajo presi\u00f3n. &nbsp;<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-fullwidth.php","meta":{"footnotes":""},"class_list":["post-60293","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.mp-molds.com\/es\/wp-json\/wp\/v2\/pages\/60293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mp-molds.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.mp-molds.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.mp-molds.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mp-molds.com\/es\/wp-json\/wp\/v2\/comments?post=60293"}],"version-history":[{"count":8,"href":"https:\/\/www.mp-molds.com\/es\/wp-json\/wp\/v2\/pages\/60293\/revisions"}],"predecessor-version":[{"id":60303,"href":"https:\/\/www.mp-molds.com\/es\/wp-json\/wp\/v2\/pages\/60293\/revisions\/60303"}],"wp:attachment":[{"href":"https:\/\/www.mp-molds.com\/es\/wp-json\/wp\/v2\/media?parent=60293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}