/* Thai Lotus UI R1.2 — channel-specific festival banner layouts.
   Load AFTER /assets/tluf/tl-ui-polish-r1.css when present.
   R1.2 only changes presentation: Home/Menu compact cards, Digital Touch full-width strip. */
html[data-tlr12-channel="home"] main#top .hero .hero-inner{position:relative!important}
/* Home: seasonal card pinned to the bottom-right of the existing hero visual. */
html[data-tlr12-channel="home"] main#top .hero .hero-inner > .tl-festival-banner:not([hidden]){
  position:absolute!important;inset:auto clamp(12px,2vw,28px) clamp(14px,2vw,26px) auto!important;
  display:block!important;box-sizing:border-box!important;z-index:4!important;
  width:min(360px,40%)!important;max-width:360px!important;min-width:0!important;
  height:auto!important;aspect-ratio:calc(var(--tlr12-wide-ratio,4.1) / var(--tlr12-wide-zoom,1.10))!important;margin:0!important;padding:0!important;
  overflow:hidden!important;border:1px solid rgba(255,255,255,.30)!important;
  border-radius:13px!important;box-shadow:0 8px 28px rgba(10,13,30,.25)!important;
  background:#132d50!important;pointer-events:none!important;
}
/* Menu: contained preview alongside the intro, not a full-page strip. */
html[data-tlr12-channel="menu"] main#top .menu-touch-heading{min-width:0!important}
html[data-tlr12-channel="menu"] main#top .menu-touch-heading > div:first-child{flex:1 1 0;min-width:0}
html[data-tlr12-channel="menu"] main#top .menu-touch-heading.tlr12-has-banner > .menu-lotus-mark{display:none!important}
html[data-tlr12-channel="menu"] main#top .menu-touch-heading > .tl-festival-banner:not([hidden]){
  position:relative!important;inset:auto!important;display:block!important;box-sizing:border-box!important;
  flex:0 1 300px!important;width:min(300px,36%)!important;max-width:300px!important;min-width:0!important;
  height:auto!important;aspect-ratio:calc(var(--tlr12-wide-ratio,4.1) / var(--tlr12-wide-zoom,1.10))!important;margin:0 0 0 auto!important;padding:0!important;
  overflow:hidden!important;border:1px solid rgba(105,62,85,.18)!important;
  border-radius:12px!important;box-shadow:0 6px 18px rgba(57,23,44,.09)!important;
  background:#132d50!important;pointer-events:none!important;
}
/* Shared image fit for Home/Menu: avoid intrinsic width pushing the card wider. */
html[data-tlr12-channel="home"] main#top .hero-inner > .tl-festival-banner:not([hidden]) > img,
html[data-tlr12-channel="menu"] main#top .menu-touch-heading > .tl-festival-banner:not([hidden]) > img{
  position:absolute!important;display:block!important;inset:0!important;
  width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:auto!important;
  object-fit:cover!important;object-position:center!important;margin:0!important;padding:0!important;
  transform:none!important;transform-origin:center center!important;filter:none!important;
}
/* Digital Touch: its own layout. Confirm the existing banner gets inserted before #seasonBanner. */
html[data-tluf-r3-channel="digital_touch"] #kiosk > .tl-festival-banner:not([hidden]){
  box-sizing:border-box!important;position:relative!important;inset:auto!important;
  display:block!important;width:calc(100% - 24px)!important;max-width:none!important;min-width:0!important;
  height:auto!important;aspect-ratio:calc(var(--tlr12-wide-ratio,4.1) / var(--tlr12-wide-zoom,1.10))!important;
  margin:8px 12px 7px!important;padding:0!important;
  overflow:hidden!important;border:0!important;border-radius:12px!important;
  box-shadow:none!important;background:#132d50!important;
}
html[data-tluf-r3-channel="digital_touch"] #kiosk > .tl-festival-banner:not([hidden]) > img{
  position:absolute!important;display:block!important;inset:0!important;
  width:100%!important;height:100%!important;max-width:none!important;
  aspect-ratio:auto!important;object-fit:cover!important;object-position:center!important;
  margin:0!important;padding:0!important;
  transform:none!important;
  transform-origin:center center!important;filter:none!important;
}
/* Digital Touch Explore section: compact only on Digital Touch. */
html[data-tluf-r3-channel="digital_touch"] #kiosk .menu-head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:10px!important;padding:10px clamp(12px,2vw,22px)!important;
  margin:0 0 7px!important;min-height:0!important;
}
html[data-tluf-r3-channel="digital_touch"] #kiosk .menu-head h2{font-size:clamp(20px,2.4vw,29px)!important;line-height:1.16!important;margin:3px 0!important}
html[data-tluf-r3-channel="digital_touch"] #kiosk .menu-head p{font-size:clamp(11px,1.2vw,13px)!important;line-height:1.3!important;margin:0!important}
/* Old embedded artwork crops differ by theme; preserve the published image files. */
html[data-tluf-r3-theme="new-year"]{--tlr12-wide-zoom:1.136}
html[data-tluf-r3-theme="mlk-day"]{--tlr12-wide-ratio:3;--tlr12-wide-zoom:1}
html[data-tluf-r3-theme="lunar-new-year"]{--tlr12-wide-zoom:1.122}
html[data-tluf-r3-theme="valentine"]{--tlr12-wide-zoom:1.146}
html[data-tluf-r3-theme="st-patricks"]{--tlr12-wide-ratio:4.5;--tlr12-wide-zoom:1}
html[data-tluf-r3-theme="easter"]{--tlr12-wide-zoom:1.177}
html[data-tluf-r3-theme="songkran"]{--tlr12-wide-zoom:1.166}
html[data-tluf-r3-theme="earth-day"]{--tlr12-wide-ratio:4.5;--tlr12-wide-zoom:1}
html[data-tluf-r3-theme="cinco-de-mayo"]{--tlr12-wide-ratio:3;--tlr12-wide-zoom:1}
html[data-tluf-r3-theme="mothers-day"]{--tlr12-wide-ratio:4.5;--tlr12-wide-zoom:1}
html[data-tluf-r3-theme="memorial"]{--tlr12-wide-ratio:4.5;--tlr12-wide-zoom:1}
html[data-tluf-r3-theme="pride-month"]{--tlr12-wide-ratio:3;--tlr12-wide-zoom:1}
html[data-tluf-r3-theme="fathers-day"]{--tlr12-wide-ratio:4.5;--tlr12-wide-zoom:1}
html[data-tluf-r3-theme="juneteenth"]{--tlr12-wide-ratio:4.5;--tlr12-wide-zoom:1}
html[data-tluf-r3-theme="independence"]{--tlr12-wide-zoom:1.14}
html[data-tluf-r3-theme="labor-day"]{--tlr12-wide-ratio:4.5;--tlr12-wide-zoom:1}
html[data-tluf-r3-theme="hispanic-heritage"]{--tlr12-wide-ratio:3;--tlr12-wide-zoom:1}
html[data-tluf-r3-theme="mid-autumn"]{--tlr12-wide-ratio:3;--tlr12-wide-zoom:1}
html[data-tluf-r3-theme="halloween"]{--tlr12-wide-zoom:1.113}
html[data-tluf-r3-theme="diwali"]{--tlr12-wide-ratio:3;--tlr12-wide-zoom:1}
html[data-tluf-r3-theme="veterans"]{--tlr12-wide-zoom:1.106}
html[data-tluf-r3-theme="loy-krathong"]{--tlr12-wide-ratio:3;--tlr12-wide-zoom:1}
html[data-tluf-r3-theme="thanksgiving"]{--tlr12-wide-zoom:1.143}
html[data-tluf-r3-theme="christmas"]{--tlr12-wide-zoom:1.139}
/* Very narrow devices: keep the home festival card in the flow (never over text). */
@media(max-width:760px){
 html[data-tlr12-channel="home"] main#top .hero .hero-inner > .tl-festival-banner:not([hidden]){
   position:relative!important;inset:auto!important;grid-column:1!important;grid-row:auto!important;
   justify-self:end!important;align-self:auto!important;
   width:min(100%,360px)!important;max-width:360px!important;
   margin:12px 0 0!important;
 }
 html[data-tlr12-channel="menu"] main#top .menu-touch-heading{
   display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;
 }
 html[data-tlr12-channel="menu"] main#top .menu-touch-heading > .tl-festival-banner:not([hidden]){
   flex:0 0 auto!important;align-self:end!important;width:min(100%,340px)!important;max-width:340px!important;
   margin:0!important;
 }
 html[data-tluf-r3-channel="digital_touch"] #kiosk > .tl-festival-banner:not([hidden]){
   width:calc(100% - 16px)!important;margin:6px 8px 6px!important;border-radius:10px!important;
 }
 html[data-tluf-r3-channel="digital_touch"] #kiosk .menu-head{padding:8px 11px!important;gap:7px!important;margin-bottom:5px!important}
 html[data-tluf-r3-channel="digital_touch"] #kiosk .menu-head h2{font-size:21px!important;margin:2px 0!important}
 html[data-tluf-r3-channel="digital_touch"] #kiosk .menu-head p{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){
 html[data-tluf-r3-channel="digital_touch"] #kiosk > .tl-festival-banner > img{transition:none!important}
}

/* Reviewed merge: remove only the calibrated side fill. Deriving the frame ratio
   from the supplied crop factor keeps the artwork at full height without vertical zoom. */

/* Seasonal R1: the new artwork is already a complete 2160 x 480 banner. */
html[data-tluf-r3-theme="spring-blossom"],html[data-tluf-r3-theme="winter-glow"]{--tlr12-wide-ratio:4.5;--tlr12-wide-zoom:1;--tlup-banner-ratio:4.5;--tlup-banner-zoom:1}
