/* ============================================================
   หน้าบริการ: AI-PDPA สำหรับฝ่าย HR (คัดกรองเรซูเม่และสัมภาษณ์งาน) · /services-ai-hr-recruitment · 16 พ.ย. 2026
   ธีม "ห้องสัมภาษณ์ยามค่ำบนกระดาษอุ่น" (body.aihr-page) จากแบบอ้างอิงที่เจ้าของส่ง (styles.refero.design · Notion "warm paper notebook")
   นำมาเฉพาะวิธีคิด ไม่ใช้ภาพ โลโก้ หรือสีฟ้าของเขา แปลงเป็นกรมท่า-ทองของเว็บ:
   - พื้นกระดาษอุ่น ไม่ขาวจั๊ว · หัวข้อ sans หนาตัวชิด (IBM Plex Sans Thai ฟอนต์เดิมของเว็บ) · คำพูดยกใช้ Trirong แทน serif ของต้นแบบ
   - การ์ดขาวเส้นบาง 1px มุม 12px ไม่มีเงา · การ์ดสีแบบโน้ตกระดาษหมุนเวียน 3 สี (กรมท่า ทองอ่อน ทราย) · การ์ดกรมท่าแทนการ์ด midnight
   - ป้ายแคปซูลสีทองอ่อนเน้นคำ (แทน peach pill) · ปุ่มหลักกรมท่าทึบปุ่มเดียวต่อจอ มุม 8px · ปุ่มรองพื้นทองอ่อน
   - ภาพถ่ายห้องสัมภาษณ์ยามค่ำวางในกรอบเหมือนภาพหน้าจอผลิตภัณฑ์ พร้อมการ์ดลอยแบบโน้ต
   ใช้คู่กับ css/svc-notice.css (โครง dn-*) · กฎทุกข้อจำกัดใต้ body.aihr-page หรือคลาส ah-* จึงไม่กระทบหน้าอื่น
   ============================================================ */

body.aihr-page {
  --h-paper: #F5F2EC;
  --h-paper-2: #ECE6DB;
  --h-card: #FFFFFF;
  --h-navy: #14243F;
  --h-navy-2: #0D1829;
  --h-ink: #2F333C;
  --h-mute: #6E6A64;
  --h-hair: rgba(20,36,63,.11);
  --h-hair-2: rgba(20,36,63,.2);
  --h-gold: #B8902F;
  --h-gold-ink: #785811;
  --h-gold-tint: #F2E3BC;
  --h-gold-wash: #FAF1DC;
  --h-sand: #E7DCC9;
  --h-mist: #E3E8EF;
  --h-ok: #2C7356;
  --h-ok-wash: #E3F1EA;
  --h-stop: #A9432C;
  --h-stop-wash: #F7E5DF;
  --h-wait: #8A5A00;
  --h-r: 12px;
  --h-r-lg: 18px;
  --h-btn-r: 10px;
  --h-font: var(--sans-th);
  background: var(--h-paper);
  color: var(--h-ink);
}
body.aihr-page ::selection { background: var(--h-gold-tint); color: var(--h-navy); }
body.aihr-page [hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
/* รายการแบบมีเลขของหน้านี้ใช้ตัวเลขของตัวเอง → ล้างระยะเยื้องของ ol เดิมของเบราว์เซอร์ ให้ตรงแนวกับหัวข้อ */
.ah-conds, .ah-mic-steps, .ah-time, .ah-src, .ah-cands, .ah-points { list-style: none; margin-left: 0; padding-left: 0; }

/* ---------- ตัวอักษร: หัวข้อ sans หนาตัวชิด ---------- */
body.aihr-page main { font-family: var(--h-font); }
body.aihr-page main h1, body.aihr-page main h2, body.aihr-page main h3 {
  font-family: var(--h-font); font-weight: 700; color: var(--h-navy); letter-spacing: -0.012em;
}
body.aihr-page main p, body.aihr-page main li { text-wrap: pretty; }
body.aihr-page main a:not(.btn):not(.related-card):not(.ah-btn):not(.ah-ghost):not(.ah-fact):not(.dn-more) {
  color: var(--h-navy); text-decoration: underline; text-decoration-color: rgba(184,144,47,.55); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
body.aihr-page main a:not(.btn):not(.related-card):not(.ah-btn):not(.ah-ghost):not(.ah-fact):not(.dn-more):hover { color: var(--h-gold-ink); }
body.aihr-page .section { background: var(--h-paper); padding-block: clamp(64px, 8vw, 120px); }

/* ป้ายเล็กเหนือหัวข้อ */
.ah-k {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--h-gold-ink);
}
.ah-k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--h-gold); }
.ah-k-on { color: var(--gold-bright); }
.ah-k-on::before { background: var(--gold-bright); }

.ah-sec-head { max-width: 900px; }
.ah-sec-head h2 { margin-top: 14px; font-size: clamp(1.9rem, 1.1rem + 2.7vw, 3.5rem); line-height: 1.16; }
.ah-sec-head p { margin-top: 18px; color: var(--h-mute); font-size: clamp(1.03rem, .97rem + .3vw, 1.2rem); line-height: 1.85; max-width: 62ch; }
.ah-sec-head.center { margin-inline: auto; text-align: center; }
.ah-sec-head.center p { margin-inline: auto; }

body.aihr-page .dn-ref { font-weight: 500; color: var(--h-mute); font-size: .84rem; line-height: 1.7; }
body.aihr-page .dn-law { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--h-gold-wash); border: 1px solid rgba(184,144,47,.28); color: var(--h-gold-ink); font-size: .76rem; font-weight: 600; white-space: normal; }

/* ---------- ปุ่ม ---------- */
.ah-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: var(--h-btn-r);
  background: var(--h-navy); color: #fff !important; text-decoration: none !important;
  font-weight: 600; font-size: 1rem; line-height: 1.3; text-align: center;
  transition: background .2s, transform .2s var(--ease);
}
.ah-btn svg { width: 20px; height: 20px; flex: none; color: #4ADE80; }
.ah-btn:hover { background: #1E3460; transform: translateY(-1px); }
.ah-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 22px; border-radius: var(--h-btn-r);
  background: var(--h-gold-wash); border: 1px solid rgba(184,144,47,.32);
  color: var(--h-navy) !important; text-decoration: none !important; font-weight: 600; font-size: 1rem;
  transition: background .2s;
}
.ah-ghost:hover { background: var(--h-gold-tint); }
body.aihr-page .btn { border-radius: var(--h-btn-r); letter-spacing: 0; }
body.aihr-page .btn-primary { background: var(--h-navy); color: #fff; box-shadow: none; }
body.aihr-page .btn-primary:hover { background: #1E3460; }

/* ============================================================
   S1 · HERO
   ============================================================ */
body.aihr-page .breadcrumb { background: var(--h-paper); border-bottom: 0; }
.ah-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 4vw, 56px); background: var(--h-paper); }
.ah-hero-head { max-width: 1040px; text-align: center; }
.ah-eyebrow {
  display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--h-card); border: 1px solid var(--h-hair);
  font-size: .82rem; font-weight: 600; color: var(--h-mute); letter-spacing: .01em;
}
.ah-hero h1 {
  margin: 22px auto 0; max-width: 18ch;
  font-size: clamp(2.35rem, 1.05rem + 4.6vw, 5.1rem); line-height: 1.08; letter-spacing: -0.028em; text-wrap: balance;
}
.ah-pill {
  display: inline-block; margin-left: .2em; padding: 0 .28em .04em; border-radius: .22em;
  background: var(--h-gold-tint); color: var(--h-navy); transform: rotate(-1.4deg);
}
.ah-h1-sub { display: block; margin-top: .32em; font-size: .44em; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--h-mute); }
.ah-lead { margin: 24px auto 0; max-width: 68ch; color: var(--h-ink); font-size: clamp(1.03rem, .96rem + .35vw, 1.2rem); line-height: 1.85; }
.ah-hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ภาพในกรอบ (แบบภาพหน้าจอผลิตภัณฑ์) */
.ah-stage-wrap { max-width: calc(1200px + 2 * var(--gutter)); margin-top: clamp(36px, 4.5vw, 64px); }
.ah-stage {
  position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  border-radius: var(--h-r-lg); background: var(--h-navy-2); border: 1px solid var(--h-hair-2);
}
.ah-stage picture, .ah-stage img, .ah-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ah-stage video { opacity: 0; transition: opacity .8s ease; }
.ah-stage video.is-on { opacity: 1; }
.ah-stage-note { position: absolute; right: 14px; bottom: 10px; z-index: 3; margin: 0; font-size: .7rem; color: rgba(255,255,255,.55); }

/* การ์ดลอยแบบโน้ต (ตกแต่ง · aria-hidden) */
.ah-float {
  position: absolute; z-index: 2; display: grid; gap: 6px;
  padding: 14px 16px; border-radius: var(--h-r); background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.6);
  color: var(--h-ink); font-size: .86rem; line-height: 1.45; box-shadow: 0 18px 40px -22px rgba(0,0,0,.6);
  animation: ahFloatUp .9s var(--ease-out-quint);
}
.ah-f-k { font-size: .74rem; font-weight: 600; color: var(--h-mute); }
.ah-f-row { display: flex; align-items: center; gap: 10px; }
.ah-f-score { font-weight: 700; color: var(--h-navy); font-size: 1rem; }
.ah-f-t { color: var(--h-mute); font-size: .82rem; }
.ah-float b { color: var(--h-navy); font-weight: 700; }
.ah-float-a { left: 4%; top: 9%; }
.ah-float-b { left: 4%; bottom: 9%; max-width: 300px; }
.ah-float-c {
  right: 3.5%; top: 6%; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(13,24,41,.72); border-color: rgba(255,255,255,.18); color: #fff; font-size: .78rem; font-weight: 500;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ah-rec { width: 9px; height: 9px; border-radius: 50%; background: #F05D4A; box-shadow: 0 0 0 0 rgba(240,93,74,.6); animation: ahRec 1.8s ease-out infinite; }
.ah-tag { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.ah-tag svg { width: 13px; height: 13px; }
.ah-tag-wait { background: #FFF2D6; color: var(--h-wait); }
.ah-tag-ok { background: var(--h-ok-wash); color: var(--h-ok); }
/* การ์ดลอยขยับแค่ตำแหน่ง ไม่ซ่อนด้วยความโปร่งใส (แท็บพื้นหลังหรือโหมดประหยัดพลังงานหน่วงแอนิเมชันได้ การ์ดจะค้างมองไม่เห็น) */
@keyframes ahFloatUp { from { transform: translateY(14px); } to { transform: none; } }
@keyframes ahFloatIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ahRec { 0% { box-shadow: 0 0 0 0 rgba(240,93,74,.55); } 70% { box-shadow: 0 0 0 9px rgba(240,93,74,0); } 100% { box-shadow: 0 0 0 0 rgba(240,93,74,0); } }

/* แถบข้อเท็จจริง 3 ช่อง */
.ah-facts { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ah-fact {
  display: grid; gap: 6px; align-content: start; padding: 20px 22px; border-radius: var(--h-r);
  background: var(--h-card); border: 1px solid var(--h-hair); color: var(--h-ink); text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease);
}
a.ah-fact:hover { border-color: rgba(184,144,47,.55); transform: translateY(-2px); }
.ah-fact-big { font-size: 1.5rem; font-weight: 700; color: var(--h-navy); letter-spacing: -0.01em; }
.ah-fact-t { font-size: .92rem; line-height: 1.6; color: var(--h-mute); }
.ah-chip { grid-template-columns: 64px 1fr; align-items: center; gap: 14px; }
.ah-chip img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid var(--h-gold-tint); }
.ah-chip > span { display: grid; gap: 2px; }
.ah-chip-k { font-size: .74rem; font-weight: 600; color: var(--h-gold-ink); }
.ah-chip strong { color: var(--h-navy); font-weight: 700; }
.ah-chip-sub { font-size: .8rem; color: var(--h-mute); line-height: 1.5; }

/* ============================================================
   ฟอร์มด่วน
   ============================================================ */
.ah-quick-sec { padding: clamp(26px, 3vw, 40px) 0; background: var(--h-paper-2); }
.ah-quick-grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.ah-quick-copy h2 { font-size: 1.5rem; }
.ah-quick-copy p { margin-top: 6px; color: var(--h-mute); font-size: .95rem; line-height: 1.6; }
body.aihr-page .ah-form { padding: 20px 22px; border-radius: var(--h-r); box-shadow: none; border: 1px solid var(--h-hair); background: var(--h-card); }
.ah-quick-row { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px; }
.ah-quick-foot { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.ah-quick-foot .consent { flex: 1 1 320px; }

/* ============================================================
   S2 · คำตอบสั้น + นิยาม
   ============================================================ */
.ah-answer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.ah-answer h2 { margin-top: 14px; font-size: clamp(1.75rem, 1.05rem + 2.2vw, 3rem); line-height: 1.2; }
.ah-answer-p { margin-top: 20px; font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem); line-height: 1.9; color: var(--h-ink); }
.ah-answer .dn-ref { margin-top: 12px; }
.ah-points { margin-top: 26px; display: grid; gap: 12px; counter-reset: pt; }
.ah-points li { counter-increment: pt; position: relative; padding: 18px 20px 16px 58px; border-radius: var(--h-r); background: var(--h-card); border: 1px solid var(--h-hair); line-height: 1.75; }
.ah-points li::before { content: counter(pt); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--h-navy); color: #fff; font-size: .8rem; font-weight: 700; }
.ah-points li > span:first-child { display: block; }
.ah-define { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px 28px 24px; border-radius: var(--h-r-lg); background: var(--h-navy); color: #DCE2EC; }
.ah-define .ah-k { color: var(--gold-bright); }
.ah-define .ah-k::before { background: var(--gold-bright); }
body.aihr-page .ah-define .ah-define-h { margin-top: 14px; color: #fff; font-size: 1.32rem; line-height: 1.35; }
.ah-define .ah-define-h + p { margin-top: 10px; line-height: 1.8; font-size: .98rem; }
.ah-define p + .ah-define-h { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
body.aihr-page .ah-define .dn-ref { margin-top: 20px; color: #AEB7C6; }
body.aihr-page .ah-define .dn-ref a { color: var(--gold-bright) !important; }

/* ============================================================
   S3 · คำพูดยก
   ============================================================ */
.ah-quote-sec { padding: clamp(40px, 6vw, 96px) 0; background: var(--h-paper); border-top: 1px solid var(--h-hair); border-bottom: 1px solid var(--h-hair); }
.ah-bigquote { max-width: 1020px; margin: 0 auto; text-align: center; }
.ah-bigquote blockquote p {
  font-family: var(--serif-th); font-weight: 400; color: var(--h-navy);
  font-size: clamp(1.65rem, .95rem + 2.9vw, 3.4rem); line-height: 1.4; letter-spacing: -0.005em; text-wrap: balance;
}
.ah-mark { padding: 0 .22em; border-radius: .2em; background: var(--h-gold-tint); white-space: nowrap; }
.ah-bigquote figcaption { margin-top: 22px; font-size: .86rem; color: var(--h-mute); line-height: 1.6; }
.ah-quote-after { max-width: 64ch; margin: 22px auto 0; text-align: center; color: var(--h-ink); line-height: 1.85; font-size: 1.04rem; }

/* ============================================================
   S4 · 3 เงื่อนไข + ภาพแว่นขยาย
   ============================================================ */
.ah-review-art { position: relative; margin: clamp(30px, 4vw, 48px) 0 0; aspect-ratio: 16 / 7.2; overflow: hidden; border-radius: var(--h-r-lg); background: var(--h-navy-2); border: 1px solid var(--h-hair-2); }
.ah-review-art picture, .ah-review-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.ah-review-art figcaption {
  position: absolute; left: clamp(18px, 3vw, 36px); bottom: clamp(16px, 2.6vw, 30px); max-width: min(30ch, 40%);
  color: #fff; font-size: clamp(1.05rem, .9rem + .7vw, 1.55rem); font-weight: 600; line-height: 1.45; text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.ah-conds { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.ah-cond { position: relative; padding: 26px 24px 24px; border-radius: var(--h-r); display: grid; align-content: start; gap: 12px; }
.ah-tone-navy { background: var(--h-navy); color: #D9DFE9; }
.ah-tone-gold { background: var(--h-gold-tint); color: #3B3220; }
.ah-tone-sand { background: var(--h-sand); color: #3A352D; }
.ah-cond-n { font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.ah-tone-navy .ah-cond-n { color: var(--gold-bright); }
.ah-tone-gold .ah-cond-n, .ah-tone-sand .ah-cond-n { color: var(--h-navy); }
body.aihr-page .ah-cond h3 { font-size: 1.36rem; line-height: 1.3; }
body.aihr-page .ah-tone-navy h3 { color: #fff; }
.ah-cond-g { font-family: var(--serif-th); font-size: 1rem; line-height: 1.75; }
.ah-cond-hr, .ah-cond-do { font-size: .93rem; line-height: 1.7; padding-top: 12px; border-top: 1px solid rgba(20,36,63,.14); }
.ah-tone-navy .ah-cond-hr, .ah-tone-navy .ah-cond-do { border-top-color: rgba(255,255,255,.14); }
.ah-cond-hr b, .ah-cond-do b { display: block; margin-bottom: 2px; font-size: .76rem; font-weight: 700; letter-spacing: .02em; }
.ah-tone-navy .ah-cond-hr b, .ah-tone-navy .ah-cond-do b { color: var(--gold-bright); }
.ah-tone-gold .ah-cond-hr b, .ah-tone-gold .ah-cond-do b, .ah-tone-sand .ah-cond-hr b, .ah-tone-sand .ah-cond-do b { color: var(--h-gold-ink); }
.ah-note { margin-top: 22px; max-width: 80ch; color: var(--h-mute); font-size: .95rem; line-height: 1.8; }

/* ============================================================
   S5 · เครื่องจำลองการคัดผู้สมัคร
   ============================================================ */
.ah-sim-sec { background: var(--h-paper-2) !important; }
.ah-sim { margin-top: clamp(26px, 3.5vw, 40px); padding: clamp(18px, 2.4vw, 30px); border-radius: var(--h-r-lg); background: var(--h-card); border: 1px solid var(--h-hair); }
.ah-modes { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--h-paper); border: 1px solid var(--h-hair); }
.ah-modes button {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font: 600 .95rem/1.2 var(--h-font); color: var(--h-mute); transition: background .2s, color .2s;
}
.ah-modes button[aria-pressed="true"] { background: var(--h-navy); color: #fff; }
.ah-modes button:not([aria-pressed="true"]):hover { color: var(--h-navy); background: var(--h-card); }
.ah-cands { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ah-cand {
  position: relative; display: grid; gap: 6px; align-content: start; padding: 16px 16px 14px; border-radius: var(--h-r);
  background: var(--h-card); border: 1px solid var(--h-hair); transition: opacity .35s, border-color .35s, background .35s, transform .35s var(--ease);
}
.ah-cand-id { font-size: .8rem; font-weight: 700; color: var(--h-navy); }
.ah-cand-score { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.ah-cand-score b { font-size: 1.5rem; font-weight: 700; color: var(--h-navy); letter-spacing: -0.02em; min-width: 2ch; }
.ah-cand-score i { position: relative; display: block; height: 6px; border-radius: 99px; background: var(--h-paper-2); overflow: hidden; }
.ah-cand-score i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--s) * 1%); border-radius: inherit; background: var(--h-navy); }
.ah-cand.is-low .ah-cand-score i::after { background: #C9A75A; }
.ah-cand-t { font-size: .9rem; font-weight: 600; color: var(--h-ink); }
.ah-cand-n { font-size: .84rem; color: var(--h-mute); line-height: 1.5; min-height: 2.6em; }
.ah-cand-res { justify-self: start; margin-top: 4px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--h-ok-wash); color: var(--h-ok); }
.ah-cand-why { font-size: .8rem; line-height: 1.55; color: var(--h-ink); padding-top: 8px; border-top: 1px dashed var(--h-hair-2); }
.ah-cand-why em { display: inline-block; margin-top: 4px; font-style: normal; font-weight: 700; color: var(--h-gold-ink); font-size: .74rem; }
/* โหมด AI ตัดเอง / คนกดผ่านตาม AI: ใบคะแนนต่ำถูกตัด (จางลง) */
.ah-sim[data-mode="ai"] .ah-cand.is-low, .ah-sim[data-mode="stamp"] .ah-cand.is-low { opacity: .62; background: #FBF9F5; }
.ah-sim[data-mode="ai"] .ah-cand.is-low .ah-cand-res, .ah-sim[data-mode="stamp"] .ah-cand.is-low .ah-cand-res { background: var(--h-stop-wash); color: var(--h-stop); }
.ah-sim[data-mode="stamp"] .ah-cand::after {
  content: "กดยืนยันแล้ว"; position: absolute; right: 10px; top: 12px; padding: 2px 8px; border: 1.5px solid #9AA3B2; border-radius: 6px;
  font-size: .68rem; font-weight: 700; color: #7E8798; transform: rotate(6deg);
}
/* โหมดคนทบทวนจริง */
.ah-sim[data-mode="human"] .ah-cand[data-human="restore"] { border-color: rgba(44,115,86,.45); background: #F6FBF8; }
.ah-sim[data-mode="human"] .ah-cand[data-human="restore"] .ah-cand-res { background: var(--h-ok-wash); color: var(--h-ok); }
.ah-sim[data-mode="human"] .ah-cand[data-human="reject"] { border-color: rgba(169,67,44,.35); }
.ah-sim[data-mode="human"] .ah-cand[data-human="reject"] .ah-cand-res { background: var(--h-stop-wash); color: var(--h-stop); }
.ah-sim[data-mode="human"] .ah-cand.is-low::after {
  content: "คนตรวจ"; position: absolute; right: 10px; top: 12px; padding: 2px 8px; border-radius: 6px; background: var(--h-navy); color: #fff; font-size: .68rem; font-weight: 700;
}
.ah-sim-notes { margin-top: 18px; display: grid; gap: 10px; }
.ah-sim-note { padding: 18px 20px; border-radius: var(--h-r); background: var(--h-paper); border: 1px solid var(--h-hair); line-height: 1.75; }
.ah-sim-note p + p { margin-top: 6px; color: var(--h-ink); font-size: .96rem; }
.ah-sim-big { font-size: 1.15rem; font-weight: 600; color: var(--h-navy); }
.ah-sim-big b { padding: 0 .25em; border-radius: .2em; background: var(--h-gold-tint); }
.ah-sim-foot { margin-top: 12px; font-size: .78rem; color: var(--h-mute); }

/* ============================================================
   S6 · อัดเสียงสัมภาษณ์ (แถบกรมท่า + ภาพไมโครโฟน)
   ============================================================ */
.ah-mic-sec { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 9vw, 140px) 0 clamp(56px, 7vw, 100px); background: #0B1424; color: #C9D1DE; }
/* ภาพชิดขวา 70% ของแถบ ให้ไมโครโฟนอยู่พ้นคอลัมน์หัวข้อ (ซ้ายเป็นพื้นกรมท่าล้วน) */
.ah-mic-art { position: absolute; z-index: -1; top: 0; right: 0; width: min(1240px, 70%); height: min(78vh, 760px); margin: 0; }
.ah-mic-art picture, .ah-mic-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.ah-mic-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0B1424 0%, rgba(11,20,36,.72) 20%, rgba(11,20,36,.12) 52%, rgba(11,20,36,.3) 100%), linear-gradient(180deg, rgba(11,20,36,0) 55%, #0B1424 100%); }
.ah-mic-head { max-width: 620px; }
body.aihr-page .ah-mic-head h2 { margin-top: 14px; color: #fff; font-size: clamp(1.95rem, 1.05rem + 2.9vw, 3.6rem); line-height: 1.15; }
.ah-mic-head p { margin-top: 18px; font-size: 1.08rem; line-height: 1.85; color: #C9D1DE; max-width: 52ch; }
.ah-mic-steps { margin-top: clamp(44px, 9vw, 150px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: ms; }
.ah-mic-steps li { counter-increment: ms; padding: 20px 18px; border-radius: var(--h-r); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: grid; gap: 8px; align-content: start; }
.ah-mic-steps li::before { content: counter(ms); font-size: 1.7rem; font-weight: 700; color: var(--gold-bright); line-height: 1; }
.ah-mic-steps b { color: #fff; font-size: 1.04rem; font-weight: 700; }
.ah-mic-steps span { font-size: .88rem; line-height: 1.65; color: #AEB8C8; }
.ah-mic-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.ah-script { margin: 0; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--h-r-lg); background: var(--h-paper); color: var(--h-ink); }
.ah-script figcaption { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; color: var(--h-gold-ink); }
.ah-script figcaption svg { width: 18px; height: 18px; }
.ah-script blockquote { margin-top: 16px; padding-left: 18px; border-left: 3px solid var(--h-gold); }
.ah-script blockquote p { font-family: var(--serif-th); font-size: 1.06rem; line-height: 1.95; color: var(--h-navy); }
.ah-script blockquote p + p { margin-top: 12px; }
.ah-script-note { margin-top: 16px; font-size: .82rem; color: var(--h-mute); line-height: 1.65; }
.ah-sum { padding: clamp(22px, 2.6vw, 32px); border-radius: var(--h-r-lg); background: var(--h-card); color: var(--h-ink); display: grid; align-content: start; }
.ah-sum-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ah-sum-k { font-size: .84rem; font-weight: 700; color: var(--h-gold-ink); }
.ah-sum-sw { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: var(--h-paper); border: 1px solid var(--h-hair); }
.ah-sum-sw button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font: 600 .86rem/1 var(--h-font); color: var(--h-mute); }
.ah-sum-sw button[aria-pressed="true"] { background: var(--h-navy); color: #fff; }
.ah-sum-list { margin-top: 16px; display: grid; gap: 8px; }
.ah-sum-list li { position: relative; padding: 10px 12px 10px 30px; border-radius: 9px; background: var(--h-paper); font-size: .95rem; line-height: 1.6; }
.ah-sum-list li::before { content: ""; position: absolute; left: 13px; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--h-navy); }
.ah-sum-list li.is-s { display: grid; gap: 4px; }
.ah-sum-list li em { justify-self: start; font-style: normal; font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.ah-sum[data-sum="raw"] li.is-s { background: #FFF4E5; }
.ah-sum[data-sum="raw"] li.is-s::before { background: #D9822B; }
.ah-sum[data-sum="raw"] li.is-s em { background: #FBE2C4; color: #8A4A0B; }
.ah-sum[data-sum="raw"] .ah-s-cut { display: none; }
.ah-sum[data-sum="clean"] .ah-s-raw { display: none; }
.ah-sum[data-sum="clean"] li.is-s { background: #F1F2F4; color: #7A808C; }
.ah-sum[data-sum="clean"] li.is-s::before { background: #B4BAC4; }
.ah-sum[data-sum="clean"] li.is-s em { background: var(--h-ok-wash); color: var(--h-ok); }
.ah-sum[data-sum="clean"] .ah-s-cut { font-style: italic; }
.ah-sum-foot { margin-top: 14px; font-size: .78rem; color: var(--h-mute); line-height: 1.6; }
.ah-mic-more { margin-top: 22px; font-size: .9rem; color: #AEB8C8; }
body.aihr-page .ah-mic-more a { color: var(--gold-bright) !important; text-decoration-color: rgba(231,203,128,.5) !important; }

/* ============================================================
   S7 · ปี 2569
   ============================================================ */
.ah-y69 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ah-y69-copy h2 { margin-top: 14px; font-size: clamp(1.8rem, 1.05rem + 2.4vw, 3.1rem); line-height: 1.18; }
.ah-y69-copy > p { margin-top: 18px; line-height: 1.85; color: var(--h-ink); max-width: 60ch; }
.ah-y69-do { margin-top: 22px; display: grid; gap: 8px; }
.ah-y69-do li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; background: var(--h-card); border: 1px solid var(--h-hair); line-height: 1.6; }
.ah-y69-do svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--h-gold-ink); }
.ah-y69 .dn-ref { margin-top: 18px; }
.ah-time { position: relative; display: grid; gap: 0; padding: 26px 26px 26px 28px; border-radius: var(--h-r-lg); background: var(--h-card); border: 1px solid var(--h-hair); }
.ah-time li { position: relative; padding: 0 0 22px 30px; display: grid; gap: 2px; }
.ah-time li:last-child { padding-bottom: 0; }
.ah-time li::before { content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--h-card); border: 2px solid var(--h-hair-2); }
.ah-time li::after { content: ""; position: absolute; left: 6px; top: 22px; bottom: 2px; width: 1.5px; background: var(--h-hair-2); }
.ah-time li:last-child::after { display: none; }
.ah-time li.is-key::before { background: var(--h-gold); border-color: var(--h-gold); box-shadow: 0 0 0 5px var(--h-gold-wash); }
.ah-time-d { font-weight: 700; color: var(--h-navy); }
.ah-time-t { font-size: .9rem; color: var(--h-mute); line-height: 1.55; }

/* ============================================================
   S8 · บริษัทจัดหางาน
   ============================================================ */
.ah-agency-sec { background: var(--h-paper-2) !important; }
.ah-agency { margin-top: clamp(26px, 3.5vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ah-ag { padding: 22px 24px; border-radius: var(--h-r); background: var(--h-card); border: 1px solid var(--h-hair); }
body.aihr-page .ah-ag h3 { font-size: 1.14rem; line-height: 1.4; }
.ah-ag p { margin-top: 8px; color: var(--h-ink); line-height: 1.75; font-size: .97rem; }

/* ============================================================
   S9 · สิ่งที่ส่งมอบ (โน้ตสีหมุนเวียน)
   ============================================================ */
.ah-deliv { margin-top: clamp(26px, 3.5vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ah-dcard { position: relative; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--h-r-lg); scroll-margin-top: calc(var(--header-h) + 24px); }
.ah-dcard-1 { background: var(--h-navy); color: #D9DFE9; }
.ah-dcard-2 { background: var(--h-gold-tint); color: #3B3220; }
.ah-dcard-3 { background: var(--h-sand); color: #3A352D; }
.ah-dcard-4 { background: var(--h-card); border: 1px solid var(--h-hair); }
.ah-dcard-n { font-family: var(--serif-th); font-size: 2.6rem; line-height: 1; color: var(--h-gold-ink); }
.ah-dcard-1 .ah-dcard-n { color: var(--gold-bright); }
body.aihr-page .ah-dcard h3 { margin-top: 12px; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.35; }
body.aihr-page .ah-dcard-1 h3 { color: #fff; }
.ah-dcard ul { margin-top: 16px; display: grid; gap: 8px; }
.ah-dcard li { position: relative; padding-left: 22px; line-height: 1.65; font-size: .96rem; }
.ah-dcard li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 9px; height: 9px; border-radius: 2px; background: var(--h-gold); transform: rotate(45deg); }
.ah-dcard-1 li::before { background: var(--gold-bright); }
.ah-suite { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; border-radius: var(--h-r); background: var(--h-card); border: 1px solid var(--h-hair); }
.ah-suite-k { font-size: .82rem; font-weight: 700; color: var(--h-gold-ink); }
.ah-suite ul { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-suite li { font-size: .88rem; }
.ah-suite li a, .ah-suite li.is-here { display: inline-flex; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--h-hair-2); text-decoration: none !important; }
.ah-suite li a:hover { border-color: var(--h-gold); background: var(--h-gold-wash); }
.ah-suite li.is-here { background: var(--h-navy); border-color: var(--h-navy); color: #fff; font-weight: 600; }

/* ============================================================
   S10 · เครื่องมือเช็ก
   ============================================================ */
body.aihr-page .ah-tool-sec { background: var(--h-paper); }
.ah-tool { margin-top: clamp(26px, 3.5vw, 40px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.ah-tool-form { display: grid; gap: 12px; }
.ah-q { margin: 0; padding: 20px 22px 18px; border: 1px solid var(--h-hair); border-radius: var(--h-r); background: var(--h-card); display: grid; gap: 8px; }
.ah-q legend { float: left; width: 100%; display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; font-weight: 700; color: var(--h-navy); font-size: 1.05rem; line-height: 1.45; }
.ah-q legend span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--h-gold-tint); color: var(--h-navy); font-size: .8rem; }
.ah-q label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--h-hair); cursor: pointer; line-height: 1.55; font-size: .96rem; transition: border-color .2s, background .2s; }
.ah-q label:hover { border-color: var(--h-hair-2); }
.ah-q label:has(input:checked) { border-color: var(--h-navy); background: var(--h-mist); }
.ah-q input { flex: none; margin-top: 4px; accent-color: var(--h-navy); width: 16px; height: 16px; }
.ah-result { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border-radius: var(--h-r-lg); background: var(--h-navy); color: #D9DFE9; min-height: 220px; }
.ah-r-empty { color: #AEB8C8; line-height: 1.7; }
.ah-verdict { display: inline-flex; padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.ah-verdict[data-tone="stop"] { background: #F6D2C9; color: #7A2A17; }
.ah-verdict[data-tone="warn"] { background: var(--h-gold-tint); color: #5A430C; }
.ah-verdict[data-tone="ok"] { background: #CFEBDD; color: #1D5A41; }
.ah-r-h { margin-top: 14px; color: #fff; font-size: 1.22rem; font-weight: 700; line-height: 1.4; }
.ah-r-why { margin-top: 14px; display: grid; gap: 8px; }
.ah-r-why li { position: relative; padding-left: 18px; font-size: .92rem; line-height: 1.65; }
.ah-r-why li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); }
.ah-r-need { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: .9rem; line-height: 1.6; }
.ah-r-need a { color: var(--gold-bright) !important; }
.ah-r-line { margin-top: 18px; width: 100%; background: #06C755; color: #fff !important; }
.ah-r-line svg { color: #fff; }
.ah-r-line:hover { background: #05b34c; }
.ah-r-msg { margin-top: 10px; font-size: .82rem; line-height: 1.6; color: #C9D1DE; }
.ah-result .is-fresh { animation: ahFloatIn .5s var(--ease-out-quint) both; }

/* ============================================================
   S11 · เอกสารต้นทาง
   ============================================================ */
.ah-src { margin-top: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ah-src li { padding: 24px 26px; border-radius: var(--h-r); background: var(--h-card); border: 1px solid var(--h-hair); display: grid; gap: 8px; align-content: start; }
.ah-src-short { justify-self: start; padding: 2px 12px; border-radius: 999px; background: var(--h-gold-tint); color: var(--h-navy); font-size: .78rem; font-weight: 700; }
.ah-src-name { font-weight: 700; color: var(--h-navy); line-height: 1.55; }
.ah-src-meta { font-size: .86rem; color: var(--h-mute); }
.ah-src-use { font-size: .9rem; line-height: 1.7; }
body.aihr-page .ah-src-a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; }
.ah-src-a svg { width: 15px; height: 15px; }

/* ============================================================
   ขั้นตอน · ค่าบริการ · ทนาย · FAQ (ปรับโครง dn-* ให้เป็นเส้นบาง ไม่มีเงา)
   ============================================================ */
body.aihr-page .dn-steps-sec { background: var(--h-paper-2); }
body.aihr-page .ah-phases { margin-top: clamp(26px, 3.5vw, 40px); }
body.aihr-page .dn-phase { border-color: var(--h-hair); border-radius: var(--h-r-lg); }
body.aihr-page .dn-phase-h, body.aihr-page .dn-steps b { font-family: var(--h-font); font-weight: 700; color: var(--h-navy); }
body.aihr-page .dn-steps li::before { background: var(--h-navy); border-color: var(--h-navy); color: #fff; }
body.aihr-page .dn-steps li::after { background: var(--h-hair-2); }
body.aihr-page .dn-fees-sec { background: var(--h-paper); }
body.aihr-page .dn-fees-copy h2, body.aihr-page .dn-lawyer-body h2, body.aihr-page .dn-fcol h3 { font-family: var(--h-font); font-weight: 700; color: var(--h-navy); }
body.aihr-page .dn-fcol { background: var(--h-card); border-color: var(--h-hair); border-radius: var(--h-r); }
.ah-plans { margin-top: 22px; display: grid; gap: 10px; }
.ah-plans > div { padding: 16px 18px; border-radius: var(--h-r); background: var(--h-card); border: 1px solid var(--h-hair); display: grid; gap: 4px; }
.ah-plans b { color: var(--h-navy); }
.ah-plans span { color: var(--h-mute); font-size: .94rem; line-height: 1.65; }
body.aihr-page .dn-lawyer-sec { background: var(--h-paper-2); }
body.aihr-page .dn-lawyer-photo { box-shadow: none; border: 1px solid var(--h-hair-2); border-radius: var(--h-r-lg); }
body.aihr-page .dn-creds li { border-color: rgba(184,144,47,.35); }
body.aihr-page .dn-faq-sec { background: var(--h-paper); }
body.aihr-page .faq-wrap { margin-top: clamp(24px, 3vw, 36px); }
body.aihr-page .faq-item { border-radius: var(--h-r); border: 1px solid var(--h-hair); background: var(--h-card); box-shadow: none; }
body.aihr-page .faq-q { font-family: var(--h-font); font-weight: 600; }
body.aihr-page .dn-close { background: var(--h-navy-2); }
body.aihr-page .dn-close-copy h2 { font-family: var(--h-font); font-weight: 700; letter-spacing: -0.015em; }
body.aihr-page .dn-quote { border-radius: var(--h-r-lg); box-shadow: none; }
body.aihr-page .dn-form-h { font-family: var(--h-font); font-weight: 700; }
body.aihr-page .ah-related-sec { background: var(--h-paper-2); }
body.aihr-page .related-card { border-radius: var(--h-r); box-shadow: none; border: 1px solid var(--h-hair); background: var(--h-card); }

/* ============================================================
   จอเล็ก
   ============================================================ */
@media (max-width: 1100px) {
  .ah-cands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-mic-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-mic-steps li:last-child { grid-column: 1 / -1; }
  .ah-float-c { display: none; }
}
@media (max-width: 900px) {
  .ah-answer-grid, .ah-y69, .ah-tool, .ah-mic-grid { grid-template-columns: 1fr; }
  .ah-define, .ah-result { position: static; }
  .ah-conds { grid-template-columns: 1fr; }
  .ah-facts { grid-template-columns: 1fr; }
  .ah-quick-grid { grid-template-columns: 1fr; }
  .ah-quick-row { grid-template-columns: 1fr 1fr; }
  .ah-quick-row .field:last-child { grid-column: 1 / -1; }
  .ah-agency, .ah-deliv, .ah-src { grid-template-columns: 1fr; }
  .ah-review-art { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .ah-hero-head { text-align: left; }
  .ah-hero h1 { margin-left: 0; font-size: clamp(2.1rem, 1.3rem + 5.6vw, 3.1rem); }
  .ah-pill { margin-left: 0; }
  .ah-lead { margin-left: 0; font-size: 1.02rem; }
  .ah-hero-actions { justify-content: flex-start; }
  .ah-hero-actions .ah-btn { width: 100%; }
  .ah-stage-wrap { padding-inline: 12px; }
  .ah-stage { aspect-ratio: 800 / 546; border-radius: 14px; }
  .ah-float-a, .ah-float-c { display: none; }
  .ah-float-b { left: 10px; bottom: 10px; max-width: 68%; padding: 10px 12px; gap: 3px; font-size: .78rem; }
  .ah-float-b .ah-f-t { display: none; }
  .ah-stage-note { right: 10px; bottom: 6px; font-size: .64rem; }
  .ah-quick-row { grid-template-columns: 1fr; }
  .ah-review-art { aspect-ratio: 800 / 479; }
  .ah-review-art figcaption { max-width: 70%; font-size: 1rem; }
  .ah-cands { grid-template-columns: 1fr; }
  .ah-cand-n { min-height: 0; }
  .ah-modes { display: grid; grid-template-columns: 1fr; width: 100%; }
  .ah-mic-art { width: 100%; height: 340px; }
  .ah-mic-art img { object-position: 70% 50%; }
  .ah-mic-art::after { background: linear-gradient(180deg, rgba(11,20,36,.2) 0%, rgba(11,20,36,.55) 45%, #0B1424 100%); }
  .ah-mic-sec { padding-top: 220px; }
  .ah-mic-steps { margin-top: 36px; grid-template-columns: 1fr; gap: 8px; }
  .ah-mic-steps li, .ah-mic-steps li:last-child { grid-column: auto; grid-template-columns: 30px 1fr; column-gap: 12px; row-gap: 2px; padding: 14px 16px; }
  .ah-mic-steps li::before { grid-row: 1 / span 2; font-size: 1.35rem; }
  .ah-sec-head h2 .nowrap, .ah-mic-head h2 .nowrap, .ah-y69-copy h2 .nowrap { white-space: normal; }
}
@media (max-width: 420px) {
  .ah-h1-sub .nowrap { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-float, .ah-rec, .ah-result .is-fresh { animation: none; }
  .ah-cand, a.ah-fact { transition: none; }
}
