/* Minimal local replacement for the Bootstrap utilities used in this project. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

:root {
  --bs-white: #fff;
  --bs-black: #000;
  --bs-dark: #212529;
  --bs-success: #198754;
  --bs-warning: #ffc107;
  --bs-secondary: #6c757d;
  --bs-secondary-subtle: rgba(108, 117, 125, 0.35);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 0.75rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--gutter-y, 0));
  margin-inline: calc(-0.5 * var(--gutter-x, 1.5rem));
  flex-direction: row-reverse;
}

.row > * {
  width: 100%;
  padding-top: var(--gutter-y, 0);
  padding-inline: calc(0.5 * var(--gutter-x, 1.5rem));
}

.g-3 { --gutter-x: 1rem; --gutter-y: 1rem; }
.g-4 { --gutter-x: 1.5rem; --gutter-y: 1.5rem; }

.col-md-3, .col-md-6, .col-lg-3, .col-lg-6 { flex: 0 0 auto; }

@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-6 { width: 50%; }
  .text-md-start { text-align: left !important; }
}

@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-6 { width: 50%; }
  .g-lg-5 { --gutter-x: 3rem; --gutter-y: 3rem; }
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
  .align-items-lg-center { align-items: center !important; }
  .mt-lg-0 { margin-top: 0 !important; }
}

.order-1 { order: 1; }
.order-2 { order: 2; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.align-items-stretch { align-items: stretch; }
.justify-content-center { justify-content: center; }
.ms-auto { margin-left: auto; }
.h-100 { height: 100%; }
.w-100 { width: 100%; }

.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.pb-0 { padding-bottom: 0 !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }

.text-center { text-align: center; }
.text-white { color: var(--bs-white) !important; }
.text-white-50 { color: rgba(255, 255, 255, .5) !important; }
.text-light { color: #f8f9fa !important; }
.text-secondary { color: var(--bs-secondary) !important; }
.opacity-75 { opacity: .75 !important; }
.small { font-size: .875rem; }

.bg-dark { background-color: var(--bs-dark); }
.bg-black { background-color: var(--bs-black); }
.border-bottom { border-bottom: 1px solid; }
.border-secondary-subtle { border-color: var(--bs-secondary-subtle); }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.display-5 { font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1.1; }
.h6 { font-size: 1rem; margin: 0 0 .5rem; }

.rounded-pill { border-radius: 999px; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: .5rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
}

.btn-success { background-color: var(--bs-success); color: #fff; }
.btn-warning { background-color: var(--bs-warning); color: #1f1f1f; }

.form-control,
.form-check-input,
button,
input {
  font: inherit;
}

.form-control {
  width: 100%;
  border: 1px solid #ced4da;
  border-radius: .375rem;
  padding: .5rem .75rem;
}

.form-control-lg { padding: .75rem 1rem; font-size: 1.1rem; }
.form-check { display: flex; align-items: flex-start; gap: .5rem; }
.form-check-input { margin-top: .2rem; }

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

.navbar-brand { display: inline-flex; align-items: center; text-decoration: none; }
.navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
  border: 1px solid rgba(255,255,255,.45);
  background: transparent;
  color: #fff;
}

.navbar-toggler-icon {
  display: block;
  width: 1.3rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.navbar-toggler-icon::before { top: -6px; }
.navbar-toggler-icon::after { top: 6px; }

.collapse { display: none; width: 100%; }
.collapse.show { display: block; }
.navbar-collapse { margin-top: .5rem; }

.navbar-nav {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-toggler { display: none; }
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    width: auto;
    margin-top: 0;
  }
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
}
