html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* The inner ring separates the halo from the control, so it has to be whatever the page is behind
   it — a hard white one draws a bright outline around every focused button on a dark page. */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--bs-body-bg), 0 0 0 0.25rem #258cfb;
}

/* --- light or dark (spec §12) ----------------------------------------------------------------
   Bootstrap 5.3 carries the whole palette off data-bs-theme, so the portal needs only the switch
   itself: one icon for each direction, and only the one that says what happens next is shown. */

.theme-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

[data-bs-theme="dark"] .theme-to-dark,
[data-bs-theme="light"] .theme-to-light {
  display: none;
}

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;
}