/* ═══════════════════════════════════════════════════════════
   SEW Single Post — MOBILE FIRST
   Refinements on top of Bricks default single post template
   ═══════════════════════════════════════════════════════════ */

/* Hero image header */
.bricks-post-header.has-image {
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.bricks-post-header.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
  z-index: 1;
}
.bricks-post-header .brxe-container {
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
}
.bricks-post-header h1,
.bricks-post-header .brxe-post-title {
  font-family: 'Archivo Black', Impact, sans-serif;
  color: #fff !important;
  font-size: clamp(1.5rem, 5vw, 3rem);
  line-height: 1.15;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Post meta (author · date · comments) */
.bricks-post-header .brxe-post-meta {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.875rem;
}
.bricks-post-header .brxe-post-meta a {
  color: rgba(255,255,255,0.85) !important;
}

/* Content area */
article.brxe-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}
article.brxe-container p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
}
article.brxe-container h2,
article.brxe-container h3 {
  font-family: 'Archivo Black', Impact, sans-serif;
  color: var(--sew-dark-600);
  margin: 2rem 0 1rem;
  word-break: break-word;
  overflow-wrap: break-word;
}
article.brxe-container blockquote {
  border-left: 4px solid var(--sew-coral, var(--sew-primary-500));
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: #f8f5f2;
  border-radius: 0 8px 8px 0;
  overflow: hidden;
}
article.brxe-container blockquote p {
  font-style: italic;
  color: #555;
}
article.brxe-container img {
  max-width: 100%;
  height: auto;
}

/* Author bio */
.brxe-post-author {
  background: #f8f5f2;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
/* Author avatar — constrain to circle */
.brxe-post-author img,
.brxe-post-author .avatar {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}
/* Author text column */
.brxe-post-author .brxe-post-author-inner,
.brxe-post-author > div:not(:first-child) {
  flex: 1 !important;
  min-width: 0 !important;
}
/* Author name */
.brxe-post-author .post-author-name {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.3rem !important;
}
/* Author bio */
.brxe-post-author .post-author-biography,
.brxe-post-author p {
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  color: #555 !important;
  margin: 0 !important;
}

/* Tags */
.bricks-post-meta-wrapper {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Related posts heading */
article.brxe-container > h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Post navigation */
.brxe-post-navigation {
  margin: 2rem 0;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

/* Comments */
.brxe-post-comments {
  margin-top: 2rem;
}

/* ─── Tablet ─── */
@media (min-width: 768px) {
  .bricks-post-header.has-image {
    min-height: 420px;
  }
  article.brxe-container {
    padding: 3rem 2rem;
  }
}

/* ─── Desktop ─── */
@media (min-width: 992px) {
  .bricks-post-header.has-image {
    min-height: 480px;
  }
}

/* Prevent horizontal scroll on mobile */
.layout-default {
  overflow-x: hidden;
  max-width: 100vw;
}
.layout-default article.brxe-container {
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .layout-default article.brxe-container {
    max-width: 800px;
  }
}
