/*
 * Bootstrap 5 compatibility layer.
 * Loaded right after bootstrap.min.css; restores the Bootstrap 3 look the theme CSS was written against.
 */

:root {
    --bs-body-color: #333;
    --bs-body-line-height: 1.42857143;
    --bs-link-color-rgb: 51, 122, 183;
    --bs-link-hover-color-rgb: 35, 82, 124;
    scroll-behavior: auto; /* smooth scrolling fights the jQuery scrollTop animations */
}

/* Grid: keep the Bootstrap 3 gutter and container widths */
.container,
.container-fluid,
.row {
    --bs-gutter-x: 30px;
}

.container {
    max-width: none;
}

@media (min-width: 768px) {
    .container { max-width: 750px; }
}

@media (min-width: 992px) {
    .container { max-width: 970px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1170px; }
}

.container::after,
.container-fluid::after {
    display: table;
    clear: both;
    content: " ";
}

.row {
    align-items: flex-start;
}

/* Columns placed outside a .row keep the old floated behaviour */
:where(:not(.row)) > :where([class^="col-"], [class*=" col-"]) {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    :where(:not(.row)) > :where([class*="col-md-"]) { float: left; }
}

@media (min-width: 992px) {
    :where(:not(.row)) > :where([class*="col-lg-"]) { float: left; }
}

@media (min-width: 1200px) {
    :where(:not(.row)) > :where([class*="col-xl-"]) { float: left; }
}

/* Reboot differences */
p {
    margin: 0 0 10px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.1;
}

h1, h2, h3 {
    margin-top: 20px;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

ul, ol {
    padding-left: 40px;
    margin-bottom: 10px;
}

ul ul, ul ol, ol ul, ol ol {
    margin-bottom: 0;
}

a {
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
    color: inherit;
    text-decoration: none;
}

label {
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
}

fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

legend {
    float: none;
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    font-size: 21px;
    line-height: inherit;
    color: #333;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
}

legend + * {
    clear: none;
}

hr {
    margin: 20px 0;
    color: inherit;
    border: 0;
    border-top: 1px solid #eee;
    opacity: 1;
}

blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
}

blockquote p:last-child,
blockquote ul:last-child,
blockquote ol:last-child {
    margin-bottom: 0;
}

figure {
    margin: 1em 40px;
}

th {
    text-align: left;
}

caption {
    caption-side: top;
}

/* Navbar / nav pieces the header markup still uses */
.navbar-toggle {
    position: relative;
    float: right;
    padding: 9px 10px;
    margin: 8px 15px 8px 0;
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.navbar-toggle:focus {
    outline: 0;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
}

.navbar-toggle .icon-bar + .icon-bar {
    margin-top: 4px;
}

.nav,
.navbar-nav {
    display: block;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav::before,
.nav::after {
    display: table;
    content: " ";
}

.nav::after {
    clear: both;
}

.nav > li {
    position: relative;
    display: block;
}

.nav > li > a {
    position: relative;
    display: block;
    padding: 10px 15px;
}

.navbar-nav {
    margin: 7.5px -15px;
}

.navbar-nav > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 20px;
}

.navbar-collapse {
    padding-right: 15px;
    padding-left: 15px;
    overflow-x: visible;
    border-top: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

@media (min-width: 768px) {
    .navbar-toggle {
        display: none;
    }

    .navbar-nav {
        float: left;
        margin: 0;
    }

    .navbar-nav > li {
        float: left;
    }

    .navbar-nav > li > a {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .navbar-collapse {
        width: auto;
        border-top: 0;
        box-shadow: none;
    }

    .navbar-collapse.collapse {
        display: block !important;
        height: auto !important;
        padding-bottom: 0;
        overflow: visible !important;
    }
}

/* Bootstrap 3 utility classes that may still appear in templates or editor content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.pull-left { float: left !important; }
.pull-right { float: right !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.center-block { display: block; margin-right: auto; margin-left: auto; }
.img-responsive { display: block; max-width: 100%; height: auto; }
.hide, .hidden { display: none !important; }

@media (max-width: 767.98px) {
    .hidden-xs { display: none !important; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hidden-sm { display: none !important; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hidden-md { display: none !important; }
}

@media (min-width: 1200px) {
    .hidden-lg { display: none !important; }
}
