/* case-studies.css — /case-studies and /case-studies/<slug> only (loaded by
   ereader.views.case-studies; itrev.css holds just the library page's
   "Case studies from this book" block). Its own sheet because itrev.css is at
   its wire budget (ereader.page-weight-test). Uses itrev.css's variables. */
/* ==========================================================================
   CASE STUDIES — /case-studies (directory) and /case-studies/<slug> (a case).
   One idea carries the design: every fact sits beside the book's own words.
   The directory lists cases as cards led by the cited book's cover and ending
   on their payoff (what changed); a case reads top to bottom along a story
   rail — the problem → what they did → what changed — with each fact's quote
   set in the reading face (Literata) and the chapter it comes from as the
   link. Stage is told by the label first; the rail's nodes add shape AND hue
   (hollow ring, hollow ring, filled dot).
   HOVER (Alex, 2026-11-18): text never moves. A card takes a background; the
   cited book's cover comes toward the reader.
   ========================================================================== */
/* bottom clearance for the fixed "Need help?" pill */
.cs { max-width: 1180px; margin: 0 auto; padding: 28px var(--page-pad) 112px; }
.cs-staff {
  margin: 0 0 28px; padding: 12px 16px; max-width: 72ch;
  border-inline-start: 3px solid var(--amber-ink); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--surface); color: var(--text2); font-size: .875rem; line-height: 1.5;
}
.cs-staff strong { color: var(--text); }

/* ---- who: [Not for members] [logo] organization · industry ---- */
.cs-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 8px; font-size: .8125rem; font-weight: 600; color: var(--muted); line-height: 1.4; }
.cs-logo { flex: none; display: block; border-radius: 4px; background: #fff; outline: 1px solid oklch(0 0 0 / .08); outline-offset: -1px; }
.cs-badge {
  display: inline-block; margin-inline-end: 8px; padding: 0 8px; border: 1px solid var(--amber-ink);
  border-radius: 999px; color: var(--amber-ink); font-size: .6875rem; font-weight: 700; line-height: 1.6;
  white-space: nowrap; vertical-align: 1px;
}

/* ---- directory head ---- */
.cs-head { margin: 0 0 32px; max-width: 64ch; }

/* ---- what are you trying to fix: tiles, then one row once a challenge is chosen ---- */
.cs-tiles { margin: 0 0 40px; }
.cs-tiles__title { margin: 0 0 14px; font-family: var(--f-display); font-size: 1.1875rem; line-height: 1.3; color: var(--text); }
.cs-tiles__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.cs-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; box-sizing: border-box; height: 100%; min-height: 52px;
  padding: 8px 14px; border: 1px solid var(--hair); border-radius: var(--r-md); background: var(--card);
  color: var(--text); font-size: .875rem; font-weight: 600; line-height: 1.3; text-decoration: none;
  transition: background-color 150ms ease-out;
}
.cs-tile__n { color: var(--faint); font-size: .8125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.cs-tile.is-off { color: var(--faint); }
.cs-chips { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0 0 32px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
.cs-chips__all { flex: none; font-size: .875rem; font-weight: 600; color: var(--teal-ink); text-underline-offset: 3px; }
.cs-chips__list { list-style: none; display: flex; gap: 8px; min-width: 0; margin: 0; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.cs-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px;
  background: var(--card); color: var(--text2); font-size: .8125rem; font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: background-color 150ms ease-out;
}
.cs-chip.is-on { background: var(--btn); border-color: var(--btn); color: var(--btn-t); }
@media (hover: hover) { a.cs-tile:hover, .cs-chip:not(.is-on):hover { background: var(--surface); } }
@media (max-width: 860px) {
  .cs-tiles { margin-bottom: 24px; }
  .cs-tiles__list { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--page-pad-m) * -1); padding-inline: var(--page-pad-m); }
  .cs-tiles__list li { flex: none; }
  .cs-tile { min-height: 40px; border-radius: 999px; white-space: nowrap; }
  .cs-chips { flex-direction: column; align-items: flex-start; }
  .cs-chips__list { width: 100%; }
}
.cs-head__title {
  font-family: var(--f-display); font-size: 2.5rem; line-height: 1.1;
  letter-spacing: var(--ls-display); color: var(--text); margin: 0 0 14px;
}
.cs-head__lede {
  font-family: var(--f-read); font-size: 1.1875rem; line-height: 1.55;
  color: var(--text2); margin: 0; text-wrap: pretty;
}

/* ---- directory: filters rail + results ---- */
.cs-index { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 861px) {
  .cs-index { grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; }
}
.cs-filters__toggle {
  display: flex; align-items: center; gap: 10px; min-height: var(--tap);
  padding: 0 16px; border: 1.5px solid var(--hair); border-radius: var(--r-md);
  font-family: var(--f-display); font-weight: 600; font-size: .9375rem; color: var(--text);
  cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
}
.cs-filters__toggle::-webkit-details-marker { display: none; }
.cs-filters__toggle::after {
  content: ""; margin-inline-start: auto; width: 7px; height: 7px;
  border-inline-end: 1.7px solid currentColor; border-block-end: 1.7px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}
.cs-filters[open] > .cs-filters__toggle::after { transform: rotate(-135deg) translate(-1px, -1px); }
.cs-filters__badge {
  font-family: var(--f-ui); font-weight: 600; font-size: .75rem; color: var(--teal-ink);
  background: var(--teal-soft); border-radius: 999px; padding: 2px 8px;
}
/* wide screens: the rail is always open, so the disclosure has nothing to do */
@media (min-width: 861px) { .cs-filters__toggle { display: none; } }
@media (max-width: 860px) { .cs-filters__form { padding-top: 20px; } }

.cs-search { margin: 0 0 24px; }
.cs-search__input {
  width: 100%; min-height: 40px; padding: 0 12px; box-sizing: border-box;
  border: 1.5px solid var(--hair); border-radius: var(--r-md); background: var(--field);
  color: var(--text); font: 1rem var(--f-ui);
}
.cs-search__input::placeholder { color: var(--faint); }

.cs-facet { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.cs-facet__legend {
  font-family: var(--f-display); font-weight: 700; font-size: .75rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); padding: 0; margin: 0 0 8px;
}
.cs-facet__list { list-style: none; margin: 0; padding: 0; }
.cs-facet__list li { position: relative; display: flex; align-items: center; }
.cs-facet__box {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 18px; height: 18px; margin: 0;
  border: 1.5px solid var(--muted); border-radius: 4px; background: var(--paper); cursor: pointer;
  display: grid; place-content: center;
}
.cs-facet__box::before {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border-inline-start: 2px solid var(--paper); border-block-end: 2px solid var(--paper);
  transform: rotate(-45deg); opacity: 0;
}
.cs-facet__box:checked { background: var(--teal-ink); border-color: var(--teal-ink); }
.cs-facet__box:checked::before { opacity: 1; }
.cs-facet__box:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: none; border-radius: 4px; }
.cs-facet__box:disabled { border-color: var(--hair); cursor: not-allowed; }
.cs-facet__label {
  flex: 1 1 auto; display: flex; align-items: baseline; gap: 10px; min-height: 36px;
  padding: 8px 0 8px 10px; font-size: .9375rem; line-height: 1.3; color: var(--text2); cursor: pointer;
}
.cs-facet__name { flex: 1 1 auto; min-width: 0; }
.cs-facet__box:checked + .cs-facet__label { color: var(--text); font-weight: 600; }
.cs-facet__box:disabled + .cs-facet__label { color: var(--faint); cursor: not-allowed; }
.cs-facet__n { color: var(--faint); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.cs-switch { position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: .9375rem; line-height: 1.25; color: var(--text2); cursor: pointer; }
.cs-switch__box { position: absolute; opacity: 0; width: 34px; height: 20px; margin: 0; cursor: pointer; }
.cs-switch__track { flex: none; position: relative; width: 34px; height: 20px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 50%, var(--hair)); transition: background-color 150ms ease-out; }
.cs-switch__track::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: translate 150ms ease-out; }
.cs-switch__box:checked + .cs-switch__track { background: var(--teal-ink); }
.cs-switch__box:checked + .cs-switch__track::after { translate: 14px 0; }
.cs-switch__box:focus-visible + .cs-switch__track { outline: 2px solid var(--focus); outline-offset: 2px; }
.cs-switch__name { flex: 1 1 auto; min-width: 0; }
.cs-more { margin: 0 0 24px; padding-top: 14px; border-top: 1px solid var(--hair); }
.cs-more__toggle {
  display: flex; align-items: center; justify-content: space-between; min-height: 28px; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.cs-more__toggle::-webkit-details-marker { display: none; }
.cs-more__toggle::after { content: ""; width: 7px; height: 7px; border-inline-end: 1.7px solid currentColor; border-block-end: 1.7px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.cs-more[open] > .cs-more__toggle::after { transform: rotate(-135deg) translate(-1px, -1px); }
.cs-more .cs-facet { margin: 8px 0 0; }
.cs-more .cs-facet__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cs-btn {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-md);
  background: var(--btn); color: var(--btn-t); font: 600 .875rem/1 var(--f-ui); cursor: pointer;
  transition: scale 150ms ease-out;
}
.cs-btn:not(:disabled):active { scale: .96; }
.cs-active__clear {
  font-size: .875rem; font-weight: 600; color: var(--teal-ink);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: from-font;
}

.cs-results__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.cs-results__count {
  font-family: var(--f-display); font-size: .9375rem; font-weight: 600; color: var(--text);
  margin: 0; font-variant-numeric: tabular-nums;
}
.cs-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  list-style: none; margin: 0; padding: 0; }
.cs-active__chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink);
  font-size: .8125rem; font-weight: 600; text-decoration: none;
}

/* ---- a case as a card ---- */
.cs-cards {
  list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.cs-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 20px; border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--card);
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
@media (hover: hover) {
  .cs-card:hover { background: var(--surface); border-color: color-mix(in srgb, var(--muted) 45%, var(--hair)); }
}
.cs-card__title {
  margin: 0 0 10px; font-family: var(--f-display); font-size: 1.125rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em;
  text-wrap: pretty; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.cs-card__link { color: var(--text); text-decoration: none; }
.cs-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cs-card__link:focus-visible { outline: none; box-shadow: none; }
.cs-card:has(.cs-card__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.cs-card__problem { margin: 0 0 14px; color: var(--text2); font-size: .9375rem; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cs-card__result { margin: 0 0 16px; }
.cs-card__label { display: block; margin-bottom: 3px; font-size: .8125rem; font-weight: 700; color: var(--text); }
.cs-card__result p { margin: 0; color: var(--text); font-size: .9375rem; line-height: 1.5; text-wrap: pretty; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.cs-card__from { display: flex; align-items: center; gap: 10px; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--hair); font-size: .8125rem; line-height: 1.35; color: var(--muted); }
.cs-card__from .cs-cover { flex: none; width: 30px; }
.cs-card__from cite { font-style: normal; font-weight: 600; color: var(--text2); }
/* ---- pages of the directory ---- */
.cs-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--hair);
}
.cs-pager__pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.cs-pager__n, .cs-pager__step {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px;
  box-sizing: border-box; border-radius: var(--r-md); color: var(--text2); text-decoration: none;
  font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color 150ms ease-out;
}
.cs-pager__step { padding: 0 14px; border: 1px solid var(--hair); color: var(--text); }
.cs-pager__step.is-off { color: var(--faint); border-color: transparent; }
.cs-pager__n.is-on { background: var(--btn); color: var(--btn-t); }
.cs-pager__gap { min-width: 24px; text-align: center; color: var(--faint); }
@media (hover: hover) {
  a.cs-pager__step:hover, .cs-pager__n:not(.is-on):hover { background: var(--surface); }
}
.cs-empty { padding: 32px 0; color: var(--text2); }
.cs-empty__title { margin: 0 0 6px; font-family: var(--f-display); font-size: 1.1875rem; color: var(--text); }
.cs-empty__body { margin: 0; max-width: 60ch; line-height: 1.55; }
.cs-empty a { color: var(--teal-ink); font-weight: 600; }

/* ---- tags ---- */
.cs-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.cs-tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px;
  border: 1px solid var(--hair); border-radius: 999px; background: var(--paper);
  font-size: .75rem; font-weight: 600; line-height: 1.25; color: var(--text2); text-decoration: none;
}
.cs-tag--more { border-color: transparent; background: transparent; padding-inline: 4px; color: var(--muted); }
.cs-tag--hit { background: var(--teal-soft); border-color: transparent; color: var(--teal-ink); }
a.cs-tag--link { position: relative; z-index: 1; min-height: 30px; transition: background-color 150ms ease-out; }
@media (hover: hover) { a.cs-tag--link:hover { background: var(--surface); } }

/* ---- covers ---- */
.cs-cover {
  display: block; width: 56px; aspect-ratio: 2 / 3; height: auto; object-fit: cover;
  border-radius: 3px; outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px;
  box-shadow: 0 1px 2px rgba(12, 12, 34, .08), 0 4px 12px rgba(12, 12, 34, .06);
}
/* a book with no cover art (the synthetic fixture's invented books): a drawn
   cover — spine band + title — never another book's art */
.cs-cover--drawn {
  position: relative; overflow: hidden; box-sizing: border-box; padding: 8px 6px 6px 12px;
  background: var(--panel); container-type: inline-size;
}
.cs-cover--drawn::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px;
  background: color-mix(in srgb, var(--teal-ink) 55%, var(--panel));
}
.cs-cover__title {
  display: block; font-family: var(--f-display); font-weight: 700; font-size: max(7px, 13cqi);
  line-height: 1.15; color: var(--text2); overflow-wrap: normal; hyphens: manual;
}
/* too small to set a title legibly: the spine band alone */
@container (max-width: 50px) { .cs-cover__title { display: none; } }
[data-theme="dark"] .cs-cover { outline-color: oklch(1 0 0 / .1); box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cs-cover { outline-color: oklch(1 0 0 / .1); box-shadow: none; } }

/* ---- a case ---- */
.cs-case { max-width: 1040px; }
.cs-case__head { max-width: 780px; margin: 0 0 28px; }
.cs-case__head .cs-who { gap: 4px 10px; margin-bottom: 14px; font-size: .9375rem; }
.cs-case__title {
  font-family: var(--f-display); font-size: 2.5rem; line-height: 1.12; letter-spacing: var(--ls-display);
  color: var(--text); margin: 0 0 16px; text-wrap: balance;
}
.cs-case__lede { font-family: var(--f-read); font-size: 1.1875rem; line-height: 1.6; color: var(--text2); margin: 0; text-wrap: pretty; }

/* in short: the quotable paragraph */
.cs-short { margin: 0 0 28px; padding-inline-start: 16px; border-inline-start: 3px solid var(--hair); }
.cs-short__title { margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cs-short__text { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--text); text-wrap: pretty; }

/* at a glance */
.cs-glance {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 20px 28px; margin: 0 0 56px; padding: 22px 24px;
  border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--surface);
}
@media (min-width: 861px) { .cs-glance { grid-template-columns: minmax(0, 2fr); grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; } }
.cs-glance dt { margin: 0 0 5px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cs-glance dd { margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--text); text-wrap: pretty; }
.cs-glance__outcome dd { font-size: 1rem; font-weight: 600; }
.cs-glance cite { display: block; font-style: normal; font-weight: 600; }
.cs-glance__chapter { display: block; margin-top: 2px; font-size: .8125rem; color: var(--muted); }

/* the story rail: one neutral colour, because an outcome can be a failure */
.cs-story { container-type: inline-size; position: relative; padding-inline-start: 32px; margin-bottom: 16px; }
.cs-story::before {
  content: ""; position: absolute; inset-inline-start: 6px; inset-block: 12px 8px;
  width: 2px; background: color-mix(in srgb, var(--muted) 30%, transparent); border-radius: 2px;
}
.cs-stage { position: relative; padding-bottom: 44px; }
.cs-stage:last-child { padding-bottom: 28px; }
.cs-stage__label { position: relative; margin: 0 0 8px; font-family: var(--f-display); font-size: 1.4375rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); line-height: 1.25; }
.cs-stage__label::before {
  content: ""; position: absolute; inset-inline-start: -32px; top: .25em; width: 14px; height: 14px; box-sizing: border-box;
  border-radius: 50%; border: 3px solid var(--text2); background: var(--paper);
}
.cs-stage__none { margin: 12px 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--text2); }
.cs-stage__facts { list-style: none; margin: 0; padding: 0; }
.cs-fact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--hair); }
.cs-fact:first-child { border-top: 0; }
@container (min-width: 620px) { .cs-fact { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; } }
.cs-fact__text { margin: 0; font-size: 1.0625rem; line-height: 1.55; font-weight: 500; color: var(--text); text-wrap: pretty; }

/* evidence: the book's words, then the way to the passage */
.cs-ev { padding-inline-start: 14px; border-inline-start: 2px solid var(--hair); }
.cs-ev__quote { margin: 0 0 6px; }
.cs-ev__quote p { margin: 0; font-family: var(--f-read); font-size: .9375rem; line-height: 1.55; color: var(--text2); text-wrap: pretty; }
.cs-ev__quote p::before { content: "\201C"; }
.cs-ev__quote p::after { content: "\201D"; }
.cs-ev__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: .8125rem; font-weight: 600; line-height: 1.5; }
.cs-ev__link { color: var(--teal-ink); text-underline-offset: 3px; text-decoration-thickness: from-font; }
.cs-ev__more { color: var(--muted); text-underline-offset: 3px; text-decoration-thickness: from-font; }

/* after the story */
.cs-sec { margin: 0 0 44px; }
.cs-sec__title { margin: 0 0 16px; font-family: var(--f-display); font-size: 1.25rem; line-height: 1.3; color: var(--text); }
.cs-figs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cs-fig { padding: 16px 18px; border: 1px solid var(--hair); border-radius: var(--r-md); }
.cs-fig p { margin: 0; }
.cs-fig__measure { font-size: .8125rem; font-weight: 700; color: var(--muted); }
.cs-fig .cs-fig__value { margin: 4px 0 6px; font-family: var(--f-display); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; color: var(--text); }
.cs-fig__note { font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.cs-fig .cs-fig__note + .cs-fig__note { margin-top: 6px; }
.cs-fig .cs-ev__links { margin-top: 8px; }
.cs-people .cs-ev__links { flex-basis: auto; }
.cs-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cs-people li { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .9375rem; color: var(--text); }
.cs-people span { color: var(--muted); }
.cs-book {
  display: inline-grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: center; min-width: min(100%, 380px); box-sizing: border-box;
  padding: 14px 20px 14px 14px; border: 1px solid var(--hair); border-radius: var(--r-lg);
  background: var(--card); text-decoration: none; color: var(--text); transition: background-color 150ms ease-out;
}
.cs-book .cs-cover { width: 72px; transition: scale 200ms cubic-bezier(.2, 0, 0, 1), box-shadow 200ms cubic-bezier(.2, 0, 0, 1); }
.cs-book__text { display: grid; gap: 3px; min-width: 0; }
@media (hover: hover) { .cs-book:hover { background: var(--surface); } }
/* the book comes toward the reader; the words beside it stay put */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cs-book:hover .cs-cover { scale: 1.07; box-shadow: 0 4px 8px rgba(12, 12, 34, .12), 0 14px 28px rgba(12, 12, 34, .18); }
}
.cs-book__title { font-family: var(--f-display); font-style: normal; font-weight: 600; font-size: 1rem; line-height: 1.3; overflow-wrap: break-word; }
.cs-book__by { font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.cs-book__go { margin-top: 6px; font-size: .8125rem; font-weight: 600; color: var(--teal-ink); }
.cs-sec .cs-cards { margin-top: 0; }
.cs-cite { padding-top: 24px; border-top: 1px solid var(--hair); }
.cs-cite__title { margin: 0 0 6px; font-family: var(--f-display); font-size: .9375rem; color: var(--text); }
.cs-cite p { margin: 0; font-size: .8125rem; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.cs-related__all { display: inline-block; margin-top: 20px; font-size: .875rem; font-weight: 600; color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .cs { padding: 20px var(--page-pad-m) 112px; }
  .cs-head__title, .cs-case__title { font-size: 1.875rem; }
  .cs-head__lede, .cs-case__lede { font-size: 1.0625rem; }
  .cs-card { padding: 16px; }
  .cs-pager { justify-content: center; }
  .cs-glance { padding: 18px; margin-bottom: 40px; }
  .cs-story { padding-inline-start: 26px; }
  .cs-stage__label::before { inset-inline-start: -26px; }
}

/* contract v3: talk evidence ("Watch the talk") */
.cs-talk { display: grid; gap: 2px; margin: 0 0 6px; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.cs-talk__eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.cs-talk__title { font-style: normal; font-weight: 600; color: var(--text); overflow-wrap: break-word; }
.cs-talk__speaker { color: inherit; text-underline-offset: 3px; text-decoration-thickness: from-font; }
.cs-talkthumb { display: block; width: 128px; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r-sm, 6px); background: var(--surface); object-fit: cover; }
.cs-book:has(.cs-talkthumb) { grid-template-columns: 128px minmax(0, 1fr); }
