/* Bean-origin balance is independent of the later coffee/chicory mix. */
#bean-type-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
.blend-card-images{display:flex;height:100%;width:100%}.blend-card-images img{width:50%;height:100%;object-fit:cover}.blend-entry strong{font-size:clamp(24px,3vw,40px)}
#bean-blend-panel[hidden]{display:none!important}
.viewport.bean-blend-view{display:block;height:auto;max-height:none;min-height:0;padding:58px 24px 22px;background:linear-gradient(140deg,#fffaf1,#f3e8d8)!important}
.viewport.bean-blend-view #bean-type-choices,.viewport.bean-blend-view canvas,.viewport.bean-blend-view #fallback{display:none!important}
.viewport.bean-blend-view .scene-info{position:static;margin-top:16px}.viewport.bean-blend-view .scene-info strong{color:#422514;font-size:20px}.viewport.bean-blend-view .scene-info small{color:#7d634b}.viewport.bean-blend-view .scene-info .live{display:none}
#bean-blend-panel{color:#422514;text-align:center;max-width:900px;margin:0 auto}#bean-blend-panel h2{font-family:'Playfair Display',Georgia,serif;font-size:clamp(26px,3vw,42px);line-height:1.2;text-transform:none;letter-spacing:-.5px;margin:10px 0}.bean-blend-intro{font-size:13px;color:#7d634b;line-height:1.6;margin:0 0 14px}.bean-percentages{display:grid;grid-template-columns:1fr 1fr;max-width:390px;margin:0 auto 15px}.bean-percentages>div{display:flex;flex-direction:column;gap:3px}.bean-percentages>div+div{border-left:1px solid #d8c3a5}.bean-percentages output{font:500 clamp(37px,5vw,62px)/1.1 'Playfair Display',Georgia,serif}.bean-percentages>div:first-child{color:#a16b39}.bean-percentages span{font-size:16px}.blend-slider-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#bean-blend-slider{display:block;width:100%;height:42px;appearance:none;-webkit-appearance:none;background:transparent;margin:0;cursor:ew-resize;touch-action:pan-y}#bean-blend-slider::-webkit-slider-runnable-track{height:17px;border:1px solid #b68c5e;border-radius:20px;background:linear-gradient(90deg,#cfa370,#9a6538 var(--blend-stop,50%),#42220e var(--blend-stop,50%),#31190e)}#bean-blend-slider::-moz-range-track{height:17px;border:1px solid #b68c5e;border-radius:20px;background:linear-gradient(90deg,#cfa370,#9a6538 var(--blend-stop,50%),#42220e var(--blend-stop,50%),#31190e)}#bean-blend-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:36px;height:36px;margin-top:-10px;border:4px solid #fff9ee;border-radius:50%;background:#624025;box-shadow:0 2px 9px #34170d55}#bean-blend-slider::-moz-range-thumb{width:29px;height:29px;border:4px solid #fff9ee;border-radius:50%;background:#624025;box-shadow:0 2px 9px #34170d55}#bean-blend-slider:focus-visible{outline:3px solid #a36f3a;outline-offset:3px;border-radius:20px}.blend-endpoints{display:flex;justify-content:space-between;font-size:10px;font-weight:700;line-height:1.6}.blend-presets{display:flex;justify-content:center;gap:9px;margin:13px 0}.blend-presets button{min-height:36px;padding:8px 16px;background:#fff8ed;color:#6b4426;border:1px solid #c9ad8a;border-radius:25px;font-size:11px}.blend-presets button[aria-pressed=true]{background:#69452b;color:#fff}.bean-blend-note{font-size:10px;line-height:1.7;color:#8c7056;margin:0 0 15px}.bean-blend-films{display:grid;grid-template-columns:1fr 1fr;gap:12px}.bean-blend-films figure{position:relative;margin:0;border-radius:12px;overflow:hidden;background:#2b2119}.bean-blend-films video{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.bean-blend-films figcaption{padding:9px 5px;background:#2b2119;color:#fff4e7;font-size:11px}.bean-blend-films figcaption span{color:#ebbe8a}#bean-blend-status{font-size:12px;line-height:1.7;min-height:22px;margin:13px 0 0}.bean-blend-films{scroll-margin-top:85px}
@media(max-width:900px){#bean-type-choices{grid-template-columns:1fr 1fr;grid-template-rows:1fr 100px}.blend-entry{grid-column:1/-1}.blend-entry>span{bottom:14px;left:16px}.blend-entry strong{font-size:24px}.viewport.bean-type-view #bean-type-choices{height:340px}.viewport.bean-blend-view{padding:50px 15px 18px}.viewport.bean-blend-view #bean-type-choices{display:none}.bean-percentages{margin-bottom:10px}.blend-presets button{min-height:44px}.bean-blend-films{gap:8px}.bean-blend-films video{aspect-ratio:4/5;object-fit:cover;object-position:center}.bean-blend-note{font-size:10px}.viewport.bean-blend-view .scene-info{display:none}#bean-blend-panel h2{font-size:27px}.bean-blend-films figcaption{font-size:10px}}
@media(prefers-reduced-motion:reduce){#bean-blend-slider{scroll-behavior:auto}}

/* Grade captions sit below the bean names, separate from selection status. */
.bean-type-card>span>.bean-grade-label{position:static;display:block;color:#fff0d9;font:500 12px/1.6 'DM Sans',sans-serif;letter-spacing:.6px;margin:2px 0 6px;text-transform:none}
.bean-percentages .blend-grade-label{display:block;color:#735239;font-size:12px;line-height:1.6;letter-spacing:.4px}
.bean-blend-films .film-grade-label{display:block;color:#ebd4b7;font-size:10px;line-height:1.6;margin-top:2px}
@media(max-width:540px){.bean-type-card>span>.bean-grade-label{font-size:11px}.bean-percentages .blend-grade-label{font-size:11px}}

/* Coffee / chicory balance uses the same drag language as the bean balance. */
.chicory-balance{width:100%;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;text-align:center;color:var(--ink)}
.chicory-balance h3{font:500 23px/1.3 'Playfair Display',Georgia,serif;margin:0 0 16px}
.chicory-percentages{display:grid;grid-template-columns:1fr 1fr;margin:0 auto 12px;max-width:460px}
.chicory-percentages>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.chicory-percentages>div+div{border-left:1px solid var(--line)}
.chicory-percentages output{font:500 clamp(32px,4vw,50px)/1.1 'Playfair Display',Georgia,serif}
.chicory-percentages span{font-size:13px;font-weight:600}
.chicory-percentages>div:last-child output{color:var(--gold)}
#chicory-slider{display:block;width:100%;height:44px;appearance:none;-webkit-appearance:none;background:transparent;margin:0;cursor:ew-resize;touch-action:pan-y;accent-color:var(--gold)}
#chicory-slider::-webkit-slider-runnable-track{height:16px;border:1px solid var(--gold);border-radius:20px;background:linear-gradient(90deg,#31523a var(--chicory-stop,0%),#af7b41 var(--chicory-stop,0%))}
#chicory-slider::-moz-range-track{height:16px;border:1px solid var(--gold);border-radius:20px;background:linear-gradient(90deg,#31523a var(--chicory-stop,0%),#af7b41 var(--chicory-stop,0%))}
#chicory-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:36px;height:36px;margin-top:-11px;border:4px solid var(--panel);border-radius:50%;background:#72502f;box-shadow:0 2px 8px #34170d55}
#chicory-slider::-moz-range-thumb{width:28px;height:28px;border:4px solid var(--panel);border-radius:50%;background:#72502f;box-shadow:0 2px 8px #34170d55}
#chicory-slider:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:20px}
.chicory-slider-note{font-size:11px;line-height:1.7;margin:14px 0 0;color:var(--ink)}
.chicory-balance .blend-endpoints{color:var(--ink)}
@media(max-width:540px){.chicory-balance{padding:14px}.chicory-balance h3{font-size:22px}.chicory-percentages span{font-size:12px}}

.chicory-selection-heading{margin:0 0 10px;font-size:11px;font-weight:700;letter-spacing:.05em;color:var(--muted)}
.chicory-balance .blend-endpoints{gap:20px;text-align:left}.chicory-balance .blend-endpoints>span:last-child{text-align:right}.chicory-balance .blend-endpoints small{display:block;font-size:10px;font-weight:500;color:var(--muted);margin-bottom:3px}
