/* draft 2026-10-31 design fixes for event detail pages: unified back arrow in the green map bar, 44px tap targets, type scale, single language label */
.atm-bar.atm-sticky{justify-content:flex-start!important}
.atm-bar.atm-sticky a.atm-lang{margin-left:auto;position:relative}
.atm-bar.atm-sticky a.atm-dback{position:relative;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:44px;height:32px;margin:0 -8px 0 -12px;color:inherit!important;-webkit-tap-highlight-color:transparent}
.atm-dback svg{width:11px;height:22px;display:block}
.atm-dback::before{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
.atm-bar.atm-sticky a.atm-lang::before,.site-header .nav-toggle::before,body.atm-detail section a:not([class])::before,body.atm-detail .note a:not([class])::before,body.atm-detail footer a:not([class])::before,body.atm-detail .top-lang a::before,body.atm-detail .lang-switch a::before{content:"";position:absolute;left:50%;top:50%;width:max(calc(100% + 8px),44px);height:44px;transform:translate(-50%,-50%)}
.site-header .nav-toggle,body.atm-detail section a:not([class]),body.atm-detail .note a:not([class]),body.atm-detail footer a:not([class]),body.atm-detail .top-lang a,body.atm-detail .lang-switch a{position:relative}
/* one language label: only the other language is shown */
body.atm-detail .top-lang a[aria-current],body.atm-detail .lang-switch a[aria-current]{display:none!important}
/* type scale: h1 28 / h2 22 / h3 18 / body 16 / secondary 14 */
html body.atm-detail h1:not(.sr-only){font-size:28px!important;line-height:1.25!important}
html body.atm-detail h2,html body.atm-detail.ev-polish h2.sec-title{font-size:22px!important;line-height:1.3!important}
html body.atm-detail h3{font-size:18px!important;line-height:1.35!important}
html body.atm-detail section p,html body.atm-detail section li,html body.atm-detail .venue-block{font-size:16px!important}
html body.atm-detail .meta,html body.atm-detail small,html body.atm-detail .note li,html body.atm-detail .hz-tag,html body.atm-detail .day-date{font-size:14px!important}
/* the green map bar now carries the map link + language label: hide the duplicates inside the event header */
body.atm-detail .site-header .hdr-map,body.atm-detail .site-header .top-right-bar{display:none!important}
body.atm-detail .site-header .lang-switch a[href*="/asia/"]{display:none!important}
/* 44px real tap size for the header menu toggle; one language label on pages whose header has its own switch */
html body.atm-detail .site-header .nav-toggle{min-width:44px!important;min-height:44px!important;display:inline-flex;align-items:center;justify-content:center}
html body.atm-detail .site-header .nav-toggle::before{display:none}
body.atm-detail .atm-bar.atm-sticky ~ * .site-header .lang-switch a[hreflang],body.atm-detail .atm-bar.atm-sticky ~ .site-header .lang-switch a[hreflang]{display:none!important}
/* green bar is 44px tall on detail pages so the back arrow / map / language targets are real 44px and don't overlap the header below */
html body.atm-detail .atm-bar.atm-sticky{height:44px!important}
html body.atm-detail .site-header[style*="sticky"],html body.atm-detail.cw-theme .site-header,html body.atm-detail.sy-theme .site-header,html body.atm-detail.hz-theme .site-header,html body.atm-detail.tw-theme .site-header{top:44px!important}
.atm-dback::before{display:none}
html body.atm-detail .atm-bar.atm-sticky a.atm-dback{height:44px;margin:0 0 0 -12px}
/* draft 2026-10-31: mobile header = list page (〈 left · site name centred · ☰ right); page's own ☰ hidden, EN/中文 inside the menu */
.atm-dburger,.atm-dmlang{display:none}
body.atm-dhb .atm-bar.atm-sticky{position:sticky;justify-content:center!important}
body.atm-dhb .atm-bar.atm-sticky a.atm-map{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap;margin:0!important}
body.atm-dhb .atm-bar.atm-sticky a.atm-lang{display:none!important}
body.atm-dhb .atm-bar.atm-sticky .atm-dburger{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;margin-right:-6px;width:44px;height:44px;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
body.atm-dhb .atm-dburger svg{width:24px;height:24px}
html body.atm-dhb .site-header .nav-toggle{display:none!important}
body.atm-dhb .site-header .atm-dmlang{display:block}
/* draft 2026-10-31: close X + 返回列表 */
.atm-bar.atm-sticky a.atm-dclose{position:relative;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin:0 -4px 0 6px;border-radius:50%;background:#9A6E00;color:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,.28);-webkit-tap-highlight-color:transparent}
.atm-bar.atm-sticky a.atm-dclose svg{width:22px;height:22px}
.atm-bar.atm-sticky a.atm-lang+a.atm-dclose,.atm-bar.atm-sticky .atm-dburger+a.atm-dclose{margin-left:4px}
body.atm-dhb .atm-bar.atm-sticky .atm-dburger{margin-right:0}
.atm-dfoot{padding:28px 18px 34px;text-align:center}
.atm-dfoot a.atm-dlist{display:flex;align-items:center;justify-content:center;max-width:480px;margin:0 auto;min-height:54px;border-radius:14px;background:#0E6E78;color:#fff!important;font-weight:800;font-size:1.08rem;text-decoration:none;box-shadow:0 6px 18px rgba(14,110,120,.3)}
body.atm-detail{transition:transform .28s ease-in,opacity .28s ease-in}
body.atm-detail.atm-closing{transform:translateY(100vh);opacity:.3}
@media (max-width:600px){#prices .price-card.featured::after{right:-6px}} /* stamp poked past the screen on phones -> page laid out 413px wide */

/* draft 11/01: X floats on the top layer (fixed, right, below the bars; JS sets top). Bar keeps ☰ in its original spot. */
a.atm-dclose{position:fixed;right:calc(12px + env(safe-area-inset-right,0px));top:calc(100px + env(safe-area-inset-top,0px));z-index:2147483000;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;border-radius:50%;background:#9A6E00;color:#fff!important;box-shadow:0 3px 12px rgba(0,0,0,.32);border:2px solid rgba(255,255,255,.85);box-sizing:border-box;-webkit-tap-highlight-color:transparent}
a.atm-dclose svg{width:22px;height:22px}
body.atm-dhb .atm-bar.atm-sticky .atm-dburger{margin-right:-6px}
