/**************

Detailed page styles

**************/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-andes-regular);
}

/* edit overlapping backbutton  */

.detailed-page .edit-field-wrapper .views-field-edit-node {
  top: 30px;
  z-index: 1;
}

.detailed-page footer .edit-field-wrapper .views-field-edit-node {
  top: 0;
}

.detailed-page {
  background: var(--white2);
}

.detailed-page .page-content-wrapper {
  width: 100%;
  max-width: 872px;
  padding: 70px 15px;
  position: relative;
  margin: 0 auto;
  float: none;
}

.detailed-image-content-section {
  display: flex;
  margin-bottom: 40px;
}

.detailed-left {
  width: 326px;
}

.detailed-left .field--type-image img {
  width: 100%;
  height: 417px;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
  outline: 1px solid #e6e6e6;
}

.detailed-right {
  width: calc(100% - 326px);
  padding-left: 50px;
  padding-bottom: 54px;
  position: relative;
}

.detailed-type {
  font-family: var(--font-andes-semibold);
  color: var(--black4);
  font-size: 12px;
  text-transform: uppercase;
}

.detailed-title h2,
.detailed-title {
  font-size: 34px;
  line-height: 40px;
  font-family: var(--font-andes-regular);
  color: var(--black2);
}

.detailed-title h2 {
  margin: 0;
}

.detailed-right .detailed-title {
  margin-top: 39px;
  margin-bottom: 38px;
}

.field--name-field-author,
.published-date {
  font-size: 12px;
  font-family: var(--font-andes-regular);
  color: var(--black4);
  display: flex;
}

.published-date {
  margin-top: 2px;
}

.field--name-field-author .field--label,
.field--name-field-author .field__label,
.published-date .field--label,
.published-date .field__label {
  color: var(--black2);
  /* width: 60px; */
  width: 45px;
  display: flex;
  padding: 0;
  font-weight: normal;
}

.field--name-field-author .field--label::after,
.published-date .field--label::after,
.field--name-field-author .field__label::after,
.published-date .field__label::after {
  content: ':';
  margin-left: 3px;
  margin-right: 3px;
  display: inline-block;
  flex: 1;
  text-align: right;
}

.published-date .field--name-field-year {
  padding-left: 5px;
}

.download-options {
  position: absolute;
  left: 50px;
  bottom: 0;
}

.download-options a {
  font-size: 12px;
  color: var(--orange);
  font-family: var(--font-andes-regular);
  text-decoration: none !important;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 54px;
  min-height: 34px;
}

.download-options a:before {
  content: '';
  width: 34px;
  height: 34px;
  background: url(/themes/custom/knomad/components/pages/detail-page/css/../img/download.png) no-repeat center center transparent;
  display: block;
  position: absolute;
  left: 0;
  top: calc(50% - 17px);
}

.download-options a:hover:before {
  background-image: url(/themes/custom/knomad/components/pages/detail-page/css/../img/download_hover.png);
}

.detailed-body-content p,
.detailed-body-content {
  font-size: 18px;
  line-height: 28px;
  font-weight: var(--font-open-regular);
  color: var(--black2);
}

.detailed-body-content p:not(:last-child),
.detailed-body-subcontent p:not(:last-child) {
  margin-bottom: 15px;
}

.detailed-body-subcontent,
.detailed-body-subcontent p {
  font-size: 14px;
  line-height: 24px;
  font-weight: var(--font-open-regular);
  color: var(--black4);
}

.detailed-body-subcontent {
  margin-top: 38px;
}

.detailed-body-subcontent .field--label,
.detailed-body-subcontent .field__label {
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 18px;
  color: var(--black2);
  font-weight: var(--font-open-bold);
}

.publication-back {
  position: relative;
}

.publication-back a {
  position: absolute;
  bottom: calc(100% + 21px);
  right: 0;
  font-size: 12px;
  border: 1px solid #dbdbdb;
  padding: 0 15px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  font-weight: var(--font-open-bold);
  color: var(--orange);
  border: 1px solid var(--orange);
}

.publication-back a:hover {
  background-color: var(--orange);
  color: #fff;
}

.detailed-blurb-content-inner {
  margin-top: -7px;
  margin-bottom: 35px;
}

.detailed-blurb-content-inner a {
  color: var(--blue);
}

.detailed-blurb-content-inner a:hover {
  color: var(--orange);
}

/* download new style */

.download-options {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  position: static;
}

.download-item {
  width: calc(33.33% - 33.33px);
  margin-top: 35px;
  margin-right: 50px;
  position: relative;
}

.download-options.single-download .download-item,
.download-item:nth-child(3n) {
  margin-right: 0;
}

.download-options.single-download .download-item {
  width: 100%;
}

.download-item:after {
  content: "";
  position: absolute;
  right: -24.5px;
  top: 0;
  width: 1px;
  height: 100%;
  background: #dbdbdb;
}

.download-item:last-child:after,
.download-item:nth-child(3n):after {
  display: none;
}

.download-options a {
  color: var(--violet);
  padding-left: 44px;
  font-family: var(--font-andes-bold);
  text-transform: uppercase;
}

.download-options a:hover {
  color: var(--orange);
}

.download-options .download-type-doc:hover:before,
.download-options .download-type-doc:before,
.download-options .download-type-docx:hover:before,
.download-options .download-type-docx:before {
  background-image: url(/themes/custom/knomad/components/pages/detail-page/css/../img/downloads/doc_34px.png);
}

.download-options .download-type-pdf:hover:before,
.download-options .download-type-pdf:before {
  background-image: url(/themes/custom/knomad/components/pages/detail-page/css/../img/downloads/pdf.png);
}

.download-options .download-type-txt:hover:before,
.download-options .download-type-txt:before {
  background-image: url(/themes/custom/knomad/components/pages/detail-page/css/../img/downloads/txt.png);
}

.download-options .download-type-xls:hover:before,
.download-options .download-type-xls:before,
.download-options .download-type-xlsx:hover:before,
.download-options .download-type-xlsx:before {
  background-image: url(/themes/custom/knomad/components/pages/detail-page/css/../img/downloads/xls.png);
}

.download-options .download-type-pptx:hover:before,
.download-options .download-type-pptx:before {
  background-image: url(/themes/custom/knomad/components/pages/detail-page/css/../img/downloads/ppt_34px.png);
}

.download-options .external-link:hover:before,
.download-options .external-link:before {
  background-image: url(/themes/custom/knomad/components/pages/detail-page/css/../img/downloads/External_Links_34px.png);
}

.download-options .press-release-link:hover:before,
.download-options .press-release-link:before {
  background-image: url(/themes/custom/knomad/components/pages/detail-page/css/../img/downloads/press_release.png);
}

@media screen and (min-width: 991px) {
  .detailed-right {
    margin-top: -3px;
  }
}
