/**
 * @file css/content.css
 **/
/**
 * @file: css/content.css
 */

 /* Misc */
 article img {
   height: auto;
}

/* General layout */
.page-title {
  font-size: 2rem;
} 
@media (max-width: 640px) {
 .page-title {
      font-size: 1.5rem;
  }
}
.main-container a {
  color: #002042;
}
.view a,
article a {
  text-decoration: underline;
  font-weight: bold;
}
article li {
  margin-bottom: 0.5rem;
}
.field--name-field-poster {
  margin-bottom: 1rem;
}
nav.tabs {
  margin: 0 0 1rem 0;
}

/* default tables */
table thead th {
  background-color: #214c8a;
  color: white;
}
table thead th > *:first-child {
  margin-top: 0;
}
table thead th > *:last-child {
  margin-bottom: 0;
}
table thead th a:link,
table thead th a:visited {
  color: white;
}
table th,
table td {
  padding: 0.25rem 0.5rem;
  border-color: black;
}
table tbody tr:nth-of-type(even) {
  background-color: #f6f2e9;
}
table {
  border-bottom: 0.5rem solid #a77f20;
}

/* form overrdies */
.form-actions .btn-danger,
.form-actions .btn-info {
  background-color: #002042;
  /*outline: 0.125rem solid black;*/
}
.form-actions button:active,
.form-actions button:hover,
.form-actions button:focus {
  text-decoration: underline !important;
  background-color: #c9302c !important;
  background-image: none !important;
  border-color: #ac2925 !important;
}
.control-label {
  margin-right: 1rem;
}
@media (min-width: 768px) {
  .view .form-inline .form-control {
      min-width: 20rem;
  }
  .view .form-item + .form-item {
      margin-left: 1rem;
  }
}
.form-item-field-years-active-value .form-control {
  min-width: auto !important;
  width: 7rem !important;
}
.main-container .btn-success.active.focus, 
.main-container .btn-success.active:focus, 
.main-container .btn-success.active:hover, 
.main-container .btn-success:active.focus, 
.main-container .btn-success:active:focus, 
.main-container .btn-success:active:hover, 
.main-container .open>.dropdown-toggle.btn-success.focus, 
.main-container .open>.dropdown-toggle.btn-success:focus, 
.main-container .open>.dropdown-toggle.btn-success:hover
{
  background-color: transparent;
}

/* aggregate lists */
.aggregate-list .article-teaser {
  margin-bottom: 1rem;
}
.aggregate-list .left {
  width: 10%;
  float: left;
  min-height: 1rem;
}
.aggregate-list .right {
  width: 90%;
  float: left;
  padding-left: 1rem;
}
.aggregate-list .h2 {
  margin-top: 0;
}
.aggregate-list.events.full .h2 {
  margin-top: 1rem;
}
.aggregate-list .field--type-datetime {
  font-weight: bold;
}

/* news article page */
.news-article.full .field--type-datetime {
  font-weight: bold;
  margin: 0 0 1rem;
}
@media (min-width: 640px) {
  .news-article.full .field--name-field-poster {
      float: right;
      margin: 0 0 1rem 1rem;
      max-width: 25%;
  }
}

/* event article page */
.event.full .field--type-datetime {
  font-weight: bold;
  margin: 0 0 1rem;  
}
.embedVideo {
  width: 40%;
  height: 21vw;    
  float: right;
  margin: 0 0 1rem 1rem;
}
.embedVideo iframe {
  width: 100%;
  height: 100%;
}
@media (max-width: 640px) {
  .embedVideo {
      float: none;
      width: 100%;
      height: 49vw;
      margin: 1rem 0;
  }
}

/* Search page / forms */
.main-container .js-form-submit {
  font-size: 1rem;
  height: 2rem;
  border: none;
  margin: 0 0.5rem;
}
.input-group .form-control:first-child, 
.input-group-addon:first-child, 
.input-group-btn:first-child>.btn, 
.input-group-btn:first-child>.btn-group>.btn, 
.input-group-btn:first-child>.dropdown-toggle, 
.input-group-btn:last-child>.btn-group:not(:last-child)>.btn, 
.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle) {
  height: 2rem;
}
.main-container .btn-primary { 
  background-color: #002042;
}
.no-results {
  margin-top: 2rem;
}

/* sitemap list */
.sitemap-list li {
  margin: 0.5rem 0;
}

/* end-of-page videos */
.end-videos {
  
}
.end-videos .embedVideo {
  float: none;
  width: 100%;
  max-width: 40rem;
  margin: 1rem 0 1rem;
  position: relative;
  height: auto;
}
.end-videos .embedVideo .ar {
  width: 100%;
}
.end-videos .embedVideo iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* File list */
.files-list {

}
.files-list--file {
  margin: 0.5rem 0;
}

/* General content fields */
.field {
  margin-bottom: 1rem;
}
.field .field--label {
  font-weight: bold;
}
.field .file-icon {
  display: none !important;
}
.field .file-link {
  margin-right: 1rem;
}

/* bio-page listings */
.bio-entry {

}
.bio-entry-anchor {
    text-decoration: none;
    display: block;
}
.view-id-fellows .views-row + .views-row {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 0.0625rem dotted black;
}
.view-id-fellows .bio-entry .bio-entry--left {
    float: left;
    margin: 0 1rem 0 0;
    min-height: 1rem;
    width: 7rem;
}
.bio-entry .bio-entry--right {
    float: left;
}
.bio-entry .bio-entry--right h2 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.25rem;
}
.bio-entry .bio-entry--right div .field {
    /*display: inline-block;*/
    margin-bottom: 0;
}
.bio-entry .bio-entry--right .bio-entry--date {
    display: block;
}

/* bio page */
.page-node-type-bio-page .field--name-field-current-fellows-photos {
  max-width: 20rem;
}

/* success story page */
.page-node-type-success-story .field--name-field-current-fellows-photos {
  max-width: 20rem;
}


/* pagination */
.main-container .pagination>.active>a, 
.main-container .pagination>.active>a:focus, 
.main-container .pagination>.active>a:hover, 
.main-container .pagination>.active>span, 
.main-container .pagination>.active>span:focus, 
.main-container .pagination>.active>span:hover {
  background-color: #002042;
  border-color: #002042;
}
.main-container .pagination>li>span {
  color: #002042;
}


/* Comment forms / forms */
.field--name-body .filter-wrapper,
.field--name-comment-body .filter-wrapper {
  display: none;
}
.comment-comment-forum-delete-form button,
.comment-comment-forum-delete-form input {
  margin-top: 1rem !important;
}
label.form-required:after {
  content: "*";
  display: inline;
  color: red;
}
.glyphicon {
  display: none !important;
}

/* Modal */
.modal-backdrop {
  z-index: 20001 !important;
}
.modal {
  z-index: 20002 !important;
}


/* Badges */
.badges {
  display: inline-block;
  position: relative;
  width: 2.35rem;
  height: 2.4rem;
  vertical-align: top;
  background-size: contain;
  background-repeat: no-repeat;
}
.badges span {
  position: absolute;
  left: 0%;
  right: 0%;
  text-align: center;
  top: 30%;
  font-size: 0.75rem;
  padding: 0.0625rem 0.125rem;
  color: white;
}
.badges.badge-month-topics {
  background-image: url('../images/icons/badge-star-comments.svg');
}
.badges.badge-month-topics span { top: 24%; }
.badges.badge-month-comments {
  background-image: url('../images/icons/badge-talk-comments.svg');
}
.badges.badge-month-comments span { top: 18%; }
.badges.badge-month-resources {
  background-image: url('../images/icons/badge-book-resources.svg');
}
.badges.badge-month-resources span { top: 18%; }

/* Forum Search */
.misc-mod-forum-search {
  margin-top: 1.5rem;
}
.misc-mod-forum-search .form-type-textfield {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.5rem 0 0;
}
.misc-mod-forum-search label {
  display: inline-block;
  vertical-align: middle;
}
.misc-mod-forum-search input {
  display: inline-block;
  vertical-align: middle;
  max-width: 15rem;
}
.misc-mod-forum-search .button, 
.misc-mod-forum-search .form-submit {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.5rem 0 0;
  outline: none;
}

/* Newsletter social media panel */
.social-media-inline {
  background-color:#821416;
  padding: 0.5rem;
  margin: 1rem 0;
}
.social-media-inline a {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35rem;
}
.social-media-inline img {
  display: block;
  width: 2rem;
}


/* Resources overview */
.resources-overview .form-item label {
  display: block;
}
.resources-overview .form-inline .form-group {
  vertical-align: bottom;
}
.resources-overview .view-header,
.resources-overview .view-filters {
  width: 50%;
}
.resources-overview .view-header {
  float: right;
  clear: right;
  width: 30%;
  text-align: right;
}
.resources-overview .view-filters {
  float: left;
  clear: left;
  width: 70%;
}
.view.resources-overview  .form-inline .form-control {
  min-width: 0;
}
.resources-overview .view-content {
  clear: both;
}

/* Table / sortable columns */
.view-content .table th a {
  text-decoration: none;
  white-space: nowrap;
}
.table .nowrap {
  white-space: nowrap;
}
.table a .col-label {
  text-decoration: underline;
}
.table .sort-indicator::after {
  content: "▲";
}
.table .sort-indicator.asc::after {
  content: "▼";
}
.main-container .btn-danger:hover {
  background-color: #002042;
  text-decoration: underline;
}
.main-container .view .js-form-submit {
  margin-left: 1rem;
  margin-right: 0;
}

/* Fellows forms */
.view-id-fellows.combined .views-exposed-form .form-item legend,
.view-id-fellows.combined .views-exposed-form .form-item .control-label {
    min-width: 4rem;
    text-align: right;
    display: inline-block;
    font-size: 1rem;
    border: none;
    font-weight: bold;
    width: auto;
}
.view-id-fellows.combined .views-exposed-form .form-item {
    display: block;
    margin-left: 0;
}
.view-id-fellows.combined .views-exposed-form .form-actions,
.view-id-fellows.combined .views-exposed-form .form-item + .form-item {
    margin-top: 1rem;    
}
.main-container .view.view-id-fellows.combined .js-form-submit {
    margin: 0 1rem 0 0;
    line-height: 1rem;
}
.view-id-fellows.combined .views-exposed-form .form-item .fieldset-wrapper {
    display: block;
    float: left;
    margin-left: 1rem;
}
.view-id-fellows.combined .views-exposed-form .form-item .fieldset-wrapper .control-label {
    font-weight: normal;
}
.view-id-fellows.combined .views-exposed-form .form-item legend {
    display: block;
    float: left;
    clear: left;
}
.view-id-fellows.combined .form-inline .checkbox input[type=checkbox] {
  margin-right: 0.5rem;
}
@media (min-width: 768px) {
    .form-inline .select-wrapper {
        display: inline-block;
        width: auto;
        vertical-align: middle;
    }
}
@media (max-width: 767px) {
    .view-id-fellows.combined .views-exposed-form .form-item legend {
        text-align: left;
        float: none;
        margin-bottom: 0;
    }
    .view-id-fellows.combined .views-exposed-form .form-item .control-label {
        text-align: left;
    }
}