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

/* Auto-dismissing success banners (data-autodismiss, site.js) fade gently rather than in
   Bootstrap's default 0.15s. Under prefers-reduced-motion Bootstrap removes the transition. */
.alert.fade[data-autodismiss] {
  transition-duration: .6s;
}

/* Registration honeypot (Account/Register): off screen rather than display:none, which some bots
   check for. aria-hidden on the wrapper keeps it from screen readers. */
.klx-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Apple Maps place suggestions under the class location field (js/place-search.js). */
.klx-place-search {
  position: relative;
}

.klx-place-suggestions {
  position: absolute;
  z-index: 1050;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  max-height: 22rem;
  overflow-y: auto;
  padding: 0.25rem 0;
  border: 1px solid var(--klx-line-strong);
  border-radius: var(--klx-radius-sm);
  background: var(--klx-surface-alt);
  box-shadow: 0 8px 24px rgba(16, 19, 31, 0.12);
}

.klx-place-option {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.klx-place-option:hover,
.klx-place-option.is-active {
  background: var(--klx-surface);
}

.klx-place-option.is-active {
  box-shadow: inset 3px 0 0 var(--klx-blue-500);
}

.klx-place-option-primary {
  font-weight: 600;
  color: var(--klx-ink-900);
}

.klx-place-option-secondary {
  color: var(--klx-ink-400);
  font-size: 0.875rem;
}

.klx-place-map {
  height: 15rem;
  overflow: hidden;
  border: 1px solid var(--klx-line);
  border-radius: var(--klx-radius-sm);
}

/* Confirmation modal (site.js data-confirm): centered, with a round icon above the question. */
.klx-confirm .modal-content {
  border: 0;
  border-radius: var(--klx-radius);
  box-shadow: 0 24px 48px rgba(16, 19, 31, 0.18);
}

.klx-confirm .modal-body {
  padding: 1.75rem 1.75rem 1rem;
  text-align: center;
}

.klx-confirm #klx-confirm-body {
  color: var(--klx-ink-600);
}

.klx-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--klx-blue-50);
  color: var(--klx-blue-600);
  font-size: 1.5rem;
  font-weight: 700;
}

.klx-confirm-icon.is-danger {
  background: #fdecee;
  color: rgb(var(--bs-danger-rgb));
}

.klx-confirm .modal-footer {
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.75rem 1.5rem;
  border-top: 0;
}

.klx-confirm .modal-footer > .btn {
  flex: 1 1 0;
  min-width: 8rem;
  margin: 0;
}

/* Tables in policy text. Styled here rather than by class, because the policy editor (Quill) drops
   classes and turns header cells into ordinary ones when an admin saves: the first row then reads as
   the header. Long cell text wraps so nothing scrolls sideways at 320px. */
.klx-policy-body table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.klx-policy-body th,
.klx-policy-body td {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--bs-border-color);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.klx-policy-body th,
.klx-policy-body table:not(:has(thead)) tr:first-child td {
  font-weight: 600;
}
