/* Shared palette. Existing footer and tool-page variables stay independent. */
html.dr{--dr-bg:#f6f7f8;--dr-surface:#ffffff;--dr-border:#e6e8eb;--dr-text:#15181b;
  --dr-muted:#667085;--dr-red:#d92d20;--dr-green:#0f7a55;--dr-brand:#0e7569;--dr-on-brand:#ffffff;
  --dr-active:#15181b;--dr-on-active:#ffffff}
@media(prefers-color-scheme:dark){
  html.dr{--dr-bg:#0f1214;--dr-surface:#171b1e;--dr-border:#262b30;--dr-text:#e9ecef;
    --dr-muted:#9aa3ab;--dr-red:#ff6b5e;--dr-green:#3ccf91;--dr-brand:#2fb3a4;--dr-on-brand:#07211d}
  .dr #cattabs .cattab.active,.dr .coupon-chips button[aria-pressed="true"]{outline:1px solid var(--dr-muted);outline-offset:-1px}
}
.dr body{background:var(--dr-bg);color:var(--dr-text);font-family:-apple-system,"Segoe UI",Roboto,Inter,sans-serif}
.dr footer{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.dr :is(header,main,#content,#controls,.brand-page){--bg:var(--dr-bg);--card:var(--dr-surface);
  --fg:var(--dr-text);--muted:var(--dr-muted);--line:var(--dr-border);--chip:var(--dr-bg);
  --accent:var(--dr-brand);--accent-fg:var(--dr-on-brand);--link:var(--dr-brand);--shadow:none}
.dr .wrap,.dr header>.hrow,.dr .amazon-inner{max-width:1320px;padding-inline:12px}
.dr header{background:var(--dr-surface);color:var(--dr-text);border-bottom:1px solid var(--dr-border);
  box-shadow:none;margin-bottom:0;position:relative}
.dr header::after{content:none}
.dr header>.hrow{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 12px;padding-block:0 8px;margin:0 auto}
.dr .hrow>.brand{grid-area:1/1;translate:none;min-height:56px;align-items:center;margin:0;font-size:24px}
.dr .brand a{display:inline-flex;align-items:center;gap:8px;min-height:40px;color:var(--dr-text);text-decoration:none}
.dr .brand .mark{width:32px;height:32px;flex:none;transform:rotate(-8deg)}
.dr .brand .word{font-weight:800;letter-spacing:-.8px}
.dr .brand .word em{color:inherit}
.dr .hrow>.pwa-header-actions,.dr .hrow>#subscribe{grid-area:1/2;translate:none;justify-self:end}
.dr .hrow>.acct{grid-area:5/1/auto/-1}
.dr header #subscribe{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:40px;
  margin:0!important;padding:8px 20px;background:var(--dr-brand);color:var(--dr-on-brand)!important;
  border:0;border-radius:999px;box-shadow:none;font-size:14px;line-height:24px;font-weight:700}
.dr header .join-why{display:none}
.dr .hrow>.search{grid-area:2/1/auto/-1;display:block;width:100%;max-width:none;min-width:0;margin:0}
.dr .searchfield{position:relative;background:none;padding:0;border-radius:999px;box-shadow:none;isolation:auto}
.dr .searchfield::before,.dr .searchfield::after{content:none}
.dr :is(header,#event-search) .searchfield #q{height:48px;width:100%;padding:0 48px;background:var(--dr-bg);color:var(--dr-text);
  border:1px solid var(--dr-border);border-radius:999px;box-shadow:none;font-size:16px;line-height:24px}
.dr .searchfield>svg{position:absolute;display:block;pointer-events:none;width:20px;height:20px;top:14px;left:16px;color:var(--dr-muted)}
/* Home drops header-polish.css, which carried the clear button's base look and hid the browser's own x. */
.dr .searchfield #clearsearch{position:absolute;top:4px;right:4px;width:40px;height:40px;min-width:40px;min-height:40px;
  border:0;border-radius:50%;background:transparent;color:var(--dr-muted);font:inherit;cursor:pointer}
.dr .searchfield #q::-webkit-search-cancel-button{display:none}
.dr[data-kbd] .searchfield #q:focus-visible{outline:2px solid var(--dr-brand);outline-offset:2px}
.dr .search .tool-buttons{display:flex;flex-flow:row nowrap;gap:8px;margin:4px 0 0}
.dr :is(.search,#event-search) .tool-buttons :is(#analyze-search,#search-discounts){order:0;flex:1 1 0;min-width:0;
  width:auto;min-height:44px;padding:0 8px;border:1px solid var(--dr-border);border-radius:999px;
  background:var(--dr-surface);color:var(--dr-text);font-size:14px;line-height:20px;font-weight:600;
  text-shadow:none;box-shadow:none;animation:none;transform:none;transition:none}
.dr .tool-buttons .tool-arrow{display:inline;color:var(--dr-brand);margin-left:4px}
.dr .tool-buttons :is(#analyze-search,#search-discounts)::before,
.dr .tool-buttons :is(#analyze-search,#search-discounts)::after{content:none}
.dr .hnav{display:contents}
.dr header .tag{color:var(--dr-muted);font-size:13px;letter-spacing:0;text-transform:none}
.dr .hnav>#tagline{grid-area:3/1/auto/-1;display:block;min-height:20px;margin:0;padding:0;border:0;
  color:var(--dr-muted);font-size:13px;font-weight:400;line-height:20px;letter-spacing:0;text-transform:none}
.dr .live-dot{background:var(--dr-green);width:6px;height:6px;box-shadow:none;animation:none}
.dr .hrow #cattabs{position:static;grid-area:4/1/auto/-1;display:flex;justify-content:flex-start;gap:8px;
  margin:0 -12px;padding:4px 24px 0 12px;width:calc(100% + 24px);max-width:none;flex-wrap:nowrap;
  overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;
  mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}
.dr #cattabs .cattab,.dr .coupon-chips button,.dr .hubs a{display:inline-flex;align-items:center;gap:8px;
  min-height:40px;padding:8px 12px;border:1px solid var(--dr-border);border-radius:999px;
  background:var(--dr-surface);color:var(--dr-text);font-size:13px;line-height:20px;font-weight:500;white-space:nowrap}
.dr #cattabs .cattab{flex:none;scroll-snap-align:start}
.dr #cattabs .cattab::before{content:"";display:block;width:6px;height:6px;flex:none;border-radius:50%;background:var(--dr-brand)}
.dr #cattabs .cattab.active,.dr .coupon-chips button[aria-pressed="true"]{background:var(--dr-active);
  border-color:var(--dr-active);color:var(--dr-on-active)}
.dr #cattabs .cattab.active::before{background:currentColor}
.dr #controls{margin:4px 0;padding-block:0;gap:8px}
.dr #controls :is(button,select,input){min-height:40px;border:1px solid var(--dr-border);border-radius:999px;box-shadow:none}
.dr #searchcount:empty{min-height:0;margin:0}
.dr .amazon-strip{background:var(--dr-surface);color:var(--dr-text);border-color:var(--dr-border)}
.dr .amazon-inner{padding-block:4px}
.dr :is(main,#content) h2{font-size:20px;font-weight:700;line-height:28px}
.dr .secth:not(.sr-only){display:flex;align-items:center;justify-content:space-between;gap:16px}
.dr .secth a{margin-left:auto;font-size:14px;min-height:40px;display:inline-flex;align-items:center}
.dr main>h1{font-size:32px;margin:24px 0 8px;line-height:1.25}
.dr main>.lede{font-size:14px;line-height:20px;margin-bottom:16px}
.dr .grid,.dr #content>.grid,.dr #coupon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-block:8px 24px}
.dr .grid>.card,.dr .coupon-top-row>.card{position:relative;grid-column:auto;display:flex;flex-direction:column;min-width:0;border:1px solid var(--dr-border);
  border-radius:14px;background:var(--dr-surface);box-shadow:none;transform:none;overflow:hidden}
.dr .card::before,.dr .card::after,.dr .card>.trace{display:none}
.dr .card>.media{position:relative;flex:none;width:100%;height:auto;min-height:0;aspect-ratio:1;border:0;border-radius:12px;
  background:#fff;overflow:hidden}
.dr .card>.media img{display:block;width:100%;height:100%;padding:8%;object-fit:contain;mix-blend-mode:normal}
/* Dark mode keeps the site's dimmed photo tile: white product backgrounds would glare. */
@media(prefers-color-scheme:dark){.dr .card>.media,.dr .hs-photo{background:var(--photo-tile,#d9dee4)}
  .dr .card>.media img,.dr .hs-photo img{mix-blend-mode:multiply}}
.dr .card>.body{display:flex;flex:1;flex-direction:column;padding:8px;gap:4px;min-width:0;line-height:16px;font-size:12px}
.dr .dr-offer,.dr .coupon-offer{order:0;display:flex;flex-wrap:nowrap;align-items:baseline;gap:3px;min-height:16px;
  color:var(--dr-green);font-size:12px;line-height:16px;font-weight:700;letter-spacing:-.3px;white-space:nowrap}
.dr :is(.dr-offer,.coupon-offer) strong{color:var(--dr-red);font-weight:inherit}
.dr :is(.dr-offer,.coupon-offer) i{font-style:normal;color:var(--dr-muted);font-weight:400}
.dr .card .pricerow{order:1;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 4px;min-height:24px;
  font-size:13px;line-height:24px;color:var(--dr-muted)}
.dr .card .now{font-size:20px;font-weight:800;line-height:24px;color:var(--dr-text)}
.dr .card .pricerow s{font-size:13px;color:var(--dr-muted)}
.dr .dr-list-price{white-space:nowrap;overflow-wrap:normal}
.dr .card .unit-price{order:2}
.dr .card .title{order:3;font-size:14px;line-height:20px;font-weight:600;min-height:40px;margin:0}
.dr .card .title a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:20px;min-height:0}
.dr .card .metarow{order:4;display:block;height:16px;line-height:16px;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dr .card .chip{display:inline;background:none;padding:0;border:0;border-radius:0;font-size:12px;line-height:16px;color:var(--dr-muted);white-space:nowrap}
.dr .card .storechip{width:auto}
/* Every visible part after the store gets a dot, even when a badge drawn on the photo sits between them in the row. */
.dr .card .metarow>.chip~:is(.chip,.hotmeter)::before{content:"·";margin:0 4px}
.dr .card .price-checked .pcl{display:none}
.dr .card .price-checked::before{content:"·";margin-right:4px}
.dr .card .badge{position:absolute;top:8px;left:8px;background:#fff;color:#0f7a55;border:1px solid #e6e8eb;
  border-radius:999px;padding:2px 8px;font-size:12px;line-height:16px;z-index:2}
.dr .card .hotmeter{font-size:12px;line-height:16px}
.dr .card :is(.flag,.newtag,.condtag,.gonetag,.today-ribbon){position:absolute;top:8px;left:8px;bottom:auto;right:auto;border-radius:999px;
  padding:2px 8px;font-size:12px;line-height:16px}
.dr .card .flag{z-index:3;background:#ffb020;color:#1f1300;font-weight:700}
.dr .card:has(.newtag,.today-ribbon,.flag) .badge{top:36px}
.dr .card:has(.flag) .newtag{top:36px}
.dr .card:has(.flag):has(.newtag) .badge{top:64px}
.dr .card .condtag{inset:auto auto 8px 8px;max-width:calc(100% - 16px)}
.dr .card :is(.how-line,.checkout-price){order:5;color:var(--dr-muted);font-size:12px;line-height:16px}
.dr .card .code-line{order:6;display:flex;flex-wrap:wrap;align-items:center;column-gap:4px;font-size:12px;line-height:20px;font-weight:500;position:relative;z-index:4;white-space:normal}
.dr .card .code{padding:0 4px;margin:0;border:1px dashed var(--dr-muted);border-radius:4px;background:transparent;
  color:var(--dr-text);display:inline-block;float:none;max-width:100%;font:600 12px/18px ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:0;white-space:normal;overflow-wrap:anywhere}
.dr .card button.code{min-height:40px;min-width:40px;vertical-align:middle}
.dr .card :is(.how,.checkout-price,.price-unconfirmed,.price-aged){order:7;font-size:12px;line-height:16px}
.dr .card .how{padding:0;position:relative;z-index:4}
.dr .card .how summary{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:24px;
  padding:4px 6px;font-size:12px;line-height:16px;white-space:nowrap;list-style:none}
.dr .card .how summary::-webkit-details-marker{display:none}
.dr .card .how[open] summary span{transform:rotate(90deg)}
.dr .dr-how-content{padding:6px}
.dr .card .headline,.dr .card .deal-steps{display:none}
.dr #amazon-results .card .headline{order:2;display:block;margin:0;color:var(--dr-muted);font-size:12px;line-height:16px}
.dr #amazon-results .card>.body>.getdeal{order:8;margin-top:auto}
.dr .card .actions{order:8;display:flex;flex-direction:column;align-items:stretch;gap:4px;margin-top:auto;padding-top:4px;min-width:0}
.dr .card .actions>.getdeal{display:flex;align-items:center;justify-content:center;width:100%;min-height:40px;
  padding:4px 8px;border-radius:999px;background:var(--dr-brand);color:var(--dr-on-brand)!important;
  font-size:13px;line-height:16px;font-weight:600;text-align:center;box-shadow:none}
.dr .card .getdeal::after{inset:0;height:auto}
.dr .card .credit{min-width:0;overflow:hidden;font-size:12px;line-height:16px;white-space:nowrap;text-overflow:ellipsis;color:var(--dr-muted)}
.dr .card .credit a{color:inherit}
.dr .card .save-deal{width:40px;height:40px;min-width:40px;min-height:40px}
.dr .coupon-band{background:linear-gradient(110deg,var(--coupon-band-start),var(--coupon-band-end));
  border:1px solid var(--dr-border);border-radius:14px;margin:24px 0;padding:32px}
.dr .coupon-how summary{width:fit-content;min-height:44px;padding:10px 16px;border:1px solid var(--dr-border);
  border-radius:999px;background:var(--dr-surface);color:var(--dr-text);font-weight:600}
.dr .coupon-top{background:var(--dr-surface);border:1px solid var(--dr-border);border-radius:14px;padding:16px 12px}
.dr .coupon-top h2{color:var(--dr-text);text-align:left}
.dr .coupon-top-row{grid-auto-columns:200px;gap:10px}
.dr .coupon-top-row>.card{display:flex;border:1px solid var(--dr-border);border-radius:14px;box-shadow:none}
.dr .coupon-chips{gap:8px}
.dr #coupon-search{height:48px;border-color:var(--dr-border);background:var(--dr-surface)}
.dr .hs-sale{display:block;color:var(--dr-red);white-space:nowrap}
.dr .hs-sale strong{font-size:40px;line-height:1.1;font-weight:800;letter-spacing:-1.5px}
.dr .hs-sale small{font-size:16px;font-weight:600;color:var(--dr-text)}
.dr .hs-promo h2{margin:6px 0 8px!important}
.dr .hs-promo .hs-photo{width:26%;max-width:88px}
.dr .hs-wide .hs-collage{width:44%;flex:none;margin-left:auto;gap:4px}
.dr .hs-mini .hs-card{min-width:144px}
.dr .hs-card>small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dr .hs-discount{min-height:16px;font-size:12px;line-height:16px;font-weight:700;letter-spacing:-.3px;white-space:nowrap;color:var(--dr-red)}
.dr #hs-body{display:block}
.dr-showcase-strip{display:none}
@media(max-width:1199px){.dr .hs-promo .hs-sale strong{font-size:32px}}
.dr .brand-page{--brand-ink:var(--dr-text);--brand-muted:var(--dr-muted);--brand-mist:var(--dr-bg);--brand-teal:var(--dr-brand)}
.dr .brand-hero h1{font-size:32px}
.dr .pages-refresh :is(.refresh-band,.refresh-step){background:var(--dr-surface)}
.dr .pages-refresh :is(.refresh-inner,.refresh-content){max-width:1320px;padding:32px 12px}
.dr .pages-refresh :is(.refresh-panel,.refresh-step,.brand-story,.brand-deal){border-radius:14px;box-shadow:none}
.dr .pages-refresh .refresh-band h1{font-size:32px;letter-spacing:-.02em}
.dr .pages-refresh .refresh-count dd{font-size:32px}
.dr .pages-refresh .brand-lede{font-size:16px}
.dr .pages-refresh .refresh-panel h2{font-size:24px}
.dr .pages-refresh .refresh-panel h3{font-size:16px}
.dr .pages-refresh .brand-deal{transform:none}
.dr .pages-refresh .brand-photo{aspect-ratio:1;border-radius:12px}
.dr .pages-refresh .brand-photo img{padding:8%}
.dr .pages-refresh .brand-deal-title{font-size:14px;line-height:20px;min-height:40px}
.dr .pages-refresh .brand-price{font-size:20px;letter-spacing:0}
.dr .pages-refresh .brand-discount{background:none;color:var(--dr-red);font-size:13px}
.dr .pages-refresh :is(.brand-store,.brand-deal-note){color:var(--dr-muted);font-size:12px}
.dr .pages-refresh .brand-primary{background:var(--dr-brand);color:var(--dr-on-brand);box-shadow:none}
@media(min-width:640px){
  .dr .grid,.dr #content>.grid,.dr #coupon-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dr .hrow #cattabs{flex-wrap:wrap;overflow:visible;mask-image:none;padding-right:12px}
  .dr header>.hrow{grid-template-columns:auto minmax(0,1fr) auto;gap:8px 24px;padding-block:12px}
  .dr .hrow>.search{grid-area:1/2/auto/3}
  .dr .hrow>.pwa-header-actions,.dr .hrow>#subscribe{grid-area:1/3}
  .dr .hnav>#tagline{grid-area:2/1/auto/-1}
  .dr .hrow #cattabs{grid-row:3}
}
@media(min-width:900px){.dr .grid,.dr #content>.grid,.dr #coupon-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1200px){.dr .grid,.dr #content>.grid,.dr #coupon-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1400px){.dr .grid,.dr #content>.grid,.dr #coupon-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:639px){
  /* Leave first-screen space for the required code, action and source lines. */
  .dr header>.hrow{gap:2px 12px;padding-bottom:4px}
  .dr .hrow>.brand{min-height:44px}
  .dr :is(.search,#event-search) .tool-buttons :is(#analyze-search,#search-discounts){min-height:40px}
  .dr .hnav>#tagline{min-height:16px;line-height:16px}
  .dr .hrow #cattabs{padding-top:2px}
  .dr .card>.media{width:96px;max-width:100%;margin:6px auto 0}
  .dr .card>.body{padding:6px;gap:2px}
  .dr .card .title,.dr .card .title a{line-height:18px;min-height:36px}
  .dr .card .actions{gap:2px;padding-top:2px}
  .dr #home-showcase{margin:4px 0}
  .dr #hs-body{display:none}
  .dr-showcase-strip{display:flex;height:96px;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  .dr-showcase-tile{flex:0 0 160px;min-width:0;height:96px;padding:10px;border:1px solid var(--dr-border);
    border-radius:12px;background:color-mix(in srgb,var(--dr-brand) 4%,var(--dr-surface));
    display:flex;flex-direction:column;justify-content:space-between;scroll-snap-align:start;font-size:13px;line-height:18px}
  .dr-showcase-tile strong{font-size:16px;line-height:22px;color:var(--dr-red)}
  .dr-showcase-tile:nth-child(2){background:color-mix(in srgb,var(--warm) 14%,var(--dr-surface))}
  .dr-showcase-tile:nth-child(2) strong{color:var(--dr-brand);font-size:13px}
  .dr-showcase-tile:last-child{scroll-snap-align:end}
  .dr-showcase-strip:focus-within{outline-offset:2px}
  .dr #home-showcase .dr-showcase-tile:focus-visible{outline-offset:-3px}
  .dr header+.wrap main>h1{font-size:24px;margin:8px 0 4px}
  .dr main>.lede{font-size:13px;line-height:16px;margin-bottom:8px}
  .dr .coupon-band{margin:12px 0 16px;padding:20px 16px}
  .dr .coupon-band h1{font-size:24px}
  .dr .coupon-top-row{grid-auto-columns:172px}
  .dr .pages-refresh :is(.refresh-inner,.refresh-content){padding:24px 12px}
  .dr .pages-refresh .refresh-panel{padding:20px 16px}
  .dr .pages-refresh .refresh-band h1{font-size:24px}
}
/* Narrow phones: no header item's minimum width may widen the row (and the full-bleed tabs) past the screen. */
@media(max-width:374px){.dr header>.hrow{grid-template-columns:minmax(0,1fr) auto}}
@media(hover:hover) and (pointer:fine){
  .dr .card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #15181b12}
  .dr .card{transition:transform .15s,box-shadow .15s}
  .dr #cattabs .cattab:hover{border-color:var(--dr-brand)}
}
@media(prefers-reduced-motion:reduce){.dr .card{transition:none}.dr .card:hover{transform:none}}
