/*
 * ------------------------------------------------------------------
 *  
 * Topic content
 * 
 */
.wh_topic_content .related-links:empty {
  display: none;
}

.sectiontitle {
  /* EXM-37168: The section title should have the same color as the rest of the content. */
  color: inherit;
}

/*
 * Topic titles & subtitles
 */
.topictitle1 {
  font-size: 2em;
  margin-bottom: 0.5em;
  font-weight: 400;
}

.topictitle2 {
  margin: 1em 0 .5em 0;
  font-size: 1.7em;
  font-weight: 400;
}

.topictitle3,
.topictitle4,
.topictitle5,
.topictitle6 {
  margin: 1em 0 .5em 0;
  font-size: 1.4em;
  font-weight: 300;
}

@media screen {
  .topictitle1,
  .topictitle2,
  .topictitle3,
  .topictitle4,
  .topictitle5,
  .topictitle6 {
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}

.wh_child_links .olchildlinks,
.wh_child_links .ullinks,
.wh_child_links li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wh_child_links strong {
  font-weight: normal;
}

/* Remove/clean the extra markup generated by DITA-OT for the related links. */
.wh_related_links .desc {
  display: none;
}

/* The CJK fonts do not support italic. */
.figcap {
  font-style: normal;
}

div.tasklabel {
  margin-top: 0.8em;
  margin-bottom: 0em;
}

div.tasklabel + * {
  margin-top: 0em;
}

/* Hazard statements columns definition. */
/* 
 * The hazardstatement table width should not include
 * default table left and right margins (1em).
 * TODO: Replace with fit-content after Chemistry supports it. 
 */
.hazardstatement {
  width: calc(100% - 1em - 1em);
}

.hazardstatement--logo-col {
  width: 5em;
}

@media screen {
  .hazardstatement--msg-col {
    width: 100%;
  }
}
@media print {
  .hazardstatement--msg-col {
    width: fill;
  }
}

/* Hazard icon should be displayed only on danger, warning and caution. */
*[class ~= "hazard-d/hazardstatement"]:not(.hazardstatement_danger):not(.hazardstatement_warning):not(.hazardstatement_caution) .hazardstatement--logo-col {
  display: none;
}

*[class ~= "hazard-d/hazardstatement"]:not(.hazardstatement_danger):not(.hazardstatement_warning):not(.hazardstatement_caution) th {
  table-column-span: 1;
}

*[class ~= "hazard-d/hazardstatement"]:not(.hazardstatement_danger):not(.hazardstatement_warning):not(.hazardstatement_caution) td:first-of-type {
  display: none;
}

/* Remove underline from links to be similar to PDF */
*[class ~= 'topic/xref'],
*[class ~= 'topic/link'] {
  text-decoration: none;
}

.related-links a, .related-links a:visited {
  text-decoration: none;
}

a, a:hover, a:visited {
  text-decoration: none;
}
