/* post.css — scope to .single-post to avoid collisions with feed styles */

/* Base font size / line-height for post area */
.single-post.blog-container {
  font-size: 1rem; /* base 16px */
  line-height: 1.6;
}

/* Ensure main column isn’t artificially constrained by feed rules */
.single-post .blog-main {
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

/* Cap readable line length inside the post only */
.single-post .blog-post-container {
  max-width: 820px;
  padding: 0 0 3rem 0;
}

/* Hard reset to avoid weird feed styles leaking in */
.single-post .post-header,
.single-post .post-content,
.single-post .post-footer,
.single-post .post-title,
.single-post .post-date {
  position: static !important;
  float: none !important;
  transform: none !important;
  z-index: auto !important;
}

/* Title */
.single-post .post-title {
  display: block;
  width: 100%;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
  color: var(--color-primary, #463935);
}

/* Spacing around header and content */
.single-post .post-header {
  margin-bottom: 1.25rem;
}

.single-post .post-content {
  margin-top: 0.5rem;
}

/* Content flow / text */
.single-post .post-content {
  font-size: 1.06rem;
  line-height: 1.7;
  color: #333;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.single-post .post-content::after {
  content: "";
  display: block;
  clear: both;
}

.single-post .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Date and footer */
.single-post .post-date {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.single-post .post-footer {
  clear: both;
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #ccc;
  font-size: 1rem;
}

.single-post .post-categories-feed {
  margin: 0.2rem 0 0.4rem;
}

.single-post .category-link {
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

/* Back link */
.single-post .back-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-primary, #463935);
  font-weight: 600;
  text-decoration: none;
}

.single-post .back-link:hover {
  text-decoration: underline;
}

/* Remove underlines from sidebar links on post pages (normal + hover) */
.single-post .blog-sidebar a,
.single-post .blog-sidebar a:hover {
  text-decoration: none;
}

/* Responsive: content tweaks only; layout comes from .blog-container + sidebar.css */
@media (max-width: 980px) {
  .single-post .blog-post-container {
    max-width: 42rem;
  }
}

/* Dark mode touch-ups */
@media (prefers-color-scheme: dark) {
  .single-post .post-date {
    opacity: 0.9;
  }
}
.blog-sidebar a {
  color: var(--color-primary);
  text-decoration: none;
}

.blog-sidebar a:hover {
  color: var(--color-hover);
  text-decoration: none; /* no underline on hover */
}