/**
 * Bridge between BIMCOT theme (.container) and Bootstrap utilities (d-flex, mx-auto, etc.).
 * Load after styles.css via partials/head-styles (EXTRA slot) on pages that need helpers.
 */

/* Keep BIMCOT .container; avoid Bootstrap .container if grid bundle is added later */
.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  max-width: 100%;
}

.bimcot-stack {
  display: flex;
  flex-direction: column;
  gap: var(--bimcot-stack-gap, 1rem);
}

.bimcot-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bimcot-center-block {
  margin-inline: auto;
  max-width: 100%;
}

/* Header: flex utilities handle alignment; tone down Bootstrap reboot on nav buttons */
.site-header .btn {
  box-sizing: border-box;
}

.main-nav .btn {
  width: 100%;
}

/* Page shells: center content blocks with utilities */
.site-main > .container,
.page-section > .container {
  margin-inline: auto;
}

.mx-auto.bimcot-page {
  width: min(1120px, 100% - 2rem);
}

/* One document scroll: avoid overflow-x:hidden on sections (forces overflow-y:auto). */
.site-main,
.site-main .container,
.site-main .section {
  overflow: visible;
}