/* =====================================================================
   Shared styles for DAF troubleshooting deep-dive pages
   (daf-poor-float-formation, daf-effluent-carryover, daf-saturator-air-
   issues, daf-coagulation-flocculation, daf-scum-skimming,
   daf-hydraulic-shortcircuiting).
   Built on sitewide tokens; light, corporate palette. Most layout reuses
   global classes (troubleshoot-list, cards-grid, data-table, topics-grid).
   ===================================================================== */

/* ---- Problem / solution blocks ------------------------------------- */
.troubleshoot-list {
  display: grid;
  gap: 1.1rem;
  max-width: 980px;
  margin: 0 auto;
}
.troubleshoot-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.06);
}
.troubleshoot-item .ts-problem {
  background: linear-gradient(160deg, #fffaf5 0%, #fdeede 100%);
  padding: 1.4rem 1.5rem;
  border-right: 1px solid #f3ddc6;
}
.troubleshoot-item .ts-problem h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: var(--primary-navy);
  line-height: 1.3;
}
.troubleshoot-item .ts-problem h3 i { color: #ea580c; margin-top: 0.15rem; font-size: 0.95rem; }
.troubleshoot-item .ts-problem p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-medium);
}
.troubleshoot-item .ts-problem p strong { color: #9a3412; }
.troubleshoot-item .ts-solution {
  background: linear-gradient(160deg, #f4fbf7 0%, #e9f7ef 100%);
  padding: 1.4rem 1.5rem;
}
.troubleshoot-item .ts-solution h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f8a5f;
}
.troubleshoot-item .ts-solution h4::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f0eb"; /* lightbulb */
}
.troubleshoot-item .ts-solution ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.troubleshoot-item .ts-solution li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.4rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-medium);
  border-top: 1px solid rgba(15, 138, 95, 0.12);
}
.troubleshoot-item .ts-solution li:first-child { border-top: none; }
.troubleshoot-item .ts-solution li::before {
  position: absolute;
  left: 0;
  top: 0.55rem;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f00c"; /* check */
  color: #0f8a5f;
  font-size: 0.75rem;
}
.troubleshoot-item .ts-solution li strong { color: var(--primary-navy); }
@media (max-width: 820px) {
  .troubleshoot-item { grid-template-columns: 1fr; }
  .troubleshoot-item .ts-problem { border-right: none; border-bottom: 1px solid #f3ddc6; }
}

/* ---- Symptom strip: quick "what you'll see" chips ------------------- */
.ts-symptom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto 2.25rem;
}
.ts-symptom-row .ts-symptom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff8f0;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.ts-symptom-row .ts-symptom i { color: #ea580c; font-size: 0.8rem; }

/* ---- Effectiveness metric band ------------------------------------- */
.daf-metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}
.daf-metric {
  background: linear-gradient(160deg, #ffffff 0%, #eef6f1 100%);
  border: 1px solid #cfe9db;
  border-radius: 14px;
  padding: 1.4rem 1.1rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.06);
}
.daf-metric .m-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #0f8a5f;
  letter-spacing: -0.01em;
}
.daf-metric .m-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-medium);
  line-height: 1.45;
}

/* ---- "How DAF is effective" cards: left accent + flush body -------- */
.daf-effective-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.daf-effective-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-left: 4px solid var(--primary-blue);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.05);
}
.daf-effective-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--primary-navy);
}
.daf-effective-card h3 i { color: var(--primary-blue); font-size: 0.95rem; }
.daf-effective-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-medium);
}

@media (max-width: 768px) {
  .daf-metric-row { grid-template-columns: repeat(2, 1fr); }
  .daf-effective-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .daf-metric-row { grid-template-columns: 1fr; }
}
