/* ─────────────────────────────────────────────────────────────────────────────
   yimu-case-study.css — page accent + page-specific components
   The design language lives in css/editorial.css; this file only sets the
   subtitle-yellow accent and styles Yimu's own pieces (timecodes, pipeline).
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --accent: #8f6b00;            /* subtitle yellow at ink strength */
  --accent-dim: rgba(143, 107, 0, 0.06);
}

[data-theme="dark"] {
  --accent: #ffd644;            /* the subtitle bar yellow from the logo */
  --accent-dim: rgba(255, 214, 68, 0.06);
}

/* ── Demo video: editorial media treatment ── */
.demo-video {
  display: block;
  width: 100%;
  margin-top: 1rem;
  box-shadow: var(--shadow);
  background: #101216;
}

.video-note {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--faint);
}

/* ── "In use" screenshots: wide app states + a tall, narrower settings shot ──
   The settings dialog now runs six stacked sections, too tall to sit
   in an even two-column grid without one image dwarfing the other —
   so it gets its own constrained-width column instead. ── */
.shot-wide {
  display: block;
  width: 100%;
  margin-top: 1rem;
  box-shadow: var(--shadow);
}

.shot-narrow {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 1.5rem auto 0;
  box-shadow: var(--shadow);
}

/* ── SRT-style timecode in section labels ── */
.tc {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--accent);
  font-family: "Syne", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* ── Pipeline: a ruled flow, read top to bottom, arrows carry the motion ── */
.pipeline {
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
}

.section-body p + .pipeline,
.section-body .pipeline + p { margin-top: 1rem; }

.section-body .pipeline + .callout { margin-top: 2rem; }

.pipe-stage {
  display: grid;
  grid-template-columns: minmax(170px, 240px) 1fr;
  column-gap: 2rem;
  row-gap: 0.45rem;
  align-items: start;
  padding: 1.1rem 0;
}

.pipe-arrow {
  display: flex;
  justify-content: center;
  color: var(--accent);
}

.pipe-arrow svg { width: 15px; height: 15px; }

.pipe-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.pipe-kicker {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.pipe-stage h4 {
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  line-height: 1.25;
}

.pipe-stage p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.pipe-tech {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.pipeline-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pipeline-note .callout { margin: 0; }

.pipeline-note .callout p { font-size: 0.88rem; }

@media (max-width: 680px) {
  .pipeline-note { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .pipe-stage { grid-template-columns: 1fr; }
}
