/* Global responsive guard shared by every public page. */
html,
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  overflow-wrap: break-word;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

body > *,
.container,
.nav,
.hero-flex,
.two-col,
.grid,
.stats,
.steps,
.award,
.footer-grid,
.foot-grid,
.content,
.card,
.cta,
.note {
  min-width: 0;
  max-width: 100%;
}

.nav > *,
.hero-flex > *,
.two-col > *,
.grid > *,
.stats > *,
.footer-grid > *,
.foot-grid > * {
  min-width: 0;
}

img,
video,
canvas,
iframe {
  max-width: 100%;
}

input,
textarea,
select,
button {
  max-width: 100%;
}

pre,
code {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#back-to-top {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 166, 107, .58);
  border-radius: 50%;
  background: rgba(12, 16, 23, .94);
  color: #e3c894;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .34);
  font: 600 27px/1 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover,
#back-to-top:focus-visible {
  border-color: #e3c894;
  color: #fff;
  outline: none;
}

@media (max-width: 760px) {
  .container {
    width: 100%;
  }

  .nav {
    gap: 12px;
  }

  .brand,
  .brand .t,
  .brand-text {
    min-width: 0;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand .t b,
  .brand-text b {
    overflow-wrap: anywhere;
  }

  #nav-toggle {
    flex: 0 0 auto;
  }

  .btn,
  .more,
  .actions a,
  .btns a {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .breadcrumbs,
  footer,
  main p,
  main li,
  .card,
  .note,
  .cta {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .container,
  .hero .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .nav {
    gap: 8px;
  }

  .brand,
  .brand .t,
  .brand-text {
    gap: 9px;
  }

  .brand .mono,
  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand .t b,
  .brand-text b {
    font-size: 15px;
    line-height: 1.2;
  }

  .brand .t span,
  .brand-text span {
    display: none !important;
  }

  #nav-toggle {
    padding-left: 9px;
    padding-right: 9px;
  }

  .card,
  .cta {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (min-width: 761px) {
  #back-to-top {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #back-to-top {
    transition: none;
  }
}
