/* blog-show.css — single blog article */

.blog-show-page {
  --blog-show-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --blog-show-column: min(1100px, 100%);
}

.blog-show-column {
  width: 100%;
  max-width: var(--blog-show-column);
  margin-left: auto;
  margin-right: auto;
}

/* ---- Hero ---- */

.blog-show-hero {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(20px, 3vw, 32px);
  background:
    radial-gradient(ellipse 70% 60% at 20% 0%, rgba(0, 147, 223, 0.12), transparent 50%),
    linear-gradient(180deg, var(--cw-bg-soft) 0%, #fff 100%);
}

.blog-show-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 800;
  color: var(--cw-blue);
  transition: gap 0.25s var(--blog-show-ease), color 0.2s ease;
}

.blog-show-back:hover {
  color: var(--cw-blue-dark);
  gap: 14px;
}

/* ---- Cover ---- */

.blog-show-cover {
  margin: 0 0 clamp(24px, 3.5vw, 36px);
  width: 100%;
  aspect-ratio: 1100 / 320;
  max-height: 320px;
  border-radius: var(--cw-radius-lg);
  overflow: hidden;
  background: var(--cw-bg-soft);
  box-shadow: 0 14px 36px rgba(8, 40, 84, 0.1);
}

.blog-show-cover__img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.blog-show-page h1.blog-show-hero__title {
  font-size: 45px !important;
  text-align: left;
  margin-bottom: 16px;
  line-height: 1.08;
  animation: blog-show-rise 0.65s var(--blog-show-ease) both;
}

.blog-show-hero__excerpt {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
  color: var(--cw-text-muted);
  margin: 0 0 16px;
  max-width: none;
  animation: blog-show-rise 0.65s var(--blog-show-ease) 0.06s both;
}

.blogs-meta--hero {
  margin-bottom: 0;
  animation: blog-show-rise 0.65s var(--blog-show-ease) 0.1s both;
}

.blog-show-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(8, 40, 84, 0.1);
  animation: blog-show-rise 0.65s var(--blog-show-ease) 0.14s both;
}

.blog-show-author__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cw-navy) 0%, #0a3a6e 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.blog-show-author__name {
  margin: 0;
  font-weight: 800;
  color: var(--cw-navy);
}

.blog-show-author__role {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--cw-text-light, #666);
}

/* ---- Article body ---- */

.blog-show-content {
  padding-top: 0 !important;
  padding-bottom: clamp(48px, 7vw, 88px);
}

.blog-show-article {
  overflow: hidden;
}

.blog-show-lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: var(--cw-navy);
  font-weight: 600;
  margin: 0 0 32px;
}

.blog-show-page .blog-show-article h2 {
  font-family: var(--cw-font-body) !important;
  font-size: 22px !important;
  font-weight: 800;
  text-transform: none !important;
  letter-spacing: 0;
  margin: 40px 0 14px;
  color: var(--cw-navy);
}

.blog-show-article h3 {
  font-family: var(--cw-font-body) !important;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: none !important;
  margin: 28px 0 10px;
}

.blog-show-article p {
  color: var(--cw-text-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin: 0 0 20px;
}

.blog-show-article ul.cw-checklist {
  margin: 8px 0 28px;
}

.blog-show-figure {
  margin: 28px 0 32px;
  border-radius: var(--cw-radius-md);
  overflow: hidden;
}

.blog-show-figure__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--cw-radius-md);
}

.blog-show-figure__caption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cw-text-light, #666);
  text-align: left;
}

.blog-show-figure--full {
  clear: both;
  width: 100%;
  margin: 36px 0;
}

.blog-show-figure--full .blog-show-figure__caption {
  text-align: center;
}

@media (min-width: 900px) {
  .blog-show-figure--right,
  .blog-show-figure--left {
    width: min(46%, 460px);
    margin-top: 6px;
    margin-bottom: 24px;
  }

  .blog-show-figure--right {
    float: right;
    margin-left: 36px;
  }

  .blog-show-figure--left {
    float: left;
    margin-right: 36px;
  }

  .blog-show-article h2,
  .blog-show-article h3,
  .blog-show-article ul.cw-checklist,
  .blog-show-quote,
  .blog-show-figure--full {
    clear: both;
  }
}

.blog-show-quote {
  margin: 36px 0;
  padding: 28px 28px 28px 32px;
  border-left: 4px solid var(--cw-blue);
  background: linear-gradient(135deg, var(--cw-bg-soft) 0%, var(--cw-bg-light) 100%);
  border-radius: 0 var(--cw-radius-md) var(--cw-radius-md) 0;
}

.blog-show-quote p {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: var(--cw-navy);
  font-weight: 600;
  font-style: italic;
}

.blog-show-quote__attribution {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  color: var(--cw-text-muted);
}

/* ---- Related ---- */

.blog-show-related__head {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.blog-show-related__head .cw-heading {
  margin-bottom: 0;
}

.blog-show-related .blogs-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---- CTA ---- */

.blog-show-cta__inner {
  text-align: center;
}

.blog-show-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ---- Motion ---- */

@keyframes blog-show-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blogs-meta--hero,
  .blog-show-hero__title,
  .blog-show-hero__excerpt,
  .blog-show-author,
  .blog-show-back {
    animation: none !important;
    transition: none !important;
  }
}

/* ---- Responsive ---- */

@media (max-width: 992px) {
  .blog-show-related .blogs-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-show-cover {
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }
}

@media (max-width: 768px) {
  .blog-show-related .blogs-grid--compact {
    grid-template-columns: 1fr;
  }

  .blog-show-cover {
    aspect-ratio: 16 / 10;
    max-height: 220px;
  }

  .blog-show-cta__actions .cw-btn {
    width: 100%;
  }
}
