/* ALIENS RPG - old static site inspired theme, v0.3 */

:root {
  --aliens-blue: #3399ff;
  --aliens-blue-visited: #aa88ff;
  --aliens-border: #555;
  --aliens-page-width: 698px;
  --aliens-shell: 1180px;

  --md-default-bg-color: #000;
  --md-default-fg-color: #fff;
  --md-default-fg-color--light: #ccc;
  --md-default-fg-color--lighter: #999;
  --md-default-fg-color--lightest: #333;
  --md-primary-fg-color: #000;
  --md-primary-bg-color: #fff;
  --md-accent-fg-color: #3399ff;
  --md-typeset-a-color: #3399ff;
}

html,
body,
.md-container,
.md-main,
.md-main__inner,
.md-content,
.md-sidebar,
.md-nav {
  background: #000;
}

body,
input,
button,
textarea,
select {
  font-family: Arial, Helvetica, sans-serif;
}

body {
  color: #fff;
}

.md-grid {
  max-width: var(--aliens-shell);
}

.md-content {
  min-width: 0;
}

.md-content {
  max-width: none;
  flex-grow: 1;
}

.md-content__inner {
  width: var(--aliens-page-width);
  max-width: var(--aliens-page-width);
  margin: 0 0 2rem 0;
  padding-top: 0.8rem;
}

.md-typeset {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  text-align: justify;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.md-typeset h1 {
  margin: 0.5rem 0 0.8rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #333;
  font-size: 18px;
}

.md-typeset h2 {
  margin: 1.25rem 0 0.45rem;
  font-size: 15px;
}

.md-typeset h3 {
  margin: 1rem 0 0.35rem;
  font-size: 13px;
}

.md-typeset h4 {
  font-size: 12px;
}

.md-typeset a,
.md-nav__link,
.md-header a {
  color: var(--aliens-blue);
}

.md-typeset a:visited {
  color: var(--aliens-blue-visited);
}

.md-typeset a:hover,
.md-nav__link:hover,
.md-nav__link--active {
  color: #66b5ff;
  text-decoration: underline;
}

/* Real old-style 698x164 header, inserted by aliens-hover.js */
.aliens-hero {
  display: grid;
  grid-template-columns: 482px 216px;
  width: var(--aliens-page-width);
  max-width: none;
  height: 164px;
  margin: 0 0 0.8rem 0;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid #777;
  background: #000;
}

.aliens-hero__logo {
  display: block;
  width: 482px;
  height: 98px;
  object-fit: contain;
  object-position: left top;
  margin: 0;
}

.aliens-hero__preview {
  display: block;
  width: 216px;
  height: 164px;
  object-fit: cover;
  margin: 0;
  transition: opacity 90ms linear;
}

.aliens-hero__preview.is-changing {
  opacity: 0.65;
}

/* Material header kept, but visually reduced */
.md-header {
  min-height: 2.3rem;
  background: #0b0c0f;
  border-bottom: 1px solid #333;
  box-shadow: none;
}

.md-header__inner {
  min-height: 2.3rem;
}

.md-header__button {
  margin: 0.15rem;
  padding: 0.35rem;
}

.md-header__title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.md-search__form {
  height: 2rem;
  background: #080808;
  border: 1px solid #222;
  border-radius: 0;
}

.md-search__input {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

/* Compact old-style navigation */
.md-sidebar--primary {
  width: 13.5rem;
}

.md-sidebar--secondary {
  width: 11rem;
}

.md-nav {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.2;
}

.md-nav__title {
  color: #fff;
  background: #000 !important;
  box-shadow: none !important;
  font-weight: 700;
}

.md-nav__item .md-nav__link {
  margin-top: 0.22rem;
}

.md-nav__item--section > .md-nav__link,
.md-nav__item--nested > .md-nav__link {
  color: #fff;
  font-weight: 700;
}

.md-typeset table:not([bgcolor]) {
  color: #fff;
  background: #000;
  border-collapse: collapse;
}

.md-typeset table:not([bgcolor]) th,
.md-typeset table:not([bgcolor]) td {
  border-color: #333;
}

.md-typeset table[width] {
  width: auto !important;
  max-width: 100% !important;
}

.md-typeset td,
.md-typeset th {
  vertical-align: top;
}

.md-typeset div[class="8"],
.md-typeset .\38 {
  margin-left: 10pt;
  text-align: justify;
}

.md-typeset .small {
  margin-left: 10pt;
  font-size: 10px;
}

.md-typeset img {
  max-width: 100%;
  height: auto;
}

.md-typeset img[border="0"] {
  border: 0;
}

.md-typeset iframe {
  max-width: 100%;
  border: 0;
}

.md-typeset hr {
  margin: 0.9rem 0;
  border: 0;
  border-top: 1px solid #555;
}

.md-typeset code,
.md-typeset pre {
  color: #e6e6e6;
  background: #0d0d0d;
  border-radius: 0;
}

.md-typeset .headerlink {
  color: #555;
}

.md-footer,
.md-footer-meta {
  background: #000;
}

.md-footer {
  border-top: 1px solid #333;
}

@media screen and (max-width: 760px) {
  .md-content__inner {
    width: 100%;
    max-width: 100%;
  }

  .aliens-hero {
    display: block;
    width: 100%;
    height: auto;
    min-height: 98px;
  }

  .aliens-hero__logo {
    width: min(482px, 100%);
    height: auto;
  }

  .aliens-hero__preview {
    display: none;
  }

  .md-typeset {
    font-size: 13px;
    text-align: left;
  }
}


/* v0.3.1: hero dimensions must win over generic Material/image rules */
.md-typeset .aliens-hero__logo {
  display: block;
  width: 482px;
  min-width: 482px;
  max-width: 482px;
  height: 98px;
  min-height: 98px;
  max-height: 98px;
  object-fit: contain;
  object-position: left top;
  margin: 0;
}

.md-typeset .aliens-hero__preview {
    width: 216px;
    min-width: 216px;
    max-width: 216px;
    height: 164px;
    min-height: 164px;
    max-height: 164px;
    object-fit: fill;
    margin: 0;
}

/* No right-hand Material TOC: old site used the whole content column. */
.md-sidebar--secondary {
  display: none;
}

/* Disable Material right-side TOC completely */
.md-sidebar--secondary[data-md-type="toc"] {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 0 !important;
}

.md-content {
    margin-right: 0 !important;
}



/* -------------------------------------------------------------------------
   Navigation v0.4 - closer to the original ALIENS RPG menu
   ------------------------------------------------------------------------- */

/* Top-level categories behave as section headings, but remain collapsible. */
.md-sidebar--primary .md-nav > .md-nav__list > .md-nav__item--nested > .md-nav__link {
  margin-top: 0.75rem;
  color: #fff;
  font-weight: 700;
}

/* Child links are visibly inset, like the old static menu. */
.md-sidebar--primary .md-nav__item--nested > nav.md-nav {
  margin-left: 0.55rem;
}

/* Keep section contents compact. */
.md-sidebar--primary .md-nav__item--nested > nav.md-nav .md-nav__link {
  margin-top: 0.18rem;
}

