@import url('bootstrap/css/bootstrap.css');

html,
body {
  font-family: 'Segoe UI', Verdana, Arial;
  -webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size in iOS. */
}

body.no-scroll {
  overflow: hidden !important;
}

/* Large Screens */
@media (min-width: 64em) {

  body {
    overflow: hidden;
  }

}

/* XL (4K) Screens */
@media (min-width: 160em) {
  body {
    font-size: 22px; /* Increase overall scale */
  }
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: normal;
  line-height: 1.4;
  margin: 2em 0 1.25em;
}
h2 {
  font-size: 1.5em;
  color: #b02626;
}

p {
  font-size: 1em;
  line-height: 1.4;
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

strong {
  font-weight: bold;
}

button {
  cursor: pointer;
}

svg.icon {
  display: block;
  width: 1em;
  height: 1em;
  min-width: 1em;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}


/* Header */
#header-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 4em;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background: #222;
  color: #fff;
  padding: 0 .5em;
}
#header-container h1 {
  margin: .2em 0 0;
  padding-right: .75em;
  min-width: 0;
}

#header-container .title-prefix,
#header-container .title-topic {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#header-container .title-prefix {
  display: block;
  font-size: .8em;
  line-height: 1;
  padding: 2px 0; /* Correct descenders cropping */
  color: #aaa;
}
#header-container .title-topic {
  font-size: 1em;
  line-height: 1.6;
}

.header-button {
  display: block;
  font-size: 1.25em;
  padding: .5em;
  border: 0;
  background-color: rgba(255,255,255,.1);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color .25s ease;
}
.header-button:hover {
  background-color: rgba(255,255,255,.2);
  color: #fff;
  text-decoration: none;
}

.header-button > span {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.header-button.home-button,
.header-button.search-button {
  margin-right: .75em;
}

.header-button.home-button {
  background-color: #59b259;
}
.header-button.home-button:hover {
  background-color: #66cd66;
}

.header-button.search-button {
  position: relative;
  z-index: 1;
  margin-right: .75em;
  background-color: #006dcc;
}
.header-button.search-button:hover {
  background-color: #007deb;
}

.header-button.menu-toggle,
.header-button.root-button,
.header-button.back-button {
  margin-left: auto;
}

.header-button.menu-toggle:focus,
.header-button.print-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px #006dcc;
}

.send-feedback,
.header-button.home-button,
.header-button.print-button {
  display: none;
}

/* Large Screens */
@media (min-width: 64em) {

  #header-container {
    position: static;
    height: 5em;
    padding: 0 1em;
  }
  #header-container h1 {
    font-size: 1.25em;
  }

  .header-button {
    padding: .75em;
  }

  .header-button.menu-toggle,
  .header-button.root-button,
  .header-button.back-button {
    display: none;
  }

  .send-feedback,
  .header-button.home-button,
  .header-button.print-button {
    display: block;
  }

}


/* Feedback link */
a.send-feedback {
  color: #aaa;
  padding: .75em 1em;
  border-radius: 100em;
  transition: background-color .25s ease, color .25s ease;
  margin-left: auto;
  margin-right: 1em;
  white-space: nowrap;
}
a.send-feedback:hover {
  background-color: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}


/* Page Content */
#body-container {
  padding-top: 4em;
}

#span-container {
  padding: 1.5em 1em;
}

.message-box p {
  font-size: 1.2em;
}
.message-box > *:first-child {
  margin-top: 0;
}
.message-box > *:last-child {
  margin-bottom: 0;
}

/* Large Screens */
@media (min-width: 64em) {

  #body-container {
    position: absolute;
    overflow: hidden;
    top: 5em;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
  }

  #span-container {
    position: absolute;
    overflow: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25em;
  }

  .message-container {
    background-color: #eee;
  }
  .message-box {
    display: inline-block;
    background-color: #fff;
    padding: 1.75em;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
  }

}


/* Resize Control */
.ui-resizable-w {
  background-color: #ccc;
  transition: background-color .15s ease;
}
.ui-resizable-w:hover {
  background-color: #006dcc;
}
.ui-resizable-helper-west {
  border-left: 5px solid #000;
}

.ui-resizable-handle {
  display: none !important;
}

/* Large Screens */
@media (min-width: 64em) {

  .ui-resizable-handle {
    display: block !important;
    left: 0;
  }

}


/* Table of Contents (Menu/Sidebar) */
#toc,
#toc * {
  box-sizing: border-box;
}

#toc {
  display: none;
  position: fixed;
  z-index: 5;
  top: 4em;
  left: 0;
  width: 100%;
  height: calc(100vh - 4em);
  padding: 1.25em 0 1.25em 1.25em;
  overflow: auto;
  background-color: #eee;
}
#toc.open {
  display: flex;
  flex-direction: column;
}
#toc .toc-title {
  white-space: nowrap;
  margin: 0 0 1.25em;
}

/* Up-to 'Medium' screens */
@media (max-width: 63.9375em) {

  #toc {
    width: 100% !important; /* Force sidebar to full-width of screen (resizable only on large) */
  }

}

/* Large Screens */
@media (min-width: 64em) {

  #toc {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25em;
    height: auto;
    overflow: auto;
  }

}


/* Content Area */
#topic {
  position: static !important;
}

#topicContent {
  padding: 1.25em 1em 2.5em;
  overflow-wrap: break-word; /* Break longer 'single-word' strings e.g. system paths */
  word-wrap: break-word;
  word-break: break-word;
}
#topicContent [data-topic-name] {
  margin: 0 auto;
  max-width: 75em;
}

@media (min-width: 40em) {

  #topicContent {
    padding: 2em 1.5em 3em;
  }

}

@media (min-width: 64em) {

  #topic {
    position: absolute !important;
    top: 0;
    bottom: 0;
    left: 25em;
    right: 0;
  }

  #topicContent {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: auto;
    padding: 2.5em 2.5em 6em;
  }

}


/* Search */
.search-form {
  max-width: 50em;
  margin: 0 auto;
}
@media (min-width: 64em) {
  .search-form {
    padding: 3em 0;
  }
}

.search-form form {
  display: flex;
  margin-bottom: 2em;
}
.search-form .search-input {
  width: 100%;
  border: 2px solid #bbb;
  font-size: 1.2em;
  padding: .5em;
  margin: 0 .5em 0 0;
}
.search-form .search-input:focus {
  border-color: rgb(82, 168, 236);
  box-shadow: none;
}
.search-form .search-button {
  display: inline-flex;
  align-items: center;
  font-size: 1.1em;
  padding: 0 1em 0 .75em;
  background-color: #006dcc;
  color: #fff;
  border: 0;
  border-radius: 100px;
  transition: filter .25s ease;
}
.search-form .search-button:hover {
  filter: brightness(120%);
}
.search-form .search-button svg {
  font-size: 1.25em;
  margin: -1px .5em 0 0;
}

ol.search-result {
  padding-left: 1.25em;
  margin: 0;
}
ol.search-result li {
  padding-left: .75em;
  margin: 0 0 1.75em;
  color: #777;
}
ol.search-result a {
  display: block;
  color: #444;
}
ol.search-result a:hover {
  text-decoration: none;
}
ol.search-result a:hover .result-heading {
  text-decoration: underline;
}
ol.search-result .result-heading {
  font-size: 1.25em;
  line-height: 1.4;
  margin: 0 0 .2em;
  color: #006dcc;
}
ol.search-result .result-path {
  font-size: .9em;
  color: #888;
  margin: 0 0 .5em;
  word-break: break-all;
}
ol.search-result .result-snippet {
  line-height: 1.4;
}

.search-result-not-found {
  background-color: #ffeb9f;
  padding: 2em;
  margin-bottom: 2em;
  color: #333;
}
.search-result-not-found h2 {
  font-size: 1.3em;
  line-height: 1.3;
  margin: 0 0 1em;
  color: #333;
}
.search-result-not-found ul {
  margin: 1.5em 0 0 1.25em;
}
.search-result-not-found li {
  line-height: 1.4;
  margin-top: .75em;
}
