/* Override system styles for active menu items */

li a.active {
  color: inherit;
}

a.context-block-region {
  display: none;
}

html, body {
/*   height: 100%; */
}

body {
  background: #E8E8E8;
  font-family: Helvetica, sans-serif;
  min-width: 320px;
  font-size: 14px;
  position: relative;
  overflow-x: hidden;
}


#main .body a, #main .essay-body a, 
#mobile-main a, #mobile-main .essay-body a
{
  text-decoration:underline;
}
#main .body ul, #main .essay-body ul, 
#mobile-main .body ul, #mobile-main .essay-body ul{
margin-bottom:15px;
}
#main .body li, #main .essay-body li,
#mobile-main .body li, #mobile-main .essay-body li{
list-style:disc;
margin-left:25px;
line-height: 20px;
}



.rtl #main, .rtl #mobile-main {
  direction: rtl;
}

body, a {
  color: #707070;
}

.logo {
  background: url('../images/logo.png') no-repeat;
  background-size: 109px 109px;
  text-indent: -9999px;
  width: 109px;
  height: 108px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
}

h1 {
  font-family: "metabold_roman", sans-serif;
  text-transform: uppercase;
}

h2 {
  font-family: "metabold_roman", sans-serif;
  font-size: 30px;
}

h3 {
  font-size: 24px;
  line-height: 28px;
  font-weight: bold;
}

.pager {

  font-weight: bold;
  text-align: center;
}

.pager > * {
  margin: 0 4px;
}

.pager a.selected {
  color: #AFAFAF;
  margin: 0 4px;
}

div.block.block-menu_block h6.block-title {
  display: none;
}

a {
  text-decoration: none;
}

.but {
  font-weight: bold;
  padding: 5px 0;
  font-size: 14px;
  margin: 0 10px 0 0;
}

.but a {
  background: #7f807f; /* Old browsers */
  /* IE9 SVG, needs conditional override of 'filter' to 'none' */
  background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzdmODA3ZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM1YTVhNWEiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
  background: -moz-linear-gradient(top, #7f807f 0%, #5a5a5a 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#7f807f), color-stop(100%,#5a5a5a)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, #7f807f 0%,#5a5a5a 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, #7f807f 0%,#5a5a5a 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top, #7f807f 0%,#5a5a5a 100%); /* IE10+ */
  background: linear-gradient(to bottom, #7f807f 0%,#5a5a5a 100%); /* W3C */
  border-radius: 8px;
  color: #FFFCFC;
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7f807f', endColorstr='#5a5a5a',GradientType=0 ); /* IE6-8 */
  color: #FFFCFC;
  padding: 5px 15px;
  display: inline-block;
  behavior: url('../pie/PIE.htc');
}

/* Nav */
#nav .wrhome-only {
  display: none;
}

body.wrhome #nav .wrhome-only {
  display: block;
}

/* Subnav */
.subnav {
  background: url('../images/lines.png') top left repeat-x;
  height: 30px;
  margin: 24px 0 0 0;
}

.subnav > .inner {
  background: url('../images/lines.png') bottom left repeat-x;
  height: 30px;
  padding: 1px 4px;
  position: relative;
  z-index: 1000000000;
}

.subnav .left {
  font-size: 12px;
  /*position: absolute;
  top: 0;
  left: 0;*/
  float: left;
  line-height: 32px;
}

.subnav .left span {
  font-style: italic;
}

.subnav .right {
  width: auto;
  position: relative;
  /*top: 0;
  right: 0;*/
  z-index: 1000000000;
  float: right;
}

.subnav .langs {
  float: right;
  text-align: right;
  padding: 8px 0 0 0;
}

.subnav .left > ul > li,
.subnav .right > ul > li {
  float: left;
  border-left: 1px solid #707070;
  margin: 0 0 0 15px;
  padding: 0 0 0 15px;
}

.subnav .langs li {
  display: inline;
  text-align: right;
  margin: 0 0 0 10px;
  padding: 0 0 0 10px;
  border-left: 1px solid #707070;
}

.subnav .right li:first-child,
.subnav .langs li:first-child {
  border: 0;
}

.subnav .ico {
  background-image: url('../images/sprite.png');
  background-repeat: no-repeat;
}

.subnav .ico > a {
  display: block;
  height: 100%;
  width: 100%;
  cursor: pointer;
}

.subnav .right .ico {
  float: right;
  margin: 7px 0 0 18px;
}

.subnav .left .ico {
  float: left;
  margin: 6px 0 0 0;
}

.subnav .right .ico.translate {
  margin: 6px 0 0 18px;
}

.subnav .main {
  width: 18px;
  height: 19px;
  background-position: 0 -84px;
}

.subnav .share {
  width: 15px;
  height: 20px;
  background-position: 0 -44px;
}

.subnav .related {
  height: 18px;
  width: 20px;
  background-position: 0 -24px;
}

li.leaf {
  list-style-type: none;
  list-style-image: none;
  padding: 0;
}

ul.menu li {
  margin: 0;
}

.dark .subnav,
.subnav.dark,
.dark .subnav .inner,
.subnav.dark .inner {
  background: none;
}

.subnav.dark .main,
.dark .subnav .main {
  background-position: -37px -84px;
}

.subnav.dark .share,
.dark .subnav .share {
  background-position: -31px -44px;
}

.subnav.dark .related,
.dark .subnav .related {
  background-position: -40px -24px;
}

.dark .subnav > .inner,
.subnav.dark > .inner {
  border-color: #3B3B3B;
  border-width: 1px 0;
  border-style: solid;
}

/* Essays */
.essay-img-container, .essay-img, .caption {
  width: 100%;
}

.essay-img-container {
  position: relative;
}

.essay-img-container .caption {
  position: absolute;
  left: 0;
  background: rgba(0,0,0,0.75);
  color: #FFF;
  font-size: 12px;
  line-height: 1.4;
}

.essay-img {
  margin-bottom: -2px;
}

.essay-img-container .caption .inner {
  padding: 15px;
}

/* Publications */
.publications .pub-image {
  float: left;
}

.publications .date {
  font-size: 12px;
  text-transform: uppercase;
  color: #448ccb;
}

.publications .selected {
  font-weight: bold;
}

.publications .selected a {
  font-weight: normal;
  margin: 0 0 0 10px;
}

/* Photos and Videos */
.photos-videos .caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  color: #FFF;
  font-size: 16px;
}

.photos-videos .caption .inner {
  padding: 20px 15px;
}

.photos-videos .gallery .teaser,
.photos-videos h3.section-title {
  display: none;
}


/* Photo Gallery */
.queue-gallery,
.mobile-queue-gallery {
  position: relative;
  z-index: 0;
}

.queue-gallery .flex-direction-nav li a,
.mobile-queue-gallery .flex-direction-nav li a {
  margin: -50px 0 0 0;
  position: absolute;
  top: 50%;
  text-indent: -100000px;
}

.queue-gallery .flex-direction-nav li a.prev,
.mobile-queue-gallery .flex-direction-nav li a.prev {
  background: url('../images/sprite.png') 0px -328px no-repeat;
  display: block;
  height: 101px;
  width: 71px;
  left: 11px;
}

.queue-gallery .flex-direction-nav li a.next,
.mobile-queue-gallery .flex-direction-nav li a.next {
  background: url('../images/sprite.png') -71px -328px no-repeat;
  display: block;
  height: 101px;
  width: 71px;
  right: 11px;
}

#gallery-pager,
.slide-bottom .title {
  display: none;
}

/* Fix FlexSlider fade animation */
.queue-gallery .slides li,
.mobile-queue-gallery .slides li {
  display: none;
  text-align: center;
}

.queue-gallery .slides li:first-child,
.mobile-queue-gallery .slides li:first-child {
  display: block;
}

/* iPad-style dropdown for related material */

.subnav .ico {
  position: relative;
}

.subnav .ico a {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  zoom: 1;
	filter: alpha(opacity=0);
	opacity: 0;
}

.subnav .right .ico {
  position: relative;
  z-index: 100000000;
}

.subnav .popup_menu {
  position: absolute;
  right: 10000px;
  top: -30px;
  -webkit-transition: opacity 300ms ease-out;
  transition: opacity 300ms ease-out;
  background: url('../images/relatedbg.png') no-repeat top left;
  width: 462px;
  height: 427px;
  z-index: 100000;
}

.subnav .popup_menu .inner {
  position: relative;
  height: 100%;
  width: 100%;
  z-index: 1000000;
}

.subnav .popup_menu ul {
  width: 262px;
  height: 223px;
  position: absolute;
  top: 90px;
  left: 100px;
  border-radius: 6px;
  background: #FFF;
  box-shadow: 0 3px 5px rgba(0,0,0,0.5) inset;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  behavior: url('../pie/PIE.htc');
}

.subnav .popup_menu ul li a {
  display: block;
  border-bottom: 1px solid #e5e2e2;
  padding: 15px 20px;
  font-weight: bold;
  color: #000;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.subnav .popup_menu ul li:first-child a {
  border-radius: 6px 6px 0 0;
  behavior: url('../pie/PIE.htc');
}

.subnav .popup_menu ul li a:active {
  background-color: #0B5BAE;
  color: #FFF;
}

.subnav .popup_menu ul li:first-child a:active {
  box-shadow: 0 3px 5px rgba(0,0,0,0.5) inset;
}

.show {
  opacity: 1;
}

.hide {
  opacity: 0;
}

/* Misc */
.messages {
  width: 930px;
  margin: 10px auto;
  background: #FFA;
  border: 1px solid #FC9;
  padding: 10px;
}

.block ul {
  padding: 0;
}