/* Diagram layouts share homepage colors and typography; text stays native HTML. */
.cm-hero-map { padding: 24px; }
.cm-hero-offer { border: 1px solid #c5df70; background: var(--lime); border-radius: 12px; padding: 26px; }
.cm-hero-offer .cm-tag { color: var(--night); font-size: 13px; margin: 0 0 23px; }
.cm-offer-role { display: flex; gap: 13px; align-items: center; font-size: 23px; }
.cm-offer-role .condition-icon { width: 30px; height: 30px; }
.cm-offer-role strong { font-weight: 600; }
.cm-offer-outcome { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.cm-offer-outcome strong { font-size: clamp(52px,5vw,76px); font-weight: 600; line-height: 1.1; letter-spacing: -.05em; }
.cm-offer-outcome span { font-size: 19px; line-height: 1.4; }
.cm-hero-map .cm-hero-question { border: 0; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: 17px; text-align: left; }
.cm-hero-question>span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 24px; }
.cm-hero-question strong { font-size: 20px; font-weight: 500; color: var(--blue); line-height: 1.4; }
.cm-risk-wires { display: block; width: 100%; height: 60px; fill: none; stroke: #8ca9d6; stroke-width: 1.4; }
.cm-reasons { gap: 24px; }
.cm-reasons>div { border: 1px solid #c2cfea; border-radius: 10px; padding: 24px; background: white; }
.cm-reasons h4 { margin-top: 12px; }
.cm-approach-intro { font-size: 19px; line-height: 1.6; max-width: 65ch; margin: 0 0 32px; }
.cm-approach-steps { grid-template-columns: repeat(4,minmax(0,1fr)); }
.cm-approach-steps h3 { font-size: 21px; }
.cm-learning { border-top: 1px solid #a2b8d8; padding-top: 22px; margin-top: 28px; }
.cm-learning ol { display: flex; justify-content: center; align-items: baseline; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.cm-learning li { font-size: 17px; line-height: 1.4; position: relative; }
.cm-learning li:not(:last-child):after { content: '→'; position: absolute; right: -23px; color: var(--blue); }
.cm-learning li:nth-child(3) { color: var(--blue); font-weight: 600; }
.cm-learning .cm-tag { text-align: center; }
.cm-learning p { font-size: 14px; color: var(--muted); text-align: center; margin: 14px auto 0; max-width: 70ch; }
.cm-example-note { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.cm-cycle-owner { display: flex; align-items: center; gap: 16px; background: white; border: 1px solid #a2b8d8; padding: 20px 24px; border-radius: 10px; }
.cm-cycle-owner .condition-icon { color: var(--blue); width: 32px; height: 32px; }
.cm-cycle-owner strong { display: block; font-size: 21px; font-weight: 600; margin-bottom: 5px; }
.cm-cycle-owner span { font-size: 15px; color: var(--muted); }
.cm-cycle-owner>a { font-size: 14px; margin-left: auto; white-space: nowrap; }
.cm-interval { color: var(--muted); margin: 26px 0 18px; font-size: 14px; }
.cm-governance-link { position: relative; padding-top: 22px; }
.cm-governance-link .cm-interval { margin: 9px 0 18px; }
.cm-governance-link svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #8ca9d6; stroke-width: 1.4; }
.cm-experiment-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.cm-experiment-steps>li { position: relative; background: white; border: 1px solid #c2cfea; border-radius: 10px; padding: 22px 17px; scroll-margin-top: 110px; }
.cm-experiment-steps>li:not(:last-child):after { content: '→'; position: absolute; right: -21px; top: 47%; color: #607fac; font-size: 22px; }
.cm-experiment-steps>li[data-cycle-node=forecast] { background: var(--lime); border-color: #c5df70; }
.cm-experiment-steps>li[data-cycle-node=decision] { border-color: var(--blue); }
.cm-step-number { color: var(--blue); font-size: 13px; font-variant-numeric: tabular-nums; }
.cm-experiment-steps h3 { font-size: 21px; line-height: 1.3; font-weight: 600; margin: 15px 0 12px; }
.cm-experiment-steps p { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; }
.cm-hypotheses { list-style: none; padding: 0; margin: 15px 0 0; display: grid; gap: 7px; }
.cm-hypotheses li { border: 1px solid var(--line); border-left: 2px solid var(--blue); padding: 7px 9px; font-size: 13px; line-height: 1.4; }
.cm-zoom-link { display: inline-block; margin-top: 16px; font-size: 14px; }
.cm-cycle-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.cm-cycle-rules p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0; padding-left: 16px; border-left: 2px solid #a2b8d8; }
.cm-experiment .cm-learning { padding: 22px 24px; background: white; border: 1px solid #c2cfea; border-radius: 10px; }
.cm-details>.cm-contract-detail { max-width: none; }
.cm-contract-detail .cm-contract { margin-top: 0; margin-bottom: 25px; }
.cm-zoom-context { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--blue); margin: 0 0 30px; text-decoration: none; padding: 10px 14px; border: 1px solid #c2cfea; border-radius: 6px; background: white; }
.cm-zoom-context span { font-size: 22px; }
.cm-human-zoom { padding: 30px; border: 1px solid #c2cfea; border-radius: 12px; background: var(--wash); }
.cm-trigger { margin: 0 auto 28px; text-align: center; font-size: 18px; font-weight: 500; color: var(--blue); }
.cm-human-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.cm-human-flow>div { position: relative; background: white; border: 1px solid #c2cfea; border-radius: 10px; padding: 26px; }
.cm-human-flow>div:last-child { border-color: var(--blue); }
.cm-human-flow>div:first-child:after { content: '→'; color: var(--blue); position: absolute; right: -42px; top: 50%; font-size: 28px; }
.cm-human-flow .condition-icon { color: var(--blue); }
.cm-human-flow h3 { font-size: 24px; font-weight: 600; line-height: 1.3; margin: 18px 0; max-width: 27ch; }
.cm-human-flow ul { margin: 0; padding-left: 20px; font-size: 16px; color: var(--muted); }
.cm-human-flow li { margin: 8px 0; }
.cm-human-zoom figcaption { color: var(--blue); text-align: center; font-size: 16px; margin-top: 25px; }
@media(max-width:1100px) {
 .cm-experiment-steps { gap: 16px; }
 .cm-experiment-steps>li { padding: 20px 12px; }
 .cm-experiment-steps h3 { font-size: 18px; }
 .cm-experiment-steps>li:not(:last-child):after { right: -16px; font-size: 17px; }
}
@media(max-width:900px) {
 .cm-approach-steps { grid-template-columns: 1fr; }
 .cm-governance-link svg { display: none; }
 .cm-governance-link { padding-top: 8px; }
 .cm-experiment-steps { grid-template-columns: 1fr; padding-left: 22px; border-left: 1px solid #8ca9d6; gap: 26px; }
 .cm-experiment-steps>li { padding: 22px; }
 .cm-experiment-steps>li:before { content: ''; position: absolute; width: 23px; border-top: 1px solid #8ca9d6; left: -24px; top: 40px; }
 .cm-experiment-steps>li:not(:last-child):after { content: '↓'; left: 50%; right: auto; top: auto; bottom: -26px; font-size: 22px; }
 .cm-experiment-steps h3 { font-size: 22px; margin: 8px 0; }
 .cm-cycle-owner { flex-wrap: wrap; }
 .cm-cycle-owner>a { margin: 0 0 0 48px; }
 .cm-cycle-owner>div { flex: 1; }
 .cm-hypotheses { grid-template-columns: 1fr 1fr; }
 .cm-learning ol { flex-wrap: wrap; row-gap: 15px; }
 .cm-human-flow { gap: 36px; }
 .cm-human-flow>div:first-child:after { right: -30px; }
}
@media(max-width:760px) {
 .cm-hero-map { padding: 12px; }
 .cm-hero-offer { padding: 22px; }
 .cm-offer-role { font-size: 22px; }
 .cm-offer-outcome { gap: 17px; }
 .cm-offer-outcome strong { font-size: 58px; }
 .cm-offer-outcome span { font-size: 17px; }
 .cm-hero-question strong { font-size: 18px; }
 .cm-tension { grid-template-columns: 1fr; gap: 18px; }
 .cm-risk-wires { display: none; }
 .cm-risk-tree { position: relative; padding: 28px 0 0 20px; margin-left: 16px; border-left: 1px solid #8ca9d6; }
 .cm-risk-tree:before { content: ''; position: absolute; top: 0; height: 14px; left: 0; right: 50%; border-bottom: 1px solid #8ca9d6; border-right: 1px solid #8ca9d6; }
 .cm-reasons { grid-template-columns: 1fr; gap: 18px; }
 .cm-reasons>div { position: relative; padding: 20px; }
 .cm-reasons>div:before { content: ''; position: absolute; left: -22px; width: 21px; top: 36px; border-top: 1px solid #8ca9d6; }
 .cm-approach-steps { grid-template-columns: 1fr; gap: 30px; }
 .cm-approach-steps h3 { font-size: 21px; }
 .cm-learning ol { display: grid; grid-template-columns: 1fr; text-align: center; gap: 24px; }
 .cm-learning li:not(:last-child):after { content: '↓'; top: 100%; left: 50%; right: auto; transform: translateX(-50%); }
 .cm-approach-intro { font-size: 17px; }
 .cm-cycle-owner { padding: 20px; }
 .cm-cycle-owner strong { font-size: 20px; }
 .cm-cycle-owner span { font-size: 14px; }
 .cm-cycle-rules { grid-template-columns: 1fr; gap: 17px; }
 .cm-hypotheses { grid-template-columns: 1fr; }
 .cm-zoom-context { font-size: 13px; }
 .cm-human-zoom { padding: 22px 18px; }
 .cm-human-flow { grid-template-columns: 1fr; gap: 38px; }
 .cm-human-flow>div { padding: 22px; }
 .cm-human-flow>div:first-child:after { content: '↓'; left: 50%; top: auto; bottom: -39px; right: auto; }
 .cm-human-flow h3 { font-size: 23px; }
 .cm-human-flow ul { font-size: 15px; }
 .cm-human-zoom figcaption { font-size: 15px; }
}
@media(max-width:360px) {
 .cm-offer-outcome { gap: 12px; }
 .cm-offer-outcome strong { font-size: 49px; }
 .cm-offer-outcome span { font-size: 15px; }
 .cm-offer-role { font-size: 19px; }
 .cm-hero-offer { padding: 19px; }
 .cm-hero-question { gap: 10px !important; }
 .cm-hero-question strong { font-size: 16px; }
}
