/* Blog-specific styles */

h2, h3, h4 {
  position: relative;
}

a.header-anchor {
  text-decoration: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  color: var(--text-muted);
  position: absolute;
  left: -1em;
  padding-left: 2px;
  padding-right: 0.5em;
}

h2:hover a.header-anchor,
h3:hover a.header-anchor,
h4:hover a.header-anchor {
  visibility: visible;
  opacity: 1;
}

.post-header {
  margin-bottom: 2rem;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.post-meta .post-author {
  margin-left: 1rem;
}

.post-entries {
  list-style: none;
  padding: 0;
}

figure {
  float: right;
  margin: 0 0 1em 1em;
}

figure img {
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

figcaption {
  font-size: small;
}

/* Bibliography */
.bibliography {
  font-size: 0.9rem;
}

.bibliography-title {
  font-size: 1.5rem;
}

/* Table of contents */
.table-of-contents {
  background: var(--bg-light);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin: 1.5rem 0;
}

.table-of-contents h2 {
  font-size: 1.2rem;
  margin-top: 0;
  border: none;
}

.table-of-contents ul {
  margin: 0;
  padding-left: 1.5rem;
}

.table-of-contents li {
  margin: 0.3rem 0;
}
