/* V3 round 2, lane D: chapter handoffs, box float-in, What Happens Next storybook, allergen badge,
   Quick Answers phone frame, and per-width (browser zoom) layout rules.
   Variant groups (v4/variants.js): ldchap, ldbook, ldallergy, ldfaq. html.glz-static = no motion. */

/* ================= #15 Chapter handoffs (Bonbon passes the story on) ================= */
.ld-chapter { position: relative; box-sizing: border-box; width: 100%; display: grid; justify-items: center; gap: .35rem; max-width: 72rem; margin: 0 auto; padding: 2.4rem 1.25rem 1.6rem; text-align: center; color: var(--ink, #2D1928); pointer-events: none; overflow: hidden; }
.ld-chap-bonbon { display: block; width: 4.25rem; height: 4.25rem; }
.ld-chap-bonbon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ld-chap-head { display: grid; gap: .15rem; }
.ld-chap-num { font: 800 .66rem/1.2 'DM Sans', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text, #8A6514); }
.ld-chap-title { font: 400 clamp(1.25rem, 2.4vw, 1.6rem)/1.15 'Glaze Display', Georgia, serif; font-variant-ligatures: none; color: var(--plum, #4A1942); }
.ld-chap-line { font: italic 400 .92rem/1.45 'DM Sans', sans-serif; color: var(--text-muted, #5A4D44); }
.ld-chap-trail { position: absolute; left: 50%; top: 4.5rem; width: min(46rem, 86%); height: 0; border-top: 2px dashed color-mix(in srgb, var(--honey-gold-dark, #B8902D) 55%, transparent); transform: translateX(-50%); }
.ld-chap-bonbon, .ld-chap-head, .ld-chap-line { position: relative; z-index: 1; }

/* A: Bonbon handoff. Bonbon walks in along the trail from the last chapter, then the title rises. */
.ld-chapter .ld-chap-bonbon { background: var(--cream, #FDF8F0); border-radius: 50%; box-shadow: 0 0 0 .5rem var(--cream, #FDF8F0); }
html:not(.glz-static) .ld-chapter:not(.is-in) .ld-chap-bonbon { opacity: 0; transform: translate3d(-34vw, 0, 0) rotate(-14deg); }
html:not(.glz-static) .ld-chapter:not(.is-in) :is(.ld-chap-head, .ld-chap-line) { opacity: 0; transform: translate3d(0, 14px, 0); }
html:not(.glz-static) .ld-chapter .ld-chap-bonbon { transition: transform 1.1s cubic-bezier(.2, .75, .25, 1), opacity .6s ease-out; }
html:not(.glz-static) .ld-chapter :is(.ld-chap-head, .ld-chap-line) { transition: transform .8s ease-out .45s, opacity .8s ease-out .45s; }
html:not(.glz-static) .ld-chapter .ld-chap-line { transition-delay: .6s; }

/* B: Storybook title. A chapter heading with gold rules; Bonbon sits small above like an ornament. */
html[data-v-ldchap="b"] .ld-chap-trail { display: none; }
html[data-v-ldchap="b"] .ld-chapter { padding: 3rem 1.25rem 1.8rem; }
html[data-v-ldchap="b"] .ld-chapter .ld-chap-bonbon { width: 2.75rem; height: 2.75rem; box-shadow: none; background: none; }
html[data-v-ldchap="b"] .ld-chap-num { display: inline-flex; align-items: center; gap: .8rem; justify-content: center; font-size: .72rem; }
html[data-v-ldchap="b"] .ld-chap-num::before, html[data-v-ldchap="b"] .ld-chap-num::after { content: ''; width: 3.5rem; height: 1px; background: var(--honey-gold-dark, #B8902D); }
html[data-v-ldchap="b"] .ld-chap-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-style: italic; }
html:not(.glz-static)[data-v-ldchap="b"] .ld-chapter:not(.is-in) .ld-chap-bonbon { transform: translate3d(0, 12px, 0) scale(.85); }

/* C: Bonbon peek. Bonbon peeks up from the edge of the page with the next chapter in a speech bubble. */
html[data-v-ldchap="c"] .ld-chap-trail { display: none; }
html[data-v-ldchap="c"] .ld-chapter { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "bon head" "bon line"; justify-items: start; align-items: end; column-gap: 1rem; row-gap: .1rem; max-width: 46rem; padding: 2rem 1.25rem 0; text-align: left; }
html[data-v-ldchap="c"] .ld-chap-bonbon { grid-area: bon; width: 5.5rem; height: 5.5rem; margin-bottom: -1.4rem; background: none; box-shadow: none; }
html[data-v-ldchap="c"] .ld-chap-head { grid-area: head; justify-self: stretch; padding: .7rem 1rem .1rem; background: var(--white, #fff); border: 1px solid var(--linen, #EADFCB); border-bottom: 0; border-radius: 18px 18px 0 0; }
html[data-v-ldchap="c"] .ld-chap-line { grid-area: line; justify-self: stretch; align-self: start; margin-bottom: 1.6rem; padding: 0 1rem .7rem; background: var(--white, #fff); border: 1px solid var(--linen, #EADFCB); border-top: 0; border-radius: 0 0 18px 4px; }
html:not(.glz-static)[data-v-ldchap="c"] .ld-chapter:not(.is-in) .ld-chap-bonbon { transform: translate3d(0, 70%, 0); opacity: 1; }
html:not(.glz-static)[data-v-ldchap="c"] .ld-chapter:not(.is-in) :is(.ld-chap-head, .ld-chap-line) { transform: translate3d(-10px, 6px, 0) scale(.96); }

/* ================= #15 Your Order: the box floats in ================= */
#order .cart-section.ld-float-ready { opacity: 0; transform: translate3d(0, 56px, 0) rotate(-1.6deg) scale(.97); }
#order .cart-section.ld-float-ready.ld-float-in { opacity: 1; transform: none; transition: transform .9s cubic-bezier(.16, .84, .3, 1), opacity .7s ease-out; }
html.glz-static #order .cart-section.ld-float-ready { opacity: 1; transform: none; transition: none; }

/* ================= #15 What Happens Next: storybook ================= */
.ld-reel, .ld-spread-media { display: none; }
#how-it-works [hidden] { display: none !important; }
html:is([data-v-ldbook="a"], [data-v-ldbook="c"]) #how-it-works :is(.guide-binding, .guide-controls) { display: none; }
html:is([data-v-ldbook="a"], [data-v-ldbook="c"]) .ld-reel { display: block; }

/* Shared media pages */
.ld-media { position: relative; margin: 0; overflow: hidden; border-radius: 22px; background: #2A1A24; isolation: isolate; }
.ld-media video, .ld-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ld-media picture { display: block; width: 100%; height: 100%; }
.ld-media-map { background: #F3E8D6; }
.ld-map-svg { display: block; width: 100%; height: 100%; }
.ld-map-label { position: absolute; left: .7rem; right: .7rem; bottom: .7rem; z-index: 2; display: grid; gap: .1rem; margin: 0 !important; padding: .55rem .75rem; border-radius: 12px; background: rgba(253, 248, 240, .95); color: var(--ink, #2D1928); text-align: center; font: 500 .72rem/1.35 'DM Sans', sans-serif !important; }
.ld-map-label strong { font-size: .82rem; color: var(--plum, #4A1942); }
.ld-map-pulse { transform-origin: 160px 98px; opacity: 0; }
html:not(.glz-static) :is(.ld-reel-page.is-active, .ld-media.is-on) .ld-map-pulse { animation: ld-pulse 3.6s ease-out infinite; }
@keyframes ld-pulse { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.32); } }
html:not(.glz-static) :is(.ld-reel-page.is-active, .ld-media.is-on) .ld-media-photo img { animation: ld-ken 20s ease-out forwards; }
@keyframes ld-ken { from { transform: scale(1); } to { transform: scale(1.06); } }

/* The original book keeps working; its map page now shows the abstract area map. */
#guideAreaMap.ld-guide-map { height: 12rem; border-radius: 12px; background: #F3E8D6; }
#guideAreaMap.ld-guide-map .ld-map-svg { position: absolute; inset: 0; }
.guide-page #guideAreaMap .ld-map-label { left: .45rem; right: .45rem; bottom: .45rem; padding: .4rem .5rem; font-size: .66rem !important; }

/* A: Story reel. One page at a time, a moving picture beside the words, story bars on top. */
.ld-reel { position: relative; max-width: 58rem; margin: 0 auto; }
.ld-reel-bars { display: flex; gap: .4rem; margin: 0 auto .9rem; }
.ld-reel-bars span { flex: 1; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--plum, #4A1942) 15%, transparent); overflow: hidden; }
.ld-reel-bars i { display: block; height: 100%; background: var(--honey-gold-dark, #B8902D); transform: scaleX(0); transform-origin: left; }
.ld-reel-bars :is(.is-on, .is-done) i { transform: scaleX(1); }
html:not(.glz-static) .ld-reel-bars i { transition: transform .6s ease-out; }
.ld-reel-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 28px; }
.ld-reel-track::-webkit-scrollbar { display: none; }
.ld-reel-track:focus-visible { outline: 2px solid var(--honey-gold-dark, #B8902D); outline-offset: 4px; }
.ld-reel-page { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(1.25rem, 3.5vw, 3rem); align-items: center; padding: clamp(.9rem, 2vw, 1.5rem); background: var(--linen, #EADFCB); border-radius: 28px; }
.ld-reel-page .ld-media { aspect-ratio: 9 / 13; box-shadow: 0 1.2rem 2rem -1.2rem rgba(45, 25, 40, .55); cursor: pointer; }
.ld-reel-copy { min-width: 0; max-width: 34rem; padding: .5rem .5rem .5rem 0; text-align: left; }
.ld-reel-copy .guide-folio { margin: 0 0 1.25rem; padding-bottom: .7rem; border-bottom: 1px solid color-mix(in srgb, var(--honey-gold-dark, #B8902D) 35%, transparent); color: var(--gold-text, #8A6514); font: 700 .66rem/1.5 'DM Sans', sans-serif; text-transform: uppercase; letter-spacing: .14em; }
.ld-reel-copy h3 { margin: 0 0 1rem; font: 400 clamp(1.7rem, 3.2vw, 2.4rem)/1.1 'Glaze Display', Georgia, serif; font-variant-ligatures: none; color: var(--ink, #2D1928); }
.ld-reel-copy p { margin: 0 0 .9rem; font-size: .92rem; line-height: 1.65; color: var(--text-muted, #5A4D44); }
.ld-reel-copy p.guide-lead { font-size: 1.04rem; color: var(--ink, #2D1928); }
.ld-reel-copy strong { color: var(--ink, #2D1928); }
.ld-reel-copy .guide-margin-note { margin-top: 1.1rem; padding-top: .75rem; border-top: 1px solid color-mix(in srgb, var(--honey-gold-dark, #B8902D) 30%, transparent); font-size: .8rem; }
.ld-reel-copy .guide-track-link { display: inline-flex; gap: .8rem; align-items: center; min-height: 2.75rem; color: var(--ink, #2D1928); font-size: .85rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--honey-gold-dark, #B8902D); }
html:not(.glz-static)[data-v-ldbook="a"] .ld-reel-page:not(.is-active) .ld-reel-copy > * { opacity: 0; transform: translate3d(0, 14px, 0); }
html:not(.glz-static)[data-v-ldbook="a"] .ld-reel-page.is-active .ld-reel-copy > * { transition: opacity .7s ease-out, transform .7s ease-out; }
html:not(.glz-static)[data-v-ldbook="a"] .ld-reel-page.is-active .ld-reel-copy > :nth-child(2) { transition-delay: .08s; }
html:not(.glz-static)[data-v-ldbook="a"] .ld-reel-page.is-active .ld-reel-copy > :nth-child(3) { transition-delay: .16s; }
html:not(.glz-static)[data-v-ldbook="a"] .ld-reel-page.is-active .ld-reel-copy > :nth-child(n+4) { transition-delay: .24s; }
.ld-reel-nav { display: flex; justify-content: center; align-items: center; gap: .8rem; margin: 1.2rem 0 0; }
.ld-reel-nav p { margin: 0; min-width: 7rem; font-size: .76rem; color: var(--text-muted, #5A4D44); text-align: center; }
.ld-reel-nav :is(.ld-reel-prev, .ld-reel-next) { width: 2.9rem; height: 2.9rem; border: 1px solid var(--linen, #EADFCB); border-radius: 50%; background: var(--cream, #FDF8F0); color: var(--ink, #2D1928); font-size: 1.15rem; cursor: pointer; }
html:not(.glz-static) .ld-reel-nav :is(.ld-reel-prev, .ld-reel-next) { transition: transform .18s ease-out, background-color .2s; }
.ld-reel-nav :is(.ld-reel-prev, .ld-reel-next):hover:not(:disabled) { background: var(--white, #fff); transform: translateY(-1px); }
.ld-reel-nav :is(.ld-reel-prev, .ld-reel-next):active:not(:disabled) { transform: scale(.94); }
.ld-reel-nav :is(.ld-reel-prev, .ld-reel-next):disabled { opacity: .3; cursor: default; }
.ld-reel-nav :is(.ld-reel-prev, .ld-reel-next):focus-visible { outline: 2px solid var(--honey-gold-dark, #B8902D); outline-offset: 3px; }

/* C: Chapter cards. All four pages side by side on wide screens, a snap row on phones. */
html[data-v-ldbook="c"] .ld-reel { max-width: 76rem; }
html[data-v-ldbook="c"] .ld-reel-bars { display: none; }
html[data-v-ldbook="c"] .ld-reel-track { gap: 1rem; padding: .25rem .25rem 1rem; border-radius: 0; scroll-padding-inline: .25rem; }
html[data-v-ldbook="c"] .ld-reel-page { flex: 0 0 min(80%, 19rem); grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; gap: 1rem; padding: 0 0 1.25rem; background: var(--white, #fff); border: 1px solid var(--linen, #EADFCB); border-radius: 24px; box-shadow: 0 1rem 1.6rem -1.2rem rgba(45, 25, 40, .4); }
html[data-v-ldbook="c"] .ld-reel-page .ld-media { aspect-ratio: 4 / 5; border-radius: 24px 24px 0 0; box-shadow: none; cursor: default; }
html[data-v-ldbook="c"] .ld-reel-copy { padding: 0 1.15rem; }
html[data-v-ldbook="c"] .ld-reel-copy h3 { font-size: 1.55rem; }
html[data-v-ldbook="c"] .ld-reel-copy p { font-size: .86rem; }
html[data-v-ldbook="c"] .ld-reel-copy p.guide-lead { font-size: .95rem; }
@media (min-width: 900px) {
  html[data-v-ldbook="c"] .ld-reel-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
}

/* B: Book spread. The left page of the open book is the moving picture for whichever page is open. */
html[data-v-ldbook="b"] .ld-spread-media { display: block; position: relative; z-index: 3; grid-column: 1; grid-row: 1; margin-right: .15rem; overflow: hidden; border-radius: .15rem 0 0 .15rem; background: #2A1A24; }
html[data-v-ldbook="b"] #how-it-works .guide-cover { grid-column: 1; grid-row: 1; }
html[data-v-ldbook="b"] #how-it-works .guide-book { grid-column: 2; grid-row: 1; }
.ld-spread-media .ld-media { position: absolute; inset: 0; border-radius: 0; opacity: 0; }
.ld-spread-media .ld-media.is-on { opacity: 1; }
html:not(.glz-static) .ld-spread-media .ld-media { transition: opacity .6s ease-out; }
@media (max-width: 640px) {
  html[data-v-ldbook="b"] .ld-spread-media { grid-column: 1 / -1; height: 16rem; margin: 0 0 .45rem .3rem; border-radius: .3rem; }
  html[data-v-ldbook="b"] #how-it-works .guide-cover { grid-row: 2; }
  html[data-v-ldbook="b"] #how-it-works .guide-book { grid-row: 2; }
  html[data-v-ldbook="b"] #how-it-works .guide-binding::after { top: 16.9rem; }
}

/* ================= #16 Allergen note as an expandable badge ================= */
/* aesthetic.css and unified-builder.css flatten .unified-allergy with !important; the badge needs its own box back. */
#menu .unified-allergy.ld-allergy { position: relative; display: block !important; max-width: 680px !important; margin: 0 auto 2rem !important; padding: 0 !important; border: 1px solid rgba(184, 144, 45, .34) !important; border-radius: 22px !important; background: linear-gradient(180deg, rgba(212, 168, 67, .12), rgba(212, 168, 67, .06)) !important; color: var(--ink, #2D1928) !important; font-size: 1rem !important; }
#menu .unified-allergy.ld-allergy > .ld-allergy-panel { font-size: 1rem !important; }
.ld-allergy-btn { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy cta" "icons icons"; align-items: center; gap: .7rem 1rem; width: 100%; min-height: 44px; padding: .9rem 1.1rem; margin: 0; background: none; border: 0; border-radius: 22px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ld-allergy-btn:focus-visible { outline: 3px solid var(--plum, #4A1942); outline-offset: 2px; }
.ld-allergy-avatar { display: none; grid-area: bon; }
.ld-allergy-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ld-allergy-copy { grid-area: copy; display: grid; gap: .1rem; min-width: 0; }
.ld-allergy-kicker { font: 800 .64rem/1.3 'DM Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text, #8A6514); }
.ld-allergy-main { font: 700 1rem/1.3 'DM Sans', sans-serif; color: var(--plum, #4A1942); }
.ld-allergy-sub { font-size: .82rem; line-height: 1.4; color: var(--text-muted, #5A4D44); }
.ld-allergy-icons { grid-area: icons; display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
.ld-ico { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; color: #6B3A2C; }
.ld-ico svg { display: block; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .75); }
.ld-ico-ring, .ld-ico-slash { stroke: #C8372D; }
.ld-ico-name { display: none; font: 700 .62rem/1.1 'DM Sans', sans-serif; letter-spacing: .04em; color: var(--ink, #2D1928); }
/* The glow itself is static; lighting up is opacity and scale only. */
.ld-ico svg { filter: drop-shadow(0 0 2px rgba(226, 64, 48, .75)) drop-shadow(0 0 7px rgba(226, 64, 48, .4)); }
html:not(.glz-static) .ld-ico svg { transition: opacity .6s ease-out calc(var(--i, 0) * 120ms), transform .6s ease-out calc(var(--i, 0) * 120ms); }
html:not(.glz-static) .ld-allergy:not(.is-lit) .ld-ico svg { opacity: .35; transform: scale(.88); }
.ld-allergy-cta { grid-area: cta; display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .8rem; border-radius: 999px; background: var(--plum, #4A1942); color: var(--cream, #FDF8F0); font: 700 .74rem/1 'DM Sans', sans-serif; white-space: nowrap; }
.ld-allergy-cta svg { display: block; }
html:not(.glz-static) .ld-allergy-cta svg { transition: transform .3s ease-out; }
.ld-allergy-btn[aria-expanded="true"] .ld-allergy-cta svg { transform: rotate(180deg); }
.ld-allergy-btn[aria-expanded="true"] .ld-when-closed, .ld-allergy-btn[aria-expanded="false"] .ld-when-open { display: none; }
.ld-allergy-btn:hover .ld-allergy-cta { background: #5E2354; }
.ld-allergy-panel { padding: 0 1.1rem 1.1rem; }
html:not(.glz-static) .ld-allergy.is-open .ld-allergy-panel { animation: ld-rise .45s ease-out; }
@keyframes ld-rise { from { opacity: 0; transform: translate3d(0, -6px, 0); } to { opacity: 1; transform: none; } }
.ld-bonbon-say { display: flex; gap: .8rem; align-items: center; margin: 0 0 .8rem; padding: .75rem .9rem; border-radius: 16px; background: var(--white, #fff); border: 1px solid var(--linen, #EADFCB); font-size: .88rem; line-height: 1.5; color: var(--ink, #2D1928); }
.ld-bonbon-say img { flex: none; width: 3.25rem; height: 3.25rem; object-fit: contain; }
.ld-bonbon-say strong { color: var(--plum, #4A1942); }
.ld-allergy-full { font-size: .86rem; line-height: 1.6; color: var(--text-muted, #5A4D44); }
@media (min-width: 640px) {
  html[data-v-ldallergy="a"] .ld-allergy-btn { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icons copy cta"; }
  html[data-v-ldallergy="a"] .ld-allergy-icons { display: grid; grid-template-columns: repeat(3, 30px); gap: .3rem; }
}
/* B: Icon tiles. Each allergen named on its own glowing tile. */
html[data-v-ldallergy="b"] .ld-allergy-icons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .45rem; }
html[data-v-ldallergy="b"] .ld-ico { padding: .55rem .2rem .45rem; border-radius: 14px; background: var(--white, #fff); border: 1px solid rgba(200, 55, 45, .18); }
html[data-v-ldallergy="b"] .ld-ico svg { width: 34px; height: 34px; }
html[data-v-ldallergy="b"] .ld-ico-name { display: block; text-align: center; }
@media (max-width: 479.98px) { html[data-v-ldallergy="b"] .ld-allergy-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* C: Bonbon says. Bonbon delivers the note in a speech bubble. */
html[data-v-ldallergy="c"] .ld-allergy-btn { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "bon copy cta" "bon icons icons"; align-items: start; }
html[data-v-ldallergy="c"] .ld-allergy-avatar { display: block; width: 4rem; height: 4rem; align-self: center; }
html[data-v-ldallergy="c"] .ld-allergy-copy { position: relative; padding: .6rem .8rem; border-radius: 4px 16px 16px 16px; background: var(--white, #fff); border: 1px solid var(--linen, #EADFCB); }
html[data-v-ldallergy="c"] .ld-bonbon-say img { display: none; }
@media (max-width: 479.98px) {
  html[data-v-ldallergy="c"] .ld-allergy-btn { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "bon copy" "icons icons" "cta cta"; }
  html[data-v-ldallergy="c"] .ld-allergy-avatar { width: 3rem; height: 3rem; }
  html[data-v-ldallergy="c"] .ld-allergy-cta { justify-self: start; }
}

/* ================= #15 Quick Answers inside a phone ================= */
.ld-phone-bar, .ld-phone-home { display: none; }
html:is([data-v-ldfaq="a"], [data-v-ldfaq="b"]) #faq.ld-faq { --ld-bezel: 12px; max-width: 27.5rem; margin: 1rem auto 2.5rem; padding: 0 1.1rem 1.75rem; border: var(--ld-bezel) solid #241A20; border-radius: 3.25rem; background: var(--cream, #FDF8F0); box-shadow: 0 2rem 3.5rem -2rem rgba(45, 25, 40, .6); }
html:is([data-v-ldfaq="a"], [data-v-ldfaq="b"]) #faq .ld-phone-bar { display: flex; justify-content: center; padding: .55rem 0 .4rem; }
.ld-phone-island { display: block; width: 6rem; height: 1.6rem; border-radius: 999px; background: #241A20; }
html:is([data-v-ldfaq="a"], [data-v-ldfaq="b"]) #faq .section-inner { overflow: visible; }
html:is([data-v-ldfaq="a"], [data-v-ldfaq="b"]) #faq .section-title { margin-top: .6rem; font-size: clamp(1.7rem, 6vw, 2.1rem); }
html:is([data-v-ldfaq="a"], [data-v-ldfaq="b"]) #faq .faq-question { padding: 1rem .5rem; font-size: 1rem; }
html:is([data-v-ldfaq="a"], [data-v-ldfaq="b"]) #faq .faq-answer-inner { padding: 0 .5rem 1.1rem; font-size: .9rem; }
html[data-v-ldfaq="b"] #faq .ld-phone-home, html[data-v-ldfaq="a"] #weekly-box .ld-phone-home { display: block; width: 8rem; height: .3rem; margin: 1.25rem auto -.6rem; border-radius: 999px; background: currentColor; opacity: .55; }
/* A: the phone keeps going. Quick Answers and the weekly club below it share one screen. */
html[data-v-ldfaq="a"] #faq.ld-faq { margin-bottom: 0; padding-bottom: 1.25rem; border-bottom: 0; border-radius: 3.25rem 3.25rem 0 0; box-shadow: none; }
html[data-v-ldfaq="a"] #weekly-box.ld-below.weekly-discovery { max-width: 27.5rem; margin: 0 auto 2.5rem; padding-inline: 1.1rem !important; border: 12px solid #241A20 !important; border-top: 0 !important; border-radius: 0 0 3.25rem 3.25rem; overflow: hidden; box-shadow: 0 2rem 3.5rem -2rem rgba(45, 25, 40, .6); }
html[data-v-ldfaq="a"] #weekly-box.ld-below .tail-heading h2 { font-size: clamp(1.9rem, 7.5vw, 2.5rem); }
html[data-v-ldfaq="a"] #weekly-box.ld-below .weekly-box-object { height: 16rem; }
@media (max-width: 560px) {
  html:is([data-v-ldfaq="a"], [data-v-ldfaq="b"]) #faq.ld-faq { --ld-bezel: 7px; max-width: calc(100% - 1rem); padding: 0 .75rem 1.4rem; border-width: 7px; border-radius: 2.5rem; }
  html[data-v-ldfaq="a"] #faq.ld-faq { border-bottom: 0; border-radius: 2.5rem 2.5rem 0 0; }
  html[data-v-ldfaq="a"] #weekly-box.ld-below.weekly-discovery { max-width: calc(100% - 1rem); padding-inline: .75rem !important; border-width: 0 7px 7px !important; border-radius: 0 0 2.5rem 2.5rem; }
  .ld-phone-island { width: 5rem; height: 1.35rem; }
}

/* ================= #18 Per-size layout (what browser zoom changes) =================
   Zooming changes the CSS width. Each band gets its own spacing, measure and container width,
   so the page reads as designed at 320 (200% zoom on a phone) up to 2560 (50% zoom on a laptop). */

/* 320 to 359: the tightest phone. Smaller gutters, no clipped headings, stacked controls. */
@media (max-width: 359.98px) {
  .ld-chapter { padding: 1.8rem .75rem 1.1rem; }
  .ld-chap-title { font-size: 1.15rem; }
  .ld-chap-line { font-size: .84rem; }
  html[data-v-ldchap="c"] .ld-chap-bonbon { width: 4.25rem; height: 4.25rem; }
  #how-it-works.glaze-guide { padding-inline: .6rem; }
  .ld-reel-page { padding: .6rem; border-radius: 22px; }
  .ld-reel-copy h3 { font-size: 1.55rem; }
  .ld-allergy-btn { padding: .8rem .8rem; }
  .ld-allergy-main { font-size: .94rem; }
  .ld-ico svg { width: 27px; height: 27px; }
  #faq .faq-question { gap: .6rem; }
  .glaze-gallery .tail-heading, .glaze-creators .tail-heading, #how-it-works .tail-heading { padding-inline: .25rem; }
  :is(#how-it-works, #kitchen, #glaze-gallery, #faq, #weekly-box) h2 { overflow-wrap: anywhere; hyphens: auto; }
}
/* 360 to 639: phones (375, 390, 430). The story reel stacks: picture first, then the words. */
@media (max-width: 639.98px) {
  .ld-reel-page { grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
  .ld-reel-page .ld-media { aspect-ratio: 4 / 5; max-height: 62svh; width: 100%; }
  .ld-reel-copy { padding: 0 .3rem .4rem; }
  .ld-chap-trail { top: 4.1rem; }
}
@media (min-width: 400px) and (max-width: 639.98px) {
  .ld-reel-page .ld-media { aspect-ratio: 1 / 1; }
}
/* 640 to 899: tablets and phones in landscape (768). Two columns come back with a narrower picture. */
@media (min-width: 640px) and (max-width: 899.98px) {
  .ld-reel-page { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
  .glaze-gallery .tail-heading, .glaze-creators .tail-heading { max-width: calc(100vw - 2.5rem); margin-inline: auto; }
  #glaze-gallery { max-width: 100%; overflow-x: clip; }
  #faq .faq-list { max-width: 40rem; }
}
/* 900 to 1199 (1024): small laptops and 125 to 150% zoom. */
@media (min-width: 900px) and (max-width: 1199.98px) {
  .ld-reel { max-width: 52rem; }
  html[data-v-ldbook="c"] .ld-reel-copy h3 { font-size: 1.35rem; }
  html[data-v-ldbook="c"] .ld-reel-copy p { font-size: .82rem; }
}
/* 1200 to 1679 (1280, 1440): the design width. */
@media (min-width: 1200px) {
  .ld-reel-page { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
}
/* 1680 to 2239 (1920, or 75% zoom): wider containers, more air, measure capped so lines stay readable. */
@media (min-width: 1680px) {
  .section-inner { max-width: 1240px; }
  :is(#menu, #order, #faq) > .section-inner { padding-inline: 1rem; }
  .ld-chapter { padding-block: 3.2rem 2rem; }
  .ld-chap-bonbon { width: 5rem; height: 5rem; }
  .ld-reel { max-width: 64rem; }
  .ld-reel-page { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); }
  .ld-reel-copy p { font-size: .98rem; }
  #how-it-works.glaze-guide { padding-block: 4.5rem; }
  .guide-binding { max-width: 60rem; }
  :is(#how-it-works, #kitchen, #glaze-gallery, #weekly-box) .tail-heading > p { max-width: 42rem; margin-inline: auto; }
  #faq .faq-answer-inner { max-width: 68ch; }
  html:is([data-v-ldfaq="a"], [data-v-ldfaq="b"]) #faq.ld-faq, html[data-v-ldfaq="a"] #weekly-box.ld-below.weekly-discovery { max-width: 30rem; }
  #menu .unified-allergy.ld-allergy { max-width: 760px !important; }
}
/* 2240 and up (2560, or 50 to 67% zoom on a laptop): a centered stage, not a stretched page. */
@media (min-width: 2240px) {
  .section-inner { max-width: 1400px; }
  :is(#menu, #order, #how-it-works, #fresh-story, #glaze-gallery, #kitchen, #faq, #weekly-box) { padding-block: 5.5rem; }
  .ld-chapter { padding-block: 4rem 2.4rem; }
  .ld-chap-title { font-size: 1.9rem; }
  .ld-reel { max-width: 70rem; }
  html[data-v-ldbook="c"] .ld-reel { max-width: 88rem; }
  .ld-reel-page { grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); }
  .ld-reel-copy h3 { font-size: 2.8rem; }
  .ld-reel-copy p { font-size: 1.05rem; }
  .guide-binding { max-width: 66rem; }
  .glaze-gallery-row { max-width: 2200px; margin-inline: auto; }
  #menu .unified-allergy.ld-allergy { max-width: 820px !important; }
}
.ld-chapter .glzv { pointer-events: auto; }

/* Pause control for the storybook clips (hidden in static mode, where no clip ever loads). */
.ld-motion-toggle { min-height: 2.75rem; padding: 0 1rem; white-space: nowrap; border: 1px solid var(--linen, #EADFCB); border-radius: 999px; background: var(--cream, #FDF8F0); color: var(--ink, #2D1928); font: 700 .74rem/1 'DM Sans', sans-serif; cursor: pointer; }
.ld-motion-toggle:focus-visible { outline: 2px solid var(--honey-gold-dark, #B8902D); outline-offset: 3px; }
html.glz-static .ld-motion-toggle { display: none; }
.ld-reel-nav .ld-motion-toggle { margin-left: .4rem; }
.ld-spread-toggle { position: absolute; z-index: 4; left: .75rem; bottom: .75rem; background: rgba(253, 248, 240, .92); }
html[data-v-ldbook="c"] .ld-reel-nav { flex-wrap: wrap; }
@media (min-width: 900px) { html[data-v-ldbook="c"] .ld-reel-nav { display: flex; } html[data-v-ldbook="c"] .ld-reel-nav :is(.ld-reel-prev, .ld-reel-next, .ld-reel-count) { display: none; } }
