/*
 * Minimal Bootstrap compatibility layer.
 * The site owns its visual system in /css/site.css; this file only preserves
 * tiny layout/display semantics for generated Bootstrap-style class names.
 */

/* ==========================================================================
   01. Collapse Behavior
   Keeps Bootstrap-style collapsed navigation and disclosure states functional.
   ========================================================================== */
.collapse:not(.show) {
  display: none;
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.2s ease;
}

/* ==========================================================================
   02. Grid Compatibility
   Supports legacy row and column classes emitted by older generated templates.
   ========================================================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -0.75rem;
}

.row > * {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-inline: 0.75rem;
}

.col {
  flex: 1 0 0%;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .col-md-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
}

/* ==========================================================================
   03. Display and Alignment Utilities
   Preserves the small utility class subset used in shared partials.
   ========================================================================== */
.d-none {
  display: none !important;
}

.d-flex {
  display: flex !important;
}

.d-grid {
  display: grid !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.text-center {
  text-align: center !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

/* ==========================================================================
   04. Spacing Utilities
   Provides the spacing helpers still referenced by generated markup.
   ========================================================================== */
.mt-0 {
  margin-top: 0 !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.p-0 {
  padding: 0 !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}
