/* Collapsible code snippets */
details {
  border: 1px solid var(--border-color, #444);
  border-radius: 4px;
  margin: 1em 0;
}

/* Ensure spacing between posts */
article.post {
  margin-bottom: 2em;
  padding-bottom: 2em;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

article.post:last-child {
  border-bottom: none;
}

details summary {
  cursor: pointer;
  padding: 0.75em 1em;
  background-color: var(--summary-bg, rgba(255, 255, 255, 0.05));
  font-weight: 500;
  user-select: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

details summary:hover {
  background-color: var(--summary-hover-bg, rgba(255, 255, 255, 0.1));
}

details[open] summary {
  border-bottom: 1px solid var(--border-color, #444);
  border-radius: 4px 4px 0 0;
  margin-bottom: 0;
}

details .highlight {
  margin: 0;
  border-radius: 0 0 4px 4px;
}

details .highlight pre {
  margin: 0;
  border-radius: 0 0 4px 4px;
}

/* Tag hover effect */
.tag:hover,
.sidebar-tag:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* Add spacing below post summary */
.post__summary {
  margin-bottom: 1em;
}

/* Add spacing below page title */
.content__header {
  margin-bottom: 2em;
}

/* Pagination styling for Hugo's internal template */
.pagination {
  margin-top: 3em;
  text-align: center;
}

.pagination ul {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.3em 0.6em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.2s ease;
  line-height: 1;
}

.pagination a:hover {
  background: rgba(255, 255, 255, 0.10);
}

.pagination .active span {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
