/* DC Microsite V0.2.2 — Capability Matrix & CTA Rectification
   Controlled cosmetic patch only.
   1) Keeps the Commissioning & Handover CTA on one line where space permits.
   2) Adds a clear, responsive legend for the capability-fit matrix.
*/

/* Lifecycle card CTA — avoid orphaned arrow on desktop/tablet. */
.stage-content .text-link.long-link{
  white-space:nowrap;
  font-size:.96em;
}

/* Capability matrix legend */
.matrix-legend{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  align-items:center;
  margin-top:16px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.matrix-legend span{
  display:inline-flex;
  align-items:center;
  gap:7px;
}

.matrix-legend b{
  color:var(--navy);
  font-size:15px;
  line-height:1;
  min-width:18px;
  text-align:center;
}

.matrix-legend strong{
  color:var(--ink);
  font-weight:750;
}

#comparison .table-note{
  margin-top:10px;
}

/* At phone widths, allow the longer CTA to wrap naturally rather than overflow. */
@media (max-width:600px){
  .stage-content .text-link.long-link{
    white-space:normal;
    font-size:1em;
  }

  .matrix-legend{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
}
