/* Kefir whey (19903) story sections. Loaded only on that page ('assets' => 'whey'); class prefix wh-.
   Colours come from product-story.css (--s-navy, --s-sky, --s-mist, --s-ice, --s-yellow, --s-line, --s-muted). */

/* ---------- purchase area ---------- */
body.kls-whey .wh-set {display:flex; align-items:center; gap:10px; margin:0 0 14px; font-size:16px; line-height:1.5; font-weight:600; color:var(--s-navy)}
body.kls-whey .wh-set .kls-ic {flex:none; width:40px; height:40px}
body.kls-whey .wh-trust {list-style:none; margin:14px 0 4px!important; padding:14px 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; border-top:1.5px solid var(--s-line); border-bottom:1.5px solid var(--s-line)}
body.kls-whey .wh-trust li {display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; margin:0!important}
body.kls-whey .wh-trust .kls-ic {width:44px; height:44px}
body.kls-whey .wh-trust strong {display:block; font-size:15px; line-height:1.35; color:var(--s-navy); text-wrap:balance}
body.kls-whey .wh-trust li > span > span {display:block; margin-top:2px; font-size:14px; line-height:1.45; color:var(--s-muted); text-wrap:balance}

/* ---------- shared bits ---------- */
body.kls-whey .kls-story-body :is(.wh-what, .wh-uses) h3 {margin:0 0 4px; font-size:19px; line-height:1.35; color:var(--s-navy)}
body.kls-whey .kls-story-body :is(.wh-what, .wh-uses) p:not(.kls-eyebrow, .kls-lede) {margin:0; font-size:17px; line-height:1.7; color:#33435C}

/* ---------- where whey comes from: three pictures joined by a dripping line ---------- */
body.kls-whey .wh-what {background:linear-gradient(180deg,var(--s-mist),#fff)}
body.kls-whey .wh-flow {list-style:none; margin:0 auto; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 28px; max-width:1040px; counter-reset:none}
body.kls-whey .wh-flow li {position:relative; margin:0; display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; padding:0 8px}
body.kls-whey .wh-flow li:not(:last-child)::after {content:""; position:absolute; top:96px; right:-26px; width:24px; height:24px; border-top:3px solid var(--s-navy); border-right:3px solid var(--s-navy); transform:rotate(45deg) scale(.7); opacity:.35}
body.kls-whey .wh-flow-pic {width:100%; max-width:240px; height:210px; object-fit:contain; margin-bottom:8px}
body.kls-whey .wh-flow-n, body.kls-whey .wh-idea-n {display:inline-grid; place-items:center; width:32px; height:32px; margin-bottom:4px; border-radius:50%; background:var(--s-navy); color:#fff; font-weight:800; font-size:15px}
/* A transition, not an animation: the shared script pauses animations while scrolling, which would freeze them at opacity 0.
   The script adds wh-wait only when it can also remove it, so without JS the pictures simply show. */
body.kls-whey .wh-flow li {transition:opacity .6s ease, transform .6s ease; transition-delay:calc(var(--i) * .3s)}
body.kls-whey .wh-flow.wh-wait li {opacity:0; transform:translateY(12px)}
body.kls-whey .wh-gold {display:flex; align-items:center; justify-content:center; gap:18px; max-width:720px; margin:40px auto 0; padding:20px 26px; border-radius:20px; background:var(--s-navy)}
body.kls-whey .wh-gold-mark {flex:none; width:46px; height:46px; border-radius:50% 50% 50% 8%; background:var(--s-yellow); box-shadow:inset -6px -6px 0 rgba(36,64,106,.14); transform:rotate(-45deg)}
body.kls-whey .kls-story-body .wh-gold h3 {color:var(--s-yellow); margin:0 0 2px}
body.kls-whey .kls-story-body .wh-gold p {color:#DDE8F5!important; font-size:16px!important; line-height:1.6!important}

/* ---------- eight uses ---------- */
body.kls-whey .wh-uses {background:#fff}
body.kls-whey .wh-switch {display:flex; flex-wrap:wrap; justify-content:center; gap:6px; width:max-content; max-width:100%; margin:0 auto 28px; padding:5px; border-radius:999px; background:var(--s-ice); box-shadow:inset 0 0 0 1.5px var(--s-line)}
body.kls-whey #page .wh-switch button {min-height:48px; padding:6px 22px; border:0; border-radius:999px; background:transparent; color:var(--s-navy); font-size:17px; font-weight:800; text-transform:none; letter-spacing:0}
body.kls-whey #page .wh-switch button[aria-pressed="true"] {background:var(--s-navy); color:#fff}
body.kls-whey .wh-ideas {list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px 28px}
body.kls-whey .wh-ideas[data-group="drink"] .wh-idea:not([data-group="drink"]),
body.kls-whey .wh-ideas[data-group="cook"] .wh-idea:not([data-group="cook"]),
body.kls-whey .wh-ideas[data-group="home"] .wh-idea:not([data-group="home"]) {display:none}
body.kls-whey .wh-idea {margin:0; display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px}
body.kls-whey .wh-idea-pic {width:100%; max-width:200px; height:170px; object-fit:contain; margin-bottom:6px}
@media (prefers-reduced-motion:reduce) {body.kls-whey .wh-flow li {transition:none!important}}

/* ---------- tablet and phone ---------- */
@media (max-width:1023px) {
 body.kls-whey .wh-ideas {grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 18px}
 body.kls-whey .wh-flow {gap:0 12px}
 body.kls-whey .wh-flow li:not(:last-child)::after {right:-14px}
}
@media (max-width:767px) {
 body.kls-whey .wh-trust {gap:8px}
 body.kls-whey .wh-trust strong {font-size:14px}
 body.kls-whey .wh-trust li > span > span {font-size:13px}
 body.kls-whey .wh-flow {grid-template-columns:minmax(0,1fr); gap:28px}
 body.kls-whey .wh-flow li:not(:last-child)::after {top:auto; bottom:-24px; right:calc(50% - 12px); transform:rotate(135deg) scale(.7)}
 body.kls-whey .wh-flow-pic {height:170px}
 body.kls-whey .wh-gold {flex-direction:column; text-align:center; padding:18px}
 body.kls-whey #page .wh-switch button {padding:6px 16px; font-size:16px}
 /* One row per use: picture left, number + name + text right. */
 body.kls-whey .wh-ideas {grid-template-columns:minmax(0,1fr); gap:22px}
 body.kls-whey .wh-idea {display:grid; grid-template-columns:104px minmax(0,1fr); grid-template-rows:auto auto 1fr; column-gap:14px; align-items:start; text-align:left}
 body.kls-whey .wh-idea-pic {grid-row:1 / span 3; width:104px; height:104px; margin:0}
 body.kls-whey .wh-idea .wh-idea-n {width:26px; height:26px; font-size:13px; margin:0}
 body.kls-whey .kls-story-body .wh-uses p:not(.kls-eyebrow, .kls-lede) {font-size:16px; line-height:1.65}
 body.kls-whey .kls-story-body .wh-uses h3 {font-size:18px; margin:2px 0}
}
