@import url("essay.css");

.noctis-page,
.noctis-page * {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.noctis-page {
  background: #fff;
  color: #000;
  margin: 0;
  max-width: none;
}

.noctis-bar {
  align-items: center;
  border-bottom: 1px solid #000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 51px;
  padding: 9px 12px;
}

.suhalia-return {
  justify-self: start;
}

.series-name {
  font-size: 1.5em;
  font-weight: bold;
  justify-self: end;
}

.view-switch {
  margin: 0.65em 0 0;
}

.toc hr {
  border: 0;
  border-top: 1px solid #000;
  margin: 1.25em 0 1em;
}

.play-link {
  margin: 0;
}

.noctis-main {
  margin: 0;
  max-width: 800px;
  padding: 30px 20px 56px;
}

.noctis-main > .toc:first-child {
  margin-top: 0;
}

.toc {
  border-color: #000;
  padding-top: 0.8em;
}

.toc h2 {
  background: #fff;
  font-size: 1em;
  font-weight: normal;
  margin: -0.72em 0 0.35em;
  padding: 0 0.35em;
  width: max-content;
}

.toc [aria-current="page"] {
  font-weight: bold;
}

.toc-group {
  margin-top: 0.9em;
}

.toc h2 + .toc-group {
  margin-top: 0;
}

.toc-section {
  margin: 0 0 0.18em 0.35em;
}

.toc-group ol {
  margin: 0.18em 0 0;
  padding-left: 2.15em;
}

.chapter-body {
  margin-top: 2.25em;
}

.play-options h2 {
  font-size: 1em;
  margin: 2em 0 0.25em;
}

.play-option-body {
  margin-left: 1.25em;
}

.play-option-body > :first-child {
  margin-top: 0;
}

.play-action {
  margin-top: 1.25em;
}

.continue-link {
  margin: 3em 0 0;
  text-align: right;
}

.combined-section {
  border-top: 1px solid #000;
  margin-top: 3em;
  padding-top: 2.5em;
}

.one-page-view .combined-section:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.source-listing-gutter,
.source-listing-title,
.repl-marker {
  color: #000;
}

@media (min-width: 901px) {
  .noctis-bar {
    background: #fff;
    grid-template-columns: 230px minmax(0, 800px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .suhalia-return {
    align-items: center;
    align-self: stretch;
    border-right: 1px solid #000;
    display: flex;
    justify-self: stretch;
    padding: 9px 12px;
  }

  .series-name {
    justify-self: start;
    padding: 0 12px;
  }

  .noctis-main {
    display: grid;
    grid-template-columns: 230px minmax(0, 800px);
    max-width: 1030px;
    min-height: calc(100vh - 51px);
    padding: 0;
  }

  .intro-body,
  .chapter-body,
  #all-chapters {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 40px 40px 72px;
  }

  .toc,
  .noctis-main > .toc:first-child {
    align-self: stretch;
    border: 0;
    border-right: 1px solid #000;
    grid-column: 1;
    grid-row: 1;
    height: calc(100vh - 51px);
    margin: 0;
    overflow: auto;
    padding: 32px 20px 48px;
    position: sticky;
    top: 51px;
  }

  .toc h2 {
    display: none;
    margin: 0 0 0.35em;
    padding: 0;
  }
}

@media (max-width: 560px) {
  .series-name {
    font-size: 1.35em;
  }
}
