/**
 * Recruitment (Tuyển dụng) — Trang 11 (archive-job.php) + Trang 12 (single-job.php).
 * v2 industrial direction. Sources: design/v2/recruitment.html + recruitment-detail.html.
 *
 * ARCHIVE half (Trang 11) is fully v2: shared shell atoms (.page-hero/.crumb/
 * .container, .btn, .kicker, .notch, .grid-bg, section, .sec-head) come from base.css;
 * the section components below (.intro/.jobs/.why+.commit/.cta-band) are scoped to
 * the recruitment stylesheet (only enqueued on job archive + single, so no clash).
 * Tokens (--ink, --orange, --s-x, --paper, --display, --body, --mono, --sh-x) from
 * inc/design-tokens.php :root. Both halves (archive + single) are fully v2.
 */

/* ============================================================
   TRANG 11 — ARCHIVE (v2)
   ============================================================ */

/* INTRO (broken 2-col — text left, media right) */
.intro { background: var(--paper); }
.intro .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.intro-media { position: relative; }
.intro-media .im-main { position: relative; aspect-ratio: 4 / 3.2; background-size: cover; background-position: center; box-shadow: var(--sh-md); }
.intro-media .im-tag { position: absolute; right: -22px; bottom: 34px; background: var(--ink); color: #fff; padding: 16px 20px; box-shadow: var(--sh-lg); }
.intro-media .im-tag .t-k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; color: var(--orange); text-transform: uppercase; }
.intro-media .im-tag .t-v { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-top: 3px; }
.intro-body h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: 16px 0 20px; color: var(--ink); }
.intro-body p { color: var(--s-700); margin-bottom: 16px; max-width: 42em; font-size: 0.99rem; }

/* JOBS (editorial row list) */
.jobs { background: #fff; }
.job-list { display: flex; flex-direction: column; gap: 18px; }
.job { display: grid; grid-template-columns: 1fr auto auto; gap: 32px; align-items: center; background: var(--paper); box-shadow: var(--sh-sm); padding: 28px 32px; transition: box-shadow 0.3s, transform 0.3s, background 0.3s; }
.job:hover { background: #fff; box-shadow: var(--sh-md); transform: translateY(-3px); }
.job .j-info .j-dept { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-700); margin-bottom: 7px; }
.job .j-info h3 { font-size: 1.32rem; color: var(--ink); margin-bottom: 8px; transition: color 0.2s; }
.job .j-info h3 a { color: inherit; }
.job:hover .j-info h3 { color: var(--orange-700); }
.job .j-info p { font-size: 0.92rem; color: var(--s-500); max-width: 40em; }
.job .j-meta { display: flex; flex-direction: column; gap: 10px; }
.job .j-meta .mi { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.82rem; color: var(--s-700); white-space: nowrap; }
.job .j-meta .mi svg { width: 16px; height: 16px; stroke: var(--orange); stroke-width: 1.8; fill: none; flex: none; }
.job .j-cta { flex: none; }
.job .j-cta a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--orange-700); border: 1.5px solid var(--s-200); padding: 12px 20px; transition: all 0.2s; }
.job:hover .j-cta a { border-color: var(--orange); }
.job .j-cta a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.job .j-cta a .ar { transition: transform 0.2s; }
.job .j-cta a:hover .ar { transform: translateX(4px); }

/* Empty state */
.job-empty { text-align: center; padding: 60px 20px; color: var(--s-500); }
.job-empty p { font-size: 1rem; margin-bottom: 8px; }

/* WHY WORK (dark panels — shared .commit pattern) */
.why { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.why .grid-bg { opacity: 0.5; }
.why .container { position: relative; z-index: 2; }
.why .sec-head { margin-left: auto; margin-right: auto; text-align: center; }
.why .sec-head h2 { color: #fff; }
.why .sec-head p { color: var(--s-400); }
.commit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.commit-item { position: relative; overflow: hidden; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08); padding: 40px 34px 38px; transition: transform 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s; }
.commit-item::after { content: ""; position: absolute; right: -46px; top: -46px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(217,131,42,0.16), transparent 68%); opacity: 0; transition: opacity 0.35s; pointer-events: none; z-index: 0; }
.commit-item:hover { transform: translateY(-6px); border-color: rgba(217,131,42,0.55); background: rgba(255,255,255,0.052); box-shadow: 0 22px 46px rgba(0,0,0,0.34); }
.commit-item:hover::after { opacity: 1; }
.commit-item .ci-ico { position: relative; z-index: 1; width: 60px; height: 60px; display: grid; place-items: center; background: rgba(217,131,42,0.12); border: 1px solid rgba(217,131,42,0.34); color: var(--orange); margin-bottom: 26px; transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.commit-item:hover .ci-ico { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 10px 22px rgba(217,131,42,0.4); }
.commit-item .ci-ico svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.commit-item h3 { position: relative; z-index: 1; font-size: 1.3rem; color: #fff; margin-bottom: 11px; }
.commit-item p { position: relative; z-index: 1; font-size: 0.94rem; color: var(--s-300); max-width: 26em; }

/* CTA BAND (shared component) */
.cta-band { position: relative; background: var(--orange); color: #fff; overflow: hidden; padding: 72px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay; background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px); background-size: 40px 40px; }
.cta-band::after { content: ""; position: absolute; top: 0; right: 0; width: 46%; height: 100%; background: linear-gradient(120deg, transparent, rgba(26,28,31,0.18)); pointer-events: none; }
.cta-band .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band .ctk { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; margin: 12px 0 8px; max-width: 18em; }
.cta-band p { color: rgba(255,255,255,0.92); font-size: 1.02rem; max-width: 34em; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--orange-700); box-shadow: 0 16px 30px rgba(26,28,31,0.22); }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; }

/* ARCHIVE responsive */
@media (max-width: 1080px) {
	.intro .container { grid-template-columns: 1fr; gap: 40px; }
	.intro-media .im-tag { right: 0; }
	.job { grid-template-columns: 1fr auto; gap: 20px 28px; }
	.job .j-cta { grid-column: 1 / -1; justify-self: start; }
	.commit { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	.job { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
	.job .j-meta { flex-direction: row; flex-wrap: wrap; gap: 14px; }
}

/* ============================================================
   TRANG 12 — SINGLE JOB (v2)
   Band + shell atoms (.page-hero, .crumb, .container, .btn, .kicker,
   .grid-bg, section, .cta-band) come from base.css + the archive half
   above. Only single-page-specific components live here.
   ============================================================ */

/* JOB HERO extras (band itself = shared .page-hero) */
.job-hero .ph-bg { opacity: 0.16; }
.job-hero .kicker { margin-bottom: 6px; }
.job-hero .subtitle { color: var(--s-300); font-size: 1.06rem; max-width: 44em; margin: 0 0 26px; }
.job-hero .pills { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-bottom: 32px; }
.job-hero .pill { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.84rem; color: var(--s-300); }
.job-hero .pill svg { width: 16px; height: 16px; stroke: var(--orange); stroke-width: 1.8; fill: none; flex: none; }
.job-hero .pill.deadline { color: #fff; font-weight: 600; }
.job-hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* QUICK STATS strip (white row overlapping the dark hero) */
.qstats { position: relative; z-index: 6; margin-top: -40px; }
.qstats .qrow { background: #fff; box-shadow: var(--sh-lg); display: grid; grid-template-columns: repeat(3, 1fr); }
.qstat { display: flex; align-items: center; gap: 16px; padding: 26px 30px; border-left: 1px solid var(--s-100); }
.qstat:first-child { border-left: none; }
.qstat .qi { width: 48px; height: 48px; flex: none; display: grid; place-items: center; background: var(--orange-050); border: 1px solid var(--orange-100); color: var(--orange-700); }
.qstat .qi svg { width: 23px; height: 23px; stroke: currentColor; fill: none; }
.qstat .qk { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--s-500); }
.qstat .qv { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); line-height: 1.15; margin-top: 3px; }
.qstat .qv.accent { color: var(--orange-700); }

/* CONTENT (2-col main + sidebar) */
.content { padding: 64px 0 90px; }
.content .container { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }

/* prose sections (ACF WYSIWYG: ul/ol/p).
   `.jsection` is a <section>, so reset the global section{padding:100px 0} atom. */
.jsection { margin-bottom: 40px; padding: 0; }
.jsection:last-child { margin-bottom: 0; }
.jsection h2 { font-size: 1.6rem; color: var(--ink); margin-bottom: 18px; }
.jsection p { color: var(--s-700); font-size: 1rem; line-height: 1.8; margin-bottom: 14px; }
.jsection ul, .jsection ol { list-style: none; margin: 0; padding: 0; }
.jsection li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--s-700); font-size: 1rem; line-height: 1.75; }
.jsection li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; background: var(--orange); transform: rotate(45deg); }

/* sidebar */
.content .sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.scard { background: #fff; box-shadow: var(--sh-sm); padding: 26px 24px; transition: box-shadow 0.3s; }
.scard:hover { box-shadow: var(--sh-md); }
.scard h3 { font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); font-weight: 700; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--s-100); }
.sitem { padding: 13px 0; border-bottom: 1px solid var(--s-100); }
.sitem:last-child { border-bottom: none; padding-bottom: 0; }
.sitem .sl { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--s-400); margin-bottom: 5px; }
.sitem .sv { font-size: 0.98rem; font-weight: 600; color: var(--ink); }
.sitem .sv.accent { color: var(--orange-700); }
.opos { display: block; background: var(--paper); padding: 15px 16px; margin-top: 12px; border: 1.5px solid transparent; transition: all 0.25s; }
.opos:first-of-type { margin-top: 4px; }
.opos:hover { background: #fff; border-color: var(--orange); transform: translateX(4px); }
.opos .ot { font-family: var(--display); font-weight: 700; font-size: 0.96rem; color: var(--ink); margin-bottom: 4px; transition: color 0.2s; }
.opos:hover .ot { color: var(--orange-700); }
.opos .om { font-family: var(--mono); font-size: 0.74rem; color: var(--s-400); }
.ccard { text-align: center; }
.ccard img { height: 54px; width: auto; margin: 0 auto 16px; }
.ccard h4 { font-size: 1.05rem; color: var(--ink); margin-bottom: 10px; }
.ccard p { font-size: 0.86rem; color: var(--s-500); line-height: 1.65; }

/* APPLY (inline form section — GF styled by shared .nv-gform) */
.apply { background: #fff; border-top: 1px solid var(--s-200); padding: 88px 0; }
.apply .form-wrap { max-width: 660px; margin: 0 auto; }
.apply .form-head { text-align: center; margin-bottom: 34px; }
.apply .form-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--ink); margin: 14px 0 12px; }
.apply .form-head p { color: var(--s-500); font-size: 1rem; max-width: 40em; margin: 0 auto; }
.apply-fallback { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* SINGLE responsive */
@media (max-width: 980px) {
	.qstats .qrow { grid-template-columns: 1fr; }
	.qstat { border-left: none; border-top: 1px solid var(--s-100); }
	.qstat:first-child { border-top: none; }
	.content .container { grid-template-columns: 1fr; gap: 44px; }
	.content .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
	.content .sidebar .scard { flex: 1; min-width: 260px; }
}
@media (max-width: 680px) {
	.job-hero .pills { flex-direction: column; gap: 11px; }
	.job-hero .hero-actions { flex-direction: column; align-items: stretch; }
	.job-hero .hero-actions .btn { justify-content: center; }
	.content .sidebar { flex-direction: column; }
	.apply { padding: 60px 0; }
	.apply-fallback { flex-direction: column; }
}
