/**
 * Author: Mathis Hofer <hofer@puzzle.ch>
 *
 * The MIT License (MIT)
 *
 * Copyright (c) 2015 Puzzle ITC GmbH
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

.hgt-body {
  font: 13px/1.4 "PolicyGenius", Helvetica, Arial, sans-serif;
  color: #333;
  background: #fff;
}

.hgt-pagehead-nav a, .hgt-content a.styleguide, .hgt-footer a {
    color: #4183C4;
    text-decoration: none;
  }

  .hgt-content a.styleguide:hover, .hgt-footer a:hover {
    text-decoration: underline;
  }

.hgt-container {
  box-sizing: border-box;
  margin-right: 10px;
  margin-left: 10px;
}

.hgt-columns {
  box-sizing: border-box;
  margin-right: -10px;
  margin-left: -10px;
}

.hgt-columns:after {
    display: table;
    clear: both;
    content: "";
}

.hgt-columns:before {
    display: table;
    content: "";
}

.hgt-column {
  box-sizing: border-box;
  display: block;
  float: left;
  width: 100%;
  padding-right: 10px;
  padding-left: 10px;
}

.hgt-column.one-fourth {
  width: 25%;
}
.hgt-column.three-fourths {
  width: 75%;
}

.hgt-pagehead {
  box-sizing: border-box;
  position: relative;
  margin-bottom: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #EEE;
  z-index: 10;
}

.hgt-pagehead-title {
  box-sizing: border-box;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 20px;
  font-weight: normal;
  line-height: 28px;
}

.hgt-pagehead-nav {
  box-sizing: border-box;
  display: block;
  float: right;
  margin-bottom: -20px;
}

.hgt-pagehead-nav a {
  box-sizing: border-box;
  padding: 6px 10px 21px;
  font-size: 14px;
  color: #777;
  text-decoration:none;
}

.hgt-pagehead-nav a:hover {
  color: #333;
}

.hgt-pagehead-nav ul {
  list-style:none;
  position:relative;
  float:left;
  margin:0;
  padding:0;
}

.hgt-pagehead-nav ul a {
  display:block;
  line-height:32px;
  padding:0 15px;
}

.hgt-pagehead-nav ul li {
  position:relative;
  float:left;
  margin:0;
  padding:0;
}

.hgt-pagehead-nav ul ul {
  display:none;
  position:absolute;
  top:100%;
  right: -1px;
  background:#fff;
  padding:0;
  border: 1px solid #999;
  z-index: 2;
}

.hgt-pagehead-nav ul ul li {
  float:none;
  width:200px;
}

.hgt-pagehead-nav ul ul a {
  line-height:120%;
  padding:10px 15px
}

.hgt-pagehead-nav ul li:hover > ul {
  display:block
}

.hgt-pagehead-nav-item {
  text-decoration: none;
}

.hgt-pagehead-nav > ul > li {
  border: 1px solid white;
}

.hgt-pagehead-nav > ul > li:hover {
  text-decoration: none;
  border: 1px solid #999;
}

.hgt-pagehead-nav > ul > li:hover:after {
  content: '';
  display: block;
  border-bottom: 1px solid white;
  position: absolute;
  bottom: -1px;
  z-index: 3;
  left: 0px;
  right: 0px;
}

.hgt-pagehead-nav-item.selected {
  color: #333;
  font-weight: 600;
}

.hgt-menu {
  display: block;
  list-style: outside none none;
  margin-bottom: 15px;
  list-style: outside none none;
  background-color: #FFF;
  border: 1px solid #D8D8D8;
  border-radius: 3px;
}

.hgt-menu-item {
  position: relative;
  display: block;
  padding: 8px 10px;
  color: #4078C0;
  text-shadow: 0 1px 0 #FFF;
  border-bottom: 1px solid #EEE;
  text-decoration: none;
}

.hgt-menu-item:hover {
  text-decoration: none;
  background-color: #F9F9F9;
}

.hgt-menu-item.selected {
  font-weight: bold;
  color: #222;
  cursor: default;
  background-color: #FFF;
}

.hgt-menu-item.selected:before {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  content: "";
  background-color: #D26911;
}

.hgt-menu-item:first-child:before {
  border-top-left-radius: 2px;
}

.hgt-sticky {
  position: fixed;
}

.hgt-menu.hgt-sticky {
  top: 5px;
}

.hgt-content .styleguide {
  font-family: "Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;
  font-size: 16px;
  line-height: 1.6;
  word-wrap: break-word;
}

.hgt-content h1.styleguide,
.hgt-content h2.styleguide,
.hgt-content h3.styleguide,
.hgt-content h4.styleguide,
.hgt-content h5.styleguide,
.hgt-content h6.styleguide {
  box-sizing: border-box;
  position: relative;
  margin-top: 1em;
  margin-bottom: 16px;
  font-weight: bold;
  line-height: 1.4;
}

.hgt-content h1.styleguide {
  padding-bottom: 0.3em;
  font-size: 2.25em;
  line-height: 1.2;
  border-bottom: 1px solid #EEE;
}

.hgt-content h2.styleguide {
  padding-bottom: 0.3em;
  font-size: 1.75em;
  line-height: 1.225;
  border-bottom: 1px solid #EEE;
}

.hgt-content h3.styleguide {
  font-size: 1.5em;
  line-height: 1.43;
}

.hgt-content h4.styleguide {
  font-size: 1.25em;
}

.hgt-content h5.styleguide {
  font-size: 1em;
}

.hgt-content h6.styleguide {
  font-size: 1em;
  color: #777;
}

.hgt-content p.styleguide,
.hgt-content blockquote.styleguide,
.hgt-content dl.styleguide,
.hgt-content table.styleguide,
.hgt-content pre.styleguide {
  box-sizing: border-box;
  margin: 0 0 16px;
}

.hgt-content ul.styleguide {
  list-style: disc;
  box-sizing: border-box;
  margin: 0 0 16px;
  padding-left: 1em;
}

.hgt-content ol.styleguide {
  list-style: decimal;
  box-sizing: border-box;
  margin: 0 0 16px;
  padding-left: 1em;
}

.hgt-content code.styleguide,
.hgt-content tt.styleguide {
  box-sizing: border-box;
  padding: 0.2em 0;
  margin: 0 3px 0 0;
  font-size: 13.6px; /* 85% of 16px */
  font-family: Consolas,"Liberation Mono",Menlo,Courier,monospace;
  background-color: rgba(0, 0, 0, 0.04);
  border-radius: 3px;
}

.hgt-content code.styleguide:before,
.hgt-content code.styleguide:after,
.hgt-content tt.styleguide:before,
.hgt-content tt.styleguide:after {
  letter-spacing: -0.2em;
  content: " ";
}

.hgt-content .codeBlock pre {
  margin-top: 0;
  margin-bottom: 0;
  font: 12px Consolas,"Liberation Mono",Menlo,Courier,monospace;
}

.hgt-content .codeBlock .highlight pre,
.hgt-content .codeBlock pre {
  padding: 16px;
  overflow: auto;
  font-size: 13.6px; /* 85% of 16px */
  line-height: 1.45;
  background-color: #F7F7F7;
  border-radius: 3px;
}

.hgt-content .codeBlock.collapsed {
  position: relative;
  max-height: 150px;
  overflow: hidden;
  cursor: pointer;
}

.hgt-content .codeBlock.collapsed:before {
  opacity: 0;
  content: 'Show code example';
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 300ms ease;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hgt-content .codeBlock.collapsed:hover:before {
  opacity: 1;
}

.hgt-content .codeBlock.collapsed:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 95px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
}

.hgt-content .codeBlock  pre {
  word-wrap: normal;
}

.hgt-content > :first-child {
  margin-top: 0 !important;
}

.hgt-content .codeExample,
.hgt-content .jsExample {
  border: 1px solid #EEE;
  border-radius: 4px;
  margin: 10px 0;
}

.hgt-content .jsExample {
  border-top: 0;
}

.hgt-content .codeExample:before,
.hgt-content .jsExample:before {
  font-family: "Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;
  color: #222;
  border: 1px solid #EEE;
  border-radius: 4px;
  border-bottom-left-radius: 0;
  border-top-right-radius: 0;
  position: relative;
  padding: 2px;
  display: block;
}

.hgt-content .exampleOutput {
  padding: 16px;
}

.hgt-content .codeBlock {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 1px solid #EEE;
}

.hgt-content table .codeBlock {
  background-color: transparent;
  border-top: none;
  border-radius: 0;
}

.hgt-footer {
  box-sizing: border-box;
  position: relative;
  margin-top: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 12px;
  line-height: 1.5;
  color: #777;
  border-top: 1px solid #EEE;
}

.hgt-footer:after {
    display: table;
    clear: both;
    content: "";
}

.hgt-footer:before {
    display: table;
    content: "";
}

.codeTable table {
  width: 100%;
  table-layout: fixed;
}

@media (max-width: 767px) {
  .codeTable table tr,
  .codeTable table th,
  .codeTable table td {
    display: block;
  }
}

.mod-modal:before {
  position: absolute !important;
}

.hgt-body .layout-navigator > .bar {
  position: relative;
  width: 16.5rem;
  height: auto;
}

.hgt-body .layout-navigator > .main {
  margin-left: 0;
}

@media only screen and (min-width: 80.063em) {
  .hgt-body .layout-navigator > .bar {
    width: 21rem;
  }
}

@media only screen and (max-width: 64em) {
  .hgt-body .layout-navigator > .bar {
    position: relative;
    width: 100%;
    flex: 1 0 auto;
  }
}
