/* TRANG CÔNG CỤ theo nhu cầu (views/pages/tool.php) — nạp SAU pages/home.css + pages/home-reskin.css, chỉ thêm phần riêng:
   lưới điểm mạnh 2 cột, 3 bước, hộp lưu ý, nút chọn tệp giữa trang, liên kết công cụ khác / bài viết liên quan.
   Màu lấy từ tokens.css (sáng + tối). Quy tắc @media đặt SAU quy tắc gốc cùng selector (tools/ui-check bước 2). */

.tool-sec .sec-head { margin-bottom: 36px; }
.tool-sec .cmp-case-card + .cmp-case-card { margin-top: 24px; }

/* Điểm mạnh: 4 thẻ -> 2 cột (home-reskin: .xfeatures 3 cột, 1 cột dưới 960px) */
.xfeatures.tool-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 3 bước */
.tool-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tool-step {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  box-shadow: var(--shadow);
}
.tool-step-no {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 12px;
}
.tool-step h3 { font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 6px; }
.tool-step p { font-size: 13.5px; color: var(--fg-3); line-height: 1.6; }

/* Lưu ý */
.tool-tips {
  margin-top: 28px; padding: 20px 24px; border-radius: 14px;
  background: var(--bg-sunken); border: 1px solid var(--border);
}
.tool-tips h3 { font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 10px; }
.tool-tips ul { padding-left: 20px; display: grid; gap: 8px; }
.tool-tips li { font-size: 14px; color: var(--fg-2); line-height: 1.6; }

/* Nút chọn tệp giữa trang */
.tool-cta-row { margin-top: 28px; text-align: center; }
.tool-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%;
  min-height: 50px; padding: 12px 28px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--blue); color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow); transition: background .15s, transform .15s;
}
.tool-cta:hover, .tool-cta:focus-visible { background: var(--blue-strong); transform: translateY(-1px); }

/* Hỏi đáp: tiêu đề câu hỏi là <h3> cho máy tìm kiếm — giữ đúng cỡ chữ của .faq-q trang chủ */
h3.faq-q { font-family: var(--font-body); line-height: 1.5; }
.tool-more { margin-top: 20px; font-size: 14px; color: var(--fg-3); }
.tool-more a { color: var(--blue); font-weight: 600; }

/* Liên kết: công cụ khác + bài viết liên quan */
.tool-links { padding-top: 64px; padding-bottom: 64px; }
.tool-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.tool-links-title { font-size: 18px; font-weight: 800; color: var(--fg); margin-bottom: 14px; }
.tool-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tool-chips a {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-raised); color: var(--fg); font-size: 14px; font-weight: 600; text-decoration: none;
}
.tool-chips a:hover { border-color: var(--blue); color: var(--blue); }
.tool-articles { list-style: none; display: grid; gap: 10px; }
.tool-articles a { color: var(--blue); font-size: 14.5px; font-weight: 600; text-decoration: none; line-height: 1.5; }
.tool-articles a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .xfeatures.tool-points { grid-template-columns: minmax(0, 1fr); }
  .tool-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tool-links-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  .tool-tips { padding: 16px 18px; }
  .tool-cta { width: 100%; padding: 12px 18px; }
}
