/* Working artefacts on the featured case studies: NN/g-format journey
   maps and standard-notation user flows. Content in every artefact is
   taken from the facts already stated on its page; nothing here is
   decorative. Loaded only on the three featured case studies. */

.art{margin:28px 0 8px;border:1px solid var(--bd);border-radius:var(--r);background:#fff;overflow:hidden}
.art-h{display:flex;justify-content:space-between;gap:16px;align-items:baseline;padding:14px 20px;border-bottom:1px solid var(--bd)}
.art-t{font-size:13px;font-weight:600;color:var(--tx)}
.art-k{font-size:12.5px;color:var(--tx3);white-space:nowrap}
.art-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.art-note{font-size:12.5px;color:var(--tx3);line-height:1.55;margin:10px 0 0;max-width:72ch}

/* ---------- Journey map (NN/g layout) ---------- */
.jm{min-width:860px}
.jm-top{display:grid;grid-template-columns:1fr 1.4fr 1.4fr;border-bottom:1px solid var(--bd)}
.jm-top>div{padding:14px 20px}
.jm-top>div+div{border-left:1px solid var(--bd)}
.jm-lab{font-size:12.5px;color:var(--tx3);margin-bottom:4px}
.jm-top p{font-size:13px;line-height:1.5;color:var(--tx)}
.jm-grid{display:grid;grid-template-columns:96px repeat(var(--n),1fr)}
.jm-grid>*{padding:12px 14px;font-size:12.5px;line-height:1.5;color:var(--tx2);border-bottom:1px solid var(--bd)}
.jm-grid>*:not(.jm-rl){border-left:1px solid var(--bd)}
.jm-rl{font-size:12.5px;color:var(--tx3);background:var(--bg)}
.jm-ph{font-size:12.5px!important;font-weight:600;color:var(--tx)!important;background:var(--bg)}
.jm-ph span{display:block;font-weight:400;font-size:12.5px;color:var(--tx3);margin-bottom:2px}
.jm-emo{grid-column:2/-1;padding:0!important;height:96px}
.jm-emo svg{display:block;width:100%;height:100%}
.jm-pain{color:#8E1F2B!important}
.jm-opp{display:grid;grid-template-columns:96px 1fr;background:var(--bg)}
.jm-opp>.jm-rl{padding:14px;border-right:1px solid var(--bd)}
.jm-opp ul{list-style:none;display:grid;grid-template-columns:repeat(var(--n),1fr);margin:0;padding:0}
.jm-opp li{padding:12px 14px;font-size:12.5px;line-height:1.5;color:var(--tx)}
.jm-opp li+li{border-left:1px solid var(--bd)}

/* Flows need more width than the reading column to stay legible. */
.wx{max-width:1280px;margin:0 auto;padding:0 32px}
@media(max-width:768px){.wx{padding:0 20px}}

/* ---------- User flow (flowchart notation) ---------- */
.uf svg{display:block;min-width:900px;width:100%;height:auto}
.uf text{font-family:var(--font);fill:#000}
.uf .t{font-size:13.5px}
.uf .s{font-size:12px;fill:#6B6B6B}
.uf .lbl{font-size:12.5px;fill:#6B6B6B}
.uf .scr{fill:#fff;stroke:#767676;stroke-width:1}
.uf .dec{fill:#F0F0EE;stroke:#767676;stroke-width:1}
.uf .term{fill:#000}
.uf .term+text,.uf text.on{fill:#fff}
.uf .ok{fill:#E2EDE7;stroke:#2F6F4F}
.uf .stop{fill:#FBEAEC;stroke:#B02A37}
.uf .ln{fill:none;stroke:#767676;stroke-width:1.2}
.uf .ln.alt{stroke-dasharray:4 3}
.uf .ln.key{stroke:#1E3AC4;stroke-width:1.6}
.uf .pct{font-size:12.5px;fill:#2F6F4F}
.uf .lane{fill:#F0F0EE;stroke:#E3E3E3}

.legend{display:flex;flex-wrap:wrap;gap:6px 18px;padding:12px 20px;border-top:1px solid var(--bd);font-size:11.5px;color:var(--tx3)}
.legend i{display:inline-block;width:14px;height:10px;margin-right:6px;vertical-align:-1px;border:1px solid #767676;background:#fff}
.legend i.d{transform:rotate(45deg) scale(.8);background:#F0F0EE}
.legend i.p{border-radius:6px;background:#000;border-color:#000}
.legend i.k{height:0;border:0;border-top:2px solid #1E3AC4;width:18px;vertical-align:3px}
.legend i.a{height:0;border:0;border-top:1.5px dashed #767676;width:18px;vertical-align:3px}

/* ---------- Concise case-study blocks ---------- */
.kv{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:1px solid var(--bd);margin:20px 0}
.kv>div{padding:16px 18px 16px 0}
.kv>div+div{padding-left:18px;border-left:1px solid var(--bd)}
.kv h3{font-size:14px;font-weight:600;margin-bottom:4px}
.kv p{font-size:14px;color:var(--tx2);line-height:1.55}
.call{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--bd);border-radius:var(--r);margin:20px 0;overflow:hidden}
.call>div{padding:18px 20px}
.call>div+div{border-left:1px solid var(--bd);background:var(--bg)}
.call h3{font-size:14px;font-weight:600;margin-bottom:6px}
.call p{font-size:14px;color:var(--tx2);line-height:1.6}
.call .lab{font-size:12.5px;color:var(--tx3);margin-bottom:6px}

@media(max-width:768px){
  .kv,.call{grid-template-columns:1fr}
  .kv>div+div{padding-left:0;border-left:0;border-top:1px solid var(--bd)}
  .call>div+div{border-left:0;border-top:1px solid var(--bd)}
  .art-h{flex-direction:column;gap:2px}
}
@media print{.art{break-inside:avoid}.art-scroll{overflow:visible}.jm,.uf svg{min-width:0}}
