/***********************************************************
 *                                                         *
 * Kongsberg Maritime Webhelp skin customizations          *
 *                                                         *
 * 20240806 RWS HL Initial setup                           *
 *                                                         *
 ***********************************************************/

:root {
  --km-blue: #001639;
  --km-silver: #b3b7bc;
  --km-white: #fff;
  --km-black: #000;
  --km-startlist: 6;
}

#wh_topic_container, .wh_content_flex_container {
}

/*
 * ------------------------------------------------------------------
 *  
 * Fonts.
 *  
 * ------------------------------------------------------------------
 */
 
body {
  font-family: "Open Sans", sans-serif;
}

/*
 * ------------------------------------------------------------------
 *  
 * Customize bootstrap
 *  
 * ------------------------------------------------------------------
 */
 
.wh_header {
  background-color: var(--km-blue);
  color: var(--km-white);
  padding: unset;
}
.wh_header a {
  color: var(--km-white);
}
.wh_logo {
  width: 120px;
  height: 60px;
}
.wh_logo > img {
  width: 100%;
  height: 100%;
}

/*
 * ------------------------------------------------------------------
 *  
 * Publication and other titles
 *  
 * ------------------------------------------------------------------
 */
 
.wh_publication_title > a {
  padding: 0.1em 0;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 1em;
  font-size: 1.8em;
}
@media only screen and (min-width: 768px) {
  .wh_topic_page .wh_header {
    padding: 0;
  }
}

.title[not(.sectiontitle)] {
  clear: both;
}

/*
 * ------------------------------------------------------------------
 *  
 * Tiles
 *  
 * ------------------------------------------------------------------
 */
 
.wh_tile {
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.29);
}
.wh_tile_title {
  font-size: 1.5em;
  font-weight: 600;
  border-bottom: 1px solid #b6b7b9;
  padding-bottom: 5px;
}
.wh_tile_title a {
  color: #1c355e;
}
.wh_tile_title a:hover {
  color: #1c355e;
  text-decoration: underline;
}

/*
 * ------------------------------------------------------------------
 *  
 * Search
 *  
 * ------------------------------------------------------------------
 */
 
.wh_search_input {
  background: var(--km-blue) url("resources/images/SearchBar_Background.jpg") no-repeat;
  background-position-y: center;
  background-size: cover;
}
.wh_search_button {
  background-color: #1c355e;
  color: #fff;
}

/*
 * ------------------------------------------------------------------
 *  
 * Breadcrumbs
 *  
 * ------------------------------------------------------------------
*/
 
.wh_tools {
  background-color: #fff;
}

/*
 * ------------------------------------------------------------------
 *  
 *  Footer
 *  
 * ------------------------------------------------------------------
 */
 
.footer {
  height: 30px;
}
.wh_footer {
  margin-top: 2em;
  font-size: 12px;
  color: var(--km-silver);
  background-color: var(--km-black);
}
.wh_footer a, .wh_footer a:hover {
  position: relative;
  padding-left: 10px;
  padding-right: 10px;
  color: var(--km-silver);
}
.wh_footer a:first-child:after {
  content: "|";
  position: absolute;
  font-size: 0.8em;
  transform: translateY(1px);
  width: 12px;
  text-align: right;
}

/*
 * ------------------------------------------------------------------
 *  
 *  Notes
 *  
 * ------------------------------------------------------------------
 */

div.note {
  padding: 0 0.5em 0 3.5em;
  min-height: 4em;
  margin-top: 2em;
}
.note__title {
  position: absolute;
  transform: translateY(-1.15em) translateX(-3.5em);
  background-color: var(--km-white);
  padding-right: 5px;
}
*[class~="topic/note"] {
  background-size: 30px;
  border-top: 1px solid var(--km-black);
  border-bottom: 1px solid var(--km-black);
  margin-top: 2em;
}
*[class~="topic/note"]:not([class~="hazard-d/hazardstatement"]) {
}
*[class~="topic/note"].note_attention {
  background-image: url('resources/notes/ISO_7010_W001.svg') !important;  
  background-position-y: 1em;
}
*[class~="topic/note"].note_caution {
  background-image: url('resources/notes/ISO_7010_W001.svg') !important;
  background-position-y: 1em;
}
*[class~="topic/note"].note_danger {
  background-image: url('resources/notes/ISO_7010_W001.svg') !important;
  background-position-y: 1em;
}
*[class~="topic/note"].note_execute {
  background-image: url('resources/notes/Execute.svg') !important;
  background-position-y: 1em;
}
*[class~="topic/note"].note_important {
  background-image: url('resources/notes/Important.svg') !important;
  background-position-y: 1em;
}
*[class~="topic/note"].note_info {
  background-image: url('resources/notes/ISO_7000_Style-Info.svg') !important;
  background-position-y: 1em;
}
*[class~="topic/note"].note_notype {
  background-image: none;  
  border-top: none;
  border-bottom: none;
  background-size: initial;
  background-repeat: initial;
  background-position: initial;
  min-height: unset;
  padding: initial;
}
*[class~="topic/note"].note_note {
  background-image: url('resources/notes/ISO_7000_Style-Info.svg') !important;
  background-position-y: 1em;
}
*[class~="topic/note"].note_notice {
  background-image: url('resources/notes/ISO_7000_Style-Info.svg') !important;
  background-position-y: 1em;
}
*[class~="topic/note"].note_restriction {
  background-image: url('resources/notes/Restriction.svg') !important;
  background-position-y: 1em;
}
*[class~="topic/note"].note_result {
  background-image: url('resources/notes/Result.svg') !important;
  background-position-y: 1em;
}
*[class~="topic/note"].note_tip {
  background-image: url('resources/notes/ISO_7010_Style-Tip.svg') !important;
  background-position-y: 1em;
}
*[class~="topic/note"].note_todo {
  background-image: url('resources/notes/Todo.svg') !important;
  background-position-y: 1em;
}
*[class~="topic/note"].note_warning {
  background-image: url('resources/notes/ISO_7010_W001.svg') !important;
  background-position-y: 1em;
}

/*
 * ------------------------------------------------------------------
 *  
 *  Custom highlight elements (inline)
 *  
 * ------------------------------------------------------------------
 */
 
.itemname, .doctitle {
  font-style: italic;
}
.bs {
  font-weight: bold;
  font-size: 0.9em;
}
.tt {
  font-size: 0.9em;
}

/*
 * ------------------------------------------------------------------
 *  
 *  Lists
 *  
 * ------------------------------------------------------------------
 */
 
.dl {
  margin-top: 1em;
}
ol.ol {
  list-style: none;
  padding-inline-start: 8mm;
}
section.ol {
  list-style: none;
}
.ul {
  list-style: none;
  padding-inline-start: 4mm;
}
.li {
  margin-top: 1em;
  margin-bottom: 1em;
}
.li::before {
  content: attr(data-content);
  display: inline-block;
  vertical-align: top;
}
.ol > .li::before {
  width: 8mm;
  margin-left: -8mm;
}
.ul > .li::before {
  width: 4mm;
  margin-left: -4mm;
}
.ol.callout > .li::before {
  font-weight: bold;
}
.li .p:first-child {
  display: inline-block;
  margin-top: 0;
}
.li .p:last-child {
  margin-bottom: 0;
}

/*
 * ------------------------------------------------------------------
 *  
 *  Figures and images
 *  
 * ------------------------------------------------------------------
 */
 
.rightwrap {
  display: table;
  float: right;
  border: 1em solid var(--km-white);
  border-right: none;
  background-color: var(--km-white);
}
.leftwrap {
  display: table;
  float: left;
  border: 1em solid var(--km-white);
  border-left: none;
  background-color: var(--km-white);
}
.rightwrap .figcap {
  display: table-caption;
  border-left: 1em solid var(--km-white);
}
.leftwrap .figcap {
  display: table-caption;
  border-right: 1em solid var(--km-white);
}

/*
 * ------------------------------------------------------------------
 *  
 *  Div and p
 *  
 * ------------------------------------------------------------------
 */
 
div.important {
  background-image: none;
}
.smalltext {
  font-size: 0.8334em;
}
