:root {
  --story-width: 800px;
}

* {
  box-sizing: border-box;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-areas: "cover cover cover" "left-rail main-content right-rail" "left-rail related-content right-rail";
  margin: auto;
  max-width: 100%;
}

.related-content {
  grid-area: related-content;
  padding-inline: 2rem;
}

.left-rail {
  grid-area: left-rail;
}

.related-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.right-rail {
  grid-area: right-rail;
}

h2 {
  font-size: 1.8rem;
}

.contents-table, .meta-info {
  max-width: 90vw;
}

.mobile-toc {
  display: none;
}

.contents-table-header {
  font-size: 1.2rem;
}

.contents-table {
  width: 100%;
  padding-top: 2rem;
  position: sticky;
  top: var(--nav-height);
  padding-inline-start: 2rem;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  font-family: var(--open-sans);
}

.contents-table ol {
  border-inline-start: 2px solid #a3a3a3;
  padding-inline-start: 2rem;
}

.contents-table ol li {
  margin-block: 1rem;
  padding-inline-start: 0.5rem;
  font-size: 1.1rem;
  letter-spacing: -0.1px;
  text-underline-offset: 0.15em;
}

.meta-info {
  text-align: left;
  width: min(var(--story-width), 100%);
  font-size: 0.8rem;
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 1.5rem;
}
.meta-info .labels {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.categories {
  display: flex;
  flex-direction: row;
  justify-content: start;
  gap: 1rem;
  flex-wrap: wrap;
}

.story-section {
  width: fit-content;
  max-width: var(--story-width);
}

.story-section * {
  margin-block-start: 2rem;
  max-width: 90vw;
  margin-inline: auto;
}

.story-section p a {
  word-wrap: break-word;
}

.story-section p {
  text-align: justify;
  font-size: 1.15rem;
}

.story-section img {
  display: block;
  margin: auto;
  height: auto;
  max-width: 100%;
}

.story-section ul,
.story-section ol {
  max-width: clamp(15rem, 35rem, 80vw);
}

.story-section li {
  margin-block-start: 0.8em;
  font-size: 1.1rem;
}

.right {
  float: right;
}

.left {
  float: left;
}

figcaption {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
}

.related-articles {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 2rem;
  margin-block: 2rem;
  max-width: 90vw;
  margin-inline: auto;
}

.story-card {
  grid-template-areas: "image preview-text";
  grid-template-rows: 1fr;
}

@media (max-width: 1200px) {
  .related-articles {
    justify-content: start;
  }
  .story-card .story-text {
    margin-inline: 0px;
  }
  .story-card {
    max-width: 250px;
    grid-template-areas: "image" "preview-text";
  }
}
/* Mobile: collapse to a single column. The left rail (TOC) appears above the
   article thanks to the natural DOM order. The right rail is hidden entirely
   because it carries no content and would waste vertical space. */
@media (max-width: 1100px) {
  .page-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "cover" "main-content" "related-content";
  }
  .left-rail {
    display: none;
  }
  .right-rail {
    display: none;
  }
  .mobile-toc {
    display: block;
    max-width: 90vw;
    max-height: fit-content;
  }
  .contents-table {
    position: static;
    padding-top: 1.5rem;
    padding-inline-start: 0.5rem;
  }
  .contents-table li {
    font-size: 1.1rem;
  }
  .meta-info {
    width: 100%;
  }
  .story-section {
    width: 100%;
    max-width: 100%;
  }
}
table {
  border-collapse: collapse;
  margin-block-end: 2rem;
}
table caption {
  text-align: left;
  margin-block: 2rem;
  font-size: 1.4rem;
  font-weight: bold;
}

th, td {
  padding: 10px;
}

th {
  background-color: rgb(95, 95, 95);
  color: white;
}

tr:nth-child(2n) {
  background-color: rgb(231, 231, 231);
}

/*# sourceMappingURL=story_page.css.cda05c297964.map */
