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;
}

/* Navbar customize input: wide enough for placeholder in all languages */
.navbar-search-input {
  min-width: 18ch;
  width: 24ch;
  max-width: 100%;
}

/* Safe area for Capacitor/iOS: keep header below status bar (clock, battery) */
header .navbar {
  padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
  min-height: calc(3.5rem + env(safe-area-inset-top, 0px));
}

.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;
}

/* Cookie consent banner - fixed at bottom-left half so language selector stays visible on the right */
.egum-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 50%;
  max-width: 50%;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.1);
  border-right: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  z-index: 1050;
  font-size: 0.9rem;
}
.egum-cookie-banner a {
  text-decoration: underline;
}