/* หน้าตำแหน่งงานรอบ 4 — ต่อจาก v3 · ทุกแบบมีแผงรายละเอียดขวา · กล่องสายงานแบบเล็ก (body.cats-*) · ตัวกรอง (body.flt-*) · หัวเตี้ย (body.hero-short) */
/* ⚠️ token ทุกตัวประกาศค่าตรง ๆ ทั้งใน body.b-light และ body.b-dark — ห้ามอ้าง var() ข้ามชุด
   (custom property ที่อ้าง var() จะถูกคำนวณตรงที่ประกาศ แล้วสืบทอดค่าเดิมลงมา — รอบแรกตัวหนังสือแบบ 07 หายเพราะเรื่องนี้) */
body.b-light { --bg: #f3f6fb; --surface: #fff; --surface-2: #f5f7fb; --ink: #1d2433; --mute: #667085; --line: #e4e9f2;
  --brand: #2f6fed; --brand-ink: #fff; --brand-soft: #eaf1ff; --accent: #0f9d6b; --accent-soft: #e3f7ee;
  --note-bg: #fde8d8; --note-ink: #b45309; --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .07); }
body.b-dark { --bg: #0b1220; --surface: #121b2e; --surface-2: #18233a; --ink: #e8edf7; --mute: #94a3bf; --line: #223050;
  --brand: #5b9cff; --brand-ink: #071226; --brand-soft: rgba(91, 156, 255, .14); --accent: #4ade9b; --accent-soft: rgba(74, 222, 155, .12);
  --note-bg: rgba(251, 146, 60, .16); --note-ink: #fdba74; --shadow: 0 10px 30px rgba(0, 0, 0, .3); color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 126px; }
body { margin: 0; font-family: 'Noto Sans Thai', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
.ic { width: 1.1em; height: 1.1em; flex: none; }
.wrap { max-width: 1880px; margin: 0 auto; padding: 0 clamp(16px, 2vw, 32px); }
/* เต็มจอ — ท่านคิวขอให้ซ้าย/ขวาใช้พื้นที่คุ้มขึ้น (จอ 1920 เหลือขอบข้างละ ~20px) */
.loading { padding: 80px 20px; text-align: center; color: #94a3bf; background: #0b1220; min-height: 100vh; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--brand); text-transform: uppercase; }

/* แถบเลือกแบบ (ไม่ใช่ส่วนของหน้าจริง) */
.review { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 7px 16px; background: #050a14; color: #cbd5e1; font-size: 13px; border-bottom: 1px solid #1a2540; }
.review a { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.review span { flex: 1; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.review b { color: #fff; margin-right: 4px; }
.review nav { display: flex; gap: 6px; }
.review nav a { width: 28px; height: 28px; justify-content: center; border-radius: 8px; background: #1e293b; font-size: 18px; }

/* หัวเว็บ + hero — Midnight ทุกแบบ */
/* หัวเว็บติดบนตลอดเหมือนเว็บจริง (ใต้แถบเลือกแบบ สูง 42px — ขึ้นเว็บจริงให้ top: 0) */
.site { position: sticky; top: 42px; z-index: 48; background: rgba(11, 18, 32, .96); border-bottom: 1px solid #1c2944; backdrop-filter: blur(10px); }
.site-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a { padding: 8px 12px; border-radius: 10px; font-size: 14.5px; color: #c9d4e8; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav a.on { color: #7fb2ff; font-weight: 700; background: rgba(91, 156, 255, .14); }
.post-job { font-size: 14px; font-weight: 600; color: #e8edf7; padding: 8px 12px; }
.login { padding: 9px 20px; border-radius: 999px; background: #5b9cff; color: #071226; font-weight: 700; font-size: 14px; }

.hero { background: radial-gradient(circle at 50% -20%, #1d3a6e 0, transparent 60%), #0b1220; color: #e8edf7; }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 56px; padding-bottom: 60px; }
.hero .eyebrow { color: #7fb2ff; }
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; margin: 12px 0; color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #5b9cff, #b28bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #a7b4cc; font-size: clamp(15px, 1.4vw, 18px); margin: 0 auto 26px; max-width: 620px; }
.hs { display: flex; gap: 8px; width: 100%; max-width: 760px; padding: 8px; background: #121b2e; border: 1px solid #263556; border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.hs label { display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #8a99b6; min-width: 0; }
.hs-kw { flex: 1.6; } .hs-prov { flex: 1; border-left: 1px solid #263556; }
.hs input, .hs select { border: 0; outline: 0; background: transparent; width: 100%; height: 48px; color: #e8edf7; font-size: 15px; }
.hs select option { background: #121b2e; }
.hs button { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 0 26px; border-radius: 16px; background: #5b9cff; color: #071226; font-weight: 700; font-size: 15px; }
.hs-pop { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: #8a99b6; }
.hs-pop button { border: 1px solid #2a3a5e; background: rgba(255, 255, 255, .03); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: #e8edf7; }
.hs-pop button:hover { border-color: #5b9cff; color: #7fb2ff; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 30px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 26px; font-weight: 800; line-height: 1.1; color: #fff; }
.stats span { font-size: 13px; color: #8a99b6; }

/* ภาพสายธุรกิจ */
.cats { padding: 40px 0 6px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; margin-top: 4px; }
.cat-clear { border: 0; background: none; color: var(--brand); font-weight: 600; font-size: 14px; }
.cat { position: relative; border: 0; padding: 0; background: none; text-align: left; color: var(--ink); }
.cat-img { display: block; overflow: hidden; background: var(--surface-2); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat:hover .cat-img img { transform: scale(1.06); }
.cat-txt { display: flex; flex-direction: column; min-width: 0; }
.cat-txt b { font-size: 14px; line-height: 1.3; }
.cat-txt small { font-size: 12px; color: var(--mute); line-height: 1.35; }
.cat-n { font-weight: 800; font-size: 13px; color: var(--brand); white-space: nowrap; }
.cat-n i { font-style: normal; font-weight: 500; }
.cat.is-empty { opacity: .5; }
.cats-tiles .cat-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .cats-tiles .cat-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cats-tiles .cat { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.cats-tiles .cat::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 3px; background: var(--bc); }
.cats-tiles .cat:hover { transform: translateY(-3px); }
.cats-tiles .cat-img { aspect-ratio: 16 / 10; }
.cats-tiles .cat-txt { padding: 10px 12px 12px; }
.cats-tiles .cat-n { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.cats-tiles .cat.on { border-color: var(--bc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc) 30%, transparent); }
.cats-strip .cat-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.cats-strip .cat { display: flex; align-items: center; gap: 10px; flex: none; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.cats-strip .cat-img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bc); }
.cats-strip .cat-txt small, .cats-strip .cat-n i { display: none; }
.cats-strip .cat-txt b { white-space: nowrap; font-size: 13.5px; }
.cats-strip .cat-n { padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); }
.cats-strip .cat.on { border-color: var(--bc); background: color-mix(in srgb, var(--bc) 16%, var(--surface)); }

/* กระดาน: ตัวกรองซ้าย · การ์ด · (แผงรายละเอียดขวา) */
.board { padding: 32px 0 56px; }
.board-grid { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 24px; align-items: start; }
.det-panel .board-grid { grid-template-columns: 264px minmax(0, 1fr) clamp(380px, 26vw, 470px); gap: 22px; }
.r-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 16px; }
.r-head h2 { font-size: 22px; font-weight: 800; }
.r-count { font-size: 15px; font-weight: 600; color: var(--mute); margin-left: 4px; }
.r-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.r-chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 3px 8px 3px 12px; font-size: 13px; font-weight: 600; }
.chip .ic { width: 14px; height: 14px; }
.r-tools { display: flex; gap: 8px; align-items: center; flex: none; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute); }
.sort select, .open-f { height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 0 12px; font-size: 14px; color: var(--ink); }
.open-f { display: none; align-items: center; gap: 8px; font-weight: 600; }
.f-total { min-width: 20px; height: 20px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 12px; display: inline-grid; place-items: center; }
.job-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cmin, 262px), 1fr)); gap: 18px; }
.r-more { text-align: center; margin-top: 24px; }
.r-more button { border: 1px solid var(--line); background: var(--surface); padding: 12px 28px; border-radius: 999px; font-weight: 700; color: var(--brand); }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; color: var(--mute); }
.empty .ic { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--brand); }
.empty b { display: block; color: var(--ink); font-size: 17px; }
.empty button { margin-top: 12px; border: 0; background: var(--brand); color: var(--brand-ink); padding: 10px 20px; border-radius: 999px; font-weight: 700; }

/* ===== การ์ดงาน (โครงเดียวกับเว็บจริง) ===== */
.job { position: relative; display: flex; flex-direction: column; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.job:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, .14); border-color: color-mix(in srgb, var(--bc) 55%, var(--line)); }
.job.sel { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), 0 14px 32px rgba(0, 0, 0, .14); }
.logo { position: relative; display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 6px 14px rgba(0, 0, 0, .25); }
.logo b { font-weight: 800; color: #2f6fed; font-size: 18px; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.logo--lg { width: 76px; height: 76px; }
.jc-cover { position: relative; display: flex; flex-direction: column; height: 156px; color: #fff; background-size: cover; background-position: center right; background-color: var(--cc); }
.jc-code { position: absolute; left: 0; top: 0; padding: 3px 11px; border-bottom-right-radius: 10px; background: rgba(0, 0, 0, .5); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.jc-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 30px 84px 0 14px; }
.jc-biz { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.jc-amt { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(4px); }
.jc-code { display: inline-flex; align-items: center; gap: 6px; }
.jc-new { font-style: normal; padding: 0 7px; border-radius: 999px; background: #ff6b35; font-size: 11px; font-weight: 700; line-height: 1.6; }
.jc-acts { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.act { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #475467; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.act .ic { width: 16px; height: 16px; }
.act:hover { color: #2f6fed; }
.save.on { color: #e5484d; } .save.on .ic { fill: currentColor; }
.jc-head { display: flex; gap: 12px; align-items: center; margin-top: auto; padding: 0 14px 14px; min-width: 0; }
.jc-head > div { min-width: 0; }
.jc-head h3 { font-size: 16.5px; font-weight: 800; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.jc-head p { margin: 1px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 14px 16px 12px; }
.jc-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jc-sal, .jc-loc { display: flex; gap: 8px; align-items: start; min-width: 0; }
.jc-sal > .ic, .jc-loc > .ic { width: 20px; height: 20px; margin-top: 1px; }
.jc-sal > .ic { color: var(--accent); } .jc-loc > .ic { color: #f0567a; }
.jc-sal b, .jc-loc b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.jc-sal b { color: var(--accent); }
.jc-sal small, .jc-loc small { display: block; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.5; background: var(--pc); color: var(--pi); }
.pill--note { background: var(--note-bg); color: var(--note-ink); font-weight: 600; }
.pill--more { background: var(--surface-2); color: var(--mute); border: 1px solid var(--line); }
.jc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.jc-stat { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.jc-stat span, .jc-ago { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.jc-stat b { color: var(--ink); font-weight: 700; }

/* ป้ายแบบพาสเทล (ใช้กับ glass / soft) */
.card-glass .pill:not(.pill--note):not(.pill--more), .card-soft .pill:not(.pill--note):not(.pill--more) {
  background: color-mix(in srgb, var(--pc) 16%, transparent); color: color-mix(in srgb, var(--pc) 72%, var(--ink)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 32%, transparent); }

/* 03 glass */
.card-glass .job { background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border-color: rgba(255, 255, 255, .08); backdrop-filter: blur(10px); }
.card-glass .job:hover { box-shadow: 0 0 0 1px var(--bc), 0 18px 50px color-mix(in srgb, var(--bc) 30%, transparent); }
.card-glass .jc-cover { margin: 8px 8px 0; border-radius: 14px; overflow: hidden; }
.card-glass .board { background: radial-gradient(circle at 80% 0, rgba(91, 156, 255, .08), transparent 40%); }
/* 04 tall */
.card-tall .jc-cover { height: 220px; }
.card-tall .jc-head { flex-direction: column; align-items: start; gap: 10px; }
.card-tall .jc-head h3 { font-size: 20px; }
.card-tall .logo { width: 56px; height: 56px; }
.card-tall { --cmin: 290px; }
/* 05 wide */
.card-wide .job-list { grid-template-columns: 1fr; gap: 14px; }
.card-wide .job { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.card-wide .jc-cover { position: static; height: auto; min-height: 176px; }
.card-wide .jc-badges { padding-right: 14px; }
.card-wide .jc-acts .act { box-shadow: none; border: 1px solid var(--line); }
.card-wide .jc-body { padding: 16px 20px 12px; }
.card-wide .jc-info { padding-right: 76px; }
.card-wide .jc-info { grid-template-columns: repeat(2, minmax(0, 180px)); }
/* 06 soft */
.card-soft .job { border-radius: 26px; border: 0; box-shadow: 0 6px 24px rgba(47, 111, 237, .09); }
.card-soft .jc-cover { margin: 10px 10px 0; border-radius: 20px; overflow: hidden; height: 150px; }
.card-soft .jc-code { border-bottom-right-radius: 12px; }
.card-soft .jc-body { padding: 14px 18px 14px; }
.card-soft .jc-sal, .card-soft .jc-loc { padding: 8px 10px; border-radius: 14px; background: var(--surface-2); }
.card-soft .jc-foot { border-top: 1px dashed var(--line); }
/* 07 stat */
.card-stat .jc-foot { flex-direction: column; align-items: stretch; gap: 8px; }
.card-stat .jc-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.card-stat .jc-stat span { justify-content: center; gap: 6px; padding: 6px; border-radius: 10px; background: var(--surface-2); font-size: 11.5px; }
.card-stat .jc-stat b { font-size: 14px; color: var(--brand); }
.card-stat .jc-stat .st-a b { color: var(--accent); }
.card-stat .jc-ago { justify-content: end; }
/* 08 edge */
.card-edge .job { border-left: 5px solid var(--bc); border-radius: 14px; }
.card-edge .jc-cover { height: 128px; }
.card-edge .job.sel { box-shadow: 0 0 0 2px var(--bc), 0 14px 32px rgba(0, 0, 0, .12); border-color: var(--bc); }
/* 09 compact */
.card-compact { --cmin: 214px; }
.card-compact .jc-cover { height: 132px; }
.card-compact .jc-head h3 { -webkit-line-clamp: 1; }
.card-compact .jc-badges { padding-top: 26px; padding-right: 76px; }
.card-compact .jc-amt { display: none; }
.card-compact .logo { width: 38px; height: 38px; }
.card-compact .jc-head { padding: 0 12px 10px; gap: 9px; }
.card-compact .jc-head h3 { font-size: 14.5px; }
.card-compact .jc-body { padding: 10px 12px; gap: 9px; }
.card-compact .jc-info { grid-template-columns: 1fr; gap: 4px; }
.card-compact .jc-sal small, .card-compact .jc-loc small { display: none; }
.card-compact .jc-foot .st-a { display: none; }

/* ===== ตัวกรองซ้าย ===== */
.filters { position: sticky; top: 126px; }
.f-in { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-height: calc(100vh - 142px); overflow-y: auto; scrollbar-width: thin; }
.f-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 16px 16px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.f-head h3 { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 16px; font-weight: 800; }
.f-head h3 .ic { color: var(--brand); }
.f-reset { border: 0; background: none; color: var(--brand); font-size: 13px; font-weight: 600; padding: 4px; }
.f-close { display: none; border: 0; background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; place-items: center; }
.f-kw { display: flex; align-items: center; gap: 8px; margin: 14px 16px 8px; padding: 0 12px; height: 42px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--mute); }
.f-kw input { flex: 1; border: 0; outline: 0; background: none; min-width: 0; color: var(--ink); font-size: 14px; }
.f-saved { display: flex; align-items: center; gap: 8px; width: calc(100% - 32px); margin: 0 16px 6px; padding: 9px 12px; border-radius: 10px; border: 1px dashed var(--line); background: none; font-size: 13.5px; color: var(--mute); }
.f-saved b { margin-left: auto; color: var(--ink); }
.f-saved.on { border-style: solid; border-color: #e5484d; color: #e5484d; background: rgba(229, 72, 77, .08); }
.f-sec { border-top: 1px solid var(--line); }
.f-sec summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-weight: 700; font-size: 14.5px; cursor: pointer; list-style: none; }
.f-sec summary::-webkit-details-marker { display: none; }
.f-sec summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.f-sec[open] summary::after { transform: rotate(-135deg) translateX(-2px); }
.f-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.f-check, .f-biz { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.f-check:hover, .f-biz:hover { background: var(--surface-2); }
.f-check input, .f-biz input, .f-btile input, .f-chip input, .f-sal input { position: absolute; opacity: 0; pointer-events: none; }
.box { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.6px solid color-mix(in srgb, var(--mute) 60%, transparent); color: transparent; }
.box .ic { width: 14px; height: 14px; stroke-width: 3; }
.f-check input:checked + .box { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.f-check input:focus-visible + .box, .f-biz input:focus-visible ~ .f-bimg, .f-btile input:focus-visible ~ .f-bimg, .f-chip input:focus-visible + span, .f-sal input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.f-lab { flex: 1; min-width: 0; line-height: 1.3; }
.f-lab small { display: block; font-size: 11.5px; color: var(--mute); }
.f-n { font-size: 12px; color: var(--mute); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
.f-biz .f-bimg { width: 40px; height: 40px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 -3px 0 var(--bc); }
.f-bimg img { width: 100%; height: 100%; object-fit: cover; }
.f-biz input:checked ~ .f-bimg { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--bc); }
.f-biz input:checked ~ .f-lab { font-weight: 700; }
.f-biz input:checked ~ .f-n { background: var(--bc); color: #fff; }
.f-bgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-btile { position: relative; display: block; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--surface-2); }
.f-btile .f-bimg { position: absolute; inset: 0; }
.f-btile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, color-mix(in srgb, var(--bc) 30%, rgba(5, 12, 26, .88))); }
.f-bname { position: absolute; z-index: 1; left: 8px; right: 8px; bottom: 6px; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.25; }
.f-btile .f-n { position: absolute; z-index: 1; top: 6px; right: 6px; background: rgba(255, 255, 255, .92); color: #1d2433; font-weight: 700; }
.f-btile input:checked ~ .f-n { background: var(--bc); color: #fff; }
.f-btile:has(input:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--bc); }
.f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chip.more { display: none; } .f-chips.all .f-chip.more { display: block; }
.f-chip span { display: inline-flex; gap: 5px; align-items: center; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; cursor: pointer; background: var(--surface); }
.f-chip span i { font-style: normal; font-size: 11.5px; color: var(--mute); }
.f-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.f-chip input:checked + span i { color: inherit; opacity: .8; }
.f-more { align-self: start; margin-top: 6px; border: 0; background: none; padding: 0; color: var(--brand); font-size: 13px; font-weight: 600; }
.f-sal { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.f-sal label:first-child { grid-column: 1 / -1; }
.f-sal span { display: block; text-align: center; padding: 8px; border-radius: 10px; border: 1px solid var(--line); font-size: 13.5px; cursor: pointer; }
.f-sal input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.f-promo { position: relative; margin: 6px 12px 12px; padding: 16px; border-radius: 14px; overflow: hidden; color: #fff; background: #10213a; }
.f-pimg { position: absolute; inset: 0; opacity: .35; } .f-pimg img { width: 100%; height: 100%; object-fit: cover; }
.f-promo > :not(.f-pimg) { position: relative; }
.f-promo b { display: block; font-size: 15px; }
.f-promo p { margin: 4px 0 12px; font-size: 13px; opacity: .85; }
.f-promo a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; color: #10213a; font-size: 13px; font-weight: 700; }
.f-scrim { display: none; }

/* ===== รายละเอียด: แผงขวา (แบบเว็บเดิม) + ลิ้นชัก ===== */
.detail { position: sticky; top: 126px; }
.dp-in { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden auto; max-height: calc(100vh - 142px); box-shadow: var(--shadow); scrollbar-width: thin; }
.dp-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: linear-gradient(90deg, #1d4ed8, #2f6fed); color: #fff; font-weight: 700; font-size: 14.5px; }
.dp-bar i { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.d-cover { position: relative; height: 130px; background-size: cover; background-position: center right; }
.d-cover .jc-biz { position: absolute; left: 16px; top: 14px; }
.d-body { padding: 0 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.d-co { display: flex; gap: 14px; align-items: start; margin-top: -36px; position: relative; }
.d-co > div:not(.d-icons) { padding-top: 42px; min-width: 0; flex: 1; }
.d-code { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; }
.d-co h2 { font-size: 20px; font-weight: 800; margin-top: 4px; }
.d-co p { margin: 2px 0 0; color: var(--mute); font-size: 13.5px; }
.d-co p.en { font-size: 12.5px; }
.d-loc { display: flex; align-items: center; gap: 4px; }
.d-apply-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.d-sal { display: flex; align-items: center; gap: 6px; flex: 1; color: var(--accent); }
.d-sal .ic { width: 22px; height: 22px; } .d-sal b { font-size: 18px; }
.d-apply { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; background: linear-gradient(90deg, #1d4ed8, #2f6fed); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 6px 16px rgba(47, 111, 237, .35); }
.d-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--mute); }
.d-stats span { display: inline-flex; align-items: center; gap: 5px; } .d-stats b { color: var(--ink); }
.d-h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--line); }
.d-h .ic { color: var(--brand); }
.d-body h4 { margin: 4px 0 -6px; font-size: 15px; }
.d-body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.d-body li { display: flex; gap: 8px; } .d-body li .ic { color: var(--accent); margin-top: 3px; }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(520px, 100vw); height: 100vh; max-height: none; max-width: none; padding: 0; border: 0; background: var(--surface); color: var(--ink); box-shadow: -20px 0 60px rgba(0, 0, 0, .35); }
.drawer[open] { display: flex; flex-direction: column; animation: slide .25s ease-out; }
.drawer::backdrop { background: rgba(3, 8, 20, .6); backdrop-filter: blur(2px); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.d-close { position: absolute; z-index: 3; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: #1d2433; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.d-in { flex: 1; overflow-y: auto; }
.drawer .d-cover { height: 170px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: #0f172a; color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }

/* CTA + footer */
.cta { padding: 0 0 56px; }
.cta-in { display: flex; align-items: center; gap: 28px; padding: 30px clamp(20px, 3vw, 40px); border-radius: 24px; background: linear-gradient(120deg, #1d3a6e, #4b2d8c); color: #fff; }
.cta-in h2 { font-size: 24px; font-weight: 800; margin: 4px 0; }
.cta-in p { margin: 0; opacity: .9; }
.cta-in .eyebrow { color: #fff; opacity: .85; }
.cta-art { display: flex; flex: none; }
.cta-art span { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255, 255, 255, .9); margin-left: -16px; background: #fff; }
.cta-art span:first-child { margin-left: 0; }
.cta-art img { width: 100%; height: 100%; object-fit: cover; }
.cta-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; background: #fff; color: #1d3a6e; font-weight: 800; white-space: nowrap; }
.foot { border-top: 1px solid #1c2944; background: #0b1220; }
.foot-in { display: flex; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; font-size: 13.5px; color: #94a3bf; }
.foot img { height: 24px; width: auto; filter: brightness(0) invert(1); }
.foot a { margin-left: auto; color: #7fb2ff; font-weight: 600; }

/* ===== responsive ===== */
@media (max-width: 1280px) {
  .det-panel .board-grid { grid-template-columns: 260px minmax(0, 1fr); }
  .detail { display: none; }
  .card-wide .job { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 1180px) { .site-nav a { padding: 8px 8px; font-size: 13.5px; } .post-job { display: none; } }
@media (max-width: 1020px) {
  .board-grid, .det-panel .board-grid { grid-template-columns: 1fr; }
  .open-f { display: inline-flex; }
  .filters { position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: min(360px, 92vw); transform: translateX(-105%); transition: transform .25s; }
  .f-in { height: 100%; max-height: none; border-radius: 0; }
  .f-close { display: grid; }
  .f-open .filters { transform: none; }
  .f-open .f-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(3, 8, 20, .55); }
}
@media (max-width: 860px) { .site-nav { display: none; } .login { margin-left: auto; } }
@media (max-width: 640px) {
  .review span { font-size: 12px; }
  .hero-in { padding-top: 36px; padding-bottom: 40px; }
  .hs { flex-direction: column; }
  .hs-prov { border-left: 0; border-top: 1px solid #263556; }
  .hs button { justify-content: center; height: 48px; }
  .stats { gap: 10px 24px; } .stats b { font-size: 22px; }
  .sec-head { flex-direction: column; align-items: start; }
  .cats-tiles .cat-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .r-head { flex-direction: column; } .r-tools { width: 100%; } .sort { margin-left: auto; }
  .card-wide .job { grid-template-columns: 1fr; }
  .card-wide .jc-cover { min-height: 150px; }
  .cta-in { flex-direction: column; text-align: center; } .cta-btn { margin: 0; }
  .foot-in { flex-wrap: wrap; }
  .d-body { padding: 0 16px 20px; } .d-kv { grid-template-columns: 1fr; }
  .d-apply-row { flex-direction: column; align-items: stretch; } .d-apply { justify-content: center; }
}

/* ================= รอบ 3: โทนหัวน้ำเงิน ================= */
.hero-royal .hero { background: radial-gradient(circle at 15% 0, #3b82f6 0, transparent 45%), radial-gradient(circle at 90% 100%, #1e40af 0, transparent 50%), linear-gradient(160deg, #1d4ed8, #0b2a6b); }
.hero-royal .hero .eyebrow, .hero-royal .lead, .hero-royal .stats span, .hero-royal .hs-pop { color: #dbe7ff; }
.hero-royal .hero h1 em { background: linear-gradient(90deg, #bfdbfe, #fff); -webkit-background-clip: text; background-clip: text; }
.hero-royal .site { background: rgba(14, 40, 110, .96); border-bottom-color: rgba(255, 255, 255, .1); }
.hero-ocean .hero { background: linear-gradient(135deg, #0b2a6b 0%, #0e4fa8 55%, #0891b2 100%); }
.hero-ocean .hero .eyebrow, .hero-ocean .lead, .hero-ocean .stats span, .hero-ocean .hs-pop { color: #d4f1ff; }
.hero-ocean .hero h1 em { background: linear-gradient(90deg, #7dd3fc, #a7f3d0); -webkit-background-clip: text; background-clip: text; }
.hero-ocean .site { background: rgba(11, 42, 107, .96); }
.hero-gold .hero { background: radial-gradient(circle at 50% -20%, #1b3d70 0, transparent 60%), #0a1628; }
.hero-gold .hero h1 em { background: linear-gradient(90deg, #f5b544, #ffd98a); -webkit-background-clip: text; background-clip: text; }
.hero-gold .hero .eyebrow { color: #f5b544; }
.hero-gold .site { background: rgba(10, 22, 40, .97); }
.hero-gold .login, .hero-gold .hs button { background: #f5b544; color: #1a1200; }
.hero-gold .site-nav a.on { color: #f5b544; background: rgba(245, 181, 68, .12); }
.hero-gold .job.sel { border-color: #d99a1e; box-shadow: 0 0 0 2px #d99a1e, 0 14px 32px rgba(0, 0, 0, .12); }
.hero-gold .dp-bar, .hero-gold .d-apply { background: linear-gradient(90deg, #0a1628, #1b3d70); color: #fff; box-shadow: none; }
.hero-gold .dp-bar i { background: #f5b544; box-shadow: 0 0 0 3px rgba(245, 181, 68, .3); }
.hero-gold .cta-in { background: linear-gradient(120deg, #0a1628, #1b3d70); border: 1px solid rgba(245, 181, 68, .35); }
/* หัวฟ้าสว่าง — ช่องค้นหาเป็นกล่องขาว */
.hero-royal .hs, .hero-ocean .hs { background: #fff; border-color: transparent; }
.hero-royal .hs input, .hero-ocean .hs input, .hero-royal .hs select, .hero-ocean .hs select { color: #1d2433; }
.hero-royal .hs select option, .hero-ocean .hs select option { background: #fff; }
.hero-royal .hs-prov, .hero-ocean .hs-prov { border-left-color: #e4e9f2; border-top-color: #e4e9f2; }
.hero-royal .hs label, .hero-ocean .hs label { color: #667085; }
.hero-royal .hs button { background: #0b2a6b; color: #fff; }
.hero-ocean .hs button { background: #0e4fa8; color: #fff; }
.hero-royal .hs-pop button, .hero-ocean .hs-pop button { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; }
.hero-royal .cta-in { background: linear-gradient(120deg, #1d4ed8, #0b2a6b); }
.hero-ocean .cta-in { background: linear-gradient(120deg, #0b2a6b, #0891b2); }

/* ================= รอบ 3: กล่องสายงานสี + ไอคอน (แบบเว็บจริง) ================= */
.bz-ic { width: 24px; height: 24px; flex: none; }
.cats { padding: 30px 0 4px; }
.cats-in { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px 20px; box-shadow: var(--shadow); }
.cats .sec-head { margin-bottom: 14px; }
.cats .sec-head h2 { font-size: 19px; }
.cat-list { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 10px; }
.cat { --soft: color-mix(in srgb, var(--bc) 9%, #fff); --edge: color-mix(in srgb, var(--bc) 28%, #fff);
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px; min-width: 0;
  border: 1px solid var(--edge); border-radius: 14px; background: var(--soft); color: #1d2433; text-align: center; transition: transform .15s, box-shadow .15s, background .15s; }
.cat:not(.is-empty):hover { transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--bc) 22%, transparent); }
.cat-ico { color: var(--bc); display: grid; place-items: center; }
.cat-txt { display: block; }
.cat-txt b { display: block; font-size: 12px; font-weight: 700; line-height: 1.3; }
.cat-txt small { display: none; }
.cat-n { font-size: 12px; font-weight: 700; color: var(--bc); }
.cat.is-empty { --soft: #f6f7f9; --edge: #eceff3; color: #a3abb8; cursor: default; opacity: 1; }
.cat.is-empty .cat-ico, .cat.is-empty .cat-n { color: #b8c0cc; }
.cat.on { background: var(--bc); border-color: var(--bc); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--bc) 35%, transparent); }
.cat.on .cat-ico, .cat.on .cat-n { color: #fff; }

/* overlap: แถบกล่องลอยทับขอบล่างหัวเว็บ */
.cats-overlap .hero-in { padding-bottom: 120px; }
.cats-overlap .cats { margin-top: -96px; position: relative; z-index: 2; padding-top: 0; }
.cats-overlap .cats-in { box-shadow: 0 20px 50px rgba(11, 30, 70, .18); border: 0; }

/* circle: ไอคอนในวงกลมสี ไม่มีกรอบกล่อง */
.cats-circle .cat { background: none; border: 0; padding: 6px 2px; }
.cats-circle .cat-ico { width: 58px; height: 58px; border-radius: 50%; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.cats-circle .cat.is-empty .cat-ico { background: #f2f4f7; }
.cats-circle .cat-n { position: absolute; top: 2px; right: calc(50% - 38px); min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--bc); color: #fff; font-size: 11px; box-shadow: 0 0 0 2px #fff; }
.cats-circle .cat.is-empty .cat-n { background: #d0d5dd; color: #fff; }
.cats-circle .cat.on { background: none; color: var(--bc); box-shadow: none; }
.cats-circle .cat.on .cat-ico { background: var(--bc); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--bc) 40%, transparent); }
.cats-circle .cat.on .cat-n { color: #fff; }

/* solid: ไอคอนพื้นสีทึบในกล่องขาว */
.cats-solid .cat { background: #fff; border-color: var(--line); }
.cats-solid .cat-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bc); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--bc) 30%, transparent); }
.cats-solid .cat.is-empty .cat-ico { background: #e4e7ec; color: #fff; box-shadow: none; }
.cats-solid .cat-n { color: #667085; font-weight: 600; }
.cats-solid .cat.on { background: var(--soft); border-color: var(--bc); color: #1d2433; box-shadow: 0 0 0 2px var(--bc); }
.cats-solid .cat.on .cat-ico { color: #fff; } .cats-solid .cat.on .cat-n { color: var(--bc); }

/* pill: แถวเดียวเลื่อนได้ ไอคอนซ้าย ขอบสีประจำสายงาน */
.cats-pill .cats-in { padding: 14px 16px; }
.cats-pill .sec-head { display: none; }
.cats-pill .cat-list { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; }
.cats-pill .cat { flex: none; flex-direction: row; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; border-left: 4px solid var(--bc); }
.cats-pill .cat.is-empty { border-left-color: #d0d5dd; }
.cats-pill .bz-ic { width: 20px; height: 20px; }
.cats-pill .cat-txt b { font-size: 13px; white-space: nowrap; }
.cats-pill .cat-n { padding: 0 7px; border-radius: 999px; background: #fff; }
.cats-pill .cat.on .cat-n { background: rgba(255, 255, 255, .25); }


@media (max-width: 1380px) { .cat-list { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 1280px) { }
@media (max-width: 1020px) {
  .cat-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cats-overlap .cats { margin-top: -80px; }
}
@media (max-width: 640px) {
  .cat-list { display: flex; overflow-x: auto; padding-bottom: 6px; }
  .cat-list .cat { flex: 0 0 104px; }
  .cats-pill .cat-list .cat { flex: none; }
  .cats-in { padding: 14px; }
}

/* ================= รอบ 3: รายละเอียดงานครบแบบเว็บจริง ================= */
.d-co { align-items: start; }
.d-icons { display: flex; gap: 6px; padding-top: 44px; flex: none; }
.d-icons .act { box-shadow: none; border: 1px solid var(--line); }
.d-coname { display: flex; flex-direction: column; margin-top: 2px; }
.d-coname b { color: var(--ink); font-weight: 600; font-size: 14px; }
.d-coname i { font-style: normal; font-size: 12.5px; color: var(--mute); }
.d-cofull { margin: -4px 0 0; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
.d-cofull span { color: var(--mute); }
.d-cofull em { font-style: normal; font-size: 12.5px; color: var(--mute); }
.d-kv { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.d-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; padding: 8px 12px; font-size: 13.5px; line-height: 1.5; }
.d-row:nth-child(odd) { background: var(--surface-2); }
.d-row b { font-weight: 700; color: var(--mute); font-size: 12.5px; }
.d-row span { color: var(--ink); overflow-wrap: anywhere; }
.d-body h4.d-sec { margin: 6px 0 -4px; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; }
.dia { color: var(--brand); font-size: 11px; }
.d-body ul.d-lines { gap: 5px; padding-left: 18px; list-style: disc; display: block; }
.d-body ul.d-lines li { display: list-item; font-size: 14px; margin-bottom: 4px; }
.d-body ul.d-lines li::marker { color: var(--brand); }
.d-body ul.d-benefits { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; }
.d-body ul.d-benefits li { align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.d-body ul.d-benefits li .ic { margin: 0; width: 15px; height: 15px; }
.d-wait { margin: 0; color: var(--mute); font-size: 13.5px; }
.d-contact { display: flex; flex-direction: column; gap: 12px; padding: 14px; margin-top: 4px; border-radius: 14px; background: var(--brand-soft); }
.d-contact h4.d-sec { margin-top: 0; }
.d-contact .d-kv { background: #fff; }
.d-contact .d-row:nth-child(odd) { background: #fff; }
.d-form { align-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 14px; }
.co-links { display: flex; gap: 8px; }
.co-link { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-size: 11px; }
.co-link svg { width: 28px; height: 28px; }
.d-map-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.d-map-head h4.d-sec { margin: 0; }
.d-map-head a { font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.d-map { position: relative; height: 210px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.d-map iframe { width: 100%; height: 100%; border: 0; }
.d-map-hit { position: absolute; inset: 0; }
@media (max-width: 640px) { .d-row { grid-template-columns: 108px minmax(0, 1fr); } .d-icons { padding-top: 40px; } }

/* เปิดในหน้าหลักผ่านตัวเลือกแบบ (?embed=1) — ไม่มีแถบเลือกแบบสีดำ หัวเว็บติดบนสุด */
.is-embed .review { display: none; }
.is-embed .site { top: 0; }
.is-embed .filters, .is-embed .detail { top: 84px; }
.is-embed .f-in, .is-embed .dp-in { max-height: calc(100vh - 100px); }
html:has(.is-embed) { scroll-padding-top: 84px; }

/* ================= รอบ 4: หัวเว็บเตี้ย ================= */
.hero-short .hero-in { padding-top: 34px; padding-bottom: 34px; }
.hero-short .hero h1 { font-size: clamp(26px, 3vw, 40px); margin: 8px 0; }
.hero-short .lead { margin-bottom: 18px; }
.hero-short .stats { display: none; }

/* ================= รอบ 4: กล่องสายงานแบบเล็ก (ไม่กินพื้นที่) ================= */
:is(.cats-mini, .cats-chips, .cats-iconrow, .cats-tabs) .cats { padding: 18px 0 0; }
:is(.cats-mini, .cats-chips, .cats-iconrow, .cats-tabs) .cats-in { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; }
:is(.cats-mini, .cats-chips, .cats-iconrow, .cats-tabs) .sec-head { flex: none; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; padding-right: 14px; border-right: 1px solid var(--line); }
:is(.cats-mini, .cats-chips, .cats-iconrow, .cats-tabs) .sec-head .eyebrow { display: none; }
:is(.cats-mini, .cats-chips, .cats-iconrow, .cats-tabs) .sec-head h2 { font-size: 14px; white-space: nowrap; }
:is(.cats-mini, .cats-chips, .cats-iconrow, .cats-tabs) .cat-clear { font-size: 12px; padding: 0; }
:is(.cats-mini, .cats-chips, .cats-iconrow, .cats-tabs) .cat-list { flex: 1; min-width: 0; }
:is(.cats-mini, .cats-chips, .cats-iconrow, .cats-tabs) .cat-txt small { display: none; }

/* mini: กล่องเล็กแนวนอน (ไอคอนซ้าย ชื่อ ตัวเลขขวา) 2 แถว */
.cats-mini .cat-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cats-mini .cat { flex-direction: row; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 10px; text-align: left; }
.cats-mini .bz-ic { width: 18px; height: 18px; }
.cats-mini .cat-txt { flex: 1; min-width: 0; }
.cats-mini .cat-txt b { font-size: 11.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cats-mini .cat-n { font-size: 11.5px; }

/* chips: ชิปแถวเดียว เลื่อนได้ */
.cats-chips .cat-list { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: thin; }
.cats-chips .cat { flex: none; flex-direction: row; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; }
.cats-chips .bz-ic { width: 18px; height: 18px; }
.cats-chips .cat-txt b { font-size: 12.5px; white-space: nowrap; }
.cats-chips .cat-n { min-width: 20px; padding: 0 6px; border-radius: 999px; background: #fff; font-size: 11.5px; text-align: center; }
.cats-chips .cat.on .cat-n { background: rgba(255, 255, 255, .25); }

/* iconrow: ไอคอนสี่เหลี่ยมเล็ก 13 อันแถวเดียว ชื่อสั้นใต้ไอคอน */
.cats-iconrow .cat-list { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; }
.cats-iconrow .cat { background: none; border: 0; padding: 2px; gap: 3px; }
.cats-iconrow .cat-ico { position: relative; width: 38px; height: 38px; border-radius: 11px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.cats-iconrow .bz-ic { width: 20px; height: 20px; }
.cats-iconrow .cat-txt b { font-size: 10.5px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cats-iconrow .cat-n { position: absolute; top: -2px; left: calc(50% + 10px); min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--bc); color: #fff; font-size: 10px; line-height: 16px; box-shadow: 0 0 0 2px #fff; }
.cats-iconrow .cat.is-empty .cat-n { background: #d0d5dd; }
.cats-iconrow .cat.on { background: none; color: var(--bc); box-shadow: none; }
.cats-iconrow .cat.on .cat-ico { background: var(--bc); color: #fff; }
.cats-iconrow .cat.on .cat-n { color: #fff; }

/* tabs: แท็บขีดเส้นใต้ แถวเดียว เลื่อนได้ */
.cats-tabs .cats-in { padding: 4px 14px 0; }
.cats-tabs .sec-head { padding-bottom: 6px; }
.cats-tabs .cat-list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.cats-tabs .cat { flex: none; flex-direction: row; align-items: center; gap: 7px; padding: 12px 12px 11px; background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; }
.cats-tabs .cat:not(.is-empty):hover { transform: none; box-shadow: none; border-bottom-color: color-mix(in srgb, var(--bc) 35%, transparent); }
.cats-tabs .bz-ic { width: 18px; height: 18px; }
.cats-tabs .cat-txt b { font-size: 13px; white-space: nowrap; }
.cats-tabs .cat-n { padding: 0 6px; border-radius: 999px; background: var(--soft); font-size: 11px; }
.cats-tabs .cat.on { background: none; color: var(--bc); border-bottom-color: var(--bc); box-shadow: none; }
.cats-tabs .cat.on .cat-ico, .cats-tabs .cat.on .cat-n { color: var(--bc); }

/* ================= รอบ 4: ตัวกรองออกแบบใหม่ ================= */
.f-st { display: inline-flex; align-items: center; gap: 9px; }
.f-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.f-ico .ic { width: 16px; height: 16px; }

/* cards: แต่ละหัวข้อเป็นการ์ดแยก */
.flt-cards .f-in { background: none; border: 0; box-shadow: none; display: flex; flex-direction: column; gap: 10px; }
.flt-cards .f-head { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.flt-cards .f-kw, .flt-cards .f-saved { margin: 0; width: 100%; background: #fff; }
.flt-cards .f-sec { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.flt-cards .f-promo { margin: 0; }

/* pills: ทุกตัวเลือกเป็นปุ่มกด (ไม่มีช่องติ๊ก) */
.flt-pills .f-sec .f-body:has(.f-check) { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.flt-pills .f-check { margin: 0; padding: 6px 12px; gap: 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.flt-pills .f-check .box { display: none; }
.flt-pills .f-check .f-lab { flex: none; }
.flt-pills .f-check .f-n { padding: 0; background: none; font-size: 11.5px; }
.flt-pills .f-check:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }
.flt-pills .f-check:has(input:checked) .f-n { color: inherit; opacity: .8; }
.flt-pills .f-check:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.flt-pills .f-ico { border-radius: 50%; }

/* dark: แผงตัวกรองสีกรมท่า */
.flt-dark .f-in { --fd: #0f1f3d; background: var(--fd); border-color: var(--fd); color: #e6edf9; box-shadow: 0 14px 34px rgba(11, 31, 61, .25); }
.flt-dark .f-head { background: var(--fd); border-color: rgba(255, 255, 255, .1); }
.flt-dark .f-head h3 .ic, .flt-dark .f-reset { color: #8cb8ff; }
.flt-dark .f-kw { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); color: #9fb0cc; }
.flt-dark .f-kw input { color: #fff; }
.flt-dark .f-saved { border-color: rgba(255, 255, 255, .2); color: #c7d3ea; }
.flt-dark .f-saved b { color: #fff; }
.flt-dark .f-sec { border-color: rgba(255, 255, 255, .1); }
.flt-dark .f-sec summary::after { border-color: #9fb0cc; }
.flt-dark .f-ico { background: rgba(140, 184, 255, .15); color: #8cb8ff; }
.flt-dark .f-check:hover { background: rgba(255, 255, 255, .06); }
.flt-dark .box { border-color: rgba(255, 255, 255, .35); }
.flt-dark .f-n { background: rgba(255, 255, 255, .1); color: #c7d3ea; }
.flt-dark .f-chip span, .flt-dark .f-sal span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); color: #e6edf9; }
.flt-dark .f-chip span i { color: #9fb0cc; }
.flt-dark .f-chip input:checked + span, .flt-dark .f-sal input:checked + span { background: #5b9cff; border-color: #5b9cff; color: #071226; }
.flt-dark .f-more { color: #8cb8ff; }
.flt-dark.hero-gold .f-head h3 .ic, .flt-dark.hero-gold .f-reset, .flt-dark.hero-gold .f-ico, .flt-dark.hero-gold .f-more { color: #f5b544; }
.flt-dark.hero-gold .f-ico { background: rgba(245, 181, 68, .15); }
.flt-dark.hero-gold .f-chip input:checked + span, .flt-dark.hero-gold .f-sal input:checked + span, .flt-dark.hero-gold .f-check input:checked + .box { background: #f5b544; border-color: #f5b544; color: #1a1200; }

/* line: มินิมอล ไม่มีกล่อง เส้นแบ่งบาง */
.flt-line .f-in { background: none; border: 0; box-shadow: none; border-radius: 0; }
.flt-line .f-head { background: var(--bg); padding-left: 0; padding-right: 0; border-bottom: 2px solid var(--ink); }
.flt-line .f-kw { margin-left: 0; margin-right: 0; background: #fff; }
.flt-line .f-saved { margin-left: 0; width: 100%; }
.flt-line .f-sec summary { padding-left: 0; padding-right: 0; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.flt-line .f-body { padding-left: 0; padding-right: 0; }
.flt-line .f-ico { background: none; width: auto; height: auto; }
.flt-line .f-promo { margin: 10px 0 0; }

/* ================= รอบ 4: ปุ่มแชร์/หัวใจในแผงขวา อยู่บนภาพปก (เดิมจมทับขอบภาพ — ท่านคิวทัก) ================= */
.d-cover .d-icons { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; padding: 0; }
.d-cover .d-icons .act { border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.drawer .d-cover .d-icons { right: 60px; }

@media (max-width: 1500px) { .cats-mini .cat-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } .cats-iconrow .cat-list { display: flex; overflow-x: auto; } .cats-iconrow .cat { flex: 0 0 74px; } }
@media (max-width: 760px) {
  :is(.cats-mini, .cats-chips, .cats-iconrow, .cats-tabs) .cats-in { flex-direction: column; align-items: stretch; gap: 8px; }
  :is(.cats-mini, .cats-chips, .cats-iconrow, .cats-tabs) .sec-head { flex-direction: row; align-items: center; justify-content: space-between; border-right: 0; padding-right: 0; }
  .cats-mini .cat-list { display: flex; overflow-x: auto; }
  .cats-mini .cat { flex: 0 0 150px; }
}

/* การ์ดโค้งมน + แผงขวา = การ์ดแคบ — ให้ช่องเงินเดือนกว้างกว่าสถานที่ และตัวเลขไม่ตกบรรทัด */
.det-panel.card-soft .jc-info { grid-template-columns: 1.35fr 1fr; gap: 6px; }
.det-panel.card-soft .jc-sal, .det-panel.card-soft .jc-loc { padding: 7px 8px; }
.det-panel.card-soft .jc-sal b { font-size: 13.5px; white-space: nowrap; }
/* การ์ดเล็กย่อโลโก้ — ไม่ให้ลามไปโลโก้ในแผงรายละเอียด */
.card-compact .d-co .logo { width: 76px; height: 76px; }

/* ================= รอบ 4: หัวเว็บภาพพื้นหลังเต็มจอ — สไตล์ "สะอาด เรียบ โมเดิร์น" (ท่านคิวส่งภาพมา 23 ต.ค. 2569)
   ภาพ: /assets/img/jobs-hero-bg.jpg (ตัดขอบขาวจาก background/185f1a61….png) · ทุกแบบใช้หัวเดียวกัน ทับโทนหัวเดิมทั้ง 4 แบบ ================= */
body[data-v] .site { background: rgba(255, 255, 255, .96); border-bottom: 1px solid #e4e9f2; box-shadow: 0 2px 12px rgba(15, 35, 80, .06); }
body[data-v] .brand img, body[data-v] .foot img { filter: none; }
body[data-v] .site-nav a { color: #334155; }
body[data-v] .site-nav a:hover { color: #0b2a6b; background: #f1f5fb; }
body[data-v] .site-nav a.on { color: #fff; background: #1d4ed8; }
body[data-v] .post-job { color: #0b2a6b; }
body[data-v] .login, body[data-v] .hs button { background: #1d4ed8; color: #fff; }

body[data-v] .hero {
  display: flex; align-items: center;
  /* ภาพสัดส่วน 2.25:1 — สูงเท่าที่ภาพเต็มความกว้างจอ แต่ไม่เกิน 1 จอ (ใต้แถบเมนู) */
  min-height: min(calc(100vw / 2.25), calc(100vh - var(--site-header-height, 72px)), 820px);
  background:
    radial-gradient(ellipse 34% 52% at 50% 46%, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .45) 55%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 72%, var(--bg) 100%),
    url('/wp-content/themes/jobtex-child/dek/reweb/static/assets/img/jobs-hero-bg.9ddb323f.jpg') center 40% / cover no-repeat #eef4fb;
  color: #0b2a6b;
}
body[data-v] .hero-in { width: 100%; padding-top: 40px; padding-bottom: 56px; }
body[data-v] .hero .eyebrow { color: #1d4ed8; }
body[data-v] .hero h1 { color: #0b2a6b; text-shadow: 0 2px 18px rgba(255, 255, 255, .7); }
body[data-v] .hero h1 em { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #1d6fe8; -webkit-text-fill-color: #1d6fe8; }
body[data-v] .lead { color: #1e3a5f; font-weight: 500; }
body[data-v] .hs { background: #fff; border: 1px solid #fff; box-shadow: 0 18px 40px rgba(15, 45, 100, .18); }
body[data-v] .hs input, body[data-v] .hs select { color: #1d2433; }
body[data-v] .hs select option { background: #fff; }
body[data-v] .hs label { color: #667085; }
body[data-v] .hs-prov { border-left-color: #e4e9f2; border-top-color: #e4e9f2; }
body[data-v] .hs-pop { color: #1e3a5f; font-weight: 600; }
body[data-v] .hs-pop button { background: rgba(255, 255, 255, .85); border-color: #c9d8f0; color: #0b2a6b; backdrop-filter: blur(4px); }
body[data-v] .hs-pop button:hover { border-color: #1d4ed8; color: #1d4ed8; }
body[data-v] .stats { display: flex; gap: 0; margin-top: 26px; }
body[data-v] .stats div { padding: 0 22px; border-left: 1px solid rgba(11, 42, 107, .2); }
body[data-v] .stats div:first-child { border-left: 0; }
body[data-v] .stats b { color: #0b2a6b; }
body[data-v] .stats span { color: #1e3a5f; }
/* หัวเตี้ยเดิม (hero-short) ใช้ไม่ได้กับภาพเต็มจอ — ทุกแบบสูงเท่ากัน */
body[data-v].hero-short .hero-in { padding-top: 40px; padding-bottom: 56px; }
body[data-v].hero-short .hero h1 { font-size: clamp(30px, 4.2vw, 50px); }
/* กล่องสายงานลอยทับขอบล่างภาพเล็กน้อย */
body[data-v] .cats { position: relative; z-index: 2; margin-top: -28px; padding-top: 0; }
/* แบบทอง: ปุ่มยังเป็นทอง */
body[data-v].hero-gold .login, body.hero-gold .hs button { background: #f5b544; color: #1a1200; }
body[data-v].hero-gold .site-nav a.on { background: #0a1628; color: #f5b544; }
@media (max-width: 760px) {
  body[data-v] .hero { min-height: 0; background-position: 30% center; }
  body[data-v] .hero-in { padding-top: 28px; padding-bottom: 44px; }
  body[data-v] .stats div { padding: 0 12px; }
  body[data-v] .cats { margin-top: -16px; }
}

/* ================= แบบ 03 (ต้นฉบับ) — ท่านคิวสั่ง 23 ต.ค. 2569 =================
   แถบสายงานติดบน (ใต้หัวเว็บ) · ไอคอนชิดกันขึ้น · ชี้เมาส์แล้วไม่ลอย (ทั้งกล่องสายงานและการ์ดงาน) */
body[data-v].is-embed .cats { position: sticky; top: var(--site-header-height, 72px); z-index: 30; margin-top: 0; padding-top: 16px; }
.is-embed .cats.is-stuck { background: var(--bg); padding-bottom: 8px; box-shadow: 0 8px 16px -12px rgba(15, 35, 80, .25); }
.is-embed .cats.is-stuck .cats-in { box-shadow: none; }
.cats-iconrow .cats-in { padding: 6px 14px; gap: 12px; }
.cats-iconrow .cat-list { display: flex; flex-wrap: nowrap; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cats-iconrow .cat-list::-webkit-scrollbar { display: none; }
.cats-iconrow .cat { flex: 0 0 86px; padding: 4px 2px; }
.cats-iconrow .cat-ico { width: 34px; height: 34px; border-radius: 10px; }
.cats-iconrow .bz-ic { width: 18px; height: 18px; }
.cat:not(.is-empty):hover, .cats-iconrow .cat:not(.is-empty):hover { transform: none; box-shadow: none; }
.job:hover { transform: none; }
/* ตัวกรองซ้าย/แผงรายละเอียดขวา ติดใต้แถบสายงาน (--cats-h วัดจริงใน jobs-v4.js) */
.is-embed .filters, .is-embed .detail { top: calc(var(--site-header-height, 72px) + var(--cats-h, 64px) + 12px); }
.is-embed .f-in, .is-embed .dp-in { max-height: calc(100vh - var(--site-header-height, 72px) - var(--cats-h, 64px) - 28px); }
html:has(.is-embed) { scroll-padding-top: calc(var(--site-header-height, 72px) + var(--cats-h, 64px) + 12px); }
@media (max-width: 1020px) { body[data-v].is-embed .cats { top: var(--site-header-height, 72px); } }

/* ท่านคิวสั่ง 23 ต.ค. 2569 (รอบถัดมา): จำนวนงานย้ายไปซ้ายบนตัวกรอง · วงกลมตัวเลขบนไอคอนไม่ขาด · สายงานจัดกึ่งกลาง · ชี้เมาส์แบบปกติ ไม่มีแสง/เงา */
.f-count { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px 2px; font-size: 15px; font-weight: 800; color: var(--ink); }
.f-count b { font-size: 14px; font-weight: 700; color: var(--brand); }
@media (min-width: 1021px) {
  .r-head h2 { display: none; }
  .r-head { margin-bottom: 0; }
  .r-head:has(.r-chips:not(:empty)) { margin-bottom: 12px; }
}
@media (max-width: 1020px) { .f-count { display: none; } }
.cats-iconrow .cat-list { padding-top: 9px; }
.cats-iconrow .cat:first-child { margin-left: auto; }
.cats-iconrow .cat:last-child { margin-right: auto; }
.job:hover { box-shadow: none; border-color: var(--line); }
.card-soft .job:hover { box-shadow: 0 6px 24px rgba(47, 111, 237, .09); }
.job.sel, .job.sel:hover { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }

/* เลขหน้าแบบเว็บเดิม: ‹ 1 2 › + "แสดง 1 ถึง 24 จาก 43 งาน" */
.r-pages { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.r-pages:empty { display: none; }
.pg-row { display: flex; align-items: center; gap: 8px; }
.pg { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 14.5px; box-shadow: 0 1px 3px rgba(15, 35, 80, .08); }
.pg:hover:not(:disabled):not(.on) { border-color: #c3cfe2; }
.pg.on { background: #1e4fa8; border-color: #1e4fa8; color: #fff; }
.pg.nav { font-size: 18px; line-height: 1; }
.pg:disabled { color: #c3cad6; cursor: default; box-shadow: none; }
.pg-gap { padding: 0 4px; color: var(--mute); }
.pg-info { margin: 0; font-size: 13.5px; color: var(--mute); }

/* ================= สายงานแบบกระดานเดิม (ท่านคิวสั่ง 23 ต.ค. 2569 "แบบอันเก่า" ทั้งหน้าตาและตอนชี้เมาส์)
   ค่าตาม dek-board-133.css .bizcard: พื้นสีอ่อน 8% · ขอบ 22% · ชี้เมาส์ = พื้น 15% + ขอบสีเต็ม · เลือกแล้ว = พื้นสีเต็ม ตัวขาว ================= */
.cats-old .cats-in { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 16px; }
.cats-old .sec-head { flex: none; margin: 0; padding: 4px 0 0; flex-direction: column; align-items: flex-start; gap: 4px; }
.cats-old .sec-head h2 { font-size: 13px; font-weight: 800; color: #1d4ed8; border-left: 3px solid #1d4ed8; padding-left: 8px; line-height: 1.2; white-space: nowrap; }
.cats-old .cat-clear { font-size: 11.5px; padding: 0; }
.cats-old .cat-list { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 8px; }
.cats-old .cat { min-height: 76px; padding: 9px 6px; gap: 5px; justify-content: center; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--bc) 22%, #e4e9f2); background: color-mix(in srgb, var(--bc) 8%, #fff); transition: background .14s, border-color .14s; }
.cats-old .cat:not(.is-empty):hover { background: color-mix(in srgb, var(--bc) 15%, #fff); border-color: var(--bc); transform: none; box-shadow: none; }
.cats-old .cat-ico { width: auto; height: auto; background: none; box-shadow: none; color: var(--bc); }
.cats-old .bz-ic { width: 22px; height: 22px; }
.cats-old .cat-txt b { font-size: clamp(9.5px, .66vw, 11px); font-weight: 600; color: #344054; text-align: center; line-height: 1.25; }
.cats-old .cat-txt small, .cats-old .cat-n { display: none; }
.cats-old .cat.on { background: var(--bc); border-color: var(--bc); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.cats-old .cat.on .cat-ico, .cats-old .cat.on .cat-txt b { color: #fff; }
.cats-old .cat.is-empty { background: #f7f8fa; border-color: #e8ecf3; }
.cats-old .cat.is-empty .cat-ico { color: #c4cbd6; }
.cats-old .cat.is-empty .cat-txt b { color: #98a2b3; }
.cats-old .cat.is-empty:hover { background: #fff; border-color: #d3dae6; }
@media (max-width: 1200px) {
  .cats-old .cat-list { display: flex; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
  .cats-old .cat { flex: 0 0 104px; }
}
@media (max-width: 700px) {
  .cats-old .cats-in { flex-direction: column; align-items: stretch; gap: 8px; }
  .cats-old .cat-list { width: 100%; }
  .cats-old .cat { flex: 0 0 96px; min-height: 70px; }
  .cats-old .cat-txt b { font-size: 10.5px; }
}

/* ภาพปกการ์ดงานเต็มขอบการ์ด ไม่มีกรอบขาวรอบภาพ (ท่านคิวสั่ง 23 ต.ค. 2569) */
.card-soft .jc-cover { margin: 0; border-radius: 0; }
.card-soft .jc-code { border-bottom-right-radius: 12px; }

/* กล่องสายงาน: เล็กลง · กดแล้วกล่องเป็นสีเข้มทึบ · กดแล้วตำแหน่งต้องไม่ขยับ (ท่านคิวสั่ง 23 ต.ค. 2569)
   ต้นเหตุที่ขยับ: ปุ่ม "แสดงทุกสายธุรกิจ" โผล่ใต้ป้าย "สายงาน" แล้วดันกล่องไปทางขวา ~30px → ซ่อนปุ่มนี้ (กดกล่องเดิมซ้ำ = ยกเลิก / กดกากบาทที่ชิปตัวกรองได้) */
.cats-old .cat-clear { display: none !important; }
.cats-old .sec-head { width: 64px; }
.cats-old .cat-list { gap: 6px; }
.cats-old .cat { min-height: 58px; padding: 6px 4px; gap: 3px; border-radius: 10px; }
.cats-old .bz-ic { width: 18px; height: 18px; }
.cats-old .cat-txt b { font-size: clamp(9.5px, .6vw, 10.5px); line-height: 1.2; }
.cats-old .cat.on, .cats-old .cat.on:hover { background: color-mix(in srgb, var(--bc) 82%, #000); border-color: color-mix(in srgb, var(--bc) 82%, #000); box-shadow: none; }

/* กล่องสายงานเป็นสี่เหลี่ยมจัตุรัส ขนาดเท่ากันทุกกล่อง จัดกึ่งกลางแถว (ท่านคิวสั่ง 23 ต.ค. 2569) */
.cats-old .cat-list { display: flex; flex-wrap: nowrap; justify-content: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cats-old .cat-list::-webkit-scrollbar { display: none; }
.cats-old .cat { flex: 0 0 88px; width: 88px; height: 88px; min-height: 0; aspect-ratio: 1; padding: 6px 4px; justify-content: center; }
.cats-old .cat-txt b { font-size: 10px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1340px) { .cats-old .cat-list { justify-content: flex-start; } }
@media (max-width: 700px) { .cats-old .cat { flex-basis: 84px; width: 84px; height: 84px; } }

/* เผื่อที่แถวชิปตัวกรองไว้ตั้งแต่แรก — กดสายงาน/ตัวกรองแล้วการ์ดงานไม่ถูกดันลง (ท่านคิวสั่ง 23 ต.ค. 2569 "เอาการ์ดงานลงไปตั้งแต่แรก") */
@media (min-width: 1021px) {
  .r-head, .r-head:has(.r-chips:not(:empty)) { height: 44px; margin-bottom: 4px; align-items: center; }
  .r-head > div:first-child { min-width: 0; flex: 1; }
  .r-chips, .r-chips:empty { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 0; }
  .r-chips::-webkit-scrollbar { display: none; }
  .r-chips .chip { flex: none; }
}

/* เปลี่ยนหน้า = การ์ดเฟดเข้า ไม่มีเลื่อนจอแบบอนิเมชัน */
.job-list.pg-fade { animation: pgFade .35s ease-out; }
@keyframes pgFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .job-list.pg-fade { animation: none; } }

/* ชิปสายงานเหนือการ์ด = สีเดียวกับกล่องสายงาน (ท่านคิวสั่ง 23 ต.ค. 2569 "เอาสีให้ตรงกัน") */
.chip.chip--biz { background: color-mix(in srgb, var(--bc) 82%, #000); border-color: color-mix(in srgb, var(--bc) 82%, #000); color: #fff; }
.chip.chip--biz .ic { color: #fff; }

/* ไอคอนในกล่องสายงานใหญ่ขึ้น (ท่านคิวสั่ง 23 ต.ค. 2569) */
.cats-old .bz-ic { width: 28px; height: 28px; }
.cats-old .cat { gap: 5px; }

/* กรองเขตในจังหวัด (ท่านคิวสั่ง 23 ต.ค. 2569) — ติ๊กจังหวัดแล้วรายชื่อเขตของจังหวัดนั้นขึ้นใต้จังหวัด เลือกได้หลายเขต */
.f-prov { display: contents; }
.f-dists { display: none; flex: 0 0 100%; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px 6px; padding: 8px 0 2px 12px; border-left: 3px solid var(--brand); }
.f-prov:has(input[data-f="prov"]:checked) .f-dists { display: flex; }
.f-dist input { position: absolute; opacity: 0; pointer-events: none; }
.f-dist span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; cursor: pointer; }
.f-dist span i { font-style: normal; font-size: 11px; color: var(--mute); }
.f-dist:hover span { border-color: var(--brand); }
.f-dist input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.f-dist input:checked + span i { color: inherit; opacity: .85; }
.f-dist input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ตัวกรอง: ช่องค้นหา + งานที่บันทึก ติดใต้หัวไม่หายตอนเลื่อน · ช่องติ๊กเป็นวงกลม (ท่านคิวสั่ง 23 ต.ค. 2569) */
.f-tools { padding: 10px 0 4px; background: var(--surface); } /* ไม่สติก: ช่องค้นหา/งานที่บันทึกไว้ เลื่อนไปกับรายการตัวกรอง (ท่านคิวสั่ง 27 ต.ค. 2569) */
.f-tools .f-kw { margin: 0 16px 8px; }
.f-tools .f-saved { margin: 0 16px 6px; width: calc(100% - 32px); }
body[data-sf="4"] .f-tools { background: #0f1f3d; }
.f-check .box { border-radius: 50%; }

/* ลูกศรบอกว่าเลื่อนข้างได้ (กล่องสายงาน) */
.cat-hint{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:50%;background:#fff;color:#1f4fd8;box-shadow:0 4px 14px rgba(15,27,61,.22),0 0 0 1px rgba(31,79,216,.15);cursor:pointer;animation:catHintNudge 1.6s ease-in-out infinite}
.cat-hint[hidden]{display:none}
.cat-hint svg{width:18px;height:18px}
.cat-hint--r{right:2px}
.cat-hint--l{left:2px;animation-name:catHintNudgeL}
.cats-in:has(.cat-hint--r:not([hidden])):after{content:"";position:absolute;top:0;right:0;bottom:0;width:54px;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,0),#fff 85%);border-radius:0 18px 18px 0;z-index:2}
@keyframes catHintNudge{0%,100%{transform:translate(0,-50%)}50%{transform:translate(4px,-50%)}}
@keyframes catHintNudgeL{0%,100%{transform:translate(0,-50%)}50%{transform:translate(-4px,-50%)}}
@media(prefers-reduced-motion:reduce){.cat-hint{animation:none}}

/* มือถือ: หน้ารายละเอียดงาน — เอาปุ่ม ✕ มุมขวาออก ใช้ปุ่มลูกศรชี้ซ้าย (ย้อนกลับ) มุมซ้ายบนแทน (ท่านคิวสั่ง 24 ต.ค. 2569) */
@media (max-width: 700px) {
  .drawer .d-close { right: auto; left: 10px; top: 4px; width: 38px; height: 38px; }
  .drawer .d-close svg { display: none; }
  .drawer .d-close::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5 8 12l7 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5 8 12l7 7'/%3E%3C/svg%3E") center / contain no-repeat; }
  .drawer .jt-detail-context.jt-detail-context { padding-left: 58px !important; }
}

/* มือถือ รอบ 2 (ท่านคิวสั่ง 24 ต.ค. 2569): ปุ่มลูกศรย้อนกลับย้ายลงมาอยู่แถวภาพปก ซ้ายสุดก่อนป้ายสายงาน · ปุ่มแชร์/หัวใจชิดขวา · แถบ "รายละเอียดงาน" กลับเป็นเดิม */
@media (max-width: 700px) {
  .drawer .d-close { top: 58px; left: 12px; width: 34px; height: 34px; z-index: 4; }
  .drawer .d-close::before { width: 20px; height: 20px; }
  .drawer .jc-biz { left: 56px; }
  .drawer .d-icons { right: 12px; }
  .drawer .jt-detail-context.jt-detail-context { padding-left: 20px !important; }
}
@media (max-width: 700px) {
  .drawer .d-cover .d-icons.d-icons { right: 12px !important; left: auto !important; }
}

/* กล่องสายงานโดนกินขอบ (กรอบ/เงา/ตอนชี้เมาส์ ถูกตัดด้วยขอบกล่องที่เลื่อนได้) → ใส่ช่องว่างในกล่องเลื่อน แล้วดึงกลับด้วย margin ลบ ไม่ให้เลย์เอาต์เปลี่ยน (ท่านคิวทัก 25 ต.ค. 2569) */
.cat-list { padding: 7px 8px 10px !important; margin: -7px -8px -10px !important; scroll-padding-left: 8px; }

/* สาเหตุจริงของกล่องสายงาน "โดนกัด": แถวเป็น flex + justify-content:center พอกล่องรวมกว้างเกินที่ว่างนิดเดียว (iPad แนวนอน) ส่วนเกินถูกแบ่งออกสองข้าง ด้านซ้ายถูกตัดและเลื่อนกลับไม่ได้
   แก้ให้จัดกลางด้วย margin auto ที่หัว-ท้าย — ที่ว่างเหลือ = อยู่กลางเหมือนเดิม · ล้น = เริ่มจากซ้ายสุด เลื่อนดูได้ครบ (ท่านคิวแจ้ง 25 ต.ค. 2569) */
.cat-list { justify-content: flex-start !important; }
.cat-list > :first-child { margin-left: auto; }
.cat-list > :last-child { margin-right: auto; }

/* ตัวกรองบนมือถือ/แท็บเล็ต: เลื่อนขึ้นจากด้านล่างสูงครึ่งจอ + ปุ่มปิดเห็นชัด (เดิมสูง 73% และ ✕ เป็นสีขาวบนพื้นขาวมองไม่เห็น — ท่านคิวสั่ง 25 ต.ค. 2569) */
@media (max-width: 1020px) {
  .filters, .is-embed .filters { top: auto !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; height: 50dvh !important; max-height: 50dvh !important; transform: translateY(105%) !important; transition: transform .3s cubic-bezier(.22, 1, .36, 1) !important; border-radius: 22px 22px 0 0; box-shadow: 0 -14px 40px rgba(3, 8, 20, .35); }
  .f-open .filters, .f-open .is-embed .filters { transform: none !important; }
  .filters .f-in { height: 100% !important; max-height: none !important; border-radius: 22px 22px 0 0 !important; overflow-y: auto; overscroll-behavior: contain; }
  .f-close { background: #fff !important; color: #14213d !important; width: 36px; height: 36px; }
  .f-close svg { stroke: currentColor !important; }
}

/* ตัวกรองบนมือถือ รอบ 2 (ท่านคิวขีดเส้นกลางจอ 25 ต.ค. 2569 "ครึ่งจอแบบนี้"): แผงเลื่อนเข้าจากซ้าย กว้างครึ่งจอ เต็มความสูง (แทนแผ่นครึ่งความสูงจากด้านล่าง) · จอแคบมากไม่ให้เล็กกว่า 230px */
@media (max-width: 1020px) {
  .filters, .is-embed .filters { top: 0 !important; bottom: 0 !important; left: 0 !important; right: auto !important; width: max(50vw, 230px) !important; height: 100dvh !important; max-height: none !important; transform: translateX(-105%) !important; border-radius: 0 22px 22px 0; box-shadow: 14px 0 40px rgba(3, 8, 20, .35); }
  .f-open .filters, .f-open .is-embed .filters { transform: none !important; }
  .filters .f-in { border-radius: 0 22px 22px 0 !important; }
}
@media (max-width: 1020px) {
  .filters, .is-embed .filters { width: max(50vw, 220px) !important; }
  .filters .f-head { gap: 8px; padding-left: 14px; padding-right: 12px; }
  .filters .f-head h3 { font-size: 15px; white-space: nowrap; gap: 6px; }
  .filters .f-head h3 svg { width: 16px; height: 16px; flex: none; }
  .filters .f-reset { font-size: 11.5px; white-space: nowrap; margin-left: auto; }
  .f-close { width: 32px !important; height: 32px !important; flex: none; }
}
@media (max-width: 1020px) {
  .filters .f-head { gap: 6px; padding-left: 12px; padding-right: 10px; }
  .filters .f-head h3 svg { display: none; }
  .filters .f-reset { font-size: 11px; }
}

/* ตัวกรองบนมือถือ รอบ 3 (ท่านคิวขีดเส้นให้ขยับมาประมาณนี้ 25 ต.ค. 2569): แผงกว้างประมาณ 80% ของจอ (เดิม 56%) + ปุ่ม "ตัวกรอง" ออกแบบใหม่ เต็มแถว ไล่สีฟ้า-ม่วง มีไอคอนวงกลม ตัวนับ และลูกศร */
@media (max-width: 1020px) {
  .filters, .is-embed .filters { width: min(80vw, 380px) !important; }
  .filters .f-head { padding-left: 16px; padding-right: 12px; }
  .filters .f-head h3 svg { display: inline-block; }
  .filters .f-reset { font-size: 12.5px; }
  .r-tools { width: 100%; }
  .open-f { display: flex !important; width: 100%; height: 52px; padding: 0 14px 0 10px !important; align-items: center; gap: 10px; border: 0 !important; border-radius: 16px !important; background: linear-gradient(120deg, #2563eb 0%, #5b5cf0 60%, #7a5cf6 100%) !important; color: #fff !important; font-size: 16px !important; font-weight: 700 !important; box-shadow: 0 10px 22px rgba(79, 91, 240, .35); cursor: pointer; text-align: left; }
  .open-f svg { flex: none; width: 36px; height: 36px; padding: 9px; box-sizing: border-box; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; }
  .open-f .f-total { min-width: 24px; height: 24px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 99px; background: #fff; color: #3b4fe0; font-size: 13px; font-weight: 800; }
  .open-f .f-total[hidden] { display: none; }
  .open-f::after { content: ""; flex: none; width: 20px; height: 20px; margin-left: auto; background: #fff; opacity: .9; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
  .open-f:active { transform: scale(.98); }
}

/* การ์ดตำแหน่งงานบนมือถือ: บางลงประมาณครึ่งหนึ่ง ข้อมูลครบเท่าเดิม (ท่านคิวสั่ง 25 ต.ค. 2569 "ใหญ่ไป ทำให้บางแบนลงครึ่งนึง") */
@media (max-width: 700px) {
  .job { border-radius: 18px; }
  .job .jc-cover { height: 104px; }
  .job .jc-code { padding: 2px 9px; font-size: 10.5px; }
  .job .jc-code .jc-new { padding: 0 6px; font-size: 10px; }
  .job .jc-badges { padding: 24px 76px 0 12px !important; gap: 6px; }
  .job .jc-biz { padding: 2px 9px !important; font-size: 11px !important; }
  .job .jc-amt { padding: 2px 8px !important; font-size: 11px !important; }
  .job .jc-acts { top: 6px !important; right: 8px !important; }
  .job .jc-acts .act { width: 28px; height: 28px; }
  .job .jc-head { padding: 0 12px 10px !important; gap: 10px; align-items: center; }
  .job .jc-head .logo { width: 38px !important; height: 38px !important; font-size: 16px; flex: none; }
  .job .jc-head h3 { font-size: 15px !important; line-height: 1.25 !important; margin: 0 !important; }
  .job .jc-head p { font-size: 11.5px !important; margin: 2px 0 0 !important; }
  .job .jc-body { padding: 10px 14px 10px !important; gap: 7px !important; }
  /* เงินเดือน + จังหวัด เป็นแถวเดียว ไม่มีกล่อง: ไอคอน · ค่า · คำอธิบายเล็ก */
  .job .jc-info { display: flex !important; flex-wrap: wrap; gap: 4px 16px !important; }
  .job .jc-info > div { display: flex !important; align-items: center; gap: 7px; padding: 0 !important; background: none !important; border: 0 !important; min-width: 0; }
  .job .jc-info svg { width: 20px; height: 20px; flex: none; }
  .job .jc-info > div > div { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
  .job .jc-info b { font-size: 14px !important; line-height: 1.3 !important; }
  .job .jc-info small { font-size: 11px !important; line-height: 1.3 !important; }
  /* ป้ายประสบการณ์/ประเภท: ตัวเล็ก เรียงติดกัน */
  .job .jc-pills { gap: 4px !important; }
  .job .jc-pills .pill, .job .jc-pills span { padding: 2px 8px !important; font-size: 10.5px !important; line-height: 1.5 !important; }
  .job .jc-foot { padding-top: 6px !important; font-size: 11px !important; gap: 6px !important; }
  .job .jc-foot svg { width: 13px; height: 13px; }
}

/* การ์ดตำแหน่งงานมือถือ รอบ 2: บางลงอีก — เงินเดือน/จังหวัดแบ่ง 2 ช่องเท่ากัน ป้ายเรียงแถวเดียวเลื่อนข้างได้ */
@media (max-width: 700px) {
  .job .jc-cover { height: 88px; }
  .job .jc-badges { padding-top: 22px !important; }
  .job .jc-head { padding-bottom: 8px !important; }
  .job .jc-head .logo { width: 34px !important; height: 34px !important; font-size: 15px; }
  .job .jc-head h3 { font-size: 14.5px !important; }
  .job .jc-body { padding: 8px 14px 8px !important; gap: 6px !important; }
  .job .jc-info { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px !important; }
  .job .jc-info > div > div { display: block !important; }
  .job .jc-info b { display: block; font-size: 13.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .job .jc-info small { display: block; font-size: 10.5px !important; }
  .job .jc-info svg { width: 18px; height: 18px; }
  .job .jc-pills { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -14px; padding: 0 14px; }
  .job .jc-pills::-webkit-scrollbar { display: none; }
  .job .jc-pills > * { flex: none; }
  .job .jc-foot { padding-top: 4px !important; }
}

/* กล่องสายงานบนมือถือ: ปุ่มเล็กลง (ท่านคิวสั่ง 25 ต.ค. 2569) */
@media (max-width: 700px) {
  .cats { }
  .cats-in { padding: 10px 12px !important; }
  .cats .sec-head { font-size: 12px !important; }
  .cat-list { gap: 6px !important; padding-top: 4px !important; padding-bottom: 6px !important; margin-top: -4px !important; margin-bottom: -6px !important; }
  .cat-list .cat { width: 66px !important; min-width: 66px !important; height: 62px !important; padding: 6px 4px !important; gap: 3px !important; border-radius: 12px !important; }
  .cat-list .cat svg { width: 22px !important; height: 22px !important; }
  .cat-list .cat span, .cat-list .cat small, .cat-list .cat b { font-size: 9.5px !important; line-height: 1.15 !important; }
  .cat-hint { width: 28px; height: 28px; }
  .cat-hint svg { width: 15px; height: 15px; }
}
@media (max-width: 700px) {
  .cats .cat-list > .cat { flex: 0 0 74px !important; width: 74px !important; min-width: 74px !important; max-width: 74px !important; }
}

/* การ์ดตำแหน่งงานมือถือ รอบ 3: ลดขนาดตัวอักษรอีกหน่อย เว้นระยะให้โปร่งขึ้น (ท่านคิวสั่ง 25 ต.ค. 2569 "เบียดกันไปหน่อย") */
@media (max-width: 700px) {
  .job .jc-code { font-size: 9.5px; }
  .job .jc-code .jc-new { font-size: 9px; }
  .job .jc-biz, .job .jc-amt { font-size: 10px !important; }
  .job .jc-head h3 { font-size: 13.5px !important; line-height: 1.3 !important; }
  .job .jc-head p { font-size: 10.5px !important; margin-top: 3px !important; }
  .job .jc-head { gap: 10px; padding-right: 14px !important; }
  .job .jc-body { gap: 8px !important; padding-top: 10px !important; padding-bottom: 10px !important; }
  .job .jc-info b { font-size: 12.5px !important; }
  .job .jc-info small { font-size: 9.5px !important; margin-top: 1px; }
  .job .jc-info svg { width: 17px; height: 17px; }
  .job .jc-pills { gap: 5px !important; }
  .job .jc-pills .pill, .job .jc-pills span { font-size: 9.5px !important; padding: 2px 8px !important; }
  .job .jc-foot { font-size: 10px !important; padding-top: 6px !important; }
  .job .jc-foot svg { width: 12px; height: 12px; }
}

/* มือถือ: ลดช่องว่างระหว่างกล่องสายงาน → หัวข้อ "ตำแหน่งงานทั้งหมด" → ปุ่มตัวกรอง → การ์ด (ท่านคิวทัก 25 ต.ค. 2569 "พื้นที่ว่างเยอะเกิน") */
@media (max-width: 700px) {
  section.board, .board { padding-top: 14px !important; padding-bottom: 32px !important; }
  .cats { padding-top: 10px !important; padding-bottom: 0 !important; }
  .r-head { margin-bottom: 10px !important; }
  .r-head h2 { margin: 0 !important; font-size: 19px !important; }
  .r-tools { margin-top: 0 !important; }
  .results > .job, .results .job { margin-bottom: 10px; }
}

/* การ์ดตำแหน่งงานมือถือ: ขอบโค้งนิดเดียว (6px) ไม่โค้งมนมาก (ท่านคิวสั่ง 25 ต.ค. 2569) */
@media (max-width: 700px) {
  .job, .job.sel, .job.on, .job:hover { border-radius: 6px !important; }
  .job .jc-cover { border-radius: 5px 5px 0 0 !important; }
  .job .jc-body { border-radius: 0 0 5px 5px; }
  .job .jc-info > div, .job .jc-sal, .job .jc-loc { border-radius: 6px; }
}

/* มือถือ: ป้ายสายงาน + ป้ายจำนวนตำแหน่งเล็กลง ไม่ชนขอบ · ช่องว่างระหว่างการ์ดแคบลง (ท่านคิวสั่ง 25 ต.ค. 2569) */
@media (max-width: 700px) {
  .job-list { gap: 8px !important; row-gap: 8px !important; }
  .job-list > .job, .job { margin-bottom: 0 !important; }
  .job .jc-badges { padding: 26px 76px 0 12px !important; gap: 5px !important; }
  .job .jc-biz { padding: 1px 8px !important; font-size: 9px !important; line-height: 1.7 !important; height: auto !important; }
  .job .jc-amt { padding: 1px 7px !important; font-size: 9px !important; line-height: 1.7 !important; height: auto !important; gap: 3px !important; }
  .job .jc-amt svg { width: 10px !important; height: 10px !important; }
}

/* ปิดรายละเอียดงานแบบสมูท + ฉากหลังจางเข้า/ออก */
@keyframes drOut { to { transform: translateX(60px); opacity: 0; } }
@keyframes bdIn { from { opacity: 0; } }
@keyframes bdOut { to { opacity: 0; } }
.drawer[open] { animation: slide .32s cubic-bezier(.22, 1, .36, 1) !important; }
.drawer[open]::backdrop { animation: bdIn .3s ease; }
.drawer.closing { animation: drOut .28s cubic-bezier(.4, 0, 1, 1) forwards !important; }
.drawer.closing::backdrop { animation: bdOut .28s ease forwards; }
@media (max-width: 700px) {
  .job-list { gap: 12px !important; row-gap: 12px !important; }
  .job .jc-body { padding: 14px 14px 12px !important; gap: 10px !important; }
  .job .jc-foot { padding-top: 10px !important; }
  .job .jc-badges { padding-top: 30px !important; }
}

/* ป้ายสายงาน/จำนวนตำแหน่ง ขยับขึ้นอีกหน่อย (ท่านคิวสั่ง 25 ต.ค. 2569) */
@media (max-width: 700px) {
  .job .jc-badges { padding-top: 21px !important; }
}

/* ป้ายสายงาน/จำนวนตำแหน่ง เล็กลงอีก ทั้งขอบและตัวหนังสือ (ท่านคิวสั่ง 25 ต.ค. 2569) */
@media (max-width: 700px) {
  .job .jc-biz { padding: 0 6px !important; font-size: 8px !important; line-height: 1.8 !important; border-radius: 5px !important; }
  .job .jc-amt { padding: 0 6px !important; font-size: 8px !important; line-height: 1.8 !important; border-radius: 5px !important; gap: 2px !important; }
  .job .jc-amt svg { width: 9px !important; height: 9px !important; }
  .job .jc-badges { gap: 4px !important; padding-left: 10px !important; }
}

/* ท่านคิวสั่ง 25 ต.ค. 2569: เอาคำว่า "สายงาน" ออก — ไม่ให้หัวเปล่าเหลือที่ว่าง · ปุ่ม "แสดงทุกสายธุรกิจ" ยังโผล่เมื่อกรองอยู่ */
.cats .sec-head:has(> div:empty):has(> .cat-clear[hidden]){display:none}
.cats .sec-head > div:empty{display:none}

/* 28 ต.ค. 2569: แถบสายงานพับได้ตอนเลื่อนลง — แถบเล็กคงที่ใต้หัวเว็บ + แถบสายงานเลื่อนซ่อนใต้หัวเว็บ (ไม่เปลี่ยนความสูงในหน้า จึงไม่กระโดด) */
.cats-sentinel{height:0;margin:0;padding:0;pointer-events:none}
.cat-fold{position:fixed;left:0;right:0;top:var(--site-header-height,72px);z-index:32;height:44px;display:flex;align-items:center;background:var(--bg,#f4f7fb);box-shadow:0 8px 14px -12px rgba(15,35,80,.35)}
.cat-fold[hidden]{display:none}
.cat-fold .wrap{display:flex;align-items:center;gap:12px;width:100%}
.cat-toggle{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 14px;border:1px solid var(--line,#dde5ee);border-radius:999px;background:#fff;font:inherit;font-size:13px;font-weight:700;color:var(--ink,#1d2433);cursor:pointer;box-shadow:0 2px 8px rgba(15,35,80,.08)}
.cat-toggle:hover{border-color:#b9cde3}
.cat-toggle svg{width:16px;height:16px;transition:transform .2s}
.cat-fold.is-open .cat-toggle svg{transform:rotate(180deg)}
.is-embed .cats.is-stuck{transition:transform .25s ease,visibility 0s}
.is-embed .cats.is-fold{transform:translateY(calc(-100% - 24px));visibility:hidden;pointer-events:none;transition:transform .25s ease,visibility 0s .25s}
.is-embed .cats.is-open{transform:translateY(44px);box-shadow:0 22px 40px -18px rgba(15,35,80,.35)}

/* 28 ต.ค. 2569: การ์ดงานบนมือถือ — ป้ายสายธุรกิจ/จำนวนตำแหน่ง ชิดบล็อกโลโก้+ชื่อตำแหน่งเกินไป → ขยายปกลงอีก ~24px ยกป้ายขึ้นชิดโค้ดมากขึ้น แล้วเว้นล่างบล็อกชื่อ */
@media (max-width: 700px) {
  .job .jc-cover { height: 112px; }
  .job .jc-badges { padding-top: 22px !important; }
  .job .jc-head { padding-bottom: 12px !important; }
}

/* 28 ต.ค. 2569: โลโก้บริษัทมีรูปแล้ว = ไม่เอากรอบขาว — ตัดวงแหวนขาว/พื้นขาว/ช่องไฟรอบรูป ให้รูปเต็มวงถึงขอบ (เหลือเงาจาง ๆ ให้ลอยจากพื้น) · ไม่มีรูป = วงกลมตัวอักษรเดิม */
.logo:has(> img),
body .jt-identity .logo:has(> img),
body .d-co .logo:has(> img) { background: #fff !important; border: 0 !important; box-shadow: 0 3px 10px rgba(0, 0, 0, .22) !important; }
.logo > img { padding: 0 !important; background: #fff !important; border-radius: 50%; }
/* 28 ต.ค. 2569 ท่านคิวสั่ง: โลโก้ PNG พื้นใส (บางบริษัท) วางบนปกสีแล้วกลืน → พื้นหลังโลโก้เป็นสีขาวเสมอ (ยังไม่มีวงแหวนขาว/ช่องไฟเหมือนเดิม) */

/* ระบบสมัครงานจริง (28 ต.ค. 2569 "ย้ายระบบเดิมเข้าตัวใหม่") — ปุ่มสมัครเป็น <button> แล้ว · สมัครแล้ว/บัญชีบริษัท = ปุ่มเทา · กล่องยืนยันก่อนสมัคร */
.d-apply { border: 0; cursor: pointer; font-family: inherit; }
.d-apply:disabled { cursor: default; background: #e7edf6 !important; color: #64748b !important; box-shadow: none !important; }
.d-apply.is-done:disabled { background: #e6f7ee !important; color: #0f8a4b !important; }
.d-owner { margin: 8px 0 0; font-size: 13px; }
.d-owner a { display: inline-flex; align-items: center; gap: 6px; color: #1d4ed8; font-weight: 600; text-decoration: none; }
.d-owner svg { width: 16px; height: 16px; }
.ap-ask { border: 0; border-radius: 16px; padding: 22px 22px 18px; width: min(380px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(15, 31, 61, .28); font-family: inherit; color: #0f1f3d; }
.ap-ask::backdrop { background: rgba(15, 31, 61, .45); }
.ap-ask h3 { margin: 0 0 6px; font-size: 18px; }
.ap-ask .ap-job { margin: 0 0 18px; color: #475569; font-size: 14px; line-height: 1.6; }
.ap-btns { display: flex; gap: 10px; justify-content: flex-end; }
.ap-btns button { border: 0; border-radius: 10px; padding: 10px 16px; font: 700 14px/1.2 inherit; font-family: inherit; cursor: pointer; }
.ap-no { background: #eef2f7; color: #334155; }
.ap-yes { background: linear-gradient(90deg, #ea580c, #f97316); color: #fff; }

/* โลโก้ในหน้ารายละเอียดงาน: ขยับลงมาให้ตรงแถวรหัสงาน/ชื่อตำแหน่ง/ชื่อบริษัท ไม่ทับขอบปก */
.d-co > .logo { margin-top: 42px; }
