/*
  Site theme on top of Bootstrap 5.
  Recreates the original gray/yellow look of the Bootstrap 3 site: 14px Helvetica type,
  gray navbar and panel headings, yellow accents, and Bootstrap 3 grid widths and gutters.
*/

:root {
  --site-gray: #999999;
  --site-yellow: #ffe600;

  --bs-body-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bs-body-font-size: 14px;
  --bs-body-line-height: 1.428571429;
  --bs-body-color: #333333;
  --bs-link-color: #333333;
  --bs-link-color-rgb: 51, 51, 51;
  --bs-link-hover-color: #2a6496;
  --bs-link-hover-color-rgb: 42, 100, 150;
  --bs-border-color: #dddddd;
  --bs-border-radius: 4px;
}

/* Keep in-page anchors (e.g. articles.html#TheNation) clear of the fixed navbar. */
html {
  scroll-padding-top: 60px;
}

body {
  padding-top: 50px;
  padding-bottom: 20px;
}

/* ---- Typography ---- */

a {
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}
.btn:hover, .btn:focus,
.nav-link:hover, .nav-link:focus,
.navbar-brand:hover, .navbar-brand:focus,
.dropdown-item:hover, .dropdown-item:focus {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}
h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; }
h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; }
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

p {
  margin: 0 0 10px;
}

small, .small {
  font-size: 85%;
}

hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--site-yellow);
  opacity: 1;
}

/* Bootstrap 3 made responsive images block-level; several layouts rely on that. */
.img-fluid {
  display: block;
}

iframe {
  border: 0;
}

/* ---- Grid: Bootstrap 3 container widths and 30px gutters ---- */

.container,
.row {
  --bs-gutter-x: 30px;
}
/* Bootstrap 5 zeroes the top margin of direct row children; several pages
   place headings (some empty, used as spacers) directly inside rows. */
.row > h1, .row > h2, .row > h3 { margin-top: 20px; }
.row > h4, .row > h5, .row > h6 { margin-top: 10px; }

@media (min-width: 576px)  { .container { max-width: none; } }
@media (min-width: 768px)  { .container { max-width: 750px; } }
@media (min-width: 992px)  { .container { max-width: 970px; } }
@media (min-width: 1200px) { .container { max-width: 1170px; } }

/* ---- Navbar ---- */

.navbar-default {
  --bs-navbar-padding-y: 0;
  --bs-navbar-color: #ffffff;
  --bs-navbar-hover-color: var(--site-yellow);
  --bs-navbar-active-color: var(--site-yellow);
  --bs-navbar-brand-color: #ffffff;
  --bs-navbar-brand-hover-color: var(--site-yellow);
  --bs-navbar-brand-font-size: 18px;
  --bs-navbar-brand-padding-y: 15px;
  --bs-navbar-brand-margin-end: 0;
  --bs-navbar-nav-link-padding-x: 15px;
  --bs-navbar-toggler-border-color: #dddddd;
  --bs-navbar-toggler-border-radius: 4px;
  --bs-navbar-toggler-focus-width: 0;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23cccccc' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  min-height: 50px;
  background-color: var(--site-gray);
  border-bottom: 1px solid var(--site-yellow);
}
.navbar-default .navbar-brand {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: -15px;
  line-height: 20px;
}
.navbar-default .navbar-nav .nav-link {
  padding-top: 15px;
  padding-bottom: 15px;
  line-height: 20px;
}
.navbar-default .navbar-nav .nav-link.active {
  color: var(--site-yellow);
  background-color: #ffffff;
}
.navbar-default .navbar-nav .nav-link.show {
  color: #555555;
  background-color: #e7e7e7;
}
.navbar-default .navbar-toggler {
  padding: 4px 8px;
  margin: 8px 0;
}
.navbar-default .navbar-toggler:hover,
.navbar-default .navbar-toggler:focus {
  background-color: #dddddd;
}
@media (min-width: 768px) {
  .navbar-default .navbar-nav {
    margin-right: -15px;
  }
}
@media (max-width: 767.98px) {
  .navbar-default .navbar-collapse {
    max-height: 340px;
    overflow-y: auto;
  }
  .navbar-default .navbar-nav .nav-link {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* ---- Dropdowns ---- */

.dropdown-menu {
  --bs-dropdown-font-size: 14px;
  --bs-dropdown-padding-y: 5px;
  --bs-dropdown-item-padding-x: 20px;
  --bs-dropdown-item-padding-y: 3px;
  --bs-dropdown-link-color: #333333;
  --bs-dropdown-link-hover-color: #262626;
  --bs-dropdown-link-hover-bg: #f5f5f5;
  --bs-dropdown-link-active-color: #ffffff;
  --bs-dropdown-link-active-bg: #333333;
  --bs-dropdown-divider-bg: #e5e5e5;
  --bs-dropdown-divider-margin-y: 9px;
  --bs-dropdown-border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}
.dropdown-divider {
  opacity: 1;
}
.navbar-default .dropdown-menu {
  --bs-dropdown-spacer: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* ---- Buttons ---- */

.btn {
  --bs-btn-padding-x: 12px;
  --bs-btn-padding-y: 6px;
  --bs-btn-font-size: 14px;
  --bs-btn-line-height: 1.428571429;
  --bs-btn-border-radius: 4px;
}
.btn-default {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: var(--site-gray);
  --bs-btn-border-color: var(--site-yellow);
  --bs-btn-hover-color: var(--site-yellow);
  --bs-btn-hover-bg: var(--site-gray);
  --bs-btn-hover-border-color: var(--site-yellow);
  --bs-btn-active-color: var(--site-yellow);
  --bs-btn-active-bg: var(--site-gray);
  --bs-btn-active-border-color: var(--site-yellow);
  --bs-btn-focus-shadow-rgb: 255, 230, 0;
}

/* ---- Cards (formerly Bootstrap 3 panels) ---- */

.card {
  --bs-card-border-color: #dddddd;
  --bs-card-border-radius: 4px;
  --bs-card-inner-border-radius: 3px;
  --bs-card-spacer-x: 15px;
  --bs-card-spacer-y: 15px;
  --bs-card-cap-padding-x: 15px;
  --bs-card-cap-padding-y: 10px;
  --bs-card-cap-bg: var(--site-gray);
  --bs-card-cap-color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.card > .card-header {
  border-bottom-color: var(--site-yellow);
}

/* ---- Tables ---- */

.table {
  --bs-table-border-color: #dddddd;
  margin-bottom: 20px;
}
.table > :not(caption) > * > * {
  padding: 8px;
  line-height: 1.428571429;
  border-bottom-width: 0;
  border-top: 1px solid #dddddd;
}
.card > .table {
  margin-bottom: 0;
}
.card > .table > tbody:first-child > tr > * {
  border-top: 0;
}

/* ---- Thumbnails (Bootstrap 3 component, not in Bootstrap 5) ---- */

.thumbnail {
  display: block;
  padding: 4px;
  margin-bottom: 20px;
  line-height: 1.428571429;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 4px;
}
.thumbnail > img,
.thumbnail a > img {
  margin-right: auto;
  margin-left: auto;
}
.thumbnail .caption {
  padding: 9px;
  color: #333333;
}

/* ---- Home page landing image (formerly a Bootstrap 3 jumbotron) ---- */

.jumbotron {
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 6px;
}
@media (min-width: 768px) {
  .jumbotron {
    padding: 48px 60px;
  }
}

/* ---- Carousel ---- */

.carousel-caption {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* ---- Photo gallery lightbox (js/site.js) ---- */

.gallery-link {
  cursor: zoom-in;
}
.lightbox .modal-content {
  background-color: #000000;
  color: #ffffff;
  border: 0;
}
.lightbox .modal-header {
  border-bottom: 0;
}
.lightbox .modal-body {
  position: relative;
  padding: 0 15px 15px;
  text-align: center;
}
.lightbox .modal-body img {
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  border: 0;
  background: transparent;
  opacity: 0.6;
}
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:focus,
.lightbox-next:focus {
  opacity: 1;
}
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
