
/* Colors and Dark Mode
 */

body {
  background-color: white;
  color: black;
}

a {
  color: inherit;
}

li.help-toc-current {
  background: rgb(97, 136, 193);
  color: white;
}

nav.help-toc-container {
  border-right-color: black;
}

.help-menu-path {
  background: #eeeeee;
  border: #cccccc solid 1px;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #222;
    color: #ddd;
  }

  a {
    color: inherit;
  }

  nav.help-toc-container {
    border-right-color: #ddd;
  }
  
  li.help-toc-current {
    background: rgb(97, 136, 193);
  }
  
  .help-menu-path {
    background: #444444;
    border: #666666 solid 1px;
  }
}

/* Main Layout Structure
 */

html {
  padding: 0;
}

body {
  font-family: -apple-system;
  font-size: 12pt;
  padding: 0;
  margin: 0;
}

header {
  padding: 1rem;
}

header h1 {
  padding: 0;
  margin: 0;
}

main {
  padding: 0 1rem;
}

main p {
  margin-top: 0;
}

p, li, figcaption {
  line-height: 1.3;
}

/* Figures
 */

.help-figure {
  max-width: 100%;
}

.help-figure img {
  max-width: 90%;
  height: auto;
}

/* Menus
 */
.help-menu-path {
  padding: 1px;
  border-radius: 2px;
}


/* Table of Contents
 */

nav.help-toc-container {
  width: 250px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  padding: 0;
  border-right: 0.5px solid;
  overflow-y: scroll;
  overflow-x: hidden;
}

nav h2 {
  font-size: 100%;
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 1rem;
}

ul.help-toc {
  padding: 0;
  margin: 1rem;
}

ul.help-toc > li {
  list-style: none;
  text-indent: none;
  margin: 0;
  padding: 0;
}

ul.help-toc > li > a {
  text-decoration: none;
  display: block;
  padding: 0.5rem 1rem;
}

ul.help-toc > li > a:hover {
  text-decoration: underline;
}

body {
  margin-left: 250px;
}

/* Inline symbols
 */
.help-inline-symbol {
  display: inline-block;
  height: 1lh;
  vertical-align: text-top; 
}

/* Table-styled DLs
 */
.defntable {
  display: grid;
  grid-template-columns: max-content 1fr;
  row-gap: 1.5rem;
  column-gap: 2rem;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 0.5rem;
}

