/*
 * Site-wide styles written by hand, loaded after app.css (the 2022 Bootstrap
 * build, which is not regenerated). After any edit, set this file's ?id= in
 * mix-manifest.json to the first 20 characters of its MD5: the server caches
 * stylesheets for a year. tests/seo/check.py (css_stamps) checks it.
 *
 * 1. The club's blue, in place of Bootstrap's.
 * 2. The header button.
 * 3. The footer.
 */

/* 1. The shirt blue. If the club gives an official colour, change these three. */
:root {
  --shirt: #1c56ad;
  --shirt-dark: #123d7e;
  --shirt-light: #e8f0fb;
  --bs-blue: #1c56ad;
  --bs-primary: #1c56ad;
  --bs-primary-rgb: 28, 86, 173;
}

/* app.css writes Bootstrap's blue out per component, so each one is restated. */
a,
.link-primary,
.btn-link,
.nav-link {
  color: #1c56ad;
}

a:hover,
.link-primary:focus,
.link-primary:hover,
.btn-link:hover,
.nav-link:focus,
.nav-link:hover {
  color: #123d7e;
}

.border-primary {
  border-color: #1c56ad !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.dropdown-item.active,
.dropdown-item:active,
.dropdown-menu-dark .dropdown-item.active,
.dropdown-menu-dark .dropdown-item:active {
  background-color: #1c56ad;
  color: #fff;
}

.btn-check:focus + .btn,
.btn:focus {
  box-shadow: 0 0 0 .25rem rgba(28, 86, 173, .25);
}

/* One button style on every page. */
.btn-primary,
.btn-outline-primary {
  border-radius: 8px;
  border-width: 2px;
  font-weight: 700;
}

.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled {
  background-color: #1c56ad;
  border-color: #1c56ad;
  color: #fff;
}

.btn-check:focus + .btn-primary,
.btn-primary:focus,
.btn-primary:hover,
.btn-check:active + .btn-primary,
.btn-check:checked + .btn-primary,
.btn-primary.active,
.btn-primary:active,
.show > .btn-primary.dropdown-toggle {
  background-color: #123d7e;
  border-color: #123d7e;
  color: #fff;
}

.btn-outline-primary,
.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
  background-color: #fff;
  border-color: #1c56ad;
  color: #1c56ad;
}

.btn-outline-primary:hover,
.btn-check:active + .btn-outline-primary,
.btn-check:checked + .btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show,
.btn-outline-primary:active {
  background-color: #e8f0fb;
  border-color: #1c56ad;
  color: #1c56ad;
}

.btn-check:focus + .btn-primary,
.btn-primary:focus,
.btn-check:active + .btn-primary:focus,
.btn-check:checked + .btn-primary:focus,
.btn-primary.active:focus,
.btn-primary:active:focus,
.show > .btn-primary.dropdown-toggle:focus,
.btn-check:focus + .btn-outline-primary,
.btn-outline-primary:focus,
.btn-check:active + .btn-outline-primary:focus,
.btn-check:checked + .btn-outline-primary:focus,
.btn-outline-primary.active:focus,
.btn-outline-primary.dropdown-toggle.show:focus,
.btn-outline-primary:active:focus {
  box-shadow: 0 0 0 .25rem rgba(28, 86, 173, .4);
}

/* 2. Header: the button stays outside the collapsed menu. On phones the row
      is logo, button, menu toggle; from 992 px the button follows the menu. */
.site-header .navbar-brand {
  flex: 0 1 auto;
  min-width: 0;
  /* Leaves room for the button and the toggle, so the row never wraps:
     the logo shrinks instead. */
  max-width: calc(100% - 186px);
  margin-right: .5rem;
}

.site-header .navbar-brand img {
  width: auto;
  max-height: 50px;
}

.header-cta {
  margin-left: auto;
  margin-right: .5rem;
  white-space: nowrap;
}

.site-header .navbar-nav .nav-link {
  white-space: nowrap;
}

.site-header .navbar-toggler {
  padding: .25rem .5rem;
}

@media (min-width: 992px) {
  .site-header .navbar-brand {
    max-width: none;
  }

  .header-cta {
    order: 2;
    margin: 0 0 0 1rem;
  }
}

/* Between 992 and 1200 px the logo, the whole menu and the button share
   960 px, so the logo is a little smaller there. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .navbar-brand img {
    max-height: 36px;
  }
}

/* 3. Footer */
.site-footer {
  margin-top: 1.5rem;
  padding: 52px 0 28px;
  background: #123d7e;
  color: #cfdcf2;
  font-size: .95rem;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: #cfdcf2;
}

.site-footer-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.site-footer h2,
.site-footer h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0 0 10px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .site-footer-legal {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .85rem;
}

@media (max-width: 767.98px) {
  .site-footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
