/* ============================================================
   Commodity Dispatch pages (tools/commodity-pages) — the two sections the
   generator adds to the Dispatch page: .cm (what makes this commodity's
   dispatch hard, and how Nivio Dispatch plans each part) and .cm-end (works
   with your software, questions, reading).

   Carbon ground, like the hero above and the call to action below. Colour
   comes from the v3 tokens only. Signal marks, at most three per section:
   the headline's closing line, the "how it plans" column label, and the rule
   beside each plan.
   ============================================================ */

.cm{padding:96px 0;background:var(--bg);color:var(--ink);border-top:1px solid var(--rule)}
.cm *,.cm *::before,.cm *::after{box-sizing:border-box}

.cm-head{max-width:1060px;display:flex;flex-direction:column;gap:20px}
.cm-k{font-family:var(--nv-font-mono,"Geist Mono",ui-monospace,monospace);font-weight:500;
  font-size:.6875rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink4)}
.cm-head h2{margin:0;font-weight:600;font-size:1.6875rem;line-height:1.15;letter-spacing:-.02em;color:var(--ink);text-wrap:balance}
@media(min-width:769px){ .cm-head h2{font-size:2.375rem} }
@media(min-width:1240px){ .cm-head h2{font-size:2.75rem} }
.cm-head h2 .sig{color:var(--signal)}
.cm-head p{margin:0;font-size:1.0625rem;line-height:1.65;color:var(--ink3);max-width:64ch;text-wrap:pretty}
.cm-head a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--rule2)}

/* ---- hero: the commodity name makes the Dispatch headline longer, so it
   sets a step smaller to keep the optimizer in view ---------------------- */
.lede .hero-h.cm-hero,.hero-h.cm-hero{font-size:clamp(2.5rem,4.3vw,3.6rem);line-height:1.02}

/* ---- problem → plan ----------------------------------------------- */
.cm-cols{display:none}
.cm-list{list-style:none;margin:48px 0 0;padding:0;border-top:1px solid var(--rule)}
.cm-row{display:grid;grid-template-columns:1fr;gap:12px;padding:24px 0;border-bottom:1px solid var(--rule)}
.cm-prob h3{margin:0 0 6px;font-size:1.125rem;font-weight:600;line-height:1.3;letter-spacing:-.01em;color:var(--ink)}
.cm-prob p{margin:0;font-size:.9375rem;line-height:1.6;color:var(--ink4);max-width:52ch}
.cm-plan{position:relative;padding-left:18px}
.cm-plan::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:2px;background:var(--signal)}
.cm-plan p{margin:0;font-size:1rem;line-height:1.6;color:var(--ink2);max-width:60ch}
@media(min-width:900px){
  .cm-cols{display:grid;grid-template-columns:5fr 7fr;gap:48px;margin:56px 0 0;
    font-family:var(--nv-font-mono,"Geist Mono",ui-monospace,monospace);font-weight:500;
    font-size:.6875rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink4)}
  .cm-cols span:last-child{color:var(--signal)}
  .cm-list{margin-top:14px}
  .cm-row{grid-template-columns:5fr 7fr;gap:48px;padding:28px 0}
}

/* ---- measured result + the closing note --------------------------- */
.cm-proof{margin-top:40px;padding:22px 24px;border:1px solid var(--rule2);border-radius:var(--nv-radius,4px);background:var(--bg2);max-width:860px}
.cm-proof-k{font-family:var(--nv-font-mono,"Geist Mono",ui-monospace,monospace);font-weight:500;
  font-size:.6875rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink4);margin-bottom:8px}
.cm-proof p{margin:0;font-size:1.0625rem;line-height:1.6;color:var(--ink3)}
.cm-proof strong{color:var(--ink);font-weight:600}
.cm-note{margin:24px 0 0;font-size:.9375rem;line-height:1.6;color:var(--ink4);max-width:72ch}

/* ---- works with your software · questions · reading ---------------- */
.cm-two{display:grid;grid-template-columns:1fr;gap:56px}
@media(min-width:1000px){ .cm-two{grid-template-columns:6fr 5fr;gap:72px} }
.cm-end .cm-head h2{font-size:1.6875rem}
@media(min-width:769px){ .cm-end .cm-head h2{font-size:2rem} }
.cm-faq{display:flex;flex-direction:column;gap:0}
.cm-faq .cm-k{margin-bottom:6px}
.cm-q{padding:18px 0;border-bottom:1px solid var(--rule)}
.cm-q h3{margin:0 0 6px;font-size:1.0625rem;font-weight:600;line-height:1.35;color:var(--ink)}
.cm-q p{margin:0;font-size:.9375rem;line-height:1.6;color:var(--ink3)}
.cm-reading{display:grid;grid-template-columns:1fr;gap:16px;margin-top:56px}
@media(min-width:760px){ .cm-reading{grid-template-columns:1fr 1fr} }
.cm-read{display:flex;flex-direction:column;gap:6px;padding:20px 22px;border:1px solid var(--rule2);border-radius:var(--nv-radius,4px);
  color:var(--ink);text-decoration:none;transition:border-color 120ms cubic-bezier(.2,0,0,1),background 120ms cubic-bezier(.2,0,0,1)}
.cm-read:hover{border-color:var(--ink4);background:var(--bg2)}
.cm-read:focus-visible{outline:2px solid var(--signal);outline-offset:3px}
.cm-read span{font-family:var(--nv-font-mono,"Geist Mono",ui-monospace,monospace);font-weight:500;font-size:.6875rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink4)}
.cm-read b{font-weight:600;font-size:1.0625rem;line-height:1.35}
.cm-read em{font-style:normal;font-size:.9375rem;line-height:1.55;color:var(--ink3)}

@media(max-width:768px){ .cm{padding:64px 0} }
@media (prefers-reduced-motion: reduce){ .cm-read{transition:none} }
