/* EventsHere design compatibility for the inactive Bootstrap 5 candidate.
 * Load after official Bootstrap 5 and before application/theme styles.
 * These rules retain the application's measured design tokens and used component
 * contracts. They do not load or reproduce the Bootstrap 4 stylesheet.
 */
:root, [data-bs-theme="light"] {
  --bs-font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-color: #212529;
  --bs-body-bg: #fff;
  --bs-primary: #007bff;
  --bs-primary-rgb: 0, 123, 255;
  --bs-success: #28a745;
  --bs-success-rgb: 40, 167, 69;
  --bs-info: #17a2b8;
  --bs-info-rgb: 23, 162, 184;
  --bs-warning: #ffc107;
  --bs-warning-rgb: 255, 193, 7;
  --bs-danger: #dc3545;
  --bs-danger-rgb: 220, 53, 69;
  --bs-dark: #343a40;
  --bs-dark-rgb: 52, 58, 64;
  --bs-link-color: #007bff;
  --bs-link-color-rgb: 0, 123, 255;
  --bs-link-hover-color: #0056b3;
  --bs-link-hover-color-rgb: 0, 86, 179;
  --bs-border-color: #dee2e6;
  --bs-border-radius: .25rem;
  --bs-border-radius-sm: .2rem;
  --bs-border-radius-lg: .3rem;
}
/* Preserve the established typography without Bootstrap 5's RFS scaling. */
body { text-align: left; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
a:not([href]), a:not([href]):hover { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 500; }
h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1rem; }
hr { margin: 1rem 0; color: inherit; border: 0; border-top: 1px solid rgba(0, 0, 0, .1); opacity: 1; }
label { display: inline-block; margin-bottom: .5rem; }
small, .small { font-size: 80%; }
/* Grid metrics are part of the existing page design, including wide desktops. */
.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl { --bs-gutter-x: 30px; }
.row { --bs-gutter-x: 30px; }
.row > * { position: relative; }
@media (min-width: 1200px) {
  .container, .container-sm, .container-md, .container-lg, .container-xl { max-width: 1140px; }
}
/* Retained names can be removed after every domain template is migrated. */
.font-weight-normal { font-weight: 400 !important; }
.font-weight-bold { font-weight: 700 !important; }
.font-weight-bolder { font-weight: bolder !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-justify { text-align: justify !important; }
.rounded-lg { border-radius: .3rem !important; }
.rounded-sm { border-radius: .2rem !important; }
.rounded-left { border-top-left-radius: .25rem !important; border-bottom-left-radius: .25rem !important; }
.rounded-right { border-top-right-radius: .25rem !important; border-bottom-right-radius: .25rem !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pl-0 { padding-left: 0 !important; }
.pr-0 { padding-right: 0 !important; }
.pl-3 { padding-left: 1rem !important; }
.pr-3 { padding-right: 1rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pr-4 { padding-right: 1.5rem !important; }
.pl-5 { padding-left: 3rem !important; }
.pr-5 { padding-right: 3rem !important; }
.ml-2 { margin-left: .5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.mr-1 { margin-right: .25rem !important; }
.mr-2 { margin-right: .5rem !important; }
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }
/* Only used button variants: application theme rules may override these later. */
.btn { --bs-btn-border-radius: .25rem; --bs-btn-font-weight: 400; --bs-btn-line-height: 1.5; }
.btn-primary { --bs-btn-bg: #007bff; --bs-btn-border-color: #007bff; --bs-btn-hover-bg: #0069d9; --bs-btn-hover-border-color: #0062cc; --bs-btn-active-bg: #0062cc; --bs-btn-active-border-color: #005cbf; --bs-btn-disabled-bg: #007bff; --bs-btn-disabled-border-color: #007bff; --bs-btn-focus-shadow-rgb: 38,143,255; }
.btn-outline-primary { --bs-btn-color: #007bff; --bs-btn-border-color: #007bff; --bs-btn-hover-bg: #007bff; --bs-btn-hover-border-color: #007bff; --bs-btn-active-bg: #007bff; --bs-btn-active-border-color: #007bff; --bs-btn-disabled-color: #007bff; --bs-btn-disabled-border-color: #007bff; }
.btn:focus, .btn.focus { box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25); }
.btn-block { display: block; width: 100%; }
.btn-block + .btn-block { margin-top: .5rem; }
.btn-lg { --bs-btn-border-radius: .3rem; }
.btn-sm { --bs-btn-border-radius: .2rem; }
/* Inputs retain existing height, color, focus and read-only appearance. */
.form-control { height: calc(1.5em + .75rem + 2px); padding: .375rem .75rem; color: #495057; border-color: #ced4da; border-radius: .25rem; }
.form-control:focus { color: #495057; border-color: #80bdff; box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25); }
.form-control::placeholder { color: #6c757d; opacity: 1; }
.form-control:disabled, .form-control[readonly] { background-color: #e9ecef; opacity: 1; }
.form-control-lg { height: calc(1.5em + 1rem + 2px); padding: .5rem 1rem; font-size: 1.25rem; border-radius: .3rem; }
.form-control-sm { height: calc(1.5em + .5rem + 2px); padding: .25rem .5rem; font-size: .875rem; border-radius: .2rem; }
textarea.form-control, select.form-control[multiple], select.form-control[size] { height: auto; }
select.form-control { appearance: auto; }
.form-group { margin-bottom: 1rem; }
/* Marker identifies wrappers transformed from the application's custom controls. */
.legacy-custom-control { margin-bottom: 0; position: relative; display: block; min-height: 1.5rem; padding-left: 1.5rem; }
.legacy-custom-control .form-check-input { position: absolute; left: 0; width: 1rem; height: 1rem; margin-left: 0; margin-top: .25rem; border: 1px solid #adb5bd; border-radius: .25rem; box-shadow: none; }
.legacy-custom-control.custom-radio .form-check-input { border-radius: 50%; }
.legacy-custom-control .form-check-label { position: relative; margin-bottom: 0; vertical-align: top; }
.legacy-custom-control .form-check-input:checked { background-color: #007bff; border-color: #007bff; }
.custom-control-inline { display: inline-flex; margin-right: 1rem; }
/* Navigation and surfaces use existing density rather than Bootstrap5 defaults. */
.navbar { --bs-navbar-padding-x: 1rem; --bs-navbar-padding-y: .5rem; --bs-navbar-color: #007bff; --bs-navbar-hover-color: #0056b3; --bs-navbar-active-color: #007bff; }
.navbar > .container, .navbar > .container-fluid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
@media (min-width: 992px) {
  .navbar-expand-lg > .container, .navbar-expand-lg > .container-fluid { flex-wrap: nowrap; }
}
.navbar-brand:hover, .nav-link:hover { text-decoration: none; }
.nav-tabs { --bs-nav-tabs-border-color: #dee2e6; --bs-nav-tabs-link-hover-border-color: #e9ecef #e9ecef #dee2e6; --bs-nav-tabs-link-active-color: #495057; --bs-nav-tabs-link-active-border-color: #dee2e6 #dee2e6 #fff; }
.nav-tabs .nav-item { margin-bottom: -1px; }
.nav-tabs .nav-link { margin-bottom: 0; border-radius: .25rem .25rem 0 0; }
.dropdown-menu { --bs-dropdown-color: #212529; --bs-dropdown-link-color: #212529; --bs-dropdown-link-hover-bg: #f8f9fa; --bs-dropdown-link-hover-color: #16181b; --bs-dropdown-link-active-bg: #007bff; --bs-dropdown-border-color: rgba(0, 0, 0, .15); --bs-dropdown-border-radius: .25rem; margin-top: .125rem; }
.dropdown-menu-right { right: 0; left: auto; }
.card { color: inherit; --bs-card-spacer-y: 1.25rem; --bs-card-spacer-x: 1.25rem; --bs-card-title-spacer-y: .75rem; --bs-card-border-color: rgba(0,0,0,.125); --bs-card-border-radius: .25rem; --bs-card-inner-border-radius: calc(.25rem - 1px); --bs-card-cap-padding-y: .75rem; --bs-card-cap-padding-x: 1.25rem; --bs-card-cap-bg: rgba(0,0,0,.03); }
.card-body { min-height: 1px; }
.badge-danger { color: #fff; background-color: #dc3545; }
/* Native5 modal focus management/backdrop remain intact; only design metrics. */
.modal { --bs-modal-border-radius: .3rem; --bs-modal-border-color: rgba(0,0,0,.2); --bs-modal-header-border-color: #dee2e6; --bs-modal-footer-border-color: #dee2e6; --bs-modal-header-padding: 1rem; --bs-modal-padding: 1rem; }
.modal-header { align-items: flex-start; }
.modal-footer { padding: 1rem; gap: 0; }
.modal-footer > * { margin: 0; }
.modal-footer > :not(:first-child) { margin-left: .25rem; }
.modal-footer > :not(:last-child) { margin-right: .25rem; }
.close { float: right; font-size: 1.5rem; font-weight: 700; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; opacity: .5; }
button.close { padding: 0; background: transparent; border: 0; appearance: none; }
.close:hover { color: #000; text-decoration: none; }
.close:not(:disabled):hover, .close:not(:disabled):focus { opacity: .75; }
.modal-header .close { padding: 1rem; margin: -1rem -1rem -1rem auto; }
/* Preserve reduced-motion behavior supplied by the native framework. */
@media (prefers-reduced-motion: reduce) { .btn, .form-control { transition: none; } }

/* The landing FAQ retains card markup while native5 owns Collapse behavior. */
.accordion > .card { overflow: hidden; }
.accordion > .card:not(:last-of-type) { border-bottom: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0; }
.accordion > .card:not(:first-of-type) { border-top-left-radius: 0; border-top-right-radius: 0; }
.accordion > .card > .card-header { border-radius: 0; margin-bottom: -1px; }
/* Existing search-addon wrappers retain their overlap without a second shift. */
.input-group-prepend, .input-group-append { display: flex; }
.input-group-prepend { margin-right: -1px; }
.input-group-append { margin-left: -1px; }
.input-group > .input-group-prepend + .form-control { margin-left: 0 !important; }

/* Pre-existing simple checks use browser-native rendering, as before. */
.form-check:not(.legacy-custom-control) { position: relative; display: block; padding-left: 1.25rem; }
.form-check:not(.legacy-custom-control) .form-check-input { appearance: auto; position: absolute; float: none; width: auto; height: auto; margin-top: .3rem; margin-left: -1.25rem; background: initial; border: initial; border-radius: initial; box-shadow: none; }
.form-check:not(.legacy-custom-control) .form-check-label { margin-bottom: 0; }

.legacy-custom-control.form-check-inline { display: inline-flex; margin-right: 1rem; }

@media (max-width: 991.98px) {
  .navbar-expand-lg > .container, .navbar-expand-lg > .container-fluid { padding-left: 0; padding-right: 0; }
}

/* Preserve the existing checked-radio dot's measured 6px diameter. */
.legacy-custom-control.custom-radio .form-check-input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E");
  background-size: 8px 8px;
  background-origin: border-box;
}

.legacy-custom-control .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(0,123,255,.25); }
.legacy-custom-control .form-check-input:focus:not(:checked) { border-color: #80bdff; }
/* Used columns inside flex feature rows retain their own inner gutters. */
.d-flex:not(.row) > :is(.col, .col-auto, [class^="col-"], [class*=" col-"]) { position: relative; padding-left: 15px; padding-right: 15px; }
/* The shared mobile brand is outside .navbar; it still needs a box for padding. */
.navbar-brand { display: inline-block; }
.input-group-text { color: #495057; background-color: #e9ecef; border-color: #ced4da; border-radius: .25rem; }
/* These retained navigation elements also occur outside native5 scope owners. */
.navbar-brand { padding: .3125rem 0; margin-right: 1rem; font-size: 1.25rem; color: #007bff; white-space: nowrap; }
.navbar-brand:hover, .navbar-brand:focus { color: #0056b3; }
.nav-link { padding: .5rem 1rem; color: #007bff; }
.nav-link:hover, .nav-link:focus { color: #0056b3; }
/* Addon wrappers preserve joined corners after their native5 conversion. */
.input-group > .input-group-append > .input-group-text { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .input-group-prepend > .input-group-text { border-top-right-radius: 0; border-bottom-right-radius: 0; }
/* The accepted checkbox glyph uses a separate 16px overlay; keep that paint
 * geometry while native5 owns the real focusable/checked input. */
.legacy-custom-control.custom-checkbox .form-check-input:checked { background-image: none; }
.legacy-custom-control.custom-checkbox .form-check-input:checked ~ .form-check-label::after {
  position: absolute;
  top: .25rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  content: "";
  pointer-events: none;
  background: no-repeat 50% / 50% 50% url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

/* Radios use the same square border box in every wrapper. Do not let native
 * appearance, flex sizing or text-field padding turn the circle into an oval. */
.form-check .form-check-input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 1rem;
  min-width: 1rem;
  max-width: 1rem;
  height: 1rem;
  min-height: 1rem;
  max-height: 1rem;
  aspect-ratio: 1;
  flex: 0 0 1rem;
  padding: 0;
  border: 1px solid #adb5bd;
  border-radius: 50%;
  background-color: var(--bs-body-bg, #fff);
  background-image: var(--bs-form-check-bg-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.form-check .form-check-input[type="radio"]:checked {
  background-color: #007bff;
  border-color: #007bff;
}
/* main.css suppresses generic input outlines; restore keyboard visibility. */
.form-check .form-check-input[type="radio"]:focus-visible {
  outline: 2px solid #2646d5 !important;
  outline-offset: 3px;
}
@media (forced-colors: active) {
  .form-check .form-check-input[type="radio"] { appearance: auto; }
}
