/* ============================================================
   หน้าบริการ: รับร่างหนังสือโอนสิทธิเรียกร้อง และส่งหนังสือบอกกล่าวลูกหนี้ · /services-assignment-of-claim · 25 พ.ย. 2026
   ธีม "ห้องจัดแสดงเอกสารยามค่ำ" (body.asg-page) จากแบบอ้างอิงที่เจ้าของส่ง
   (styles.refero.design · Apple Watch Ultra 4 "midnight endurance instrument")
   นำมาเฉพาะวิธีคิด ไม่ใช้ภาพ โลโก้ ฟอนต์ หรือสีฟ้าของเขา แปลงเป็นกรมท่า-ทองของเว็บ:
   - ห้องจัดแสดงสีดำต่อกันเป็นช่วง ๆ (ดำกรมท่า --navy-ink แทนดำล้วน) วางวัตถุชิ้นเดียวกลางเวที = ชุดเอกสาร 3 แผ่น แทนนาฬิกา
   - หัวข้อ sans หนาขนาดใหญ่ (IBM Plex Sans Thai ฟอนต์เดิมของเว็บ) · ตัวหนังสือในเอกสารใช้ Trirong ให้เหมือนเอกสารทางการ
   - สีจัดสรรอย่างประหยัด: ทองใช้เฉพาะปุ่มติดต่อ (แทน Purchase Blue) และตัวเลขมาตรา (แทน Battery Green) เท่านั้น
   - กล่องมุม 28px ไม่มีเงา แยกชั้นด้วยความต่างของพื้น · ปุ่มแคปซูลมุมกลมเต็ม · ชิปเลือกแบบเม็ดยา
   - ช่วงท้ายหน้าสลับเป็นแถบพื้นสว่างและกล่องขาว (แพ็กเกจ ขั้นตอน ทนาย คำถาม) ตามจังหวะของต้นแบบ
   ใช้คู่กับ css/tokens.css + components.css · ทุกกฎจำกัดใต้ body.asg-page หรือคลาส as-* จึงไม่กระทบหน้าอื่น
   ============================================================ */

body.asg-page {
  --a-stage: #03070F;           /* เวทีจอแรก ดำกรมท่าลึกสุด */
  --a-canvas: #070E1C;          /* พื้นห้องจัดแสดง = --navy-ink ของเว็บ */
  --a-tile: #0E1726;            /* กล่องมืด */
  --a-tile-2: #142035;          /* กล่องมืดชั้นบน */
  --a-chip: rgba(199,204,212,.12);
  --a-chip-on: rgba(199,204,212,.22);
  --a-text: #F1EFE9;            /* = --on-navy */
  --a-mute: #B9C0CC;            /* = --on-navy-muted · 10:1 บนพื้นมืด */
  --a-steel: #8D97A8;           /* 6.3:1 บน --a-canvas */
  --a-hair: rgba(241,239,233,.12);
  --a-hair-2: rgba(241,239,233,.22);
  --a-gold: #C8A24A;            /* = --gold-soft · ปุ่มบนพื้นมืด */
  --a-gold-hi: #E7CB80;         /* = --gold-bright · ตัวเลขมาตรา */
  --a-on-gold: #2A2208;         /* = --on-gold */
  --a-polar: #F3F4F6;           /* แถบสว่างช่วงท้าย (เทาเย็น ไม่ใช่ครีม) */
  --a-white: #FFFFFF;
  --a-ink: #15191F;
  --a-ink-2: #3E4654;           /* 9:1 บนขาว */
  --a-line-l: rgba(20,36,63,.12);
  --a-r: 28px;
  --a-r-sm: 18px;
  --a-ease: cubic-bezier(.16, 1, .3, 1);
  --a-local-h: 52px;
  background: var(--a-canvas);
  color: var(--a-text);
}
body.asg-page ::selection { background: rgba(231,203,128,.35); color: #fff; }
body.asg-page [hidden] { display: none !important; }
body.asg-page .nowrap { white-space: nowrap; }
body.asg-page main { font-family: var(--sans-th); overflow-x: clip; }
body.asg-page main h1, body.asg-page main h2, body.asg-page main h3 {
  font-family: var(--sans-th); font-weight: 700; letter-spacing: -0.01em; color: inherit; text-wrap: balance;
}
body.asg-page main p, body.asg-page main li, body.asg-page main td { text-wrap: pretty; }
.as-wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }
.as-wrap-n { width: min(100% - 32px, 980px); margin-inline: auto; }

/* ลิงก์ในเนื้อหา: บนพื้นมืดขีดเส้นใต้ทอง · บนพื้นสว่างใช้สีกรมท่า */
.as-dark a.as-tl, .as-dark p a:not(.as-pill):not(.as-ghost) {
  color: var(--a-text); text-decoration: underline; text-decoration-color: rgba(231,203,128,.6);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.as-dark a.as-tl:hover, .as-dark p a:not(.as-pill):not(.as-ghost):hover { color: var(--a-gold-hi); }
.as-light p a:not(.as-pill):not(.as-ghost), .as-light li a:not(.as-pill):not(.as-ghost) {
  color: var(--navy); text-decoration: underline; text-decoration-color: rgba(184,144,47,.6);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.as-light p a:not(.as-pill):not(.as-ghost):hover, .as-light li a:not(.as-pill):not(.as-ghost):hover { color: var(--gold-text); }

/* ---------- ปุ่มแคปซูล ---------- */
.as-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 980px;
  font: 600 1rem/1.2 var(--sans-th); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, transform .4s var(--a-ease);
}
.as-pill svg { width: 20px; height: 20px; flex: none; }
.as-pill:active { transform: scale(.98); }
.as-pill-gold { background: var(--a-gold); color: var(--a-on-gold); }
.as-pill-gold:hover { background: var(--a-gold-hi); color: var(--a-on-gold); }
.as-pill-navy { background: var(--navy); color: #fff; }
.as-pill-navy:hover { background: var(--navy-700); color: #fff; }
.as-pill-line { background: rgba(241,239,233,.1); color: var(--a-text); box-shadow: inset 0 0 0 1px var(--a-hair-2); }
.as-pill-line:hover { background: rgba(241,239,233,.18); color: #fff; }
.as-pill-sm { min-height: 34px; padding: 6px 16px; font-size: .88rem; }
.as-pill:focus-visible, .as-ghost:focus-visible, .as-chip:focus-visible, .as-local a:focus-visible, .as-faq summary:focus-visible {
  outline: 2px solid var(--a-gold-hi); outline-offset: 3px;
}
.as-ghost {
  display: inline-flex; align-items: center; gap: 6px; color: var(--a-gold-hi); font-weight: 600; text-decoration: none;
  min-height: 44px; padding-inline: 4px;
}
.as-ghost svg { width: 18px; height: 18px; transition: transform .35s var(--a-ease); }
.as-ghost:hover svg { transform: translateX(4px); }
.as-light .as-ghost { color: var(--gold-text); }

/* ---------- breadcrumb บนหน้านี้เป็นพื้นมืด ต่อเนื่องกับห้องจัดแสดง ---------- */
body.asg-page .breadcrumb { background: var(--a-stage); border-bottom: 1px solid var(--a-hair); }
body.asg-page .breadcrumb ol { color: var(--a-steel); }
body.asg-page .breadcrumb a { color: var(--a-mute); }
body.asg-page .breadcrumb a:hover { color: var(--a-gold-hi); }
body.asg-page .breadcrumb .sep { color: rgba(241,239,233,.28); }
body.asg-page .breadcrumb [aria-current] { color: var(--a-text); }

/* ---------- แถบนำทางเฉพาะหน้า (local nav) ---------- */
.as-local {
  position: sticky; top: calc(var(--header-h, 76px) + 1px); z-index: calc(var(--z-sticky, 100) - 1);
  background: rgba(7,14,28,.86); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--a-hair);
}
.as-local-in { display: flex; align-items: center; gap: 18px; min-height: var(--a-local-h); }
.as-local-t { color: var(--a-text); font-weight: 600; font-size: 1.06rem; text-decoration: none; white-space: nowrap; flex: none; }
.as-local-links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.as-local-links::-webkit-scrollbar { display: none; }
.as-local-links a {
  flex: none; color: var(--a-mute); text-decoration: none; font-size: .86rem; padding: 8px 11px; border-radius: 980px;
  white-space: nowrap; transition: color .2s, background-color .2s;
}
.as-local-links a:hover { color: var(--a-text); }
.as-local-links a.is-on { color: var(--a-text); background: var(--a-chip); }
.as-local .as-pill { flex: none; }
@media (max-width: 960px) {
  .as-local-in { flex-wrap: wrap; gap: 0 12px; padding-top: 6px; }
  .as-local-t { font-size: .98rem; }
  .as-local .as-pill { margin-left: auto; }
  .as-local-links { order: 3; flex-basis: 100%; margin: 2px -6px 4px; padding-bottom: 2px; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
}
/* มือถือ: หัวเว็บติดบนอยู่แล้ว (77px) จึงเหลือเฉพาะแถวชิปเลื่อนข้าง ปุ่ม LINE อยู่ที่แถบล่างของเว็บ */
@media (max-width: 760px) {
  .as-local-t, .as-local .as-pill { display: none; }
  .as-local-in { flex-wrap: nowrap; padding-top: 0; min-height: 46px; }
  .as-local-links { order: 0; flex-basis: auto; width: 100%; margin: 0 -6px; padding-bottom: 0; }
  body.asg-page { --a-local-h: 46px; }
}

/* ============ 1. HERO · เวทีภาพยนตร์ ============ */
.as-hero { position: relative; background: var(--a-stage); text-align: center; padding: 0 0 clamp(56px, 7vw, 96px); }
.as-stage {
  --p: 0;                                   /* ความคืบหน้าการเลื่อนผ่านจอแรก 0–1 (js) */
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(540px, min(56.25vw, calc(100svh - 190px)), 900px);
}
.as-stage-media { position: absolute; inset: 0; z-index: -2; transform: scale(calc(1 + var(--p) * .07)); transform-origin: 50% 70%; will-change: transform; }
.as-stage-media img, .as-stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.as-stage-video { opacity: 0; transition: opacity 1.2s var(--a-ease); }
.as-stage-video.is-on { opacity: 1; }
.as-stage::after { /* ภาพจางลงสู่พื้นเวทีด้านล่าง + เงาขอบบนให้หัวข้ออ่านชัด */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,7,15,.72) 0%, rgba(3,7,15,.18) 34%, rgba(3,7,15,0) 52%, rgba(3,7,15,0) 74%, var(--a-stage) 100%),
    radial-gradient(120% 80% at 50% 40%, transparent 55%, rgba(3,7,15,.55) 100%);
}
.as-stage-copy { position: absolute; left: 0; right: 0; top: 0; padding-top: clamp(28px, 6vh, 72px); opacity: calc(1 - var(--p) * 1.4); transform: translateY(calc(var(--p) * -40px)); }
.as-lock { margin: 0 0 16px; color: var(--a-gold-hi); font-weight: 600; font-size: .98rem; letter-spacing: .01em; text-shadow: 0 1px 14px rgba(0,0,0,.8); }
.as-hero h1 { margin: 0 auto; max-width: 15ch; font-size: clamp(2.05rem, 1.05rem + 4.3vw, 5.4rem); line-height: 1.14; color: #fff; text-shadow: 0 2px 34px rgba(3,7,15,.85), 0 1px 3px rgba(3,7,15,.6); }
.as-hero h1 .as-h1-sub {
  display: block; margin-top: .42em; font-size: .4em; line-height: 1.35; font-weight: 600; color: rgba(241,239,233,.88); letter-spacing: 0;
}
.as-stage-cap { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0 auto; text-align: right; color: rgba(185,192,204,.62); font-size: .74rem; line-height: 1.4; }
.as-hero .as-lead { margin: clamp(8px, 2vw, 20px) auto 0; max-width: 60ch; color: var(--a-mute); font-size: clamp(1rem, .94rem + .3vw, 1.16rem); line-height: 1.8; }

/* ปุ่มใต้ฉาก (แบบ Hero Purchase Stack) */
.as-buy { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.as-buy-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; }
.as-buy-note { margin: 4px 0 0; color: var(--a-steel); font-size: .9rem; }
.as-trust {
  list-style: none; margin: clamp(40px, 5vw, 56px) auto 0; padding: 0; max-width: 980px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--a-hair); border-radius: var(--a-r-sm); overflow: hidden;
}
.as-trust li { background: var(--a-stage); padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; text-align: left; color: var(--a-mute); font-size: .93rem; line-height: 1.6; }
.as-trust svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--a-gold-hi); }
.as-trust b { color: var(--a-text); font-weight: 600; display: block; }
@media (max-width: 760px) {
  .as-stage { height: auto; display: flex; flex-direction: column; overflow: visible; }
  .as-stage-copy { position: relative; order: 1; padding: 36px 0 22px; opacity: 1; transform: none; }
  .as-stage-media { position: relative; order: 2; aspect-ratio: 800 / 474; transform: none; z-index: 0; }
  .as-stage-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,7,15,.35) 0%, transparent 22%, transparent 70%, var(--a-stage) 100%); }
  .as-stage-media img, .as-stage-video { object-position: 50% 50%; }
  .as-stage::after { display: none; }
  .as-stage-cap { position: relative; order: 3; bottom: auto; margin-top: 10px; text-align: center; padding-inline: 16px; font-size: .72rem; }
  .as-hero h1 { text-shadow: none; color: var(--a-text); }
  .as-trust { grid-template-columns: 1fr; }
}

/* ============ แถบภาพยนตร์ (กล่องมุม 28px ข้อความวางบนส่วนมืดของภาพ) ============ */
.as-cine {
  position: relative; isolation: isolate; margin: 0 0 clamp(44px, 5vw, 72px); border-radius: var(--a-r); overflow: hidden; background: #000;
  min-height: clamp(400px, 44vw, 600px); display: flex; align-items: center;
  clip-path: inset(0 round var(--a-r));
  transition: clip-path 1.5s var(--a-ease);
}
.as-cine-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.as-cine-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.8s var(--a-ease); }
.as-cine-l .as-cine-media img { object-position: 72% 50%; }
.as-cine-r .as-cine-media img { object-position: 22% 50%; }
.as-cine::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.as-cine-l::after { background: linear-gradient(90deg, rgba(3,7,15,.88) 0%, rgba(3,7,15,.62) 30%, rgba(3,7,15,0) 60%); }
.as-cine-r::after { background: linear-gradient(270deg, rgba(3,7,15,.88) 0%, rgba(3,7,15,.62) 30%, rgba(3,7,15,0) 60%); }
.as-cine-copy { position: relative; width: min(100%, 560px); padding: clamp(28px, 5vw, 64px); text-align: left; }
.as-cine-r .as-cine-copy { margin-left: auto; }
.as-cine-copy { width: min(100%, 600px); }
.as-cine-copy .as-h2 { color: #fff; text-shadow: 0 2px 24px rgba(3,7,15,.7); font-size: clamp(1.7rem, 1rem + 2vw, 2.6rem); line-height: 1.25; max-width: none; }
.as-cine-copy .as-sub { color: rgba(241,239,233,.82); }
/* เข้าฉาก: กรอบภาพขยายจากขอบใน + ภาพค่อยถอยจากซูม (เฉพาะกล่องที่อยู่ใต้จอตอนโหลด · ค่าตั้งต้นคือแสดงเต็ม) */
.as-cine.is-pending { clip-path: inset(7% 5% round 40px); }
.as-cine.is-pending .as-cine-media img { transform: scale(1.14); }
.as-cine.is-in .as-cine-media img { animation: as-drift 16s ease-in-out 1.6s infinite alternate; }
@keyframes as-drift { from { transform: scale(1.001); } to { transform: scale(1.045) translateX(-0.6%); } }
@media (max-width: 760px) {
  .as-cine { display: block; min-height: 0; background: var(--a-tile); }
  .as-cine-media { position: relative; z-index: 0; }
  .as-cine-media img { height: auto; display: block; }
  .as-cine::after { display: none; }
  .as-cine-copy { width: auto; padding: 22px 22px 26px; }
  .as-cine-copy .as-h2 { text-shadow: none; }
}

/* ============ ส่วนทั่วไปบนพื้นมืด ============ */
.as-dark { background: var(--a-canvas); color: var(--a-text); }
.as-sec { padding-block: clamp(80px, 10vw, 144px); }
.as-sec + .as-sec.as-dark, .as-dark + .as-dark { border-top: 1px solid var(--a-hair); }
.as-h2 { margin: 0; font-size: clamp(1.75rem, 1.05rem + 2.9vw, 3.4rem); line-height: 1.2; max-width: 24ch; }
.as-sub { margin: 18px 0 0; max-width: 62ch; color: var(--a-mute); font-size: 1.06rem; line-height: 1.8; }
.as-light .as-sub { color: var(--a-ink-2); }

/* ============ 2. คำตอบสั้น (AEO) ============ */
.as-ans { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.as-metric { margin: 0; }
.as-metric small { display: block; color: rgba(241,239,233,.75); font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.as-metric strong { display: block; font-size: clamp(3.6rem, 1.6rem + 6vw, 6rem); line-height: 1.02; font-weight: 700; color: var(--a-gold-hi); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 0 42px rgba(231,203,128,.28), 0 2px 18px rgba(3,7,15,.7); }
.as-metric span { display: block; margin-top: 14px; color: rgba(241,239,233,.85); font-size: 1.02rem; line-height: 1.6; max-width: 26ch; }
.as-ans-a { margin: 22px 0 0; font-size: clamp(1.08rem, .98rem + .45vw, 1.3rem); line-height: 1.85; color: var(--a-text); max-width: 60ch; }
.as-steps2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.as-steps2 li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: var(--a-tile); border-radius: var(--a-r-sm); padding: 20px 22px; }
.as-steps2 .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--a-chip); color: var(--a-gold-hi); font-weight: 700; font-size: 1.1rem; }
.as-steps2 b { display: block; color: var(--a-text); font-size: 1.08rem; margin-bottom: 4px; }
.as-steps2 p { margin: 0; color: var(--a-mute); line-height: 1.7; }
.as-ref { margin: 18px 0 0; color: var(--a-steel); font-size: .88rem; }
@media (max-width: 900px) { .as-ans { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .as-metric small, .as-metric span { color: var(--a-mute); } .as-metric strong { text-shadow: none; } }

/* ============ 3. ทำเองกับจ้างทนาย (ตารางเทียบ) ============ */
.as-cmp-tile { margin-top: clamp(36px, 5vw, 56px); background: var(--a-tile); border-radius: var(--a-r); overflow: hidden; }
.as-cmp { width: 100%; border-collapse: collapse; table-layout: fixed; }
.as-cmp col.c1 { width: 24%; } .as-cmp col.c2, .as-cmp col.c3 { width: 38%; }
.as-cmp th, .as-cmp td { padding: 22px 26px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--a-hair); line-height: 1.7; }
.as-cmp tbody tr:last-child th, .as-cmp tbody tr:last-child td { border-bottom: 0; }
.as-cmp thead th { font-size: .95rem; font-weight: 600; color: var(--a-steel); background: rgba(255,255,255,.02); }
.as-cmp thead th.c3 { color: var(--a-gold-hi); }
.as-cmp tbody th { color: var(--a-text); font-weight: 600; font-size: 1.02rem; }
.as-cmp tbody th small { display: block; margin-top: 4px; color: var(--a-steel); font-weight: 500; font-size: .84rem; }
.as-cmp td { color: var(--a-mute); font-size: .98rem; }
.as-cmp td.c3 { color: var(--a-text); background: rgba(200,162,74,.05); }
.as-cmp .mk { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; margin-right: 8px; vertical-align: -5px; }
.as-cmp .mk svg { width: 13px; height: 13px; }
.as-cmp .mk-x { background: rgba(241,239,233,.1); color: var(--a-mute); }
.as-cmp .mk-ok { background: var(--a-gold); color: var(--a-on-gold); }
@media (max-width: 820px) {
  .as-cmp, .as-cmp tbody, .as-cmp tr, .as-cmp th, .as-cmp td { display: block; width: auto; }
  .as-cmp thead, .as-cmp colgroup { display: none; }
  .as-cmp tr { padding: 22px 20px; border-bottom: 1px solid var(--a-hair); }
  .as-cmp tbody tr:last-child { border-bottom: 0; }
  .as-cmp th, .as-cmp td { padding: 0; border: 0; }
  .as-cmp td { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.03); }
  .as-cmp td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: var(--a-steel); margin-bottom: 4px; }
  .as-cmp td.c3::before { color: var(--a-gold-hi); }
}

/* ============ 4. เคสที่รับ (ชิปเลือก + กล่องใหญ่) ============ */
.as-cases { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: minmax(240px, 330px) 1fr; gap: 20px; align-items: start; }
.as-chips { display: grid; gap: 10px; position: sticky; top: calc(var(--header-h, 76px) + var(--a-local-h) + 24px); }
.as-chip {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  border: 0; border-radius: 36px; padding: 14px 20px 14px 14px; min-height: 56px;
  background: var(--a-chip); color: rgba(241,239,233,.82); font: 600 .98rem/1.4 var(--sans-th);
  transition: background-color .25s, color .25s;
}
.as-chip .pl { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(241,239,233,.12); transition: transform .45s var(--a-ease), background-color .25s; }
.as-chip .pl svg { width: 14px; height: 14px; }
.as-chip:hover { background: var(--a-chip-on); color: #fff; }
.as-chip[aria-selected="true"] { background: var(--a-text); color: var(--a-ink); }
.as-chip[aria-selected="true"] .pl { background: var(--navy); color: var(--a-gold-hi); transform: rotate(45deg); }
.as-panels { display: grid; }
.as-panel { grid-area: 1 / 1; background: var(--a-tile); border-radius: var(--a-r); padding: clamp(26px, 4vw, 48px); }
.js-asg .as-panel[aria-hidden="true"] { visibility: hidden; opacity: 0; pointer-events: none; }
.js-asg .as-panel { transition: opacity .5s var(--a-ease), visibility .5s; }
.as-panel h3 { margin: 0; font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2.15rem); line-height: 1.25; color: var(--a-text); }
.as-panel .who { margin: 14px 0 0; color: var(--a-mute); line-height: 1.75; max-width: 60ch; }
.as-panel h4 { margin: 28px 0 12px; font: 600 .9rem/1.3 var(--sans-th); color: var(--a-steel); }
.as-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.as-ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--a-text); line-height: 1.7; }
.as-ticks svg { width: 18px; height: 18px; margin-top: 4px; color: var(--a-gold-hi); }
.as-laws { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.as-laws span { padding: 6px 14px; border-radius: 980px; background: rgba(231,203,128,.1); color: var(--a-gold-hi); font-size: .86rem; font-weight: 600; }
.as-panel .note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--a-hair); color: var(--a-steel); font-size: .9rem; line-height: 1.7; }
@media (max-width: 900px) {
  .as-cases { grid-template-columns: 1fr; }
  .as-chips { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .as-chips { grid-template-columns: 1fr; } }
/* ไม่มี JS: แสดงทุกกล่องต่อกัน ชิปเป็นลิงก์ข้ามไปกล่องนั้น */
html:not(.js-asg) .as-panels { gap: 16px; }
html:not(.js-asg) .as-panel { grid-area: auto; }

/* ============ 5. ม.308 บอกกล่าวหรือยินยอม (เครื่องสาธิต) ============ */
.as-m308 { background: var(--a-stage); }
.as-toggle { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 980px; background: var(--a-tile); margin-top: 34px; }
.as-toggle button {
  border: 0; cursor: pointer; border-radius: 980px; padding: 10px 20px; min-height: 44px;
  background: transparent; color: var(--a-mute); font: 600 .95rem/1.3 var(--sans-th); transition: background-color .3s, color .3s;
}
.as-toggle button[aria-pressed="true"] { background: var(--a-text); color: var(--a-ink); }
@media (max-width: 560px) {
  .as-toggle { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 24px; }
  .as-toggle button { border-radius: 18px; padding: 10px 12px; font-size: .9rem; line-height: 1.35; }
}
.as-rail-tile { margin-top: 20px; background: var(--a-tile); border-radius: var(--a-r); padding: clamp(26px, 4vw, 44px); }
.as-rail { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(12px, 3vw, 28px); }
.as-node { text-align: center; }
.as-node .disc { width: clamp(64px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--a-tile-2); box-shadow: inset 0 0 0 1px var(--a-hair-2); }
.as-node .disc svg { width: 44%; height: 44%; color: var(--a-text); }
.as-node b { display: block; margin-top: 10px; font-size: .95rem; color: var(--a-text); }
.as-node small { display: block; color: var(--a-steel); font-size: .8rem; }
.as-track { position: relative; min-height: 150px; display: flex; align-items: center; justify-content: flex-end; }
.as-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--a-hair-2); }
.as-defs { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-block: 10px; }
.as-def {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 980px;
  background: var(--a-tile-2); box-shadow: inset 0 0 0 1px var(--a-hair-2);
  color: var(--a-text); font-size: .84rem; line-height: 1.35; white-space: nowrap;
  transition: transform 1.1s var(--a-ease), color .4s, box-shadow .4s;
}
.as-def:nth-child(2) { transition-delay: .07s; } .as-def:nth-child(3) { transition-delay: .14s; }
.as-def i { width: 8px; height: 8px; border-radius: 50%; background: var(--a-gold-hi); flex: none; transition: background-color .4s; }
.as-wall {
  position: absolute; top: 4px; bottom: 4px; right: calc(var(--wall, 220px)); width: 3px; border-radius: 3px; background: var(--a-gold-hi);
  transform: scaleY(0); transition: transform .6s var(--a-ease);
}
.as-wall span { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); white-space: nowrap; font-size: .8rem; font-weight: 600; color: var(--a-gold-hi); opacity: 0; transition: opacity .4s .2s; }
/* บอกกล่าว: ข้อต่อสู้เดินทางไปถึงผู้รับโอน */
.as-rail[data-mode="notice"] .as-def { transform: translateX(calc(-1 * var(--tx, 0px))); }
/* ยินยอมโดยไม่อิดเอื้อน: หยุดที่กำแพง */
.as-rail[data-mode="consent"] .as-wall { transform: scaleY(1); }
.as-rail[data-mode="consent"] .as-wall span { opacity: 1; }
.as-rail[data-mode="consent"] .as-def { color: var(--a-steel); box-shadow: inset 0 0 0 1px var(--a-hair); text-decoration: line-through; text-decoration-color: rgba(231,203,128,.75); }
.as-rail[data-mode="consent"] .as-def i { background: var(--a-steel); }
.as-mode-text { display: grid; margin-top: 26px; }
.as-mode-text > div { grid-area: 1 / 1; }
.js-asg .as-mode-text > div[aria-hidden="true"] { opacity: 0; visibility: hidden; }
.js-asg .as-mode-text > div { transition: opacity .45s var(--a-ease), visibility .45s; }
html:not(.js-asg) .as-mode-text { gap: 18px; }
html:not(.js-asg) .as-mode-text > div { grid-area: auto; }
html:not(.js-asg) .as-toggle { display: none; }
.as-mode-text h3 { margin: 0; font-size: 1.2rem; color: var(--a-text); }
.as-mode-text p { margin: 8px 0 0; color: var(--a-mute); line-height: 1.8; max-width: 70ch; }
.as-mode-text .ref { color: var(--a-steel); font-size: .86rem; }
@media (max-width: 680px) {
  .as-rail { grid-template-columns: 1fr; gap: 14px; }
  .as-node { display: flex; align-items: center; gap: 14px; text-align: left; }
  .as-node .disc { margin: 0; width: 56px; }
  .as-node b { margin-top: 0; }
  .as-node-d { order: 1; } .as-track { order: 2; } .as-node-a { order: 3; }
  .as-track { min-height: 0; height: var(--th, 250px); align-items: flex-start; justify-content: flex-start; padding-left: 27px; }
  .as-track::before { left: 27px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .as-defs { align-items: flex-start; padding-left: 18px; }
  .as-def { white-space: normal; }
  .as-rail[data-mode="notice"] .as-def { transform: translateY(var(--ty, 0px)); }
  .as-wall { top: var(--wall-y, 150px); bottom: auto; left: 0; right: 0; width: auto; height: 3px; transform: scaleX(0); }
  .as-rail[data-mode="consent"] .as-wall { transform: scaleX(1); }
  .as-wall span { top: 10px; right: auto; left: 45px; transform: none; }
}

/* ============ ช่วงพื้นสว่าง (แพ็กเกจ ขั้นตอน ทนาย คำถาม) ============ */
.as-light { background: var(--a-polar); color: var(--a-ink); }
.as-light .as-h2 { color: var(--a-ink); }
.as-light + .as-light { padding-top: 0; }

/* 6. แพ็กเกจ */
.as-pk-grid { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.as-pk { position: relative; display: flex; flex-direction: column; background: var(--a-white); border-radius: var(--a-r); padding: clamp(26px, 3vw, 36px); }
.as-pk h3 { margin: 0; font-size: 1.36rem; line-height: 1.3; color: var(--a-ink); }
.as-pk .fit { margin: 10px 0 0; color: var(--a-ink-2); font-size: .95rem; line-height: 1.7; }
.as-pk ul { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--a-line-l); display: grid; gap: 11px; }
.as-pk li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; line-height: 1.65; color: var(--a-ink); font-size: .97rem; }
.as-pk li svg { width: 17px; height: 17px; margin-top: 4px; color: var(--gold-text); }
.as-pk .fee { margin: auto 0 0; padding-top: 24px; color: var(--a-ink-2); font-size: .9rem; line-height: 1.6; }
.as-pk .as-pill { margin-top: 16px; align-self: flex-start; }
.as-pk-badge { position: absolute; top: 22px; right: 22px; padding: 4px 12px; border-radius: 6px; font-size: .8rem; font-weight: 700; }
.as-pk-rec { background: var(--a-tile); color: var(--a-text); }
.as-pk-rec h3, .as-pk-rec li { color: var(--a-text); }
.as-pk-rec .fit, .as-pk-rec .fee { color: var(--a-mute); }
.as-pk-rec ul { border-color: var(--a-hair); }
.as-pk-rec li svg { color: var(--a-gold-hi); }
.as-pk-rec .as-pk-badge { background: var(--a-gold); color: var(--a-on-gold); }
.as-pk-n { display: block; color: var(--a-ink-2); font-size: .84rem; font-weight: 600; margin-bottom: 8px; }
.as-pk-rec .as-pk-n { color: var(--a-steel); }
.as-pk-foot { margin: 22px 0 0; color: var(--a-ink-2); font-size: .92rem; line-height: 1.7; max-width: 80ch; }
@media (max-width: 960px) { .as-pk-grid { grid-template-columns: 1fr; } .as-pk { padding-top: 30px; } }

/* 7. ขั้นตอน */
.as-proc { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.as-proc li { position: relative; background: var(--a-white); border-radius: var(--a-r); padding: 28px 24px 26px; }
.as-proc .st { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--a-gold-hi); font-weight: 700; font-size: 1.05rem; }
.as-proc li:not(:last-child)::after { content: ""; position: absolute; top: 49px; right: -16px; width: 16px; height: 1px; background: rgba(20,36,63,.3); }
.as-proc h3 { margin: 18px 0 8px; font-size: 1.12rem; line-height: 1.4; color: var(--a-ink); }
.as-proc p { margin: 0; color: var(--a-ink-2); font-size: .95rem; line-height: 1.75; }
@media (max-width: 960px) {
  .as-proc { grid-template-columns: 1fr 1fr; }
  .as-proc li:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .as-proc { grid-template-columns: 1fr; }
  .as-proc li::after { display: none; }
}

/* 8. ทนายผู้รับผิดชอบ + ความโปร่งใสของหน้า */
.as-eeat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 56px); align-items: start; }
.as-lw { display: grid; grid-template-columns: 132px 1fr; gap: 24px; align-items: start; background: var(--a-white); border-radius: var(--a-r); padding: clamp(24px, 3vw, 34px); }
.as-lw img { width: 132px; height: 160px; object-fit: cover; object-position: 50% 18%; border-radius: 18px; background: #E5E8EE; }
.as-lw .role { margin: 0; color: var(--gold-text); font-size: .86rem; font-weight: 600; }
.as-lw h3 { margin: 4px 0 0; font-size: 1.4rem; color: var(--a-ink); }
.as-lw p { margin: 10px 0 0; color: var(--a-ink-2); line-height: 1.75; font-size: .96rem; }
.as-lw dl { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; }
.as-lw dt { color: var(--a-ink-2); }
.as-lw dd { margin: 0; color: var(--a-ink); font-weight: 600; }
.as-lw .as-ghost { margin-top: 8px; }
.as-transp { background: var(--a-white); border-radius: var(--a-r); padding: clamp(24px, 3vw, 34px); }
.as-transp h3 { margin: 0; font-size: 1.12rem; color: var(--a-ink); }
.as-transp ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.as-transp li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--a-ink-2); line-height: 1.7; font-size: .95rem; }
.as-transp li svg { width: 17px; height: 17px; margin-top: 4px; color: var(--gold-text); }
.as-transp .upd { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--a-line-l); color: var(--a-ink-2); font-size: .9rem; }
@media (max-width: 900px) { .as-eeat { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .as-lw { grid-template-columns: 1fr; } .as-lw img { width: 112px; height: 136px; } }

/* 9. คำถามที่พบบ่อย (แถวพับแบบเม็ดยา) */
.as-faq { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 10px; max-width: 980px; }
.as-faq details { background: var(--a-white); border-radius: 22px; }
.as-faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 32px; gap: 16px; align-items: center;
  padding: 20px 24px; min-height: 64px; font-weight: 600; font-size: 1.04rem; line-height: 1.55; color: var(--a-ink); border-radius: 22px;
}
.as-faq summary::-webkit-details-marker { display: none; }
.as-faq summary .pl { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--a-polar); color: var(--navy); transition: transform .45s var(--a-ease), background-color .25s; }
.as-faq summary .pl svg { width: 15px; height: 15px; }
.as-faq details[open] summary .pl { transform: rotate(45deg); background: var(--navy); color: var(--a-gold-hi); }
.as-faq .a { padding: 0 24px 22px; color: var(--a-ink-2); line-height: 1.85; max-width: 78ch; }
.as-faq .a p { margin: 0; }
.as-faq .a .ref { margin-top: 10px; font-size: .86rem; color: var(--a-ink-2); }
.as-faq .a .ref b { color: var(--a-ink); }

/* ============ 10. ปิดท้าย + ฟอร์ม ============ */
.as-close { position: relative; isolation: isolate; background: var(--a-stage); overflow: hidden; }
/* ฉากปิด: ภาพโต๊ะหินอ่อนจากจอแรกกลับมาจาง ๆ ใต้ฟอร์ม เหมือนเครดิตท้ายเรื่อง */
.as-close::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: min(78%, 760px); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--a-stage) 0%, rgba(3,7,15,.78) 38%, rgba(3,7,15,.55) 100%), url("/assets/asg-hero-960.webp") 50% 85% / cover no-repeat;
}
@media (min-width: 961px) { .as-close::before { background-image: linear-gradient(180deg, var(--a-stage) 0%, rgba(3,7,15,.78) 38%, rgba(3,7,15,.5) 100%), url("/assets/asg-hero-1600.webp"); } }
.as-close-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.as-prep { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: pr; }
.as-prep li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--a-r-sm); background: var(--a-tile); color: var(--a-text); line-height: 1.65; }
.as-prep li::before { counter-increment: pr; content: counter(pr); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--a-chip); color: var(--a-gold-hi); font-weight: 700; }
.as-prep small { display: block; color: var(--a-steel); font-size: .86rem; margin-top: 2px; }
.as-close-acts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.as-close-acts .as-pill-line svg { color: var(--a-gold-hi); }
.as-form-tile { background: var(--a-white); color: var(--a-ink); border-radius: var(--a-r); padding: clamp(24px, 3.4vw, 40px); }
.as-form-tile h3 { margin: 0; font-size: 1.36rem; color: var(--a-ink); }
.as-form-tile .sub { margin: 8px 0 20px; color: var(--a-ink-2); font-size: .95rem; line-height: 1.7; }
.as-form-tile .btn.btn-primary { border-radius: 980px; width: 100%; justify-content: center; }
.as-form-tile .form-success h3 { color: var(--a-ink); }
.as-xsvc { margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--a-hair); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.as-xsvc > span { color: var(--a-steel); font-size: .9rem; margin-right: 6px; }
.as-xsvc a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 980px; background: var(--a-chip); color: var(--a-text); text-decoration: none; font-size: .9rem; transition: background-color .25s; }
.as-xsvc a:hover { background: var(--a-chip-on); }
@media (max-width: 900px) { .as-close-grid { grid-template-columns: 1fr; } }

/* บทความที่เกี่ยวข้อง (ใช้ .related-card ของเว็บ) */
.as-related { background: var(--a-polar); color: var(--a-ink); }
.as-related .related-card { border-radius: 22px; border-color: transparent; }
.as-related .related-card:hover { box-shadow: none; border-color: var(--line-gold); }
@media (max-width: 900px) { .as-related .related-grid { grid-template-columns: 1fr; } }

/* ปุ่มลอย LINE และแถบมือถือของเว็บ ใช้ตามเดิม · เว้นที่ท้ายหน้าให้แถบมือถือ */
@media (max-width: 760px) { body.asg-page .footer { padding-bottom: 84px; } }

/* ---------- เคารพผู้ที่ปิดการเคลื่อนไหว ---------- */
@media (prefers-reduced-motion: reduce) {
  .as-cine, .as-cine.is-pending { clip-path: none; }
  .as-cine-media img, .as-cine.is-pending .as-cine-media img { transform: none; animation: none !important; }
  .as-stage-media, .as-stage-copy { transform: none !important; opacity: 1 !important; }
  .as-def, .as-wall, .as-panel, .as-mode-text > div, .as-chip .pl, .as-faq summary .pl { transition: none !important; }
}
