/* GC84: presentation only. City stories, ownership and native navigation stay
   with the existing passport modules. No global theme or button overrides. */
.g2-phone:has(#wow-atlas-passport-ah2[data-p9-overview=true]),
.g2-phone:has(#wow-atlas-passport-ah2[data-p9-overview=true])>.g2-phone-scroll {
  background:#faf8ef;
}
/* GC85: the later UX28A stylesheet owns the native phone canvas with
   !important. Match its actual shell scope, and leave other screens alone. */
html:has(#wow-atlas-passport-ah2[data-p9-ready=true][data-p9-overview=true]),
body:has(#wow-atlas-passport-ah2[data-p9-ready=true][data-p9-overview=true]),
app-global2-shell .g2-phone:has(#wow-atlas-passport-ah2[data-p9-ready=true][data-p9-overview=true]) {
  background:#faf8ef!important;
}
app-global2-shell .g2-phone:has(#wow-atlas-passport-ah2[data-p9-ready=true][data-p9-overview=true])>.g2-phone-scroll,
app-global2-shell .g2-phone:has(#wow-atlas-passport-ah2[data-p9-ready=true][data-p9-overview=true])>.g2-header {
  background:transparent!important;
}
app-global2-shell #wow-atlas-passport-ah2[data-p9-ready=true][data-p9-overview=true] .p84-home-hero .p84-home-art {
  top:0;
}
#wow-atlas-passport-ah2[data-p9-overview=true] {
  --p15-paper:#fffdf5; --p15-ink:#104d46;
}
#wow-atlas-passport-ah2 .p84-home-hero {
  width:calc(100% + 36px); margin:-10px -18px 24px; padding:24px 24px 0;
  aspect-ratio:1 / 1.12; min-height:0; background:#faf8ef;
}
#wow-atlas-passport-ah2 .p84-home-hero::before {display:none}
#wow-atlas-passport-ah2 .p84-home-copy {position:static;width:100%}
#wow-atlas-passport-ah2 .p84-home-copy .p15-eyebrow {display:none}
#wow-atlas-passport-ah2 .p84-home-copy h1 {
  position:relative;z-index:2;font-family:var(--wow-sans,Arial,sans-serif);
  font-weight:800;font-size:clamp(26px,7.3vw,36px);line-height:1.08;
  letter-spacing:-.025em;max-width:100%;margin:0;text-wrap:initial;
}
#wow-atlas-passport-ah2 .p84-home-copy .p15-subtitle {
  position:relative;z-index:2;margin:14px 0 0;max-width:46%;
  font:500 clamp(14px,3.9vw,18px)/1.4 var(--wow-sans,Arial,sans-serif);
  color:#215e51!important;hyphens:none;word-break:normal;overflow-wrap:normal;
}
#wow-atlas-passport-ah2 .p84-home-art {
  inset:0 auto auto 0;width:100%;height:auto;max-width:none;
  object-fit:contain;object-position:center top;filter:none;
}
#wow-atlas-passport-ah2 .p84-home-copy .p15-open {
  position:absolute;z-index:3;left:24px;right:24px;bottom:0;width:calc(100% - 48px);
  max-width:none;min-height:52px;padding:13px 18px;background:#07594d!important;
  border-radius:30px;box-shadow:0 5px 14px #184c3610;font-weight:800;
}
#wow-atlas-passport-ah2 .p84-home-copy .p15-open svg {display:none}
#wow-atlas-passport-ah2[data-p9-overview=true] .p15-my-cities {
  padding:12px 0 10px;border:0;border-top:1px solid #dcded1;
  border-radius:0;background:transparent;box-shadow:none;margin:0 0 16px;
}
#wow-atlas-passport-ah2[data-p9-overview=true] .p15-my-cities>header {padding:0 2px 9px}
#wow-atlas-passport-ah2[data-p9-overview=true] .p15-my-cities h2 {
  font:800 22px/1.2 var(--wow-sans,Arial,sans-serif);letter-spacing:-.02em;
}
#wow-atlas-passport-ah2[data-p9-overview=true] .p15-city-strip {
  border-radius:20px;background:#efefe3;padding:13px 7px 9px;
}
#wow-atlas-passport-ah2[data-p9-overview=true] .p9-primary[data-p9-action="starting-city"] {margin-bottom:12px}
/* Full portrait desk; the existing dialog still owns history, focus and scroll. */
.p15-layer.p9.p84-desk {
  padding:0;background:#dfaf70 url('./images/desk_clean.webp') center/cover no-repeat;
  color:#124c40;--p84-font:var(--wow-sans,Arial,sans-serif);
}
.p84-desk .p84-desk-scene {position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.p84-desk .p15-panel {
  width:100%;max-width:700px;height:100%;max-height:none;min-height:0;
  border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden;z-index:1;
}
.p84-desk .p15-panel-head {
  position:relative;display:block;min-height:118px;flex:none;
  padding:calc(38px + env(safe-area-inset-top,0px)) 48px 12px;text-align:center;
}
.p84-desk .p15-panel-head h2 {
  font:700 clamp(18px,5.1vw,25px)/1.2 var(--p84-font);
  letter-spacing:-.03em;text-wrap:balance;
}
.p84-desk .p84-desk-subtitle {font:500 14px/1.35 var(--p84-font);margin:9px 0 0;color:#315f50}
.p84-desk .p15-close {
  position:absolute;left:10px;top:calc(32px + env(safe-area-inset-top,0px));
  background:#fffdf3b8!important;border:0;box-shadow:none;
}
.p84-desk .p15-panel-content {
  flex:1;min-height:0;display:flex;flex-direction:column;
  padding:0 12px max(28px,env(safe-area-inset-bottom,0px));
}
.p84-desk .p9-book-host {width:100%;margin-block:auto}
/* Reserve real room around the fixed hinge; no transforms on its ancestors. */
.p84-desk .pb-top {height:44px;margin-bottom:4px}
.p84-desk .pb-controls {padding:20px 3% 0;min-height:166px}
.p84-desk .pb-help {margin-top:8px}
.p84-desk .pb-close {background:#fffdf39c;border-radius:18px;padding:7px 12px!important}
.p84-desk .pb-open-button {background:#07594d!important;box-shadow:0 5px 14px #1748351a}
.p84-desk .pb :is(.pb-counter,.pb-hint,.pb-close,.pb-new,.pb-help) {font-family:var(--p84-font)}
.p84-desk .pb .pb-hint {
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  text-shadow:0 1px 3px #4d2d19b3;
}
/* Only four small alpha layers move. Mask the source's inner crop edges to
   keep branches continuous; outer edges extend safely beyond the viewport. */
.p84-foliage {
  position:absolute!important;width:38%;height:auto!important;max-width:265px!important;
  pointer-events:none;user-select:none;will-change:transform;
  animation:p84-leaf-sway 8s ease-in-out infinite alternate;
  --p84-mask:none;-webkit-mask-image:var(--p84-mask);mask-image:var(--p84-mask);
}
.p84-foliage--tl {left:-3%;top:-1%;transform-origin:0 0;--p84-mask:linear-gradient(135deg,#000 45%,transparent 90%)}
.p84-foliage--tr {right:-3%;top:-1%;transform-origin:100% 0;animation-delay:-3.1s;animation-duration:9.5s;--p84-mask:linear-gradient(225deg,#000 45%,transparent 90%)}
.p84-foliage--bl {left:-3%;bottom:-1%;transform-origin:0 100%;animation-delay:-2s;animation-duration:10s;--p84-mask:linear-gradient(45deg,#000 45%,transparent 90%)}
.p84-foliage--br {right:-3%;bottom:-1%;transform-origin:100% 100%;animation-delay:-5s;animation-duration:8.8s;--p84-mask:linear-gradient(315deg,#000 45%,transparent 90%)}
.p84-paused .p84-foliage {animation-play-state:paused}
@keyframes p84-leaf-sway {from{transform:translate3d(-1px,0,0) rotate(-.65deg)}to{transform:translate3d(2px,3px,0) rotate(.8deg)}}
@media(max-width:350px){
  #wow-atlas-passport-ah2 .p84-home-hero {width:calc(100% + 32px);margin-inline:-16px;padding:19px 20px 0}
  #wow-atlas-passport-ah2 .p84-home-copy h1 {font-size:25px}
  #wow-atlas-passport-ah2 .p84-home-copy .p15-subtitle {font-size:13px;margin-top:10px}
  #wow-atlas-passport-ah2 .p84-home-copy .p15-open {left:20px;right:20px;width:calc(100% - 40px)}
  .p84-desk .p15-panel-head {min-height:102px;padding-inline:48px 24px;padding-top:30px}
  .p84-desk .p15-close {top:24px}
  .p84-desk .p84-desk-subtitle {font-size:12px}
  .p84-desk .pb-controls {min-height:151px;padding-top:12px}
}
@media(min-width:650px){
  #wow-atlas-passport-ah2 .p84-home-hero {width:100%;max-width:570px;margin:0 auto 24px;padding-top:30px}
  .p84-desk .p15-panel-content {padding-inline:28px}
}
@media(max-height:620px){
  .p84-desk .p15-panel-head {min-height:82px;padding-top:max(16px,env(safe-area-inset-top,0px));padding-bottom:7px}
  .p84-desk .p15-close {top:max(10px,env(safe-area-inset-top,0px))}
  .p84-desk .p15-panel-content {padding-bottom:12px}
  .p84-desk .p9-book-host {margin-block:0}
  .p84-desk .pb-top {margin-bottom:0}
  .p84-desk .pb-controls {padding-top:10px;min-height:145px}
}
@media(prefers-reduced-motion:reduce){.p84-foliage{animation:none!important;will-change:auto}}

.p84-desk .p15-close svg {transform:rotate(180deg)}
