/* App-owned layout and UI primitives. No CSS framework or build step.
 * Existing utility class names are retained to avoid a template-wide redesign.
 */
:root { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-family: sans-serif; line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { color: #212529; font-size: 1rem; font-weight: 400; line-height: 1.5; text-align: left; }
main, header, footer, nav, section { display: block; }
h1, h2, h3, h4, h5, h6, p { margin-top: 0; }
h1, h2, h3, h4, h5, h6, .h2, .h3, .h4, .h5, .h6 { margin-bottom: .5rem; font-weight: 500; line-height: 1.2; }
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; }
p { margin-bottom: 1rem; }
small { font-size: 80%; }
strong { font-weight: bolder; }
a { color: #007bff; text-decoration: none; background-color: transparent; }
a:hover { color: #0056b3; text-decoration: underline; }
img, svg { vertical-align: middle; }
img { border-style: none; max-width: 100%; }
button, input, select, textarea { margin: 0; font: inherit; line-height: inherit; }
button, [type="submit"] { cursor: pointer; }
button:disabled, input:disabled { cursor: default; }
textarea { overflow: auto; resize: vertical; }
label { display: inline-block; margin-bottom: .5rem; }
hr { border: 0; border-top: 1px solid rgba(0, 0, 0, .1); margin: 1rem 0; }
:focus-visible { outline: 3px solid #80bdff; outline-offset: 2px; }
.icon { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.15em; flex-shrink: 0; }
.show-sidebar .icon { width: 16px; height: 16px; }

/* Responsive layout */
.container, .container-fluid { width: 100%; padding: 0 15px; margin: 0 auto; }
.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.col, [class^="col-"]:not(.col-form-label), [class*=" col-"]:not(.col-form-label) { position: relative; width: 100%; padding: 0 15px; }
.col { flex-basis: 0; flex-grow: 1; max-width: 100%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 576px) {
  .container { max-width: 540px; }
  .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  .d-sm-block { display: block !important; }
  .ml-sm-auto { margin-left: auto !important; }
  .mt-sm-3 { margin-top: 1rem !important; }
}
@media (min-width: 768px) {
  .container { max-width: 720px; }
  .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  .offset-md-1 { margin-left: 8.333333%; }
  .offset-md-3 { margin-left: 25%; }
  .offset-md-4 { margin-left: 33.333333%; }
  .justify-content-md-center { justify-content: center !important; }
  .px-md-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}
@media (min-width: 992px) {
  .container { max-width: 960px; }
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .ml-lg-4 { margin-left: 1.5rem !important; }
}
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* Forms and buttons */
.form-control, .form-select { display: block; width: 100%; height: calc(1.5em + .75rem + 2px); padding: .375rem .75rem; color: #495057; background: #fff; border: 1px solid #ced4da; border-radius: .25rem; font-size: 1rem; line-height: 1.5; }
.form-control:focus, .form-select:focus { border-color: #80bdff; box-shadow: 0 0 0 .2rem rgba(0,123,255,.25); outline: 0; }
.form-control:disabled, .form-control[readonly] { background-color: #e9ecef; }
textarea.form-control { height: auto; }
.form-group { margin-bottom: 1rem; }
.col-form-label { padding-top: calc(.375rem + 1px); padding-bottom: calc(.375rem + 1px); margin-bottom: 0; }
.input-group { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
.input-group > .form-control { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; margin-bottom: 0; }
.btn { display: inline-block; padding: .375rem .75rem; border: 1px solid transparent; border-radius: .25rem; background: transparent; color: #212529; font-size: 1rem; font-weight: 400; line-height: 1.5; text-align: center; vertical-align: middle; text-decoration: none; }
.btn:hover { text-decoration: none; filter: brightness(.92); }
.btn:disabled { opacity: .65; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: .25rem .5rem; font-size: .875rem; border-radius: .2rem; }
.btn-lg { padding: .5rem 1rem; font-size: 1.25rem; border-radius: .3rem; }
.btn-dark { color: #fff; background: #343a40; border-color: #343a40; }
.btn-success { color: #fff; background: #28a745; border-color: #28a745; }
.btn-secondary { color: #fff; background: #6c757d; border-color: #6c757d; }
.btn-warning { color: #212529; background: #ffc107; border-color: #ffc107; }
.btn-outline-secondary { color: #6c757d; border-color: #6c757d; }
.btn-outline-secondary:hover { color: #fff; background: #6c757d; }
.btn-outline-info { color: #17a2b8; border-color: #17a2b8; }
.btn-outline-info:hover { color: #fff; background: #17a2b8; }

/* Navigation */
.navbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: .5rem 1rem; }
.fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }
.navbar-nav, .nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.navbar-nav { flex-direction: column; }
.nav-link { display: block; padding: .5rem 1rem; }
button.nav-link { background: none; border: 0; text-align: left; }
.navbar .nav-link { padding: .5rem 0; }
.navbar-light .nav-link { color: rgba(0,0,0,.7); }
.navbar-light .active > .nav-link, .navbar-light .nav-link.active { color: rgba(0,0,0,.9); }
.navbar-dark .nav-link { color: rgba(255,255,255,.7); }
.navbar-dark .active > .nav-link, .navbar-dark .nav-link.active { color: #fff; }
.navbar-toggler { padding: .25rem .75rem; color: #666; background: transparent; border: 1px solid rgba(0,0,0,.15); border-radius: .25rem; font-size: 1.25rem; line-height: 1; }
.navbar-dark .navbar-toggler { color: #ccc; border-color: rgba(255,255,255,.2); }
.navbar-toggler-icon { display: inline-block; position: relative; width: 1.5em; height: 1.5em; vertical-align: middle; }
.navbar-toggler-icon::before { content: ''; position: absolute; width: 22px; height: 2px; left: 4px; top: 14px; background: currentColor; box-shadow: 0 -7px currentColor, 0 7px currentColor; }
.navbar-collapse { display: none; flex-basis: 100%; flex-grow: 1; align-items: center; }
.navbar-collapse.is-open { display: block; }
.dropdown { position: relative; }
.dropdown-toggle::after { content: ''; display: inline-block; margin-left: .3em; vertical-align: .15em; border-top: .3em solid; border-right: .3em solid transparent; border-left: .3em solid transparent; }
.dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1040; min-width: 10rem; margin: .125rem 0 0; padding: .5rem 0; list-style: none; background: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: .25rem; }
@media (max-width: 767.98px) { .navbar .dropdown-menu { position: static; } }
@media (min-width: 768px) {
  .navbar-expand-md { flex-flow: row nowrap; justify-content: flex-start; }
  .navbar-expand-md .navbar-collapse { display: flex !important; flex-basis: auto; }
  .navbar-expand-md .navbar-nav { flex-direction: row; }
  .navbar-expand-md .nav-link { padding-right: .5rem; padding-left: .5rem; }
  .navbar-expand-md .navbar-toggler { display: none; }
}

/* Native dialog: focus/keyboard handling belongs to the browser. */
body:has(dialog[open]) { overflow: hidden; }
.contact-dialog { width: min(500px, calc(100% - 2rem)); max-height: calc(100% - 2rem); margin: auto; padding: 0; border: 0; border-radius: .3rem; background: #fff; color: #212529; }
.contact-dialog::backdrop { background: rgba(0,0,0,.5); }
.modal-content { display: flex; flex-direction: column; width: 100%; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 1rem; border-bottom: 1px solid #dee2e6; }
.modal-title { margin-bottom: 0; line-height: 1.5; }
.modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
.modal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; padding: .75rem; border-top: 1px solid #dee2e6; }
.close { padding: 0; border: 0; background: transparent; color: #000; font-size: 1.5rem; font-weight: 700; line-height: 1; opacity: .6; }

/* Slideshow */
.carousel { position: relative; }
.carousel-inner { position: relative; width: 100%; height: 100%; overflow: hidden; }
.carousel .carousel-item { width: 100%; height: 100%; margin: 0; }
.carousel-indicators { position: absolute; right: 0; bottom: 10px; left: 0; z-index: 2; display: flex; justify-content: center; gap: 6px; margin: 0 15%; padding: 0; list-style: none; }
.carousel-indicators button { width: 30px; height: 4px; padding: 0; border: 0; background: #fff; opacity: .5; }
.carousel-indicators button[aria-current="true"] { opacity: 1; }
.carousel-control-prev, .carousel-control-next { position: absolute; top: 0; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 15%; padding: 0; border: 0; background: transparent; color: #fff; opacity: .7; }
.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1; }
.carousel-control-prev-icon, .carousel-control-next-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 4rem; line-height: 1; }
.carousel-control-prev-icon::before { content: '‹'; }
.carousel-control-next-icon::before { content: '›'; }

/* Flash messages */
#notifications { position: fixed; top: 1rem; right: 1rem; z-index: 1100; display: flex; flex-direction: column; gap: .5rem; width: min(350px, calc(100vw - 2rem)); pointer-events: none; }
.notification { position: relative; padding: 1rem 2.5rem 1rem 1rem; border-radius: .25rem; background: #225f8e; color: #fff; box-shadow: 0 .25rem 1rem rgba(0,0,0,.2); pointer-events: auto; overflow-wrap: anywhere; }
.notification--success { background: #26733b; }
.notification--error { background: #a82b37; }
.notification--warning { background: #805900; }
.notification__close { position: absolute; top: .4rem; right: .6rem; padding: 0; border: 0; background: transparent; color: inherit; font-size: 1.5rem; line-height: 1; }

/* Tables, pagination and public-page typography */
table { border-collapse: collapse; }
.table { width: 100%; margin-bottom: 1rem; color: #212529; }
.table th, .table td { padding: .75rem; vertical-align: top; border-top: 1px solid #dee2e6; }
.table thead th { vertical-align: bottom; border-bottom: 2px solid #dee2e6; }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0,0,0,.05); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin: 1rem 0; padding-left: 0; list-style: none; }
.pagination a, .pagination span, .pagination em { display: inline-block; float: none; padding: .5rem .75rem; border: 1px solid #dee2e6; border-radius: .2rem; line-height: 1.25; }
.pagination .disabled { color: #6c757d; }
.pagination .current { background: #343a40; color: #fff; font-style: normal; }
.jumbotron { padding: 2rem 1rem; margin-bottom: 2rem; background-color: #e9ecef; border-radius: .3rem; }
@media (min-width: 576px) { .jumbotron { padding: 4rem 2rem; } }
.lead { font-size: 1.25rem; font-weight: 300; }
.display-4 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; }

/* Utilities used by the application's templates. */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-decoration-none { text-decoration: none !important; }
.text-muted { color: #6c757d !important; }
.text-dark { color: #343a40 !important; }
.text-white { color: #fff !important; }
.text-success { color: #28a745 !important; }
.text-danger { color: #dc3545 !important; }
.text-primary { color: #007bff !important; }
.bg-light { background-color: #f8f9fa !important; }
.bg-dark { background-color: #343a40 !important; }
.bg-white { background-color: #fff !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-bold { font-weight: 700 !important; }
.border { border: 1px solid #dee2e6 !important; }
.border-top { border-top: 1px solid #dee2e6 !important; }
.border-bottom { border-bottom: 1px solid #dee2e6 !important; }
.shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }
.float-right { float: right !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.m-0 { margin: 0 !important; }
.m-1 { margin: .25rem !important; }
.m-5 { margin: 3rem !important; }
.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.ml-1 { margin-left: .25rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-auto { margin-left: auto !important; }
.mr-0 { margin-right: 0 !important; }
.mr-2 { margin-right: .5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.p-1 { padding: .25rem !important; }
.p-2 { padding: .5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.pt-2 { padding-top: .5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-2 { padding-bottom: .5rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
}
