body {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.navbar-blue .nav-link {
    font-size: 1rem;
    line-height: 1.42857143;
}

/* Restore Bootstrap 3's breadcrumb appearance: light gray pill, compact spacing,
   and link-colored items (Bootstrap 5 strips link color from breadcrumb items). */
.breadcrumb {
    padding: 8px 15px;
    margin: 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.breadcrumb-item a {
    color: #004a80;
}

.breadcrumb-item a:hover {
    color: #002a4a;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #777;
}

/* Restore Bootstrap 3's heading scale and spacing. Bootstrap 5 ships
   different sizes (h5 = 1.25rem etc.) and adds --bs-heading-color which
   the design wasn't built around. */
h1, .h1, h2, .h2, h3, .h3,
h4, .h4, h5, .h5, h6, .h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}

h1, .h1, h2, .h2, h3, .h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

h4, .h4, h5, .h5, h6, .h6 {
    margin-top: 10px;
    margin-bottom: 10px;
}

h1, .h1 { font-size: 36px; }
h2, .h2 { font-size: 30px; }
h3, .h3 { font-size: 24px; }
h4, .h4 { font-size: 18px; }
h5, .h5 { font-size: 14px; }
h6, .h6 { font-size: 12px; }

/* Bootstrap 5 dropped the .media component. Restore it so existing markup
   (.media > .media-body + .media-right) still flows side-by-side. */
.media {
    display: flex;
    align-items: flex-start;
}

.media-body {
    flex: 1;
    min-width: 0;
}

.media-right {
    margin-left: 1rem;
    flex-shrink: 0;
}

.media-left {
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Bootstrap 3's .checkbox / .radio wrappers (now .form-check in BS5). */
.checkbox,
.radio {
    position: relative;
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
}

.checkbox label,
.radio label {
    min-height: 20px;
    padding-left: 20px;
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.checkbox input[type="checkbox"],
.radio input[type="radio"] {
    position: absolute;
    margin-left: -20px;
}

/* Bootstrap 3's .label badge — BS5 dropped .label entirely.
   Map common variants to BS5 .badge equivalents. */
.label {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.label-default { background-color: #6c757d; }
.label-primary { background-color: #0d6efd; }
.label-success { background-color: #198754; }
.label-info    { background-color: #0dcaf0; color: #000; }
.label-warning { background-color: #ffc107; color: #000; }
.label-danger  { background-color: #dc3545; }

/* BS3 .close button — BS5 uses .btn-close. Alias the legacy class so
   markup still using <button class="close"> renders correctly. */
button.close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.375rem;
    opacity: 0.5;
}

button.close > * { display: none; }
button.close:hover { opacity: 0.75; text-decoration: none; }

/* Bootstrap 5 dropped .form-horizontal, .form-group, .control-label.
   Restore enough behaviour for the existing horizontal forms to lay out
   correctly without rewriting every view. */
.form-horizontal {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(-.5 * var(--bs-gutter-x, 1.5rem));
    margin-left: calc(-.5 * var(--bs-gutter-x, 1.5rem));
}

.form-horizontal > .col-md-6,
.form-horizontal > .col-md-2,
.form-horizontal > .col-md-8 {
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
}

.form-horizontal .form-group {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 15px;
}

.form-horizontal .control-label {
    padding-top: 7px;
    margin-bottom: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.form-horizontal .responsive-label {
    padding-right: 1rem;
}

.form-horizontal .responsive-label .control-label {
    text-align: right;
}

/* Bootstrap 3's col-{bp}-offset-X is offset-{bp}-X in Bootstrap 5.
   Restore the legacy class names so unmigrated views keep their layout. */
@media (min-width: 576px) {
    .col-sm-offset-1  { margin-left: 8.33333333%; }
    .col-sm-offset-2  { margin-left: 16.66666667%; }
    .col-sm-offset-3  { margin-left: 25%; }
    .col-sm-offset-4  { margin-left: 33.33333333%; }
    .col-sm-offset-5  { margin-left: 41.66666667%; }
    .col-sm-offset-6  { margin-left: 50%; }
}

@media (min-width: 768px) {
    .col-md-offset-1  { margin-left: 8.33333333%; }
    .col-md-offset-2  { margin-left: 16.66666667%; }
    .col-md-offset-3  { margin-left: 25%; }
    .col-md-offset-4  { margin-left: 33.33333333%; }
    .col-md-offset-5  { margin-left: 41.66666667%; }
    .col-md-offset-6  { margin-left: 50%; }
}

@media (min-width: 992px) {
    .col-lg-offset-1  { margin-left: 8.33333333%; }
    .col-lg-offset-2  { margin-left: 16.66666667%; }
    .col-lg-offset-3  { margin-left: 25%; }
    .col-lg-offset-4  { margin-left: 33.33333333%; }
    .col-lg-offset-5  { margin-left: 41.66666667%; }
    .col-lg-offset-6  { margin-left: 50%; }
}

/* WordPress/Spectra alignfull blocks try to break out to viewport edge and
   center an inner-wrap with auto margins. That math doesn't work inside our
   Bootstrap container, leaving visible padding/margin gutters. Force the
   block and its inner wrap to fill the parent column. */
.wp-block-uagb-container.alignfull.uagb-is-root-container,
.wp-block-uagb-container.alignfull.uagb-is-root-container > .uagb-container-inner-blocks-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.btn-success {
    --bs-btn-bg: #5cb85c;
    --bs-btn-border-color: #4cae4c;
    --bs-btn-hover-bg: #449d44;
    --bs-btn-hover-border-color: #398439;
    --bs-btn-active-bg: #398439;
    --bs-btn-active-border-color: #255625;
    --bs-btn-disabled-bg: #5cb85c;
    --bs-btn-disabled-border-color: #4cae4c;
}

.btn-default {
    --bs-btn-color: #212529;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #ced4da;
    --bs-btn-hover-color: #212529;
    --bs-btn-hover-bg: #f8f9fa;
    --bs-btn-hover-border-color: #c6c9cc;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #212529;
    --bs-btn-active-bg: #e9ecef;
    --bs-btn-active-border-color: #c6c9cc;
    --bs-btn-disabled-color: #212529;
    --bs-btn-disabled-bg: #fff;
    --bs-btn-disabled-border-color: #ced4da;
}

.btn-xs {
    --bs-btn-padding-y: 0.125rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.75rem;
    --bs-btn-border-radius: 0.2rem;
}

.input-sm {
    min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: var(--bs-border-radius-sm);
}

.form-inline {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 0.5rem;
}

.navbar-btn {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.input-group-btn {
    display: flex;
    align-items: stretch;
}

.input-group-btn > .btn {
    position: relative;
    z-index: 2;
}

.pull-right {
    float: right !important;
}

.pull-left {
    float: left !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.mr-auto {
    margin-right: auto !important;
}

.ml-auto {
    margin-left: auto !important;
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

.jumbotron {
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: var(--bs-tertiary-bg);
    border-radius: 0.5rem;
}

.well {
    min-height: 20px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.panel {
    margin-bottom: 1.25rem;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.panel-group .panel {
    margin-bottom: 0;
}

.panel-group .panel + .panel {
    margin-top: 0.5rem;
}

.panel-heading {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.panel-title {
    margin: 0;
    font-size: 1rem;
}

.panel-body,
.panel-footer {
    padding: 1rem;
}

.panel-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.panel-default {
    border-color: rgba(0, 0, 0, 0.125);
}

.panel-default > .panel-heading {
    color: #212529;
}

.collapse.in {
    display: block;
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}

[class*="col-xs-"] {
    flex: 0 0 auto;
}

/* Bootstrap 3's .col-xs-* applied unconditionally and was overridden at sm+
   because BS3 declared col-sm/md/lg rules later in source order. Our legacy
   file loads AFTER bootstrap.min.css, so unconditional widths here would beat
   BS5's col-sm/md/lg media queries at every breakpoint. Scope these widths
   to the xs breakpoint only (< 576px) so col-sm-*/md-*/lg-* can take over. */
@media (max-width: 575.98px) {
    .col-xs-1 { width: 8.33333333%; }
    .col-xs-2 { width: 16.66666667%; }
    .col-xs-3 { width: 25%; }
    .col-xs-4 { width: 33.33333333%; }
    .col-xs-5 { width: 41.66666667%; }
    .col-xs-6 { width: 50%; }
    .col-xs-7 { width: 58.33333333%; }
    .col-xs-8 { width: 66.66666667%; }
    .col-xs-9 { width: 75%; }
    .col-xs-10 { width: 83.33333333%; }
    .col-xs-11 { width: 91.66666667%; }
    .col-xs-12 { width: 100%; }
}

.visible-xs,
.visible-sm,
.visible-md,
.visible-lg,
.visible-xs-block,
.visible-sm-block,
.visible-md-block,
.visible-lg-block,
.visible-xs-inline,
.visible-sm-inline,
.visible-md-inline,
.visible-lg-inline,
.visible-xs-inline-block,
.visible-sm-inline-block,
.visible-md-inline-block,
.visible-lg-inline-block {
    display: none !important;
}

@media (max-width: 767.98px) {
    .hidden-xs { display: none !important; }
    .visible-xs { display: block !important; }
    .visible-xs-block { display: block !important; }
    .visible-xs-inline { display: inline !important; }
    .visible-xs-inline-block { display: inline-block !important; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hidden-sm { display: none !important; }
    .visible-sm { display: block !important; }
    .visible-sm-block { display: block !important; }
    .visible-sm-inline { display: inline !important; }
    .visible-sm-inline-block { display: inline-block !important; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hidden-md { display: none !important; }
    .visible-md { display: block !important; }
    .visible-md-block { display: block !important; }
    .visible-md-inline { display: inline !important; }
    .visible-md-inline-block { display: inline-block !important; }
}

@media (min-width: 1200px) {
    .hidden-lg { display: none !important; }
    .visible-lg { display: block !important; }
    .visible-lg-block { display: block !important; }
    .visible-lg-inline { display: inline !important; }
    .visible-lg-inline-block { display: inline-block !important; }
}

/* Bootstrap 5 adds a ::after caret to .dropdown-toggle automatically.
   All dropdowns on this site use explicit Font Awesome caret icons, so suppress the generated one. */
.dropdown-toggle::after {
    display: none !important;
}
