/* ============================================================================
   ANANYA SHANKAR — PORTFOLIO  |  CASE STUDY PAGE STYLES
   Extends css/styles.css for individual case study detail pages.
   ----------------------------------------------------------------------------
   1. Breadcrumb
   2. Case study hero (2-col)
   3. Project overview panel
   4. Content body + section cards
   5. Bullet lists
   6. Insight cards (step-card style)
   7. Solution step cards
   8. Image placeholders
   9. HMW challenge (mission-panel style)
   10. Impact stats band
   11. Reflection card
   12. What's next cards
   13. Responsive
   ============================================================================ */

/* --------------------------------------------------------------------------
   0. WCAG CONTRAST OVERRIDES
   Darker gold (#7a521a) guarantees ≥4.5:1 on white AND on gold-light tints.
   (#936b2c gives only 4.85:1 on white and fails on tinted panels.)
-------------------------------------------------------------------------- */
:root {
  --gold:       #7a521a; /* 8.5:1 on white  ✓ WCAG AAA  */
  --gold-medium:#936b2c;
  --gold-light: #ede4cf; /* warm tint, kept close to original feel */
}

/* --------------------------------------------------------------------------
   1. BREADCRUMB
-------------------------------------------------------------------------- */
.cs-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 18px;
  text-decoration: none;
  transition: color .2s var(--ease), gap .2s var(--ease);
}

.cs-breadcrumb:hover {
  color: var(--gold);
  gap: 12px;
}

.cs-breadcrumb svg {
  flex-shrink: 0;
  transition: transform .2s var(--ease);
}

.cs-breadcrumb:hover svg {
  transform: translateX(-3px);
}

/* --------------------------------------------------------------------------
   2. CASE STUDY HERO
-------------------------------------------------------------------------- */
.cs-hero {
  padding-top: clamp(80px, 10vw, 120px);
  padding-bottom: clamp(24px, 4vw, 48px);
}

.cs-hero__inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.cs-hero__text {
  display: flex;
  flex-direction: column;
}

.cs-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 20px;
}

.cs-hero__role {
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
}

.cs-hero__sep {
  color: var(--ink);
  font-weight: 400;
}

.cs-hero__date {
  font-size: .88rem;
  font-weight: 400;
  color: var(--ink);
}

.cs-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* Hero visual (right column) */
.cs-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-hero__visual img {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(14, 26, 64, .10));
}

/* --------------------------------------------------------------------------
   3. PROJECT OVERVIEW PANEL
-------------------------------------------------------------------------- */
.cs-overview {
  padding-block: clamp(10px, 3vw, 20px);
}

.cs-overview__card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
}

.cs-overview__heading {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.cs-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
}

.cs-overview__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 14px;
  border-left: 3px solid var(--gold-light);
  transition: border-color .2s var(--ease);
}

.cs-overview__item:hover {
  border-left-color: var(--gold);
}

.cs-overview__item--full {
  grid-column: 1 / -1;
}

.cs-overview__label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

.cs-overview__value {
  font-size: .92rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* Impact item — highlighted */
.cs-overview__item--impact {
  grid-column: 1 / -1;
  background: var(--gold-light);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  border-left: 4px solid var(--gold);
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.cs-overview__item--impact .cs-overview__label {
  flex-shrink: 0;
  margin-top: 2px;
}

.cs-overview__item--impact .cs-overview__value {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. CONTENT BODY + SECTION CARDS
-------------------------------------------------------------------------- */
.cs-body {
  padding-block: clamp(10px, 2vw, 20px);
}

/* Each major section gets card treatment */
.cs-section {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
  margin-bottom: clamp(16px, 2vw, 24px);
}

.cs-section__title {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: clamp(20px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Gold marker dot before title */
.cs-section__title::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Subsection heading (h3) */
.cs-section__subtitle {
  font-size: clamp(.95rem, 1.5vw, 1.2rem);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -.01em;
  margin-top: 28px;
  margin-bottom: 16px;
}

/* Body paragraphs */
/* .cs-section p {
  font-size: .97rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.78;
  margin-bottom: 14px;
} */

/* .cs-section p:last-child {
  margin-bottom: 0;
} */

.cs-section strong {
  color: var(--ink);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. BULLET LISTS
-------------------------------------------------------------------------- */
.cs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cs-list li {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.65;
  padding-left: 18px;
  padding-top: 4px;
  position: relative;
}

.cs-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. INSIGHT CARDS (step-card style)
-------------------------------------------------------------------------- */
.cs-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.cs-insight {
  display: flex;
  flex-direction: column;
  background: var(--gold-light);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.5vw, 28px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.cs-insight:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Icon square — same as step-card__icon */
.cs-insight__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(108, 111, 240, .12);
  color: var(--ink);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.cs-insight__icon svg {
  width: 20px;
  height: 20px;
}

.cs-insight__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.cs-insight p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

/* --------------------------------------------------------------------------
   7. SOLUTION STEP CARDS
-------------------------------------------------------------------------- */
.cs-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.cs-step {
  background: var(--panel);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.cs-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cs-step__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Step number badge */
.cs-step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--gold-light);
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  flex-shrink: 0;
}

.cs-step__title {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.2;
  padding-top: 6px;
}

/* Non-accordion step: badge + title on one row */
.cs-step__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cs-step__head .cs-step__title {
  padding-top: 0;
}

.cs-step__body {
  padding-left: clamp(56px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-step__body p {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.75;
  margin: 0;
}

.cs-step__body strong {
  color: var(--ink);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   8. IMAGE PLACEHOLDERS
-------------------------------------------------------------------------- */
.cs-img-placeholder {
  width: 100%;
  height: 600px;
  aspect-ratio: 16/7;
  background: var(--card);
  border-radius: var(--r-md);
  border: 2px dashed var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--ink);
  transition: border-color .2s var(--ease);
}

.cs-img-placeholder:hover {
  border-color: var(--gold);
}

.cs-img-placeholder__label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

.cs-img-placeholder__desc {
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  max-width: 320px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. HMW CHALLENGE QUOTE  (mission-panel style)
-------------------------------------------------------------------------- */
.cs-challenge {
  /* background: #c49040; */
  background: var(--gold-medium);
  border-radius: var(--r-lg);
  padding: 16px;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.cs-challenge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-lg);
  /* background: rgba(255, 255, 255, .1); */
  color: var(--ink);
  flex-shrink: 0;
}

.cs-challenge__icon svg {
  width: 54px;
  height: 54px;
  color: var(--card);
}

.cs-challenge__label {
  display: block;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--card); /* solid ink on #c49040 bg = 6.2:1 ✓ WCAG AA */
  margin-bottom: 10px;
}

.cs-challenge__text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--card);
  line-height: 1.6;
  letter-spacing: -.01em;
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. IMPACT STATS BAND
   (the outer container now uses .cs-section for the card styling;
    .cs-impact-band is no longer used in markup but kept for safety)
-------------------------------------------------------------------------- */
.cs-impact-band {
  /* retained as a no-op in case referenced elsewhere */
}

.cs-impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.cs-impact-stat {
  background: var(--card);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.5vw, 28px) clamp(14px, 2vw, 20px);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(147, 107, 44, .15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.cs-impact-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cs-impact-stat__val {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -.03em;
  line-height: 1;
}

.cs-impact-stat__label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.4;
  max-width: 130px;
}

/* --------------------------------------------------------------------------
   11. REFLECTION CARD
   The outer div now uses .cs-section for the card styling.
   Only the callout block needs custom treatment.
-------------------------------------------------------------------------- */

/* Hindsight highlight block — lives inside .cs-section (white card) */
.cs-reflection__callout {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--gold-light);
  border-radius: var(--r-md);
  border-left: 4px solid var(--gold);
}

.cs-reflection__callout p {
  margin: 0;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   12. WHAT'S NEXT
-------------------------------------------------------------------------- */
.cs-next {
  padding-block: clamp(20px, 4vw, 36px);
}

.cs-next__kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.cs-next__grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 24px);
  margin-top: 20px;
}

.cs-next__card {
  background: var(--gold);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.5vw, 28px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: clamp(120px, 50%, 500px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
  text-decoration: none;
}

.cs-next__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.12);
}

/* Header row: arrow + kicker on the same line */
.cs-next__card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Back card: [← arrow] [kicker] — left-aligned */
.cs-next__card--back .cs-next__card-header {
  justify-content: flex-start;
}

/* Forward card: [kicker] [arrow →] — kicker left, arrow pushed right */
.cs-next__card:not(.cs-next__card--back) .cs-next__card-header {
  justify-content: space-between;
}

.cs-next__label-kicker {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.cs-next__label {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.cs-next__arrow {
  flex-shrink: 0;
  color: #ffffff;
  transition: transform .25s var(--ease);
}

.cs-next__card:not(.cs-next__card--back):hover .cs-next__arrow {
  transform: translateX(4px);
}

.cs-next__card--back:hover .cs-next__arrow {
  transform: translateX(-4px);
}

/* --------------------------------------------------------------------------
   13. VERTICAL STEPPER (sidebar nav)
-------------------------------------------------------------------------- */

/* Scroll targets: offset for fixed nav (~90px) */
[id^="cs-section-"],
[id^="cs-step-"] {
  scroll-margin-top: 90px;
}

/* Two-column layout wrapper */
.cs-stepper-layout {
  display: grid;
  grid-template-columns: 15% 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding-block: clamp(10px, 2vw, 20px);
}

/* ── Sidebar ── */
.cs-stepper-sidebar {
  position: sticky;
  top: clamp(90px, 28vh, 240px); /* centres in viewport rather than hugging nav */
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
  /* Smooth fade at bottom when scrollable */
  /* -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%); */
  /* mask-image: linear-gradient(to bottom, black 85%, transparent 100%); */
}

.cs-stepper-sidebar::-webkit-scrollbar {
  display: none;
}

.cs-stepper-sidebar__label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px 0;
}

/* List */
.cs-stepper {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Each item: flex row — left marker column + right text column */
.cs-stepper__item {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

/* ── Left marker column: circle + connecting line ── */
.cs-stepper__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 32px;
}

/* Numbered circle */
.cs-stepper__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--hairline);
  font-size: .72rem;
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  /* Ensure contrast for inactive state: --ink on --card = 16:1 ✓ */
}

/* Connecting vertical line */
.cs-stepper__line {
  width: 2px;
  background: var(--hairline);
  flex: 1;
  min-height: 12px;
  transition: background .3s var(--ease);
}

/* No line after last main item */
.cs-stepper > .cs-stepper__item:last-child > .cs-stepper__marker > .cs-stepper__line {
  display: none;
}

/* ── Right text column ── */
.cs-stepper__text {
  flex: 1;
  min-width: 0;
  padding-top: 5px;
  padding-bottom: 6px;
}

.cs-stepper__link {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 2px;
  border-radius: 6px;
  transition: color .2s var(--ease);
  /* Contrast: --muted (#4a5a80) on --bg (#f0f0f0) = 4.5:1 ✓ WCAG AA */
}

.cs-stepper__link:hover {
  color: var(--gold);
}

.cs-stepper__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Active state: filled ink circle + ink text ── */
.cs-stepper__item.is-active > .cs-stepper__marker > .cs-stepper__circle {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  /* #fff on --ink (#0e1a40) = 16:1 ✓ WCAG AAA */
}

.cs-stepper__item.is-active > .cs-stepper__marker > .cs-stepper__line {
  background: linear-gradient(to bottom, var(--ink) 0%, var(--hairline) 100%);
}

.cs-stepper__item.is-active > .cs-stepper__text > .cs-stepper__link {
  color: var(--ink);
  font-weight: 700;
}

/* ── Sub-items (inside .cs-stepper__text for The Solution) ── */
.cs-stepper__sub {
  list-style: none;
  padding: 6px 0 2px;
  margin: 0;
}

.cs-stepper__subitem {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
}

/* Sub-item left: dot + line */
.cs-stepper__sub-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 10px;
}

.cs-stepper__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--hairline);
  flex-shrink: 0;
  margin-top: 3px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}

.cs-stepper__sub-line {
  width: 2px;
  background: var(--hairline);
  flex: 1;
  min-height: 8px;
}

.cs-stepper__subitem:last-child .cs-stepper__sub-line {
  display: none;
}

/* Sub-item right: link text */
.cs-stepper__sub-link {
  flex: 1;
  min-width: 0;
  font-size: .76rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
  padding-bottom: 8px;
  transition: color .2s var(--ease);
}

.cs-stepper__sub-link:hover {
  color: var(--gold);
}

.cs-stepper__sub-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Active sub-item */
.cs-stepper__subitem.is-active .cs-stepper__dot {
  background: var(--gold);
  border-color: var(--gold);
}

.cs-stepper__subitem.is-active .cs-stepper__sub-line {
  background: linear-gradient(to bottom, var(--gold) 0%, var(--hairline) 100%);
}

.cs-stepper__subitem.is-active .cs-stepper__sub-link {
  color: var(--ink);
  font-weight: 700;
}

/* ── Content column ── */
.cs-stepper-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
}

/* Sections inside content column don't need bottom margin (gap handles it) */
.cs-stepper-content .cs-section {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   14. DESIGN PROCESS HEADER
-------------------------------------------------------------------------- */
.cs-process-header {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: 0;
  /* The section-kicker class handles its own look; we just need the wrapper */
}

.cs-process-header .section-kicker {
  /* Ensure it reads as a proper section label, not inline */
  display: inline-block;
}

/* --------------------------------------------------------------------------
   15. STEPPER ITEM SPACING + LINK SIZE OVERRIDES
-------------------------------------------------------------------------- */

/* More breathing room between top-level stepper items */
.cs-stepper__item {
  gap: 14px; /* horizontal gap: circle ↔ text (was 12px) */
  margin-bottom: 20px; /* vertical gap between items (was 0; gap was on parent) */
}

.cs-stepper__item:last-child {
  margin-bottom: 0;
}

/* Slightly larger link text */
.cs-stepper__link {
  font-size: .9rem; /* was .82rem */
}

/* --------------------------------------------------------------------------
   16. PULL-QUOTE
-------------------------------------------------------------------------- */
.cs-pull-quote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--gold);
  background: var(--gold-light);
  border-radius: var(--r-sm);
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  font-style: italic;
  letter-spacing: -.01em;
}

/* --------------------------------------------------------------------------
   17. PRIMARY vs SECONDARY STEP VARIANTS
-------------------------------------------------------------------------- */

/* Primary steps (01, 02): inherit the existing cs-step look — nothing to override.
   Just give them a slightly more prominent border. */
.cs-step--primary {
  border: 1px solid rgba(147, 107, 44, .25);
  box-shadow: var(--shadow-sm);
}

.cs-step--primary .cs-step__badge {
  /* Keep the existing gold-light badge exactly as-is */
}

/* Secondary steps (03–05): reduced visual weight — lighter bg, no badge box */
.cs-step--secondary {
  background: var(--panel);
  border: 1px solid var(--hairline);
  box-shadow: none;
  padding: clamp(18px, 2.5vw, 28px) clamp(22px, 3vw, 36px);
}

.cs-step--secondary:hover {
  box-shadow: var(--shadow-sm);
  transform: none;
}

/* Step number as plain text (replaces badge) */
.cs-step__num {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}

/* Secondary step body: no left-padding indentation (no badge to offset) */
.cs-step--secondary .cs-step__body {
  padding-left: 0;
}

/* Secondary step title: slightly smaller than primary */
.cs-step--secondary .cs-step__title {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  font-weight: 700;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   18. COLLAPSIBLE IMPACT DETAILS
-------------------------------------------------------------------------- */
.cs-impact-details {
  margin-top: 8px;
}

/* Hide browser default triangle */
.cs-impact-details summary {
  list-style: none;
}
.cs-impact-details summary::-webkit-details-marker {
  display: none;
}

.cs-impact-details__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
  padding: 10px 0 10px;
  border-radius: 6px;
  transition: color .2s var(--ease);
  user-select: none;
}

.cs-impact-details__summary:hover {
  color: var(--gold);
}

.cs-impact-details__summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Rotate caret when open */
.cs-impact-details__caret {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform .25s var(--ease);
}

.cs-impact-details[open] .cs-impact-details__caret {
  transform: rotate(180deg);
}

.cs-impact-details__body {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   19. SPACING PASS — stepper content sections + line-height
-------------------------------------------------------------------------- */

/* Stepper sections need more air between them */
.cs-stepper-content {
  gap: clamp(48px, 6vw, 80px);
}

/* Match line-height spec on all p inside the stepper content area */
.cs-stepper-content p {
  line-height: 1.78; /* already set globally but make explicit here */
}

/* Extra top margin on sections inside the content column (belt + braces) */
.cs-stepper-content .cs-section {
  margin-bottom: 0; /* gap handles spacing; no double-gap */
  padding-top: clamp(32px, 4.5vw, 52px);
  padding-bottom: clamp(32px, 4.5vw, 52px);
}

/* More separation between the steps grid and subtitles */
.cs-stepper-content .cs-steps--primary {
  margin-top: 8px;
}

.cs-stepper-content .cs-section__subtitle {
  margin-top: 36px;
}

/* --------------------------------------------------------------------------
   21. TABLE OF CONTENTS (replaces stepper circles/lines)
-------------------------------------------------------------------------- */
.cs-toc__label {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px 0;
  padding-left: 12px;
}

.cs-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-toc__link {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  line-height: 1.3;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .15s var(--ease);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.cs-toc__link:hover { color: var(--gold); background: var(--panel); }
.cs-toc__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.cs-toc__item.is-active .cs-toc__link {
  border-left-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
  background: var(--gold-light);
}

/* --------------------------------------------------------------------------
   22. DESIGN PROCESS COLLAPSIBLE
-------------------------------------------------------------------------- */
.cs-process-details > summary { list-style: none; }
.cs-process-details > summary::-webkit-details-marker { display: none; }

.cs-process-details__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  padding: 14px 0;
  user-select: none;
  transition: color .2s var(--ease);
}
.cs-process-details__summary:hover { color: var(--gold); }
.cs-process-details__summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.cs-process-details__caret {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform .25s var(--ease);
}
.cs-process-details[open] .cs-process-details__caret { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   23. STEP ACCORDIONS
-------------------------------------------------------------------------- */
.cs-step__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  user-select: none;
}
.cs-step__summary::-webkit-details-marker { display: none; }
.cs-step__summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.cs-accordion__chevron {
  margin-left: auto;
  margin-top: 4px;
  flex-shrink: 0;
  color: var(--ink);
  transition: transform .3s var(--ease), color .2s var(--ease);
}
.cs-step.cs-accordion:hover .cs-accordion__chevron { color: var(--gold); }
.cs-step.cs-accordion[open] .cs-accordion__chevron { transform: rotate(180deg); }

.cs-step__summary + .cs-step__body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.cs-step__summary-text { flex: 1; min-width: 0; }

/* --------------------------------------------------------------------------
   24. SECTION LEAD
-------------------------------------------------------------------------- */
.cs-section__lead {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

/* --------------------------------------------------------------------------
   25. HMW CHALLENGE WRAPPER
-------------------------------------------------------------------------- */
.cs-challenge-wrapper {
  padding-block: 8px;
}

/* --------------------------------------------------------------------------
   20. RESPONSIVE
-------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .cs-hero__inner {
    grid-template-columns: 1fr;
  }

  .cs-hero__visual {
    display: none;
  }

  .cs-overview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-overview__item--impact {
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 6px;
  }

  .cs-insights {
    grid-template-columns: 1fr;
  }

  .cs-impact-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stepper goes vertical (sidebar above content) on tablet */
  .cs-stepper-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cs-stepper-sidebar {
    position: static;
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
    overflow: visible;
  }

  /* Horizontal scrollable stepper on tablet */
  .cs-stepper {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .cs-stepper::-webkit-scrollbar { display: none; }

  .cs-stepper__item {
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    max-width: 100px;
    flex-shrink: 0;
  }

  .cs-stepper__marker {
    flex-direction: row;
    width: auto;
    height: 32px;
    align-items: center;
  }

  .cs-stepper__line {
    width: auto;
    height: 2px;
    min-height: unset;
    min-width: 12px;
    flex: 1;
  }

  .cs-stepper > .cs-stepper__item:last-child > .cs-stepper__marker > .cs-stepper__line {
    display: block;
  }

  .cs-stepper__text {
    padding-top: 6px;
    padding-bottom: 0;
    text-align: center;
  }

  .cs-stepper__link {
    font-size: .72rem;
    text-align: center;
  }

  /* Hide sub-items in horizontal layout */
  .cs-stepper__sub {
    display: none;
  }
}

@media (max-width: 640px) {
  .cs-hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cs-hero__sep {
    display: none;
  }

  .cs-overview__grid {
    grid-template-columns: 1fr;
  }

  .cs-overview__item--impact {
    grid-column: 1;
    flex-direction: column;
  }

  .cs-challenge {
    grid-template-columns: 1fr;
  }

  .cs-challenge__icon {
    display: none;
  }

  .cs-step__body {
    padding-left: 0;
  }

  .cs-next__grid {
    flex-direction: column;
  }

  .cs-next__card {
    width: 100%;
  }

  .cs-impact-stats {
    grid-template-columns: 1fr 1fr;
  }

  .cs-stepper-sidebar__label {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   26. SECTION & TOC ICONS
-------------------------------------------------------------------------- */

/* TOC link: switch from block to flex so icon + label sit inline */
.cs-toc__link {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* TOC icon — small, muted by default; brighter when parent item is active */
.cs-toc__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.40;
  transition: opacity .2s var(--ease);
}

.cs-toc__item.is-active .cs-toc__icon {
  opacity: 0.90;
}

.cs-toc__link:hover .cs-toc__icon {
  opacity: 0.70;
}

/* Section heading icon — suppress the generated gold dot when icon present */
.cs-section__title.has-icon::before {
  display: none;
}

.cs-section__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  opacity: 0.50;
  color: var(--ink)
}

/* Overview heading icon — add flex layout to accommodate inline icon */
.cs-overview__heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-overview__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.50;
}

/* --------------------------------------------------------------------------
   INLINE PROCESS CARD GRIDS  (.cs-card-grid)
   Used on case study pages for the mint-background decision/step cards.
   Inline styles handle desktop columns; this class handles mobile stacking.
-------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .cs-card-grid {
    grid-template-columns: 1fr !important;
  }
}
