/* Hotfix Nov 1 (Grok Bot): uncropped hero posts, page fit, chapter transitions. */
html, body { max-width: 100%; overflow-x: clip; }
img, video, iframe, canvas, svg { max-width: 100%; }
/* hero posts: show the whole frame (reels are 9:16), never crop */
.r2c-post { aspect-ratio: 9 / 16; background: #1d1119; }
.r2c-post img, .r2c-post video { object-fit: contain !important; background: #1d1119; }
html:not([data-v-r2chero="b"]):not([data-v-r2chero="c"]) .r2c-slide { width: 40%; margin-left: -20%; top: 2%; }
html:not([data-v-r2chero="b"]):not([data-v-r2chero="c"]) .r2c-stage { aspect-ratio: 6 / 5; max-height: none; }
@media (max-width: 959.98px) {
  html:not([data-v-r2chero="b"]):not([data-v-r2chero="c"]) .r2c-slide { width: 50%; margin-left: -25%; }
  html:not([data-v-r2chero="b"]):not([data-v-r2chero="c"]) .r2c-stage { aspect-ratio: 1 / 1; max-width: 440px; }
  .r2c-cap { left: -30%; max-width: 72%; font-size: .74rem; }
  .r2c-comments { right: -34%; max-width: 74%; }
  .r2c-hero { overflow: visible; }
}
html[data-v-r2chero="b"] .r2c-post { aspect-ratio: 9 / 16; }
html[data-v-r2chero="c"] .r2c-stage { aspect-ratio: auto; }
.r2c-pumpkin picture { aspect-ratio: auto; }
.r2c-pumpkin img { object-fit: contain; height: auto; }
/* chapter transitions: each section enters like a turned page */
html.hfx-on .hfx-ch { opacity: 0; transform: translate3d(0, 36px, 0) scale(.985); transition: opacity .7s ease-out, transform .9s cubic-bezier(.22, 1, .36, 1); will-change: opacity, transform; }
html.hfx-on .hfx-ch.hfx-in { opacity: 1; transform: none; will-change: auto; }
html.hfx-on .hfx-ch > .container > h2, html.hfx-on .hfx-ch h2.section-title { clip-path: inset(0 0 100% 0); transition: clip-path .8s cubic-bezier(.22, 1, .36, 1) .15s; }
html.hfx-on .hfx-ch.hfx-in > .container > h2, html.hfx-on .hfx-ch.hfx-in h2.section-title { clip-path: inset(0 0 -10% 0); }
.hfx-bonbon { position: fixed; right: 14px; bottom: 90px; z-index: 40; width: 54px; height: 54px; pointer-events: none; opacity: 0; transform: translateY(20px) rotate(-8deg); transition: opacity .35s, transform .5s cubic-bezier(.22, 1, .36, 1); }
.hfx-bonbon.go { opacity: 1; transform: none; }
.hfx-bonbon img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 760px) { html.hfx-on .hfx-ch { transform: translate3d(0, 18px, 0); transition-duration: .45s, .55s; } }
@media (prefers-reduced-motion: reduce) { html.hfx-on .hfx-ch, html.hfx-on .hfx-ch h2 { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; } .hfx-bonbon { display: none; } }

/* Final review (Nov 2), added on top of Grok's hotfix (nothing above changed): the heading wipe animated clip-path,
   which breaks the transform/opacity-only rule, so headings now rise in with the chapter instead; and Save-Data static
   mode switched on after load shows every chapter at once with no motion and no corner Bonbon. */
html.hfx-on .hfx-ch > .container > h2, html.hfx-on .hfx-ch h2.section-title { clip-path: none !important; transition: none; }
html.glz-static.hfx-on .hfx-ch, html.glz-static.hfx-on .hfx-ch h2 { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
html.glz-static .hfx-bonbon { display: none !important; }

/* Nov 9 (Grok Bot): tight flow from Add a matcha to Your Order on the preview.
   Closed "Larger orders & gift boxes" <details> leaked the Special Occasion and Big Box
   cards into layout (blank band, and they overlapped Your Order). Hide them until opened.
   The Nov 1 lane-a opacity fix still applies when the details is open.
   Global section padding (5rem desktop, 6rem mobile bottom) also sat between the builder
   and Your Order; tighten only that junction. Other sections are unchanged. */
.compact-special-sizes:not([open]) > :not(summary) { display: none !important; }
#menu { padding-bottom: 1.25rem; }
#order { padding-top: 1.25rem; }
#boxBuilder { padding-bottom: 1.25rem; }
