html {
  font-size: 16px;
}

@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%;
  -webkit-text-size-adjust: 100%;
  /* Reserve vertical scrollbar space + block horizontal jitter when overflow toggles (desktop). */
  scrollbar-gutter: stable;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0);
  overflow-x: hidden;
}

/* Comfortable tap targets on phones/tablets (WCAG 2.5.5). */
@media (pointer: coarse) {
  .navbar .nav-link {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .btn {
    min-height: 2.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}
