/* The same glass, with ingredient bands that settle into each new recipe. */
.pint-preview { --preview-lid: #b7cf82; --preview-tint: #edf0e3; --preview-ease: cubic-bezier(.22, 1, .36, 1); }
.pint-preview[hidden] { display: none; }
.preview-mobile-picker { display: none; }
.preview-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); border-bottom: 0; }
.preview-choice { display: flex; align-items: center; gap: 9px; min-height: 76px; padding: 16px 14px; border: 0; border-right: 1px solid var(--line); background: transparent; text-align: left; transition: background-color .25s, color .25s; }
.preview-choice:nth-child(3n) { border-right: 0; }
.preview-choice:nth-child(n+4) { border-top: 1px solid var(--line); }
.preview-choice:hover { background: #eaece2; }
.preview-choice[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.preview-choice-emoji { flex-shrink: 0; width: 36px; text-align: center; font: 18px/1.3 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.preview-choice b { display: block; font-size: 11px; line-height: 1.4; font-weight: 600; }
.preview-choice small { display: block; margin-top: 4px; font: 8px/1.4 var(--mono); opacity: .6; text-transform: uppercase; }
.preview-layout { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.preview-stage { display: flex; flex-direction: column; position: relative; min-width: 0; padding: 26px 28px 22px; background-color: var(--preview-tint); border-right: 1px solid var(--ink); transition: background-color .85s var(--preview-ease); }
.preview-stage-top { display: flex; justify-content: space-between; gap: 16px; font: 9px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.preview-stage-top span:last-child { opacity: .5; }
.preview-scene { position: relative; display: flex; justify-content: center; align-items: center; flex: 1; min-height: 472px; isolation: isolate; }
.preview-orbit { position: absolute; width: min(95%, 360px); aspect-ratio: 1; border: 1px solid #20251f13; border-radius: 50%; transform: translateY(-22px); z-index: -1; }
.preview-orbit::before, .preview-orbit::after { content: ''; position: absolute; inset: 17px; border: 1px solid #20251f08; border-radius: 50%; }
.preview-orbit::after { inset: 36px; }
.glass-pint { position: relative; width: min(80%, 300px); aspect-ratio: 300 / 390; transform-origin: 50% 80%; margin-bottom: 45px; filter: drop-shadow(0 18px 13px #20251f12); }
.glass-fill { position: absolute; inset: 16.9% 8% 7.7%; clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%); background: #f3eddf; }
.glass-layer { position: absolute; left: 0; width: 100%; bottom: 0; height: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; opacity: 0; background-color: var(--layer-colour); color: var(--layer-ink, var(--ink)); transition: height .9s var(--preview-ease), bottom .9s var(--preview-ease), background-color .75s, opacity .35s, filter .25s; }
.glass-layer::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 1px 0 #ffffff55, inset 0 -1px 0 #20251f12; pointer-events: none; }
.glass-layer span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 9px/1.2 var(--mono); letter-spacing: .04em; opacity: .7; transition: opacity .25s; white-space: nowrap; }
.glass-layer[data-layer="mixins"] { background-image: radial-gradient(ellipse at 20% 25%, #633d2188 0 1.6px, transparent 2px), radial-gradient(ellipse at 70% 70%, #fff4d555 0 2px, transparent 2.6px); background-size: 17px 12px, 23px 17px; }
.glass-layer[data-layer="strawberry"] { background-image: radial-gradient(ellipse, #884b4a55 0 .8px, transparent 1.3px); background-size: 16px 11px; }
.glass-fill.is-highlighting .glass-layer { filter: saturate(.45) brightness(1.08); }
.glass-fill.is-highlighting .glass-layer.is-highlighted { filter: saturate(1.15); box-shadow: inset 0 0 0 2px var(--ink); z-index: 1; }
.glass-fill.is-highlighting .glass-layer.is-highlighted span { opacity: 1; font-weight: 700; }
.glass-outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: #4f5845; }
.glass-lid { position: absolute; top: 9.5%; left: 3%; width: 94%; height: 8.1%; background-color: var(--preview-lid); border: 1.5px solid #4f5845; border-radius: 5px 5px 12px 12px; box-shadow: inset 0 -7px 0 #20251f13, 0 3px 0 #20251f15; transition: background-color .75s; }
.glass-lid > span { position: absolute; inset: -13px -1.5px auto; height: 22px; border: 1.5px solid #4f5845; border-radius: 50%; background-color: var(--preview-lid); box-shadow: inset 0 3px 1px #ffffff40; transition: background-color .75s; }
.glass-lid b { position: absolute; left: 50%; top: -11px; transform: translateX(-50%) scaleY(.55); font: 900 14px var(--display); opacity: .5; }
.preview-layer-readout { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; pointer-events: none; }
.preview-layer-readout span { display: block; font: 9px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.preview-layer-readout b { display: block; margin-top: 5px; font: 600 12px/1.6 var(--sans); min-height: 20px; }
.preview-stage-note { margin: 20px 0 0; text-align: center; color: var(--muted); font: 9px/1.8 var(--mono); }
.preview-info { min-width: 0; padding: 30px 32px 24px; }
.preview-recipe-meta { min-height: 150px; }
.preview-kicker { margin: 0 0 14px; font: 9px/1.5 var(--mono); text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.preview-info h3 { margin: 0 0 14px; font: 900 clamp(28px, 3.1vw, 43px)/1.03 var(--display); letter-spacing: -.045em; }
.preview-description { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.preview-nutrition { display: flex; gap: 24px; border-block: 1px solid var(--line); padding: 15px 0; margin-bottom: 24px; }
.preview-nutrition span { font: 9px/1.6 var(--mono); color: var(--muted); }
.preview-nutrition b { color: var(--ink); font: 900 23px/1 var(--display); letter-spacing: -.04em; margin-right: 5px; }
.preview-ledger-heading { display: flex; justify-content: space-between; gap: 15px; font: 9px/1.5 var(--mono); text-transform: uppercase; margin-bottom: 10px; }
.preview-ledger-heading span:last-child { color: var(--muted); font-size: 8px; }
.preview-ledger { padding: 0; margin: 0 0 22px; list-style: none; min-height: 330px; }
.preview-ingredient { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(7px); transition: grid-template-rows .7s var(--preview-ease), opacity .4s, transform .7s var(--preview-ease); }
.preview-ingredient.is-visible { grid-template-rows: 1fr; opacity: 1; transform: none; }
.preview-ingredient > div { min-height: 0; overflow: hidden; }
.preview-ingredient button { width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; padding: 11px 5px; min-height: 44px; border: 0; border-top: 1px solid var(--line); background: transparent; border-radius: 0; transition: background-color .25s; }
.preview-ingredient button:hover, .preview-ingredient.is-highlighted button { background: #e5e7dc; }
.preview-ingredient-dot { width: 20px; text-align: center; font: 16px/1.4 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.preview-ingredient-name { display: block; font-size: 11px; line-height: 1.4; }
.preview-ingredient-name small { display: block; margin-top: 4px; font: 9px/1.7 var(--mono); color: var(--muted); }
.preview-ingredient-amount { font: 10px/1.6 var(--mono); white-space: nowrap; text-align: right; }
.preview-recipe-link { width: 100%; }
.preview-servings { margin: 11px 0 0; color: var(--muted); font: 8px/1.6 var(--mono); text-align: center; }
@media (max-width: 1150px) {
  .preview-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preview-choice { min-height: 64px; }
  .preview-info { padding: 26px 24px; }
  .preview-stage { padding-inline: 22px; }
}
@media (max-width: 800px) {
  .preview-picker { display: none; }
  .preview-mobile-picker { display: block; padding: 15px; border: 1px solid var(--ink); border-bottom: 0; font: 9px/1.5 var(--mono); text-transform: uppercase; }
  .preview-flavour-select { display: block; width: 100%; min-height: 46px; margin-top: 9px; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: 600 13px/1.5 var(--sans); }
  .preview-choice { min-height: 62px; padding: 12px; }
  .preview-choice:nth-child(3n) { border-right: 1px solid var(--line); }
  .preview-choice:nth-child(even) { border-right: 0; }
  .preview-choice:nth-child(n+3) { border-top: 1px solid var(--line); }
  .preview-choice:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .preview-layout { grid-template-columns: 1fr; }
  .preview-stage { border-right: 0; border-bottom: 1px solid var(--ink); padding: 20px 18px; }
  .preview-scene { min-height: 425px; }
  .glass-pint { width: min(80%, 260px); }
  .preview-orbit { width: min(95%, 310px); }
  .preview-stage-top { font-size: 8px; }
  .preview-info { padding: 25px 22px; }
  .preview-recipe-meta { min-height: 130px; }
  .preview-info h3 { font-size: 34px; }
  .preview-description { max-width: 50ch; }
  .preview-ledger { min-height: 330px; }
}
@media (prefers-reduced-motion: reduce) {
  .pint-preview *, .pint-preview *::before, .pint-preview *::after { transition: none !important; animation: none !important; }
}
@media print { .lineup { display: none !important; } }
