/* Blog styles for www.cocon.center — layered on top of the Webflow export.
   Editorial layout modelled on the reference design: left section nav,
   big headline, topic pills, and title/excerpt + image list rows. */

/* The navbar pill is self-contained (dark gradient); keep its links white and
   push content below the fixed nav. No full-width bar behind it. */
.nav-fixed .footer4_link { color: #fff; }
.main-wrapper { padding-top: 96px; }

:root { --blog-accent: #5b40e0; --blog-ink: #1c1c24; --blog-muted: #7c7c8a; }

.blog-empty { color: var(--blog-muted); font-size: 1.1rem; }

/* ---- Listing: sidebar + main ---- */
.blog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 4rem;
}
.blog-sidebar { display: flex; flex-direction: column; gap: 0.85rem; padding-top: 0.5rem; }
.blog-sidebar_link {
  color: var(--blog-muted); text-decoration: none;
  font-size: 1.25rem; font-weight: 700; line-height: 1.3;
}
.blog-sidebar_link:hover { color: var(--blog-ink); }
.blog-sidebar_link.is-active { color: var(--blog-ink); }

.blog-headline {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.05;
  color: var(--blog-ink); margin: 0 0 2rem;
}

.blog-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3.5rem; }
.blog-pill {
  background: #eaf4fb; color: #2f7fb0; text-decoration: none;
  padding: 0.5rem 1.1rem; border-radius: 8px;
  font-size: 1rem; font-weight: 500; transition: background .15s ease;
  border: none; font-family: inherit; line-height: inherit; cursor: pointer;
}
.blog-pill:hover { background: #d9ecf7; }
.blog-pill.is-active { background: #2f7fb0; color: #fff; }

/* ---- List rows ---- */
.blog-list { display: flex; flex-direction: column; }
.blog-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: 3rem; align-items: start;
  padding: 2.75rem 0; border-bottom: 1px solid #e7e7ee;
}
.blog-row:first-child { padding-top: 0; }
.blog-row.is-textonly { grid-template-columns: 1fr; }
.blog-row_title { margin: 0 0 1.25rem; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.1; }
.blog-row_title a { color: var(--blog-ink); text-decoration: none; }
.blog-row_title a:hover { color: var(--blog-accent); }
.blog-row_excerpt { color: var(--blog-muted); font-size: 1.15rem; line-height: 1.55; margin: 0 0 1.5rem; }
.blog-row_date { color: var(--blog-ink); font-weight: 600; }
.blog-row_more { color: var(--blog-accent); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.blog-row_more:hover { text-decoration: underline; }
.blog-row_media { display: block; }
.blog-row_media img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover;
  border-radius: 12px; background: #f1f1f6;
}

/* ---- Article detail ---- */
.blog-article-layout {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: 4rem; align-items: start;
}
.blog-article_aside { padding-top: 0.75rem; }
.blog-back { color: var(--blog-accent); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.blog-back:hover { text-decoration: underline; }
.blog-article { max-width: 760px; }
.blog-article_eyebrow { color: var(--blog-muted); font-size: 1.1rem; margin-bottom: 1.5rem; }
.blog-article_title {
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800;
  line-height: 1.08; color: var(--blog-ink); margin: 0 0 2rem;
}
.blog-article_lead {
  font-size: 1.4rem; line-height: 1.5; font-weight: 700;
  color: var(--blog-ink); margin: 0 0 2.5rem;
}
.blog-article_hero { width: 100%; border-radius: 14px; margin: 0 0 2.5rem; }
.blog-article_content { font-size: 1.2rem; line-height: 1.7; color: var(--blog-muted); }
.blog-article_content h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 500; color: var(--blog-ink); margin: 2.5rem 0 1rem; }
.blog-article_content h3 { font-size: 1.4rem; font-weight: 600; color: var(--blog-ink); margin: 2rem 0 0.75rem; }
.blog-article_content p { margin: 0 0 1.4rem; }
.blog-article_content a { color: var(--blog-accent); }
.blog-article_content ul, .blog-article_content ol { margin: 0 0 1.4rem 1.3rem; }
.blog-article_content img { max-width: 100%; border-radius: 12px; }
.blog-article_author { display: flex; align-items: center; gap: 0.75rem; margin-top: 3rem; color: var(--blog-ink); font-weight: 600; }
.blog-article_avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.blog-article_tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.blog-tag { background: #f2f2f6; color: var(--blog-muted); padding: 0.35rem 0.8rem; border-radius: 8px; font-size: 0.9rem; text-decoration: none; transition: background .15s ease, color .15s ease; }
.blog-tag:hover { background: #eaf4fb; color: #2f7fb0; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .blog-layout, .blog-article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .blog-sidebar { flex-direction: row; flex-wrap: wrap; gap: 1.25rem; }
  .blog-sidebar_link { font-size: 1.05rem; }
  .blog-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .blog-row_media { order: -1; }
}
