/* =========================================================================
   Local Bootstrap 5 subset — replaces the full CDN bootstrap.min.css.
   The theme only uses: the box-sizing reset, .container (responsive widths),
   the 12-col grid (md/lg breakpoints in use), a .btn base + variants, a couple
   of components (.alert/.badge bases), and ~15 spacing/text/align utilities.
   Generated from the perf audit of actually-used classes. ~4KB.
   NOTE: .btn-block, .close and .clearfix are already defined in style.css
   ("Bootstrap 4->5 compatibility" block), so they are intentionally NOT here.
   ========================================================================= */

/* --- Reboot bit the theme depends on (Bootstrap set this globally) --- */
*, *::before, *::after { box-sizing: border-box; }

/* --- Container (faithful Bootstrap 5 responsive max-widths) --- */
.container,
.container-fluid {
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* --- Grid --- */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}
.row > * {
  padding-right: 12px;
  padding-left: 12px;
}
[class^="col-"],
[class*=" col-"] {
  position: relative;
  width: 100%;
}
.col-12 { flex: 0 0 auto; width: 100%; }
@media (min-width: 768px) {
  .col-md-3  { flex: 0 0 auto; width: 25%; }
  .col-md-4  { flex: 0 0 auto; width: 33.33333333%; }
  .col-md-5  { flex: 0 0 auto; width: 41.66666667%; }
  .col-md-6  { flex: 0 0 auto; width: 50%; }
  .col-md-7  { flex: 0 0 auto; width: 58.33333333%; }
  .col-md-8  { flex: 0 0 auto; width: 66.66666667%; }
  .col-md-9  { flex: 0 0 auto; width: 75%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
}

/* --- Buttons (variants are extended/overridden elsewhere in the theme) --- */
.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
}
.btn-sm        { padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.25rem; }
.btn-primary   { color: #fff; background-color: #0d6efd; border-color: #0d6efd; }
.btn-secondary { color: #fff; background-color: #6c757d; border-color: #6c757d; }
.btn-dark      { color: #fff; background-color: #212529; border-color: #212529; }
.btn-danger    { color: #fff; background-color: #dc3545; border-color: #dc3545; }

/* --- Minimal component bases (theme adds its own skins on top) --- */
.alert {
  position: relative;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
}

/* --- Utilities actually used in templates --- */
.text-center        { text-align: center !important; }
.align-items-center { align-items: center !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.p-4  { padding: 1.5rem !important; }
@media (min-width: 768px) {
  .text-md-left { text-align: left !important; }
  .mb-md-0      { margin-bottom: 0 !important; }
}
