.article .article-meta {
    /* font-style: italic; */
    font-size: 0.9em;
    color: gray
}

.article {
    line-height: 1.4;
}

/* .article .article-title {
    margin-bottom: 0.2em;
    color: #08c;
} */

.list .article {
    margin-bottom: 1em;
}

.note {
    display:inline-block;
    padding: 1em;
    margin: 0.5em 0px;
    background-color: #E0BEFC;
    border: thin solid #DBB;
    overflow: hidden;
    border-radius: 3px;
}

.highlight pre {
  padding: 5px;
}

/* about page adjustments */
.article.article.about ul li p {
    margin: 0;
}


/* Layout wrapper */
.article-layout {
  display: flex;
  flex-direction: column; /* stacked by default (mobile) */
  gap: 2rem;
}

/* Mobile: TOC first */
@media screen and (max-width: 899px) {
  .toc {
    order: -1; /* TOC appears above content */
  }
}

/* Desktop view: side-by-side */
@media screen and (min-width: 900px) {
  .article-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .article {
    flex: 1;
    max-width: 900px; /* content width */
  }

  .toc {
    flex: 0 0 250px; /* fixed width */
    order: 1; /* content first (left), TOC second (right) */
    position: sticky;
    top: 4rem; /* distance from top when scrolling */
    align-self: flex-start;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    font-size: 0.9em;
    line-height: 1.5;
  }
}

/* TOC list styling */
.toc h3 {
  margin-top: 0;
  font-size: 1.05em;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.4em;
}

#TableOfContents ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5em 0 0 0;
}

#TableOfContents ul ul {
  margin-left: 1em;
  border-left: 1px solid #eee;
  padding-left: 0.8em;
}

#TableOfContents li {
  margin: 0.2em 0;
}

#TableOfContents a {
  color: #007acc;
  text-decoration: none;
}

#TableOfContents a:hover {
  text-decoration: underline;
}


/* Series */
.series h4 {
  color: var(--card-text-color-main);
}

.list-group {
  padding-left: 30px;
  margin-bottom: 10px;
}

.list-group hr {
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.list-group-item.active {
  font-weight: bold;
}

