/* ==========================================================
   HOW IT WORKS – MATRIX (INFO PAGE)
   ========================================================== */

/* -------- Visual matrix card -------- */

.t-visual-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
	margin: 1rem 0;
}

.t-visual-title {
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
}

.t-visual-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.t-visual-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.12);
  color: rgba(15,23,42,.85);
}

/* -------- Matrix grid -------- */

.t-visual-matrix {
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.t-visual-matrix-head,
.t-visual-matrix-row {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1fr .9fr;
  gap: 10px;
  padding: 10px 12px;
  align-items: center;
}

.t-visual-matrix-head {
  background: rgba(15,23,42,.05);
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,.8);
}

.t-visual-matrix-row {
  border-top: 1px solid rgba(15,23,42,.08);
  font-weight: 800;
  color: rgba(15,23,42,.9);
}

/* -------- Status styles -------- */

.t-visual-matrix-row .ok {
  color: #15803d;
  font-weight: 900;
}

.t-visual-matrix-row .flag {
  color: #b45309;
  font-weight: 900;
}

.t-visual-matrix-row .no {
  color: rgba(15,23,42,.4);
}

/* -------- Hover hint (info only) -------- */

.t-visual-matrix-row:hover {
  background: rgba(15,23,42,.03);
}

/* -------- Note below matrix -------- */

.t-visual-note {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(15,23,42,.7);
}

/* -------- Matrix explanation cards -------- */

.page-matrix-info .t-card {
  position: relative;
}

.page-matrix-info .t-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.04);
}

/* -------- Responsive -------- */

@media (max-width: 980px) {
  .t-visual-matrix-head,
  .t-visual-matrix-row {
    grid-template-columns: 1.2fr 1fr;
  }

  .t-visual-matrix-head span:nth-child(n+3),
  .t-visual-matrix-row span:nth-child(n+3) {
    display: none;
  }
}
