/* Simple workflow charts */
.flow-section { padding: 16px 24px 40px; max-width: 1280px; margin: 0 auto; }
.flow-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0 22px; }
.flow-tab { background: var(--bg-card); color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.flow-tab:hover { color: var(--text); background: var(--bg-card-hover); }
.flow-tab.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.flow-panel, .module-flow { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.module-flow { margin: 0 0 16px; flex-shrink: 0; }
.flow-head { margin-bottom: 18px; }
.flow-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--text); }
.flow-problem { margin: 0; font-size: 14px; color: var(--text-dim); }
.flow-chart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 0; }
.flow-step { position: relative; flex: 1 1 118px; min-width: 118px; max-width: 220px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.flow-num { position: absolute; top: -10px; left: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow-who { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.flow-who-icon { font-size: 16px; }
.flow-what { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.25; }
.flow-note { font-size: 13px; color: var(--text-dim); line-height: 1.45; }
.flow-arrow { flex: 0 0 20px; position: relative; align-self: center; height: 2px; background: var(--accent-light); opacity: .7; }
.flow-arrow::after { content: ""; position: absolute; right: 0; top: -4px; border-left: 7px solid var(--accent-light); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.flow-result { margin-top: 18px; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(0, 206, 201, 0.08); border: 1px solid rgba(0, 206, 201, 0.25); color: var(--text); font-size: 14.5px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.flow-result-tick { color: var(--green); font-weight: 800; }
.flow-open { margin-top: 16px; background: transparent; border: 1px solid var(--border-active); color: var(--accent-light); border-radius: var(--radius-sm); padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.flow-open:hover { background: var(--accent-surface); color: #fff; }
@media (max-width: 760px) {
    .flow-section { padding: 8px 14px 28px; }
    .module-flow { padding: 16px; }
    .flow-panel { padding: 16px; }
    .flow-chart { flex-direction: column; gap: 0; }
    .flow-step { max-width: none; flex: 0 0 auto; }
    .flow-arrow { flex: 0 0 22px; width: 2px; height: 22px; align-self: flex-start; margin-left: 22px; }
    .flow-arrow::after { right: -4px; top: auto; bottom: 0; border-top: 7px solid var(--accent-light); border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 0; }
}

/* let the module page scroll so the chart does not squeeze the screens below it */
.module-view { height: auto; min-height: 100%; }
.module-body { min-height: 640px; }
