/* Main container */
#page {
  width: 84%; /* original width: 1130px = 960px + 170px (left padding) */
  margin: 15px auto;
}

#site-header, #main-content-container, #footer-wrapper {
  width: 100%; /* 1130px */
  padding-left:0;
  max-width:1130px;
}

#site-menu {
  width:56%;
  float:left;
}

#branding {
  width: 23.45132743362832%; /* 265px / 1130px */
  max-width:265px;
}

#branding img {
  width:100%;
  height:100%;
  height:auto;
}

#branding-shadow-fix {
  width: 100%; /* 325px / 1130px */
}

#sitebar-last {
  max-width: 330px;
}

/* Header top */
#header_top {
  float: right;
  width:30%;
  max-width:300px;
}

#main-menu-container {
  width: 54.42477876106195%; /* 615px / 1130px*/
}

#main-content-container {
  padding-left:0;
}

#main-wrapper {
  padding-left: 3.125%; /* 30px / 960px */
  padding-right: 3.125%; /* 30px / 960px */
  width: 59.27083333333333%; /* (629px / 960px) - 6.25 padding */
  max-width: 569px;
  /* for IE8 + */
  margin-right:-1px; /* hack for border */
  /*box-sizing:border-box;*/
  /*-moz-box-sizing:border-box;*/
  /*-webkit-box-sizing:border-box;*/
}

#sidebar-last {
  padding-left: 0;
  padding-right: 0;
  width: 34.375%; /* 330px / 960px */
  float: right;
}

/*
 * Content without sidebar last.
 *
 * It's actual for some admin pages and not only.
 * Examples:
 * /content
 * /courses
 * /admin/content/review
 * /node/add/page
 * /../edit
 * /translation-jobs
 * /translate/.. (such as /translate/373?destination=translation-jobs)
 */
#main-wrapper.content-full-width {
  max-width:94%;
}
#main-wrapper.content-full-width .title-border-fix {
  margin-left: -3.45%;
  padding-left: 3.45%;
}
/* ~ Content without sidebar last */

#sidebar-first-wrap_cap {
  width: 15.04424778761062%; /* 170px / 1130px */
  margin-left: 0px;
  position: relative;
  float:left;
  display:block;
  max-width:170px;
}

#site-header {
  width: 100%; /* 1130px */
  max-width: 1130px; /* 170px + 960px */
}

.hf-margin {
  width: 15.04424778761062%; /* 170px / 1130px */
  position: relative;
  float:left;
  display:block;
}

#main-and-sidebar-wrap {
  -webkit-border-top-right-radius: 3px;
  -moz-border-radius-topright: 3px;
  border-top-right-radius: 3px;
  float:right;
  width: 84.95575221238938%; /* #main-content-container - #sidebar-first-wrap_cap = 100% - 15.04424778761062%*/
  max-width:960px;
}

#footer-first {
  width:84.95575221238938%;
  float:right;
}

/* Fluid node images */
.node img {
  max-width:100%;
  height: auto;
}

/* Node title */
.title-border-fix {
  margin-left: -5.4%;
  border:0;
  padding-left: 5.4%;
  background-color:#DA2F33;
}
.title-wrap {
  padding-left: 3.125%;
  padding-right: 3.125%;
  background-color:#fff;
}

/* Mobile controls */

#mobile-controls {
  float:right;
  display:none;
  width: 130px;
  margin-right: 2%;
  margin-top:2em;
  margin-bottom:1em;
}

#mobile-menu-button, #mobile-search-button {
  width: 51px;
  margin: 0;
  padding: 0;
  display: none;
  height: 39px;
  color: white;
  background: #DA2F33;

  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  -o-border-radius: 5px;

  border: 1px solid #eb2f37; /* stroke */
  -moz-box-shadow: inset 0 1px 0 rgba(255,178,181,.3); /* inner shadow */
  -webkit-box-shadow: inset 0 1px 0 rgba(255,178,181,.3); /* inner shadow */
  box-shadow: inset 0 1px 0 rgba(255,178,181,.3); /* inner shadow */

  background-position: -10px 0px;
  background-repeat: no-repeat;
  text-indent: -9999px;

  float:right;
  margin-right: 2%;
  clear:none;
}

#mobile-search-button {
  background-image:url("../images/search-icon.jpg");
}

#mobile-search-button:hover {
  background-position: -10px -39px;
}

#mobile-search-button.active {
  background-color: #ccc;
  background-image:url("../images/search-icon.jpg");
  background-position: -10px -78px;
  border: 1px solid #ccc; /* stroke */
  -moz-box-shadow: inset 0 1px 0 rgba(204,204,204,.3); /* inner shadow */
  -webkit-box-shadow: inset 0 1px 0 rgba(204,204,204,.3); /* inner shadow */
  box-shadow: inset 0 1px 0 rgba(204,204,204,.3); /* inner shadow */
}

#mobile-menu-button {
  background-image:url("../images/menu-icon.jpg");
}

#mobile-menu-button:hover {
  background-position: -10px -39px;
}

#mobile-menu-button.active {
  background-color: #ccc;
  background-image:url("../images/menu-icon.jpg");
  background-position: -10px -78px;
  border: 1px solid #ccc; /* stroke */
  -moz-box-shadow: inset 0 1px 0 rgba(204,204,204,.3); /* inner shadow */
  -webkit-box-shadow: inset 0 1px 0 rgba(204,204,204,.3); /* inner shadow */
  box-shadow: inset 0 1px 0 rgba(204,204,204,.3); /* inner shadow */
}

/* Mobile menu */

#mobile-menu {
  width:100%;
  float:right;
  display:none;
  margin: 0 auto;
  /*margin-bottom:1em;*/
}

#mobile-menu ul {
  clear: left;
  margin-top: 5px;
}

#mobile-menu ul.links li {
  padding: 0;
  margin: 0;
  /*width: 16.66666666666667%;*/
}
#mobile-menu ul.links li a {
  padding: 0;
  margin: 0;
  height: 50px;
  line-height: 50px;
  display: block;
  float:left;
  font-size: 14px;
  width: 16.66666666666667%; /* 100 / 6 */
  text-align: center;
  background: #f5f5f5;
  border: 1px solid #e1e1e1;
  -moz-box-sizing:    border-box;
  -webkit-box-sizing: border-box;
  box-sizing:        border-box;
  color: #3d3d3d;
  white-space: nowrap;
}
#mobile-menu ul.links li a:hover {
  background: #EEECEC;
}
#mobile-menu ul.links li.active, #mobile-menu ul.links li.active-trail {
  background: #fff;
  -webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.15);
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 10;
}
#mobile-menu ul.links li a.active, #mobile-menu ul.links li.active-trail a {
  background: #fff;
  margin-bottom: -3px;
  z-index: 10;
}

#mobile-menu ul.links li a.last, #mobile-menu ul.links li.last a{
  /*border-right: 0;*/
}

#mobile-menu ul.links li a.custom-user-menu-link {
  color: #DA2F33;
}

/* Mobile guide menu */
#main-content .block-guide .guide-mobile-menu {
  display:none;
}

#main-content .block-guide .guide-mobile-menu {
   margin:1em;
}
#main-content .block-guide .guide-mobile-menu select {
  width:100%;
}

/* Sidebar right */

#edit-search-block-form-1-wrapper input.form-text {
  border:0;
  height:40px;
  background: url("../images/search-textbox.png") no-repeat scroll 0 0 transparent;
}

#edit-search-block-form-1-wrapper {
  float:left;
  width:80%;
}

.search-form-custom-class {
  float:right;
  width:100%;
}

.search-form-custom-class .container-inline {
  width:100%;
}

.search-form-custom-class #search-block-form input.form-text {
  border:0;
  height:38px;
  /*background: url("../images/search-textbox.png") no-repeat scroll 0 0 transparent;*/
  background-image: none;
  background-color: #fff;
  border: 1px solid #CCCCCC;
  -webkit-border-top-left-radius: 5px;
  -webkit-border-bottom-left-radius: 5px;
  -moz-border-radius-topleft: 5px;
  -moz-border-radius-bottomleft: 5px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  width:100%;
}


.search-form-custom-class #search-block-form input.form-submit  {
  -webkit-border-top-right-radius: 5px;
  -webkit-border-bottom-right-radius: 5px;
  -moz-border-radius-topright: 5px;
  -moz-border-radius-bottomright: 5px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  float:right;
}

#main-menu-container ul.links.main-menu li a {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#main-menu-container ul.links.main-menu li.last a {
  border-radius: 0px;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
}


#bottom-wrap {
  width: 84.95575221238938%; /* 100% - .hf-margin = 100% - 15,04424778761062% */
  padding-left: 0;
  float:right;
}

#bottom-wrap .bottom-links {
  width: 19.79166666666667%; /* 190% / 960% */
  margin-right:6.944444444444444%;
}
#bottom-wrap .bottom-links.last {
  margin-right:0;
}



/* Media queries */

@media all and (max-width: 1320px) {
  #site-menu {
    width: 54%;
  }
  #header_top {
    /*max-width: 250px;*/
    width:24%;
  }

  #edit-search-block-form-1-wrapper {
    width:74%;
  }
}

@media all and (max-width: 1300px) {
  #main-content .relevant-articles-block li.views-row:nth-child(4),
  #main-content .latest-ideas-block li.views-row:nth-child(4) {
    display:none;
  }
}

@media all and (max-width: 1200px) {
  #site-menu ul.links.main-menu li a {
    font-size:12px;
    padding: 0 6px 0 4px;
  }
}

@media all and (max-width: 1100px) {

  #page {
    width:92%;
  }
  #header_top {
    clear:right;
  }

  #site-header .header-top-left {
    display:none;
  }
}

@media all and (max-width: 768px) {
  #page {
    width: 100%;
  }

  #main-and-sidebar-wrap, #branding {
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    min-width:235px;
  }

  #main-wrapper {
    width: auto;
    border-right:0;
  }

  #sidebar-last {
    clear:left;
    max-width: none !important;
    width: 100%;
  }

  #bottom-wrap {
    padding-left:0;
  }

  .title-border-fix {
    margin-left: -3.8%;
    padding-left: 3.8%;
  }

  #header_top {
    clear:right;
    margin-bottom: 1em;
    margin-top: 1em;
  }

  #main-content .relevant-articles-block li.views-row:nth-child(4),
  #main-content .latest-ideas-block li.views-row:nth-child(4) {
    display: inline-block;
  }
}

@media all and (min-width: 769px) {
  .newsletter-form .form-text {
    width:65%;
  }
}


@media all and (min-width: 769px) and (max-width: 960px) {
  #page {
    width: 94%;
  }
}

@media all and (max-width: 960px) {

  #page {
    margin-top: 0;
  }

  .search-form-custom-class #edit-search-block-form-1-wrapper input.form-text {
    width:100%;
  }

  #header_top {
    width:60%;
    float:right;
    margin-top:2em;
    margin-right: 2%;
    clear:none;
  }

  #mobile-menu .form-item {
    margin:0;
  }

  #branding {
    width:30%;
    padding:0;
    margin: 2%;
    background: none;
    border:none;
    -moz-border-radius:0;
    -webkit-border-radius:0;
    border-radius:0;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
  }

  #sidebar-first-wrap_cap, #sidebar-first-wrap {
    width:0;
    display:none;
  }
  #sidebar-first-wrap {
    margin-left:0;
  }

  #main-and-sidebar-wrap {
    width:100%;
  }
  .hf-margin {
    width:0;
    display:none;
  }
  #footer-first {
    width:100%;
  }

  #main-menu-container     { display: none; }

  #bottom-wrap {
    width:98%;
  }

  #bottom-wrap .bottom-links {
    width:48%;
    clear:none;
    float:left;
    margin-bottom:2em;
    font-size: 14px;
    margin-right:0;
  }

  #bottom-wrap .bottom-links:nth-child(1), #bottom-wrap .bottom-links:nth-child(3) {
    clear:left;
  }

  #bottom-wrap .bottom-links:nth-child(2), #bottom-wrap .bottom-links:nth-child(4) {
    float:right;
    clear:right;
  }

  #branding-shadow-fix {
    display:none;
  }

  #site-menu, #user-menu {
    display:none;
  }

  #mobile-controls, #mobile-menu-button, #mobile-search-button {
    display: block;
  }

  #header_top, #mobile-menu {
    display:none;
  }

  #main-wrapper {
    border-top:0;
  }

  #mobile-menu ul.links li a {
    width: 25%;
  }

  #mobile-menu ul.links li:nth-child(5), #mobile-menu ul.links li:nth-child(5) a {
    clear:left;
  }
}

@media all and (min-width: 961px) {
  #mobile-menu, #mobile-menu ul.links {
    display: none;
  }
}

@media all and (max-width: 768px) {
  #main-wrapper {
    max-width: 100%;
    width: 93%;
  }

  #header_top {
    width:95%;
    max-width: 100%;
    margin-top:1em;
  }

  #edit-search-block-form-1-wrapper {
    width: 90%;
  }

  #footer-first {
    margin:0;
  }
}

@media all and (max-width: 600px) {
  #main-content .relevant-articles-block li.views-row:nth-child(4),
  #main-content .latest-ideas-block li.views-row:nth-child(4) {
    display: none;
  }
  #edit-search-block-form-1-wrapper {
    width: 86%;
  }
}

@media all and (max-width: 480px) {
  #bottom-wrap .bottom-links {
    width:100%;
    clear:both;
  }
  .sidenote-right {
    width:auto;
  }

  input.form-text, textarea.form-textarea {
    width:98%;
  }

  #edit-search-block-form-1-wrapper {
    width: 82%;
  }

  #mobile-controls {
    margin-top:1.2em;
  }
  #branding {
    width:50%;
    min-width: 170px;
  }

  #mobile-menu ul.links li:nth-child(5),
  #mobile-menu ul.links li:nth-child(5) a {
    clear:none;
  }

  #mobile-menu ul.links li:nth-child(4),
  #mobile-menu ul.links li:nth-child(4) a,
  #mobile-menu ul.links li:nth-child(7),
  #mobile-menu ul.links li:nth-child(7) a {
    /*clear:left;*/
  }
  #mobile-menu ul.links li a {
    width: 33.33%;
  }

  /* Improve lists on mobiles. */
  #main-content .node ul {
    padding-left:20px;
  }

  /* Remove padding for ad block. */
  #sidebar-last .buy-sell-ad-first-block {
    padding-left:0;
    padding-right:0;
    text-align: center;
  }

  /* Guide menu */
  #main-content .content-left-float {
    clear:both;
    float:none;
    width:100%;
  }
  #main-content .block-guide .item-list {
    display:none;
  }
  #main-content .block-guide .guide-mobile-menu {
    display:block;
  }

  #edit-mail-wrapper #edit-mail {
    max-width: 150px;
  }
  #edit-mail-wrapper,
  .newsletter-form .newsletter-message {
    padding-left:10px;
    padding-right:10px;
  }

  .expres-buttons-view.expres-buttons-default {
    grid-template-columns: 1fr !important;
  }
}

@media all and (max-width: 450px) {
  #main-content .relevant-articles-block li.views-row:nth-child(3),
  #main-content .latest-ideas-block li.views-row:nth-child(3) {
    display: none;
  }
}

@media all and (max-width:320px) {
  .adplaceholder {
    margin: 5px 0;
  }
}

/**survey styles*/
body.expres-clean.node-type-expres-survey #footer-wrapper {
  width: 100%;
  padding-left: 0;
  max-width: 1130px;
  margin: 0 auto;
}

@media all and (min-width: 960px) {
  body.expres-clean.node-type-expres-survey {
    margin: 0 auto;
  }
  body.expres-clean.node-type-expres-survey #main-and-sidebar-wrap {float:none;}
  body.expres-clean.node-type-expres-survey #branding img.expres-logo-custom {
    width:auto;    
  }
  #branding {
    -webkit-box-shadow: box-shadow: 0 5px 0 #fff, 0 0 5px rgba(0,0,0,0.15);
    box-shadow: 0 5px 0 #fff, 0 0 5px rgba(0,0,0,0.15); 
  }
}
@media all and (min-width: 961px) {
  body.expres-clean.node-type-expres-survey {
    margin: 0 auto;
    overflow-x: hidden;
  }
  body.expres-clean.node-type-expres-survey #page{
    margin: 15px 6%;
    width:100%;
  }
  body.expres-clean.node-type-expres-survey #main-and-sidebar-wrap {float:none;}
  body.expres-clean.node-type-expres-survey #site-header {
    width: 100%;
    max-width: 1130px;
    margin: 0 auto;
  }
  body.expres-clean.node-type-expres-survey .hf-margin {display:none;}
  body.expres-clean.node-type-expres-survey #site-header,
  body.expres-clean.node-type-expres-survey #main-content-container{
    margin:0 auto;
  }
  body.expres-clean.node-type-expres-survey #bottom-wrap {
    width:100%;
    width:84.95575221238938%;    
    float:none;
  }

}
@media all and (max-width: 960px) {

  body.expres-clean.node-type-expres-survey #mobile-controls{
    display:none !important;
  }

  body.expres-clean.node-type-expres-survey #branding {
   padding: 0px 0 10px 0;
   margin-bottom: -3px;
   background: white;
   width: 100%;
   /*margin: 0;
   margin-top: 0px;*/
  }
  body.expres-clean.node-type-expres-survey #branding a.expres-logo {
    display:block;
    width:35%;
  }
  body.expres-clean.node-type-expres-survey #branding img {
    width: auto;
    margin-left:20px;
  }
  body.expres-clean.node-type-expres-survey #branding-shadow-fix{display:block;margin:0}
  body.expres-clean.node-type-expres-survey #page {margin:0 auto;}
  body.expres-clean.node-type-expres-survey #main-content-container {margin-bottom:0}
  body.expres-clean.node-type-expres-survey #bottom-wrap{margin-top:10px;}

}
@media all and (max-width:768px) {
  body.expres-clean.node-type-expres-survey #mobile-controls{
    display:none !important;
  }
  body.expres-clean.node-type-expres-survey #branding img {
    width: auto;
  }
  body.expres-clean.node-type-expres-survey #branding a.expres-logo {  
    width:40%;
  }
}
@media all and (min-width: 769px){
  body.expres-clean.node-type-expres-survey #mobile-controls{
    display:none !important;
  }
}
@media all and (min-width: 769px) and (max-width: 960px){
  body.expres-clean.node-type-expres-survey #mobile-controls{
    display:none !important;
  }
  body.expres-clean.node-type-expres-survey #branding img {
    width: auto;
    margin-left: 20px;
  }
}

@media all and (max-width: 480px) {
    body.expres-clean.node-type-expres-survey #mobile-controls{
    display:none !important;
  }
   body.expres-clean.node-type-expres-survey #branding a.expres-logo {    
    width:55%;
  }
  body.expres-clean.node-type-expres-survey #branding img {
    width: auto;
    margin-left: 10px;
  }
}

/* Surveys "full" style */
body.expres-full.node-type-expres-survey #page {
  margin: 15px 1%;
  width: 98%;
}
body.expres-full.node-type-expres-survey #site-header,
body.expres-full.node-type-expres-survey #branding,
body.expres-full.node-type-expres-survey #main-content-container,
body.expres-full.node-type-expres-survey #main-and-sidebar-wrap {
  margin: 0;
  max-width: none;
  width: 100%;
}
body.expres-full.node-type-expres-survey #main-wrapper {
  width: 90%;
}

body.eccs #site-menu{display:none;}
#content-tabs ul.primary li a.active:link,
#content-tabs ul.primary li a.active:visited,
#content-tabs ul.primary li span strong {width:100%;}
#main-wrapper {min-height:450px !important;}
body.expres-clean.node-type-expres-survey #branding img {
  margin-top:14px;
}

@media all and (max-width: 600px) {
  .handsontable thead th .relative {padding:0 2px;}
  .handsontable thead th .relative .colHeader {font-size: 8px;font-family: Arial}
  .handsontable th, .handsontable td {font-size: 8px;font-family: Arial;padding:0 2px;text-align:left;}
  .htCore .edit-tags  {font-size:8px;font-weight:normal;}
}