/* R1 banner, registration, layout and scroll fixes. */

html {
  scroll-padding-top: calc(4.85rem + env(safe-area-inset-top, 0px));
  scroll-behavior: smooth;
}
#main > section,
#register,
#programme,
#stay,
#find-us,
#community,
#faq,
#officials,
#welcome,
#top {
  scroll-margin-top: calc(4.85rem + env(safe-area-inset-top, 0px));
}

.r1-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  isolation: isolate;
  background: #f6f0e2;
  padding: 0.9rem 1rem 0.35rem;
}
@media (min-width: 640px) {
  .r1-banner {
    padding: 1.15rem 1.25rem 0.4rem;
  }
}
.r1-banner-logo {
  display: block;
  width: min(15.5rem, 72vw);
  height: auto;
}
@media (min-width: 640px) {
  .r1-banner-logo {
    width: min(17.5rem, 50vw);
  }
}
@media (min-width: 1024px) {
  .r1-banner-logo {
    width: 19.5rem;
  }
}
.r1-hero-hotel {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  border-radius: 1.25rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(20 38 28 / 0.1), 0 14px 36px rgb(20 38 28 / 0.12);
}

#stay {
  width: 100%;
}
@media (min-width: 768px) {
  #stay {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

#welcome .font-display {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
#welcome .rounded-2xl > p.font-display {
  font-size: 1.15rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 420px) {
  #welcome .rounded-2xl > p.font-display {
    font-size: 1.05rem;
  }
}

#faq a {
  color: var(--color-forest, #143528);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#register .r1-panel {
  margin-top: 2rem;
  background: var(--color-cream, #fbf7ee);
  box-shadow: var(
    --shadow-panel,
    0 0 0 1px rgb(20 38 28 / 0.1),
    0 14px 36px rgb(20 38 28 / 0.1)
  );
  border-radius: 1.25rem;
  padding: 1.5rem;
}
@media (min-width: 640px) {
  #register .r1-panel {
    padding: 2rem 2.5rem;
  }
}
#register .r1-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px) {
  #register .r1-actions {
    grid-template-columns: 1fr 1fr;
  }
}
#register .r1-btn {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  text-align: center;
}
#register .r1-btn-gold {
  background: var(--color-gold, #b8943e);
  color: var(--color-forest-deep, #0c2419);
}
#register .r1-btn-outline {
  border: 2px solid var(--color-forest, #143528);
  color: var(--color-forest, #143528);
  background: transparent;
}
#register .r1-contact a {
  color: var(--color-forest, #143528);
  font-weight: 600;
  text-underline-offset: 4px;
}
#register .r1-contact a:hover {
  text-decoration: underline;
}
#register .r1-contact li + li {
  margin-top: 0.5rem;
}
#register .r1-note {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--color-muted, #2a3f34);
}
