/* Case Study Page — webinar-style chrome with case-study specific elements */

/* Match webinar page width behaviour (full container, not 800px blog width) */
.blog-post.case-study-post {
  max-width: none;
}

/* The stats-bar lives inside the article body on case study pages — it
   sits above the lead paragraph rather than as an extension of the hero. */
.faqs-page__hero--case-study {
  padding-bottom: 4rem;
}

.case-study-post .stats-bar {
  background: transparent;
  padding-top: 4rem;
  padding-bottom: 0;
}

/* Widen subtitle on case-study heroes — case study descriptors often run
   longer than product-page subtitles, so the default 42rem max-width feels
   pinched. */
.faqs-page__hero--case-study .faqs-page__subtitle {
  max-width: 52rem;
}

.case-study-post .blog-post__date-label {
  display: none !important;
}

/* Standard body column — centered to ~56rem like webinars */
.case-study-post__content.block > .container {
  padding-top: 2.5rem;
}

.case-study-post__content.block > .container > p,
.case-study-post__content.block > .container > h2,
.case-study-post__content.block > .container > h3,
.case-study-post__content.block > .container > h4,
.case-study-post__content.block > .container > ul,
.case-study-post__content.block > .container > ol,
.case-study-post__content.block > .container > blockquote,
.case-study-post__content.block > .container > .blog-post__social-share,
.case-study-post__content.block > .container > .case-study-section,
.case-study-post__content.block > .container > .case-study-overview,
.case-study-post__content.block > .container > .case-study-metrics,
.case-study-post__content.block > .container > .case-study-downloads,
.case-study-post__content.block > .container > .webinar-quote-card {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Lead paragraph — same hierarchy as webinar lead
   -------------------------------------------------------------------------- */

.blog-post__content.block .case-study-post__content .blog-post__lead,
.case-study-post__content.block .blog-post__lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem) !important;
  line-height: 1.6 !important;
  font-weight: 500 !important;
  color: var(--vpm-purple-900, #341c4c) !important;
  margin-bottom: 2rem !important;
}

/* --------------------------------------------------------------------------
   Section headings within the case study body
   -------------------------------------------------------------------------- */

.case-study-section {
  margin: 2.5rem auto;
}

.case-study-post__content.block .case-study-section h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem) !important;
  font-weight: 700 !important;
  color: var(--vpm-purple-900, #341c4c) !important;
  line-height: 1.25 !important;
  margin: 0 0 1rem !important;
}

.case-study-post__content.block .case-study-section h3 {
  font-size: clamp(1.125rem, 1.6vw, 1.25rem) !important;
  font-weight: 600 !important;
  color: var(--vpm-purple-900, #341c4c) !important;
  line-height: 1.3 !important;
  margin: 1.75rem 0 0.75rem !important;
}

.case-study-post__content.block .case-study-section p,
.case-study-post__content.block .case-study-section ul,
.case-study-post__content.block .case-study-section ol {
  font-size: 1.0625rem !important;
  line-height: 1.7 !important;
  color: var(--vpm-purple-900, #341c4c) !important;
}

.case-study-section ul,
.case-study-section ol {
  padding-left: 1.25rem;
}

.case-study-section li + li {
  margin-top: 0.375rem;
}

/* --------------------------------------------------------------------------
   Company overview — compact info card with optional summary line
   -------------------------------------------------------------------------- */

.case-study-overview {
  background: #ffffff;
  border: 1px solid #e7e0ee;
  border-radius: 0.625rem;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem auto;
  max-width: 56rem;
  box-shadow: 0 1px 2px rgba(52, 28, 76, 0.04);
}

.case-study-post__content.block .case-study-overview__title {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--vox-lilac, #95569e) !important;
  margin: 0 0 0.875rem !important;
  line-height: 1.4 !important;
}

.case-study-overview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.875rem 1.25rem;
}

.case-study-overview__item dt {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vox-cool-gray, #6B7280);
  margin: 0 0 0.125rem;
}

.case-study-overview__item dd {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vpm-purple-900, #341c4c);
  margin: 0;
  line-height: 1.35;
}

.case-study-post__content.block .case-study-overview__summary {
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
  color: var(--vox-cool-gray, #6B7280) !important;
  margin: 1rem 0 0 !important;
  padding-top: 1rem !important;
  border-top: 1px solid #f0e8f5 !important;
  font-weight: 400 !important;
}

/* --------------------------------------------------------------------------
   Metrics row — flat, on-brand, no boxes
   -------------------------------------------------------------------------- */

.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem 2.5rem;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  background: #f7f3fa;
  border-radius: 0.5rem;
  text-align: center;
}

.case-study-post__content.block .case-study-metric__number {
  font-size: clamp(2.25rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  color: var(--vpm-purple-900, #341c4c) !important;
  line-height: 1 !important;
  margin: 0 0 0.5rem !important;
  letter-spacing: -0.02em !important;
}

.case-study-post__content.block .case-study-metric__label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: var(--vox-lilac, #95569e) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* --------------------------------------------------------------------------
   Downloads — full case study + day-in-the-life
   -------------------------------------------------------------------------- */

.case-study-downloads {
  background: #ffffff;
  border: 1px solid #e7e0ee;
  border-radius: 0.75rem;
  padding: 2rem 2.25rem;
  margin: 3rem auto;
  max-width: 56rem;
  box-shadow: 0 1px 2px rgba(52, 28, 76, 0.04);
}

.case-study-post__content.block .case-study-downloads__title {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: var(--vpm-purple-900, #341c4c) !important;
  margin: 0 0 1.25rem !important;
  line-height: 1.4 !important;
}

.case-study-downloads__list {
  display: grid;
  gap: 0.625rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-study-downloads__link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid #e7e0ee;
  border-radius: 0.5rem;
  background: #faf7fc;
  color: var(--vpm-purple-900, #341c4c) !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.case-study-downloads__link:hover {
  background: #f3ecf8;
  border-color: var(--vox-lilac, #95569e);
  transform: translateY(-1px);
}

.case-study-downloads__icon {
  width: 20px;
  height: 20px;
  color: var(--vox-lilac, #95569e);
  flex-shrink: 0;
}

.case-study-downloads__arrow {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--vox-cool-gray, #6B7280);
  flex-shrink: 0;
}

.case-study-downloads__link:hover .case-study-downloads__arrow {
  color: var(--vpm-purple-900, #341c4c);
}

/* --------------------------------------------------------------------------
   Related case studies footer alignment (mirrors webinar tweak)
   -------------------------------------------------------------------------- */

.content-cards--related .content-card__footer {
  justify-content: flex-end;
  padding-left: 0;
  padding-right: 0;
}

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

@media (max-width: 720px) {
  .case-study-overview,
  .case-study-metrics,
  .case-study-downloads {
    padding: 1.75rem 1.5rem;
  }

  .case-study-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .case-study-metrics {
    grid-template-columns: 1fr;
  }
}
