/* หน้า Career ตามสไตล์ brandstromx.co.th/career: พื้นเทาเข้ม, หัวข้อ Outfit ตัวใหญ่, ปุ่มแคปซูลเขียวมะนาว
   โหลดต่อจาก app.css (ฟอนต์และตัวแปรสีมาจากที่นั่น) */
:root { --ink: #232120; --ink-2: #2d2a29; --ink-3: #3a3736; --soft: #c9c7c0; }

/* หัวเว็บ (ใช้ทุกหน้า) */
.sitehead { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--white); }
.sitehead .in { max-width: 1160px; margin: 0 auto; padding: 14px max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sitehead img { height: 26px; display: block; }
.sitehead nav { display: flex; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 22px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-family: var(--font-en), var(--font-th); white-space: nowrap; }
.pill:hover { background: #cdd44a; }
.pill.line { background: transparent; color: var(--lime); box-shadow: inset 0 0 0 1.5px var(--lime); }
.pill.line:hover { background: rgba(189, 196, 50, .12); }
.pill.big { min-height: 54px; padding: 12px 32px; font-size: 18px; }

body.dark { background: var(--ink); color: var(--white); font-family: "Outfit", "LINE Seed Sans TH", Tahoma, sans-serif; }
body.dark .lead { color: var(--soft); }
.sec { max-width: 1160px; margin: 0 auto; padding: 72px max(16px, env(safe-area-inset-right)) 72px max(16px, env(safe-area-inset-left)); }
.sec.narrow { max-width: 860px; }
.display { font-family: var(--font-en); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.02; margin: 0; }
.display .l { color: var(--lime); }
.kicker { font-family: var(--font-en); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); font-weight: 600; }

/* Hero: แถบเฉียงแบบเว็บหลัก */
.hero { position: relative; overflow: hidden; text-align: center; background:
  linear-gradient(160deg, transparent 0 58%, rgba(255,255,255,.035) 58% 100%),
  linear-gradient(200deg, transparent 0 70%, rgba(0,0,0,.25) 70% 100%), var(--ink); }
.hero .sec { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero .top { font-size: clamp(22px, 3.4vw, 34px); }
.hero .main { font-size: clamp(52px, 10vw, 110px); }
.hero .main .l { display: block; }
.hero p { margin: 0; max-width: 60ch; color: var(--soft); font-size: 17px; }
.hero .dots { position: absolute; width: 180px; height: 180px; background-image: radial-gradient(var(--lime) 1.6px, transparent 1.8px); background-size: 18px 18px; opacity: .35; }
.hero .dots.a { left: -40px; bottom: 30px; }
.hero .dots.b { right: -50px; top: 40px; }

/* พันธสัญญา 3 เสา */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.pillar { background: var(--ink-2); padding: 28px 24px; border-top: 4px solid var(--lime); }
.pillar b { display: block; font-family: var(--font-en); font-size: 26px; font-weight: 800; text-transform: uppercase; color: var(--lime); }
.pillar span { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: 12px; }
.pillar p { margin: 0; color: var(--soft); font-size: 15px; }

/* ขั้นตอนสมัคร */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; counter-reset: s; }
.steps li { list-style: none; background: var(--ink-2); padding: 24px; position: relative; }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--font-en); font-weight: 800; font-size: 44px; line-height: 1; color: var(--lime); margin-bottom: 12px; }
.steps b { display: block; font-size: 18px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--soft); font-size: 15px; }

/* รายการตำแหน่ง */
.jobs { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; background: var(--white); color: var(--ink); padding: 24px 28px; text-decoration: none; border-left: 6px solid var(--lime); transition: transform .15s; }
.job:hover { transform: translateX(4px); }
.job h3 { font-family: var(--font-en); font-size: 24px; font-weight: 800; margin: 0; }
.job h3 small { display: block; font-size: 15px; font-weight: 600; color: var(--lime-ink); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.job p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tags span { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); }
body.dark .tags span { background: var(--ink-3); color: var(--white); }

/* หน้ารายละเอียดงาน */
.jobhead { background: var(--ink); color: var(--white); }
.jobhead .sec { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.jobhead h1 { font-family: var(--font-en); font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 6vw, 60px); line-height: 1.02; }
.jobhead h1 small { display: block; color: var(--lime); font-size: .5em; letter-spacing: .02em; margin-top: 6px; }
.jobhead a.back { color: var(--soft); text-decoration: none; font-size: 14px; }
.jobbody { background: var(--white); color: var(--ink); }
.jobbody .sec { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 48px; align-items: start; }
.jobbody h2 { font-family: var(--font-en), var(--font-th); font-size: 22px; margin: 32px 0 12px; }
.jobbody h2:first-child { margin-top: 0; }
.jobbody ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.jobbody li::marker { color: var(--lime-ink); }
.aside { position: sticky; top: 90px; background: var(--ink); color: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.aside dl { margin: 0; display: grid; gap: 10px; font-size: 15px; }
.aside dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.aside dd { margin: 0; }

/* ท้ายเว็บ */
.sitefoot { background: var(--ink); color: var(--soft); border-top: 1px solid var(--ink-3); position: relative; overflow: hidden; }
.sitefoot .sec { padding-top: 40px; padding-bottom: 56px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.sitefoot b { color: var(--white); }
.sitefoot a { color: var(--soft); text-decoration: none; }
.sitefoot a:hover { color: var(--lime); }
.sitefoot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--lime); clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%); }

/* หน้าสมัคร: ตัวบอกขั้นตอน */
.stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 28px; }
.stepper div { border-top: 4px solid var(--line); padding-top: 8px; font-size: 14px; color: var(--muted); }
.stepper div b { display: block; font-family: var(--font-en); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.stepper div.on { border-color: var(--lime); color: var(--black); }
.stepper div.done { border-color: var(--black); color: var(--black); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
textarea { min-height: 120px; resize: vertical; }
input[type=tel], input[type=url], input[type=date] { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 0; background: var(--white); min-height: 48px; }
.drop { border: 1.5px dashed var(--line); padding: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; cursor: pointer; background: var(--paper); }
.drop:hover, .drop.over { border-color: var(--black); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop .fn { font-size: 14px; color: var(--muted); }
.jobbox { background: var(--ink); color: var(--white); padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.jobbox b { font-family: var(--font-en); text-transform: uppercase; }
.jobbox span { color: var(--lime); font-size: 14px; }

/* เลือกเวลาสัมภาษณ์ */
.days { display: flex; flex-direction: column; gap: 18px; }
.day h3 { font-size: 15px; margin: 0 0 8px; }
.times { display: flex; gap: 8px; flex-wrap: wrap; }
.times label, .modes label { position: relative; cursor: pointer; }
.times input, .modes input { position: absolute; opacity: 0; inset: 0; }
.times span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 88px; padding: 6px 14px; border: 1.5px solid var(--line); font-family: var(--font-en); font-variant-numeric: tabular-nums; }
.times label:hover span, .modes label:hover span { border-color: var(--black); }
.times span .rank { font-family: var(--font-en); font-size: 12px; margin-left: 6px; }
.times span .rank:empty { display: none; }
.times input:checked + span, .modes input:checked + span { background: var(--black); color: var(--lime); border-color: var(--black); font-weight: 700; }
.times input:focus-visible + span, .modes input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.modes span { display: flex; flex-direction: column; min-height: 64px; padding: 10px 14px; border: 1.5px solid var(--line); }
.modes span small { font-weight: 400; font-size: 13px; opacity: .8; }
.summary { border: 1.5px solid var(--black); }
.summary div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.summary div:first-child { border-top: 0; }
.summary dt { color: var(--muted); font-size: 14px; }
.summary dd { margin: 0; font-weight: 700; }

@media (max-width: 860px) {
  .pillars, .steps { grid-template-columns: 1fr; }
  .jobbody .sec { grid-template-columns: 1fr; gap: 32px; }
  .aside { position: static; }
}
@media (max-width: 640px) {
  .sec { padding-top: 52px; padding-bottom: 52px; }
  .job { grid-template-columns: 1fr; padding: 20px; }
  .grid2, .modes { grid-template-columns: 1fr; }
  .sitehead .tel { display: none; }
  .summary div { grid-template-columns: 1fr; gap: 2px; }
}

/* ช่องในตาราง 2 คอลัมน์: ให้ช่องกรอกตรงกันแม้บางป้ายมีคำอธิบาย */
.grid2 label.f { justify-content: flex-end; }
/* หัวข้อภาษาไทยต้องการระยะบรรทัดมากกว่าตัวอังกฤษ ไม่งั้นสระบน/ล่างชนกัน */
h2.display { line-height: 1.2; }
@media (max-width: 640px) {
  .sitehead img { height: 20px; }
  .sitehead .pill { min-height: 38px; padding: 6px 14px; font-size: 14px; }
}
/* หน้าตำแหน่ง: กล่องแนะนำบริษัท, ย่อหน้า, หัวข้อย่อย */
.jobbody p { margin: 0 0 10px; }
.jobbody h3 { font-size: 16px; margin: 18px 0 8px; color: var(--lime-ink); }
.about { background: var(--paper); border-left: 4px solid var(--lime); padding: 20px 22px; margin-bottom: 28px; }
.about h2 { margin-top: 0; }
.about .tags { margin-top: 4px; }
.about .tags span { background: var(--white); }
.summary-lead { font-size: 18px; font-weight: 700; }
