/* Back-to-top button (injected by /assets/js/main.js initScrollTop) */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 2px solid #d4a537;
  border-radius: 50%;
  background: #121833;
  color: #fff;
  box-shadow: 0 4px 14px rgba(18, 24, 51, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0.2s,
    background-color 0.15s ease,
    color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0s,
    background-color 0.15s ease,
    color 0.15s ease;
}
.scroll-top svg {
  display: block;
  width: 24px;
  height: 24px;
  max-width: none;
  pointer-events: none;
}
.scroll-top:hover,
.scroll-top:focus-visible {
  background: #d4a537;
  color: #121833;
}
.scroll-top:focus {
  outline: none;
}
.scroll-top:focus-visible {
  outline: 3px solid #121833;
  outline-offset: 3px;
  box-shadow:
    0 0 0 3px #fff,
    0 4px 14px rgba(18, 24, 51, 0.28);
}
@media (max-width: 767px) {
  .scroll-top {
    right: 16px;
    bottom: 16px;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top,
  .scroll-top.is-visible {
    transition: none;
    transform: none;
  }
}
@media print {
  .scroll-top {
    display: none;
  }
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
html {
  scroll-padding-top: 4.5rem;
}

/* Wide header: logo left, Sign Up CTA centre, silo nav right */
.site-header .wrap.hd-row {
  max-width: 90rem;
  padding: 0 1.5rem;
}
.hd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: #d4a537;
  color: #121833;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(212, 165, 55, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.hd-cta:hover,
.hd-cta:focus-visible {
  color: #121833;
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.hd-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 59.99rem) {
  .site-header .wrap.hd-row {
    padding: 0 1rem;
  }
  .hd {
    gap: 0.6rem;
  }
  .hd-cta {
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
  }
}
@media (max-width: 30rem) {
  .brand small {
    display: none;
  }
}
@media (min-width: 60rem) {
  .site-header .hd-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    min-height: 4.25rem;
  }
  .site-header .hd {
    display: contents;
  }
  .site-header .brand {
    grid-column: 1;
  }
  .site-header .hd-cta {
    grid-column: 2;
    justify-self: center;
    margin: 0;
    padding: 0.6rem 1.6rem;
    font-size: 1rem;
  }
  .site-header .nav {
    grid-column: 3;
    justify-self: end;
  }
}
@media (min-width: 60rem) and (max-width: 75rem) {
  .brand small {
    display: none;
  }
}
@media print {
  .hd-cta {
    display: none;
  }
}
