/*
 * Case Study CPT — single (single-pc_case_study.php) + archive (archive-pc_case_study.php).
 * Added 2026-08-30 (docs/09-DECISIONS.md). Page-scoped; loaded only on those two views
 * (inc/enqueue.php). Reuses global tokens + components (.section/.wrap/.ch-tag/.section-h2/.uline/
 * .area-cta/.stat/.zcard/.acc-item); the pieces below are either new or copied from a page-scoped
 * stylesheet that isn't loaded here (.checklist from page-sell.css, .gthumbs from
 * page-property-story.css, .jgrid layout from article.css).
 *
 * 2026-09-11 — the archive's hero + closing stats strip were rebuilt on the retired Property Story
 * archive's design (docs/09-DECISIONS.md). Both are entirely global components (.hero/.hero-img/
 * .hero-content/.guide-label/.hero-title/.hero-sub/.hero-body/.hero-cta, .area-cta/.stats/.stat —
 * all components.css), so nothing new was needed here; the old `.cs-archive-hero` rule (the
 * page-scoped hero it replaced) was removed as dead code. `.cs-archive-grid .jgrid` below still
 * applies — the grid section keeps that class alongside the new `.section#grid` wrapper.
 */

/* ---------------------------------------------------------------- hero ---- */
.cs-hero {
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  align-items: stretch;
  background: var(--cream);
}
.cs-hero-text {
  padding: clamp(48px, 8vw, 104px) clamp(28px, 5vw, 72px) clamp(40px, 6vw, 72px);
  align-self: center;
  max-width: 620px;
}
.cs-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-tag, #8a6d1f);
  margin-bottom: 22px;
}
.cs-hero-text h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
  color: var(--navy);
  margin: 0;
}
.cs-hero-rule {
  display: block;
  width: 46px;
  height: 1px;
  background: var(--navy);
  opacity: 0.35;
  margin: 30px 0;
}
.cs-standfirst {
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: #4a4a44;
  margin: 0;
}
.cs-hero-media {
  position: relative;
  margin: 0;
  min-height: 420px;
}
.cs-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-hero-media figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(to top, rgba(15, 21, 37, 0.72), transparent);
  color: #fff;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: none;
}

/* ---------------------------------------------------------- key facts ---- */
.cs-facts {
  background: var(--navy);
  padding: 0 clamp(20px, 5vw, 56px);
}
.cs-facts-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  /* 1px gap + a light backdrop = hairline dividers between every cell, in both
     directions, at any column count (4-up desktop → 2-up tablet → 1-up mobile).
     Replaces per-cell border-left, which drew a stray vertical rule on stacked
     rows once the grid wrapped. */
  gap: 1px;
  background: rgba(242, 234, 220, 0.14);
}
.cs-fact {
  padding: 30px 26px;
  text-align: center;
  background: var(--navy);
}
.cs-fact-l {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 234, 220, 0.45);
  margin-bottom: 12px;
}
.cs-fact-v {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  color: var(--gold-soft);
  line-height: 1.1;
}
.cs-fact-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: rgba(242, 234, 220, 0.5);
  margin-top: 6px;
}

/* -------------------------------------------------------- body / prose --- */
.cs-body {
  max-width: 1280px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.95;
  color: #3a3a3a;
}
.cs-body p {
  margin: 0 0 22px;
}
.cs-body ul,
.cs-body ol {
  margin: 18px 0 24px;
  padding-left: 20px;
}
.cs-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.cs-body strong {
  color: var(--navy);
}
.cs-h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 2.7vw, 32px);
  line-height: 1.2;
  color: var(--navy);
  margin: 46px 0 18px;
}
.cs-narrative .cs-body > :first-child,
.cs-intro .cs-body > :first-child {
  margin-top: 0;
}
.cs-narrative {
  padding-bottom: 0 !important;
}

.cs-intro {
  background: var(--cream);
}
.cs-body--lead {
  font-size: 18px;
}

/* ------------------------------------------- brief / approach / result -- */
.cs-summary {
  background: var(--warm);
}
.cs-summary-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}
.cs-summary-grid.has-media {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: start;
}
.cs-summary-item {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 34px;
}
.cs-summary-item:first-child {
  margin-top: 0;
}
.cs-kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-tag, #8a6d1f);
  margin: 0 0 14px;
}
.cs-summary-item p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
  color: #4a4a44;
  margin: 0 0 14px;
}
.cs-summary-media {
  margin: 0;
  position: sticky;
  top: 90px;
}
.cs-summary-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------- highlights (ticks) --- */
/* copied from page-sell.css .checklist (not loaded on this view) */
.cs-highlights .checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 44px;
  max-width: 900px;
  margin: 34px 0;
  text-align: left;
}
.cs-highlights .checklist .ci {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cs-highlights .checklist .tick {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 1px;
}
.cs-highlights .checklist .ci p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: #5e5d57;
  margin: 0;
}
@media (max-width: 760px) {
  .cs-highlights .checklist {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------- pull quote --- */
.cs-quote {
  background: var(--navy);
  text-align: center;
}
.cs-pullquote {
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1.4;
  color: var(--cream);
}
.cs-pullquote cite {
  display: block;
  margin-top: 24px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ------------------------------------------------------------ gallery --- */
/* copied from page-property-story.css .gthumbs (not loaded on this view) */
.cs-gallery .gthumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.cs-gallery .gthumb {
  aspect-ratio: 4/3;
  background: #1c2236;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.cs-gallery .gthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------- faq ---- */
.cs-faq .artfaq {
  max-width: 760px;
  margin-top: 26px;
}

/* --------------------------------------------------- meta strip (CTA) --- */
.cs-meta {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.cs-meta .stat {
  text-align: left;
}
.cs-meta .stat-l {
  margin-bottom: 8px;
}
.cs-meta-v {
  font-size: 17px;
  font-family: var(--display);
}

/* ------------------------------------------------- more case studies --- */
.cs-related .jgrid,
.cs-archive-grid .jgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 34px;
}
.cs-related .jgrid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
}

/* ------------------------------------------------------- responsive ---- */
@media (max-width: 900px) {
  .cs-hero {
    grid-template-columns: 1fr;
  }
  .cs-hero-media {
    min-height: 300px;
    order: -1;
  }
  .cs-summary-grid.has-media {
    grid-template-columns: 1fr;
  }
  .cs-summary-media {
    position: static;
  }
  .cs-related .jgrid,
  .cs-archive-grid .jgrid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
