/* Info
 *------
 *
 * Fixing common EPFL styles for the Jahia system.
 *
 * @author Julien Ramboz (http://people.epfl.ch/julien.ramboz)
 * @author Maciej Macowicz  (http://people.epfl.ch/maciej.macowicz)
 * @author Francis Borras (http://people.epfl.ch/francis.borras)
 * @version 1.17
 *
 *----------------------------------------------------------------------------*/
/* Changelog
 *-----------
 *
 *		v1.17 Fixed box-links not cleared (see INC0073003)
 *      v1.16 Small fix for actu inclusions on 4 cols homepage
 *      v1.15 Styles for memento studying
 *      v1.14 Styles for social widget
 *      v1.13 Styles for gridBoxes
 *      v1.12 Added styles for study plans inclusions
 *      v1.11 Updated memento for right sidebar
 *      v1.10 Removed fileBox specific styles
 *      v1.9 Fixed top margins for buttons on mementobox
 *      v1.8 Added styles for canceld events
 *      v1.7 Fix overlapping of buttons on box links
 *      v1.6 Fix width for snippets box in right column
 *      v1.5 Removed unnecessary bottom line for portal homepages
 *      v1.4 Added style for the header filler
 *      v1.3.2 Fixed breadcrumbs maximum size
 *      v1.3.1 Fixed links indicator on notifications
 *      v1.3 Added styles for new faculty 2012 homepage, and some jahia boxes
 *      v1.2 Switched to LESS format and added @group tags and TOC
 *      v1.1 Added styles for single news layout for 'discovery'-type home-pages
 *      v1.0 Initial release
 *
 *----------------------------------------------------------------------------*/
/* Table of contents
 *-------------------
 *
 *      0. Constants
 *      1. Specific styles for Jahia boxes
 *          1.1. EPFLTV channel box
 *          1.2. EPFLTV video box
 *          1.3. Map box
 *          1.4. Memento box
 *          1.5. RSS box
 *          1.6. Snippets box
 *          1.7. News box
 *          1.8. FAQ box
 *          1.9. People list box
 *          1.10. Publications box
 *          1.11. Files box
 *          1.12. HTML box
 *      2. Layout fixes
 *          2.1. EPFL styles
 *          2.2. Jahia styles
 *      3. Helper styles
 *          3.1. General styles
 *          3.2. Sortable table styles
 *          3.3. Grid styles
 *      4. Temporary styles
 *          4.1. Faculty homepage memento styles
 *          4.2. General styles
 *          4.3. Gridbox styles
 *          4.4. Social widget styles.
 *          4.5. Memento studying.
 *          4.6. Main navigation aux styles
 *
 *
 *----------------------------------------------------------------------------*/
/* @group 0. Constants
 **********************************************************************************************************************/
/* @end */
/* @group 1. Specific styles for Jahia boxes
 **********************************************************************************************************************/
/* @group 1.1. EPFLTV channel box
     -------------------------------------------------------------------------*/
.epflTvChannelBox .epfl-tv-channel a {
  position: relative;
}
.epflTvChannelBox .epfl-tv-channel .news-list {
  margin-bottom: 0;
  width: 100%;
}
.epflTvChannelBox .epfl-tv-channel .news-text {
  width: auto;
}
.epflTvChannelBox .epfl-tv-channel .news-video-overlay {
  left: auto;
}
/* @end */
/* @group 1.2. EPFLTV video box
     -------------------------------------------------------------------------*/
.epflTvVideoBox .epfl-tv-video {
  border: 1px solid #454545;
  margin: 0 auto;
  max-width: 650px;
}
/* @end */
/* @group 1.3. Map box
     -------------------------------------------------------------------------*/
.mapBox .epfl-map {
  border: 1px solid gray;
  margin: 0 auto !important;
  max-width: 650px;
}
.mapBox .epfl-map img {
  margin: 0;
}
/* @end */
/* @group 1.4. Memento box
     -------------------------------------------------------------------------*/
.mementoBox .memento {
  list-style: none;
  margin: 5px 0 0 0;
  padding: 0;
}
.mementoBox .memento li {
  border-bottom: 1px dotted #000;
  clear: both;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  *zoom: 1;
}
.mementoBox .memento li:before,
.mementoBox .memento li:after {
  content: "";
  display: table;
}
.mementoBox .memento li:after {
  clear: both;
}
.mementoBox .memento .event {
  position: relative;
}
.mementoBox .memento .left {
  margin-right: 4px;
  width: 160px;
}
.mementoBox .memento .right {
  float: left;
  margin: 0;
  width: 488px;
}
.mementoBox .memento .date {
  clear: left;
  float: left;
  height: 104px;
  margin: 0 4px 0 0;
  padding: 4px;
  text-align: center;
  width: 36px;
}
.mementoBox .memento .canceled .date {
  background-color: #999C98;
}
.mementoBox .memento .from,
.mementoBox .memento .to {
  display: block;
  font: 26px/28px Impact, "Arial Black", "DejaVu Sans", Arial, Helvetica, sans-serif;
  letter-spacing: 2px;
}
.mementoBox .memento .to {
  border-top: 4px solid #454545;
  margin-top: 2px;
  padding-top: 2px;
}
.mementoBox .memento .local-color .to {
  border-color: #fff;
}
.mementoBox .memento .month {
  display: block;
  font: normal 18px/20px Impact, "Arial Black", "DejaVu Sans", Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mementoBox .memento .start-time,
.mementoBox .memento .end-time {
  display: block;
  font: normal 10px/12px Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
.mementoBox .memento .visual {
  float: left;
  height: 112px;
  width: 112px;
  margin: 0;
}
.mementoBox .memento .canceled .visual {
  background-color: #696F6E;
}
.mementoBox .memento .summary {
  float: left;
  height: 112px;
  margin-right: 4px;
  overflow: hidden;
  width: 324px;
}
.mementoBox .memento .summary h4 {
  font-size: 13px;
  margin: 0;
}
.mementoBox .memento .summary h4 a {
  background-position: 0 14px;
}
.mementoBox .memento .hour {
  color: black;
  font: italic bold 12px Georgia, 'Times New Roman', Times, serif;
  padding-right: 4px;
}
.mementoBox .memento .location {
  color: black;
  font: italic 12px Georgia, 'Times New Roman', Times, serif;
}
.mementoBox .memento .name {
  line-height: 16px;
}
.mementoBox .memento .people {
  float: left;
  max-height: 110px;
  overflow: hidden;
  width: 160px;
}
.mementoBox .memento .ribbon {
  background: url(//memento.epfl.ch/public/img/ribbons.png);
  position: absolute;
  height: 112px;
  left: 0;
  top: 0;
  width: 125px;
}
.mementoBox .memento .ribbon.canceled {
  background-position: 250px 125px;
  left: 48px;
}
.mementoBox .memento .ribbon.canceled:lang(fr) {
  background-position: 250px 0;
}
.mementoBox .box-links {
  margin-top: 4px;
}
.unit-col .mementoBox .memento {
  max-height: 336px;
  overflow: hidden;
}
.unit-col .mementoBox .memento li {
  border: none;
  padding: 6px 0 6px 38px;
}
.unit-col .mementoBox .memento .date {
  float: left;
  height: auto;
  margin-left: -38px;
  padding: 0;
  width: 34px;
}
.unit-col .mementoBox .memento .right {
  width: auto;
}
.unit-col .mementoBox .memento .to {
  border-color: #fff;
}
.unit-col .mementoBox .memento .summary {
  width: auto;
  height: auto;
  max-height: 90px;
}
.unit-col .mementoBox .memento h4 {
  font-weight: normal;
}
.unit-col .mementoBox .memento h4 a:hover {
  color: #fff;
}
.right-col .mementoBox .memento {
  margin-top: -10px;
}
.right-col .mementoBox .memento .date {
  height: auto;
}
.right-col .mementoBox .memento .right {
  width: 160px;
}
.right-col .mementoBox .memento .summary {
  float: none;
  width: auto;
  height: auto;
}
.right-col .mementoBox .memento .summary a {
  background: none;
}
.right-col .mementoBox .memento .export {
  margin-right: 4px;
}
.right-col .mementoBox .memento .people {
  float: none;
  margin-left: 48px;
  width: auto;
}
/* @end */
/* @group 1.5. RSS box
     -------------------------------------------------------------------------*/
.rssBox .button.feed {
  margin-right: 0;
}
/* @end */
/* @group 1.6. Snippets box
     -------------------------------------------------------------------------*/
.snippetsBox .zoom {
  position: relative;
  z-index: 9999;
}
.snippetsBox .zoom img {
  border: 5px solid #fff;
  margin: 0;
  border-radius: 3px;
}
.snippetsBox .close {
  background: #fff;
  padding: 4px 3px 3px 4px;
  position: absolute;
  right: -26px;
  top: -26px;
  border-radius: 15px;
}
.snippetsBox .close .icon {
  margin: 0;
}
.snippetsBox .snippet-img {
  cursor: pointer;
}
.right-col .snippetsBox .simple-layout .news-text {
  width: 160px;
}
/* @end */
/* @group 1.7. News box
     -------------------------------------------------------------------------*/
.actuBox .box-links .button {
  position: relative;
  top: -40px;
}
.box.actuBox .box-links .button {
  top: 0;
}
.right-col .text-news li {
  border-bottom: 1px dotted black;
}
/* @end */
/* @group 1.8. FAQ box
     -------------------------------------------------------------------------*/
.faqBox .faq-item {
  border-bottom: 1px dotted black;
  padding-bottom: 12px;
}
/* @end */
/* @group 1.9. People list box
     -------------------------------------------------------------------------*/
.peopleListBox .photo_box:nth-of-type(4n+1) {
  clear: left;
}
/* @end */
/* @group 1.10. Publications box
     -------------------------------------------------------------------------*/
.infoscienceBox .box-links .button {
  margin-top: 4px;
}
/* @end */
/* @group 1.11. Files box
     -------------------------------------------------------------------------*/
/* @end */
/* @group 1.12. HTML box
     -------------------------------------------------------------------------*/
.htmlBox .content {
  border-top: 0;
}
.htmlBox .content a img {
  margin: 0;
}
/* @end */
/* @end */
/* @group 2. Layout fixes
 **********************************************************************************************************************/
/* @group 2.1. EPFL styles
     -------------------------------------------------------------------------*/
/* styles for the search autocompleter */
.ac-list {
  background: #fff;
  border: 1px solid #CFD0CA;
  box-shadow: 1px 1px 8px 0px #000;
  min-width: 283px !important;
  z-index: 3000;
}
.ac-list ul {
  list-style: none;
  margin: 12px 0 4px 0;
}
.ac-list li {
  cursor: pointer;
  padding: 0 4px;
}
.ac-selected {
  background: #CFD0CA;
}
.ac-more {
  float: right;
  font: italic bold 12px/16px Georgia, 'Times New Roman', Times, serif;
}
.ac-more .ac-selected {
  background: none;
}
#actualContent {
  background: url('../img/server/my-server.png') no-repeat;
}
#header.filler .main-link {
  background-image: none !important;
}
h1 {
  padding-top: 53px;
  padding-bottom: 4px;
}
#main-content h1.visuallyhidden {
  clip: initial;
  height: 55px;
  position: relative;
  visibility: hidden;
}
#main-content h1.visuallyhidden ~ #breadcrumbs,
#main-content h1.visuallyhidden ~ #languages {
  top: -53px;
}
#breadcrumbs,
#languages {
  overflow: visible;
  padding: 0;
  position: relative;
  top: -87px;
}
#breadcrumbs {
  max-width: 816px;
}
#breadcrumbs li {
  padding-right: 0;
}
#breadcrumbs a {
  padding-right: 12px;
}
#main-navigation {
  min-height: 24px;
}
.topnav > .hidden {
  display: none;
}
#main-navigation .topnav li.homeLink a {
  background: url(../img/icon_home_white.png) no-repeat 6px 6px !important;
  width: 12px;
  height: 18px;
  padding: 4px 8px 2px 4px;
}
#main-navigation .topnav li.homeLink a span {
  display: none;
}
.dropdown .menu {
  width: 338px;
}
.box,
.fullbox {
  position: relative;
}
/* styles for news inclusion on "School homepage" */
.home-list-layout li {
  float: left;
  height: 90px;
  width: 324px;
}
.home-list-layout li.heading-news {
  height: 278px;
}
.home-list-layout li.heading-news img.news-img {
  margin: 0;
}
.home-list-layout li.heading-news .news-text {
  height: 92px;
  margin-top: 1px;
  width: 324px;
}
.home-list-layout img.news-img {
  height: 90px;
  margin-right: 6px;
}
.home-list-layout .news-text {
  border-bottom: 1px solid #000;
  float: left;
  height: 89px;
  overflow: hidden;
  width: 158px;
}
/* styles for single-news (std styles bring the ul.news-list too large, hiding access to first column */
div.single-news .news-text {
  height: 96px;
  width: auto !important;
  border-bottom: none;
}
div.single-news ul.news-list,
div.single-news ul.list-layout {
  width: 324px;
  margin-top: 0;
}
.homepage-content .single-news {
  border-bottom: none;
}
/* styles for directory box, should move to "official" epfl.css */
.content ol.people-list,
.content ul.people-list {
  display: block;
  margin: 5px 5px 0 0;
}
ol.people-list .name {
  width: 235px;
}
.unit-col .local-color li {
  list-style-image: url("http://www.epfl.ch/img/dot-white.png");
}
.right-col {
  overflow: hidden;
}
#footer li {
  margin: 0;
}
#footer li:before {
  content: "|";
  margin-right: 4px;
}
#footer li:first-child:before,
#footer li.login:before {
  display: none;
}
.box-links {
  *zoom: 1;
}
.box-links:before {
  content: "";
  display: table;
}
.box-links:after {
  clear: both;
  content: "";
  display: table;
}
/* @end */
/* @group 2.2. Jahia styles
     -------------------------------------------------------------------------*/
/* hide the jahia toolbar for good */
.x-btn {
  display: none;
}
.x-menu a {
  background-image: none;
}
#notifications .notification a {
  background-position: 0 11px;
}
/* @end */
/* @end */
/* @group 3. Helper styles
 **********************************************************************************************************************/
/* @group 3.1. General styles
     -------------------------------------------------------------------------*/
img.right {
  padding-left: 10px;
}
img.left {
  padding-right: 10px;
}
.topright {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}
.relative {
  position: relative;
}
.clear {
  overflow: hidden;
}
.modal {
  padding-right: 8px !important;
  text-align: left;
  width: 350px;
  opacity: .9;
}
/* @end */
/* @group 3.2. Sortable table styles
     -------------------------------------------------------------------------*/
table.sortable thead th {
  cursor: pointer;
}
table.sortable thead th:after {
  content: " ";
  background: url('/templates/epfl/img/sorting/sort.png') no-repeat center center;
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
}
table.sortable .headerSortUp:after {
  background-image: url('/templates/epfl/img/sorting/down.png');
}
table.sortable .headerSortDown:after {
  background-image: url('/templates/epfl/img/sorting/up.png');
}
/* @end */
/* @group 3.3. Grid styles
     -------------------------------------------------------------------------*/
.g-cell {
  display: block;
  float: left;
  overflow: hidden;
}
.g-cell div {
  padding: 2px 8px;
}
/* column */
.g-col-1 {
  left: 0px;
}
.g-col-2 {
  left: 164px;
}
.g-col-3 {
  left: 328px;
}
.g-col-4 {
  left: 492px;
}
.g-col-5 {
  left: 656px;
}
.g-col-6 {
  left: 820px;
}
/* row */
.g-row-1 {
  top: 0px;
}
.g-row-2 {
  top: 94px;
}
.g-row-3 {
  top: 188px;
}
.g-row-4 {
  top: 282px;
}
.g-row-5 {
  top: 376px;
}
/* width */
.g-width-1 {
  width: 160px;
}
.g-width-2 {
  width: 324px;
}
.g-width-3 {
  width: 488px;
}
.g-width-4 {
  width: 652px;
}
.g-width-5 {
  width: 816px;
}
.g-width-6 {
  width: 980px;
}
/* height */
.g-height-1 {
  height: 90px;
}
.g-height-2 {
  height: 184px;
}
.g-height-3 {
  height: 278px;
}
.g-height-4 {
  height: 372px;
}
.g-height-5 {
  height: 466px;
}
/* @end */
/* @end */
/* @group 4. Temporary styles (to be included into epfl.css)
 **********************************************************************************************************************/
/* @group 4.1. Faculty homepage styles
     -------------------------------------------------------------------------*/
.home-navpanel {
  position: relative;
}
.homepage-content .home-header .home-navpanel .unit-col .unit-1-cells,
.homepage-content .home-header .home-navpanel .unit-col .unit-3-cells,
.homepage-content .home-header .home-navpanel .unit-col .unit-4-cells {
  padding: 2px 8px;
}
.unit-1-cells {
  height: 86px;
  padding: 2px 8px;
  margin: 0 0 4px 0;
  overflow: hidden;
}
.unit-4-cells {
  height: 368px;
  padding: 2px 8px;
  margin: 0 0 4px 0;
  overflow: hidden;
}
.unit-3-cells h3,
.unit-4-cells h3 {
  font: bold 14px/16px Arial, Helvetica, sans-serif;
}
.home-banner {
  float: left;
  margin-right: 4px;
  margin-bottom: 44px;
  position: relative;
}
.home-banner .keyVisual > a {
  background: none;
}
.home-banner img {
  margin: 0;
}
.homepage-content .box p {
  margin-right: 0;
}
/* @end */
/* @group 4.2. General styles
     -------------------------------------------------------------------------*/
.homepage-content .home-header .home-navpanel .unit-col div {
  padding: 0;
}
/* styles for news inclusions in .box elements */
.box .list-layout,
.box .news-list {
  border: none;
  margin-bottom: 0;
  padding: 0;
  width: auto;
}
.content .box .list-layout li,
.content .box .news-list li {
  margin: 0 0 4px 0;
}
.content .box .list-layout .news-text {
  width: 150px;
}
.unit-col .box {
  margin: 0;
  width: auto;
}
.unit-col .box-links .button .icon {
  display: none;
}
.unit-col .box-links .button .label {
  background-image: url('http://www.epfl.ch/img/underline-white.gif');
  font: normal 12px/16px Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
.clearfix {
  *zoom: 1;
}
.clearfix:before {
  content: "";
  display: table;
}
.clearfix:after {
  clear: both;
  content: "";
  display: table;
}
.migration_info {
  display: none;
}
/* @end */
/* @group 4.3. Gridbox styles (portals etc)
      -------------------------------------------------------------------------*/
.gridBox .grid {
  float: left;
  width: 127px;
  height: 146px;
  border-right: 3px solid white;
  position: relative;
  margin-bottom: 4px;
}
.gridBox .grid.large {
  width: 257px;
}
.gridBox .grid.empty .h3 {
  display: none;
}
.gridBox .grid.empty .bg {
  background: none !important;
}
.gridBox .bg {
  opacity: .6;
  filter: alpha(opacity=60);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.25s ease-in-out;
  -moz-transition: opacity 0.25s ease-in-out;
  -webkit-transition: opacity 0.25s ease-in-out;
}
.gridBox .grid:hover .bg {
  opacity: 1;
  filter: alpha(opacity=100);
}
.gridBox .grid h3 {
  margin: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #eff1ec;
  height: 76px;
}
.gridBox .grid.large h3 {
  height: 46px;
}
.gridBox .grid h3 a {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  padding: 5px;
  text-decoration: none;
  background-image: none;
  display: block;
  font-size: small;
}
.gridBox .containerListWrap {
  float: left;
}
.gridBox .containerListWrap .notification.button.list {
  height: 16px;
}
/* @end */
/* @group 4.4. Social widget styles
     -------------------------------------------------------------------------*/
.icon-facebook,
.icon-twitter,
.icon-linkedin,
.icon-googleplus {
  cursor: pointer;
  width: 24px;
  height: 24px;
}
div.socialshare {
  float: left;
}
div.socialshare span.label {
  position: relative;
  top: 3px;
  padding-right: 10px;
  cursor: default;
}
/* @end */
/* @group 4.5. Memento studying
     -------------------------------------------------------------------------*/
.studying {
  position: relative;
  height: 372px;
  width: 652px;
  clear: both;
}
.studying img {
  height: 372px;
  width: 652px;
  margin: 0;
}
.studying a {
  background: none;
  color: white;
  font-weight: bold;
}
.studying-title {
  position: absolute;
  width: 300px;
  bottom: 20px;
  left: 80px;
  color: white;
  font-weight: bold;
}
.studying-calendar-image {
  position: absolute;
  bottom: 20px;
  left: 400px;
}
.studying-calendar-image img {
  height: 49px;
  width: 49px;
  margin: 0;
}
.studying-calendar-text {
  position: absolute;
  width: 60px;
  bottom: 20px;
  left: 470px;
  color: white;
  font-weight: bold;
}
.memento li .studying .date {
  position: absolute;
  width: 24px;
  font: normal 25px/19px Impact;
  letter-spacing: 1px;
  bottom: 15px;
  left: 20px;
  background: transparent;
}
.memento li .studying .date_ac {
  position: absolute;
  width: 24px;
  font: normal 25px/19px Impact;
  letter-spacing: 1px;
  bottom: 19px;
  left: 20px;
  background: transparent;
}
.memento li.studying {
  height: 372px;
}
/* @end */
/* @group 4.6. Main navigation aux styles
     -------------------------------------------------------------------------*/
li.level1,
li.level1 a {
  color: #fff !important;
  background-color: #000;
}
li.level1 a:hover {
  color: #000 !important;
}
/* @end */
/* @end */
