/* Lightweight Bootstrap replacement for core layout/utilities */
:root {
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 3rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

.container {
  max-width: 1140px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.row > * {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  width: 100%;
  max-width: 100%;
}

[class^="col-"],
[class*=" col-"] {
  position: relative;
}

.col-12 { flex: 0 0 auto; width: 100%; }
.col-md-4, .col-md-6, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-12, .col-xl-3, .col-xl-8, .col-xl-9, .col-xl-10 { flex: 0 0 auto; width: 100%; }

@media (min-width: 768px) {
  .col-md-4 { width: 33.333333%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.666667%; }
}

@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-5 { width: 41.666667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.333333%; }
  .col-lg-8 { width: 66.666667%; }
  .col-lg-9 { width: 75%; }
  .col-lg-10 { width: 83.333333%; }
  .col-lg-12 { width: 100%; }
}

@media (min-width: 1200px) {
  .col-xl-3 { width: 25%; }
  .col-xl-8 { width: 66.666667%; }
  .col-xl-9 { width: 75%; }
  .col-xl-10 { width: 83.333333%; }
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-md-row { flex-direction: column !important; }

@media (min-width: 768px) {
  .flex-md-row { flex-direction: row !important; }
}

.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-stretch { align-items: stretch !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

@media (min-width: 992px) {
  .justify-content-lg-between { justify-content: space-between !important; }
  .justify-content-lg-start { justify-content: flex-start !important; }
  .d-lg-inline-flex { display: inline-flex !important; }
}

@media (min-width: 768px) {
  .justify-content-md-end { justify-content: flex-end !important; }
}

.order-1 { order: 1 !important; }
.order-2 { order: 2 !important; }

@media (min-width: 992px) {
  .order-lg-0 { order: 0 !important; }
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
}

.fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; }
.fixed-bottom { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1030; }

.text-center { text-align: center !important; }
.text-muted { color: #6b7280 !important; }
.text-decoration-none { text-decoration: none !important; }
.fw-bold { font-weight: 700 !important; }
.small { font-size: 0.875em !important; }
.w-100 { width: 100% !important; }

@media (min-width: 992px) {
  .text-lg-start { text-align: left !important; }
}

.p-0 { padding: var(--space-0) !important; }
.p-3 { padding: var(--space-3) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.my-3 { margin-top: var(--space-3) !important; margin-bottom: var(--space-3) !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mx-2 { margin-left: var(--space-2) !important; margin-right: var(--space-2) !important; }
.ms-3 { margin-left: var(--space-3) !important; }
.me-3 { margin-right: var(--space-3) !important; }
.me-auto { margin-right: auto !important; }
.gap-2 { gap: var(--space-2) !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.border-0 { border: 0 !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.2) !important; }
.display-4 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; font-weight: 700; }
.lead { font-size: 1.15rem; line-height: 1.7; }

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

.no-gutters {
  margin-right: 0;
  margin-left: 0;
}

.no-gutters > * {
  padding-right: 0;
  padding-left: 0;
}

@media (min-width: 768px) {
  .p-md-4 { padding: var(--space-4) !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
  .mt-md-0 { margin-top: 0 !important; }
}

@media (min-width: 992px) {
  .mt-lg-0 { margin-top: 0 !important; }
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  cursor: pointer;
  background: #e5e7eb;
  color: #111827;
}

.btn-link {
  background: transparent;
  border: 0;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.btn-secondary {
  background: #4b5563;
  color: #fff;
  border-color: #4b5563;
}

.btn-outline-secondary {
  background: transparent;
  color: #4b5563;
  border-color: #9ca3af;
}

.btn-outline-primary {
  background: transparent;
  color: #2563eb;
  border-color: #2563eb;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}

.card-header { padding: 0.9rem 1rem; border-bottom: 1px solid #e5e7eb; }
.card-body { padding: 1rem; }
.card-text { margin: 0 0 0.5rem; }

.collapse:not(.show) { display: none; }
.collapse.show { display: block; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.55);
}

.modal.show {
  display: block;
}

.modal-dialog {
  width: 100%;
  max-width: 800px;
  margin: 1.75rem auto;
}

.modal-content {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
}

.modal-header,
.modal-footer {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-footer {
  border-top: 1px solid #e5e7eb;
  border-bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal-title { margin: 0; }

.btn-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.btn-close::before {
  content: "×";
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.bg-success { background: #059669; color: #fff; }
.bg-info { background: #0ea5e9; color: #fff; }
.bg-warning { background: #d97706; color: #fff; }
.bg-dark { background: #111827; color: #fff; }

