/* r7 legibility lock — opaque card, readable type, visible CTA. Loaded last. */
@font-face{
  font-family:"Noto Serif SC";
  src:url("assets/fonts/sophia-serif.woff2") format("woff2");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

body.stay-designed.home-visible .sanctuary-home-scene .sh-next,
body.retreat-designed #sophia-home .sanctuary-home-scene .sh-next,
body.cine-on #sophia-home .sanctuary-home-scene .sh-next{
  background:#f4efe4!important;
  color:#223629!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  opacity:1!important;
  isolation:isolate;
  z-index:5;
  box-shadow:0 18px 40px #0a140f40, inset 0 1px 0 #ffffffaa!important;
  border:1px solid #c9d2bc!important;
  border-radius:16px!important;
  padding:28px 30px 32px!important;
  width:min(420px,52%)!important;
  max-width:420px!important;
  min-height:0!important;
  margin:44px!important;
  justify-content:flex-start!important;
}

body.stay-designed.home-visible .sanctuary-home-scene .sh-next h2,
body.retreat-designed #sophia-home .sanctuary-home-scene .sh-next h2,
body.cine-on #sophia-home .sanctuary-home-scene .sh-next h2{
  color:#1c2a20!important;
  text-shadow:none!important;
  font-family:"Sophia Serif","Noto Serif SC","Songti SC","SimSun",serif!important;
  mix-blend-mode:normal!important;
  opacity:1!important;
  -webkit-text-fill-color:#1c2a20!important;
}

body.stay-designed.home-visible .sanctuary-home-scene .sh-next #sh-step,
body.retreat-designed #sophia-home .sanctuary-home-scene .sh-next #sh-step,
body.cine-on #sophia-home .sanctuary-home-scene .sh-next #sh-step{
  color:#4a5c4e!important;
  opacity:1!important;
  -webkit-text-fill-color:#4a5c4e!important;
  text-shadow:none!important;
}

body.stay-designed .sh-modes,
body.retreat-designed .sh-modes{
  background:#e4ebdc!important;
  border:1px solid #b7c4a8!important;
  backdrop-filter:none!important;
}
body.stay-designed .sh-modes button,
body.retreat-designed .sh-modes button{
  color:#445746!important;
  background:transparent!important;
  opacity:1!important;
  -webkit-text-fill-color:#445746!important;
}
body.stay-designed .sh-modes button[aria-pressed=true],
body.retreat-designed .sh-modes button[aria-pressed=true]{
  background:#20372f!important;
  color:#f4efe4!important;
  -webkit-text-fill-color:#f4efe4!important;
  box-shadow:none!important;
}

body.stay-designed.home-visible .sanctuary-home-scene .sh-primary,
body.retreat-designed #sophia-home .sanctuary-home-scene .sh-primary,
body.cine-on #sophia-home .sanctuary-home-scene .sh-primary,
#sh-start.sh-primary{
  background:#20372f!important;
  color:#f6f1e4!important;
  -webkit-text-fill-color:#f6f1e4!important;
  border:1px solid #20372f!important;
  opacity:1!important;
  text-shadow:none!important;
  font-weight:600!important;
}
body.stay-designed.home-visible .sanctuary-home-scene .sh-primary:hover,
body.cine-on #sophia-home .sanctuary-home-scene .sh-primary:hover,
#sh-start.sh-primary:hover{
  background:#2c4a3c!important;
  color:#fffdf6!important;
  -webkit-text-fill-color:#fffdf6!important;
}

body.stay-designed .sh-duration,
body.retreat-designed .sh-duration{
  color:#223629!important;
  background:#fffdf6!important;
  border:1px solid #b7c4a8!important;
}
body.stay-designed .sh-duration select,
body.retreat-designed .sh-duration select{
  color:#223629!important;
  -webkit-text-fill-color:#223629!important;
  background:transparent!important;
}

body.stay-designed .sh-unselect,
body.retreat-designed .sh-unselect{
  color:#4a5c4e!important;
}

/* Keep room rail from colliding with bird bubble */
body.stay-designed.home-visible .stay-room-rail{
  z-index:4;
}
body.tit-on.stay-designed.home-visible .sanctuary-home-scene .sh-bird-place{
  z-index:6!important;
  bottom:22%!important;
}
body.stay-designed.home-visible .sanctuary-home-scene .sh-bird-place>p{
  color:#f6f1e4!important;
  background:#173525ee!important;
  -webkit-text-fill-color:#f6f1e4!important;
  opacity:1!important;
}

@media(max-width:760px){
  body.stay-designed.home-visible .sanctuary-home-scene .sh-next,
  body.retreat-designed #sophia-home .sanctuary-home-scene .sh-next,
  body.cine-on #sophia-home .sanctuary-home-scene .sh-next{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    border-radius:0 0 16px 16px!important;
    padding:22px 22px 28px!important;
  }
}

/* CTA cannot lose its label */
#sh-start,
#sh-start.sh-primary,
body.stay-designed.home-visible .sanctuary-home-scene .sh-primary,
body.retreat-designed #sophia-home .sanctuary-home-scene .sh-primary,
body.cine-on #sophia-home .sanctuary-home-scene .sh-primary{
  background:#20372f!important;
  background-image:none!important;
  color:#fffdf6!important;
  -webkit-text-fill-color:#fffdf6!important;
  opacity:1!important;
  mix-blend-mode:normal!important;
  filter:none!important;
  font-size:15px!important;
  font-weight:600!important;
  line-height:1.3!important;
  letter-spacing:.02em!important;
  text-indent:0!important;
  visibility:visible!important;
}
#sh-start *,
body.stay-designed .sh-primary *{
  color:#fffdf6!important;
  -webkit-text-fill-color:#fffdf6!important;
  opacity:1!important;
}

/* Demo tour must sit above scenery and be dismissible */
.retreat-demo,
[data-demo],
dialog.retreat-demo,
.demo-guide,
[class*="demo"][role="dialog"],
body [role="dialog"]{
  z-index:80!important;
  pointer-events:auto!important;
}
body.stay-designed.home-visible .sanctuary-home-scene .sh-scenery,
body.stay-designed.home-visible .sanctuary-home-scene .sh-window,
body.stay-designed.home-visible .sanctuary-home-scene .sh-veil{
  pointer-events:none!important;
}
body.stay-designed.home-visible .sanctuary-home-scene .sh-next,
body.stay-designed.home-visible .stay-room-rail,
body.stay-designed.home-visible .sanctuary-home-scene .sh-bird-place,
body.stay-designed.home-visible .sanctuary-home-scene button,
body.stay-designed.home-visible .sanctuary-home-scene a{
  pointer-events:auto!important;
}
body.stay-designed.home-visible .sanctuary-home-scene .sh-primary:disabled,
#sh-start:disabled{
  opacity:.88!important;
  color:#fffdf6!important;
  -webkit-text-fill-color:#fffdf6!important;
  background:#20372f!important;
}

/* Windowsill must not cover the cream intention card */
body.stay-designed.home-visible .sanctuary-home-scene .windowsill,
body.retreat-designed #sophia-home .sanctuary-home-scene .windowsill,
body.cine-on #sophia-home .sanctuary-home-scene .windowsill,
.sanctuary-home-scene > .windowsill{
  left:auto!important;
  right:3.2%!important;
  bottom:16%!important;
  width:min(280px,32vw)!important;
  max-width:280px!important;
  z-index:4!important;
  max-height:min(240px,38%);
  overflow:auto;
}
body.stay-designed.home-visible .sanctuary-home-scene .sh-next,
body.retreat-designed #sophia-home .sanctuary-home-scene .sh-next,
body.cine-on #sophia-home .sanctuary-home-scene .sh-next{
  z-index:7!important;
  overflow:visible!important;
}
body.stay-designed.home-visible .sanctuary-home-scene .sh-next h2{
  max-width:100%!important;
  overflow:visible!important;
  white-space:normal!important;
}
/* Keep bird above sill, below nothing important */
body.tit-on.stay-designed.home-visible .sanctuary-home-scene .sh-bird-place{
  z-index:6!important;
  right:4%!important;
  bottom:42%!important;
}
@media(max-width:760px){
  body.stay-designed.home-visible .sanctuary-home-scene .windowsill,
  .sanctuary-home-scene > .windowsill{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    width:100%!important;
    max-width:none!important;
    margin:12px 16px 0!important;
    z-index:3!important;
  }
}
