/* =============================================================================
   THL JOBS · Trang chủ · mục Thi thử HSK 3.0 (bản 2, 16/11/2026) — lớp hx-* do home-exams.js tạo.
   Đồng bộ khu "Học hôm nay": nền trắng/kem, chữ xanh than; đỏ chỉ ở nút "Bắt đầu thi".
   Màu cấp độ tiết chế: chỉ ở chấm tròn, gạch chân ô đang chọn, viền trên thẻ đề.
   ============================================================================= */
#exam .hx { --hx-ink: #1f2933; --hx-navy: #1d2b4f; --hx-muted: #5f6b7a; --hx-line: #e6e1d8; --hx-soft: #f6f4ef; --hx-cream: #fffdf7;
  --hx-green: #2f7a5a; --hx-green-soft: #e8f3ed; --hx-amber: #8a5a10; --hx-amber-soft: #fff4df; --hx-red: #c8102e;
  --hx-c: #3f8f6b; display: block; color: var(--hx-ink); }
#exam .hx-l1 { --hx-c: #3f8f6b; } #exam .hx-l2 { --hx-c: #3a78b5; } #exam .hx-l3 { --hx-c: #8a63b8; } #exam .hx-l4 { --hx-c: #c27a2c; }

/* Bộ chọn cấp */
#exam .hx-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#exam .hx-level { position: relative; display: grid; gap: 4px; min-height: 92px; padding: 16px 18px; border: 1px solid var(--hx-line); border-radius: 14px;
  background: #fff; color: var(--hx-ink); text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s; }
#exam .hx-level:hover { border-color: #b9c2d0; }
#exam .hx-level:focus-visible { outline: 3px solid #93b4e0; outline-offset: 2px; }
#exam .hx-name { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--hx-navy); }
#exam .hx-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hx-c); flex: none; }
#exam .hx-sub { color: var(--hx-muted); font-size: 14px; line-height: 1.4; }
#exam .hx-level[aria-selected="true"] { border-color: var(--hx-navy); background: var(--hx-cream); box-shadow: 0 0 0 1px var(--hx-navy), 0 8px 22px rgba(29, 43, 79, .08); }
#exam .hx-level[aria-selected="true"]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--hx-c); }

/* Khung đề của cấp đang chọn */
#exam .hx-panel { margin-top: 16px; padding: 24px; border: 1px solid var(--hx-line); border-radius: 18px; background: #fff; }
#exam .hx-panel:focus-visible { outline: 3px solid #93b4e0; outline-offset: 2px; }
#exam .hx-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
#exam .hx-head h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--hx-navy); }
#exam .hx-head p { margin: 0; color: var(--hx-muted); font-size: 15px; }
#exam .hx-papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#exam .hx-paper { display: grid; gap: 14px; align-content: start; padding: 20px; border: 1px solid var(--hx-line); border-top: 4px solid var(--hx-c); border-radius: 14px; background: #fff; }
#exam .hx-paper h4 { margin: 0; font-size: 20px; font-weight: 700; color: var(--hx-ink); }
#exam .hx-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; color: #374151; font-size: 15px; }
#exam .hx-facts b { color: var(--hx-navy); }
#exam .hx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
#exam .hx-tag { padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; }
#exam .hx-tag.free { background: var(--hx-green-soft); color: var(--hx-green); }
#exam .hx-tag.lock { background: var(--hx-soft); color: #4b5563; }
#exam .hx-tag.review { background: var(--hx-amber-soft); color: var(--hx-amber); }
#exam .hx-tag.wait { background: #eef0f3; color: #5b6472; }
#exam .hx-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 14px; border-top: 1px solid #f0ece5; }
#exam .hx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border: 1px solid var(--hx-line);
  border-radius: 10px; background: #fff; color: var(--hx-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
#exam a.hx-btn:hover { border-color: #b9c2d0; }
#exam .hx-btn.primary { background: var(--hx-red); border-color: var(--hx-red); color: #fff; }
#exam .hx-btn.primary:hover { background: #990b24; border-color: #990b24; }
#exam .hx-btn.navy { border-color: var(--hx-navy); color: var(--hx-navy); }
#exam .hx-btn.navy:hover { background: #f3f5fa; }
#exam .hx-btn[aria-disabled="true"] { background: #f1f0ed; border-color: #e5e3df; color: #8a857e; cursor: not-allowed; }
#exam .hx-hint { color: var(--hx-muted); font-size: 14px; }
#exam .hx-empty { grid-column: 1 / -1; display: grid; gap: 4px; padding: 20px; border: 1px dashed var(--hx-line); border-radius: 14px; background: var(--hx-soft); color: var(--hx-muted); font-size: 15px; }
#exam .hx-empty strong { color: var(--hx-ink); }
#exam .hx-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14px; }
#exam .hx-foot a { color: #374151; text-decoration: underline; text-decoration-color: #c9ccd2; text-underline-offset: 3px; }

@media (max-width: 760px) {
  #exam .hx-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #exam .hx-papers { grid-template-columns: 1fr; }
  #exam .hx-panel { padding: 16px; }
  #exam .hx-act .hx-btn { flex: 1 1 100%; }
  #exam .hx-level { min-height: 80px; padding: 14px; }
  #exam .hx-name { font-size: 18px; }
}
