/* Product page header (photo, name, Overall + key stats, Taste card) and the rating popup. Uses the site's citrus palette variables only.
   Markup: scripts/rating_ui.py and page_product in scripts/build.py. Behavior: js/rate.js. */

/* ---------- header layout ---------- */
.prod.hs{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);grid-template-rows:auto 1fr;gap:20px 32px;align-items:start;padding:16px 0 32px}
.hs-photo{grid-row:1 / span 2}
.hs-photo{position:relative}
.tried-badge{position:absolute;left:12px;top:12px;z-index:2;display:inline-flex;align-items:center;gap:6px;background:var(--surface);color:var(--primary);border:1px solid var(--line);border-radius:999px;padding:5px 12px 5px 8px;font:600 14px/1.2 var(--sans);box-shadow:0 2px 8px rgba(0,0,0,.06)}
.tried-badge svg{color:var(--accent);flex:none}
.hs-head{grid-column:2;grid-row:1;min-width:0}
.hs-head h1{margin:0 0 8px}
.hs-cards{grid-column:2;grid-row:2;display:grid;gap:12px;align-self:start}
.hs-cards > .pc-prov{margin:0}
.hf-facts{margin:0;font-size:16px;color:var(--muted);line-height:1.45}
.hf-facts b{color:var(--ink);font-weight:600}
.hs-stats,.hs-chips{display:none}
.hs-credit{margin:28px 0 0}

/* ---------- one score card: Overall + Taste ---------- */
.sc{--sc-bg:var(--tint);--sc-line:var(--tint-line);display:grid;grid-template-columns:240px minmax(0,1fr);background:var(--sc-bg);border:1px solid var(--sc-line);border-radius:16px;overflow:hidden}
.sc-o{display:flex;flex-direction:column;justify-content:center;padding:12px;border-right:1px solid var(--sc-line)}
.sc-o .obox{flex:1;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:10px;border-radius:14px}
.sc-o .obox .ol{display:block;font-size:17px}
.sc-o .obox .ov{font-size:60px;line-height:1.05}
.sc:has(.tc[hidden]){grid-template-columns:240px;justify-self:start;max-width:100%}           /* no ratings available: just the Overall block */
.sc:has(.tc[hidden]) .sc-o{border-right:0}

/* ---------- Taste card ---------- */
.tc{padding:18px 20px;background:transparent}
.tc[hidden]{display:none}
.tc-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px;margin:0 0 6px}
.tc-h h4{margin:0;font:600 16px var(--sans)}
.tc-change{display:none;align-items:center;min-height:44px;margin:-10px 0;font-size:14px;font-weight:600}
.tc[data-state=rated] .tc-change{display:inline-flex}
.tc-line{margin:0 0 4px;font-size:13px;color:var(--muted)}
.tc-line .tc-nn,.tc-line b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.rs-dot{margin:0 5px}
.tc-row{display:grid;grid-template-columns:140px minmax(0,1fr) 54px;align-items:center;gap:10px;min-height:44px}
.tc-l{font-size:14px;color:var(--muted);white-space:nowrap}
.tc-v{font:600 17px var(--sans);font-variant-numeric:tabular-nums;text-align:right;color:var(--primary)}
.tc-v.you{color:var(--ink)}
.tc-v small{font-weight:400;font-size:12px;color:var(--muted)}
.tc .lv.you,.tc .tc-yv{display:none}
.tc[data-state=rated] .lv.you{display:inline-flex}
.tc[data-state=rated] .tc-yv{display:block}
.tc[data-state=rated] .tc-cta{display:none}
.you-row .tc-cta{grid-column:2 / 4;display:flex;align-items:center;justify-content:center;min-height:44px;border:2px solid var(--primary);border-radius:999px;background:transparent;color:var(--primary);font:600 15px var(--sans);text-decoration:none}
.you-row .tc-cta:hover{background:var(--primary);color:var(--on-primary)}
@keyframes tcpulse{0%{background:var(--tint)}100%{background:transparent}}
.tc.just .you-row{animation:tcpulse 1.4s ease-out;border-radius:var(--radius)}

/* leaves: Community Score (green) and Your Score (orange), out of 5, each leaf filled in proportion */
.lv{display:inline-flex;gap:6px;align-items:center;min-width:0}
.lf{position:relative;display:block;width:26px;height:26px;flex:none}
.lf svg{display:block;width:26px;height:26px}
.lf path{fill:none;stroke:var(--primary);stroke-width:1.6}
.lfill{position:absolute;left:0;top:0;height:100%;overflow:hidden}
.lfill path{fill:var(--primary);stroke:var(--primary)}
.lv.you .lfill path{fill:var(--accent);stroke:var(--primary)}

/* ---------- website (1040px and up): Overall and Taste are two separate boxes, 26px apart (the same 26px as the gap above them) ---------- */
@media (min-width:1040px){
  .prod.hs{grid-template-columns:clamp(320px,31vw,400px) minmax(0,1fr);row-gap:26px}
  .hs-photo .thumb{width:100%}
  .sc{display:flex;align-items:stretch;gap:26px;background:none;border:0;border-radius:0;overflow:visible}
  .sc-o{flex:0 0 200px;padding:8px;background:transparent;border:1px solid var(--line);border-radius:16px}
  .sc-o .obox{padding:8px 10px}
  .sc-o .obox .ol{font-size:16px}
  .sc-o .obox .ov{font-size:48px}
  .sc:has(.tc[hidden]){display:flex}
  .tc{display:grid;grid-template-columns:minmax(0,348px);justify-content:center;align-content:center;flex:1 1 0;min-width:0;padding:12px 22px;background:transparent;border:1px solid var(--line);border-radius:16px}
  .tc-h{margin-bottom:0}
  .tc-line{margin-bottom:2px}
  .tc-row{grid-template-columns:128px 150px 46px;gap:12px;justify-content:start;min-height:40px}
  .you-row .tc-cta{min-height:40px}
  .lv{gap:5px}
}

/* ---------- Where to buy (coming soon): small retailer boxes, deliberately not clickable ---------- */
.wtb{margin-top:14px}                                      /* 12px grid gap + 14px = 26px, the same spacing as the other blocks */
.wtb h3{margin:0 0 10px;font:600 16px var(--sans)}
.wtb-soon{font-weight:400;font-size:14px;color:var(--muted)}
.wtb-list{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.wtb-list li{margin:0;padding:9px 16px;border:1px solid var(--line);border-radius:var(--radius);background:transparent;color:var(--muted);font-size:14px;line-height:1.2;cursor:default;user-select:none;-webkit-user-select:none}

/* ---------- phones and tablets (up to 1039px; the compact website layout needs about 1040px) ----------
   Photo on the left; beside it, top to bottom: brand and category, the name, a square Overall box with the key stats as rows separated by thin lines.
   The text column is as tall as the photo tile (name at its top, the stats row flush with its bottom); then the Taste card. One radius throughout. */
@media (max-width:1039px){
  .prod.hs{grid-template-columns:minmax(0,42%) minmax(0,1fr);grid-template-rows:auto;gap:14px;align-items:stretch;padding:16px 0 24px}
  .hs-photo{grid-row:auto;align-self:stretch}
  .hs-head{grid-column:auto;grid-row:auto;display:flex;flex-direction:column}
  .prod.hs .hs-head > p.muted{margin:0 0 2px;font-size:13px;line-height:1.3}
  .prod.hs .hs-head h1{font-size:clamp(16px,4.8vw,20px);line-height:1.2;margin:0}
  .hs-facts-d{display:none}
  .hs-stats{display:flex;gap:6px;margin-top:26px;align-items:stretch}
  .hs-stats .obox.big{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:71px;aspect-ratio:1/1;height:auto;min-width:0;padding:0;margin:0;border-radius:var(--radius)}
  .hs-stats .obox .ol{font-size:11px;line-height:1.2}
  .hs-stats .obox .ov{font-size:24px;line-height:1.1}
  .hs-chips{display:flex;flex-direction:column;list-style:none;margin:0;padding:0;min-width:0;flex:1}
  .hs-chips li{flex:1;min-height:25px;display:flex;align-items:center;padding:0 2px;font-size:12px;line-height:1.25;color:var(--ink);white-space:nowrap}
  .hs-chips li + li{border-top:1px solid var(--tint-line)}
  .hs-cards{grid-column:1 / -1;grid-row:auto;margin-top:12px}
  .sc{display:block;border-radius:var(--radius)}
  .sc-o{display:none}                                       /* Overall is beside the photo here */
  .sc:has(.tc[hidden]){display:none}
  .tc{padding:14px}
  .tc-row{grid-template-columns:128px minmax(0,1fr) 46px;min-height:44px}
  .lf,.lf svg{width:20px;height:20px}
  .lv{gap:3px}
  /* photo tile as tall as the text column: the can keeps its size in the middle; the extra height above and below is a stretched strip taken from the
     photo's own top and bottom edge (that part of the photo is already a soft blur), so it joins without a seam */
  .hs-photo .thumb{height:100%;aspect-ratio:auto;container-type:size;position:relative;overflow:hidden;margin-bottom:0}
  .hs-photo .thumb::before,.hs-photo .thumb::after{content:"";position:absolute;left:0;right:0;height:max(0px,calc(50cqh - 50cqw));background-image:var(--ph);background-repeat:no-repeat;background-size:100% 3300%}
  .hs-photo .thumb::before{top:0;background-position:center top}
  .hs-photo .thumb::after{bottom:0;background-position:center bottom}
  .hs-photo .thumb picture,.hs-photo .thumb > img{position:relative;display:block;width:100cqw;flex:none;aspect-ratio:1/1}
  .hs-photo .thumb img{width:100%;height:100%;object-fit:contain}
}
@media (max-width:599px){.hs-head{min-height:42vw}}
@media (min-width:600px) and (max-width:1039px){
  .prod.hs{grid-template-columns:minmax(0,320px) minmax(0,1fr)}
  .hs-photo{align-self:start}
  .hs-photo .thumb{height:auto;aspect-ratio:1/1;container-type:normal}
  .hs-photo .thumb::before,.hs-photo .thumb::after{display:none}
  .hs-photo .thumb picture,.hs-photo .thumb > img{width:100%}
  .hs-head{justify-content:center}
}
@media (min-width:600px) and (max-width:1039px){            /* tablets: the same compact, centered Taste block as the website */
  .tc{display:grid;grid-template-columns:minmax(0,348px);justify-content:center;padding:18px 14px}
  .tc-row{grid-template-columns:128px 150px 46px;gap:12px;justify-content:start}
  .lv{gap:5px}
  .lf,.lf svg{width:26px;height:26px}
}
@media (max-width:380px){
  .hs-stats .obox.big{width:62px}
  .hs-stats .obox .ov{font-size:22px}
  .hs-chips li{padding:0 2px;font-size:11.5px}
  .tc-row{grid-template-columns:116px minmax(0,1fr) 38px;gap:6px}
  .tc-l{font-size:13px}
  .lf,.lf svg{width:18px;height:18px}
  .lv{gap:2px}
}
@media (max-width:340px){.hs-chips li{white-space:normal}}

/* ---------- the rating popup: a bottom sheet on phones, a centered card on larger screens ---------- */
dialog.rate-dlg{box-sizing:border-box;width:min(480px,calc(100% - 24px));max-height:90vh;overflow:auto;padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg);color:var(--ink);box-shadow:0 12px 40px rgba(42,42,36,.25)}
dialog.rate-dlg::backdrop{background:rgba(42,42,36,.5)}
.rate-dlg .panel.rate{position:relative;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.rate-dlg .panel.rate h2{margin:0 0 14px;padding-right:40px}
.rate-dlg h2:focus{outline:none}
.rd-x{position:absolute;top:-10px;right:-10px;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--muted);font:300 30px/1 var(--sans)}
.rd-x:hover{background:transparent;color:var(--ink);border:0}
.rs-empty{display:none;gap:12px;align-items:flex-start;margin-bottom:16px;padding:14px;background:var(--tint);border:1px dashed var(--tint-line);border-radius:14px}
.rs-empty strong{display:block;font-size:16px}
.rs-empty span{font-size:14px;color:var(--muted)}
.rs-empty .leaf{flex:none}
.leaf .lf{fill:none;stroke:var(--primary);stroke-width:1.6}
.leaf .lv{fill:none;stroke:var(--primary);stroke-width:1.4;opacity:.55}
.panel.rate[data-view=empty] .rs-empty{display:flex}
.rs-note{margin:14px 0 0;font-size:13px;color:var(--muted)}
.rs-err{margin:12px 0 0;padding:10px 12px;border-radius:var(--radius);background:var(--lo-bg);color:var(--lo-ink);font-size:14px}
.rs-cancel{display:none;min-height:44px;margin-top:6px;padding:0 6px;background:transparent;border:0;color:var(--muted);text-decoration:underline;font:inherit;font-size:14px}
.rs-cancel:hover{background:transparent;color:var(--ink);border:0}
.panel.rate[data-view=change] .rs-cancel{display:inline-flex}
@media (max-width:860px){dialog.rate-dlg{width:100%;max-width:none;margin:auto 0 0;border-width:1px 0 0;border-radius:var(--radius) var(--radius) 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom))}}

/* the two-tap widget: five numbered circles, then Yes / No */
.rw{position:relative}
.rw fieldset{border:0;margin:0;padding:0;min-width:0}
.rw legend,.rw-q-l{padding:0;margin:0 0 10px;font:600 15px var(--sans);color:var(--ink)}
.rw-row{display:flex;justify-content:space-between;gap:6px}
.rw-ends{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:var(--muted)}
.rw input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.rw label{-webkit-tap-highlight-color:transparent}
.rw .rw-buy{display:none;margin-top:18px}
.rw[data-state=tapped] .rw-buy{display:block;animation:rwfade .22s ease-out}
@keyframes rwfade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.sc-a{width:52px;height:52px;border-radius:50%;border:2px solid var(--line);background:var(--surface);display:grid;place-items:center;font:600 18px var(--sans);cursor:pointer;transition:background .15s,border-color .15s,color .15s,transform .15s}
.sc-a:hover{background:var(--tint);border-color:var(--primary)}
.sc-a:has(input:checked){background:var(--primary);border-color:var(--primary);color:var(--on-primary);box-shadow:inset 0 -3px 0 var(--accent);transform:scale(1.07)}
.sc-a:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:3px}
.rw-pills{display:flex;gap:10px}
.pill{flex:1 1 0;min-height:52px;justify-content:center;gap:8px;border-radius:999px;border:2px solid var(--primary);background:var(--surface);color:var(--primary);font:600 17px var(--sans);transition:background .15s,color .15s}
.pill:hover{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.pill.was{background:var(--tint)}
.pill:disabled{opacity:.6}

@media (prefers-reduced-motion:reduce){.rw,.rw *,.tc.just .you-row{animation:none!important;transition:none!important}}
@media (max-width:600px){.tried-badge{left:6px;top:6px;gap:4px;padding:3px 8px 3px 5px;font-size:12px}.tried-badge svg{width:13px;height:13px}}

/* ===================== Mobile v2 product page (phones, 640px and down; markup: page_product in build.py) =====================
   Peach hero with the round photo and Overall badge, three score rings, the Taste card (rate.js), Where to buy, Why it scores,
   and Label info folded at the end. The website markup (.m2-d) is hidden here, and this block is hidden on the website. */
@media (max-width:640px){
  body.m2-p{background:var(--page-m2);font-family:var(--body);color:var(--text-m2)}
  body.m2-p .m2-d{display:none}
  body.m2-p .m2-prod{display:block;padding-bottom:8px}
  body.m2-p .m2-prod h2,body.m2-p .m2-prod h3{letter-spacing:-.005em}
  .m2-hero{position:relative;overflow:hidden;margin-top:-1px;padding:0 0 28px;background:var(--peach);border-radius:0 0 44px 44px}
  .m2-hero::before{content:"";position:absolute;width:430px;height:430px;border-radius:50%;background:var(--blob);right:-190px;top:0}
  .m2-hero > *{position:relative}
  .m2-phw{position:relative;width:236px;height:236px;margin:14px auto 0}
  .m2-ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;overflow:hidden;background:#fff;box-shadow:0 18px 30px -12px rgba(80,40,10,.35)}
  .m2-ph picture{display:block;width:100%;height:100%}
  .m2-ph img{display:block;width:100%;height:100%;object-fit:cover}
  .m2-ph .soon{font:500 14px/1.3 var(--body);color:var(--muted-m2);padding:0 20%;text-align:center}
  .m2-ph :is(picture,img) ~ .soon{display:none}
  body.m2-p .m2-phw .m2-ob{position:absolute;right:-34px;bottom:-6px;width:108px;height:108px;border:6px solid var(--peach);gap:6px}
  body.m2-p .m2-phw .m2-ob.prov{outline-offset:-9px}
  body.m2-p .m2-phw .m2-ob .v{font-size:38px}
  .m2-who{margin:22px 24px 0;font:600 17px/1.3 var(--body);color:var(--brown)}
  .m2-who a{color:var(--brown);text-decoration:none}
  .m2-who a:hover{text-decoration:underline}
  .m2-name{margin:6px 24px 0;font:400 34px/1.08 var(--display);color:var(--ink-m2);overflow-wrap:break-word}
  .m2-stats{display:flex;flex-wrap:wrap;gap:4px 20px;margin:14px 24px 0;font-size:16px;color:var(--text-m2)}
  .m2-stats > span{white-space:nowrap}
  .m2-stats b{color:var(--ink-m2);font-weight:700}
  .m2-rings{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:26px 16px 6px;text-align:center}
  .m2-rings > li > span{display:block}
  body.m2-p .m2-rings .m2-ring .n{font-size:20px}
  .m2-rings .lab{display:block;margin-top:8px;font:600 15px/1.2 var(--body);color:var(--text-m2)}
  .m2-card,.m2-sec{margin:22px 16px 0}
  .m2-card{padding:22px 20px;background:var(--cream);border-radius:28px}
  .m2-card.m2-alt{background:var(--cream-2);box-shadow:0 1px 0 rgba(0,0,0,.04)}
  .m2-prod h2{margin:0;font:400 26px/1.15 var(--display);color:var(--ink-m2)}
  /* Taste */
  .m2-taste[hidden]{display:none}
  .m2-th{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
  .m2-th .tc-n{font-size:16px;color:var(--muted-m2)}
  .m2-th .tc-n b{color:var(--ink-m2)}
  .m2-lvrow{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0 0}
  .m2-taste .lv{gap:10px}
  .m2-taste .lf,.m2-taste .lf svg{width:32px;height:32px}
  .m2-taste .lf path{stroke:var(--olive);stroke-width:1.5}
  .m2-taste .lfill path{fill:var(--olive);stroke:var(--olive)}
  .m2-taste .lv.you .lfill path{fill:var(--accent);stroke:var(--olive)}
  .m2-taste .tc-cv{font:400 32px/1 var(--display);color:var(--olive);white-space:nowrap}
  .m2-taste .tc-cv small{font:400 18px var(--body);color:var(--muted-m2)}
  .m2-taste .tc-line{margin:14px 0 18px;font-size:16px}
  .m2-taste .tc-line b{color:var(--ink-m2)}
  .m2-taste[data-state=empty] .m2-lvrow{display:none}
  .m2-you{display:none;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;font:600 15px var(--body);color:var(--ink-m2)}
  .m2-you .lf,.m2-you .lf svg{width:24px;height:24px}
  .m2-you .lv{gap:6px}
  .m2-you .tc-yv{font:400 20px var(--display);color:var(--ink-m2)}
  .m2-you .tc-yv small{font:400 14px var(--body);color:var(--muted-m2)}
  .m2-taste[data-state=rated] .m2-you{display:flex}
  .m2-change{display:none;align-items:center;justify-content:center;min-height:44px;font:600 17px var(--body);color:var(--link);text-underline-offset:4px}
  .m2-taste[data-state=rated] .tc-cta{display:none}
  .m2-taste[data-state=rated] .m2-change{display:flex}
  @keyframes m2pulse{0%{background:var(--tint)}100%{background:var(--cream)}}
  .m2-taste.just{animation:m2pulse 1.4s ease-out}
  /* Where to buy */
  .m2-wtbh{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 12px}
  .m2-tag{font:600 14px/1 var(--body);color:var(--muted-m2);background:var(--seg-m2);border-radius:999px;padding:8px 12px}
  .m2-chips{list-style:none;display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0}
  .m2-chips li{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;border:1.5px solid var(--line-m2);color:var(--muted-m2);font-size:16px;white-space:nowrap}
  /* Why it scores */
  .m2-why h2{font-size:28px;margin-bottom:18px}
  .m2-wr{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;margin-bottom:22px}
  .m2-sq{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:var(--hi-bg);color:var(--hi-ink);font:400 20px var(--display)}
  .m2-sq.mid{background:var(--md-bg);color:var(--md-ink)}.m2-sq.low{background:var(--lo-bg);color:var(--lo-ink)}.m2-sq.missing{background:var(--na-bg);color:var(--muted-m2)}
  .m2-wr h3{margin:0;font:700 17px/1.3 var(--body);color:var(--ink-m2)}
  .m2-wr p{margin:4px 0 10px;font-size:16px;line-height:1.45;color:var(--text-m2)}
  .m2-bar{position:relative;height:10px;border-radius:99px;background:#ECE5D9}
  .m2-bar i{position:absolute;inset:0 auto 0 0;border-radius:99px;background:var(--bar-hi)}
  .m2-bar i.mid{background:var(--bar-md)}.m2-bar i.low{background:var(--bar-lo)}
  .m2-bar u{position:absolute;top:-4px;width:3px;height:18px;margin-left:-1.5px;border-radius:2px;background:var(--ink-m2)}
  .m2-avgl{position:relative;height:22px;font-size:14px;color:var(--muted-m2)}
  .m2-avgl span{position:absolute;top:4px;transform:translateX(-50%);white-space:nowrap}
  .m2-avgl span.l{transform:none}.m2-avgl span.r{transform:translateX(-100%)}
  .m2-why .notice{margin:-10px 0 18px;font-size:15px}
  .m2-how{display:inline-flex;align-items:center;min-height:44px;font:600 17px var(--body);color:var(--link);text-underline-offset:4px}
  .m2-how:hover{color:var(--brown)}
  /* Label info (folded) */
  .m2-more{margin:22px 16px 0;padding:4px 20px;background:var(--cream-2);border-radius:22px}
  .m2-more summary{display:flex;align-items:center;justify-content:space-between;min-height:56px;font:400 22px var(--display);color:var(--ink-m2);list-style:none;cursor:pointer}
  .m2-more summary::-webkit-details-marker{display:none}
  .m2-more summary::after{content:"+";font:400 26px var(--body);color:var(--olive)}
  .m2-more[open] summary::after{content:"\2212"}
  .m2-more-b{padding:0 0 18px;font-size:16px}
  .m2-more-b h3{font:700 17px/1.3 var(--body);color:var(--ink-m2);margin:0 0 6px}
  .m2-more-b table.facts{font-size:15px}
  .m2-more-b table.facts td{border-bottom-color:var(--line-m2)}
  /* the rest of the page (You may also like, photo credit) follows on the page background */
  body.m2-p main > .wrap{padding-top:8px}
  body.m2-p main > .wrap > section.block h2{font:400 24px/1.2 var(--display);color:var(--ink-m2)}
  body.m2-p .ph .ph-ob span{font-size:12px}                     /* "You may also like" cards: 12px minimum for labels on phones */
}
@media (max-width:640px) and (prefers-reduced-motion:reduce){.m2-taste.just{animation:none}}

/* Mobile v2 "You may also like" (phones): the same two-up card as the Products grid on phones (site.css). */
@media (max-width:640px){
  body.m2-p section.block .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  body.m2-p section.block .grid > .pcard{display:flex;flex-direction:column;padding:10px 10px 14px;background:var(--cream);border:0;border-radius:24px}
  body.m2-p section.block .pcard > a.pc-link{display:flex;flex-direction:column;flex:1;color:var(--ink-m2)}
  body.m2-p section.block .pcard .ph{position:relative;margin:0;border-radius:18px;background:var(--peach)}
  body.m2-p section.block .pcard .ph img{object-fit:cover}
  body.m2-p section.block .pcard :is(.ph-tried,.pc-meta,.pc-prov,.pc-foot){display:none}
  body.m2-p section.block .pcard .ph-ob{top:6px;right:6px;width:60px;height:60px;min-width:0;padding:0;border-radius:50%;border:3px solid var(--cream);box-shadow:none;display:grid;place-content:center;justify-items:center;gap:3px;line-height:1}
  body.m2-p section.block .pcard .ph-ob.prov{outline:2px dashed currentColor;outline-offset:-3px}
  body.m2-p section.block .pcard .ph-ob span{font:600 12px/1 var(--body)}
  body.m2-p section.block .pcard .ph-ob b{font:400 19px/1 var(--display)}
  body.m2-p section.block .pcard .m2-who{display:block;margin:12px 4px 0;font:600 13px/1.3 var(--body);color:var(--brown)}
  body.m2-p section.block .pcard .pc-name{margin:3px 4px 0;font:400 17px/1.15 var(--display);color:var(--ink-m2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:normal}
  body.m2-p section.block .m2-st{display:block;margin:8px 4px 12px;font-size:14px;line-height:1.35;color:var(--text-m2)}
  body.m2-p section.block .m2-st b{color:var(--ink-m2);font-weight:700}
  body.m2-p section.block .m2-minis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:auto;padding-top:10px;border-top:1px solid var(--line-m2);text-align:center}
  body.m2-p section.block .m2-minis > div > span{display:block}
  body.m2-p section.block .m2-minis .lab{display:block;margin-top:4px;font:600 12px/1.2 var(--body);color:var(--muted-m2)}
}

/* Why it scores and Label info are rendered once (page_product) for every screen size. Website: the usual panels, with
   Label info as an open <details> whose heading reads like the other panel headings. Phones: the mobile v2 cards. */
details.li > summary{list-style:none;cursor:pointer}
details.li > summary::-webkit-details-marker{display:none}
details.li > summary h2{margin:0 0 10px}
details.li:not([open]) > summary h2{margin:0}
@media (max-width:640px){
  body.m2-p main .wrap{padding:0}
  body.m2-p .panel.why{margin:22px 16px 0;padding:22px 20px 14px;background:var(--cream-2);border:0;border-radius:28px;box-shadow:0 1px 0 rgba(0,0,0,.04)}
  body.m2-p .panel.why h2{margin:0 0 18px;font:400 28px/1.15 var(--display);color:var(--ink-m2)}
  body.m2-p .why .why-row{grid-template-columns:64px minmax(0,1fr);grid-template-areas:"s l" "s b";gap:2px 14px;padding:0 0 18px;border-top:0}
  body.m2-p .why .why-l{font:700 17px/1.3 var(--body);color:var(--ink-m2)}
  body.m2-p .why .badge{align-self:start;width:64px;height:64px;min-height:0;border-radius:18px;font:400 20px var(--display)}
  body.m2-p .why .why-b p{margin:2px 0 10px;font-size:16px;line-height:1.45;color:var(--text-m2)}
  body.m2-p .why .wtrack{background:#ECE5D9}
  body.m2-p .why .tick-l{font-size:14px;color:var(--muted-m2)}
  body.m2-p .why .notice{font-size:15px}
  body.m2-p .why-link{margin:0}
  body.m2-p .why-link a{display:inline-flex;align-items:center;min-height:44px;font:600 17px var(--body);color:var(--link);text-underline-offset:4px}
  body.m2-p details.li{margin:22px 16px 0;border:0}
  body.m2-p details.li > summary h2{margin:0;font:inherit;color:inherit}
  body.m2-p .block{margin:28px 16px 0}
  body.m2-p .hs-credit{margin:18px 16px 0}
}
