/*!
 * BS4 -> Bootstrap 5.3 compatibility layer (Brokerage sites).
 * Loaded only when the theme runs on Bootstrap 5 (SiteTheme.IsBs5). It keeps per-domain partials,
 * custom pages and database HTML written for Bootstrap 4.3 working without editing them.
 * New markup should use BS5 classes; this file can shrink as partials are converted.
 * Pairs with assets/js/bs4-compat.js (data-toggle -> data-bs-toggle etc.).
 */

/* ---------- Layout / grid ---------- */
/* BS4 containers stopped at 1140px; BS5 adds a 1320px xxl step. Keep the old width so headers and
   custom partials designed for 1140px don't stretch. */
@media (min-width: 1400px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl { max-width: 1140px; }
}
.no-gutters { --bs-gutter-x: 0; --bs-gutter-y: 0; margin-right: 0; margin-left: 0; }
.no-gutters > .col, .no-gutters > [class*="col-"] { padding-right: 0; padding-left: 0; }
.form-row { display: flex; flex-wrap: wrap; margin-right: -5px; margin-left: -5px; }
.form-row > .col, .form-row > [class*="col-"] { padding-right: 5px; padding-left: 5px; }
.form-group { margin-bottom: 1rem; }
.form-inline { display: flex; flex-flow: row wrap; align-items: center; }
.form-inline .form-control, .form-inline .form-select, .form-inline .custom-select { display: inline-block; width: auto; vertical-align: middle; }
.form-inline .form-group { display: flex; flex: 0 0 auto; flex-flow: row wrap; align-items: center; margin-bottom: 0; }
@media (max-width: 575.98px) { .form-inline .form-control, .form-inline .custom-select { width: 100%; } }
.card-deck { display: flex; flex-flow: row wrap; margin-right: -15px; margin-left: -15px; }
.card-deck .card { flex: 1 0 0%; margin-right: 15px; margin-left: 15px; margin-bottom: 15px; }
.card-columns { column-count: 3; column-gap: 1.25rem; }
.card-columns .card { display: inline-block; width: 100%; margin-bottom: .75rem; }
.jumbotron { padding: 2rem 1rem; margin-bottom: 2rem; background-color: #e9ecef; border-radius: .3rem; }
@media (min-width: 576px) { .jumbotron { padding: 4rem 2rem; } }

/* ---------- Media object ---------- */
.media { display: flex; align-items: flex-start; }
.media-body { flex: 1; min-width: 0; }

/* ---------- Typography / utilities ---------- */
/* BS4 links had no underline; BS5 underlines every link. The pxp skin assumes BS4. */
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.pxp-header a:hover, .pxp-footer a:hover, .btn:hover, .nav-link:hover, .dropdown-item:hover,
[class*="pxp-"] a:hover, a[class*="pxp-"]:hover { text-decoration: none; }
.font-weight-light { font-weight: 300 !important; }
.font-weight-lighter { font-weight: lighter !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-bold { font-weight: 700 !important; }
.font-weight-bolder { font-weight: bolder !important; }
.font-italic { font-style: italic !important; }
.text-justify { text-align: justify !important; }
.text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; }
.text-muted { color: #6c757d !important; }
.sr-only { 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; }
.sr-only-focusable:active, .sr-only-focusable:focus { position: static !important; width: auto !important; height: auto !important; margin: 0 !important; overflow: visible !important; clip: auto !important; white-space: normal !important; }
.rounded-sm { border-radius: .2rem !important; }
.rounded-lg { border-radius: .3rem !important; }
.border-left { border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important; }
.border-right { border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important; }
.border-left-0 { border-left: 0 !important; }
.border-right-0 { border-right: 0 !important; }
.img-responsive { display: block; max-width: 100%; height: auto; }
.pull-left { float: left !important; }
.pull-right { float: right !important; }

/* ---------- Buttons / badges / close ---------- */
.btn-block { display: block; width: 100%; }
.btn-block + .btn-block { margin-top: .5rem; }
.badge { border-radius: .25rem; }
.badge-pill { border-radius: 10rem; }
.badge-primary { color: #fff; background-color: var(--bs-primary); }
.badge-secondary { color: #fff; background-color: var(--bs-secondary); }
.badge-success { color: #fff; background-color: var(--bs-success); }
.badge-danger { color: #fff; background-color: var(--bs-danger); }
.badge-warning { color: #212529; background-color: var(--bs-warning); }
.badge-info { color: #212529; background-color: var(--bs-info); }
.badge-light { color: #212529; background-color: var(--bs-light); }
.badge-dark { color: #fff; background-color: var(--bs-dark); }
.close { float: right; font-size: 1.5rem; font-weight: 700; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; opacity: .5; background: transparent; border: 0; padding: 0; }
.close:hover { color: #000; text-decoration: none; opacity: .75; }
.modal-header .close { padding: 1rem 1rem; margin: -1rem -1rem -1rem auto; }

/* ---------- Forms ---------- */
.input-group-append, .input-group-prepend { display: flex; }
.input-group-append .btn, .input-group-prepend .btn { position: relative; z-index: 2; }
.input-group > .input-group-prepend > .btn, .input-group > .input-group-prepend > .input-group-text { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .input-group-append > .btn, .input-group > .input-group-append > .input-group-text { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }
/* BS4 gave <select class="form-control"> the native arrow; BS5 needs .form-select. */
select.form-control { appearance: auto; -webkit-appearance: menulist; }
.custom-select { display: inline-block; width: 100%; height: calc(1.5em + .75rem + 2px); padding: .375rem 1.75rem .375rem .75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #495057; vertical-align: middle;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;
    border: 1px solid #ced4da; border-radius: .25rem; appearance: none; }
.custom-select-sm { height: calc(1.5em + .5rem + 2px); font-size: .875rem; }
.custom-select-lg { height: calc(1.5em + 1rem + 2px); font-size: 1.25rem; }
.custom-control { position: relative; display: block; min-height: 1.5rem; padding-left: 1.5rem; }
.custom-control-inline { display: inline-flex; margin-right: 1rem; }
.custom-control-input { position: absolute; left: 0; top: .25rem; z-index: 1; }
.custom-control-label { position: relative; margin-bottom: 0; vertical-align: top; }
.custom-file { position: relative; display: inline-block; width: 100%; }
.form-text { display: block; }
label { margin-bottom: .5rem; display: inline-block; }

/* ---------- Dropdowns / nav / carousel ---------- */
.dropdown-menu-right { right: 0; left: auto; --bs-position: end; }
.dropdown-menu-left { right: auto; left: 0; --bs-position: start; }
.dropdown-menu.dropdown-menu-right[data-bs-popper] { right: 0; left: auto; }
.carousel-indicators li { box-sizing: content-box; flex: 0 1 auto; width: 30px; height: 3px; margin-right: 3px; margin-left: 3px; text-indent: -999px; cursor: pointer; background-color: #fff; background-clip: padding-box; border-top: 10px solid transparent; border-bottom: 10px solid transparent; opacity: .5; transition: opacity .6s ease; }
.carousel-indicators li.active { opacity: 1; }
.embed-responsive { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; }
.embed-responsive::before { display: block; content: ""; padding-top: 56.25%; }
.embed-responsive-21by9::before { padding-top: 42.857143%; }
.embed-responsive-4by3::before { padding-top: 75%; }
.embed-responsive-1by1::before { padding-top: 100%; }
.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; }

/* ---------- Directional spacing, float and text alignment (BS4 names) ---------- */
.ml-0{margin-left:0!important}
.ml-1{margin-left:.25rem!important}
.ml-2{margin-left:.5rem!important}
.ml-3{margin-left:1rem!important}
.ml-4{margin-left:1.5rem!important}
.ml-5{margin-left:3rem!important}
.ml-auto{margin-left:auto!important}
.ml-n1{margin-left:-.25rem!important}
.ml-n2{margin-left:-.5rem!important}
.ml-n3{margin-left:-1rem!important}
.ml-n4{margin-left:-1.5rem!important}
.ml-n5{margin-left:-3rem!important}
.mr-0{margin-right:0!important}
.mr-1{margin-right:.25rem!important}
.mr-2{margin-right:.5rem!important}
.mr-3{margin-right:1rem!important}
.mr-4{margin-right:1.5rem!important}
.mr-5{margin-right:3rem!important}
.mr-auto{margin-right:auto!important}
.mr-n1{margin-right:-.25rem!important}
.mr-n2{margin-right:-.5rem!important}
.mr-n3{margin-right:-1rem!important}
.mr-n4{margin-right:-1.5rem!important}
.mr-n5{margin-right:-3rem!important}
.pl-0{padding-left:0!important}
.pl-1{padding-left:.25rem!important}
.pl-2{padding-left:.5rem!important}
.pl-3{padding-left:1rem!important}
.pl-4{padding-left:1.5rem!important}
.pl-5{padding-left:3rem!important}
.pr-0{padding-right:0!important}
.pr-1{padding-right:.25rem!important}
.pr-2{padding-right:.5rem!important}
.pr-3{padding-right:1rem!important}
.pr-4{padding-right:1.5rem!important}
.pr-5{padding-right:3rem!important}
.float-left{float:left!important}
.text-left{text-align:left!important}
.float-right{float:right!important}
.text-right{text-align:right!important}
@media (min-width:576px){
.ml-sm-0{margin-left:0!important}
.ml-sm-1{margin-left:.25rem!important}
.ml-sm-2{margin-left:.5rem!important}
.ml-sm-3{margin-left:1rem!important}
.ml-sm-4{margin-left:1.5rem!important}
.ml-sm-5{margin-left:3rem!important}
.ml-sm-auto{margin-left:auto!important}
.ml-sm-n1{margin-left:-.25rem!important}
.ml-sm-n2{margin-left:-.5rem!important}
.ml-sm-n3{margin-left:-1rem!important}
.ml-sm-n4{margin-left:-1.5rem!important}
.ml-sm-n5{margin-left:-3rem!important}
.mr-sm-0{margin-right:0!important}
.mr-sm-1{margin-right:.25rem!important}
.mr-sm-2{margin-right:.5rem!important}
.mr-sm-3{margin-right:1rem!important}
.mr-sm-4{margin-right:1.5rem!important}
.mr-sm-5{margin-right:3rem!important}
.mr-sm-auto{margin-right:auto!important}
.mr-sm-n1{margin-right:-.25rem!important}
.mr-sm-n2{margin-right:-.5rem!important}
.mr-sm-n3{margin-right:-1rem!important}
.mr-sm-n4{margin-right:-1.5rem!important}
.mr-sm-n5{margin-right:-3rem!important}
.pl-sm-0{padding-left:0!important}
.pl-sm-1{padding-left:.25rem!important}
.pl-sm-2{padding-left:.5rem!important}
.pl-sm-3{padding-left:1rem!important}
.pl-sm-4{padding-left:1.5rem!important}
.pl-sm-5{padding-left:3rem!important}
.pr-sm-0{padding-right:0!important}
.pr-sm-1{padding-right:.25rem!important}
.pr-sm-2{padding-right:.5rem!important}
.pr-sm-3{padding-right:1rem!important}
.pr-sm-4{padding-right:1.5rem!important}
.pr-sm-5{padding-right:3rem!important}
.float-sm-left{float:left!important}
.text-sm-left{text-align:left!important}
.float-sm-right{float:right!important}
.text-sm-right{text-align:right!important}
}
@media (min-width:768px){
.ml-md-0{margin-left:0!important}
.ml-md-1{margin-left:.25rem!important}
.ml-md-2{margin-left:.5rem!important}
.ml-md-3{margin-left:1rem!important}
.ml-md-4{margin-left:1.5rem!important}
.ml-md-5{margin-left:3rem!important}
.ml-md-auto{margin-left:auto!important}
.ml-md-n1{margin-left:-.25rem!important}
.ml-md-n2{margin-left:-.5rem!important}
.ml-md-n3{margin-left:-1rem!important}
.ml-md-n4{margin-left:-1.5rem!important}
.ml-md-n5{margin-left:-3rem!important}
.mr-md-0{margin-right:0!important}
.mr-md-1{margin-right:.25rem!important}
.mr-md-2{margin-right:.5rem!important}
.mr-md-3{margin-right:1rem!important}
.mr-md-4{margin-right:1.5rem!important}
.mr-md-5{margin-right:3rem!important}
.mr-md-auto{margin-right:auto!important}
.mr-md-n1{margin-right:-.25rem!important}
.mr-md-n2{margin-right:-.5rem!important}
.mr-md-n3{margin-right:-1rem!important}
.mr-md-n4{margin-right:-1.5rem!important}
.mr-md-n5{margin-right:-3rem!important}
.pl-md-0{padding-left:0!important}
.pl-md-1{padding-left:.25rem!important}
.pl-md-2{padding-left:.5rem!important}
.pl-md-3{padding-left:1rem!important}
.pl-md-4{padding-left:1.5rem!important}
.pl-md-5{padding-left:3rem!important}
.pr-md-0{padding-right:0!important}
.pr-md-1{padding-right:.25rem!important}
.pr-md-2{padding-right:.5rem!important}
.pr-md-3{padding-right:1rem!important}
.pr-md-4{padding-right:1.5rem!important}
.pr-md-5{padding-right:3rem!important}
.float-md-left{float:left!important}
.text-md-left{text-align:left!important}
.float-md-right{float:right!important}
.text-md-right{text-align:right!important}
}
@media (min-width:992px){
.ml-lg-0{margin-left:0!important}
.ml-lg-1{margin-left:.25rem!important}
.ml-lg-2{margin-left:.5rem!important}
.ml-lg-3{margin-left:1rem!important}
.ml-lg-4{margin-left:1.5rem!important}
.ml-lg-5{margin-left:3rem!important}
.ml-lg-auto{margin-left:auto!important}
.ml-lg-n1{margin-left:-.25rem!important}
.ml-lg-n2{margin-left:-.5rem!important}
.ml-lg-n3{margin-left:-1rem!important}
.ml-lg-n4{margin-left:-1.5rem!important}
.ml-lg-n5{margin-left:-3rem!important}
.mr-lg-0{margin-right:0!important}
.mr-lg-1{margin-right:.25rem!important}
.mr-lg-2{margin-right:.5rem!important}
.mr-lg-3{margin-right:1rem!important}
.mr-lg-4{margin-right:1.5rem!important}
.mr-lg-5{margin-right:3rem!important}
.mr-lg-auto{margin-right:auto!important}
.mr-lg-n1{margin-right:-.25rem!important}
.mr-lg-n2{margin-right:-.5rem!important}
.mr-lg-n3{margin-right:-1rem!important}
.mr-lg-n4{margin-right:-1.5rem!important}
.mr-lg-n5{margin-right:-3rem!important}
.pl-lg-0{padding-left:0!important}
.pl-lg-1{padding-left:.25rem!important}
.pl-lg-2{padding-left:.5rem!important}
.pl-lg-3{padding-left:1rem!important}
.pl-lg-4{padding-left:1.5rem!important}
.pl-lg-5{padding-left:3rem!important}
.pr-lg-0{padding-right:0!important}
.pr-lg-1{padding-right:.25rem!important}
.pr-lg-2{padding-right:.5rem!important}
.pr-lg-3{padding-right:1rem!important}
.pr-lg-4{padding-right:1.5rem!important}
.pr-lg-5{padding-right:3rem!important}
.float-lg-left{float:left!important}
.text-lg-left{text-align:left!important}
.float-lg-right{float:right!important}
.text-lg-right{text-align:right!important}
}
@media (min-width:1200px){
.ml-xl-0{margin-left:0!important}
.ml-xl-1{margin-left:.25rem!important}
.ml-xl-2{margin-left:.5rem!important}
.ml-xl-3{margin-left:1rem!important}
.ml-xl-4{margin-left:1.5rem!important}
.ml-xl-5{margin-left:3rem!important}
.ml-xl-auto{margin-left:auto!important}
.ml-xl-n1{margin-left:-.25rem!important}
.ml-xl-n2{margin-left:-.5rem!important}
.ml-xl-n3{margin-left:-1rem!important}
.ml-xl-n4{margin-left:-1.5rem!important}
.ml-xl-n5{margin-left:-3rem!important}
.mr-xl-0{margin-right:0!important}
.mr-xl-1{margin-right:.25rem!important}
.mr-xl-2{margin-right:.5rem!important}
.mr-xl-3{margin-right:1rem!important}
.mr-xl-4{margin-right:1.5rem!important}
.mr-xl-5{margin-right:3rem!important}
.mr-xl-auto{margin-right:auto!important}
.mr-xl-n1{margin-right:-.25rem!important}
.mr-xl-n2{margin-right:-.5rem!important}
.mr-xl-n3{margin-right:-1rem!important}
.mr-xl-n4{margin-right:-1.5rem!important}
.mr-xl-n5{margin-right:-3rem!important}
.pl-xl-0{padding-left:0!important}
.pl-xl-1{padding-left:.25rem!important}
.pl-xl-2{padding-left:.5rem!important}
.pl-xl-3{padding-left:1rem!important}
.pl-xl-4{padding-left:1.5rem!important}
.pl-xl-5{padding-left:3rem!important}
.pr-xl-0{padding-right:0!important}
.pr-xl-1{padding-right:.25rem!important}
.pr-xl-2{padding-right:.5rem!important}
.pr-xl-3{padding-right:1rem!important}
.pr-xl-4{padding-right:1.5rem!important}
.pr-xl-5{padding-right:3rem!important}
.float-xl-left{float:left!important}
.text-xl-left{text-align:left!important}
.float-xl-right{float:right!important}
.text-xl-right{text-align:right!important}
}
