.shoppingbox{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:14px 0;border-block:1px solid var(--fine);margin:12px 0}.shoppingbox label,.shoppingbox select,.shoprecipe label,.shoppingbox a{font-size:12px}.shoppingbox a{color:var(--gold)}.shoppingbox small{color:var(--gold);flex-basis:100%}.shoppingbox input,.shoprecipe input,.shoppingbox select,.shopping textarea{background:#25231e;border:1px solid #6c6050;color:var(--pale);border-radius:5px;padding:7px}.shoppingbox input,.shoprecipe input{width:55px}.shoppingbox .secondary{min-height:42px;font-size:1rem}.shoprow,.shoprecipe{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--fine);padding:9px 0}.shoprow label{min-height:45px;display:flex;align-items:center;gap:13px;flex:1;cursor:pointer}.shoprow input{width:22px;height:22px;flex:none;accent-color:var(--gold)}.shoprow small{display:block;font-size:12px;color:#c7bba7}.shoprow strong{font-weight:600;font-size:15px}.shoprow.bought strong{text-decoration:line-through;color:var(--muted)}.shoprow button,.shoprecipe button{font-size:22px;min-width:44px;min-height:44px;color:#c7ac8b}.shoprecipe{justify-content:flex-start}.shoprecipe label{margin-left:auto}.shopitems{margin:12px 0 20px}.shopping textarea{display:block;width:100%;min-height:140px}.shopping [hidden]{display:none}
.shopvariants{flex-basis:100%;font-size:1rem;color:#d5c0a4}.shopvariants summary{cursor:pointer}.shopvariants label{display:block;padding-top:7px}.shopvariants select{display:block;max-width:100%;width:100%;margin:4px 0}
.shoppingbox .shopvariants :is(label,select) {font-size:inherit;}

.recipe-portions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin:14px 0 18px; color:var(--pale) }
.recipe-portions:empty { display:none }
.portion-title {font-size:15px; font-weight:600}
.portion-options {display:inline-flex; align-items:center; border:1px solid var(--rule,#665844); border-radius:5px; overflow:hidden}
.portion-options button {font:inherit; font-size:1rem; min-width:44px; min-height:44px; padding:0 12px; color:var(--pale); border:0; background:transparent; cursor:pointer}
.portion-options button + button {border-left:1px solid var(--rule,#665844)}
.portion-options button[aria-pressed="true"] {background:#e7c99d; color:#282119; font-weight:700}
.portion-options button:focus-visible {outline:2px solid var(--gold); outline-offset:-3px}
.portion-custom {display:inline-flex; align-items:center; gap:8px; font-size:13px}
.portion-custom input {color:var(--pale); background:#25231e; border:1px solid #766953; padding:7px; min-height:42px; width:65px; border-radius:4px}
.recipe-portions [hidden], .portion-note[hidden] {display:none}
.portion-note {font-size:15px; color:var(--pale); padding-left:12px; border-left:2px solid var(--gold)}
.shop-context {color:var(--muted); font-size:var(--label-size, .9375rem)}
.shop-warning {flex-basis:100%; margin:5px 0}
.shop-warning[hidden] {display:none}

.recipeheadbuttons .recipe-pdf-shortcut {display:inline-flex;align-items:center;min-height:44px;padding:8px 10px;font:550 1rem/1.35 var(--sans);color:var(--pale);text-decoration:none;}
.recipeheadbuttons .recipe-pdf-shortcut:hover {color:#edca9e;}
.recipe-pdf-feedback:empty {display:none;}
.recipe-pdf-feedback:not(:empty) {order:10;flex-basis:100%;font-size:.875rem;}

/* The shopping checklist is the main reading column. Quantities stay with each product. */
.atlas-tool #shoplist {width:100%;max-width:1100px}
#shoplist .shop-layout {display:grid;grid-template-columns:minmax(0,1.75fr) minmax(230px,1fr);gap:clamp(28px,5vw,80px);align-items:start}
#shoplist .shop-groceries,#shoplist .shop-plan,#shoplist .shop-product {min-width:0}
#shoplist h2 {margin:0;font:500 clamp(1.5rem,2.8vw,2.05rem)/1.15 var(--ser);letter-spacing:-.024em}
#shoplist h2 span {margin-inline-start:.3em;color:var(--gold);font:500 .65em/1 var(--sans);vertical-align:.08em;font-variant-numeric:tabular-nums}
#shoplist .shop-group-head {display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:6px 14px}
#shoplist button,#shoplist summary,#shoplist .shop-catalog-link,#shoplist .shop-jump {min-height:44px;min-width:44px;font:550 1rem/1.3 var(--sans);text-decoration:none;cursor:pointer}
#shoplist button {padding:8px 12px;border:0;border-radius:6px;color:var(--gold)}
#shoplist .shop-copy,#shoplist .shop-catalog-link {background:#e5c79e;color:#271e17;padding:10px 16px;font-weight:650}
#shoplist .shop-catalog-link {display:inline-flex;align-items:center;border-radius:6px}
#shoplist .shop-jump {display:none;align-items:center;color:var(--gold)}
#shoplist .shoprow {padding:10px 0;gap:8px;border:0}
#shoplist .shoprow + .shoprow {border-top:1px solid var(--fine)}
#shoplist .shoprow label {min-width:0;gap:12px}
#shoplist .shoprow input {margin:0;width:23px;height:23px}
#shoplist .shop-product {display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px;overflow-wrap:anywhere}
#shoplist .shop-product strong {font:600 1.04rem/1.35 var(--sans)}
#shoplist .shop-product .shop-quantity {font:550 1rem/1.35 var(--sans);font-variant-numeric:tabular-nums;color:var(--gold)}
#shoplist .shop-product small {flex-basis:100%;color:var(--muted);font:400 var(--label-size, .9375rem)/1.45 var(--sans)}
#shoplist .shoprow button,#shoplist .shop-plan-line>[data-rem] {font-size:1rem;color:var(--muted);background:transparent}
#shoplist .shoprow button:hover,#shoplist .shop-plan-line>[data-rem]:hover,#shoplist .shop-jump:hover {color:var(--pale)}
#shoplist .shopitems {margin:6px 0 0}
#shoplist [data-bought-section] {margin-top:30px}
#shoplist .shoprow.bought .shop-quantity {color:var(--muted)}
#shoplist .shop-plan {padding:clamp(16px,2.6vw,32px);background:#25211c;border-radius:9px}
#shoplist .shop-plan>p,#shoplist .shop-notes dd,#shoplist .shop-storage {font:400 1rem/1.55 var(--sans);color:var(--muted)}
#shoplist .shop-plan>p {margin:9px 0 20px}
#shoplist .shoprecipe {display:block;padding:0;border:0}
#shoplist .shoprecipe + .shoprecipe {margin-top:22px}
#shoplist .shoprecipe>strong {display:block;font:600 1rem/1.4 var(--sans)}
#shoplist .shop-plan-line {display:flex;align-items:center;justify-content:space-between;gap:5px 9px;flex-wrap:wrap;margin-top:7px}
#shoplist .shop-stepper {display:inline-flex;align-items:center;border-radius:6px;background:#322b23}
#shoplist .shop-stepper button,#shoplist .shop-stepper input {width:44px;height:44px;min-width:44px;min-height:44px;border:0;background:transparent;font:550 1.1rem/1 var(--sans);text-align:center;color:var(--pale)}
#shoplist .shop-stepper input {appearance:textfield;padding:0;border-radius:0;color:var(--gold);font-variant-numeric:tabular-nums}
#shoplist .shop-stepper input::-webkit-inner-spin-button,#shoplist .shop-stepper input::-webkit-outer-spin-button {appearance:none;margin:0}
#shoplist .shop-stepper button[aria-disabled=true] {color:#b3a797}
#shoplist [data-restore] {margin-top:16px;text-align:start}
#shoplist .shop-feedback {min-height:1.4em;color:var(--gold);font:500 1rem/1.4 var(--sans);margin:6px 0 0}
#shoplist .shop-empty {margin:10px 0 14px}
#shoplist .shop-notes {max-width:65ch;margin-top:24px}
#shoplist .shop-notes summary {display:flex;align-items:center;list-style:none;color:var(--gold)}
#shoplist .shop-notes summary::-webkit-details-marker {display:none}
#shoplist .shop-notes dt {font-weight:600}
#shoplist .shop-notes dd {margin:4px 0 16px}
#shoplist .shop-storage {margin:22px 0 0}
#shoplist [hidden] {display:none!important}
#shoplist :focus-visible {outline:2px solid var(--gold);outline-offset:2px}
@media(max-width:760px){
  #shoplist .shop-layout {grid-template-columns:minmax(0,1fr);gap:30px}
  #shoplist .shop-jump:not([hidden]) {display:inline-flex}
}
@media(max-width:390px){
  #shoplist .shoprow {gap:2px}
  #shoplist .shoprow label {gap:9px}
  #shoplist .shoprow button {padding-inline:7px}
}
/* Keep the path from a recipe into its basket finger-sized on a compact screen. */
.shoppingbox [data-shop-open],.shoppingbox .shopvariants summary {display:inline-flex;align-items:center;min-height:44px}
.shoppingbox.shop-action-box [data-shop-open] {min-height:44px;font:550 1rem/1.35 var(--sans)}
@media(max-width:600px){
  .shop-action-box > [data-shop-scope-reset] {grid-column:1/-1;grid-row:2;justify-self:end;}
  .shoppingbox.shop-action-box > :is(.secondary,.paperlink) {grid-row:3;}
}
@media (max-width:480px) {
  .shoppingbox.shop-action-box {grid-template-columns:repeat(4,minmax(0,1fr));}
  .shop-action-box > [data-shop-scope] {grid-column:2 / -1;}
  .shoppingbox.shop-action-box > .secondary {grid-column:1 / span 2;}
  .shoppingbox.shop-action-box > .paperlink {grid-column:3 / -1;}
  .shop-action-box > .shop-warning {grid-column:1 / -1;}
}
@media(max-width:760px){
  #shoplist .shop-group-head {display:grid;grid-template-columns:auto 1fr;justify-items:start;gap:8px 12px}
  #shoplist .shop-jump {justify-self:end}
  #shoplist .shop-copy {grid-column:1/-1}
}
.shelf-purchase {min-width:0;margin:18px 0 0;padding:14px 0 2px;border-top:1px solid var(--fine);font:400 1rem/1.5 var(--sans);}
.shelf-purchase h3,.shop-future h3 {margin:0 0 6px;font:550 1.1rem/1.4 var(--sans);color:var(--pale);}
.shelf-purchase p,.shop-future p {margin:0 0 5px;}
.shelf-purchase a,.shelf-purchase button,.shop-future a,.formula-shop a {color:var(--gold);}
.shelf-purchase button,.formula-shop button,.ingredient-buy {font:550 1rem/1.3 var(--sans);min-height:44px;padding:6px 12px;border:1px solid var(--fine);border-radius:5px;background:transparent;color:var(--pale);}
.shelf-purchase button,.shelf-purchase>a {display:inline-flex;align-items:center;margin-top:6px;}
.shelf-unlocks,.shop-future {overflow-wrap:anywhere;}
.shelf-unlocks details,.shop-future details {margin:4px 0;}
.cover-after .shelf-purchase {margin:4px 0 0;padding:9px 0 0;line-height:1.4;}
.cover-after .shelf-purchase h3 {margin:0 0 3px;font:550 1rem/1.4 var(--sans);}
.cover-after .shelf-purchase p {margin:0;}
.cover-after .shelf-purchase :is(button,a,summary) {min-height:44px;}
.cover-after .shelf-purchase :is(a,summary) {display:inline-flex;align-items:center;}
.cover-after .shelf-purchase > :is(a,button) {margin:1px 0 0;}
.cover-after .shelf-purchase .shelf-unlocks details {margin:0;}
@media(min-width:901px) {
  .cover-after .shelf-purchase {margin:0;padding:0;border-top:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;justify-items:start;column-gap:16px;}
  .cover-after .shelf-purchase :is(h3,p,[role=status]) {grid-column:1/-1;}
  .cover-after .shelf-purchase > :is(a,button) {grid-area:3/1;}
  .cover-after .shelf-purchase .shelf-unlocks {grid-area:3/2;}
}

.formula-shop {display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;margin:8px 0;}
.recipe-shelf-summary {margin-top:12px;}
.recipe-shelf-summary p {margin:0;}
.recipe-shelf-summary[hidden],.recipe-shelf-summary button[hidden] {display:none;}
.formula-shop-status:not(:empty) {display:block;flex-basis:100%;color:var(--gold);}
.recipe-formula .ingredient-buy {display:block;border:0;padding:0;font-size:1rem;color:var(--gold);}
.shop-future {margin:28px 0 0;}
.shop-future h3 {margin-top:15px;}

/* In the shop the entire label checks an item. The chevron opens its recipe and buying notes. */
.shop-progress {display:block;width:min(18rem,85%);height:5px;margin:0;border:0;border-radius:9px;overflow:hidden;appearance:none;background:#594b3f;color:#e1b77f;}
.shop-progress::-webkit-progress-bar {background:#594b3f;}
.shop-progress::-webkit-progress-value {background:#e1b77f;}
.shop-progress::-moz-progress-bar {background:#e1b77f;}
.shop-progress[hidden] {display:none;}
#shoplist .shop-groceries {min-width:0;}
#shoplist .shop-group-head {display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;}
#shoplist [data-shop-clear] {margin-inline-start:auto;border:1px solid #85725d;background:transparent;color:var(--pale);}
#shoplist [data-shop-clear]:hover {border-color:var(--gold);color:var(--gold);}
#shoplist .shop-focusbar {position:sticky;z-index:3;top:var(--mast-height,64px);background:var(--bg);}
#shoplist .shop-focusbar:has(.shop-views:not([hidden]),[data-shop-status]:not(:empty),[data-undo]:not([hidden])) {padding:4px 0 var(--shop-bar-padding-end,10px);}
#shoplist .shop-views {display:inline-flex;max-width:100%;padding:3px;gap:3px;border:1px solid #665644;border-radius:7px;background:#241f1a;}
#shoplist .shop-views button {display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:8px 16px;color:#dfcfb8;background:transparent;border-radius:4px;}
#shoplist .shop-views button[aria-pressed=true] {background:#e5c79e;color:#2c2116;}
#shoplist .shop-views button span {padding:2px 6px;min-width:1.55em;border-radius:4px;background:#382f25;font:600 .88rem/1.2 var(--sans);font-variant-numeric:tabular-nums;color:#f3dfc5;}
#shoplist .shop-views button[aria-pressed=true] span {color:#342719;background:#d5b58a;}
#shoplist .shop-feedback {display:flex;align-items:center;gap:4px 12px;min-height:0;margin:0;font:500 .94rem/1.35 var(--sans);overflow-wrap:anywhere;}
#shoplist .shop-feedback:has([data-shop-status]:not(:empty)) {padding-top:5px;}
#shoplist [data-undo] {font-weight:650;flex:none;margin-left:auto;text-decoration:none;}
#shoplist .shop-department {margin:22px 0;}
#shoplist .shop-department h3 {margin:0;padding:0 0 8px;color:#d6b58d;font:600 .96rem/1.45 var(--sans);}
#shoplist .shopitems {margin:0;}
#shoplist .shoprow {display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:0 6px;padding:2px 0;align-items:center;}
#shoplist .shoprow label {display:flex;gap:13px;align-items:center;min-height:54px;padding:5px 0;min-width:0;}
#shoplist .shoprow input {height:24px;width:24px;flex:none;cursor:pointer;}
#shoplist .shop-product {flex:1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:3px 14px;}
#shoplist .shop-product strong {font-size:1.06rem;}
#shoplist .shop-product .shop-quantity {font:550 1rem/1.35 var(--sans);max-width:14rem;color:#f0d6b1;text-align:end;}
#shoplist .shoprow.bought strong {text-decoration:none;color:#cabfb2;}
#shoplist .shoprow.bought .shop-quantity {color:#c5b7a5;}
#shoplist .shop-details-button {display:grid;place-content:center;width:44px;height:44px;color:var(--gold);}
#shoplist .shop-details-button span {
  width:13px;height:13px;
  background:linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,
             linear-gradient(currentColor,currentColor) center/2px 100% no-repeat;
}
#shoplist .shop-details-button[aria-expanded=true] span {background-size:100% 2px,0 0;}
@media(forced-colors:active){#shoplist .shop-details-button span{forced-color-adjust:none;color:ButtonText;}}
#shoplist .shop-details {grid-column:1/-1;margin:0 0 9px 37px;padding:5px 12px 2px;border-inline-start:2px solid #675541;color:#d2c6b7;font:400 .95rem/1.5 var(--sans);overflow-wrap:anywhere;}
#shoplist .shop-details p,#shoplist .shop-origins {margin:0 0 5px;padding:0;list-style:none;}
#shoplist .shop-origins a,#shoplist .shop-empty-actions a {color:var(--gold);}
#shoplist .shop-origins a:hover,#shoplist .shop-empty-actions a:hover {color:var(--pale);}
#shoplist .shop-details [data-skip] {margin-inline-start:-8px;padding:8px;color:#e4c8a8;}
#shoplist .shop-copy {margin-top:4px;}
#shoplist .shop-empty-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;}
#shoplist .shop-empty-actions a {display:inline-flex;align-items:center;min-height:44px;}
#shoplist .shop-empty-actions .shop-catalog-link {color:#281e17;}
#shoplist [data-bought],#shoplist [data-details] {scroll-margin-block:calc(var(--mast-height,64px) + 120px) 24px;}
@media(max-width:960px){
  #shoplist .shop-layout {grid-template-columns:minmax(0,1fr);}
  #shoplist .shop-jump:not([hidden]) {display:inline-flex;justify-self:end;}
}
@media(max-width:570px){
  #shoplist .shop-group-head {display:grid;grid-template-columns:minmax(0,1fr) auto;padding-bottom:4px;}
  #shoplist .shop-group-head .shop-jump {grid-column:1/-1;justify-self:start;}
  #shoplist .shop-focusbar {--shop-bar-padding-end:7px;}
  #shoplist .shop-views {display:flex;}
  #shoplist .shop-views button {flex:1;padding-inline:8px;}
  #shoplist .shop-product {grid-template-columns:minmax(0,1fr);gap:2px;}
  #shoplist .shop-product .shop-quantity {max-width:none;text-align:start;}
  #shoplist .shop-department {margin:19px 0;}
  #shoplist .shoprow label {min-height:60px;gap:12px;}
}

.atlas-tool #shoplist {max-width:1320px;margin-inline:auto;}
#shoplist .shop-controls {display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;}
#shoplist .shop-controls .shop-copy {display:inline-flex;align-items:center;justify-content:center;gap:8px;margin:0;margin-inline-start:auto;background:transparent;color:var(--gold);padding:8px 6px;}
#shoplist .shop-copy-icon {width:12px;height:14px;border:1.5px solid currentColor;border-radius:2px;position:relative;}
#shoplist .shop-copy-icon::before {content:"";position:absolute;left:-5px;top:-5px;width:9px;height:10px;border:solid currentColor;border-width:1.5px 0 0 1.5px;border-radius:2px 0 0;}
#shoplist .shoprecipe>strong small {display:block;color:var(--muted);font:400 .92rem/1.45 var(--sans);margin-block-start:2px;}
#shoplist [data-copy-text] {margin-top:10px;font:400 1rem/1.45 var(--sans);}
@media(max-width:570px){
  #shoplist .shop-controls {gap:4px 6px;}
  #shoplist .shop-views {flex:1 1 auto;}
  #shoplist .shop-controls .shop-copy {gap:6px;padding-inline:5px;}
  #shoplist .shop-views button {gap:6px;}
}

.formula-shop > a {display:inline-flex;align-items:center;min-height:44px;padding-inline:8px;}

.shop-action-box .shop-batch-choice,.shop-action-box .shop-batch-count {grid-column:1/-1;flex-basis:100%;max-width:100%;min-width:0}
.shop-action-box .shop-batch-choice select,.shop-action-box .shop-batch-count input {display:block;margin-top:4px;min-height:44px;max-width:100%;font-size:1rem}
.shop-action-box .shop-batch-count[hidden] {display:none}
@media(max-width:600px){.shoppingbox.with-batch-choices > :is(.secondary,.paperlink){grid-row:auto}}
@media(max-width:600px){
  .shoppingbox.with-batch-choices > label.shop-batch-choice,.shoppingbox.with-batch-choices > label.shop-batch-count {display:block;grid-column:1/-1;width:100%}
  .shoppingbox.with-batch-choices > .shop-batch-choice select {display:block;width:100%;max-width:100%;box-sizing:border-box}
  .shoppingbox.with-batch-choices > .shop-batch-count[hidden] {display:none}
}
