/* nitrogen-sulfur-lab.css — CSS riêng cho tools/hoa-11-chuong-2.php.
   Khối .theory-* copy nguyên từ equilibrium-lab.css (Chương 1) để giữ
   đúng giao diện đồng bộ giữa các chương — đây là quy ước hiện có của
   dự án (mỗi chương có 1 file css riêng, tự chứa các class theory-*). */

.theory-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.theory-toc-item {
  font-size: 13px; padding: 6px 12px; border-radius: 20px; background: #eef0fa;
  color: var(--blue-dark); text-decoration: none; font-weight: 600;
}
.theory-toc-item:hover { background: var(--blue); color: #fff; }
.theory-lesson { margin-bottom: 36px; scroll-margin-top: 16px; }
.theory-lesson-title { font-size: 19px; font-weight: 700; margin-bottom: 12px; border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.theory-body p { line-height: 1.7; margin: 0 0 12px; font-size: 15px; }
.theory-body ul { margin: 0 0 14px; padding-left: 20px; line-height: 1.7; font-size: 15px; }
.theory-body li { margin-bottom: 6px; }
.theory-callout { background: #eef0fa; border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.theory-callout-title { font-weight: 700; margin-bottom: 8px; color: var(--blue-dark); }
.theory-callout ul { margin: 0; padding-left: 20px; }
.theory-callout p:last-child { margin-bottom: 0; }
.theory-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.theory-table th, .theory-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.theory-table th { background: #f5f6fb; font-weight: 700; }
.theory-note { font-size: 13px; color: var(--ink-soft); font-style: italic; }
.theory-link-tab { color: var(--blue); font-weight: 600; text-decoration: none; }
.theory-link-tab:hover { text-decoration: underline; }

/* ===== Sơ đồ chuyển hóa (riêng cho Chương 2) ===== */
.chain-title { font-size: 16px; font-weight: 700; margin: 28px 0 12px; color: var(--ink); }
.chain-title:first-child { margin-top: 0; }
.chain-diagram {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  background: #f8f9fd; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; margin-bottom: 22px;
}
.chain-box {
  background: var(--blue); color: #fff; font-weight: 700; font-size: 15px;
  padding: 8px 14px; border-radius: 10px; white-space: nowrap;
}
.chain-arrow {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11.5px; color: var(--ink-soft); padding: 0 6px; min-width: 60px; text-align: center;
}
.chain-arrow .arrow-symbol { font-size: 18px; color: var(--blue-dark); line-height: 1; }
@media (max-width: 640px) {
  .chain-diagram { flex-direction: column; align-items: stretch; }
  .chain-box { text-align: center; }
  .chain-arrow { flex-direction: row; gap: 6px; min-width: 0; }
}

/* ===== Bảng tra cứu nhanh ===== */
.oxstate-chain {
  font-family: 'IBM Plex Mono', monospace; font-size: 16px; font-weight: 700;
  color: var(--blue-dark); background: #eef0fa; border-radius: var(--radius);
  padding: 14px 16px; margin: 10px 0 20px; text-align: center;
}
