/**
 * @file
 * Visual styles for Corporate+'s post content type.
 */

/* field */
.node--type-mt-post.node--view-mode-full .field {
  margin-bottom: 40px;
}

/* Node header */
.node--type-mt-post .node__header {
  margin-bottom: 0;
  padding: 0;
}

/* post banner */
.page-node-type-mt-post .internal-banner .field--name-user-picture {
  float: none;
  margin: 0;
}
.page-node-type-mt-post .internal-banner .field--name-user-picture img {
  border-radius: 100%;
  max-width: 50px;
}

/* post header */
.page-node-type-mt-post .list-inline-item:not(:last-child) {
  margin-right: 1rem;
}

/* node side */
.node--type-mt-post.node--view-mode-full .node__side {
  text-align: center;
}
.node--type-mt-post.node--view-mode-full .node__side .field--name-user-picture {
  max-width: 65px;
  margin-left: auto;
  margin-right: auto;
  float: none;
  margin-bottom: 10px;
}
.node--type-mt-post.node--view-mode-full .node__side .username,
.node--type-mt-post.node--view-mode-full .node__side .node-author span span {
  font-weight: 700;
  font-size: 18px;
}
.node--type-mt-post.node--view-mode-full .node__submitted-date {
  font-weight: 700;
  text-align: center;
  line-height: 1;
  border-right: 1px solid #c2c2c2;
  padding-bottom: 10px;
  display: block;
  margin-top: 2px;
}
.node--type-mt-post.node--view-mode-full .node__submitted-date .month {
  margin-top: -2px;
}
.node--type-mt-post.node--view-mode-full .node__submitted-date .month,
.node--type-mt-post.node--view-mode-full .node__submitted-date .year {
  font-size: 14px;
  text-transform: uppercase;
}
.node--type-mt-post.node--view-mode-full .node__submitted-date .day {
  font-size: 29px;
  font-weight: 900;
  margin-bottom: 2px;
}
.node--type-mt-post.node--view-mode-full .node__comments {
  margin-top: 6px;
  border-right: 1px solid #c2c2c2;
  display: block;
  font-weight: 700;
  text-align: center;
}
.node--type-mt-post.node--view-mode-full .node__submitted-date ~ div {
  margin-top: 20px;
}
.node--type-mt-post.node--view-mode-full .node__submitted-date + .node__comments {
  border-top: 1px solid #c2c2c2;
  margin-top: 0;
}
.node--type-mt-post.node--view-mode-full .node__comments .svg-inline--fa {
  color: #363636;
  margin-bottom: 5px;
  width: 100%;
  margin-top: 17px;
}
.node--type-mt-post.node--view-mode-full .node__comments-count {
  font-size: 11px;
  color: #363636;
  padding-bottom: 15px;
}

/*node links*/
.node--type-mt-post.node--view-mode-full .node__links {
  margin-bottom: 20px;
}

/* post layout */
@media (min-width: 768px) {
  .node--type-mt-post.node--view-mode-full .node__container {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
  }
  .node--type-mt-post.node--view-mode-full .node__main-content {
    -ms-flex: 0 0 calc(100% - 100px);
    flex: 0 0 calc(100% - 100px);
    max-width: calc(100% - 100px);
    padding-right: 15px;
    padding-left: 15px;
  }
  .node--type-mt-post.node--view-mode-full .node__side {
    -ms-flex: 0 0 85px;
    flex: 0 0 85px;
    max-width: 85px;
    padding-right: 15px;
    padding-left: 15px;
  }
  .node--type-mt-post.node--view-mode-full .node__side + .node__main-content {
    overflow: hidden;
  }
}
@media (min-width: 992px) {
  .node--type-mt-post.node--view-mode-full .node__main-content {
    -ms-flex: 0 0 calc(100% - 150px);
    flex: 0 0 calc(100% - 150px);
    max-width: calc(100% - 150px);
    padding-right: 15px;
    padding-left: 15px;
    margin: 0 auto;
  }
  .layout-no-sidebars .node--type-mt-post.node--view-mode-full .node__main-content {
    -ms-flex: 0 0 calc(100% - 115px);
    flex: 0 0 calc(100% - 115px);
    max-width: calc(100% - 115px);
    margin: 0 0 0 auto;
  }
}
@media (max-width: 767px) {
  .node--type-mt-post.node--view-mode-full .node__side {
    display: none;
  }
}

/*responsive typography*/
.paragraph-responsive-typography-enabled.page-node-type-mt-post .node__main-content p {
  line-height: calc(155% + 0.2vw);
  font-size: calc(0.85em + 0.2vw);
}
.paragraph-responsive-typography-enabled.page-node-type-mt-post .node--view-mode-teaser .node__main-content p {
  font-size: 18px;
  line-height: 1.5;
}

/*post subheader*/
.node--type-mt-post .node__main-content .field--name-field-mt-pst-subheader p {
  font-size: 30px;
  line-height: 1.2;
}

/*post taxonomy*/
.node--type-mt-post .field--entity-reference-target-type-taxonomy-term + .field--entity-reference-target-type-taxonomy-term--inline {
  margin-left: 20px;
  display: inline-block;
}
.node--type-mt-post .field--entity-reference-target-type-taxonomy-term + .field--entity-reference-target-type-taxonomy-term--inline .field__item {
  margin: 0;
}
.node--type-mt-post .field--entity-reference-target-type-taxonomy-term + .field--entity-reference-target-type-taxonomy-term--inline .field__item a {
  display: inline-block;
}
.node--type-mt-post .field--entity-reference-target-type-taxonomy-term + .field--entity-reference-target-type-taxonomy-term--inline .field__item:after {
  content: ", ";
  display: inline;
}
.node--type-mt-post .field--entity-reference-target-type-taxonomy-term + .field--entity-reference-target-type-taxonomy-term--inline .field__item:last-child:after {
  content: "";
}
