/* BEGIN PAGE HEADER */
.page-header {
  color: white;
  text-shadow: 0 0 12px #333,
              -0.5px -0.5px 0 #000,  
              0.5px -0.5px 0 #000,
              -0.5px 0.5px 0 #000,
              0.5px 0.5px 0 #000;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #0D47A1;
  background-size: cover;
}

.page-header.tama {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url(/images/tama-bridge-1920x1285.jpg);
  background-position: 0 55%;
}

@media(max-width: 550px) {
  .page-header.tama {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
      url(/images/tama-bridge-400x268.jpg);
    background-position: 0 55%;
  }
}

@media(min-width: 551px) and (max-width:849px) {
  .page-header.tama {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
      url(/images/tama-bridge-800x535.jpg);
    background-position: 0 55%;
  }
}

.page-header.donner {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url(/images/donner-pass-snow-rainbow-bridge-1920x683.jpg);
  background-position: 0 35%;
}

@media(max-width: 550px) {
  .page-header.donner {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
      url(/images/tama-bridge-400x268.jpg);
    background-position: 0 55%;
  }
}

@media(min-width: 551px) and (max-width:849px) {
  .page-header.donner {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
      url(/images/tama-bridge-800x535.jpg);
    background-position: 0 55%;
  }
}

.page-header.omaha {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url(/images/lh-omaha-brick-bridge-1920x1019.jpg);
  background-position: 0 25%;
}

@media(max-width: 550px) {
  .page-header.omaha {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
      url(/images/tama-bridge-400x268.jpg);
    background-position: 0 55%;
  }
}

@media(min-width: 551px) and (max-width:849px) {
  .page-header.omaha {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
      url(/images/tama-bridge-800x535.jpg);
    background-position: 0 55%;
  }
}

.page-header-main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
     -ms-flex-align: center;
        align-items: center;
}

.page-header-logo {
  padding-right: 20px;
}

@media (max-width: 900px) {
  .lha-header-logo {
    height: 80px;
  }
}

@media (min-width: 901px) {
  .lha-header-logo {
    height: 125px;
  }
}

.page-header-text {
  display: flex;
  flex-direction: column;
}

.page-header-title {
  font-weight: 700;
}

.page-header-title,
.page-header-subtitle {
  font-family: Vollkorn, Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, 'Times New Roman', serif;
}

@media (max-width: 630px) {
  .page-header-title {
    font-size: 24px;
    line-height: 28px;
  }
}

@media (min-width: 631px) and (max-width: 900px) {
  .page-header-title {
    font-size: 36px;
    line-height: 38px;
  }
}

@media (min-width: 901px) {
  .page-header-title {
    font-size: 52px;
    line-height: 52px;
  }
}

.page-header-subtitle {
  font-weight: 600;
}

@media (max-width: 630px) {
  .page-header-subtitle {
    margin-top: 4px;
    font-size: 14px;
    line-height: 16px;
  }
}

@media (min-width: 631px) and (max-width: 900px) {
  .page-header-subtitle {
    font-size: 20px;
  }
}

@media (min-width: 901px) {
  .page-header-subtitle {
    font-size: 28px;
    line-height: 38px;
  }
}

@media (max-width: 450px) {
  .page-header-mobile-caption {
    font-size: 14px;
    line-height: 14px;
    letter-spacing: normal;
  }
  
  .wf-vollkornsc-n4-inactive .page-header-mobile-caption {
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 1px;
  }

  .page-header-caption {
    display: none;
  }
}

@media (min-width: 451px) and (max-width: 630px) {
  .page-header-caption {
    font-size: 14px;
    line-height: 16px;
    letter-spacing: normal;
  }

  .wf-vollkornsc-n4-inactive .page-header-caption {
    font-size: 12px;
    letter-spacing: 1px;
    padding-top: 4px;
  }
}

@media (min-width: 631px) and (max-width: 900px) {
  .page-header-caption {
    font-size: 20px;
    line-height: 22px;
    letter-spacing: normal;
  }

  .wf-vollkornsc-n4-inactive .page-header-caption {
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 2px;
  }
}

@media (min-width: 901px) {
  .page-header-caption {
    font-size: 28px;
    line-height: 28px;
    letter-spacing: normal;
  }

  .wf-vollkornsc-n4-inactive .page-header-caption {
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 2px;
  }
}

.page-header-number {
  font-family: Vollkorn, Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, 'Times New Roman', serif;
}
/* END PAGE HEADER */

/* BEGIN HERO SECTION */
.content {
  font-family: Vollkorn, Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, 'Times New Roman', serif;
}

@media (min-width: 760px) {
  .hero {
    display: flex;
    padding-bottom: 24px;
  }
}

.hero-section-wide {
  position: relative;
}

@media (min-width: 760px) {
  .hero-section-wide {
    font-size: 24px;
    flex: 2;
  }
}

/* Overlap the hero links over the map in mobile */
@media (max-width: 759px) {
  .hero-section {
    background: rgba(255,255,255,.6); /* same as .background-map-text */
    position: relative;
    z-index: 999;
    margin-top: -90px;
  }
}

@media (min-width: 760px) {
  .hero-section {
    padding-left: 40px;
    font-size: 20px;
    flex: 1;
  }
}

.hero-list {
  padding: 12px 8px 24px 8px;
  max-width: 490px;  /* should equal max-width of braces + 40 */
}

@media (max-width: 759px) {
  .hero-list {
    padding: 12px 0 24px 0;
  }
}

.hero-list dl {
  margin: 0;
}

.hero-list dt:before {
  content: '\261E';  /* manicule */
  margin-right: 10px;
  font-size: 32px;
  vertical-align: middle;
  margin-bottom: -12px;
  display: inline-block;
}

.hero-list dd {
  margin-bottom: 1em;
}

.hero-list dd:last-child {
  margin-bottom: 0;
}

.hero-list a {
  text-decoration: none;
}

.hero-list a:hover {
  text-decoration: underline;
}

.hero-emphasis {
  letter-spacing: normal;
}

.wf-vollkornsc-n4-inactive .hero-emphasis {
  letter-spacing: 4px;
}

@media (max-width: 759px) {
  .hero-emphasis {
    font-size: 16px;
  }  

  .wf-vollkornsc-n4-inactive .hero-emphasis {
    font-size: 12px;
  }
}

@media (min-width: 760px) {
  .hero-emphasis {
    font-size: 24px;
  }  

  .wf-vollkornsc-n4-inactive .hero-emphasis {
    font-size: 16px;
  }
}

.hero-list dt {
  font-size: 20px;
  letter-spacing: normal;
}

.wf-vollkornsc-n4-inactive .hero-list dt {
  font-size: 14px;
  letter-spacing: 3px;
}

@media (max-width: 759px) {
  .intro-mobile {
    margin-bottom: 8px;
  }
}
@media (min-width: 760px) {
  .intro-mobile {
    display: none;
  }
}

.background-map {
  width: 100%;
  max-width: 600px;
  height: auto;
  min-height: 185px; /* In mobile, prevent hero-list from overlapping text above it */
  display: block;
  margin: 0 auto;
}

@media (min-width: 760px) {
  .background-map {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
  }
}

.background-map-text {
  background: rgba(255,255,255,.6);
  position: absolute;
  max-width: 800px;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, 0);
}

.background-map-text-top {
  top: 0;
}

.background-map-text-bottom {
  bottom: 0;
}

@media (max-width: 759px) {
  .background-map-text-non-mobile,
  .background-map-text-bottom {
    display: none;
  }
}

/* END HERO SECTION */

/* SMALL CAP FONTS */
.page-header-caption,
.page-header-mobile-caption,
.hero-emphasis,
.acronym,
.hero-list dt {
  font-family: 'Vollkorn SC';
  text-transform: lowercase;
}

.wf-vollkornsc-n4-inactive .page-header-caption,
.wf-vollkornsc-n4-inactive .page-header-mobile-caption,
.wf-vollkornsc-n4-inactive .hero-emphasis,
.wf-vollkornsc-n4-inactive .acronym,
.wf-vollkornsc-n4-inactive .hero-list dt {
  font-family: Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
}
/* END SMALL CAP FONTS */

/* HORIZONTAL BRACES AS DIVIDERS */
/* based on https://codepen.io/lrenhrda/pen/hkLIe */
@media (max-width: 759px) {
  .top-brace,
  .bottom-brace {
    display: none;
  }
}

@media (min-width: 760px) {
  .top-brace,
  .bottom-brace {
    width: auto;
    min-width: 36px;
    max-width: 450px;  /* should equal max-width of braces - 40 */
    padding-bottom: 20px;
    font-size: 2em;
    line-height: 2em;
    position: relative;
    margin: 0 15px 15px;
    border: none;
    background-color: transparent;
    background-size: 36px 20px;
    background-position: center bottom;
    background-repeat: no-repeat;
    overflow: visible;
  }
  
  .top-brace {
    background-image:
      radial-gradient(
        circle at 0 0,
        transparent 16.5px,
        #616161 17.5px,
        #616161 19.5px,
        transparent 20.5px),
      radial-gradient(
        circle at 37px 0,
        transparent 16.5px,
        #616161 17.5px,
        #616161 19.5px,
        transparent 20.5px);
  }
  
  .bottom-brace {
    background-image:
      radial-gradient(
        circle at 0 20px,
        transparent 16.5px,
        #616161 17.5px,
        #616161 19.5px,
        transparent 20.5px),
      radial-gradient(
        circle at 37px 20px,
        transparent 16.5px,
        #616161 17.5px,
        #616161 19.5px,
        transparent 20.5px);
  }
  
  .top-brace:before,
  .top-brace:after,
  .bottom-brace:before,
  .bottom-brace:after {
    width: 50%;
    height: 100%;
    content: "";
    position: absolute;
    box-sizing: border-box;
  }
  
  .top-brace:before,
  .top-brace:after {
    top: 100%;
    border-top: 3px solid #616161;
    margin-top: -3px;
  }
  
  .bottom-brace:before,
  .bottom-brace:after {
    bottom: 100%;
    border-bottom: 3px solid #616161;
    margin-bottom: -3px;
  }
  
  
  .top-brace:before,
  .bottom-brace:before {
    border-left: 1px solid transparent;
    left: -15px;
  }
  
  .top-brace:before {
    border-top-left-radius: 20% 30px;
  }
  
  .bottom-brace:before {
    border-bottom-left-radius: 20% 30px;
  }
  
  .top-brace:after,
  .bottom-brace:after {
    border-right: 1px solid transparent;
    right: -15px;
  }
  
  .top-brace:after {
    border-top-right-radius: 20% 30px;
  }
  
  .bottom-brace:after {
    border-bottom-right-radius: 20% 30px;
  }
}
/* END HORIZONTAL BRACES AS DIVIDERS */

/* MIDDLE LINKS SECTION */
@media(min-width: 551px) {
  .more-links {
    padding-top: 12px;
    border-top: 1px solid #666;
  }
}

/* END MIDDLE LINKS SECTION */

/* MIDDLE AND BOTTOM LINKS SECTION */
.column {
  display: inline-block;
  padding-left: 12px;
  padding-right: 12px;
  vertical-align: top;
  
  /* Hack to simulate inline-block in IE <= 10 */
  *display: inline;
  zoom: 1;
}

h1 a, h2 a {
  text-decoration: none;
}

h1 a:hover, h2 a:hover {
  text-decoration: underline;
}

.sidebar {
  background-color: #e8dfcd;
  margin: 0;
  padding: 0 16px;
  width: 100%;
}

.sidebar h1 {
  font-size: 100%;
  margin: 1em 0 0.25em 0;
}

.sidebar ul {
  margin: 0;
  padding: 0;
  line-height: 1.4em;
}

.sidebar p {
  font-size: smaller;
  line-height: 1.2em;
  margin: 0 0 16px 0;
  padding: 0;
}

.sidebar img {
  vertical-align: middle;
}

.sidebar a img {
  border: none;
}

.item {
  border-top: 1px solid #dadada;
  clear: both;
  margin-bottom: 1em;
  padding-top: 1em;
}

.itemicon {
  float: right;
  margin: 0 0 0.5em 0.5em;
}

.item h2 {
  font-size: larger;
  margin-bottom: 0;
  margin-top: 0;
}

.item p {
  line-height: 1.35em;
  margin-bottom: 0;
  margin-top: 0.2em;
}

.item p a, .item li a {
  text-decoration: underline;
}

.item ul {
  line-height: 1.35em;
  margin-top: 0.2em;
}

.social img {
  padding-right: 0.25em;
}

.social p {
  margin-bottom: 0.5em;
}

/* Show only one column if width <= 500px */
@media(max-width: 550px) {
  .column {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
  .sidebar {
    padding: 0 8px;
  }
}

@media(max-width: 700px) {
  #navbar {
    display: none;
  }
}

/* Show two columns if 551px <= width <= 849px */
@media(min-width: 551px) and (max-width:849px) {
  .mobile-column {
    display: flex;
  }
  .tablet-column {
    flex: 1;
  }
  .tablet-column:nth-of-type(odd) {
    padding-right: 12px;
  }
  .tablet-column:nth-of-type(even) {
    padding-left: 12px;
  }
  .tablet-column .column {
    display: inline;
    padding-left: 0;
    padding-right: 0;
  }
  .column:first-child .item:first-child {
    border-top: none;
  }
  .sidebar {
    display: flex;
    justify-content: space-between;
  }
  .sidebar .column {
    padding-left: 0;
    padding-right: 0;
    flex: 1 0 auto;
  }
}

/* Show three columns if width >= 850px */
@media(min-width: 850px) {
  .mobile-column,
  .tablet-column {
    display: inline;
  }
  .column {
    width: 33%;
  }
  .column:nth-of-type(1) {
    padding-left: 0;
    padding-right: 24px;
  }
  .column:nth-of-type(3) {
    padding-left: 24px;
    padding-right: 0;
  }
  .item:first-child {
    border-top: none;
  }
  .sidebar {
    width: 100%;
  }
}

@media(min-width: 551px) and (max-width: 1020px) {
  .itemicon.shrink img {
    height: auto;
    width: 100px;
  }
}
/* END MIDDLE AND BOTTOM LINKS SECTION */
