.single-post {
  background: #f8fafc;
}

.single-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.single-pill {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 1rem;
  background: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.single-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  color: #0f172a;
}

.single-meta {
  display: inline-flex;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.95rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.single-content {
  padding-bottom: 4rem;
}

.single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.single-article {
  background: #fff;
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}

.single-cover {
  margin: -2.25rem -2.25rem 2rem;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  overflow: hidden;
}

.single-cover__img {
  width: 100%;
  height: auto;
  display: block;
}

.single-body {
  color: #1f2937;
  font-size: 1.05rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}

.single-body h2,
.single-body h3,
.single-body h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #0f172a;
}

.single-body p {
  margin-bottom: 1.5rem;
}

.single-body ul,
.single-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.single-nav {
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.5rem;
}

.single-nav__item a {
  color: #4f46e5;
  font-weight: 600;
}

.single-sidebar {
  width: 100%;
}

@media (min-width: 900px) {
  .single-sidebar {
    position: sticky;
    top: 2rem;
  }
}

.single-sidebar__stack > * + * {
  margin-top: 2rem;
}

.single-author,
.single-cta {
  background: #fff;
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.single-author {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.single-author__avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #6c39fb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  overflow: hidden;
}

.single-author__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-author__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.single-author__role {
  margin: 0.2rem 0 0;
  color: #475569;
  font-size: 0.9rem;
}

.single-cta h2 {
  margin: 0 0 0.5rem;
}

.single-cta p {
  margin: 0 0 1.2rem;
  color: #475569;
}

@media (max-width: 900px) {
  .single-article {
    padding: 1.5rem;
  }

  .single-cover {
    margin: -1.5rem -1.5rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .single-hero {
    padding: 3rem 0 1.25rem;
  }

  .single-hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }

  .single-meta {
    font-size: 0.9rem;
    gap: 0.35rem 0.75rem;
  }

  .single-layout {
    gap: 2rem;
  }

  .single-article {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .single-cover {
    margin: -1.25rem -1.25rem 1.25rem;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  .single-body {
    font-size: 1rem;
  }
}
.single-content,
.single-layout {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}

.container.single-layout {
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 40px);
}

.single-article img,
.single-article figure,
.single-article iframe,
.single-article video {
  max-width: 100%;
  height: auto;
}

@media (min-width: 1340px) {
  .single-post .container {
    width: min(1340px, 92vw);
    max-width: 1340px;
  }

  .single-layout.single-layout--with-sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  @supports selector(:has(*)) {
    .single-layout:has(.single-sidebar) {
      grid-template-columns: minmax(0, 1fr) 320px;
    }
  }
}
