.d3-top{margin:8px 0 28px}
.d3-top-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0 0 12px}
.d3-top-head h2{margin:0}
.d3-top-head p{margin:0;font-size:14px;color:var(--muted)}
.deal-card[data-amazon-deal] .amazon-price-stamp{display:block;margin:4px 0 0;font-size:12px;line-height:1.35;font-weight:400;color:var(--muted);white-space:normal}
@media(min-width:1100px){.d3-top .d3-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1099px){.d3-top .d3-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding-bottom:6px;overscroll-behavior-x:contain}.d3-top .d3-grid>article{flex:0 0 min(300px,84%);scroll-snap-align:start}}

[data-amazon-deal] .amazon-price-notice-link{position:relative;z-index:2;color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;text-decoration-color:currentColor;touch-action:manipulation}

#amazon-notes,#amazon-top-notes{scroll-margin-top:150px}

/* The Top shelf is always a stacked card. A flex scroller cannot supply
   subgrid tracks; reserve the photo before the title in every engine. */
.d3-top .d3-grid>.d3{display:flex;flex-direction:column;grid-template-columns:none;grid-template-rows:none;grid-row:auto;gap:0;padding:12px 12px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.d3-top .d3-photo{position:relative;display:block;flex:none;width:100%;height:auto;aspect-ratio:1;grid-column:auto;grid-row:auto}
.d3-top .d3-photo img{position:absolute;inset:6%;width:88%;height:88%;object-fit:contain}
.d3-top .d3-photo .dnop{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.d3-top .d3-name{margin:10px 0 6px}
.d3-top .pm-sl b{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.d3-top .d3-foot,.d3-top .d3 .d3-foot.deal-controls{padding-right:0;margin-top:auto}
.d3-top .d3-save{top:40px;right:18px;bottom:auto}
@media(max-width:1099px){.d3-top .d3-grid>article{flex-basis:min(300px,86vw)}}
@media(pointer:coarse){.d3-top .d3-save{top:36px;right:16px}}
