/* LeadsACE mechanism + tier pages: process maps and audience splits.
   Loaded after styles.css, ace-motion.css and explain.css. Static HTML, no motion. */

/* hero process map (replaces the decorative still-life render) */
.mx-flow{margin:0;min-width:0;border:1px solid rgba(180,120,255,.2);border-radius:14px;background:#140B21;padding:22px 22px 18px}
.mx-flow figcaption{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 14px;margin-bottom:16px}
.mx-flow figcaption b{font-family:var(--f-mono);font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;color:#D9BCFA;font-weight:500}
.mx-flow figcaption small{font-size:13px;color:#CFC5E0}
.mx-flow ol{list-style:none;margin:0;padding:0;counter-reset:mx}
.mx-flow li{counter-increment:mx;position:relative;display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:2px 12px;align-items:start;padding:11px 0}
.mx-flow li+li{border-top:1px solid rgba(180,120,255,.12)}
.mx-flow li:before{content:counter(mx,decimal-leading-zero);grid-row:1/3;font-family:var(--f-mono);font-size:12px;line-height:22px;color:#D9BCFA;text-align:center;border:1px solid rgba(180,120,255,.35);border-radius:6px;height:24px}
.mx-flow li b{font-size:15.5px;line-height:1.35;color:var(--text);font-weight:600;min-width:0}
.mx-flow li span{grid-column:2;font-size:14px;line-height:1.5;color:#CFC5E0}
.mx-flow li em{grid-column:3;grid-row:1;font-style:normal;font-family:var(--f-mono);font-size:11.5px;line-height:1.3;letter-spacing:.02em;color:#EAE3F5;background:rgba(155,48,255,.16);border:1px solid rgba(180,120,255,.3);border-radius:100px;padding:4px 9px;white-space:nowrap}
.mx-flow li em.mx-them{background:transparent;border-style:dashed;color:#D9BCFA}
@media(max-width:520px){.mx-flow{padding:18px 16px 14px}.mx-flow li{grid-template-columns:30px minmax(0,1fr)}.mx-flow li em{grid-column:2;grid-row:auto;justify-self:start;margin-top:6px;white-space:normal}}

/* sections added on mechanism and tier pages */
.mx-sec{padding:64px 0;border-top:1px solid #ffffff1c}
.mx-sec+.mx-sec{border-top:0;padding-top:8px}
.mx-sec .sec-head{margin-bottom:34px}
.mx-sec h2.mx-h{font-size:clamp(26px,3.2vw,38px);margin-bottom:12px}

/* founders vs clinics: two separate cards, never one mixed journey */
.mx-aud{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.mx-aud>article{min-width:0;border:1px solid rgba(180,120,255,.2);border-radius:12px;background:#140B21;padding:24px 24px 22px}
.mx-aud>article.mx-na{border-style:dashed;background:transparent}
.mx-aud .mx-who{font-family:var(--f-mono);font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#D9BCFA;margin-bottom:8px}
.mx-aud h3{font-size:21px;line-height:1.25;margin-bottom:10px}
.mx-aud p{font-size:15.5px;line-height:1.6;color:#CFC5E0}
.mx-aud p+p{margin-top:10px}
.mx-aud a{color:var(--accent3);text-decoration:underline;text-underline-offset:3px}
.mx-stages{list-style:none;padding:0;margin:16px 0 0;display:flex;flex-wrap:wrap;gap:8px 6px;align-items:center}
.mx-stages li{font-size:13.5px;line-height:1.3;color:#EAE3F5;border:1px solid rgba(180,120,255,.3);border-radius:7px;padding:6px 9px}
.mx-stages li+li:before{content:"\2192";color:#D9BCFA;margin:0 8px 0 -2px}
.mx-stages li+li{border-left-width:1px}
.mx-stages-label{display:block;margin-top:16px;font-size:12.5px;color:#CFC5E0}
.mx-stages-label+.mx-stages{margin-top:8px}
@media(max-width:760px){.mx-aud{grid-template-columns:1fr}.mx-aud>article{padding:20px 18px}}

/* engagement-model ladder (tier hero) */
.mx-ladder{margin:0;min-width:0;border:1px solid rgba(180,120,255,.2);border-radius:14px;background:#140B21;padding:22px}
.mx-ladder figcaption{font-family:var(--f-mono);font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;color:#D9BCFA;margin-bottom:14px}
.mx-ladder ol{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.mx-ladder li>a,.mx-ladder li>div{display:block;border:1px solid rgba(180,120,255,.2);border-radius:10px;padding:14px 16px;min-height:44px}
.mx-ladder li>a:hover,.mx-ladder li>a:focus-visible{border-color:rgba(180,120,255,.55)}
.mx-ladder li.is-current>div{border-color:#D9BCFA;background:#1D1030}
.mx-ladder b{display:block;font-size:16px;color:var(--text)}
.mx-ladder span{display:block;font-size:14px;line-height:1.5;color:#CFC5E0;margin-top:3px}
.mx-ladder small{display:block;font-family:var(--f-mono);font-size:11.5px;color:#D9BCFA;margin-top:6px}

/* small facts grid: reporting, ownership, terms */
.mx-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}
.mx-facts>div{border-top:2px solid #D9BCFA;padding-top:14px;min-width:0}
.mx-facts h3{font-size:17px;line-height:1.3;margin-bottom:8px}
.mx-facts p{font-size:15px;line-height:1.6;color:#CFC5E0}
.mx-facts a{color:var(--accent3);text-decoration:underline;text-underline-offset:3px}
@media(max-width:900px){.mx-facts{grid-template-columns:1fr}}

/* index table and roles caption links */
.mx-index tbody th a{color:var(--text);text-decoration:underline;text-decoration-color:rgba(208,169,255,.45);text-underline-offset:4px;display:inline-block;padding:4px 0}
.mx-index tbody th a:hover,.mx-index tbody th a:focus-visible{color:var(--accent3)}
.mx-index tbody th .mn{font-family:var(--f-mono);font-size:12px;color:#D9BCFA;margin-right:8px}
.xp-roles caption a{color:var(--accent3);text-decoration:underline;text-underline-offset:3px}

/* evidence links: 44px touch target */
.casebox .more{display:inline-flex;align-items:center;min-height:44px;padding:4px 0}
.casebox .mx-caveat{font-size:14px;line-height:1.55;color:#CFC5E0;margin-top:12px}
.casebox .mx-caveat a{color:var(--accent3);text-decoration:underline;text-underline-offset:3px}

.mx-sec a:focus-visible,.mx-flow a:focus-visible,.mx-ladder a:focus-visible{outline:2px solid #D9BCFA;outline-offset:3px;border-radius:4px}

/* local fixes for explain.css on phones (also reported to the lead as shared fixes) */
.mx-flow,.mx-ladder,.mx-aud{text-align:left}
@media(max-width:760px){
 .xp-roles caption{display:block;width:100%}
 .xp-roles td.xp-own:before{display:inline}
 .xp-roles tbody th{width:100%}
}
