/* Shared styling for the chemical-dosing guide cluster
   (chemical-dosing hub + dosing-equations / -stoichiometry / -rate-control /
    -process-design / -strategy / -mixing-injection / -overdosing-/-underdosing-
    troubleshooting). Equation + worked-example look matches the calc pages. */

/* feature-item used as a card inside .cards-grid on the dosing pages.
   Without a page-specific rule these render unstyled (text spilling outside
   the card), so give them the same card box as .card. */
.cards-grid .feature-item,
.feature-item {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.cards-grid .feature-item:hover,
.feature-item:hover {
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}
.feature-item .learn-more { margin-top: auto; }

/* Equation display box */
.formula {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-left: 4px solid var(--primary-blue);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  font-family: 'Courier New', Courier, monospace;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--primary-navy);
  overflow-x: auto;
}
.formula .eq-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

/* Result callout */
.calc-result {
  background: var(--primary-light);
  border: 1px solid var(--primary-blue);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  font-weight: 600;
  color: var(--primary-navy);
}

/* Variable / where-block under an equation */
.eq-where {
  margin: 0.5rem 0 1.5rem;
  padding-left: 1.1rem;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-medium, #475569);
}
.eq-where li { margin: 0.25rem 0; }
.eq-where li code,
.eq-where b { color: var(--primary-navy); font-family: 'Courier New', monospace; }

/* Small numbered "step" pill used in the process pages */
.step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #fff;
  font-weight: 700;
  margin-right: 0.6rem;
}

/* Warning / caution highlight (overdosing & troubleshooting pages) */
.caution-box {
  background: #fff8f1;
  border: 1px solid #f0c089;
  border-left: 4px solid var(--accent-gold, #e08a1e);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.caution-box h4 { color: #9a5b00; margin-bottom: 0.4rem; }
