/* Rotating ad box for the consumer briefs. It sits in the white space left
   under the Overview section and never changes the page layout: the box is
   positioned over that space rather than added to it, and /ads.js picks the
   largest standard size that fits (or none). Creatives live in /ads.js. */
.sheet section.has-ad{position:relative}
.ad-slot{position:absolute;left:0;right:0;bottom:0;display:none;align-items:center;justify-content:center}
.ad-slot.has-pool{display:flex}
/* /ads.js sets the frame's size to match the ad being shown. */
.ad-slot .ad-frame{position:relative;box-sizing:content-box;width:300px;height:250px;border-radius:4px;overflow:hidden;border:1px solid var(--line)}
.ad-slot .ad-frame.snap .ad{transition:none}
.ad-slot .ad-badge{position:absolute;z-index:2;top:5px;right:6px;font-size:6.4pt;font-weight:bold;letter-spacing:.6px;text-transform:uppercase;color:#777;background:rgba(255,255,255,.85);padding:0 4px;border-radius:2px;line-height:1.5;pointer-events:none}
.ad-slot .ad-dots{position:absolute;z-index:2;right:7px;bottom:6px;display:flex;gap:5px}
.ad-slot.mini:not(.on-banner) .ad-dots{display:none}
.ad-slot .ad-dots button{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:#cfcfcf;cursor:pointer}
.ad-slot .ad-dots button[aria-current="true"]{background:var(--main)}
.ad-slot .ad{position:absolute;inset:0;display:flex;flex-direction:column;opacity:0;visibility:hidden;transition:opacity .5s ease,visibility 0s linear .5s;color:#262626;background:var(--tint);text-decoration:none}
.ad-slot .ad.on{opacity:1;visibility:visible;transition:opacity .5s ease}
.ad-slot .ad:focus-visible{outline:2px solid var(--main);outline-offset:-2px}
.ad-slot .ad .bar{height:5px;flex:none;background:var(--ad-c,var(--main))}
.ad-slot .ad .body{flex:1;min-width:0;display:flex;flex-direction:column;padding:16px 18px}
.ad-slot .ad .brand{font-size:7.4pt;font-weight:bold;letter-spacing:1.2px;text-transform:uppercase;color:var(--ad-c,var(--main))}
.ad-slot .ad .head{font-family:'Lora',Georgia,serif;font-size:15.5pt;font-weight:bold;line-height:1.15;margin:8px 0 6px;color:var(--dark)}
.ad-slot .ad .short{display:none}
.ad-slot .ad .copy{font-size:8.8pt;line-height:1.4;color:#444}
.ad-slot .ad .cta{margin-top:auto;align-self:flex-start;background:var(--ad-c,var(--main));color:#fff;font-weight:bold;font-size:8.6pt;padding:6px 12px;border-radius:3px;white-space:nowrap}
.ad-slot .ad:hover .cta,.ad-slot .ad:focus-visible .cta{filter:brightness(1.12)}

/* 300x100 rectangle: brand and headline on the left, button on the right. */
.ad-slot.compact .ad .bar{height:4px}
.ad-slot.compact .ad .body{flex-direction:row;align-items:center;gap:12px;padding:8px 14px}
.ad-slot.compact .ad .txt{flex:1;min-width:0}
.ad-slot.compact .ad .head{font-size:11.5pt;margin:3px 0 0}
.ad-slot.compact .ad .copy{display:none}
.ad-slot.compact .ad .cta{margin:0;align-self:center;font-size:7.8pt;padding:5px 10px}

/* 320x50 mobile banner: one line, with a short headline. */
.ad-slot.mini .ad{flex-direction:row}
.ad-slot.mini .ad .bar{width:4px;height:auto}
.ad-slot.mini .ad .body{flex-direction:row;align-items:center;gap:10px;padding:0 10px 0 11px}
.ad-slot.mini .ad .txt{flex:1;min-width:0}
.ad-slot.mini .ad .brand{font-size:6.6pt;letter-spacing:1px}
.ad-slot.mini .ad .head{display:none}
.ad-slot.mini .ad .short{display:block;font-family:'Lora',Georgia,serif;font-weight:bold;font-size:10pt;line-height:1.2;color:var(--dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-slot.mini .ad .copy{display:none}
.ad-slot.mini .ad .cta{margin:9px 0 0;align-self:center;font-size:7.4pt;padding:3px 8px}

/* Banner ads are shown at their own size, as supplied. */
.ad-slot .ad.banner{background:#fff}
.ad-slot .ad.banner img{display:block;width:100%;height:100%}

@media (prefers-reduced-motion:reduce){.ad-slot .ad,.ad-slot .ad.on}}
@media print{.ad-slot{display:none !important}}

@media screen{
  html[data-theme="dark"] .ad-slot .ad:not(.banner){background:var(--accent-tint);color:#e4e4e4}
  html[data-theme="dark"] .ad-slot .ad .head,
  html[data-theme="dark"] .ad-slot .ad .short{color:#f2f2f2}
  html[data-theme="dark"] .ad-slot .ad .copy{color:#c8c8c8}
  html[data-theme="dark"] .ad-slot .ad .brand{color:color-mix(in srgb,var(--ad-c,var(--main)) 45%,#fff)}
  html[data-theme="dark"] .ad-slot .ad-frame{border-color:#3a3634}
  html[data-theme="dark"] .ad-slot .ad-badge{background:rgba(0,0,0,.55);color:#bbb}
  html[data-theme="dark"] .ad-slot .ad-dots button{background:#555}
  html[data-theme="dark"] .ad-slot .ad-dots button[aria-current="true"]{background:var(--accent-fg)}
}

/* Product ads: a photo from the brief's buy table, with its name and price. */
.ad-slot .ad.product .photo{flex:none;display:flex;align-items:center;justify-content:center;background:#fff}
.ad-slot .ad.product .photo img{display:block;width:100%;height:100%;object-fit:contain}
.ad-slot .ad.product .body{padding:10px 14px 12px}
.ad-slot .ad.product .brand{color:var(--main)}
.ad-slot .ad.product .name{font-family:'Lora',Georgia,serif;font-weight:bold;color:var(--dark);font-size:11pt;line-height:1.2;margin-top:2px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.ad-slot .ad.product .foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px}
.ad-slot .ad.product .price{font-weight:bold;font-size:10.5pt;color:#262626}
.ad-slot .ad.product .cta{margin:0;background:var(--main)}
.ad-slot.full .ad.product .photo{height:142px;padding:10px 0 4px}
.ad-slot.full .ad.product .photo img{width:auto}
.ad-slot.compact .ad.product{flex-direction:row}
.ad-slot.compact .ad.product .photo{width:98px;height:100%;padding:8px}
.ad-slot.compact .ad.product .body{flex-direction:column;align-items:stretch;gap:0;padding:9px 12px 9px 6px}
.ad-slot.compact .ad.product .name{font-size:10pt}
.ad-slot.compact .ad.product .cta{font-size:7.4pt;padding:3px 8px}
.ad-slot.compact .ad.product .price{font-size:9.5pt}
.ad-slot.mini .ad.product{flex-direction:row}
.ad-slot.mini .ad.product .photo{width:50px;height:100%;padding:4px}
.ad-slot.mini .ad.product .body{flex-direction:row;align-items:center;gap:8px;padding:0 9px 0 6px}
.ad-slot.mini .ad.product .name{-webkit-line-clamp:1;font-size:9pt;margin-top:0}
.ad-slot.mini .ad.product .brand{font-size:6.4pt}
.ad-slot.mini .ad.product .price{font-size:8.6pt}
.ad-slot.mini .ad.product .foot{margin:0;flex:none;gap:6px}
.ad-slot.mini .ad.product .cta{margin:0;font-size:7pt;padding:3px 7px}
/* Keep the dots and the Ad badge clear of the product name and button. */
.ad-slot.on-product .ad-dots{left:8px;right:auto}
.ad-slot.full.on-product .ad-dots{top:8px;bottom:auto}
.ad-slot.compact .ad.product .txt{padding-right:22px}
.ad-slot.mini.on-product .ad-badge{left:2px;right:auto;top:2px;font-size:5.6pt;padding:0 2px}
.ad-slot.mini .ad.product .price{display:none}
@media screen{
  html[data-theme="dark"] .ad-slot .ad.product .brand{color:var(--accent-fg)}
  html[data-theme="dark"] .ad-slot .ad.product .name{color:#f2f2f2}
  html[data-theme="dark"] .ad-slot .ad.product .price{color:#e4e4e4}
}

/* Homepage ad island, between Research Methodology and Free Consumer Briefs.
   It is at least the Research Methodology island's height (set by /ads.js)
   and holds two ads side by side, both the same size: the product carousel
   on the left and the Everlywell video ad on the right. On phones they stack. */
.home-ads{--main:#2d6a47;--dark:#1b3a2b;--tint:#f4f6f4;--line:#d8ded9;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;justify-items:center;gap:12px;box-sizing:border-box;margin:22px 0;padding:16px;background:#fff;border:1px solid var(--border);border-radius:10px}
.home-ads[hidden]{display:none}
.home-ads .ad-slot{position:static;width:100%}
.home-ads .ad-slot .ad-frame{box-sizing:border-box;width:100%;max-width:262px;height:auto;aspect-ratio:1440/660}
.home-ads .ad-slot .ad.product{flex-direction:row}
.home-ads .ad-slot .ad.product .photo{width:42%;height:100%;padding:8px;box-sizing:border-box}
.home-ads .ad-slot .ad.product .body{flex-direction:column;align-items:stretch;padding:10px 10px 9px 4px}
.home-ads .ad-slot .ad.product .brand{font-size:6.6pt}
.home-ads .ad-slot .ad.product .name{font-size:9.5pt}
.home-ads .ad-slot .ad.product .foot{justify-content:flex-start}
.home-ads .ad-slot .ad.product .cta{font-size:7pt;padding:3px 7px}
.home-ads .ad-slot .ad.product .price{display:none}
.home-ads .ad-slot.on-product .ad-badge{left:3px;right:auto;top:3px;font-size:5.6pt;padding:0 3px}
.home-ads .ad-video{position:relative;width:100%;max-width:262px}
.home-ads .ad-video-link{position:relative;display:block;border:1px solid var(--line);border-radius:4px;overflow:hidden;background:var(--tint);aspect-ratio:1440/660}
.home-ads .ad-video-link:focus-visible{outline:2px solid var(--main);outline-offset:2px}
.home-ads .ad-video video{position:relative;z-index:0;display:block;width:100%;height:100%;object-fit:cover}
/* The poster sits in its own layer above the video so it covers it even
   where the browser draws video on a separate layer. It appears at once when
   the video ends and fades out as the next play-through starts. */
.home-ads .ad-video .poster{position:absolute;z-index:1;inset:0;display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .4s ease;pointer-events:none;transform:translateZ(0)}
.home-ads .ad-video-link.hold .poster{opacity:1;transition:none}
/* Same type as the carousel's product names. The video stays light in dark
   mode, so the text keeps its dark color. */
.home-ads .ad-video .tagline{position:absolute;z-index:2;top:16px;left:10px;width:46%;font-family:'Lora',Georgia,serif;font-weight:bold;font-size:9pt;line-height:1.2;color:var(--dark);pointer-events:none}
.home-ads .ad-video .cta{position:absolute;z-index:2;left:10px;bottom:9px;background:var(--main);color:#fff;font-weight:bold;font-size:7pt;padding:3px 7px;border-radius:3px;white-space:nowrap;line-height:1.4}
.home-ads .ad-video .ad-badge{position:absolute;z-index:2;top:3px;left:3px;font-size:5.6pt;font-weight:bold;letter-spacing:.6px;text-transform:uppercase;color:#777;background:rgba(255,255,255,.85);padding:0 3px;border-radius:2px;line-height:1.5;pointer-events:none}
@media (max-width:520px){.home-ads{grid-template-columns:1fr}.home-ads .ad-slot.has-pool{display:flex}}
@media (max-width:600px){.home-ads{padding:14px}}
@media screen{
  html[data-theme="dark"] .home-ads{--accent-fg:color-mix(in srgb,var(--main) 40%,#fff);--accent-tint:color-mix(in srgb,var(--main) 24%,#1a1c1b);background:#181e1a}
}
