/* Greek yogurt maker (6112) story sections. Loaded only on that page ('assets' => 'yogurt'); class prefix yg-.
   Colours come from product-story.css (--s-navy, --s-sky, --s-mist, --s-ice, --s-yellow, --s-line, --s-muted, --s-price). */

/* ---------- purchase area ---------- */
body.kls-yogurt .kls-highlights .kls-hl-logo {width:56px; height:auto; object-fit:contain}
body.kls-yogurt .yg-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-yogurt .yg-set .kls-ic {flex:none; width:40px; height:40px}
body.kls-yogurt .yg-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-yogurt .yg-trust li {display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; margin:0!important}
body.kls-yogurt .yg-trust .kls-ic {width:44px; height:44px}
body.kls-yogurt .yg-trust strong {display:block; font-size:15px; line-height:1.35; color:var(--s-navy); text-wrap:balance}
body.kls-yogurt .yg-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-yogurt .kls-story-body :is(.yg-what, .yg-steps, .yg-calc, .yg-uses, .yg-care) h3 {margin:0 0 4px; font-size:19px; line-height:1.35; color:var(--s-navy)}
body.kls-yogurt .kls-story-body :is(.yg-what, .yg-steps, .yg-calc, .yg-uses, .yg-care) p:not(.kls-eyebrow, .kls-lede) {margin:0; font-size:17px; line-height:1.7; color:#33435C}
body.kls-yogurt .yg-step-n {display:inline-grid; place-items:center; flex:none; width:34px; height:34px; border-radius:50%; background:var(--s-navy); color:#fff; font-weight:800; font-size:16px}

/* ---------- the box ---------- */
body.kls-yogurt .yg-what {background:#fff}
body.kls-yogurt .yg-what-grid {display:grid; grid-template-columns:minmax(0,460px) minmax(0,1fr); justify-content:center; gap:48px; align-items:center; max-width:1040px; margin:0 auto}
body.kls-yogurt .yg-side {display:grid; gap:16px; align-content:center}
body.kls-yogurt .yg-specs {margin-top:8px!important}
body.kls-yogurt .yg-parts-pic {position:relative; border-radius:24px; overflow:hidden; background:#fff; box-shadow:0 14px 34px rgba(36,64,106,.12)}
body.kls-yogurt .yg-parts-photo {display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover}
body.kls-yogurt #page .yg-pin {position:absolute; left:var(--x); top:var(--y); width:48px; height:48px; margin:-24px 0 0 -24px; padding:0; border:0; border-radius:50%; background:transparent; cursor:pointer; text-transform:none; letter-spacing:0}
body.kls-yogurt .yg-pin > span:first-child {position:absolute; inset:7px; display:grid; place-items:center; border-radius:50%; background:var(--s-yellow); color:var(--s-navy); font-size:16px; font-weight:800; box-shadow:0 0 0 3px #fff, 0 4px 10px rgba(36,64,106,.3)}
body.kls-yogurt .yg-pin::before {content:""; position:absolute; inset:2px; border-radius:50%; border:2px solid var(--s-yellow); opacity:0}
body.kls-yogurt .yg-pin[aria-expanded="true"] > span:first-child {background:var(--s-navy); color:#fff}
body.kls-yogurt .yg-parts-pic:not(:hover) .yg-pin[aria-expanded="false"]::before {animation:yg-ping 2.4s ease-out infinite}
@keyframes yg-ping {0% {opacity:.9; transform:scale(.7)} 80%,100% {opacity:0; transform:scale(1.5)}}
body.kls-yogurt.kls-scrolling .yg-pin::before {animation-play-state:paused!important}
body.kls-yogurt .yg-part-tabs {display:flex; flex-wrap:wrap; gap:8px}
body.kls-yogurt #page .yg-part-tab {display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 14px 8px 8px; border:1.5px solid var(--s-line); border-radius:999px; background:#fff; color:var(--s-navy); font-size:15px; font-weight:700; text-transform:none; letter-spacing:0}
body.kls-yogurt .yg-part-tab b {display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--s-yellow); font-size:14px}
body.kls-yogurt #page .yg-part-tab[aria-pressed="true"] {border-color:var(--s-navy); background:var(--s-navy); color:#fff}
body.kls-yogurt #page .yg-part-tab[aria-pressed="true"] b {background:#fff; color:var(--s-navy)}
body.kls-yogurt .yg-part-info {padding:18px 22px; border-radius:18px; background:var(--s-navy); min-height:118px}
body.kls-yogurt .kls-story-body .yg-part-info h3 {color:#fff}
body.kls-yogurt .kls-story-body .yg-part-info p {color:#DDE8F5}
body.kls-yogurt .yg-specs {margin:0; display:grid; grid-template-columns:1fr 1fr; gap:16px 22px}
body.kls-yogurt .yg-specs > div {display:grid; grid-template-columns:48px minmax(0,1fr); column-gap:14px; align-items:start; align-content:start}
body.kls-yogurt .yg-specs .kls-ic {grid-row:1 / span 2; width:48px; height:48px}
body.kls-yogurt .yg-specs dt {margin:0; font-size:15px; font-weight:800; color:var(--s-muted)}
body.kls-yogurt .yg-specs dd {margin:0; font-size:17px; line-height:1.6; font-weight:600; color:var(--s-navy)}

/* ---------- three steps + film (14 s, four pictures × 3.5 s, frame 0 = picture 1) ---------- */
body.kls-yogurt .yg-steps {background:linear-gradient(180deg,var(--s-mist),#fff)}
body.kls-yogurt .yg-steps-grid {display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:48px; align-items:center}
body.kls-yogurt .yg-film {overflow:hidden; border-radius:24px; background:#fff; box-shadow:0 14px 34px rgba(36,64,106,.14)}
body.kls-yogurt .yg-film-pics {position:relative; aspect-ratio:3/2; overflow:hidden; background:#EAF6FC}
body.kls-yogurt .yg-film-f {position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0}
body.kls-yogurt .yg-film-f[style*="--i:0"] {opacity:1}
body.kls-yogurt .yg-film-caps {display:grid; padding:12px 16px 14px}
body.kls-yogurt .yg-film-cap {grid-area:1/1; display:flex; align-items:center; gap:10px; font-size:17px; font-weight:800; line-height:1.35; color:var(--s-navy); opacity:0}
body.kls-yogurt .yg-film-cap[style*="--i:0"] {opacity:1}
body.kls-yogurt .yg-film-cap b {display:inline-grid; place-items:center; flex:none; width:28px; height:28px; border-radius:50%; background:var(--s-navy); color:#fff; font-size:15px}
body.kls-yogurt .yg-steps-grid.is-playing :is(.yg-film-f, .yg-film-cap) {animation:yg-film 14s ease-in-out infinite; animation-delay:calc(var(--i) * 3.5s)}
body.kls-yogurt .yg-steps-grid.is-playing .yg-film-f {animation-name:yg-film-zoom}
@keyframes yg-film {0%,25% {opacity:1} 27%,98% {opacity:0} 100% {opacity:1}}
@keyframes yg-film-zoom {0% {opacity:1; transform:scale(1)} 25% {opacity:1; transform:scale(1.045)} 27% {opacity:0; transform:scale(1.05)} 98% {opacity:0; transform:scale(1)} 100% {opacity:1; transform:scale(1)}}
body.kls-yogurt .yg-step-list {list-style:none; margin:0; padding:0; display:grid; gap:10px}
body.kls-yogurt .yg-step-list li {display:flex; gap:14px; align-items:flex-start; margin:0; padding:14px 16px; border-radius:16px; transition:background .3s}
/* Step 1 = picture 1, step 2 = picture 2, step 3 = pictures 3–4. */
body.kls-yogurt .yg-steps-grid.is-playing .yg-step-list li {animation:none 14s infinite}
body.kls-yogurt .yg-steps-grid.is-playing .yg-step-list li[data-step="0"] {animation-name:yg-li1}
body.kls-yogurt .yg-steps-grid.is-playing .yg-step-list li[data-step="1"] {animation-name:yg-li2}
body.kls-yogurt .yg-steps-grid.is-playing .yg-step-list li[data-step="2"] {animation-name:yg-li3}
@keyframes yg-li1 {0%,25% {background:#fff} 25.4%,100% {background:transparent}}
@keyframes yg-li2 {0%,25% {background:transparent} 25.4%,50% {background:#fff} 50.4%,100% {background:transparent}}
@keyframes yg-li3 {0%,50% {background:transparent} 50.4%,100% {background:#fff}}
body.kls-yogurt #page .yg-video {position:relative; display:block; width:100%; max-width:720px; margin:36px auto 0; padding:0; border:0; border-radius:18px; overflow:hidden; background:#000; cursor:pointer; text-transform:none; letter-spacing:0; box-shadow:0 10px 30px rgba(36,64,106,.15)}
body.kls-yogurt #page .yg-video img {display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; opacity:.92}
body.kls-yogurt .yg-video-play {position:absolute; left:50%; top:45%; width:68px; height:48px; margin:-24px 0 0 -34px; border-radius:14px; background:#E0402B}
body.kls-yogurt .yg-video-play::after {content:""; position:absolute; left:27px; top:14px; border-left:18px solid #fff; border-top:10px solid transparent; border-bottom:10px solid transparent}
body.kls-yogurt .yg-video-cap {position:absolute; left:0; right:0; bottom:0; padding:12px 16px; background:linear-gradient(transparent,rgba(0,0,0,.75)); color:#fff; font-size:16px; font-weight:800; text-align:left}
body.kls-yogurt .yg-video-frame {display:block; width:100%; max-width:720px; margin:36px auto 0; aspect-ratio:16/9; border:0; border-radius:18px}

/* ---------- yield tool ---------- */
body.kls-yogurt .yg-calc {background:var(--s-navy)}
body.kls-yogurt .yg-calc .kls-eyebrow {color:var(--s-yellow)}
body.kls-yogurt .yg-calc .kls-head h2 {color:#fff}
body.kls-yogurt .yg-calc .kls-lede {color:#C8D6E8}
body.kls-yogurt .yg-tool {display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); grid-template-areas:"in result"; gap:28px 36px; max-width:1000px; margin:0 auto; padding:30px; border-radius:24px; background:#fff}
body.kls-yogurt .yg-tool-in {grid-area:in; display:grid; gap:20px; align-content:start}
body.kls-yogurt .yg-field {border:0; margin:0; padding:0; min-width:0}
body.kls-yogurt .yg-field legend {padding:0; margin:0 0 8px; font-size:17px; font-weight:800; color:var(--s-navy)}
body.kls-yogurt .yg-field output {color:var(--s-blue)}
body.kls-yogurt .yg-chips {display:flex; flex-wrap:wrap; gap:8px; margin:0 0 6px}
body.kls-yogurt #page .yg-chip {min-height:44px; padding:8px 16px; border:1.5px solid var(--s-line); border-radius:999px; background:#fff; color:var(--s-navy); font-size:15px; font-weight:700; text-transform:none; letter-spacing:0}
body.kls-yogurt #page .yg-chip[aria-pressed="true"] {border-color:var(--s-navy); background:var(--s-navy); color:#fff}
body.kls-yogurt .yg-range {width:100%; height:44px; margin:0; accent-color:var(--s-navy); background:transparent}
body.kls-yogurt .yg-stage {padding:16px 18px; border-radius:16px; background:var(--s-cream)}
body.kls-yogurt .kls-story-body .yg-calc p.yg-stage-name {font-size:20px; font-weight:800; color:var(--s-navy)}
body.kls-yogurt .kls-story-body .yg-calc p.yg-stage-text {font-size:16px; line-height:1.6}
body.kls-yogurt .yg-stage-recipe[hidden] {display:none}
body.kls-yogurt .yg-stage-recipe {display:inline-block; margin-top:6px; font-size:15px; font-weight:700; color:var(--s-blue)!important; text-decoration:underline; text-underline-offset:3px}
body.kls-yogurt .yg-result {grid-area:result; display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; padding:16px 16px 20px; border-radius:18px; background:var(--s-ice)}
body.kls-yogurt .yg-box-wrap {width:100%; max-width:360px}
body.kls-yogurt .yg-box {display:block; width:100%; height:auto; overflow:visible}
body.kls-yogurt .yg-box :is(.yg-svg-whey, .yg-svg-yog) {transition:transform .6s cubic-bezier(.2,.8,.2,1)}
body.kls-yogurt .yg-box .yg-spoon {transform:translate(205px, var(--sy,100px)); transition:transform .6s cubic-bezier(.2,.8,.2,1)}
body.kls-yogurt .yg-box .yg-spoon-in {transform:rotate(68deg); transition:transform .6s cubic-bezier(.2,.8,.2,1)}
body.kls-yogurt .yg-box:not([data-stage="0"]) .yg-spoon-in {transform:rotate(6deg)}
body.kls-yogurt .yg-box .yg-drips circle {opacity:0}
body.kls-yogurt .yg-box-wrap.is-playing .yg-drips circle {animation:yg-drip 1.6s ease-in infinite}
body.kls-yogurt .yg-box-wrap.is-playing .yg-drips circle:nth-child(2) {animation-delay:.55s}
body.kls-yogurt .yg-box-wrap.is-playing .yg-drips circle:nth-child(3) {animation-delay:1.1s}
body.kls-yogurt .yg-box[data-stage="3"] .yg-drips {display:none}
@keyframes yg-drip {0% {opacity:0; transform:translateY(-4px)} 15% {opacity:1} 85% {opacity:1} 100% {opacity:0; transform:translateY(36px)}}
body.kls-yogurt .yg-key {display:inline-block; width:18px; height:18px; margin-right:8px; border-radius:5px; vertical-align:-2px}
body.kls-yogurt .yg-key--y {background:#FFF4D6; box-shadow:inset 0 0 0 2px #C9B98A}
body.kls-yogurt .yg-key--w {background:#EADC97; box-shadow:inset 0 0 0 2px #C9B661}
body.kls-yogurt .kls-story-body .yg-calc p.yg-result-g {font-size:26px; line-height:1.3; font-weight:800; color:var(--s-navy)}
body.kls-yogurt .kls-story-body .yg-calc p.yg-result-w {font-size:17px; font-weight:700; color:#8A7A2E}

/* ---------- ideas ---------- */
body.kls-yogurt .yg-uses {background:#fff}
body.kls-yogurt .yg-switch {display:flex; 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-yogurt #page .yg-switch button {display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:6px 22px 6px 10px; 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-yogurt .yg-switch .kls-ic {width:34px; height:34px}
body.kls-yogurt #page .yg-switch button[aria-pressed="true"] {background:var(--s-navy); color:#fff}
body.kls-yogurt .yg-ideas {list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px}
body.kls-yogurt .yg-ideas[data-kind="yogurt"] .yg-idea--whey, body.kls-yogurt .yg-ideas[data-kind="whey"] .yg-idea--yogurt {display:none}
body.kls-yogurt .yg-idea {margin:0; display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; animation:yg-in .45s both; animation-delay:calc(var(--i) * 70ms)}
@keyframes yg-in {from {opacity:0; transform:translateY(10px)}}
body.kls-yogurt .yg-idea-pic {width:100%; max-width:220px; height:auto; aspect-ratio:1; object-fit:contain; margin-bottom:6px}
@media (prefers-reduced-motion:reduce) {body.kls-yogurt :is(.yg-idea, .yg-steps-grid.is-playing .yg-film-f, .yg-steps-grid.is-playing .yg-film-cap, .yg-steps-grid.is-playing .yg-step-list li, .yg-pin::before, .yg-box-wrap.is-playing .yg-drips circle) {animation:none!important}}

/* ---------- care ---------- */
body.kls-yogurt .yg-care {background:linear-gradient(180deg,var(--s-mist),#fff)}
body.kls-yogurt .yg-care-grid {display:grid; grid-template-columns:minmax(0,380px) minmax(0,1fr); gap:48px; align-items:center; max-width:1040px; margin:0 auto}
body.kls-yogurt .yg-care-pic {width:100%; height:auto}
body.kls-yogurt .yg-rules {list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:24px 32px}
body.kls-yogurt .yg-rules li {display:flex; gap:14px; align-items:flex-start; margin:0}
body.kls-yogurt .yg-rules .kls-ic {flex:none; width:52px; height:52px}

/* ---------- delivery (room temperature first, as on the grains page) ---------- */
body.kls-yogurt .yg-delivery {background:#fff}
@media (min-width:1024px) {body.kls-yogurt .yg-delivery .kls-dfacts {grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- tablet and phone ---------- */
@media (max-width:1023px) {
 body.kls-yogurt .yg-what-grid, body.kls-yogurt .yg-steps-grid {grid-template-columns:minmax(0,1fr); gap:32px}
 body.kls-yogurt .yg-parts, body.kls-yogurt .yg-side {max-width:620px; margin:0 auto; width:100%}
 body.kls-yogurt .yg-film {max-width:680px; width:100%; margin:0 auto}
 body.kls-yogurt .yg-ideas {grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 18px}
 body.kls-yogurt .yg-care-grid {grid-template-columns:minmax(0,1fr); gap:24px}
 body.kls-yogurt .yg-care-pic {max-width:320px; margin:0 auto}
}
@media (max-width:767px) {
 body.kls-yogurt .yg-trust {gap:8px}
 body.kls-yogurt .yg-trust strong {font-size:14px}
 body.kls-yogurt .yg-trust li > span > span {font-size:13px}
 body.kls-yogurt .yg-specs {grid-template-columns:minmax(0,1fr)}
 body.kls-yogurt .yg-film-caps {padding:10px 12px 12px}
 body.kls-yogurt .yg-film-cap {font-size:15px}
 body.kls-yogurt .yg-step-list li {padding:12px 10px}
 body.kls-yogurt .yg-tool {grid-template-columns:minmax(0,1fr); grid-template-areas:"in" "result"; padding:18px; gap:20px}
 body.kls-yogurt .kls-story-body .yg-calc p.yg-result-g {font-size:21px}
 body.kls-yogurt .kls-story-body .yg-calc p.yg-result-w {font-size:16px}
 body.kls-yogurt #page .yg-switch button {padding:6px 16px 6px 8px; font-size:16px}
 body.kls-yogurt .yg-ideas {gap:22px 14px}
 body.kls-yogurt .kls-story-body .yg-uses p {font-size:15px; line-height:1.6}
 body.kls-yogurt .kls-story-body .yg-uses h3 {font-size:17px}
 body.kls-yogurt .yg-rules {grid-template-columns:minmax(0,1fr)}
 body.kls-yogurt .yg-video-cap {font-size:14px}
}
