/*
 * The slice of Bootstrap 5 that theme.css actually depends on.
 *
 * The templates being ported use exactly eleven grid classes:
 *   container, row, col-10, col-12, col-lg-8, col-lg-10, col-xl-8,
 *   offset-1, offset-lg-1, offset-lg-2, offset-xl-2
 *
 * Values are Bootstrap's own (breakpoints 576/768/992/1200/1400, container
 * max-widths 540/720/960/1140/1320, 1.5rem gutter), so the layout matches what
 * bootstrap.min.css produced — without shipping 160 kB for eleven classes.
 */

:root {
  --bs-gutter-x: 1.5rem;
}

.container {
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  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;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

.col-10 {
  flex: 0 0 auto;
  width: 83.33333333%;
}

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

.offset-1 {
  margin-left: 8.33333333%;
}

@media (min-width: 992px) {
  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
  .col-lg-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
  .offset-lg-1 {
    margin-left: 8.33333333%;
  }
  .offset-lg-2 {
    margin-left: 16.66666667%;
  }
}

@media (min-width: 1200px) {
  .col-xl-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
  .offset-xl-2 {
    margin-left: 16.66666667%;
  }
}

/* Used by the carousel controls ported from the FontAwesome draft. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/*
 * Added for this theme: comments.php uses .col-md-10, which the Astro markup
 * this file was extracted for never did. Value copied from bootstrap.min.css,
 * not derived.
 */
@media (min-width: 768px) {
  .col-md-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
}
