/* === Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* === Base === */
body {
  font-family: "Gill Sans", Helvetica, Arial, sans-serif;
  color: #333;
  background: #fff;
  font-size: 16px;
}

a:link, a:visited { color: #006E91; text-decoration: none; }
a:hover { color: #309ec1; text-decoration: none; }

/* === Page wrapper: 900px max, centered === */
#page {
  margin: auto;
  width: 90%;
  max-width: 900px;
  position: relative;
}

/* === Navigation === */
#mast {
  padding: 0 0 5px 0;
  text-align: right;
}

.icon {
  float: left;
}

#mainMenu {
  list-style: none;
  text-align: right;
  margin-top: 20px;
}

#mainMenu li {
  display: inline;
  margin: 0 3px;
}

#mainMenu a {
  display: inline-block;
  text-decoration: none;
  color: #333;
  padding: 4px 0;
  margin: 0 3px;
  font-size: 16px;
  border-bottom: 2px solid transparent;
}

#mainMenu a:visited { color: #333; }

#mainMenu a:active,
#mainMenu a:focus,
#mainMenu a:hover {
  color: #aaa;
}

#mainMenu li.selected a:link,
#mainMenu li.selected a:visited {
  color: #aaa;
  border-bottom: 2px solid #abc;
}

/* Mobile menu toggle */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 28px;
  position: relative;
  padding: 0;
  margin-right: 10px;
}

#menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #333;
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

#menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
#menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === Header === */
#header_main {
  padding: 0 0 20px 0;
}

/* === Announcement boxes === */
#centraltext {
  margin-top: 12px;
  font-size: 16px;
}

#homepagetext {
  background: #eee;
  padding: 5px 10px 10px 5px;
  color: #666;
  margin-bottom: 10px;
  font-size: 14px;
}

#homepagetext a {
  color: #006E91;
}

#homepagetext a:hover {
  color: #006E91;
}

a#download2 {
  position: absolute;
  bottom: 2px;
  right: 2px;
  overflow: hidden;
  background: #9e291b;
  font-size: 12px;
  padding: 5px;
  color: #fff;
  box-shadow: inset 0 0 5px #c07971;
  border: 0;
}

a:hover#download2 {
  background: #c07971;
  color: #fff;
}
a#download2:link, a#download2:visited, a:hover#download2 {
  color: #fff;
}

/* === Footer === */
#footer {
  padding: 0;
  margin: 0;
}

#smallfooter {
  color: #bbb;
  font-size: 12px;
  margin-top: 5px;
  margin-bottom: 5px;
}

#smallfooter a {
  color: #006E91;
}

#smallfooter a:hover {
  color: #309ec1;
}

#discrete a:link, #discrete a:visited {
  color: #bbb;
}

#discrete a:hover {
  color: #309ec1;
}

#smallfooter a:hover {
  color: #309ec1;
}

#discrete a:link,
#discrete a:visited {
  color: #bbb;
}

#discrete a:hover {
  color: #309ec1;
}

/* === Responsive: tablet === */
@media (max-width: 768px) {
  #page {
    width: 95%;
  }

  #mast {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
  }

  #mast .icon {
    order: -1;
  }

  #menu-toggle {
    order: 1;
    margin-left: auto;
  }

  #mainMenu {
    gap: 0;
    order: 2;
  }

  #mainMenu a {
    margin: 0 8px;
    font-size: 15px;
  }

  /* Hamburger menu toggle */
  #menu-toggle {
    display: block;
  }

  #mainMenu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    margin-top: 10px;
    padding: 0 10px 10px 10px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  #mainMenu.open {
    display: flex;
  }

  #mainMenu li {
    display: block;
    margin: 0;
  }

  #mainMenu a {
    display: block;
    padding: 10px 12px;
    margin: 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 16px;
  }

  #mainMenu li.selected a {
    border-bottom: 1px solid #e8e8e8;
    border-left: 3px solid #abc;
    padding-left: 9px;
  }

  /* Subpage content: make 700px text flow with container */
  #subpagestext {
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  #subpagestext a {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  #subpagestext table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }

  #subpagestext table th {
    width: auto !important;
    white-space: normal;
  }

  #subpagestext table td,
  #subpagestext table th {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  #subpagestext tt {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  #subpagestext pre,
  #subpagestext code {
    white-space: pre-wrap;
    word-wrap: break-word;
  }
}

/* === Responsive: mobile === */
@media (max-width: 600px) {
  /* Header responsive: stack logo and text */
  #header_main {
    padding: 0 0 10px 0;
  }

  #header_left,
  #header_right {
    float: none;
    width: auto;
    height: auto;
    padding: 0;
  }

  #header_left {
    text-align: center;
    margin-bottom: 10px;
  }

  #header_right {
    font-size: 14px;
    text-align: center;
  }

  /* Full-width announcement boxes */
  #homepagetext {
    padding: 8px 10px 10px 10px;
  }

  #download2 {
    position: absolute;
    bottom: 2px;
    right: 2px;
  }

  #homepagetext b {
    display: block;
  }

  /* Subpage content responsive */
  #subpagestext {
    overflow-x: hidden;
  }

  #subpagestext p,
  #subpagestext div,
  #subpagestext ol,
  #subpagestext ul,
  #subpagestext li,
  #subpagestext td,
  #subpagestext th,
  #subpagestext span,
  #subpagestext a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
  }
  pre {
    overflow-x: auto;
    max-width: 100%;
  }
}

/* === Header bar on subpages === */
#header {
  padding: 0px 0px 15px 0px;
  border-bottom: 5px solid #dde;
}

/* === Headings === */
h2 {
  color: #006E91;
  font-size: 24px;
  line-height: 48px;
  font-weight: normal;
}

#centraltext h3 {
  color: #006E91;
  font-size: 18px;
  font-weight: normal;
  margin-top: 12px;
}

/* === Subpage text === */
#subpagestext {
  color: #333;
  margin: 0 auto;
  width: 90%;
  max-width: 700px;
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 14px;
}

#subpagestext a {
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* === Lists === */
ul {
  margin-left: 40px;
}
ul ul {
  margin-left: 20px;
}
ul ul ul {
  margin-left: 20px;
}
ol li {
  color: #333;
  margin-left: 50px;
}
table, tr, td, th {
  text-align: center;
  border: 2px solid white;
  padding: 2px;
}
td.pluginname {
  background-color: #eee;
  text-align: left;
}
th {
  text-align: center;
  background-color: #eee;
}
td.spanned {
  text-align: center;
  background-color: #dddddd;
}

/* === FAQ toggle answers === */
.answer {
  color: #333;
}
