/* Blog Detail Page — Mobile First */

/* Layout wrapper — centers content, adds sidebar when configured */
.blog-layout {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 16px;
}

.blog-layout--sidebar {
  max-width: 1100px;
}

@media (min-width: 769px) {
  .blog-layout--sidebar {
    display: flex;
    gap: 40px;
  }

  .blog-layout--sidebar .blog-layout-main {
    flex: 1;
    min-width: 0;
  }
}

/* Blog Post */
.blog-post {
  padding: 0 0 60px;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.blog-back {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.blog-back:hover {
  text-decoration: underline;
}

.blog-post-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: 12px;
}

@media (min-width: 769px) {
  .blog-post-title {
    font-size: 2.25rem;
  }
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--foreground);
  opacity: 0.5;
  margin-bottom: 24px;
}

.blog-post-author::before {
  content: "\2022";
  margin-right: 8px;
}

.blog-post-hero {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 32px;
}

/* Post Body — prose styles */
.blog-post-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--foreground);
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.blog-post-body > * {
  max-width: 100%;
}

.blog-post-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.blog-post-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.blog-post-body p {
  margin-bottom: 16px;
}

.blog-post-body ul,
.blog-post-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.blog-post-body li {
  margin-bottom: 6px;
}

.blog-post-body a {
  color: var(--accent);
  text-decoration: underline;
}

.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
}

.blog-post-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 16px 0;
  font-style: italic;
  opacity: 0.8;
}

.blog-post-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Sidebar */
.blog-sidebar {
  padding-top: 8px;
}

.blog-sidebar-widget {
  padding: 0;
}

@media (min-width: 769px) {
  .blog-sidebar {
    width: 450px;
    flex-shrink: 0;
  }

  .blog-sidebar-widget {
    position: sticky;
    top: 100px;
  }
}

.blog-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 16px;
}

.blog-sidebar-widget iframe {
  width: 100%;
  border: none;
  min-height: 400px;
}

/* Override Mailchimp embed inline width */
.blog-sidebar-widget #mc_embed_signup {
  width: 100%;
  max-width: 100%;
}

.blog-sidebar-widget .mc-field-group input {
  width: 100%;
}

.blog-sidebar-widget .mc-field-group {
  width: 100%;
}

/* Not Found */
.blog-not-found {
  text-align: center;
  padding: 60px 0;
}

.blog-not-found h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.blog-not-found p {
  color: var(--foreground);
  opacity: 0.6;
  margin-bottom: 16px;
}
