/*
 * Lightweight grid and utilities — replaces Bootstrap 3
 * Only includes classes actually used by this site.
 */

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

/* === Container === */
.container {
  width: 100%;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* === Row === */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

/* === Columns (base) === */
[class*="col-"] {
  position: relative;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

/* === Clearfix === */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* === Small devices (>=768px) === */
@media (min-width: 768px) {
  .col-sm-4 { width: 33.3333%; }
  .col-sm-6 { width: 50%; }
  .col-sm-16 { width: 100%; }
}

/* === Medium devices (>=992px) === */
@media (min-width: 992px) {
  .container { width: 970px; }
  .col-md-2 { width: 16.6667%; }
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.3333%; }
}

/* === Large devices (>=1200px) === */
@media (min-width: 1200px) {
  .container { width: 1170px; }
}

/* === Navbar === */
.navbar {
  position: relative;
  min-height: 50px;
}
.navbar-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}
.navbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: inline-block;
  padding: 15px 0;
  font-size: 18px;
  line-height: 20px;
  text-decoration: none;
}
.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.navbar-nav > li > a {
  display: block;
  padding: 15px 10px;
  text-decoration: none;
}
.navbar-right {
  margin-left: auto;
}

/* Mobile toggle button */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 10px;
}
.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
  margin: 4px 0;
  transition: all 0.3s;
}

/* Collapse behavior */
.navbar-collapse {
  display: flex;
  align-items: center;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* === Mobile (< 768px) === */
@media (max-width: 767px) {
  .navbar-header {
    width: 100%;
  }
  .navbar-toggle {
    display: block;
  }
  .navbar-collapse {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
  }
  .navbar-collapse.open {
    display: flex;
  }
  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  .navbar-nav > li {
    width: 100%;
  }
  .navbar-nav > li > a {
    padding: 10px 15px;
  }
  .navbar-right {
    margin-left: 0;
  }

  /* Stack columns on mobile */
  .col-sm-4,
  .col-sm-6,
  .col-md-2,
  .col-md-3,
  .col-md-4 {
    width: 100%;
  }
}

/* === Utility classes === */
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-off-white { color: #e7e7e7; }
.text-black { color: #000; }
.center-block { margin-left: auto; margin-right: auto; }
.lead { font-size: 16px; font-weight: 300; }

/* === Form controls === */
.form-group {
  margin-bottom: 15px;
}
.form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857;
  color: #555;
  background-color: #fff;
  border: 1px solid #ccc;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus {
  border-color: #66afe9;
  outline: 0;
}
.input-lg {
  height: 46px;
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1.33;
}
textarea.form-control {
  height: auto;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  text-decoration: none;
}
