/*
 * Author: Hariram S <ramhari4090@gmail.com>
 *
 * Styles for the BI-tools comparison page that the shared matrix (visuals.css
 * .cmp, .mk) does not cover: a fourth matrix state for facts that were not
 * checked, the wide eight-column matrix, the steps graphic, and the sources
 * list. Every state is a shape plus a word, never colour alone.
 *
 * Used by:
 *     landing/dotwave-vs-bi-tools.html
 *
 * Depends on:
 *     landing/assets/site.css     (tokens --surface, --line, --muted, --accent, --r, --t5)
 *     landing/assets/visuals.css  (.cmp, .cmp-wrap, .mk, .cmp-legend)
 */

/* Matrix: eight columns need more room than the shared three-column table. */
.cmp-bi { min-width: 1080px; }
.cmp-bi th, .cmp-bi td { padding: 12px 10px; font-size: 13px; }
.cmp-bi tbody th { width: 17%; font-size: var(--t5); }
.cmp-bi thead th { font-size: 11px; letter-spacing: .05em; }
.cmp-bi td .mk { font-size: 13px; }
.mk-nc::before { border-style: dashed; border-color: var(--muted); }
.mk-nc { color: var(--muted); font-weight: 500; }

/* Steps graphic */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; list-style: none; }
.steps > li { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.steps h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: #fff; }
.steps .count { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.step-bar { display: flex; gap: 4px; }
.step-bar i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--accent-ink); border-radius: 6px; font: 600 12px/1 var(--mono); font-style: normal; color: var(--ink); }
.step-bar i.end { background: var(--accent-ink); color: #0a0a0b; }
.step-bar i.end.static { background: transparent; color: var(--ink); border-style: dashed; }
.steps ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: var(--t5); line-height: 1.5; color: #d4d4d8; }
.steps ol li::marker { color: var(--accent-ink); font-weight: 600; }
.steps .finish { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
.steps .finish b { color: var(--ink); }
.steps-cap { margin-top: 18px; padding: 12px 16px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: var(--t5); line-height: 1.55; color: #d4d4d8; max-width: 80ch; }
.steps-cap b { color: #fff; }

.src { padding-left: 1.2em; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.src a { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .cmp-bi { min-width: 0; }
  .cmp-bi td { padding: 8px 0; font-size: var(--t5); }
  .cmp-bi tbody th { width: auto; }
}
