/* Modern, dependency-free foundation --------------------------------------- */
:where(*, *::before, *::after) {
  box-sizing: border-box;
}

:where(html) {
  color-scheme: dark light;
  scroll-padding-top: 76px;
  text-size-adjust: 100%;
}

:where(body) {
  margin: 0;
}

:where(button, input, textarea, select) {
  color: inherit;
  font: inherit;
}

:where(button) {
  margin: 0;
}

:where(img, svg, video, canvas) {
  display: block;
  max-width: 100%;
}

:where(a) {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - 32px), 1170px);
  margin-inline: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -15px;
}

[class*="col-"] {
  position: relative;
  width: 100%;
  min-width: 0;
  padding-inline: 15px;
}

.col-12,
.col-xs-12 { width: 100%; }
.col-xs-6 { width: 50%; }

.list-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-inline > li { display: inline-flex; }
.text-center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.navbar {
  position: relative;
  min-height: 60px;
}

.navbar > .container,
.navbar-header {
  display: flex;
  align-items: center;
}

.navbar > .container { justify-content: space-between; }
.navbar-header { flex: 0 0 auto; }
.navbar-brand { display: inline-flex; align-items: center; }
.navbar-collapse { min-width: 0; }
.navbar-nav { margin: 0; padding: 0; list-style: none; }
.navbar-right { margin-inline-start: auto; }
.navbar-left { margin-inline-end: auto; }
.navbar-toggle { display: none; cursor: pointer; }
.icon-bar { display: block; width: 22px; margin-block: 4px; }

.form-control {
  appearance: none;
}

@media (min-width: 768px) {
  .col-sm-3 { width: 25%; }
  .col-sm-4 { width: 33.3333%; }
  .col-sm-6 { width: 50%; }
  .col-sm-12 { width: 100%; }
}

@media (min-width: 992px) {
  .col-md-4 { width: 33.3333%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.6667%; }
  .col-md-12 { width: 100%; }
  .col-md-push-4 { inset-inline-start: 33.3333%; }
  .col-md-push-8 { inset-inline-start: 66.6667%; }
  .col-md-pull-4 { inset-inline-end: 33.3333%; }
  .col-md-pull-8 { inset-inline-end: 66.6667%; }
}

@media (max-width: 767px) {
  .navbar > .container {
    display: block;
    width: min(calc(100% - 24px), 1170px);
  }

  .navbar-header {
    min-height: 60px;
    justify-content: space-between;
  }

  .navbar-toggle {
    display: block;
    order: 3;
  }

  .navbar-collapse {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    visibility: hidden;
    transition: grid-template-rows 220ms ease, visibility 220ms ease;
  }

  .navbar-collapse > * { min-height: 0; }

  .navbar-collapse.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
  }

  .navbar-custom .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-block: 8px 16px;
  }

  .navbar-custom .navbar-nav > li,
  .navbar-custom .navbar-nav > li > a {
    width: 100%;
  }

  .navbar-custom .navbar-nav > li > a { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
