/* ==========================================================================
   TUYỂN DỤNG v3 — /tuyen-dung (danh sách), /tuyen-dung/<slug> (chi tiết), /ung-tuyen/<slug> và trang CV (cv-list, cv-edit).
   Ngôn ngữ trang chủ v3 + trang danh mục: token --ds-* (p-ds.css), pastel tươi, màu khu vực tuyển dụng = cyan (--ds-cyan-*).
   Chỉ ĐỔI VỎ: giữ nguyên DOM/hook cũ (data-ajax-zone, .jbar, .jside, .pinv, #ungtuyen, data-paid, biểu mẫu).
   Tiền tố td3-. Chỉ desktop 1440 (mobile làm đợt sau). Không vạch trái, không thanh cuộn, chữ nguyên px 10–24, bo nhỏ cho nút nhỏ.
   ========================================================================== */

/* ---------- 1. THẺ TIN (partials/td3-job.ejs) ---------- */
.td3-job { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--ds-line); border-radius: var(--ds-rd-md); background: #fff; transition: border-color .25s var(--ds-ease), transform .25s var(--ds-ease); }
.td3-job:hover { border-color: var(--ds-cyan-500); transform: translateY(-2px); }
.td3-job.is-hot { background: var(--ds-orange-50); border-color: #f4d4b3; }
.td3-lg { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; font-size: var(--ds-fs-14); font-weight: var(--ds-fw-800); letter-spacing: -.02em; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ds-line); }
.td3-job.is-hot .td3-lg { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ds-orange-500); }
.td3-main { display: grid; gap: 6px; min-width: 0; }
.td3-ti { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 0; font-size: var(--ds-fs-15); font-weight: var(--ds-fw-700); line-height: 1.35; color: var(--ds-ink-900); }
.td3-ti a:hover { color: var(--ds-cyan-700); }
.td3-co { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--ds-fs-12); color: var(--ds-ink-500); }
.td3-co > i { font-size: 14px; flex: none; color: var(--ds-ink-400); }
.td3-co > i.pin { color: var(--ds-rose-500); }
.td3-co .nm { font-weight: var(--ds-fw-500); color: var(--ds-ink-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.td3-co .pl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.td3-co .sep { color: var(--ds-line-strong); }
.td3-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.td3-tags .sal { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--ds-rd-xs); background: var(--ds-mint-100); color: var(--ds-mint-700); font-size: var(--ds-fs-12); font-weight: var(--ds-fw-700); }
.td3-tags .sal i { font-size: 13px; color: var(--ds-mint-500); }
.td3-tags .v3-tag { height: 22px; }
.td3-act { display: grid; justify-items: end; gap: 8px; }
.td3-act small { display: inline-flex; align-items: center; gap: 4px; font-size: var(--ds-fs-11); color: var(--ds-ink-500); }
.td3-act small i { color: var(--ds-rose-500); font-size: 12px; }
.td3-act .bt { display: flex; gap: 6px; }
.td3-act .ds-btn { height: 32px; padding: 0 12px; font-size: var(--ds-fs-12); }
.td3-go { background: var(--ds-cyan-500); color: #fff; }
.td3-go:hover { background: var(--ds-cyan-700); box-shadow: 0 4px 14px rgba(14, 143, 179, .3); }
.td3-act .ds-btn--soft i { color: var(--ds-cyan-500); }

/* ---------- 2. DANH SÁCH: nhịp, ghim, ô xen, chú thích ---------- */
.td3-page .rlist { gap: 12px; }
.td3-page .pinv { margin: 0 0 14px; padding: 0; border: 0; background: none; box-shadow: none; }
.td3-page .pin-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 0; }
.td3-page .pin-hd small { font-size: var(--ds-fs-11); color: var(--ds-ink-500); }
.td3-page .pinv .td3-job { background: #fffaf0; border-color: #f0d98f; }
.td3-page .jslot { gap: 0; padding: 0; border: 1px solid #f4d4b3; border-radius: var(--ds-rd-md); background: var(--ds-orange-50); overflow: hidden; }
.td3-page .jslot .td3-job { border: 0; border-top: 1px solid #f4d4b3; border-radius: 0; background: #fff; }
.td3-page .jslot-tag { padding: 6px 14px; font-size: var(--ds-fs-10); font-weight: var(--ds-fw-700); letter-spacing: .1em; color: var(--ds-orange-700); }
.td3-page .jnote { margin: 14px 0 0; padding: 10px 12px; border: 1px dashed var(--ds-line-strong); border-radius: var(--ds-rd-md); background: #fff; font-size: var(--ds-fs-12); line-height: 1.55; color: var(--ds-ink-500); align-items: flex-start; }
.td3-page .jnote > i { color: var(--ds-cyan-500); font-size: 15px; margin-top: 1px; }
.td3-page .lockline { padding: 10px 12px; border-radius: var(--ds-rd-md); font-size: var(--ds-fs-12); }
.td3-page .phead .eyebrow { font-size: var(--ds-fs-10); font-weight: var(--ds-fw-700); letter-spacing: .1em; }
body[data-sec="tuyen-dung"] .dm-page .stat b { color: var(--ds-cyan-700); }

/* ---------- 3. CỘT PHẢI (partials/job-aside.ejs): khối có nhãn, không vạch viền màu ---------- */
.td3-page .jside .pb { padding: 14px; border: 1px solid var(--ds-line); border-radius: var(--ds-rd-md); background: #fff; box-shadow: none; }
.td3-page .jside .pb-paid { border-top: 1px solid var(--ds-line); }
.td3-page .jside .pb-free { background: var(--ds-bg); }
.td3-page .jside .pb header { margin-bottom: 8px; }
.td3-page .jside .pb h2 { font-size: var(--ds-fs-15); font-weight: var(--ds-fw-700); color: var(--ds-ink-900); }
.td3-page .jside .pb h2 i { font-size: 17px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: var(--ds-rd-xs); background: var(--ds-orange-100); color: var(--ds-orange-500); }
.td3-page .jside .pb-cta h2 i { background: var(--ds-cyan-100); color: var(--ds-cyan-500) !important; }
.td3-page .jside .pb-cta:last-child h2 i { background: var(--ds-mint-100); color: var(--ds-mint-500) !important; }
.td3-page .jside .pb-tag { height: 18px; display: inline-flex; align-items: center; padding: 0 6px; border: 0; border-radius: var(--ds-rd-xs); background: var(--ds-blue-100); color: var(--ds-blue-700); font-size: var(--ds-fs-10); font-weight: var(--ds-fw-700); letter-spacing: .08em; }
.td3-page .jside .pb-tag.hot, .td3-page .jside .pb-tag.spon { background: var(--ds-orange-100); color: var(--ds-orange-700); }
.td3-page .pb-emp b, .td3-page .pb-jobs b { font-size: var(--ds-fs-13); font-weight: var(--ds-fw-600); color: var(--ds-ink-900); }
.td3-page .pb-emp small, .td3-page .pb-jobs small { font-size: var(--ds-fs-11); color: var(--ds-ink-500); }
.td3-page .pb-jobs .sal { padding: 0 6px; height: 20px; border-radius: var(--ds-rd-xs); background: var(--ds-mint-100); color: var(--ds-mint-700); font-size: var(--ds-fs-11); font-weight: var(--ds-fw-700); }
.td3-page .pb-emp li + li, .td3-page .pb-jobs li + li { border-top-color: var(--ds-line); }
.td3-page .pb-open li { font-size: var(--ds-fs-12); color: var(--ds-ink-500); }
.td3-page .pb-open b { font-size: var(--ds-fs-13); font-weight: var(--ds-fw-600); }
.td3-page .pb-cta p { font-size: var(--ds-fs-13); line-height: 1.6; color: var(--ds-ink-500); }
.td3-page .pb-cta p b { color: var(--ds-ink-900); font-weight: var(--ds-fw-600); }
.td3-page .pb-cta .up { border-radius: var(--ds-rd-sm); background: var(--ds-orange-50); color: var(--ds-orange-700); font-size: var(--ds-fs-12); }
.td3-page .pb-cta .up b { font-weight: var(--ds-fw-700); }
.td3-page .jside .btn, .td3-apply .btn, .td3-detail .btn { height: 34px; padding: 0 14px; border: 0; border-radius: var(--ds-rd-sm); font-size: var(--ds-fs-13); font-weight: var(--ds-fw-600); box-shadow: none; }
.td3-page .jside .btn-blue { background: var(--ds-blue-500); color: #fff; } .td3-page .jside .btn-blue:hover { background: #4a84e2; }
.td3-page .jside .btn-mint, .td3-apply .btn-mint, .td3-detail .btn-mint { background: var(--ds-cyan-500); color: #fff; }
.td3-page .jside .btn-mint:hover, .td3-apply .btn-mint:hover, .td3-detail .btn-mint:hover { background: var(--ds-cyan-700); box-shadow: 0 4px 14px rgba(14, 143, 179, .28); }
.td3-apply .btn-ghost, .td3-detail .btn-ghost { background: var(--ds-bg-soft); color: var(--ds-ink-900); }
.td3-apply .btn-ghost:hover, .td3-detail .btn-ghost:hover { background: #e3e8f1; }
.td3-apply .btn-ghost i, .td3-detail .btn-ghost i { color: var(--ds-cyan-500); }
.td3-detail .btn-sm, .td3-apply .btn-sm { height: 30px; font-size: var(--ds-fs-12); }

/* ---------- 4. CHI TIẾT TIN (pages/tuyen-dung-detail.ejs) ---------- */
.td3-detail { padding-bottom: 28px; }
.td3-detail .jhead { grid-template-columns: 64px minmax(0, 1fr) 210px; gap: 18px; margin-top: 8px; padding: 18px 20px; border: 1px solid var(--ds-line); border-radius: var(--ds-rd-md); box-shadow: none; background: linear-gradient(135deg, #fff 55%, var(--ds-cyan-100) 160%); }
.td3-detail .jhead .lg { width: 64px; height: 64px; font-size: var(--ds-fs-20); font-weight: var(--ds-fw-800); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--ds-cyan-500); }
.td3-detail .jhead h1 { font-size: var(--ds-fs-24); font-weight: var(--ds-fw-800); letter-spacing: -.02em; line-height: 1.25; margin: 2px 0 4px; }
.td3-detail .jhead .co { font-size: var(--ds-fs-12); color: var(--ds-ink-500); gap: 6px; }
.td3-detail .jhead .co b { font-size: var(--ds-fs-14); font-weight: var(--ds-fw-700); color: var(--ds-ink-900); }
.td3-detail .jhead .type { height: 20px; padding: 0 7px; border-radius: var(--ds-rd-xs); background: var(--ds-cyan-100); color: var(--ds-cyan-700); font-size: var(--ds-fs-11); font-weight: var(--ds-fw-700); }
.td3-detail .jhead .acts .btn { height: 38px; }
.td3-detail .jfacts { gap: 12px; margin-top: 12px; }
.td3-detail .jfacts > div { padding: 12px 14px; border: 1px solid var(--ds-line); border-radius: var(--ds-rd-md); gap: 12px; }
.td3-detail .jfacts i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--ds-rd-sm); font-size: 19px; background: var(--ds-bg-soft); }
.td3-detail .jfacts > div:nth-child(1) i { background: var(--ds-mint-100); } .td3-detail .jfacts > div:nth-child(2) i { background: var(--ds-blue-100); }
.td3-detail .jfacts > div:nth-child(3) i { background: var(--ds-violet-100); } .td3-detail .jfacts > div:nth-child(4) i { background: var(--ds-rose-100); }
.td3-detail .jfacts small { font-size: var(--ds-fs-10); font-weight: var(--ds-fw-600); letter-spacing: .1em; color: var(--ds-ink-500); margin-bottom: 2px; }
.td3-detail .jfacts b { font-size: var(--ds-fs-15); font-weight: var(--ds-fw-700); color: var(--ds-ink-900); }
.td3-detail .pgrid { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; margin-top: 14px; }
.td3-detail .box { margin-bottom: 12px; border-radius: var(--ds-rd-md); border-color: var(--ds-line); }
.td3-detail .box > .bh { padding: 12px 16px; border-bottom-color: var(--ds-line); }
.td3-detail .box > .bh .ic { width: 28px; height: 28px; border-radius: var(--ds-rd-sm); font-size: 16px; }
.td3-detail .box > .bh h2 { font-size: var(--ds-fs-17); font-weight: var(--ds-fw-700); letter-spacing: -.01em; color: var(--ds-ink-900); }
.td3-detail .box > .bh .r { font-size: var(--ds-fs-12); color: var(--ds-ink-500); }
.td3-detail .box > .bb { padding: 14px 16px; font-size: var(--ds-fs-14); line-height: 1.65; color: var(--ds-ink-700); }
.td3-detail .jlist { gap: 8px; font-size: var(--ds-fs-14); color: var(--ds-ink-700); }
.td3-detail .jlist li { grid-template-columns: 22px minmax(0, 1fr); }
.td3-detail .perks > div { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--ds-rd-sm); background: var(--ds-mint-50); font-size: var(--ds-fs-13); color: var(--ds-ink-800); }
.td3-detail .jmap { overflow: hidden; border-radius: var(--ds-rd-md); border: 1px solid var(--ds-line); }
.td3-detail #ungtuyen { border-color: var(--ds-cyan-500) !important; box-shadow: 0 0 0 3px var(--ds-cyan-100) !important; }
.td3-detail #ungtuyen .btn-mint { height: 40px; font-size: var(--ds-fs-14); }
.td3-detail .lockline { border-radius: var(--ds-rd-md); background: var(--ds-bg); border-color: var(--ds-line-strong); font-size: var(--ds-fs-12); }
.td3-detail .pside { top: calc(var(--hdr-h, 52px) + 12px); }
.td3-detail .bk { border-radius: var(--ds-rd-md); box-shadow: none; border-color: var(--ds-line); }
.td3-detail .bk .hd { background: var(--ds-cyan-100) !important; color: var(--ds-ink-900); padding: 12px 16px; }
.td3-detail .bk .hd i { color: var(--ds-cyan-500); font-size: 24px; }
.td3-detail .bk .hd b { font-size: var(--ds-fs-15); font-weight: var(--ds-fw-700); }
.td3-detail .bk .hd small { font-size: var(--ds-fs-11); color: var(--ds-ink-500); opacity: 1; }
.td3-detail .bk .bd { padding: 14px 16px; gap: 10px; }
.td3-detail .bk .who b { font-size: var(--ds-fs-14); font-weight: var(--ds-fw-700); }
.td3-detail .bk .who small { font-size: var(--ds-fs-12); color: var(--ds-ink-500); }
.td3-detail .bk .crit { font-size: var(--ds-fs-12); }
.td3-detail .bk .btn { justify-content: center; }
.td3-detail .safe { border-radius: var(--ds-rd-md); background: var(--ds-orange-50); border-color: #f4d4b3; font-size: var(--ds-fs-12); line-height: 1.55; color: var(--ds-orange-700); }
.td3-detail .safe b { font-size: var(--ds-fs-13); font-weight: var(--ds-fw-700); color: var(--ds-orange-700); }
.td3-detail .gate { border-radius: var(--ds-rd-md); }

/* ---------- 5. ỨNG TUYỂN + CV (pages/ung-tuyen.ejs, cv-list.ejs, cv-edit.ejs) ---------- */
.td3-apply .cv-head h1 { font-size: var(--ds-fs-24); font-weight: var(--ds-fw-800); letter-spacing: -.02em; line-height: 1.25; }
.td3-apply .cv-sub, .td3-apply .cv-head p { font-size: var(--ds-fs-13); color: var(--ds-ink-500); }
.td3-apply .ap-job { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; border-radius: var(--ds-rd-md); border-color: var(--ds-line); background: linear-gradient(135deg, #fff 60%, var(--ds-cyan-100) 170%); }
.td3-apply .ap-job b { font-size: var(--ds-fs-17); font-weight: var(--ds-fw-700); color: var(--ds-ink-900); }
.td3-apply .ap-job span { font-size: var(--ds-fs-12); color: var(--ds-ink-500); }
.td3-apply .cv-sec { padding: 16px 18px; border-radius: var(--ds-rd-md); border-color: var(--ds-line); }
.td3-apply .cv-sec h2 { font-size: var(--ds-fs-17); font-weight: var(--ds-fw-700); color: var(--ds-ink-900); letter-spacing: -.01em; }
.td3-apply .cv-sec h2 > span { width: 24px; height: 24px; background: var(--ds-cyan-500); font-size: var(--ds-fs-12); font-weight: var(--ds-fw-700); }
.td3-apply .cv-empty { border-radius: var(--ds-rd-md); border-color: var(--ds-line-strong); background: var(--ds-bg); }
.td3-apply .cv-empty .ic { border-radius: var(--ds-rd-md); background: var(--ds-cyan-100); color: var(--ds-cyan-500); }
.td3-apply .cv-empty b { font-size: var(--ds-fs-15); font-weight: var(--ds-fw-700); color: var(--ds-ink-900); }
.td3-apply .cv-empty p { font-size: var(--ds-fs-13); color: var(--ds-ink-500); }
.td3-apply .ap-cv { padding: 12px 14px; border-radius: var(--ds-rd-md); border-color: var(--ds-line); }
.td3-apply .ap-cv:has(input:checked) { border-color: var(--ds-cyan-500); box-shadow: 0 0 0 3px var(--ds-cyan-100); }
.td3-apply .ap-cv b { font-size: var(--ds-fs-14); font-weight: var(--ds-fw-700); }
.td3-apply .ap-cv small { font-size: var(--ds-fs-12); color: var(--ds-ink-500); }
.td3-apply .ap-cv a, .td3-apply .ap-up summary { color: var(--ds-cyan-700); font-size: var(--ds-fs-12); font-weight: var(--ds-fw-600); }
.td3-apply .fl label { font-size: var(--ds-fs-12); font-weight: var(--ds-fw-600); color: var(--ds-ink-700); }
.td3-apply .inp, .td3-apply .ta { border-radius: var(--ds-rd-sm); border-color: var(--ds-line-strong); background: #fff; }
.td3-apply .inp:focus-within, .td3-apply .ta:focus-within { border-color: var(--ds-cyan-500); box-shadow: 0 0 0 3px var(--ds-cyan-100); }
.td3-apply .inp input, .td3-apply .inp select, .td3-apply .ta textarea { font-size: var(--ds-fs-13); color: var(--ds-ink-900); }
.td3-apply .inp i { color: var(--ds-ink-400); }
.td3-apply .consent { font-size: var(--ds-fs-12); color: var(--ds-ink-500); }
.td3-apply .cv-check { display: grid; gap: 8px; font-size: var(--ds-fs-13); color: var(--ds-ink-700); }
.td3-apply .cv-check i { color: var(--ds-mint-500); }
.td3-apply .lockline { border-radius: var(--ds-rd-md); font-size: var(--ds-fs-12); }
.td3-apply .act-note { border-radius: var(--ds-rd-md); font-size: var(--ds-fs-13); }

/* khối "Nổi bật từ nha khoa VIP" (side-promo) giữ nền tối riêng: không ép màu chữ tiêu đề của hộp thường */
.td3-detail .box.sidep > .bh h2 { color: #fff3d0; font-size: var(--ds-fs-15); }
.td3-detail .box.sidep > .bh { padding: 12px 14px; }
.td3-detail .bk .chat-go, .td3-detail .bk .btn.chat { background: var(--ds-mint-500); }

/* ô nhập không tràn khung thẻ; trang ứng tuyển rộng hơn một chút */
.td3-apply .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.td3-apply .fgrid > * { min-width: 0; }
.td3-apply .fgrid .full { grid-column: 1 / -1; }
.td3-apply .inp { min-width: 0; max-width: 100%; width: 100%; }
.td3-apply .inp input, .td3-apply .inp select { min-width: 0; width: 100%; }
.td3-apply .ta textarea { width: 100%; box-sizing: border-box; }
.td3-apply .cv-head { padding-bottom: 6px; }
main.wrap.cvpage.td3-apply:has(.ap-wrap) { max-width: 1040px !important; }

/* tương phản nhãn */
.td3-job .ds-chip--new { background: var(--ds-rose-700); }
.td3-job .ds-chip--sponsor { background: var(--ds-orange-700); }
