/* ============================================================
   หน้า /services-ai-vendor-contract · ตรวจสัญญาผู้ให้บริการ AI และกฎหมายโอนข้อมูลข้ามประเทศ (13 พ.ย. 2026)
   ธีม "วารสารยามค่ำ" จากแบบอ้างอิงที่เจ้าของส่ง (styles.refero.design · General Intelligence Company)
   แปลงเป็นของเว็บเรา: พื้นกระดาษงาช้าง · ภาพวาดกรมท่า-ทองทำหน้าที่สร้างอารมณ์ · หัวข้อ Trirong น้ำหนักเบา ตัวชิด
   · การ์ดขาวเส้นบาง ไม่มีเงาหนัก · ปุ่มหลักกรมท่าทึบ ปุ่มรองกรอบทอง · กล่องกรมท่าเข้มจุดเดียวต่อหน้า (ข้อความใหญ่)
   ใช้คู่กับ css/svc-notice.css (โครง dn-*) · ทุกกฎจำกัดใต้ body.aiv-page หรือคลาส aiv-* จึงไม่กระทบหน้าอื่น
   ============================================================ */
body.aiv-page {
  --p-canvas: #FBF9F4;            /* กระดาษงาช้าง พื้นทั้งหน้า */
  --p-paper:  #FFFFFF;            /* การ์ด */
  --p-linen:  #F4F1E9;            /* พื้นช่องกรอก / แถบรอง */
  --p-line:   #E5DFD1;            /* เส้นบาง */
  --p-night:  #0F1B31;            /* กรมท่าเข้มจากภาพวาด */
  --p-night-2:#16274A;
  --p-gold-ink: #7A5A12;          /* ทองสำหรับตัวอักษรบนพื้นสว่าง (≥4.5:1) */
  background: var(--p-canvas);
}
body.aiv-page .breadcrumb { background: var(--p-canvas); border-bottom-color: var(--p-line); }
.aiv-page .section { padding-block: clamp(64px, 8vw, 120px); }

/* หัวข้อแบบวารสาร: Trirong น้ำหนักเบา ตัวชิดเล็กน้อย */
.aiv-page h2, .aiv-page h3 { text-wrap: balance; }
.aiv-sec-head { max-width: 66ch; margin-bottom: clamp(30px, 4vw, 52px); }
.aiv-sec-head.center { margin-inline: auto; text-align: center; }
.aiv-sec-head h2 { font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.75rem); font-weight: 400; letter-spacing: -0.012em; line-height: 1.22; margin-top: 10px; }
.aiv-sec-head p:not(.aiv-k) { color: var(--slate); font-size: var(--fs-lead); margin-top: 16px; line-height: 1.8; text-wrap: pretty; }
.aiv-k { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--p-gold-ink); letter-spacing: .01em; }
.aiv-k::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.aiv-sec-head.center .aiv-k::before { display: none; }
.aiv-hl { color: var(--gold-bright); }
.aiv-note { font-size: var(--fs-sm); color: var(--slate); }

/* ปุ่มของหน้านี้ (มุม 8px · ปุ่มทึบมีกรมท่าแบบเดียว ปุ่มรองเป็นกรอบ) */
.aiv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: var(--r-md); font-weight: 600; font-size: 1rem; line-height: 1.3; text-align: center; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.aiv-btn svg { width: 20px; height: 20px; flex: none; }
.aiv-btn:hover { transform: translateY(-1px); }
.aiv-btn--paper { background: var(--p-canvas); color: var(--navy); border: 1px solid var(--p-canvas); }
.aiv-btn--paper svg { color: #06C755; }
.aiv-btn--paper:hover { background: #fff; }
.aiv-btn--gold { border: 1px solid rgba(231,203,128,.75); color: var(--gold-bright); background: transparent; }
.aiv-btn--gold:hover { background: rgba(231,203,128,.12); border-color: var(--gold-bright); }
.aiv-page .btn-primary { background: var(--navy); color: var(--on-navy); box-shadow: none; border-radius: var(--r-md); }
.aiv-page .btn-primary:hover { background: var(--navy-700); box-shadow: 0 10px 24px -14px rgba(20,36,63,.7); }
.aiv-page .dn-result .btn-primary { background: var(--p-canvas); color: var(--navy); }
.aiv-page .dn-result .btn-primary svg { color: #06C755; }
.aiv-page .dn-result .btn-primary:hover { background: #fff; }

/* ============================================================
   S1 · HERO
   ============================================================ */
.aiv-hero { padding-top: clamp(14px, 2vw, 24px); }
/* ภาพวาดเต็มกรอบ ข้อความวางบนฟ้าตรง ๆ (ไม่มีกล่อง) ให้เมืองและเส้นทองด้านล่างเห็นครบ */
.aiv-hero-panel { position: relative; border-radius: 24px; overflow: hidden; background: var(--p-night); height: clamp(540px, 50vw, 700px); isolation: isolate; }
.aiv-hero-art { position: absolute; inset: 0; z-index: -1; }
.aiv-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.aiv-hero-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(85% 70% at 0% 0%, rgba(9,17,33,.55) 0%, rgba(9,17,33,.2) 55%, transparent 80%); pointer-events: none; }
.aiv-hero-card { padding: clamp(30px, 4.4vw, 60px) clamp(26px, 4.4vw, 64px) 0; max-width: 920px; color: var(--on-navy); }
.aiv-kicker { font-size: var(--fs-sm); font-weight: 500; color: var(--gold-bright); letter-spacing: .01em; }
.aiv-hero h1 { margin-top: 14px; color: #fff; font-weight: 400; font-size: clamp(2rem, 1.1rem + 3vw, 3.5rem); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; text-shadow: 0 2px 22px rgba(5,10,22,.45); }
.aiv-hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.aiv-lead { margin-top: clamp(22px, 3vw, 34px); max-width: 66ch; color: var(--ink); font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.85; text-wrap: pretty; }

.aiv-hero-facts { display: grid; grid-template-columns: 1fr 1fr 1.25fr; margin-top: clamp(20px, 2.6vw, 30px); border-block: 1px solid var(--p-line); }
.aiv-fact { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px; border-left: 1px solid var(--p-line); color: inherit; transition: background .25s; }
.aiv-fact:first-child { border-left: 0; padding-left: 4px; }
a.aiv-fact:hover { background: var(--p-linen); }
.aiv-fact-big { font-family: var(--serif-th); font-size: 1.45rem; font-weight: 400; color: var(--navy); letter-spacing: -0.01em; }
.aiv-fact-t { font-size: var(--fs-sm); color: var(--slate); line-height: 1.6; }
.aiv-chip { flex-direction: row; align-items: center; gap: 16px; }
.aiv-chip img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; box-shadow: 0 0 0 1px var(--line-gold); }
.aiv-chip > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aiv-chip-k { font-size: var(--fs-xs); color: var(--p-gold-ink); font-weight: 600; }
.aiv-chip strong { font-family: var(--serif-th); font-weight: 600; color: var(--navy); font-size: 1.1rem; }
.aiv-chip-sub { font-size: var(--fs-xs); color: var(--slate); line-height: 1.5; }

/* ============================================================
   ฟอร์มด่วน
   ============================================================ */
.aiv-quick-sec { padding-block: clamp(36px, 5vw, 64px) 0; }
.aiv-quick-grid { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.aiv-quick-copy h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: 400; }
.aiv-quick-copy p { margin-top: 8px; color: var(--slate); line-height: 1.7; }
.aiv-form { box-shadow: none; border-color: var(--p-line); border-radius: 16px; padding: clamp(18px, 2.2vw, 26px); }
.aiv-form::before { display: none; }
.aiv-quick-row { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 12px; }
.aiv-quick-row .field { margin: 0; }
.aiv-quick-foot { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.aiv-quick-foot .consent { flex: 1; margin: 0; }
.aiv-page .form-card .aiv-quick-foot .btn-primary { width: auto; flex: none; }

/* ============================================================
   S2 · คำตอบสั้น + นิยาม
   ============================================================ */
.aiv-answer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.aiv-answer h2 { margin-top: 10px; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem); font-weight: 400; letter-spacing: -0.012em; line-height: 1.24; }
.aiv-answer-p { margin-top: 18px; font-size: 1.12rem; line-height: 1.9; color: var(--ink); text-wrap: pretty; }
.aiv-answer .dn-ref { margin-top: 12px; }
.aiv-facts { margin-top: 26px; display: grid; gap: 0; border-top: 1px solid var(--p-line); }
.aiv-facts li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--p-line); line-height: 1.7; color: var(--ink); }
.aiv-facts .dn-law { white-space: normal; }
.aiv-define { background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 16px; padding: clamp(22px, 2.6vw, 32px); position: sticky; top: calc(var(--header-h, 76px) + 20px); }
.aiv-define-h { margin-top: 10px; font-size: 1.45rem; font-weight: 500; line-height: 1.35; }
.aiv-define p { margin-top: 12px; line-height: 1.8; color: var(--ink); }
.aiv-define .aiv-note { color: var(--slate); padding-top: 12px; border-top: 1px dashed var(--p-line); }
.aiv-where { margin: 16px 0 0; }
.aiv-where dt { font-size: var(--fs-xs); font-weight: 600; color: var(--p-gold-ink); }
.aiv-where dd { margin: 4px 0 0; font-size: var(--fs-sm); line-height: 1.7; color: var(--ink); }
.aiv-define .dn-ref { margin-top: 16px; }
.aiv-page .dn-ref a, .aiv-q-text a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.aiv-page .dn-ref a:hover, .aiv-q-text a:hover { color: var(--p-gold-ink); }

/* ============================================================
   ข้อความใหญ่ · กล่องกรมท่าเข้มจุดเดียวของหน้า
   ============================================================ */
.aiv-statement-sec { padding-block: 0 clamp(8px, 2vw, 16px); }
/* ภาพวาดโต๊ะทนาย: ฝั่งซ้ายของภาพเป็นผนังกรมท่ามืด วางข้อความ · ฝั่งขวาเป็นโต๊ะ โคม และหน้าต่าง */
.aiv-statement { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; min-height: clamp(460px, 44vw, 600px); display: flex; align-items: center; background: var(--p-night); color: var(--on-navy); }
.aiv-statement-art { position: absolute; inset: 0; z-index: -1; }
.aiv-statement-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 72%; }
.aiv-statement::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,18,34,.72) 0%, rgba(10,18,34,.45) 38%, transparent 62%); pointer-events: none; }
.aiv-statement-copy { position: relative; padding: clamp(36px, 5vw, 72px) clamp(26px, 5.4vw, 80px); max-width: 640px; }
.aiv-statement-t { position: relative; margin-top: 18px; max-width: 24ch; font-family: var(--serif-th); font-weight: 400; font-size: clamp(1.5rem, 1rem + 1.9vw, 2.35rem); line-height: 1.45; letter-spacing: -0.01em; color: #fff; text-wrap: pretty; }
.aiv-link-light { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--gold-bright); font-weight: 600; }
.aiv-link-light svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.aiv-link-light:hover svg { transform: translateX(4px); }

/* ============================================================
   S3 · สองคำถาม
   ============================================================ */
.aiv-q { background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 18px; padding: clamp(24px, 3.2vw, 44px); }
.aiv-q + .aiv-q { margin-top: clamp(18px, 2.4vw, 28px); }
.aiv-q-head { display: flex; align-items: baseline; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--p-line); }
.aiv-q-n { font-family: var(--serif-th); font-size: clamp(2.6rem, 1.6rem + 3vw, 4rem); line-height: .9; color: var(--gold); font-weight: 500; flex: none; }
.aiv-q-head h3 { font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; }
.aiv-q-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 24px; }
.aiv-q-body--ladder { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.aiv-q-text p { line-height: 1.85; color: var(--ink); text-wrap: pretty; }
.aiv-q-text p + p { margin-top: 14px; }
.aiv-q-text .dn-ref { margin-top: 18px; line-height: 1.7; }
.aiv-q-list h4 { font-family: var(--sans-th); font-size: var(--fs-sm); font-weight: 600; color: var(--p-gold-ink); }
.aiv-dots { margin-top: 10px; border-top: 1px solid var(--p-line); }
.aiv-dots li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--p-line); line-height: 1.65; color: var(--ink); }
.aiv-dots li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--gold); }

/* บันได 5 ขั้น (เส้นแนวตั้งทองบาง) */
.aiv-ladder { list-style: none; margin: 0; padding: 0; counter-reset: none; position: relative; }
.aiv-ladder::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(var(--gold), rgba(184,144,47,.15)); }
.aiv-ladder li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 0 22px 36px; }
.aiv-ladder li:last-child { padding-bottom: 0; }
.aiv-ladder li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--p-paper); border: 1.5px solid var(--gold); }
.aiv-step { font-size: var(--fs-xs); font-weight: 600; color: var(--p-gold-ink); }
.aiv-ladder b { font-family: var(--serif-th); font-weight: 600; color: var(--navy); font-size: 1.12rem; line-height: 1.4; }
.aiv-ladder li > span:not(.aiv-step):not(.dn-law) { color: var(--ink); line-height: 1.75; }
.aiv-ladder .dn-law, .aiv-facts .dn-law { white-space: normal; border-radius: 10px; }

/* ตารางข้อยกเว้น */
.aiv-table-wrap { margin-top: clamp(28px, 4vw, 48px); }
.aiv-table-h { font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); font-weight: 400; line-height: 1.35; }
.aiv-table-scroll { margin-top: 18px; overflow-x: auto; border: 1px solid var(--p-line); border-radius: 16px; background: var(--p-paper); }
.aiv-table-scroll:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.aiv-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--fs-sm); }
.aiv-table th, .aiv-table td { text-align: left; vertical-align: top; padding: 15px 18px; border-bottom: 1px solid var(--p-line); line-height: 1.65; }
.aiv-table thead th { background: var(--p-linen); color: var(--navy); font-weight: 600; font-size: var(--fs-xs); }
.aiv-table tbody th { font-family: var(--serif-th); color: var(--navy); font-weight: 600; width: 27%; }
.aiv-table tbody tr:last-child th, .aiv-table tbody tr:last-child td { border-bottom: 0; }
.aiv-table td:last-child { color: var(--ink); }
.aiv-table td:nth-child(2) { color: var(--slate); width: 30%; }
.aiv-table-wrap .dn-ref { margin-top: 12px; }

/* ============================================================
   S4 · สิ่งที่ส่งมอบ
   ============================================================ */
.aiv-deliv-sec { background: var(--p-linen); border-block: 1px solid var(--p-line); }
.aiv-deliv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 28px); }
.aiv-dcard { background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 18px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.aiv-dn { align-self: flex-start; font-size: var(--fs-xs); font-weight: 600; color: var(--p-gold-ink); border: 1px solid var(--line-gold); border-radius: var(--r-pill); padding: 3px 12px; }
.aiv-dcard h3 { margin-top: 16px; font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); font-weight: 400; line-height: 1.35; letter-spacing: -0.01em; }
.aiv-den { margin-top: 6px; font-family: var(--serif); font-style: italic; color: var(--slate); font-size: 1.05rem; }
.aiv-dcard .dn-check { margin-top: 16px; }
.aiv-dmeet { margin-top: auto; padding-top: 18px; font-size: var(--fs-xs); font-weight: 600; color: var(--p-gold-ink); line-height: 1.6; }
.aiv-dnote { margin-top: 8px; font-size: var(--fs-sm); color: var(--slate); line-height: 1.65; }

/* ============================================================
   S5 · ตัวอย่างข้อความในสัญญา
   ============================================================ */
.aiv-sample-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.aiv-sample-copy h2 { margin-top: 10px; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.012em; }
.aiv-sample-copy > p { margin-top: 16px; color: var(--slate); line-height: 1.85; text-wrap: pretty; }
.aiv-legend { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: lg; border-top: 1px solid var(--p-line); }
.aiv-legend li { counter-increment: lg; position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--p-line); line-height: 1.65; color: var(--ink); }
.aiv-legend li::before { content: counter(lg); position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-bright); font-size: .8rem; font-weight: 700; }
.aiv-legend b { display: block; color: var(--navy); font-weight: 600; }
.aiv-doc { margin: 0; position: relative; }
.aiv-doc-paper { background: #FFFEFA; border: 1px solid var(--p-line); border-radius: 14px 14px 0 0; padding: clamp(22px, 3vw, 34px); box-shadow: 0 18px 40px -30px rgba(20,36,63,.5); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.12rem; line-height: 1.65; color: #1d2433; }
.aiv-doc-paper p + p { margin-top: 12px; }
.aiv-doc-k { font-family: var(--sans-th); font-size: var(--fs-xs); font-weight: 600; color: var(--p-gold-ink); margin-bottom: 12px; }
.aiv-doc mark { background: linear-gradient(transparent 55%, rgba(231,203,128,.55) 55%); color: inherit; padding: 0 2px; position: relative; }
.aiv-doc mark::after { content: attr(data-n); position: relative; top: -.55em; margin-left: 3px; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--navy); color: var(--gold-bright); font: 700 .66rem/1 var(--sans-th); }
.aiv-doc-fix { background: var(--p-night); color: var(--on-navy); border-radius: 0 0 14px 14px; padding: clamp(20px, 2.8vw, 30px); }
.aiv-doc-fix .aiv-doc-k { color: var(--gold-bright); }
.aiv-doc-fix p:not(.aiv-doc-k) { line-height: 1.85; font-size: .98rem; }
.aiv-doc figcaption { margin-top: 12px; font-size: var(--fs-xs); color: var(--slate); text-align: center; }

/* ============================================================
   S6 · เครื่องมือ (ใช้โครง dn-tool) · S7 แหล่งอ้างอิง
   ============================================================ */
.aiv-page .dn-tool-sec { background: var(--p-paper); border-block: 1px solid var(--p-line); }
.aiv-page .dn-q { background: var(--p-canvas); border-color: var(--p-line); border-radius: 14px; }
.aiv-opts--1 { grid-template-columns: 1fr; }
.aiv-opts--3 { grid-template-columns: repeat(3, 1fr); }
.aiv-tool .dn-tool-q { display: grid; gap: 14px; }
.aiv-page .dn-result { background: radial-gradient(120% 90% at 100% 0%, #22386A 0%, var(--p-night-2) 45%, var(--p-night) 100%); border-radius: 18px; }

.aiv-src { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.aiv-src li { background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 16px; padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; }
.aiv-src-short { align-self: flex-start; font-size: var(--fs-xs); font-weight: 700; color: var(--navy); background: var(--p-linen); border-radius: var(--r-pill); padding: 3px 12px; }
.aiv-src-name { margin-top: 12px; font-family: var(--serif-th); color: var(--navy); font-size: 1.06rem; line-height: 1.5; }
.aiv-src-meta { margin-top: 8px; font-size: var(--fs-xs); color: var(--slate); }
.aiv-src-use { margin-top: 10px; font-size: var(--fs-sm); color: var(--ink); line-height: 1.6; }
.aiv-src-a { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--p-gold-ink); font-weight: 600; font-size: var(--fs-sm); }
.aiv-src-a svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.aiv-src-a:hover svg { transform: translateX(3px); }

/* ============================================================
   ขั้นตอน ค่าบริการ ทนาย FAQ ให้เข้าธีมกระดาษ
   ============================================================ */
.aiv-page .dn-steps-sec { background: var(--p-canvas); }
.aiv-page .dn-steps[start="3"] { counter-reset: st 2; }   /* ช่วงที่สองเริ่มข้อ 3 (svc-notice.css รองรับแค่ start=6) */
.aiv-page .dn-fees-sec { background: var(--p-paper); border-block: 1px solid var(--p-line); }
.aiv-page .dn-fees-copy h2, .aiv-page .dn-lawyer-body h2 { font-weight: 400; letter-spacing: -0.01em; }
.aiv-page .dn-lawyer-sec { background: var(--p-canvas); }
.aiv-page .dn-faq-sec { background: var(--p-linen); }
.aiv-page .dn-faq-sec .aiv-sec-head h2 { margin-top: 8px; }

/* ============================================================
   S12 · ปิดท้าย (พื้นกรมท่าเดิมของเว็บ)
   ============================================================ */
.aiv-close { background: radial-gradient(70% 90% at 0% 0%, #1C3052 0%, var(--p-night) 60%); }
.aiv-close .dn-close-copy h2 { font-weight: 400; letter-spacing: -0.01em; }
.aiv-close .dn-quote { border-radius: 18px; }
.aiv-close .dn-quote::before { display: none; }

/* บทความที่เกี่ยวข้อง */
.aiv-related-sec { background: var(--p-canvas); }
.aiv-page .related-card { border-color: var(--p-line); border-radius: 14px; }
.aiv-rel-svc { background: var(--p-night); border-color: var(--p-night) !important; }
.aiv-rel-svc .rc-t { color: #fff; }
.aiv-rel-svc .rc-d { color: var(--on-navy-muted); }
.aiv-rel-svc .rc-ic, .aiv-rel-svc .rc-arrow { color: var(--gold-bright); }

/* ============================================================
   จอเล็ก
   ============================================================ */
@media (max-width: 1080px) {
  .aiv-hero-facts { grid-template-columns: 1fr 1fr; }
  .aiv-chip { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--p-line); padding-left: 4px; }
}
@media (max-width: 920px) {
  .aiv-quick-grid, .aiv-answer-grid, .aiv-q-body, .aiv-q-body--ladder, .aiv-deliv, .aiv-sample-grid { grid-template-columns: 1fr; }
  .aiv-define { position: static; }
  .aiv-src { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* มือถือ: ภาพเป็นแถบด้านบน กล่องข้อความต่อลงมาบนพื้นกรมท่าเดียวกับฟ้าในภาพ */
  .aiv-hero .container { padding-inline: 12px; }
  .aiv-hero-panel { height: auto; border-radius: 20px; }
  .aiv-hero-panel::after { display: none; }
  .aiv-hero-art { position: relative; display: block; aspect-ratio: 16 / 10; }
  .aiv-hero-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 38%; background: linear-gradient(transparent, var(--p-night)); }
  .aiv-hero-art img { object-position: 50% 50%; }
  .aiv-hero-card { max-width: none; background: var(--p-night); padding: 2px 20px 24px; }
  .aiv-hero h1 { font-size: clamp(1.75rem, 1.1rem + 3.4vw, 2.2rem); text-shadow: none; }
  .aiv-hero-actions { margin-top: 22px; }
  .aiv-hero-actions .aiv-btn { width: 100%; }
  .aiv-lead { padding-inline: 8px; }
  .aiv-hero-facts { grid-template-columns: 1fr; border-block: 0; margin-top: 8px; }
  .aiv-fact, .aiv-fact:first-child { border-left: 0; border-bottom: 1px solid var(--p-line); padding: 16px 4px; }
  .aiv-chip { border-top: 0; }
  .aiv-quick-row { grid-template-columns: 1fr; gap: 0; }
  .aiv-quick-foot { flex-direction: column; align-items: stretch; }
  .aiv-page .form-card .aiv-quick-foot .btn-primary { width: 100%; }
  .aiv-q-head { gap: 12px; }
  .aiv-opts--3 { grid-template-columns: 1fr; }
  /* มือถือ: ภาพโต๊ะเป็นแถบบน ข้อความต่อลงมาบนพื้นกรมท่า */
  .aiv-statement { display: block; min-height: 0; border-radius: 20px; }
  .aiv-statement::after { display: none; }
  .aiv-statement-art { position: relative; display: block; aspect-ratio: 4 / 3; }
  .aiv-statement-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40%; background: linear-gradient(transparent, var(--p-night)); }
  .aiv-statement-art img { object-position: 50% 50%; }
  .aiv-statement-copy { padding: 0 22px 30px; }
}
@media (max-width: 420px) {
  .aiv-q-head h3 .nowrap, .aiv-sec-head h2 .nowrap { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .aiv-btn, .aiv-link-light svg, .aiv-src-a svg { transition: none; }
}
