/* Joyland Add to Home Screen banner
   Slim bar above the beige header. Phones only (max-width: 768px).
   Colors match the live header (beige #efe6d5, brown #5a3e2b) and
   the site-wide darker green (#5e7d3a / hover #4c662f). */

.joyland-a2hs {
  display: none;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.65rem 0.5rem 0.7rem;
  padding-top: max(0.5rem, env(safe-area-inset-top));
  background: #efe6d5;
  color: #5a3e2b;
  border-bottom: 1px solid rgba(90, 62, 43, 0.25);
  box-shadow: 0 2px 8px rgba(90, 62, 43, 0.18);
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.3;
  position: relative;
  z-index: 1100;
}

.joyland-a2hs *,
.joyland-a2hs *::before,
.joyland-a2hs *::after {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .joyland-a2hs.joyland-a2hs--show {
    display: block;
  }
}

/* Preview / QA only: force the banner on any width when the page
   has class joyland-a2hs-force (set by ?a2hs_preview= on the preview). */
html.joyland-a2hs-force .joyland-a2hs.joyland-a2hs--show {
  display: block;
}

.joyland-a2hs__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.joyland-a2hs__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(90, 62, 43, 0.15);
  object-fit: contain;
}

.joyland-a2hs__text {
  flex: 1 1 auto;
  min-width: 0;
  color: #5a3e2b;
}

.joyland-a2hs__title {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #3a2619;
}

.joyland-a2hs__sub {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.6875rem;
  color: #5a3e2b;
}

#joyland-a2hs button.joyland-a2hs__add,
#joyland-a2hs button.joyland-a2hs__close {
  /* Beat Foundation + Additional CSS button rules */
  appearance: none;
  -webkit-appearance: none;
  margin: 0 !important;
  height: auto !important;
  line-height: 1 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-transform: none !important;
  font-family: inherit;
  cursor: pointer;
  border: 0 !important;
  border-radius: 3px;
  opacity: 1;
}

#joyland-a2hs button.joyland-a2hs__add {
  flex: 0 0 auto;
  background: #5e7d3a !important;
  background-color: #5e7d3a !important;
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.8rem !important;
}

#joyland-a2hs button.joyland-a2hs__add:hover,
#joyland-a2hs button.joyland-a2hs__add:focus {
  background: #4c662f !important;
  background-color: #4c662f !important;
  color: #fff !important;
}

#joyland-a2hs button.joyland-a2hs__add:focus-visible,
#joyland-a2hs button.joyland-a2hs__close:focus-visible {
  outline: 2px solid #5e7d3a;
  outline-offset: 2px;
}

#joyland-a2hs button.joyland-a2hs__close {
  flex: 0 0 auto;
  background: transparent !important;
  background-color: transparent !important;
  color: #5a3e2b !important;
  width: 2rem;
  height: 2rem;
  padding: 0 !important;
  font-size: 1.35rem;
  line-height: 1;
}

#joyland-a2hs button.joyland-a2hs__close:hover,
#joyland-a2hs button.joyland-a2hs__close:focus {
  background: rgba(90, 62, 43, 0.1) !important;
  background-color: rgba(90, 62, 43, 0.1) !important;
  color: #3a2619 !important;
}

.joyland-a2hs__tip {
  display: none;
  margin: 0.45rem 0 0.1rem 2.7rem;
  padding: 0.45rem 0.6rem;
  background: #fffdf8;
  border: 1px solid #e3d3bc;
  border-radius: 6px;
  color: #5a3e2b;
  font-size: 0.75rem;
  line-height: 1.4;
}

.joyland-a2hs__tip:focus {
  outline: none;
}

.joyland-a2hs--tip .joyland-a2hs__tip {
  display: block;
}

.joyland-a2hs__tip svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin: 0 0.05em 0 0.2em;
}

@media (max-width: 360px) {
  .joyland-a2hs__sub {
    display: none;
  }
  .joyland-a2hs__tip {
    margin-left: 0;
  }
}
