/**
 * Styling for specific node types and content fields.
 *
 * Selectors should be structured for specific content types, content fields,
 * and page elements attached to specific content types.
 *
 * E.g.:
 *
 * - body.node-type-like-you-patient-story .field-name-field-like-you-story-sections {}
 * - body.node-type-clinical-trial #clinical-trial-spotlight-webform {}
 * - Etc.
 *
 */

/**
 * NRD: Fields for clinical trials and drugs.
 */
body.node-type-clinical-trial #region-leader-slideshow h1 .promoted-content,
body.node-type-clinical-trial #region-leader-slideshow h1 .spotlight-content,
body.node-type-clinical-trial #region-leader-slideshow h1 .crc-content,
body.node-type-drug #region-leader-slideshow h1 .promoted-content,
body.node-type-drug #region-leader-slideshow h1 .spotlight-content,
body.node-type-drug #region-leader-slideshow h1 .crc-content {
  font-size: 0.33em;
  background: #faff8c;
  color: #383a00;
  border: none;
  -moz-box-shadow: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  border-radius: 4px;
  padding: 4px;
}

body.node-type-clinical-trial #clinical-trial-spotlight-webform {
  background-color: #4b0003; /* NRD: Use color from blood-cell background. */
  color: #fff;
  padding: 20px 40px 40px 40px;
}
body.node-type-clinical-trial #clinical-trial-spotlight-webform a {
  color: #ddd;
}
body.node-type-clinical-trial #clinical-trial-spotlight-webform .h3,
body.node-type-clinical-trial #clinical-trial-spotlight-webform h3,
body.node-type-clinical-trial #clinical-trial-spotlight-webform p,
body.node-type-clinical-trial #clinical-trial-spotlight-webform a {
  color: #fff !important;
}
  font-color: #fff;
body.node-type-clinical-trial #clinical-trial-spotlight-webform .webform-component label {
  color: #f0adad;
  font-size: 11px;
  margin: 0 0 5px 0;
}

body.node-type-clinical-trial #clinical-trial-spotlight-webform .webform-component--disclaimer {
}
body.node-type-clinical-trial #clinical-trial-spotlight-webform .webform-component--disclaimer h3 {
  font-size: 22px;
}
body.node-type-clinical-trial #clinical-trial-spotlight-webform .webform-component--disclaimer p {
  font-family: 'Source Sans Pro',sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 17px;
}

body.node-type-clinical-trial #clinical-trial-spotlight-webform .form-actions button {
  /* Override other button styles */
  color: #fff;
  box-shadow: none;
  font-size: 20px;
  
  /* Add icon */
  background-image: url(../img/icons/user-check-mark-white.svg);
  background-repeat: no-repeat;
  /* background-attachment: fixed; */
  background-position: 3px 3px;
  background-color: #575858;
  background-size: 45px 45px;

  padding: 10px 10px 10px 55px;
}

body.node-type-clinical-trial #clinical-trial-spotlight-webform .form-actions button:hover {
  opacity: 0.9;
}

body.node-type-clinical-trial article.node {
}
body.node-type-clinical-trial article.node .field-label {
  font-family: 'trend_sans_oneregular';
  font-weight: 700;
  font-size: 14px;
  line-height: 15px;
  padding-bottom: 4px;
  color: #8c1924;
}
body.node-type-clinical-trial article.node .field-items {
  padding:0 2% 0 2%; /* .tuck-2 */
  border-bottom: 1px solid #fafafa;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
}

/* Spotlight clinical trials */
body.clinical-trial-spotlight-microsite ol.breadcrumb, 
body.clinical-trial-spotlight-microsite #content-leader-page-intro,
body.clinical-trial-spotlight-microsite h1.page-header {
  display: none;
}

/**
 * NRD: Fields for research articles.
 */
body.node-type-research-article .field-name-field-pmid .field-item a {
  border: 1px solid #eee;
  padding: 2px 6px;
  background-color: #eee;
  border-radius: 4px;
}

body.node-type-research-article .field-name-body .field-item {
  margin: 1em 0 0 0;
}

/**
 * NRD: "Lead Photo" fields when displayed as a larger thumbnail (e.g. "responsive_262" for example)
 */
body.node-type-article .field-name-field-lead-photo,
body.node-type-patient-chronicle .field-name-field-lead-photo,
body.node-type-community-event .field-name-field-lead-photo {
  text-align: right;
  margin-left: 1em;
  margin-bottom: 1em;
  padding: 5px;
  border: 1px solid #fafafa;
}

/**
 * NRD: "Page" nodes with attached files displayed as a table.
 */
body.node-type-page .field-type-file .field-item table thead {
  display: none;
}

/**
 * NRD: Geocoded fields
 */
.region-content .field-type-location .vcard .map-link {
  font-style: italic;
  margin-top: 1em;
}
.region-content .field-type-location .location-hidden {
  display: none;
}

/**
 * NRD: Fields for "Like You" Patient Stories
 */
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-items .field-item {
  margin-top: 0;
  margin-bottom: 0;
}
body.node-type-like-you-patient-story .field-like-you-story-sections .field-collection-container {
  margin-bottom: 0;
  border-bottom: none;
}
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-items .field-item .field-collection-view {
  border-bottom: 0;
  margin: 0;
  padding: 0;
}
body.node-type-like-you-patient-story .field-collection-item--field-like-you-story-sections .container {
  background-color: #fff;
}

body.node-type-like-you-patient-story .story-section-intro {
  margin-top: 2em;
  margin-bottom: 2em;
}
body.node-type-like-you-patient-story .field-collection-item--field-like-you-story-sections {
}
body.node-type-like-you-patient-story .field-collection-item--field-like-you-story-sections .row-1 {
  margin-bottom: 2em;
}
body.node-type-like-you-patient-story .field-collection-item--field-like-you-story-sections .row-2 {
  margin-bottom: 2em;
}
body.node-type-like-you-patient-story .field-collection-item--field-like-you-story-sections .row-3 {
  margin-bottom: 2em;
  text-align: right;
}

body.node-type-like-you-patient-story .story-section-intro .linked-lead-photo-wrapper { /* Wrapper for linked lead photo. */
}
body.node-type-like-you-patient-story .story-section-intro .linked-lead-photo-wrapper .play-video-button-wrapper {
  position : absolute;
  display:block;
  z-index:100;
}
/* Re-center play button on mobile devices */
@media handheld, only screen and (max-width: 2200px) {
  body.node-type-like-you-patient-story .story-section-intro .linked-lead-photo-wrapper .play-video-button-wrapper {
    top: 30%; 
    left: 40%;
    /* border-bottom: 2px solid #888; */
  }
}
@media handheld, only screen and (max-width: 1200px) {
  body.node-type-like-you-patient-story .story-section-intro .linked-lead-photo-wrapper .play-video-button-wrapper {
    top: 34%;
    left: 44%;
    /* border-bottom: 2px solid #fff; */
  }
}
@media handheld, only screen and (max-width: 1024px) {
  body.node-type-like-you-patient-story .story-section-intro .linked-lead-photo-wrapper .play-video-button-wrapper {
    top: 30%; 
    left: 42%;
    /* border-bottom: 2px solid #f0f; */
  }
}
@media handheld, only screen and (max-width: 767px) {
  body.node-type-like-you-patient-story .story-section-intro .linked-lead-photo-wrapper .play-video-button-wrapper {
    top: 38%; 
    left: 46%;
    /* border-bottom: 2px solid #0ff; */
  }
}
@media handheld, only screen and (max-width: 600px) {
  body.node-type-like-you-patient-story .story-section-intro .linked-lead-photo-wrapper .play-video-button-wrapper {
    top: 32%; 
    left: 44%;
    /* border-bottom: 2px solid #ff0; */
  }
}
@media handheld, only screen and (max-width: 500px) {
  body.node-type-like-you-patient-story .story-section-intro .linked-lead-photo-wrapper .play-video-button-wrapper {
    top: 24%; 
    left: 36%;
    /* border-bottom: 2px solid #f00; */
  }
}
    

body.node-type-like-you-patient-story .story-section-intro .linked-lead-photo-wrapper .play-video-button-wrapper img {
  opacity: 0.55;
}
body.node-type-like-you-patient-story .story-section-intro .linked-lead-photo-wrapper .play-video-button-wrapper img:hover {
  opacity: 0.85;
}

body.node-type-like-you-patient-story .story-section-intro .field-name-field-lead-photo { /* Container for all lead photos. */
  /* 
  border-left: 12px solid #e2231a;
  margin-left: -12px;
  */
}
body.node-type-like-you-patient-story .story-section-intro .field-name-field-lead-photo img.img-thumbnail { /* Actual lead photo img. */
  padding: 0 !important;
}

body.node-type-like-you-patient-story .story-section-intro .header-like-you { /* "I'm Like You" */
  font-family: 'trend_sans_oneregular';
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  color: #666462;
}
body.node-type-like-you-patient-story .story-section-intro h1 { /* Patient Name */
  font-weight: 300;
}
body.node-type-like-you-patient-story .story-section-intro .field-name-field-intro { /* Patient Intro Pull Quote */
  font-family: 'MuseoSlab-100';
  opacity: 0.8;
}
body.node-type-like-you-patient-story .story-section-intro .field-name-body { /* Patient Intro Text */
  margin-top: 1em;
}

body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-name-field-lead-photo { /* Photo container */
}

body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-name-field-lead-photo img.img-thumbnail { /* Photo img */
  padding: 0 !important;
}
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .section-type-wrapper { /* Wrapper for section type icon and label. */
  margin-top: 1.5em;
}
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections img.icon-section-type { /* Section Type Icon */
  height: 65px;
  display: inline-block;
  margin-top: -1em;
  margin-right: 1em;
}
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections h2.label-section-type { /* Section Type Label */
  font-weight: 300;
  display: inline-block;
}
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-name-field-intro { /* Section Pull Quote */
  font-family: 'MuseoSlab-100';
  opacity: 0.66;
}
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-name-field-section-body { /* Section Body */
}
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections h3.label-section-links { /* Section link header */
  font-family: 'trend_sans_oneregular';
  font-size: 14px;
  text-transform: uppercase;
}
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-name-field-section-links .field-items .field-item {
  display: inline-block;
  padding-left: 1em;
}
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-name-field-section-links .field-items .field-item a:before {
   content: "\00BB  ";
}
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-story-section--disease {
  border-top: 4px solid rgb(122,164,185);

  background-image: linear-gradient(left, transparent 300px,rgb(122,164,185) 300px, rgb(122,164,185) 100%);
}
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-story-section--disease .field-name-field-lead-photo img.img-thumbnail {
  border-left: 300px solid rgb(122,164,185);
}

body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-story-section--treatment {
  border-top: 4px solid rgb(44,80,91);
  background-image: linear-gradient(left, transparent 300px,rgb(44,80,91) 300px, rgb(44,80,91) 100%);
}
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-story-section--treatment .field-name-field-lead-photo img.img-thumbnail {
  border-left: 300px solid rgb(44,80,91);
}

body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-story-section--education {
  border-top: 4px solid rgb(118,20,30);

  background-image: linear-gradient(left, transparent 300px,rgb(118,20,30) 300px, rgb(118,20,30) 100%);
}
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-story-section--education .field-name-field-lead-photo img.img-thumbnail {
  border-left: 300px solid rgb(118,20,30);
}

body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-story-section--support {
  border-top: 4px solid rgb(232,80,81);

  background-image: linear-gradient(left, transparent 300px,rgb(232,80,81) 300px, rgb(232,80,81) 100%);
}
body.node-type-like-you-patient-story .field-name-field-like-you-story-sections .field-story-section--support .field-name-field-lead-photo img.img-thumbnail {
  border-left: 300px solid rgb(232,80,81);
}

/**
 * NRD: Fields for "Download Section" nodes
 */

body.node-type-download-section .field-type-field-collection .field-collection-view {
  padding:0 2% 0 2%; /* .tuck-2 */
  margin: 0;
}
body.node-type-download-section .field-type-field-collection .field-collection-view h2 {
  size: 24px; /* Basically display as an h3 in this context. */
}
body.node-type-download-section .field-name-field-subsection-files-private .field-items table tr td:nth-child(1) {
  width: 75%; /* Used set width for "files" column. */
}
/*
body.node-type-download-section .field-name-field-subsection-files-private .field-items table tr:nth-child(1) td {
  font-weight: bold; {* First row only. *}
}
*/
@media handheld, only screen and (max-width: 500px) {
  body.node-type-download-section .field-name-field-subsection-files-private .field-items table tr td:nth-child(1) {
    width: 100%;
  }
  body.node-type-download-section .field-name-field-subsection-files-private .field-items table tr th:nth-child(2),
  body.node-type-download-section .field-name-field-subsection-files-private .field-items table tr td:nth-child(2) {
    display: none; /* Hide filesize column on narrow displays. */
  }
}

/* Per-language styling for patient-guides */
body.node-type-download-section .field-name-field-subsection-files-private .field-items a.pe-patient-guide-english {
  font-weight: bold;
}

