/* Start: Left-align text in logo with text on page */
.maincontent, #globalactions, #footer {
  margin-left: 0;
  margin-right: 0;
}

#quicksearchwrapper {
  margin: 8px 0 0 0;
}

a, a:active, .link, .link:active {
  color: #188bb3;
}

#globalnav ul li a, #globalnav ul li a:visited, #orgnav ul li a, #orgnav ul li a:visited {
  color: #188bb3;
  background: white;
}

.sectionnav a, .sectionnav a:visited {
  color: #188bb3;
}

#globalnav ul li a:hover, #globalnav ul li a:focus, #orgnav ul li a:hover, #orgnav ul li a:focus, .sectionnav a:hover, .sectionnav a:focus {
  background: #188bb3;
  color: white;
}

.pagenav ul li a:hover, .pagenav ul li a:focus {
  /* interaction style for prev/next nav */
  background: #188bb3;
  color: white;
}

#searchnav li a:hover, #browsenav li a:hover, #xcollsearchtabs li a:hover {
  background: #188bb3;
  /* White border around hover looks better -- rendering of rounded
     buttons with background and colored bordered is pixelated in 
     firefox */
  border: 1px solid white;
  border-bottom: 0;
  color: white;
}

#format-buttons a, #zoom a {
  background: #fff;
}
#format-buttons a:hover, #zoom a:hover {
  background: #188bb3;
  border-color: #188bb3;
  color: #fff;
}
#format-buttons a.current, #format-buttons a.current:hover, #zoom a.current, #zoom a.current:hover {
  background: #ddd;
  color: #188bb3;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
  background: #bbb;
}
#format-buttons a, #format-buttons a.current:hover, #zoom a, #zoom a.current:hover {
  border: 1px solid #aaa;
}

/* Start: Left-align text in logo with text on page */
.maincontent, #globalactions, #footer {
  margin-left: 5px;
  margin-right: 5px;
}

#quicksearchwrapper {
  margin: 8px 5px 0 0;
}

a, a:active, .link, .link:active {
  color: #222222;
}

#globalnav ul li a, #globalnav ul li a:visited, #orgnav ul li a, #orgnav ul li a:visited {
  color: #222222;
  background: white;
}

.sectionnav a, .sectionnav a:visited {
  color: #222222;
}

#globalnav ul li a:hover, #globalnav ul li a:focus, #orgnav ul li a:hover, #orgnav ul li a:focus, .sectionnav a:hover, .sectionnav a:focus {
  background: #222222;
  color: white;
}

.pagenav ul li a:hover, .pagenav ul li a:focus {
  /* interaction style for prev/next nav */
  background: #222222;
  color: white;
}

#searchnav li a:hover, #browsenav li a:hover, #xcollsearchtabs li a:hover {
  background: #222222;
  /* White border around hover looks better -- rendering of rounded
     buttons with background and colored bordered is pixelated in 
     firefox */
  border: 1px solid white;
  border-bottom: 0;
  color: white;
}

#format-buttons a, #zoom a {
  background: #fff;
}
#format-buttons a:hover, #zoom a:hover {
  background: #222222;
  border-color: #222222;
  color: #fff;
}
#format-buttons a.current, #format-buttons a.current:hover, #zoom a.current, #zoom a.current:hover {
  background: #ddd;
  color: #222222;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
  background: #bbb;
}
#format-buttons a, #format-buttons a.current:hover, #zoom a, #zoom a.current:hover {
  border: 1px solid #aaa;
}

#quicksearchwrapper {
  margin-top: 6px;
  margin-right: 0;
}

#quicksearchwrapper input[type="text"] {
  padding: 0.2em 0.5em;
}

#quicksearchwrapper input[type="text"] {
  border: 1px solid #aaa;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}

#globalactions {
  margin-top: 0;
  height: 40px;
}

#logo {
  margin-bottom: 6px;
  margin-top: 0;
}

#wrapper {
  margin-top: -10px;
}

#orgnav, #globalnav {
  float: left;
}

#globalnav {
  width: auto;
  /* margin-right: 3.75em; */
  margin-right: 0.75em;
}

.feed {
  display: block;
  margin-top: -4px;
}

#linktotop {
  margin-top: 5em;
}

.about-journal {
  text-align: center;
}

.about-journal > * {
  margin-left: auto;
  margin-right: auto;
}

.about-journal .stats {
  border: 0;
  margin-left: auto;
  margin-right: auto;
}

.about-journal .stats tr:first-child {
  width: 10em;
}

.about-journal .cover {
  padding: 5px;
  border: 1px solid #ddd;
}

.about-journal .cover-caption {
  border: 1px solid #ddd;
  background: #fff;
  padding: 0.25em;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  margin-top: 3px;
}

#staticcontent .contentright {
  width: 180px;
  margin-right: 0;
}
#staticcontent .contentleft {
  width: 52em;
}
#staticcontent table {
    /*
    th {
      border-left-color: #fff;
      border-right-color: #fff;
      border-bottom-color: #fff;
    }

    th:first-child {
      border-left-color: $cell-color;
    }

    th + td, th:last-child {
      border-right-color: $cell-color;
    }

    tr:last-child th {
      border-bottom-color: $cell-color;
    }
    */
}
#staticcontent table th, #staticcontent table td {
  border: 1px solid #bbbbbb;
}
#staticcontent table th {
  background: #ddd;
}

.encodedText {
  /* The first paragraph within a note should not be indented */
}
.encodedText p {
  margin-top: 0;
  margin-bottom: 0.25em;
  text-indent: 2.5em;
}
.encodedText li > p.numberednote:first-child {
  text-indent: 0;
}

.pbtext {
  height: 0;
  overflow: hidden;
  margin-bottom: 3em;
  margin-top: 3em;
}
