/* /deals Best value, DEALS_BEST_VALUE_ON (deals_value.py): Design's dv.css (scratch/design/dealsvalue-20261117, option A improved, v4/v5) on the v3
   cards. The 44 px two-way switch, the order line, the 44 px category links, a section per category (four across from 1024 px; on phones the
   list rows of the rest of /deals, stacked, Design 04:34Z), the unit price leading the price slot. Corners 6px at most. */
.dv-seg{display:inline-flex;margin:4px 0 8px;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--surface)}
.dv-seg a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;font-weight:600;color:var(--muted);text-decoration:none}
.dv-seg a+a{border-left:1px solid var(--line)}
.dv-seg a[aria-current=page]{background:var(--ink);color:var(--surface)}
.dv-seg a:focus-visible{outline:2px solid var(--focus);outline-offset:-3px}
@media (hover:hover) and (pointer:fine){.dv-seg a:not([aria-current]):hover{color:var(--ink);background:var(--surface-tint)}}
.dv-order{margin:0 0 14px;color:var(--muted);max-width:760px}
.dv-jump{display:flex;flex-wrap:wrap;gap:0 18px;margin:0 0 14px}
.dv-jump a,.dv-more{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line)}
.dv-jump a:focus-visible,.dv-more:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@media (hover:hover){.dv-jump a:hover,.dv-more:hover{text-decoration-color:currentColor}}
.dv-sec{margin:0 0 26px;scroll-margin-top:12px}
.dv-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin:0 0 10px}
.dv-h h2{margin:0;font-size:20px}
.dv-h p{margin:0;color:var(--muted)}
.dv-more{margin-top:6px}
.dv-sec .d3-src span{font-weight:700;color:var(--ink)}
/* the unit price leads the price slot; the total beside it, the basis under */
.d3 .dv-p{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px}
.d3 .dv-unit{font-size:13px;color:var(--muted)}
.d3 .dv-unit b{font-size:22px;font-weight:700;letter-spacing:-.01em;font-variant-numeric:tabular-nums;color:var(--ink)}
.d3 .dv-p b.dv-price{font-size:15px;font-weight:600;letter-spacing:0;color:var(--ink)}
.d3 .dv-basis{flex-basis:100%;font-size:12px;color:var(--muted)}
@media (min-width:1024px){.dv-grid.d3-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Design 06:02Z: the slotted cards (DEAL_SLOTS_ON) line up across a row by the subgrid, so from 641 px a title keeps no 3-line reserve of its own:
   the rows between the title and the price close up to the row's longest title */
@media (min-width:641px){.dv-sec .d3-slots .d3-name{min-height:0}}
@media (max-width:640px){
  .dv-seg{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .dv-jump{gap:0 14px}
  /* the list rows of the rest of /deals, stacked; the rank line kept, above the title */
  .dv-sec .d3:not(.d3-mem) .d3-src{display:flex;justify-content:space-between;gap:8px;grid-column:2;margin:0 0 4px;font-size:12px}
}
/* a price that isn't a deal: its foot slot kept for the row's line-up, drawing nothing (Design 19:19Z Nov 18) */
.d3 .d3-foot.dv-foot-empty,.d3-slots .d3-foot.dv-foot-empty{margin:0;padding:0;border:0;min-height:0}  /* starts where its row starts, as a vote foot (the row's tallest) does; draws nothing */
/* phones: it keeps the deal foot's band (margin-top 2 + padding-top 2, 44 px of buttons) as margin and height only, so the save button, at the card's
   bottom right, sits where it does on a deal card and never over the store button (Design 21:51Z) */
@media (max-width:640px){.d3 .d3-foot.dv-foot-empty,.d3-slots .d3-foot.dv-foot-empty{margin-top:4px;min-height:44px}}
/* AMAZON_SHELVES_ON (Design 08:51Z): an Amazon price's stamp in the price line wraps as its own line, and no slot widens the card's column */
.d3 .dv-p .amazon-price-stamp{display:block;flex-basis:100%;min-width:0;margin:4px 0 0;font-size:12px;line-height:1.35;font-weight:400;color:var(--muted);white-space:normal}
.dv-grid .d3.deal-card>*{min-width:0}
