/* site-bs5.css - the site's Bootstrap 5 theme (Plan B, Bootstrap 3 -> 5).
   Loaded right after Bootstrap 5 by the Bootstrap 5 member layout (_Layout5). Pages use Bootstrap 5 class names only;
   this file sets Bootstrap 5 to the sizes and colours the site has always had (they came from Bootstrap 3.3.2), so a
   converted page looks like before. No new colours: every value here is the site's existing one.
   Only Bootstrap 5 class names in this file. */

/* ---------- 1. Colours and page basics ---------- */
:root {
    --bs-body-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --bs-body-font-size: 14px;
    --bs-body-line-height: 1.42857143;
    --bs-body-color: #333;            --bs-body-color-rgb: 51, 51, 51;
    --bs-emphasis-color: #333;        --bs-heading-color: inherit;
    --bs-secondary-color: #777;       --bs-secondary-color-rgb: 119, 119, 119;   /* "muted" text */
    --bs-link-color: #337ab7;         --bs-link-color-rgb: 51, 122, 183;
    --bs-link-hover-color: #23527c;   --bs-link-hover-color-rgb: 35, 82, 124;
    --bs-link-decoration: none;
    --bs-border-color: #ddd;
    --bs-border-radius: 4px;          --bs-border-radius-sm: 3px;    --bs-border-radius-lg: 6px;
    --bs-primary: #337ab7;            --bs-primary-rgb: 51, 122, 183;
    --bs-secondary: #777;             --bs-secondary-rgb: 119, 119, 119;
    --bs-success: #5cb85c;            --bs-success-rgb: 92, 184, 92;
    --bs-info: #5bc0de;               --bs-info-rgb: 91, 192, 222;
    --bs-warning: #f0ad4e;            --bs-warning-rgb: 240, 173, 78;
    --bs-danger: #d9534f;             --bs-danger-rgb: 217, 83, 79;
    --bs-light: #f5f5f5;              --bs-light-rgb: 245, 245, 245;
    /* the light "alert" colours (text / background / border) */
    --bs-primary-text-emphasis: #337ab7; --bs-primary-bg-subtle: #d9edf7;  --bs-primary-border-subtle: #337ab7;
    --bs-success-text-emphasis: #3c763d; --bs-success-bg-subtle: #dff0d8;  --bs-success-border-subtle: #d6e9c6;
    --bs-info-text-emphasis: #31708f;    --bs-info-bg-subtle: #d9edf7;     --bs-info-border-subtle: #bce8f1;
    --bs-warning-text-emphasis: #8a6d3b; --bs-warning-bg-subtle: #fcf8e3;  --bs-warning-border-subtle: #faebcc;
    --bs-danger-text-emphasis: #a94442;  --bs-danger-bg-subtle: #f2dede;   --bs-danger-border-subtle: #ebccd1;
    --bs-code-color: #c7254e;
    --bs-highlight-bg: #fcf8e3;
    scroll-behavior: auto;                      /* Bootstrap 5 scrolls smoothly; the site never did */
}
a { text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .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; }
h1 small, h2 small, h3 small, h1 .small, h2 .small, h3 .small { font-size: 65%; font-weight: 400; line-height: 1; color: #777; }
h4 small, h5 small, h6 small, h4 .small, h5 .small, h6 .small { font-size: 75%; font-weight: 400; line-height: 1; color: #777; }
p { margin: 0 0 10px; }
ul, ol { margin-top: 0; margin-bottom: 10px; padding-left: revert; padding-right: revert; }   /* browser default (right side in Arabic) */
ul ul, ol ol, ul ol, ol ul { margin-bottom: 0; }
dl { margin-top: 0; margin-bottom: 20px; }
dt, dd { line-height: 1.42857143; }
dt { font-weight: 700; }
dd { margin-left: 0; margin-bottom: 0; }
b, strong { font-weight: 700; }
small, .small { font-size: 85%; }
mark, .mark { padding: .2em; background-color: #fcf8e3; }
hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eee; opacity: 1; color: inherit; }
label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: 700; }
legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #333; border: 0; border-bottom: 1px solid #e5e5e5; float: none; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
blockquote { padding: 10px 20px; margin: 0 0 20px; font-size: 17.5px; border-left: 5px solid #eee; }
address { margin-bottom: 20px; font-style: normal; line-height: 1.42857143; }
code { padding: 2px 4px; font-size: 90%; color: #c7254e; background-color: #f9f2f4; border-radius: 4px; }
pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.42857143; color: #333; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid #ccc; border-radius: 4px; }
textarea { resize: both; }
button, input, optgroup, select, textarea { color: inherit; }
svg { vertical-align: baseline; }
.img-fluid { display: block; }                    /* responsive pictures were blocks on this site */
table { background-color: transparent; }
caption { padding-top: 8px; padding-bottom: 8px; color: #777; text-align: left; caption-side: top; }
th { text-align: left; }
.lead { margin-bottom: 20px; font-size: 16px; font-weight: 300; line-height: 1.4; }
@media (min-width: 768px) { .lead { font-size: 21px; } }
.list-inline-item:not(:last-child) { margin-right: 0; }
.list-inline-item { padding-left: 5px; padding-right: 5px; }
.list-inline { margin-left: -5px; }

/* ---------- 2. Grid: the site's column gaps (30px) and page widths (750 / 970 / 1170px) ---------- */
.row, .container, .container-fluid { --bs-gutter-x: 30px; }
.row { align-items: flex-start; }               /* columns keep their own height (Bootstrap 5 stretches them) */
.container::before, .container::after, .container-fluid::before, .container-fluid::after { content: " "; display: table; }   /* holds floats, as before */
.container::after, .container-fluid::after { clear: both; }
/* a column that is not inside a .row (many pages have one around their header): as before - 15px padding, and floated
   only from its own breakpoint up (below it Bootstrap 3 left it a plain full-width block, e.g. col-lg-12 under 992px) */
:where([class^="col-"], [class*=" col-"]):not(.row > *):not([class*="col-form-label"]) { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; }
:where(.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12):not(.row > *) { float: left; }
@media (min-width: 576px)  { :where([class^="col-sm-"], [class*=" col-sm-"]):not(.row > *) { float: left; } }
@media (min-width: 768px)  { :where([class^="col-md-"], [class*=" col-md-"]):not(.row > *) { float: left; } }
@media (min-width: 992px)  { :where([class^="col-lg-"], [class*=" col-lg-"]):not(.row > *) { float: left; } }
@media (min-width: 1200px) { :where([class^="col-xl-"], [class*=" col-xl-"]):not(.row > *) { float: left; } }
@media (min-width: 1400px) { :where([class^="col-xxl-"], [class*=" col-xxl-"]):not(.row > *) { float: left; } }
@media (min-width: 576px) { .container, .container-sm { max-width: none; } }
@media (min-width: 768px) { .container, .container-sm, .container-md { max-width: 750px; } }
@media (min-width: 992px) { .container, .container-sm, .container-md, .container-lg { max-width: 970px; } }
@media (min-width: 1200px) { .container, .container-sm, .container-md, .container-lg, .container-xl { max-width: 1170px; } }
@media (min-width: 1400px) { .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl { max-width: 1170px; } }

/* ---------- 3. Buttons ---------- */
.btn {
    --bs-btn-padding-x: 12px; --bs-btn-padding-y: 6px; --bs-btn-font-size: 14px; --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.42857143; --bs-btn-border-radius: 4px; --bs-btn-disabled-opacity: .65;
    white-space: nowrap; touch-action: manipulation;
}
.btn-lg, .btn-group-lg > .btn { --bs-btn-padding-y: 10px; --bs-btn-padding-x: 16px; --bs-btn-font-size: 18px; --bs-btn-border-radius: 6px; line-height: 1.3333333; }
.btn-sm, .btn-group-sm > .btn { --bs-btn-padding-y: 5px; --bs-btn-padding-x: 10px; --bs-btn-font-size: 12px; --bs-btn-border-radius: 3px; line-height: 1.5; }
.btn-light {      /* the site's white "normal" button */
    --bs-btn-color: #333; --bs-btn-bg: #fff; --bs-btn-border-color: #ccc;
    --bs-btn-hover-color: #333; --bs-btn-hover-bg: #e6e6e6; --bs-btn-hover-border-color: #adadad;
    --bs-btn-active-color: #333; --bs-btn-active-bg: #e6e6e6; --bs-btn-active-border-color: #adadad;
    --bs-btn-disabled-color: #333; --bs-btn-disabled-bg: #fff; --bs-btn-disabled-border-color: #ccc;
}
.btn-primary {
    --bs-btn-color: #fff; --bs-btn-bg: #337ab7; --bs-btn-border-color: #2e6da4;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #286090; --bs-btn-hover-border-color: #204d74;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #286090; --bs-btn-active-border-color: #204d74;
    --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #337ab7; --bs-btn-disabled-border-color: #2e6da4;
}
.btn-success {
    --bs-btn-color: #fff; --bs-btn-bg: #5cb85c; --bs-btn-border-color: #4cae4c;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #449d44; --bs-btn-hover-border-color: #398439;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #449d44; --bs-btn-active-border-color: #398439;
    --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #5cb85c; --bs-btn-disabled-border-color: #4cae4c;
}
.btn-info {
    --bs-btn-color: #fff; --bs-btn-bg: #5bc0de; --bs-btn-border-color: #46b8da;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #31b0d5; --bs-btn-hover-border-color: #269abc;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #31b0d5; --bs-btn-active-border-color: #269abc;
    --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #5bc0de; --bs-btn-disabled-border-color: #46b8da;
}
.btn-warning {
    --bs-btn-color: #fff; --bs-btn-bg: #f0ad4e; --bs-btn-border-color: #eea236;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #ec971f; --bs-btn-hover-border-color: #d58512;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #ec971f; --bs-btn-active-border-color: #d58512;
    --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #f0ad4e; --bs-btn-disabled-border-color: #eea236;
}
.btn-danger {
    --bs-btn-color: #fff; --bs-btn-bg: #d9534f; --bs-btn-border-color: #d43f3a;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #c9302c; --bs-btn-hover-border-color: #ac2925;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #c9302c; --bs-btn-active-border-color: #ac2925;
    --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #d9534f; --bs-btn-disabled-border-color: #d43f3a;
}
.btn-link {
    --bs-btn-color: #337ab7; --bs-btn-hover-color: #23527c; --bs-btn-active-color: #23527c; --bs-btn-disabled-color: #777;
    --bs-btn-border-radius: 0; text-decoration: none;
}
.btn-link:hover, .btn-link:focus { text-decoration: underline; }
.btn.d-block.w-100 + .btn.d-block.w-100 { margin-top: 5px; }   /* full-width buttons under each other */
.btn.btn-sm.px-1.py-0 { padding: 1px 5px !important; font-size: 12px; line-height: 1.5; border-radius: 3px; }   /* the site's tiny buttons */
.progress-bar-striped { background-size: 40px 40px; }
/* the x close button: the site's light grey x */
.btn-close { --bs-btn-close-opacity: .2; --bs-btn-close-hover-opacity: .5; --bs-btn-close-focus-shadow: none; }
.modal-header .btn-close { float: right; margin: 2px 0 0 0; padding: 0; }
.alert-dismissible { padding-right: 35px; }
.alert-dismissible .btn-close { position: relative; float: right; top: 2px; right: -21px; padding: 0; width: 11px; height: 11px; background-size: 11px; }
/* a close button with its own icon inside (<i class="fa-...">): only that icon, as before - no second x drawn behind it */
.btn-close:has(> i, > span) { background-image: none; width: auto; height: auto; }

/* ---------- 4. Forms ---------- */
.form-control {
    height: 34px; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; color: #555; background-color: #fff;
    border: 1px solid #ccc; border-radius: 4px; box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-control:focus { color: #555; background-color: #fff; border-color: #66afe9; outline: 0; box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6); }
.form-control::placeholder { color: #999; opacity: 1; }
.form-control:disabled, .form-control[readonly] { background-color: #eee; opacity: 1; }
textarea.form-control { height: auto; }
select.form-control { -webkit-appearance: menulist; -moz-appearance: menulist; appearance: auto; background-image: none; }   /* keep the arrow */
select[multiple].form-control, select[size].form-control { height: auto; }
.form-control-lg { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; }
.form-control-sm { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; }
.form-control-plaintext { min-height: 34px; padding-top: 7px; padding-bottom: 7px; margin-bottom: 0; }
.form-label { margin-bottom: 5px; font-weight: 700; }
.mb-3 { margin-bottom: 15px !important; }      /* the site's gap under a form field (the converter writes mb-3 for it) */
.form-text { display: block; margin-top: 5px; margin-bottom: 10px; font-size: inherit; color: #737373; }
.input-group > .form-control { height: 34px; }
/* checkboxes and radios: the browser's own box, label not bold (as before) */
.form-check { display: block; min-height: 20px; padding-left: 20px; margin-top: 10px; margin-bottom: 10px; }
.form-check .form-check-input { float: left; margin-left: -20px; }
.form-check-input { -webkit-appearance: auto; -moz-appearance: auto; appearance: auto; width: auto; height: auto; margin-top: 4px; border: 0; background: none; box-shadow: none; }
.form-check-input:checked, .form-check-input:focus { background: none; box-shadow: none; }
.form-check-label { font-weight: 400; margin-bottom: 0; cursor: pointer; }
.form-check-inline { display: inline-block; margin-top: 0; margin-right: 10px; }
.input-group > .input-group-text { width: auto; flex: 0 0 auto; }   /* (the old table layout used width:1%) */
.input-group-text { padding: 6px 12px; font-size: 14px; font-weight: 400; line-height: 1; color: #555; text-align: center; background-color: #eee; border: 1px solid #ccc; border-radius: 4px; }

/* ---------- 5. Tables ---------- */
.table {
    --bs-table-color: inherit; --bs-table-bg: transparent; --bs-table-border-color: #ddd;
    --bs-table-striped-bg: #f9f9f9; --bs-table-striped-color: inherit;
    --bs-table-hover-bg: #f5f5f5; --bs-table-hover-color: inherit;
    --bs-table-active-bg: #f5f5f5; --bs-table-active-color: inherit;
    margin-bottom: 20px; border-color: #ddd;
}
.table > :not(caption) > * > * { padding: 8px; line-height: 1.42857143; vertical-align: top; border-bottom-width: 0; border-top: 1px solid #ddd; }
.table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #ddd; }
.table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th, .table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td { border-top: 0; }
.table > tbody + tbody { border-top: 2px solid #ddd; }
.table-sm > :not(caption) > * > * { padding: 5px; }
.table-bordered { border: 1px solid #ddd; }
.table-bordered > :not(caption) > * { border-width: 0; }
.table-bordered > :not(caption) > * > * { border: 1px solid #ddd; }
.table-bordered > thead > tr > th, .table-bordered > thead > tr > td { border-bottom-width: 2px; }
.table-responsive { min-height: .01%; overflow-x: auto; }
@media screen and (max-width: 767px) {
    .table-responsive { width: 100%; margin-bottom: 15px; overflow-y: hidden; border: 1px solid #ddd; }
    .table-responsive > .table { margin-bottom: 0; }
    .table-responsive > .table > * > tr > th, .table-responsive > .table > * > tr > td { white-space: nowrap; }
}

/* ---------- 6. Popups (modal): the site's sizes, layering, header with the x on the right ---------- */
.modal {
    --bs-modal-zindex: 1050; --bs-modal-width: 600px; --bs-modal-margin: 10px; --bs-modal-padding: 15px;
    --bs-modal-color: inherit; --bs-modal-bg: #fff; --bs-modal-border-color: rgba(0,0,0,.2); --bs-modal-border-radius: 6px;
    --bs-modal-inner-border-radius: 5px; --bs-modal-box-shadow: 0 3px 9px rgba(0,0,0,.5);
    --bs-modal-header-padding: 15px; --bs-modal-header-padding-x: 15px; --bs-modal-header-padding-y: 15px;
    --bs-modal-header-border-color: #e5e5e5; --bs-modal-title-line-height: 1.42857143; --bs-modal-footer-border-color: #e5e5e5;
}
/* Popups open without darkening the page (as always on this site: the old dark layer was 0px high). The layer is
   there (a click beside the popup closes it) but transparent. For a light dimming: change 0 to e.g. .3 */
.modal-backdrop { --bs-backdrop-zindex: 1040; --bs-backdrop-opacity: 0; }
.modal-content { box-shadow: var(--bs-modal-box-shadow); }
@media (min-width: 576px) {
    .modal { --bs-modal-margin: 10px; --bs-modal-box-shadow: 0 3px 9px rgba(0,0,0,.5); }
    .modal-dialog { max-width: none; }
}
@media (min-width: 768px) {
    .modal { --bs-modal-margin: 30px; --bs-modal-box-shadow: 0 5px 15px rgba(0,0,0,.5); }
    .modal-dialog { max-width: var(--bs-modal-width); margin-left: auto; margin-right: auto; }
    .modal-sm { --bs-modal-width: 300px; }
}
@media (min-width: 992px) { .modal-lg { --bs-modal-width: 900px; } }
.modal-header { display: block; min-height: 16.42857143px; }
.modal-header::after { content: ""; display: table; clear: both; }
.modal-title { margin: 0; }
.modal-footer { display: block; text-align: right; }
.modal-footer > * { margin: 0; }
.modal-footer::after { content: ""; display: table; clear: both; }
.modal-footer .btn + .btn { margin-bottom: 0; margin-left: 5px; }
.modal-footer .btn-group .btn + .btn { margin-left: -1px; }

/* ---------- 7. Cards (the site's "panels" and "wells"), badges, alerts, popovers, dropdowns, lists, tabs ---------- */
.card {
    --bs-card-border-color: #ddd; --bs-card-border-radius: 4px; --bs-card-inner-border-radius: 3px;
    --bs-card-spacer-x: 15px; --bs-card-spacer-y: 15px; --bs-card-cap-padding-x: 15px; --bs-card-cap-padding-y: 10px;
    --bs-card-cap-bg: #f5f5f5; --bs-card-cap-color: #333; --bs-card-bg: #fff; --bs-card-color: inherit; --bs-card-title-spacer-y: 0;
    margin-bottom: 20px; box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
.card-header { border-bottom-color: var(--bs-card-border-color); }
.card-title { margin-top: 0; margin-bottom: 0; font-size: 16px; color: inherit; }
.card-title > a { color: inherit; }
/* coloured cards (the site's coloured panels): heading in the card's colour */
.card.border-primary > .card-header { color: #fff; background-color: #337ab7; border-color: #337ab7; }
.card.border-success-subtle > .card-header { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; }
.card.border-info-subtle > .card-header { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; }
.card.border-warning-subtle > .card-header { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; }
.card.border-danger-subtle > .card-header { color: #a94442; background-color: #f2dede; border-color: #ebccd1; }
.card-footer { background-color: #f5f5f5; }
/* "well": a light box = an element that is card AND card-body - a plain block, like before (not a flex column) */
/* flex-direction: row - a page that makes a well display:flex gets a row, as in Bootstrap 3 (Bootstrap 5's .card is a column) */
.card.card-body { display: block; flex-direction: row; min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border-color: #e3e3e3; box-shadow: inset 0 1px 1px rgba(0,0,0,.05); }
.card.card-body.p-2 { padding: 9px !important; border-radius: 3px; }
.card.card-body.p-4 { padding: 24px !important; border-radius: 6px; }
/* badge = the site's label (small coloured box); badge rounded-pill = the round grey counter */
.badge { --bs-badge-padding-x: .6em; --bs-badge-padding-y: .2em; --bs-badge-font-size: 75%; --bs-badge-font-weight: 700; --bs-badge-color: #fff; --bs-badge-border-radius: .25em; line-height: 1; padding-bottom: .3em; }
.badge:not(.rounded-pill) { display: inline; }
.badge.rounded-pill { vertical-align: middle; --bs-badge-padding-x: 7px; --bs-badge-padding-y: 3px; --bs-badge-font-size: 12px; min-width: 10px; padding-bottom: 3px; border-radius: 10px !important; }
.alert { --bs-alert-padding-x: 15px; --bs-alert-padding-y: 15px; --bs-alert-margin-bottom: 20px; --bs-alert-border-radius: 4px; }
.alert h4 { margin-top: 0; color: inherit; }
.alert .alert-link { font-weight: 700; }
.alert > p, .alert > ul { margin-bottom: 0; }
.alert > p + p { margin-top: 5px; }
.popover {
    --bs-popover-zindex: 1060; --bs-popover-max-width: 276px; --bs-popover-font-size: 14px; --bs-popover-border-color: rgba(0,0,0,.2);
    --bs-popover-border-radius: 6px; --bs-popover-inner-border-radius: 5px; --bs-popover-header-padding-x: 14px; --bs-popover-header-padding-y: 8px;
    --bs-popover-header-font-size: 14px; --bs-popover-header-bg: #f7f7f7; --bs-popover-header-color: inherit;
    --bs-popover-body-padding-x: 14px; --bs-popover-body-padding-y: 9px; --bs-popover-body-color: inherit;
    line-height: 1.42857143; box-shadow: 0 5px 10px rgba(0,0,0,.2);
}
.tooltip { --bs-tooltip-zindex: 1070; --bs-tooltip-max-width: 200px; --bs-tooltip-padding-x: 8px; --bs-tooltip-padding-y: 3px; --bs-tooltip-font-size: 12px; --bs-tooltip-border-radius: 4px; --bs-tooltip-opacity: .9; --bs-tooltip-bg: #000; }
.dropdown-menu {
    --bs-dropdown-min-width: 160px; --bs-dropdown-padding-y: 5px; --bs-dropdown-spacer: 2px; --bs-dropdown-font-size: 14px;
    --bs-dropdown-color: #333; --bs-dropdown-border-color: rgba(0,0,0,.15); --bs-dropdown-border-radius: 4px;
    --bs-dropdown-divider-bg: #e5e5e5; --bs-dropdown-divider-margin-y: 9px; --bs-dropdown-link-color: #333;
    --bs-dropdown-link-hover-color: #262626; --bs-dropdown-link-hover-bg: #f5f5f5; --bs-dropdown-link-active-color: #fff;
    --bs-dropdown-link-active-bg: #337ab7; --bs-dropdown-item-padding-x: 20px; --bs-dropdown-item-padding-y: 3px; --bs-dropdown-header-color: #777;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}
.list-group { --bs-list-group-border-color: #ddd; --bs-list-group-border-radius: 4px; --bs-list-group-item-padding-x: 15px; --bs-list-group-item-padding-y: 10px; --bs-list-group-color: inherit; margin-bottom: 20px; }
.progress { display: block; overflow: hidden; height: 20px; margin-bottom: 20px; background-color: #f5f5f5; border-radius: 4px; box-shadow: inset 0 1px 2px rgba(0,0,0,.1); }
.progress-bar { display: block; float: left; height: 100%; font-size: 12px; line-height: 20px; color: #fff; text-align: center; background-color: #337ab7; box-shadow: inset 0 -1px 0 rgba(0,0,0,.15); }
.nav { --bs-nav-link-padding-x: 15px; --bs-nav-link-padding-y: 10px; --bs-nav-link-color: #337ab7; --bs-nav-link-hover-color: #23527c; }
.nav-tabs { --bs-nav-tabs-border-color: #ddd; --bs-nav-tabs-border-radius: 4px; --bs-nav-tabs-link-active-color: #555; --bs-nav-tabs-link-hover-border-color: #eee #eee #ddd; --bs-nav-tabs-link-active-border-color: #ddd #ddd transparent; }
.nav-tabs .nav-link { margin-right: 2px; line-height: 1.42857143; }
.nav-tabs .nav-link:hover { background-color: #eee; }
.nav-tabs .nav-link.active, .nav-tabs .nav-link.active:hover { background-color: #fff; }
.nav-pills { --bs-nav-pills-link-active-bg: #337ab7; --bs-nav-pills-border-radius: 4px; }
.pagination { --bs-pagination-padding-x: 12px; --bs-pagination-padding-y: 6px; --bs-pagination-font-size: 14px; --bs-pagination-color: #337ab7; --bs-pagination-border-color: #ddd; --bs-pagination-border-radius: 4px; margin: 20px 0; display: inline-flex; }

/* ---------- 8. Right-to-left (Arabic, Hebrew) ----------
   The site loads left-to-right Bootstrap for every language (rtl.css does the right-to-left part, as before). The
   rows below kept their left-to-right order before, so they keep it: */
[dir="rtl"] .row, [dir="rtl"] .btn-group, [dir="rtl"] .btn-toolbar, [dir="rtl"] .nav, [dir="rtl"] .pagination, [dir="rtl"] .breadcrumb { flex-direction: row-reverse; justify-content: flex-start; }
/* checkboxes in Arabic: the box on the right, before its text (before, it overlapped the end of the text) */
[dir="rtl"] .form-check { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .form-check .form-check-input { float: right; margin-left: 0; margin-right: -20px; }
/* a toggle that draws its own arrow (or none): keeps .dropdown-toggle for the page's CSS/JS, without Bootstrap 5's caret */
.dropdown-toggle.site-nocaret::after { display: none; }
/* dropdown menus line up from the left edge, or the right edge with .dropdown-menu-end (as before) */
[dir="rtl"] .dropdown-menu { --bs-position: end; }
[dir="rtl"] .dropdown-menu-end { --bs-position: start; }

/* Horizontal forms (Bootstrap 3 .form-horizontal, Bootstrap 5 has none): the converter writes .site-form-horizontal.
   Each group (form-group, now mb-3) was a grid row: -15px sides for its floated 15px-padded columns, and it holds them */
.site-form-horizontal .mb-3 { margin-left: -15px; margin-right: -15px; }
.site-form-horizontal .mb-3::before, .site-form-horizontal .mb-3::after { content: " "; display: table; }
.site-form-horizontal .mb-3::after { clear: both; }

/* Thumbnail boxes (Bootstrap 3 .thumbnail, Bootstrap 5 has none): the converter writes .site-thumbnail; Bootstrap 3's rules */
.site-thumbnail { display: block; padding: 4px; margin-bottom: 20px; line-height: 1.42857143; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; transition: border .2s ease-in-out; }
.site-thumbnail > img, .site-thumbnail a > img { display: block; max-width: 100%; height: auto; margin-left: auto; margin-right: auto; }
a.site-thumbnail:hover, a.site-thumbnail:focus, a.site-thumbnail.active { border-color: #337ab7; }

/* Inline forms (Bootstrap 3 .form-inline, Bootstrap 5 has none): the converter writes .site-form-inline; same rules as before */
@media (min-width: 768px) {
  .site-form-inline .mb-3 { display: inline-block; margin-bottom: 0 !important; vertical-align: middle; }
  .site-form-inline .form-control, .site-form-inline .form-select { display: inline-block; width: auto; vertical-align: middle; }
  .site-form-inline .form-control-plaintext { display: inline-block; }
  .site-form-inline .input-group { display: inline-flex; width: auto; vertical-align: middle; }
  .site-form-inline .input-group > .form-control { width: 100%; }
  .site-form-inline .form-label { margin-bottom: 0; vertical-align: middle; }
  .site-form-inline .form-check { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; }
}
