/* ─────────────────────────────────────────────────────────────────────────────
   openhall-case-study.css — page-specific components for the Openhall case study
   Linked after shared.css and editorial.css. Overrides --accent (gallery-gold
   ink) and adds the museum motif: the placard, room labels, the pipeline flow
   with validation gate, and the restoration-notes list.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --accent: #7a5a12;                          /* gallery gold, ink strength — 5.6:1 on white */
  --accent-dim: rgba(122, 90, 18, 0.06);
}

[data-theme="dark"] {
  --accent: #d9b45c;
  --accent-dim: rgba(217, 180, 92, 0.08);
}

/* ── Hero / figure captions ── */
.visual-caption {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--faint);
}

.figure-block { margin-top: 2rem; }
.figure-block img { width: 100%; box-shadow: var(--shadow); }

/* ── The Placard: TL;DR framed like a museum wall label ── */
.placard {
  border: 1px solid var(--text);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.placard-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.placard-medium {
  margin: 0.2rem 0 1.75rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--faint);
}

/* ── Room labels in the section margin ── */
.room-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

/* ── Video embed ── */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 1.5rem;
  background: var(--ph-bg);
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.section-body .video-frame + p { margin-top: 1.5rem; }
.section-body .figure-block + p { margin-top: 1.5rem; }

/* ── Pipeline flow: six stations + the validation gate ── */
.flow {
  list-style: none;
  border-top: 1px solid var(--border);
}

.flow-step {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}

.flow-head h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.98rem;
  line-height: 1.3;
}

.flow-who {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.3rem;
}

.flow-step--ai   .flow-who { color: var(--accent); }
.flow-step--code .flow-who { color: var(--faint); }

.flow-step--ai { border-left: 2px solid var(--accent); padding-left: 1.25rem; }
.flow-step--code { border-left: 2px solid var(--border); padding-left: 1.25rem; }

.flow-step p {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.flow-gate {
  padding: 0.85rem 0 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  border-left: 2px dashed var(--accent);
  background: var(--accent-dim);
}

.flow-gate span {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  max-width: 58ch;
}

/* ── Restoration notes: numbered fix stories ── */
.fix-list {
  list-style: none;
  counter-reset: fix;
  margin-top: 1.5rem;
}

.fix-item {
  counter-increment: fix;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
}

.fix-item:last-child { border-bottom: 1px solid var(--border); }

.fix-item::before {
  content: counter(fix, decimal-leading-zero);
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--faint);
  line-height: 1.4;
}

.fix-item h4 {
  grid-column: 2;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.fix-item p {
  grid-column: 2;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.fix-item strong { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 680px) {
  .flow-step { grid-template-columns: 1fr; gap: 0.4rem; }
  .fix-item  { grid-template-columns: 36px 1fr; gap: 0.9rem; }
  .placard   { padding: 1.25rem; }
}
