/*
 * Bootstrap 5 compatibility layer (WEB-19177).
 * The site theme (css/style.css) was written against Bootstrap 4. This file restores the
 * Bootstrap 4 defaults the theme relies on, so the move to Bootstrap 5.3 keeps the same look.
 * Load it straight after bootstrap.min.css and before css/style.css.
 */

/* Links: BS4 had no underline until hover */
a { color: #007bff; text-decoration: none; }
a:hover { color: #0056b3; text-decoration: underline; }
a:not([href]):not([class]), a:not([href]):not([class]):hover { color: inherit; text-decoration: none; }

/* Grid: BS4 gutters (and container padding) were 30px */
.row,
.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl { --bs-gutter-x: 30px; }

/* Containers: BS4 stopped growing at 1140px (BS5 adds a 1320px xxl step) */
@media (min-width: 1400px) {
  .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl { max-width: 1140px; }
}

/* Columns: BS4 made every column position:relative (affects stacking of overlapping blocks) */
.col, .col-auto, [class^="col-"], [class*=" col-"] { position: relative; }
/* ...and gave them 15px side padding even outside a .row (BS5 only pads .row > *) */
:where(:not(.row)) > :is(.col, .col-auto, [class^="col-"], [class*=" col-"]) { width: 100%; padding-right: 15px; padding-left: 15px; }

/* Non-column children of .row (e.g. the wrapper owl-carousel injects into .row.owl-carousel):
   BS5 gives every .row child gutter padding and width:100%; BS4 left them alone.
   Specificity stays at .row > * level so theme rules still win. */
.row > :where(:not(.col, .col-auto, [class^="col-"], [class*=" col-"])) {
  padding-right: 0; padding-left: 0; margin-top: 0; width: auto; max-width: none; flex-shrink: 1;
}

/* Columns: BS4 also capped .col-* with max-width. Plugins that force width:100% (e.g. .owl-carousel
   on a .col-lg-4) relied on that cap to keep the column width. */
.col-1{max-width:8.33333%} .col-2{max-width:16.6667%} .col-3{max-width:25%} .col-4{max-width:33.3333%} .col-5{max-width:41.6667%} .col-6{max-width:50%} .col-7{max-width:58.3333%} .col-8{max-width:66.6667%} .col-9{max-width:75%} .col-10{max-width:83.3333%} .col-11{max-width:91.6667%} .col-12{max-width:100%}
@media (min-width: 576px) { .col-sm-1{max-width:8.33333%} .col-sm-2{max-width:16.6667%} .col-sm-3{max-width:25%} .col-sm-4{max-width:33.3333%} .col-sm-5{max-width:41.6667%} .col-sm-6{max-width:50%} .col-sm-7{max-width:58.3333%} .col-sm-8{max-width:66.6667%} .col-sm-9{max-width:75%} .col-sm-10{max-width:83.3333%} .col-sm-11{max-width:91.6667%} .col-sm-12{max-width:100%} }
@media (min-width: 768px) { .col-md-1{max-width:8.33333%} .col-md-2{max-width:16.6667%} .col-md-3{max-width:25%} .col-md-4{max-width:33.3333%} .col-md-5{max-width:41.6667%} .col-md-6{max-width:50%} .col-md-7{max-width:58.3333%} .col-md-8{max-width:66.6667%} .col-md-9{max-width:75%} .col-md-10{max-width:83.3333%} .col-md-11{max-width:91.6667%} .col-md-12{max-width:100%} }
@media (min-width: 992px) { .col-lg-1{max-width:8.33333%} .col-lg-2{max-width:16.6667%} .col-lg-3{max-width:25%} .col-lg-4{max-width:33.3333%} .col-lg-5{max-width:41.6667%} .col-lg-6{max-width:50%} .col-lg-7{max-width:58.3333%} .col-lg-8{max-width:66.6667%} .col-lg-9{max-width:75%} .col-lg-10{max-width:83.3333%} .col-lg-11{max-width:91.6667%} .col-lg-12{max-width:100%} }
@media (min-width: 1200px) { .col-xl-1{max-width:8.33333%} .col-xl-2{max-width:16.6667%} .col-xl-3{max-width:25%} .col-xl-4{max-width:33.3333%} .col-xl-5{max-width:41.6667%} .col-xl-6{max-width:50%} .col-xl-7{max-width:58.3333%} .col-xl-8{max-width:66.6667%} .col-xl-9{max-width:75%} .col-xl-10{max-width:83.3333%} .col-xl-11{max-width:91.6667%} .col-xl-12{max-width:100%} }

/* Negative margins: BS4 shipped .m*-n1..n5; BS5 disables them by default and the markup uses them */
.m-n1{margin:-.25rem!important} .m-n2{margin:-.5rem!important} .m-n3{margin:-1rem!important} .m-n4{margin:-1.5rem!important} .m-n5{margin:-3rem!important} .mt-n1{margin-top:-.25rem!important} .mt-n2{margin-top:-.5rem!important} .mt-n3{margin-top:-1rem!important} .mt-n4{margin-top:-1.5rem!important} .mt-n5{margin-top:-3rem!important} .mb-n1{margin-bottom:-.25rem!important} .mb-n2{margin-bottom:-.5rem!important} .mb-n3{margin-bottom:-1rem!important} .mb-n4{margin-bottom:-1.5rem!important} .mb-n5{margin-bottom:-3rem!important} .ms-n1{margin-left:-.25rem!important} .ms-n2{margin-left:-.5rem!important} .ms-n3{margin-left:-1rem!important} .ms-n4{margin-left:-1.5rem!important} .ms-n5{margin-left:-3rem!important} .me-n1{margin-right:-.25rem!important} .me-n2{margin-right:-.5rem!important} .me-n3{margin-right:-1rem!important} .me-n4{margin-right:-1.5rem!important} .me-n5{margin-right:-3rem!important} .mx-n1{margin-left:-.25rem!important;margin-right:-.25rem!important} .mx-n2{margin-left:-.5rem!important;margin-right:-.5rem!important} .mx-n3{margin-left:-1rem!important;margin-right:-1rem!important} .mx-n4{margin-left:-1.5rem!important;margin-right:-1.5rem!important} .mx-n5{margin-left:-3rem!important;margin-right:-3rem!important} .my-n1{margin-top:-.25rem!important;margin-bottom:-.25rem!important} .my-n2{margin-top:-.5rem!important;margin-bottom:-.5rem!important} .my-n3{margin-top:-1rem!important;margin-bottom:-1rem!important} .my-n4{margin-top:-1.5rem!important;margin-bottom:-1.5rem!important} .my-n5{margin-top:-3rem!important;margin-bottom:-3rem!important}
@media (min-width: 576px) { .m-sm-n1{margin:-.25rem!important} .m-sm-n2{margin:-.5rem!important} .m-sm-n3{margin:-1rem!important} .m-sm-n4{margin:-1.5rem!important} .m-sm-n5{margin:-3rem!important} .mt-sm-n1{margin-top:-.25rem!important} .mt-sm-n2{margin-top:-.5rem!important} .mt-sm-n3{margin-top:-1rem!important} .mt-sm-n4{margin-top:-1.5rem!important} .mt-sm-n5{margin-top:-3rem!important} .mb-sm-n1{margin-bottom:-.25rem!important} .mb-sm-n2{margin-bottom:-.5rem!important} .mb-sm-n3{margin-bottom:-1rem!important} .mb-sm-n4{margin-bottom:-1.5rem!important} .mb-sm-n5{margin-bottom:-3rem!important} .ms-sm-n1{margin-left:-.25rem!important} .ms-sm-n2{margin-left:-.5rem!important} .ms-sm-n3{margin-left:-1rem!important} .ms-sm-n4{margin-left:-1.5rem!important} .ms-sm-n5{margin-left:-3rem!important} .me-sm-n1{margin-right:-.25rem!important} .me-sm-n2{margin-right:-.5rem!important} .me-sm-n3{margin-right:-1rem!important} .me-sm-n4{margin-right:-1.5rem!important} .me-sm-n5{margin-right:-3rem!important} .mx-sm-n1{margin-left:-.25rem!important;margin-right:-.25rem!important} .mx-sm-n2{margin-left:-.5rem!important;margin-right:-.5rem!important} .mx-sm-n3{margin-left:-1rem!important;margin-right:-1rem!important} .mx-sm-n4{margin-left:-1.5rem!important;margin-right:-1.5rem!important} .mx-sm-n5{margin-left:-3rem!important;margin-right:-3rem!important} .my-sm-n1{margin-top:-.25rem!important;margin-bottom:-.25rem!important} .my-sm-n2{margin-top:-.5rem!important;margin-bottom:-.5rem!important} .my-sm-n3{margin-top:-1rem!important;margin-bottom:-1rem!important} .my-sm-n4{margin-top:-1.5rem!important;margin-bottom:-1.5rem!important} .my-sm-n5{margin-top:-3rem!important;margin-bottom:-3rem!important} }
@media (min-width: 768px) { .m-md-n1{margin:-.25rem!important} .m-md-n2{margin:-.5rem!important} .m-md-n3{margin:-1rem!important} .m-md-n4{margin:-1.5rem!important} .m-md-n5{margin:-3rem!important} .mt-md-n1{margin-top:-.25rem!important} .mt-md-n2{margin-top:-.5rem!important} .mt-md-n3{margin-top:-1rem!important} .mt-md-n4{margin-top:-1.5rem!important} .mt-md-n5{margin-top:-3rem!important} .mb-md-n1{margin-bottom:-.25rem!important} .mb-md-n2{margin-bottom:-.5rem!important} .mb-md-n3{margin-bottom:-1rem!important} .mb-md-n4{margin-bottom:-1.5rem!important} .mb-md-n5{margin-bottom:-3rem!important} .ms-md-n1{margin-left:-.25rem!important} .ms-md-n2{margin-left:-.5rem!important} .ms-md-n3{margin-left:-1rem!important} .ms-md-n4{margin-left:-1.5rem!important} .ms-md-n5{margin-left:-3rem!important} .me-md-n1{margin-right:-.25rem!important} .me-md-n2{margin-right:-.5rem!important} .me-md-n3{margin-right:-1rem!important} .me-md-n4{margin-right:-1.5rem!important} .me-md-n5{margin-right:-3rem!important} .mx-md-n1{margin-left:-.25rem!important;margin-right:-.25rem!important} .mx-md-n2{margin-left:-.5rem!important;margin-right:-.5rem!important} .mx-md-n3{margin-left:-1rem!important;margin-right:-1rem!important} .mx-md-n4{margin-left:-1.5rem!important;margin-right:-1.5rem!important} .mx-md-n5{margin-left:-3rem!important;margin-right:-3rem!important} .my-md-n1{margin-top:-.25rem!important;margin-bottom:-.25rem!important} .my-md-n2{margin-top:-.5rem!important;margin-bottom:-.5rem!important} .my-md-n3{margin-top:-1rem!important;margin-bottom:-1rem!important} .my-md-n4{margin-top:-1.5rem!important;margin-bottom:-1.5rem!important} .my-md-n5{margin-top:-3rem!important;margin-bottom:-3rem!important} }
@media (min-width: 992px) { .m-lg-n1{margin:-.25rem!important} .m-lg-n2{margin:-.5rem!important} .m-lg-n3{margin:-1rem!important} .m-lg-n4{margin:-1.5rem!important} .m-lg-n5{margin:-3rem!important} .mt-lg-n1{margin-top:-.25rem!important} .mt-lg-n2{margin-top:-.5rem!important} .mt-lg-n3{margin-top:-1rem!important} .mt-lg-n4{margin-top:-1.5rem!important} .mt-lg-n5{margin-top:-3rem!important} .mb-lg-n1{margin-bottom:-.25rem!important} .mb-lg-n2{margin-bottom:-.5rem!important} .mb-lg-n3{margin-bottom:-1rem!important} .mb-lg-n4{margin-bottom:-1.5rem!important} .mb-lg-n5{margin-bottom:-3rem!important} .ms-lg-n1{margin-left:-.25rem!important} .ms-lg-n2{margin-left:-.5rem!important} .ms-lg-n3{margin-left:-1rem!important} .ms-lg-n4{margin-left:-1.5rem!important} .ms-lg-n5{margin-left:-3rem!important} .me-lg-n1{margin-right:-.25rem!important} .me-lg-n2{margin-right:-.5rem!important} .me-lg-n3{margin-right:-1rem!important} .me-lg-n4{margin-right:-1.5rem!important} .me-lg-n5{margin-right:-3rem!important} .mx-lg-n1{margin-left:-.25rem!important;margin-right:-.25rem!important} .mx-lg-n2{margin-left:-.5rem!important;margin-right:-.5rem!important} .mx-lg-n3{margin-left:-1rem!important;margin-right:-1rem!important} .mx-lg-n4{margin-left:-1.5rem!important;margin-right:-1.5rem!important} .mx-lg-n5{margin-left:-3rem!important;margin-right:-3rem!important} .my-lg-n1{margin-top:-.25rem!important;margin-bottom:-.25rem!important} .my-lg-n2{margin-top:-.5rem!important;margin-bottom:-.5rem!important} .my-lg-n3{margin-top:-1rem!important;margin-bottom:-1rem!important} .my-lg-n4{margin-top:-1.5rem!important;margin-bottom:-1.5rem!important} .my-lg-n5{margin-top:-3rem!important;margin-bottom:-3rem!important} }
@media (min-width: 1200px) { .m-xl-n1{margin:-.25rem!important} .m-xl-n2{margin:-.5rem!important} .m-xl-n3{margin:-1rem!important} .m-xl-n4{margin:-1.5rem!important} .m-xl-n5{margin:-3rem!important} .mt-xl-n1{margin-top:-.25rem!important} .mt-xl-n2{margin-top:-.5rem!important} .mt-xl-n3{margin-top:-1rem!important} .mt-xl-n4{margin-top:-1.5rem!important} .mt-xl-n5{margin-top:-3rem!important} .mb-xl-n1{margin-bottom:-.25rem!important} .mb-xl-n2{margin-bottom:-.5rem!important} .mb-xl-n3{margin-bottom:-1rem!important} .mb-xl-n4{margin-bottom:-1.5rem!important} .mb-xl-n5{margin-bottom:-3rem!important} .ms-xl-n1{margin-left:-.25rem!important} .ms-xl-n2{margin-left:-.5rem!important} .ms-xl-n3{margin-left:-1rem!important} .ms-xl-n4{margin-left:-1.5rem!important} .ms-xl-n5{margin-left:-3rem!important} .me-xl-n1{margin-right:-.25rem!important} .me-xl-n2{margin-right:-.5rem!important} .me-xl-n3{margin-right:-1rem!important} .me-xl-n4{margin-right:-1.5rem!important} .me-xl-n5{margin-right:-3rem!important} .mx-xl-n1{margin-left:-.25rem!important;margin-right:-.25rem!important} .mx-xl-n2{margin-left:-.5rem!important;margin-right:-.5rem!important} .mx-xl-n3{margin-left:-1rem!important;margin-right:-1rem!important} .mx-xl-n4{margin-left:-1.5rem!important;margin-right:-1.5rem!important} .mx-xl-n5{margin-left:-3rem!important;margin-right:-3rem!important} .my-xl-n1{margin-top:-.25rem!important;margin-bottom:-.25rem!important} .my-xl-n2{margin-top:-.5rem!important;margin-bottom:-.5rem!important} .my-xl-n3{margin-top:-1rem!important;margin-bottom:-1rem!important} .my-xl-n4{margin-top:-1.5rem!important;margin-bottom:-1.5rem!important} .my-xl-n5{margin-top:-3rem!important;margin-bottom:-3rem!important} }

/* Headings: BS4 used fixed sizes and weight 500 (BS5 uses responsive sizes) */
h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 500; line-height: 1.2; }
.display-1 { font-size: 6rem; font-weight: 300; }
.display-2 { font-size: 5.5rem; font-weight: 300; }
.display-3 { font-size: 4.5rem; font-weight: 300; }
.display-4 { font-size: 3.5rem; font-weight: 300; }

/* Classes removed in BS5 that the markup still uses */
.form-group { margin-bottom: 1rem; }
label { display: inline-block; }
.close {
  float: right; font-size: 1.5rem; font-weight: 700; line-height: 1; color: #000;
  text-shadow: 0 1px 0 #fff; opacity: .5; background-color: transparent; border: 0; padding: 0;
}
.close:hover { color: #000; text-decoration: none; }
.close:not(:disabled):not(.disabled):hover, .close:not(:disabled):not(.disabled):focus { opacity: .75; }
button.close { padding: 0; background-color: transparent; border: 0; }
.modal-header .close { padding: 1rem 1rem; margin: -1rem -1rem -1rem auto; }

/* Forms: BS4 selects with .form-control kept the native arrow */
select.form-control { appearance: auto; -webkit-appearance: menulist; }
textarea.form-control { height: auto; }

/* Breadcrumb divider: BS4 grey (BS5 default is near-black, invisible on the dark page banners) */
.breadcrumb { --bs-breadcrumb-divider-color: #6c757d; }

/* List group: BS4 styled .list-group-item even without a .list-group parent (sitemap.html);
   BS5 reads these variables from the parent, so give them page-wide defaults (BS4 sizes). */
:root {
  --bs-list-group-color: var(--bs-body-color);
  --bs-list-group-bg: var(--bs-body-bg);
  --bs-list-group-border-color: rgba(0, 0, 0, .125);
  --bs-list-group-border-width: 1px;
  --bs-list-group-border-radius: .25rem;
  --bs-list-group-item-padding-x: 1.25rem;
  --bs-list-group-item-padding-y: .75rem;
}
.list-group { --bs-list-group-item-padding-x: 1.25rem; --bs-list-group-item-padding-y: .75rem; --bs-list-group-border-color: rgba(0, 0, 0, .125); }

/* Tables: BS4 cell padding, and .table-responsive used directly on <table> (covid-19 pages) */
.table > :not(caption) > * > * { padding: .75rem; vertical-align: top; }
table.table-responsive { display: block; width: 100%; overflow-x: auto; }

/* Plain HTML tables with a border attribute (e.g. <table border="1"> on sub-processor.html):
   BS5 reboot zeroes all cell borders, BS4 left the browser's border grid in place.
   :where() keeps this at element-level specificity so theme rules still win. */
:where(table[border]:not([border="0"]):not(.table)) td,
:where(table[border]:not([border="0"]):not(.table)) th {
  border-width: 1px; border-style: inset;
}

/* Misc BS4 defaults */
ol, ul { padding-left: 40px; } /* BS4 kept the browser default; BS5 sets 2rem */
hr { border-top: 1px solid rgba(0, 0, 0, .1); opacity: 1; color: inherit; }
