/* Musings feed */
.musings-feed {
  max-width: 820px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

/* Admin bar */
.musings-admin-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.new-post-btn {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: #c3c0b2;
  color: white;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}

.new-post-btn:hover { background: #a8a598; }

/* Edit link in post meta */
.edit-post-link {
  margin-left: 0.75rem;
  font-size: 0.78rem;
  color: #c3c0b2;
  text-decoration: none;
  border-bottom: 1px dashed #c3c0b2;
}

.edit-post-link:hover { color: #888; border-color: #888; }

/* Individual post card */
.musing-post {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.8rem 2.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  font-size: 0.95rem;
  line-height: 1.8;
  overflow: hidden;
}

.musing-image-wrap {
  max-width: 85%;
  max-height: 200px;
  border-radius: 8px;
  margin: 0 auto 1.2rem;
}

.musing-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  border-radius: 8px;
  margin: 0 auto;
}

.musing-post h2 {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
  color: #222;
  font-weight: 700;
}

.musing-post .post-meta {
  color: #aaa;
  font-size: 0.82rem;
  margin: 0 0 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #f0f0f0;
}

.musing-post .post-content p {
  margin: 0.8rem 0;
  color: #333;
}

.musing-post .post-content a {
  color: #c3c0b2;
  word-break: break-word;
}

.musing-post .post-content ul,
.musing-post .post-content ol {
  padding-left: 1.4rem;
  color: #333;
}

.musing-post .post-content blockquote {
  border-left: 3px solid #ddd;
  margin: 0.8rem 0;
  padding: 0.3rem 1rem;
  color: #777;
  font-style: italic;
}

.musing-post .post-content code {
  background: #f5f4f0;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.88em;
}

.musing-post .post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin: 0.75rem auto;
}

/* Draft indicator */
.draft-badge {
  background: #fff3cd;
  color: #856404;
  font-size: 0.75rem;
  padding: 1px 7px;
  border-radius: 4px;
  margin-left: 0.5rem;
  font-style: normal;
}

.musing-post.draft {
  opacity: 0.75;
  border-style: dashed;
}

/* Read more link */
.read-more-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: #c3c0b2;
  text-decoration: none;
  border-bottom: 1px solid #c3c0b2;
}

.read-more-link:hover { color: #888; border-color: #888; }

/* Tags */
.musing-post .tags {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid #f0f0f0;
}

.musing-post .tags .tag {
  display: inline-block;
  background: #f0efe9;
  color: #888;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-right: 4px;
}

.musing-post .tags .tag:hover,
.musing-post .tags .tag.active {
  background: #c3c0b2;
  color: #fff;
}

/* Footnote references in article body */
.footnote-ref {
    color: #2b6cb0;
    text-decoration: none;
    font-size: 0.9em;
    vertical-align: baseline;
}

.footnote-ref:hover { color: #1a4a8a; }

/* Back-to-article arrow in footnote definitions */
.footnote-back {
    color: #c3c0b2;
    text-decoration: none;
    font-size: 0.85em;
    margin-left: 0.4rem;
}

.footnote-back:hover { color: #888; }

/* Back link on detail page */
.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: #c3c0b2;
  text-decoration: none;
  border-bottom: 1px solid #c3c0b2;
}

.back-link:hover { color: #888; border-color: #888; }

@media (max-width: 767px) {
  .musing-post {
    padding: 1.2rem 1.2rem;
  }

  .musing-post .post-content p {
    font-size: 1rem;
  }
}
