/* TTR Cat Plan 0.4.3 — chế độ học việc + hướng dẫn (18/11/2026). Thẻ đánh số đã có sẵn trong catplan.css 0.4.3. */

/* ---- 3. Chế độ học việc ---- */
#ttr-catplan .cph-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px;
  border: 1px solid #0b6e4f; color: #0b6e4f; background: #fff; border-radius: 999px;
  padding: 6px 14px; font: 600 14px/1.2 inherit; cursor: pointer;
}
#ttr-catplan .cph-toggle[aria-pressed="true"] { background: #0b6e4f; color: #fff; }
#ttr-catplan .cph-on {
  outline: 3px solid #f59e0b !important; outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(245, 158, 11, .25) !important;
  border-radius: 6px; position: relative; z-index: 2;
  animation: cph-pulse 1.6s ease-in-out infinite;
}
@keyframes cph-pulse { 50% { box-shadow: 0 0 0 11px rgba(245, 158, 11, .12) !important; } }
@media (prefers-reduced-motion: reduce) { #ttr-catplan .cph-on { animation: none; } }
.cph-tip {
  position: absolute; z-index: 9999; max-width: 340px; background: #1d2939; color: #fff;
  border-radius: 10px; padding: 12px 14px 10px; font: 14px/1.5 system-ui, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.cph-tip::before {
  content: ""; position: absolute; top: -7px; left: 22px; border: 7px solid transparent;
  border-top: 0; border-bottom-color: #1d2939;
}
.cph-tip b { color: #fcd34d; }
.cph-tip .cph-step { font-size: 12px; color: #98a2b3; margin-bottom: 4px; }
.cph-tip .cph-nav { display: flex; gap: 6px; margin-top: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cph-tip button {
  border: 0; border-radius: 6px; padding: 5px 12px; font: 600 13px/1.2 inherit; cursor: pointer;
  background: #344054; color: #fff;
}
.cph-tip button.cph-next { background: #f59e0b; color: #1d2939; }
@media print {
  .cph-tip, #ttr-catplan .cph-toggle, .ttr-cp-guide { display: none !important; }
  #ttr-catplan .cph-on { outline: 0 !important; box-shadow: none !important; animation: none !important; }
}

/* ---- 4. Hướng dẫn (chữ SEO dưới công cụ) ---- */
.ttr-cp-guide { max-width: 1100px; margin: 28px auto 0; color: #1d2939; line-height: 1.65; }
.ttr-cp-guide h2 { font-size: 22px; margin: 26px 0 10px; }
.ttr-cp-guide h3 { font-size: 18px; margin: 18px 0 6px; }
.ttr-cp-guide ol li, .ttr-cp-guide ul li { margin: 4px 0; }
.ttr-cp-guide .ttr-cp-faq dt { font-weight: 700; margin-top: 12px; }
.ttr-cp-guide .ttr-cp-faq dd { margin: 4px 0 0 0; }
