html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Homepage hero strip: position is driven by hero-tape-marquee.js (pixel wrap = instant handoff from last slide to first). */

.hero-tape-viewport {
  --hero-tape-gap: 1rem;
  --hero-tape-slide: min(72vw, 40rem);
  /* Page may be dir=rtl (e.g. Arabic); marquee must stay physical LTR or only the trailing slides sit in view. */
  direction: ltr;
  unicode-bidi: isolate;
  overflow: hidden;
  width: 100%;
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
}

.hero-tape-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  direction: ltr;
  width: max-content;
  max-width: none;
  column-gap: 0;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.hero-tape-set {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  flex: 0 0 auto;
  width: max-content;
  column-gap: var(--hero-tape-gap);
}

.hero-tape-slide {
  flex: 0 0 var(--hero-tape-slide);
  width: var(--hero-tape-slide);
  min-width: var(--hero-tape-slide);
  max-width: var(--hero-tape-slide);
}

@media (prefers-reduced-motion: reduce) {
  .hero-tape-track {
    animation: none;
  }

  .hero-tape-viewport {
    overflow-x: auto;
  }
}