/* ABOUTME: Deck-local styles shared by every act of Capitalism as Architecture: evidence plates for photographs */
/* ABOUTME: and documents, callouts, the illustrative marker, split stages, act dividers and Factor pointers. */

/*
 * Scoping convention (analysis 22 §8.1 item 6, incident #17): every class this file defines carries
 * the ".ca-" prefix, and no rule here targets a bare shared class (.fig, .quote, .cv, .card, .src)
 * with a descendant selector. `npm run lint-css` enforces both halves of this rule.
 *
 * The four kinds of visual in this deck, and how each is marked so a screenshot still says what it is:
 *   documentary  a photograph or scan of a real thing     .ca-plate, with a dated credit in its caption
 *   empirical    a chart plotted from cited data           .ca-chart, with unit, period and source
 *   constructed  a worked example with invented numbers    data-illustrative, with a .ca-illus marker
 *   model        the backbone loop                         .lp-cv (assets/loop.css)
 */

/* A visible stand-in for a slide that is planned but not yet built. */
.reveal .ca-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 120px;
  border: 2px dashed var(--rule-strong);
  color: var(--text-faint);
  font: 500 var(--ce-reveal-support)/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
}

/* --- stage layouts --- */

/* A figure that is a column: a main object that grows, and a band beneath it. */
.reveal .ca-stack { display: flex; flex-direction: column; gap: 26px; height: 100%; min-height: 0; }
.reveal .ca-stack > .ca-fill { flex: 1 1 auto; min-height: 0; }

/* A figure that is two columns: an object and its reading. --ca-left sets the split. */
.reveal .ca-split {
  display: grid;
  grid-template-columns: var(--ca-left, 1fr) 1fr;
  gap: 48px;
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

/* Every stage layout keeps a standoff under the title, which the shared stage does not provide. */
.reveal .ca-stack, .reveal .ca-split, .reveal .ca-row, .reveal .ca-divider { box-sizing: border-box; padding-top: 26px; }

/* A row of equal plates. */
.reveal .ca-row { display: flex; gap: 28px; height: 100%; min-height: 0; align-items: stretch; }
.reveal .ca-row > * { flex: 1 1 0; min-width: 0; }

/* --- evidence plates: a real photograph or scan, framed, never bled into the ground --- */
.reveal .ca-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  min-height: 0;
  min-width: 0;
}
.reveal .ca-plate > .ca-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--bg-2);
  overflow: hidden;
}
.reveal .ca-plate img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
/* A plate whose border takes the image's own shape, so nothing is letterboxed. The image is shown as
   large as its slot allows and never enlarged past its own pixels. */
.reveal .ca-plate--hug > .ca-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: none;
}
.reveal .ca-plate--hug img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
}
/* A photograph that should fill its frame edge to edge; --ca-focus keeps the subject in the crop. */
.reveal .ca-plate--cover img { object-fit: cover; object-position: var(--ca-focus, center); }

/* The caption under a plate: what it is, when, and who holds it. */
.reveal .ca-plate figcaption,
.reveal .ca-meta {
  margin: 0;
  color: var(--text-dim);
  font: 500 var(--ce-reveal-label)/1.4 var(--mono);
  letter-spacing: .02em;
  text-align: left;
}
.reveal .ca-plate figcaption b { color: var(--text); font-weight: 600; }

/* A callout drawn on a plate: a gold outline over one part of the image, positioned in percent of the frame. */
.reveal .ca-callout {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  box-sizing: border-box;
  border: 3px solid var(--gold);
  border-radius: 3px;
  background: color-mix(in oklab, var(--gold) 10%, transparent);
}

/* --- the illustrative marker: this example was constructed for the talk (Slide Contract C9) --- */
.reveal .ca-illus {
  display: inline-block;
  align-self: flex-start;
  margin: 0;
  padding: 4px 12px;
  border: 1px dashed var(--text-faint);
  border-radius: 3px;
  color: var(--text-dim);
  font: 500 var(--ce-reveal-label)/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --- reading cards: the few words that say what a plate shows --- */
.reveal .ca-read { display: flex; flex-direction: column; justify-content: center; gap: 22px; min-width: 0; }
.reveal .ca-read p { margin: 0; }
.reveal .ca-big { color: var(--text-bright); font: 400 54px/1.12 var(--serif); }
.reveal .ca-big em { color: var(--gold); font-style: italic; }
.reveal .ca-say { color: var(--text); font: 400 var(--ce-reveal-body)/1.3 var(--sans); }
.reveal .ca-say b { color: var(--text-bright); font-weight: 600; }

/* A verbatim quotation from a source, with its attribution. */
.reveal .ca-quote {
  margin: 0;
  padding: 6px 0 6px 30px;
  border-left: 3px solid var(--gold);
  color: var(--text-bright);
  font: italic 400 44px/1.22 var(--serif);
}
.reveal .ca-quote-by { margin: 0; padding-left: 33px; }

/* --- Factor pointers: the audience knows the Factors; each pointer carries the page to go to --- */
.reveal .ca-factor {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0;
  color: var(--text-dim);
  font: 500 var(--ce-reveal-support)/1.3 var(--mono);
  letter-spacing: .02em;
}
.reveal .ca-factor b { color: var(--gold); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.reveal .ca-factor span { color: var(--text); }

/* --- act dividers: the part of the loop this act looks at, and where to read more --- */
.reveal .ca-divider {
  display: grid;
  grid-template-columns: 760px 1fr;
  align-items: center;
  gap: 80px;
  height: 100%;
}
/* Sizes for the text-free mini loop where a layout in this file places it. */
.reveal .ca-mini-divider { width: 760px; height: 266px; }
.reveal .ca-divider .ca-big { font-size: 76px; }
.reveal .ca-divider .ca-quote { font-size: 64px; }
.reveal .ca-divider .ca-read { gap: 30px; }
.reveal .ca-divider .ca-plate { height: 100%; }

/* --- question keys under the anchor loop: a mini loop with its region lit, and the question it stands for --- */
.reveal .ca-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0; padding: 0; list-style: none; }
.reveal .ca-keys li { display: flex; align-items: center; gap: 22px; margin: 0; }
.reveal .ca-mini-key { width: 160px; height: 56px; }
.reveal .ca-keys p { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.reveal .ca-keys b { color: var(--text-bright); font: 400 38px/1.1 var(--serif); white-space: nowrap; }
.reveal .ca-keys span { color: var(--text-dim); font: 400 var(--ce-reveal-support)/1.25 var(--sans); }

/* --- a band of short cells under a figure: what was shown, or what the parts are called --- */
.reveal .ca-band { display: grid; grid-template-columns: repeat(var(--ca-cols, 3), 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.reveal .ca-band li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 14px 22px;
  border-top: 3px solid var(--rule-strong);
  background: var(--bg-2);
}
.reveal .ca-band b { color: var(--text-bright); font: 600 var(--ce-reveal-body)/1.2 var(--sans); }
.reveal .ca-band span { color: var(--text-dim); font: 400 var(--ce-reveal-support)/1.25 var(--sans); }
.reveal .ca-band .ca-meta { color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }

/* --- the recap: each question of the investigation, its part of the loop, its answer, and where to read more --- */
.reveal .ca-answers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; height: 100%; margin: 0; padding: 26px 0 0; box-sizing: border-box; list-style: none; }
.reveal .ca-answers li { display: flex; flex-direction: column; gap: 20px; min-width: 0; margin: 0; padding: 28px 28px 24px; border-top: 3px solid var(--gold); background: var(--bg-2); }
.reveal .ca-mini-answer { width: 100%; height: 124px; }
.reveal .ca-answers h3 { margin: 0; color: var(--text-bright); font: 400 50px/1.06 var(--serif); }
.reveal .ca-answers p { margin: 0; color: var(--text); font: 400 34px/1.28 var(--sans); }
.reveal .ca-answers .ca-meta { margin-top: auto; overflow-wrap: anywhere; }

/* --- appendix ledgers: many short rows, two columns, read after the talk and not during it --- */
.reveal .ca-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 56px; height: 100%; margin: 0; padding: 14px 0 0; box-sizing: border-box; list-style: none; align-content: start; }
.reveal .ca-ledger li { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--rule-strong); color: var(--text-dim); font: 400 20px/1.32 var(--sans); }
.reveal .ca-ledger b { color: var(--text-bright); font-weight: 600; }
.reveal .ca-ledger em { color: var(--gold); font-style: normal; }
