/* Tovrik Platform Atlas — Level-2 flow walkthrough styles.
 * Builds on atlas.css :root tokens + product.css layout. Boring + light. */

.flow .topbar .home + .home { margin-left: 4px; }

.topbar h1#f-title .ppill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}

.fwrap { max-width: 1100px; }

/* product tags (small color chips) */
.prodtag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  color: #fff;
  background: var(--c, #94a3b8);
  vertical-align: middle;
}

.stamp.citehealth { font-family: var(--mono); font-weight: 600; }
.stamp.citehealth.ok { color: var(--ok); }
.stamp.citehealth.warn { color: var(--warn); }
.stamp.citehealth.bad { color: var(--bad); }

/* ── mermaid diagram host ──────────────────────────────────────────── */
.fdiagram .mermaid-host {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  overflow-x: auto;
  box-shadow: var(--shadow);
}
.fdiagram .mermaid { margin: 0; }
.fdiagram .mermaid svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.fdiagram pre.mermaid.mermaid-failed {
  white-space: pre;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.mermaid-fallback-note {
  font-size: 12px;
  color: var(--warn);
  margin-bottom: 10px;
}

/* ── step list ─────────────────────────────────────────────────────── */
.steplist { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.step {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: none; }
.snum {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
}
.sbody { flex: 1 1 auto; min-width: 0; }
.swire { font-size: 13px; margin-bottom: 4px; }
.swire code {
  font-family: var(--mono);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 12px;
}
.swire .slabel { color: var(--ink-soft); margin-left: 6px; }
.snote { margin: 4px 0 8px; color: var(--ink); max-width: 70ch; }

/* citation chips */
.cites { display: flex; flex-wrap: wrap; gap: 6px; }
.cite {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  transition: border-color .12s, background .12s;
}
.cite:hover { border-color: var(--line-strong); background: var(--bg); }
.cite .cdot { font-size: 9px; line-height: 1; }
.cite.ok .cdot { color: var(--ok); }
.cite.warn .cdot { color: var(--warn); }
.cite.bad { border-color: var(--bad); color: var(--bad); }
.cite.bad .cdot { color: var(--bad); }

.notelist { margin: 0; padding-left: 18px; }
.notelist li { margin: 6px 0; max-width: 80ch; }
.notelist .cite { margin-left: 4px; }

.fsteps h2 .muted, .psection h2 .muted {
  font-weight: 400; font-size: 12px; color: var(--ink-faint); margin-left: 8px;
}

.pfooter {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
}
.pfooter code {
  font-family: var(--mono);
  background: var(--bg);
  border-radius: 4px;
  padding: 0 4px;
}

/* ── flow index cards ──────────────────────────────────────────────── */
.flowcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}
.flowcard {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--c, var(--accent));
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.flowcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.10);
  border-color: var(--line-strong);
}
.fc-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.fc-sub { font-size: 12px; color: var(--ink-soft); line-height: 1.45; min-height: 34px; }
.fc-meta { margin: 10px 0 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.fc-foot {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  border-top: 1px solid var(--line); padding-top: 8px;
}
.fc-cite.ok { color: var(--ok); }
.fc-cite.warn { color: var(--warn); }
.fc-cite.bad { color: var(--bad); font-weight: 700; }

/* ── index-page live strip ─────────────────────────────────────────── */
.livestrip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.livestrip .ls-label { font-weight: 600; color: var(--ink-soft); }
.livestrip .ls-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
}
.livestrip .ls-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--unknown);
  flex: 0 0 auto;
}
.livestrip .ls-item.ok .ls-dot { background: var(--ok); }
.livestrip .ls-item.bad .ls-dot { background: var(--bad); }
.livestrip .ls-item.warn .ls-dot { background: var(--warn); }
.livestrip .ls-hint { color: var(--ink-faint); margin-left: auto; }
.livestrip a.ls-flows { margin-left: 8px; font-weight: 600; }
