/* ─────────────────────────────────────────────────────────────────────────────
   kickoff-buddy-case-study.css — page accent + page-specific components
   The design language lives in css/editorial.css; this file only sets the
   pitch-green accent and styles Kickoff Buddy's own pieces (match minutes,
   video frame, AI pipeline, architecture diagram).
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --accent: #0a7a44;            /* pitch green at ink strength */
  --accent-dim: rgba(10, 122, 68, 0.06);
}

[data-theme="dark"] {
  --accent: #38d97b;            /* floodlit pitch green */
  --accent-dim: rgba(56, 217, 123, 0.06);
}

/* ── Match-minute marker in section labels ── */
.minute {
  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;
}

/* ── Video embed: bare 16:9 frame, shadowed like a screenshot ── */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ph-bg);
  box-shadow: var(--shadow);
}

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

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

/* ── 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; }

/* ── Architecture: ruled layers between black rules, plain type ── */
.arch {
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
}

.arch-layer { padding: 1.1rem 0 1.5rem; }

.arch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.arch-head h4 {
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
}

.arch-head span {
  font-size: 0.72rem;
  color: var(--faint);
}

.arch-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem 1.5rem;
}

.arch-item {
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.arch-item strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 0.78rem;
}

.arch-item small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.15rem;
}

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.arch-flow::before { content: "\2193"; }

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

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