/*
 * Bootstrap 5 compatibility layer:
 * keeps the look of the former Bootstrap 4 based design (gutters, container widths, columns).
 */
:root { --bs-gutter-x: 30px; }
.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl, .row {
    --bs-gutter-x: 30px;
}
[class*="col-"], .col { position: relative; }
.navbar-toggler { color: #000; }

/* forms: Bootstrap 4 gave labels a bottom margin */
label { margin-bottom: .5rem; }

/* tables: restore Bootstrap 4 table look */
.table {
    --bs-table-color: #212529;
    --bs-table-bg: transparent;
    --bs-table-border-color: #dee2e6;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-bg: rgba(0, 0, 0, .05);
    --bs-table-striped-color: #212529;
    --bs-table-hover-bg: rgba(0, 0, 0, .075);
    --bs-table-hover-color: #212529;
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    vertical-align: top;
    border-color: #dee2e6;
}
.table > :not(caption) > * > * {
    padding: .75rem;
    background-color: transparent;
    border-bottom-width: 0;
    border-top: 1px solid #dee2e6;
    box-shadow: none;
}
.table > thead > tr > * { vertical-align: bottom; border-bottom: 2px solid #dee2e6; }
.table > tbody + tbody { border-top: 2px solid #dee2e6; }
.table > :not(:first-child) { border-top: 0; }
.table-hover > tbody > tr:hover > * { background-color: rgba(0, 0, 0, .075); color: #212529; --bs-table-accent-bg: transparent; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: rgba(0, 0, 0, .05); color: #212529; --bs-table-accent-bg: transparent; }
.table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
caption { padding-top: .75rem; padding-bottom: .75rem; color: #6c757d; text-align: left; caption-side: bottom; }

/* Bootstrap 4 .embed-responsive (used by editor content, replaced by .ratio in Bootstrap 5) */
.embed-responsive { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; }
.embed-responsive::before { display: block; content: ""; }
.embed-responsive .embed-responsive-item, .embed-responsive iframe, .embed-responsive embed,
.embed-responsive object, .embed-responsive video { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }
.embed-responsive-21by9::before { padding-top: 42.857143%; }
.embed-responsive-16by9::before { padding-top: 56.25%; }
.embed-responsive-4by3::before { padding-top: 75%; }
.embed-responsive-1by1::before { padding-top: 100%; }

/* Bootstrap 4 fixed heading sizes (Bootstrap 5 scales them fluidly below 1200px) */
h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1rem; }

/* Bootstrap 4 small text size */
small, .small { font-size: 80%; font-weight: 400; }
