/**
 * Minimal Bootstrap-compatible subset for public shell (roadmap audit P25a fixes).
 * Replaces full vendors/bootstrap.css (~233KB) on public pages only.
 * Admin keeps the full kit bootstrap.
 */

.container-fluid {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  padding: 0.55rem 1rem;
  min-height: 2.5rem;
  background: transparent;
  color: inherit;
  font: inherit;
}

.btn:disabled {
  opacity: 0.65;
  pointer-events: none;
}

.btn-primary {
  background: #0a1628;
  border-color: #0a1628;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #12233a;
  border-color: #12233a;
  color: #fff;
}

.w-100 {
  width: 100%;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.ms-1 { margin-left: 0.25rem !important; }

.text-center { text-align: center !important; }
.text-muted { color: #6b7c8f !important; }
.small { font-size: 0.875em; }

.form-label {
  display: inline-block;
  margin-bottom: 0.35rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font: inherit;
  line-height: 1.4;
  color: #12233a;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.4rem;
  appearance: none;
}

.form-control:focus {
  outline: 0;
  border-color: #2ee6c5;
  box-shadow: 0 0 0 0.2rem rgba(46, 230, 197, 0.25);
}

.alert {
  position: relative;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

/* Mobile nav: hidden until .is-open; always visible from lg */
.bm-public-nav-wrap {
  display: none;
  width: 100%;
}

.bm-public-nav-wrap.is-open {
  display: block;
}

.d-lg-none {
  display: inline-flex;
}

@media (min-width: 992px) {
  .d-lg-none {
    display: none !important;
  }

  .bm-public-nav-wrap,
  .bm-public-nav-wrap.is-open {
    display: block !important;
  }
}
