/*
  Black-and-white theme override for a single case study page.
  Loaded after tokens.css, styles.css, case-study.css and illustrations.css so it
  wins the cascade. It re-maps the design tokens to a monochrome palette and
  neutralises the few hard-coded accent colours in the shared components, without
  affecting the landing page or the other case studies.
*/

:root {
  --color-background: #ffffff;
  --color-surface: #f1f1f1;
  --color-text: #141414;
  --color-text-muted: #5c5c5c;
  --color-accent: #141414;
  --color-on-accent: #ffffff;
}

/* Keep hairlines readable on white */
.cs-meta,
.cs-section,
.cs-end,
.section,
.facts,
.site-footer {
  border-color: #e4e4e4;
}

.evidence th,
.evidence td {
  border-top-color: #e4e4e4;
}

/* Affinity notes: key notes invert to black, so lift their text to white */
.note {
  background: #f6f6f6;
  color: #141414;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.note.is-key {
  background: var(--color-accent);
  color: #ffffff;
}

/* Matrix highlight zone: swap the green tint for a neutral grey wash */
.matrix .zone {
  background: rgba(20, 20, 20, 0.05);
}

/* Phone mockups: replace every green accent with monochrome equivalents */
.pm-card.is-accent {
  background: #e8e8e8;
  border-left: 3px solid #141414;
}

.pm-chip.on {
  background: #141414;
  color: #ffffff;
}

.pm-btn.accent {
  background: #141414;
  color: #ffffff;
}

.pm-avatar {
  color: #ffffff;
}

.pm-opt.is-sel {
  background: #ececec;
  border-color: #141414;
}

.pm-opt .pm-tag {
  color: #141414;
}

.pm-tag {
  background: #141414;
  color: #ffffff;
}

.pm-steps li.is-now::before {
  background: #ffffff;
  box-shadow: 0 0 0 2px #141414;
}
