/**
 * base.css — minimal reboot, grid and utilities.
 *
 * Replaces bootstrap.min.css (227 KB) with only the pieces this site uses.
 * Values mirror Bootstrap 5.3 so existing markup and main.css behave identically.
 * Breakpoints: sm 576, md 768, lg 992, xl 1200, xxl 1400.
 */

/*---------------------------------------------------------------- reboot --*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + 0.9vw); }
h3 { font-size: calc(1.3rem + 0.6vw); }
h4 { font-size: calc(1.275rem + 0.3vw); }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1rem; }

@media (min-width: 1200px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.5rem; }
}

/* .h5/.h6 on a non-heading element still take heading rhythm */
.h5, .h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

ul ul, ul ol, ol ul, ol ol {
  margin-bottom: 0;
}

hr {
  margin: 1rem 0;
  color: inherit;
  border: 0;
  border-top: 1px solid;
  opacity: 0.25;
}

b, strong { font-weight: bolder; }
small     { font-size: 0.875em; }

a { color: inherit; }

img, svg { vertical-align: middle; }

label { display: inline-block; }

button, input, optgroup, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button, select { text-transform: none; }

button,
[type="button"],
[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

textarea { resize: vertical; }

::-moz-focus-inner { padding: 0; border-style: none; }

/*----------------------------------------------------------------- grid ---*/
.container,
.container-fluid {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

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

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--gutter-x) * 0.5);
  padding-left: calc(var(--gutter-x) * 0.5);
  margin-top: var(--gutter-y);
}

.gy-4 { --gutter-y: 1.5rem; }
.gy-5 { --gutter-y: 3rem; }

@media (min-width: 992px) {
  .gx-lg-5 { --gutter-x: 3rem; }
}

@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 992px) {
  .col-lg-2  { flex: 0 0 auto; width: 16.66666667%; }
  .col-lg-4  { flex: 0 0 auto; width: 33.33333333%; }
  .col-lg-5  { flex: 0 0 auto; width: 41.66666667%; }
  .col-lg-6  { flex: 0 0 auto; width: 50%; }
  .col-lg-7  { flex: 0 0 auto; width: 58.33333333%; }
  .col-lg-8  { flex: 0 0 auto; width: 66.66666667%; }
  .col-lg-9  { flex: 0 0 auto; width: 75%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
  .offset-lg-2 { margin-left: 16.66666667%; }
}

/*------------------------------------------------------------ utilities ---*/
.d-none { display: none !important; }
.d-flex { display: flex !important; }

.flex-column     { flex-direction: column !important; }
.flex-shrink-0   { flex-shrink: 0 !important; }

.align-items-center      { align-items: center !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

.text-center { text-align: center !important; }

.h-100 { height: 100% !important; }
.w-100 { width: 100% !important; }

.position-relative { position: relative !important; }

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.me-auto { margin-right: auto !important; }
.mb-4    { margin-bottom: 1.5rem !important; }
.mt-3    { margin-top: 1rem !important; }
.mt-4    { margin-top: 1.5rem !important; }
.pt-3    { padding-top: 1rem !important; }
.pt-4    { padding-top: 1.5rem !important; }
.pt-5    { padding-top: 3rem !important; }

.img-fluid {
  max-width: 100%;
  height: auto;
}

.dropdown { position: relative; }

.visually-hidden:not(:focus):not(:active) {
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  position: absolute !important;
}

@media (min-width: 768px) {
  .mt-md-0 { margin-top: 0 !important; }
}

@media (min-width: 992px) {
  .flex-lg-row             { flex-direction: row !important; }
  .align-items-lg-start    { align-items: flex-start !important; }
  .justify-content-lg-between { justify-content: space-between !important; }
}

@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
  .me-xl-0   { margin-right: 0 !important; }
}

/*----------------------------------------------------------------- forms --*/
.form-label { margin-bottom: 0.5rem; }

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  appearance: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder { color: #6c757d; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .form-control { transition: none; }
}
