/* Sticky footer from http://thatemil.com/blog/2013/11/03/sticky-footers-flexbox-and-ie10/ */

* {
  box-sizing: border-box;
}

body {
  background-color: #fff;  /* formerly #f9f9f9 */
  color: #000;
  font-family: Georgia, 'Times New Roman', serif;
  margin: 0;
  padding: 0;
}

.page-body {
  display: flex;
  display: -webkit-flex;
  display: -ms-flexbox;
  flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  line-height: 1.35;
  min-height: 100vh;
}

.masthead {
  background: #336699;
  width: 100%;
  padding: 8px 16px;
}

.masthead-modular {
  align-items: center;
  color: #fff;
  display: flex;
  display: -webkit-flex;
  display: -ms-flexbox;
  font-family: Vollkorn, Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, 'Times New Roman', serif;
}

.masthead-logo {
  padding-right: 16px;
  height: 65px;
}

.masthead-subtitle {
  align-self: flex-start;
  -webkit-align-self: flex-start;
  -ms-flex-item-align: flex-start;
  font-size: 18px;
  font-family: 'Vollkorn SC';
  text-transform: lowercase;
}

.wf-vollkornsc-n4-inactive .masthead-subtitle {
  font-family: Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
}

.masthead-title {
  font-size: 28px;
  line-height: 28px;
  align-self: flex-start;
  -webkit-align-self: flex-start;
  -ms-flex-item-align: flex-start;
  font-weight: 700;
}

.content {
  flex: 1 0 auto;
  -webkit-flex: 1 0 auto;
  -ms-flex: 1 0 auto;
}

.content-body {
  flex: 1 1 auto;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  margin: 16px;
}

.content-body > :first-child {
  margin-top: 0;
}

a {
  color: #03c;
}

a:visited {
  color: #639;
}

a:hover {
  text-decoration: underline;
}

.itemicon img {
  border: none;
}

ul {
  margin: 0;
  padding: 0;
}

ol {
  margin-left: 1em;
  padding: 0;
}

li {
  margin-left: 1.1em;
}

ol ol {
  list-style-type: lower-alpha;
}
ol ol ol {
  list-style-type: lower-roman;
}
ol ol ol ol {
  list-style-type: decimal;
}

dt {
  font-weight: bold;
}

dd {
  margin: 0 0 1em 0;
  padding: 0;
}

#navbar {
  font-family: 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
  letter-spacing: 0.03rem;
  margin: 0;
  background-color: #f4f4f4;
}

#navbar ul {
  font-size: 0.7rem;
  display: block;
  margin: 0;
  padding: 0.3em 0;
}

#navbar li {
  margin: 0;
  padding: 0;
  display: inline;
  border-left: 1px #bbb solid;
}

#navbar li:first-child {
  border-left: none;
}

#navbar a, #navbar a:visited {
  color: #111;
  padding: 0 0.9em;
  position: relative;
  font-weight: bold;
  text-decoration: none;
}

#join {
  background-color: #a00;
  text-transform: uppercase;
  position: absolute;
  right: 0;
  font-size: 0.8em;
  margin: 0;
  padding: 0.5em 0;
}

#join a, #join a:visited {
  color: #fff;
}

#left-nav, .footer, .plain-footer {
  font-family: 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
  font-size: small;
}

#left-nav, .footer {
  background: #f4f4f4;
  color: #888;
  padding: 16px;
}

#left-nav {
  min-width: 10em;
  max-width: 10em;
}

#left-nav a {
  text-decoration: none;
}

.callout {
  background: #eee;
}

.left-floater {
  background: #f4f4f4;
  padding: 0 1em;
}

.right-floater {
  padding: 0 1em;
}

.footer a {
  color: #5559cc;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.plain-footer {
  margin: 0 16px;
}

#mobile-footer ul, #left-nav ul {
  list-style-type: none;
  margin: 0;
  padding-bottom: 1em;
}

#mobile-footer li, #left-nav li {
  margin: 0;
  padding: 0.3em 0;
}

.mobile-footer-category {
  color: #333;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3em;
}

.two-columns {
  -moz-column-count: 2;
  -webkit-column-count: 2;
  column-count: 2;
}

.table {
  display: flex;
  display: -webkit-flex;
  display: -ms-flexbox;
  flex-basis: 80em;
  -webkit-flex-basis: 80em;
  -ms-flex-basis: 80em;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
}

.table-column {
  flex: 0 0 20em;
  -webkit-flex: 0 0 20em;
  -ms-flex: 0 0 20em;
}

.table-column p {
  margin-top: 0;
}

.photo-caption {
  font-family: 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 20px;
}

/* Print and mobile for navbar */
@media print, (max-width: 830px) {
  #navbar {
    display: none;
  }
}

/* Print and mobile */
@media print, (max-width: 700px) {
  .masthead-image {
    display: none;
  }

  #left-nav {
    display: none;
  }

  .left-floater > p:first-child,
  .right-floater > p:first-child,
  .right-floater > h3:first-child {
    padding-top: 1em;
  }

  .left-floater > p:last-child, .right-floater > p:last-child {
    padding-bottom: 1em;
  }
}

/* Print */
@media print {
  .page-body {
    min-height: 0;
  }

  .masthead {
    background: #fff;
  }

  .masthead-modular {
    color: #000;
  }

  #mobile-footer {
    display: none;
  }

  .footer {
    background: #fff;
    color: #000;
  }
}

/* Mobile */
@media screen and (max-width: 700px) {
  .desktop-only {
    display: none;
  }

  .footer {
    border-top: 1px #ddd solid;
  }
}

/* Desktop */
@media screen and (min-width: 701px) {
  .mobile-only {
    display: none;
  }

  #mobile-footer {
    display: none;
  }

  .content {
    display: flex;
    display: -webkit-flex;
    display: -ms-flexbox;
    flex-direction: row;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
  }

  .left-floater {
    float: left;
    margin-right: 1em;
    max-width: 20em;
  }

  .right-floater {
    float: right;
    margin-left: 1em;
    max-width: 20em;
  }

  .left-floater-photo {
    float: left;
    margin-right: 1em;
    max-width: 300px;
  }

  .right-floater-photo {
    float: right;
    margin-left: 1em;
    max-width: 300px;
  }

  .masthead-modular {
    margin: 8px 0;
  }

  .masthead-text {
    display: none;
  }
}
