html,
body {
  overflow-x: clip;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

::selection {
  background-color: #fef08a;
  color: #1f2937;
}

.qamrah-header {
  position: sticky !important;
  top: 0;
  z-index: 30;
}

.qamrah-home-hero {
  padding-top: 2.5rem;
}

.qamrah-home-hero-preview {
  max-width: 16rem;
}

.qamrah-hero-float-card {
  position: absolute;
  z-index: 10;
  bottom: -1.75rem;
  width: min(14.75rem, calc(100vw - 4rem));
}

html:dir(ltr) .qamrah-hero-float-card {
  left: -0.75rem;
}

html:dir(rtl) .qamrah-hero-float-card {
  right: -0.75rem;
  left: auto;
}

@media (min-width: 40rem) {
  .qamrah-home-hero-preview {
    max-width: 24rem;
  }

  .qamrah-hero-float-card {
    bottom: -1.25rem;
    width: min(15.25rem, calc(100vw - 4rem));
  }

  html:dir(ltr) .qamrah-hero-float-card {
    left: -1rem;
  }

  html:dir(rtl) .qamrah-hero-float-card {
    right: -1rem;
    left: auto;
  }
}

@media (min-width: 64rem) {
  .qamrah-home-hero {
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 5rem;
  }

  .qamrah-home-hero-preview {
    margin-top: 2.125rem;
  }
}
