/* Progressive sauce batch setup and directly editable calculation results. */
.sauce-batch-page{padding:12px 0 8px;overflow-anchor:none}
.batch-page-heading{text-align:center;margin:0 auto 24px;max-width:700px;scroll-margin-top:16px}
.batch-page-heading h1{font:700 34px/1.14 Georgia,serif;letter-spacing:-.025em;margin:8px 0 10px;overflow-wrap:anywhere}
.batch-page-heading>p{color:var(--muted);font-size:14px;max-width:52ch;margin:0 auto;line-height:1.65}
.batch-setup{width:100%;max-width:700px;margin:auto;padding:28px 30px}
.batch-context{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:20px}
.batch-context h2{font:700 25px/1.2 Georgia,serif;margin:0;overflow-wrap:anywhere}
.batch-context p{font-size:12px;color:var(--muted);margin:5px 0 0}
.batch-step-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);margin-bottom:18px}
.batch-step-dots{display:flex;gap:5px}.batch-step-dots span{width:19px;height:3px;border-radius:4px;background:var(--sage)}.batch-step-dots .passed{background:var(--accent2)}
.batch-setup .batch-step-heading{font:700 24px/1.2 Georgia,serif;margin:0 0 10px;outline:none}
.batch-explanation{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 20px;max-width:58ch}
.batch-choices{display:grid;gap:10px}
.batch-choice{display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;padding:17px 18px;min-width:0;background:var(--panel)}
.batch-choice strong{display:block;font-size:17px;line-height:1.3;font-weight:650;overflow-wrap:anywhere}
.batch-choice small{display:block;margin-top:5px;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5}
.batch-chevron{flex:none;font-size:21px;color:var(--muted);font-weight:400}
.batch-choice[aria-pressed=true]{border-color:var(--accent2);background:var(--sage)}.batch-choice[aria-pressed=true] .batch-chevron{color:var(--accent2)}
.batch-choice-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.batch-choice-pair .batch-choice{align-items:start;min-height:132px}
.batch-entry-field{max-width:340px;margin-top:18px}.batch-entry-field label{font-size:13px}
.batch-number-unit{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.batch-number-unit input{font-size:23px;min-height:58px}.batch-number-unit>span{font-size:14px;color:var(--muted)}
.batch-field-hint{font-size:12px;color:var(--muted);line-height:1.65;margin:9px 0 0}
.batch-bottom-nav{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}
.batch-back{border-color:transparent;background:transparent;padding-left:0;font-size:13px;color:var(--muted)}
#batchContinue{min-width:130px}.batch-generate{padding:13px 24px;min-height:50px;min-width:180px;font-size:15px}
.batch-stage[data-motion=next]{animation:batch-forward .19s ease-out both}.batch-stage[data-motion=back]{animation:batch-backward .19s ease-out both}
@keyframes batch-forward{from{opacity:.45;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
@keyframes batch-backward{from{opacity:.45;transform:translateX(-12px)}to{opacity:1;transform:translateX(0)}}
.batch-results-layout{max-width:960px;margin:auto;min-width:0}.batch-results-layout>.card,.batch-results-layout>div>.card{padding:24px;margin-bottom:18px}
.batch-settings h2,.batch-calculated h2{font:700 25px Georgia,serif;margin:0 0 8px}
.batch-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.batch-settings-grid .field{margin:0;min-width:0}.batch-settings-grid input,.batch-settings-grid select{font-size:13px;min-height:42px}
.batch-settings-note{font-size:11px;color:var(--muted);margin:14px 0 0}
#calculatedBatchHeading{scroll-margin-top:16px;outline:none}
.batch-result-summary{display:flex;gap:24px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:14px 0 20px;margin-bottom:18px}.batch-result-summary>div{min-width:130px}.batch-result-summary span{display:block;font-size:11px;color:var(--muted);margin-bottom:3px}.batch-result-summary strong{font-size:25px;font-weight:650;font-variant-numeric:tabular-nums}
.batch-results-layout .batch-ingredient-table{display:table;width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;overflow:visible}.batch-ingredient-table th{font-size:11px;font-weight:600;text-transform:none;letter-spacing:0}.batch-ingredient-table td{padding:11px 6px;vertical-align:middle;overflow-wrap:anywhere}.batch-ingredient-table th{padding:8px 6px}.batch-ingredient-table th:first-child,.batch-ingredient-table td:first-child{padding-left:0;width:42%}.batch-ingredient-table th:last-child,.batch-ingredient-table td:last-child{padding-right:0;width:25%}.batch-ingredient-table input{padding:7px 8px;max-width:110px;text-align:right;font-size:13px;margin-left:auto}.batch-ingredient-table td.num{font-variant-numeric:tabular-nums}.batch-extra-salt{font-weight:600}
.batch-calculation-note{font-size:11px;color:var(--muted);line-height:1.65;margin:14px 0 0}.batch-print-row{display:flex;justify-content:center;margin-top:24px}.batch-print-row button{min-width:220px}
@media(max-width:800px){.batch-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 .sauce-batch-page{padding-top:6px}.batch-page-heading h1{font-size:29px}.batch-page-heading>p{font-size:13px}
 .batch-setup{padding:22px 18px}.batch-context h2{font-size:23px}.batch-setup .batch-step-heading{font-size:23px}
 .batch-choice{padding:15px 13px}.batch-choice strong{font-size:16px}.batch-choice-pair{grid-template-columns:1fr}.batch-choice-pair .batch-choice{min-height:0}
 .batch-generate{min-width:0;padding:13px 17px}.batch-results-layout>.card,.batch-results-layout>div>.card{padding:20px 14px}
 .batch-settings-grid{grid-template-columns:1fr 1fr;gap:12px}.batch-settings-grid .field:first-child{grid-column:1/-1}
 .batch-settings-grid input,.batch-settings-grid select{font-size:16px}
 .batch-results-layout .batch-ingredient-table{font-size:12px}.batch-ingredient-table td{padding:10px 4px}.batch-ingredient-table th{padding:8px 4px;font-size:10px}.batch-ingredient-table th:first-child,.batch-ingredient-table td:first-child{width:36%}.batch-ingredient-table th:last-child,.batch-ingredient-table td:last-child{width:26%}.batch-ingredient-table input{padding:7px 5px;font-size:16px}
 .batch-result-summary{gap:20px}.batch-result-summary strong{font-size:23px}.batch-settings h2,.batch-calculated h2{font-size:24px}
}
@media(max-width:360px){.batch-settings-grid{grid-template-columns:1fr}.batch-bottom-nav{gap:6px}.batch-back{padding-right:4px}}
@media(prefers-reduced-motion:reduce){.batch-stage{animation:none!important}}

/* Ferment setup shares the sauce creator controls and transitions. */
#fermentCalculatedHeading{scroll-margin-top:16px;outline:none}
.ferment-batch-page .batch-ingredient-table th:last-child,.ferment-batch-page .batch-ingredient-table td:last-child{width:36%}
.spoon-estimate{display:block;font-size:11px;line-height:1.4;margin-top:4px;color:var(--muted,#5e665b);font-weight:400;white-space:normal;overflow-wrap:anywhere}
.batch-ingredient-table tr:has(+.spoon-estimate-row)>td{border-bottom:0;padding-bottom:3px}
.batch-ingredient-table .spoon-estimate-row>td{padding:0 0 10px;width:auto!important;text-align:left}
.spoon-estimate-row .spoon-estimate{margin-top:0;overflow-wrap:normal}
.batch-ingredient-table .spoon-estimate-row>.spoon-estimate-cell{padding-left:4px;text-align:left}
.batch-ingredient-table .spoon-estimate-row>.spoon-estimate-cell[colspan="1"],.spoon-estimate-cell[colspan="1"]{text-align:right}
.batch-category-row>th{padding:15px 0 6px;text-align:left;text-transform:none;letter-spacing:0;font-weight:700;font-size:13px;border-bottom:1px solid var(--line);color:var(--ink)}
.batch-ingredient-row>td{border-bottom:1px solid var(--line)}
.batch-ingredient-table [data-mass-output]{white-space:nowrap}
.batch-category-row+tr>td{padding-top:10px}
@media print{
 #printSheet table{display:table;width:100%;table-layout:auto;overflow:visible;border-collapse:collapse}
 #printSheet tr{display:table-row;break-inside:avoid}
 #printSheet td,#printSheet th{display:table-cell}
 #printSheet .batch-category-row{break-after:avoid}
 #printSheet .batch-category-row>th{padding:4mm 2mm 2mm;font-weight:700;font-size:11pt;color:#111;text-align:left;border-top:1.2pt solid #555;border-bottom:0}
 #printSheet .batch-ingredient-row>td{padding:3mm 2mm;border-bottom:.6pt solid #aaa}
 #printSheet .spoon-estimate{font-size:9pt;line-height:1.35;color:#444}
 #printSheet td.num{min-width:35mm}
}
