/* =========================================================================
   The polish layer for the case-study pages.
   Same layout as the original detail page (title with superscript
   category, orange/black split band, "Case in numbers", bars, goal /
   strategy / result, "Want to see all case studies?" cube). Refinements only.
   ========================================================================= */

/* Title: display tracking tightened (apple-design §15; T-LEADING) */
.polished-case .cs-title-heading {
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.polished-case .cs-title-heading span {
  letter-spacing: 0;
}

/* "Case in numbers" and the content headings share one display voice */
.polished-case .cs-number-heading h2,
.polished-case .cs-content-text-wrapper h2 {
  letter-spacing: -0.03em;
  line-height: 0.98;
}

/* Long-form text: comfortable measure and leading (T-MEASURE, T-LEADING) */
.polished-case .cs-content-text-wrapper .text-24 {
  max-width: 60ch;
  font-size: 1.375rem;
  line-height: 1.45;
}
.polished-case .cs-detail-desc-about-bottom .text-24 {
  max-width: 52ch;
  line-height: 1.4;
}

/* Bars: clean rectangles, the number reads on the dark fill (F-CONTRAST-TEXT) */
.polished-case .bar-progress-wrap {
  height: 96px;
  overflow: hidden;
}
.polished-case .bar-progress-wrap > div {
  height: 96px;
  will-change: transform;
}
.polished-case .bar-progress-number p {
  margin: 0;
  letter-spacing: -0.02em;
}

/* Approval note on the light "Case in numbers" panel */
.polished-case .cs-number-wrapper .polished-note {
  margin-top: var(--p-4);
}

/* "Want to see all case studies?": the 88 px orange link sits on #1e1e1e
   (5.06:1); a plain next-case link is added under it (wayfinding:
   apple-design §16) */
.polished-case .polished-next-case {
  margin: var(--p-4) 0 0;
  font-size: 24px;
  line-height: 1.3;
  color: #d9d9d9;
}
.polished-case .polished-next-case a {
  color: var(--p-white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.polished-case .polished-next-case a:hover {
  color: var(--p-signal);
}

@media (max-width: 767px) {
  .polished-case .bar-progress-wrap,
  .polished-case .bar-progress-wrap > div {
    height: 80px;
  }
  .polished-case .cs-content-text-wrapper .text-24 {
    font-size: 1.125rem;
  }
}
