/* Deal cards with fixed slots, DEAL_SLOTS_ON (deal_slots.py): Design's slots.css (scratch/design/deals-slots-20261117) and the votes line of
   homedeals-20261117/hv.css, on deals-v3.css. Every v3 card has the same 11 slots; on 641px and up the cards in a row share the row heights
   (subgrid). An empty slot keeps its place; only the tag line keeps its height (1.5em). Corners 6px at most, solid lines only. */
.d3-slots .d3-scores{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0 0 6px;font-size:13px;color:var(--muted)}
.d3-slots .d3-scores:empty{margin:0}
.d3-slots .d3-scores .rating{display:flex;align-items:center;gap:4px;min-height:24px}
.d3-slots .d3-scores .card-rating{display:inline-flex;align-items:center;gap:4px;min-height:24px;color:inherit;text-decoration:none}
.d3-slots .d3-scores .evidence{display:inline-flex;align-items:center;gap:4px;min-height:24px;font-size:12px;color:var(--ink);text-decoration:none}
.d3-slots .d3-scores .evidence svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
.d3-slots .d3-scores a:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.d3-slots .d3-scores a:hover{text-decoration:underline}}
@media (pointer:coarse) and (min-width:641px){.d3-slots .d3-scores .card-rating,.d3-slots .d3-scores .evidence{min-height:44px}}
.d3-slots .d3-slot-price{min-width:0}
.d3-slots .d3-slot-tag{min-height:1.5em;margin:6px 0 0}
.d3-slots .d3-slot-tag>p:first-child{margin-top:0}
.d3-slots p.d3-slot-line{margin:2px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
.d3-slots p.d3-slot-line span.d3-line{display:block;overflow-wrap:anywhere}
.d3-slots p.d3-slot-line span.bf-sale{color:var(--ink);font-weight:700}
.d3-slots .d3-slot-alt:empty{margin:0;padding:0;border:0}
.d3-slots .d3-slot-go:empty{margin:8px 0 0}  /* where a posted deal has no store row: the row's own top margin, so the next slots line up */
.d3-slots .d3-slot-ck:empty{margin:4px 0 0}
.d3-slots .d3-vote b{min-width:1ch;margin-left:3px;font-weight:600;color:var(--ink)}
.d3-slots .d3-foot{margin-top:10px}
@media (min-width:641px){
  .d3-grid:has(>.d3-slots){row-gap:0}
  .d3-slots{display:grid;grid-template-rows:subgrid;grid-row:span 11;row-gap:0;align-content:start;margin-bottom:14px}
  .d3-slots>.d3-foot{align-self:end}
  .d3-slots>.d3-go{align-self:start}
}
@media (max-width:640px){
  /* list rows: the tag line keeps its space, so price, store and votes sit at the same place in every row */
  .d3-slots .d3-scores,.d3-slots .d3-slot-price,.d3-slots .d3-slot-tag,.d3-slots .d3-slot-line,.d3-slots .d3-slot-alt,.d3-slots .d3-slot-go,.d3-slots .d3-slot-ck{grid-column:2}
  .d3-slots .d3-slot-price>p.d3-each{margin:2px 0 0}
  .d3-slots .d3-scores{margin:0 0 2px}
  /* Design 04:34Z, as the mock's 640 rule: the title two lines at most with no lines held, and the rating and Evidence compact lines (24 px targets,
     WCAG 2.2 AA), so a 2-line title meets its stars and the stars their Evidence with no gap; only the tag line keeps its space */
  .d3-slots .d3-name{-webkit-line-clamp:2;min-height:0}
  .d3-slots .d3-scores .rating,.d3-slots .d3-scores .card-rating,.d3-slots .d3-scores .evidence{min-height:24px}
  .d3-slots .d3-scores .rating{margin:0}
  .d3-slots .d3-foot{margin-top:2px}
}
/* the home row's tile: 7 slots; the votes line display only (the Deals page's thumbs as plain icons, muted, the counts in ink) */
.hs-slot .hs-tag{min-height:1.6em;margin:8px 0 0}
.hs-slot .hs-tag>p:first-child{margin-top:0}
.hs-slot .hs-dates>p{margin:4px 0 0}
.hs-slot .home-deal-price{margin:8px 0 0}
.hs-votes{display:flex;align-items:center;gap:12px;margin:6px 0 0;color:var(--muted)}
.hs-v{display:inline-flex;align-items:center;gap:4px}
.hs-v svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.hs-v b{font-weight:600;color:var(--ink)}
.hs-none{display:block}
.hs-slot .hs-go{align-self:start}  /* See deal at the top of its slot, so a Paid link line under one button never lifts it above its row */
.hs-slot .hs-go .home-deal-button{margin-top:12px}
@media (min-width:641px){
  ol.home-deals:has(>.hs-slot){row-gap:0}
  .home-deal.hs-slot{display:grid;grid-template-rows:subgrid;grid-row:span 7;row-gap:0;align-content:start;margin-bottom:16px}
}
