/* ============================================================================
 *  📰 หน้าสาระความรู้ (/blog และ /blog/*)
 * ----------------------------------------------------------------------------
 *  ใช้คู่กับ landing.css + legal.css เสมอ (โหลดตามลำดับนั้น แล้วค่อยไฟล์นี้)
 *  · ตัวแปรสี · ปุ่ม · หัวเว็บ · ท้ายเว็บ · .cta-box · .faq   ← landing.css
 *  · สารบัญ · หัวข้อมีเลข · ตาราง · กล่องเน้น (lg-*)          ← legal.css
 *  ไฟล์นี้เพิ่มเฉพาะของบทความ ทุกคลาสขึ้นต้นด้วย bl-
 *
 *  ⚠️ หน้าบทความไม่มี JavaScript (CSP ปิดสคริปต์สนิท) ⇒ ห้ามใช้ style="..." ในไฟล์ HTML
 *  ⚠️ หน้าอยู่ลึกหนึ่งชั้น (/blog/xxx) ⇒ ลิงก์ css/รูป ต้องขึ้นต้นด้วย / เสมอ
 * ========================================================================== */

/*  landing.css รีเซ็ตแค่ ul — ol ของสารบัญยังมี padding 40px ของเบราว์เซอร์ติดมา */
.lg-toc ol { padding: 0; margin: 0; }

/* ------------------------------------------------------------ เส้นทางนำทาง */
.bl-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-size: .813rem; font-weight: 600; color: var(--muted);
  margin-bottom: 1.2rem;
}
.bl-crumb a { color: var(--gold-dark); }
.bl-crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bl-crumb span[aria-hidden] { opacity: .55; }

/* ---------------------------------------------------- คำตอบสั้นต้นบทความ
 *  คนที่มาจาก Google อยากได้คำตอบทันที — ให้อยู่ก่อนเนื้อหายาวทั้งหมด */
.bl-answer {
  border: 1px solid var(--gold-light); border-radius: var(--r-lg);
  background: linear-gradient(180deg, #FFFFFF, var(--gold-soft));
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.4rem;
}
.bl-answer-h {
  font-size: .75rem; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: .7rem;
}
.bl-answer ul { display: grid; gap: .6rem; }
.bl-answer li {
  position: relative; padding-left: 1.35rem;
  line-height: 1.75; color: var(--ink-soft);
}
.bl-answer li::before {
  content: ''; position: absolute; left: .25rem; top: .62em;
  width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--gold);
}
.bl-answer b { color: var(--ink); }

/* ------------------------------------------------- ตัวเลขในตาราง ชิดขวา */
.lg-table .bl-n {
  text-align: right; white-space: nowrap;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
}
.lg-table thead th.bl-n { text-align: right; }
.lg-table td.bl-win { color: #2F6B3A; font-weight: 600; }

/* ---------------------------------------------------- สมมติฐานใต้ตาราง */
.bl-fine {
  font-size: .813rem !important; color: var(--muted);
  line-height: 1.7 !important;
}

/* ------------------------------------------- เทียบสองฝั่ง (ข้อดี/ข้อเสีย) */
.bl-vs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem; margin: 0 0 1rem;
}
.bl-vs > div {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--panel);
  padding: 1.15rem 1.25rem;
}
.bl-vs h3 {
  font-size: 1rem; margin-bottom: .75rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--line);
}
.bl-vs .lg-ul { margin: 0; }

/* -------------------------------------------- ปุ่มติดต่อกลางบทความ */
.bl-inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--panel);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0 0;
}
.bl-inline-cta p { margin: 0 !important; font-weight: 600; color: var(--ink); }

/* -------------------------------------------- FAQ ในบทความ (ใช้ .faq ของหน้าแรก) */
.lg-sec .faq { max-width: none; margin: 0; }

/* -------------------------------------------- CTA ท้ายบทความ */
.bl-cta { margin-top: clamp(30px, 3.4vw, 46px); }
.bl-cta .h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* ------------------------------------------------- หมายเหตุท้ายบทความ */
.bl-disclaimer {
  margin-top: 1.4rem;
  font-size: .781rem; color: var(--muted); line-height: 1.75;
}

/* ================================================== หน้ารวมบทความ /blog */
.bl-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.15rem;
  padding-block: clamp(40px, 5vw, 68px) var(--section);
}
.bl-card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem 1.4rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bl-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-md);
}
.bl-tag {
  align-self: flex-start;
  font-size: .75rem; font-weight: 500; letter-spacing: .04em;
  color: var(--gold-dark); background: var(--gold-soft);
  padding: .25rem .65rem; border-radius: 999px;
  margin-bottom: .9rem;
}
.bl-card h2 { font-size: 1.15rem; line-height: 1.4; margin-bottom: .6rem; }
.bl-card p { font-size: .875rem; color: var(--ink-soft); flex: 1; }
.bl-card-meta {
  margin-top: 1.1rem; padding-top: .85rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: .5rem;
  font-size: .75rem; font-weight: 600; color: var(--muted);
}
.bl-card-meta b { color: var(--gold-dark); }

/* ==========================================================================
 *  🧩 ชิ้นส่วนเพิ่ม 11 พ.ย. 2569 — ใช้ครั้งแรกในบทความภาษีหัก ณ ที่จ่าย
 *  ทุกชิ้นเป็น HTML+CSS ล้วน (หน้าไม่มีสคริปต์) และยุบเป็นคอลัมน์เดียวบนมือถือ
 * ========================================================================== */

/* ------------------------------------------- ตัวเลขเด่นใต้คำตอบสั้น */
.bl-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem; margin: 0 0 1.4rem;
}
.bl-stat {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--panel);
  padding: 1rem 1.05rem 1.05rem;
}
.bl-stat::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
}
.bl-stat-n {
  font-family: var(--font-accent); font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.bl-stat-n small { font-size: .5em; font-weight: 600; color: var(--gold-dark); margin-left: .08em; }
.bl-stat-l { margin-top: .55rem; font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
.bl-stat-s { margin-top: .15rem; font-size: .75rem; color: var(--muted); line-height: 1.6; }

/* ------------------------------------------- แถบแบ่งเงิน (ผู้รับ vs สรรพากร) */
.bl-split { margin: .2rem 0 1.2rem; }
.bl-split-bar {
  display: flex; height: 44px; overflow: hidden;
  border-radius: var(--r-sm); border: 1px solid var(--line);
}
.bl-split-a, .bl-split-b {
  display: flex; align-items: center; padding: 0 .9rem;
  font-size: .813rem; font-weight: 600; white-space: nowrap;
}
.bl-split-a { flex: 97 1 0; background: linear-gradient(90deg, var(--gold-soft), #EFE4CF); color: var(--gold-dark); }
.bl-split-b { flex: 3 1 0; min-width: 14px; padding: 0; background: var(--ink); }
.bl-split-legend {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.2rem;
  margin-top: .55rem; font-size: .813rem; color: var(--ink-soft);
}
.bl-split-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.bl-split-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--gold-light); flex: none; }
.bl-split-legend i.is-ink { background: var(--ink); }
.bl-split-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ------------------------------------------- ป้ายอัตราในตาราง */
.bl-rate {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 3.3rem; padding: .16rem .62rem;
  border-radius: 999px; border: 1px solid var(--gold-light);
  background: var(--gold-soft); color: var(--gold-dark);
  font-weight: 700; font-size: .875rem; line-height: 1.5;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bl-rate.is-calc {
  min-width: 0; white-space: normal; text-align: left;
  border-color: var(--line); background: var(--alt); color: var(--ink-soft);
  font-weight: 600; font-size: .75rem; border-radius: .6rem;
}
.bl-rate.is-none { min-width: 0; padding-inline: 0; border-color: transparent; background: transparent; color: var(--muted); font-weight: 500; }
.bl-form-tag {
  display: block; margin-top: .3rem;
  font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .02em;
}
.bl-sub { display: block; margin-top: .2rem; font-size: .8rem; font-weight: 400; color: var(--muted); line-height: 1.6; }

/* ------------------------------------------- การ์ดเทียบแบบ ภ.ง.ด. สองใบ */
.bl-forms {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem; margin: 0 0 1.1rem;
}
.bl-form-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--panel); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.bl-form-head {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: 1.05rem 1.25rem;
  background: var(--ink); color: #FFFFFF;
}
.bl-form-head b { font-family: var(--font-accent); font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; color: #FFFFFF; }
.bl-form-head span {
  font-size: .75rem; font-weight: 600; text-align: right; line-height: 1.5;
  color: var(--gold-light);
}
.bl-form-card.is-gold .bl-form-head { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }
.bl-form-card.is-gold .bl-form-head span { color: #FFFFFF; }
.bl-form-card dl { margin: 0; padding: .35rem 1.25rem 1rem; }
.bl-form-card dl > div { padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.bl-form-card dl > div:last-child { border-bottom: 0; }
.bl-form-card dt {
  font-size: .72rem; font-weight: 500; letter-spacing: .04em;
  color: var(--gold-dark); margin-bottom: .15rem;
}
.bl-form-card dd { margin: 0; font-size: .9rem; line-height: 1.7; color: var(--ink-soft); }
.bl-form-card dd b { color: var(--ink); }

/* ------------------------------------------- รายการ ต้องหัก / ไม่ต้องหัก */
.bl-yes, .bl-no { list-style: none; display: grid; gap: .55rem; margin: 0; }
.bl-yes li, .bl-no li { position: relative; padding-left: 1.85rem; line-height: 1.75; font-size: .92rem; }
.bl-yes li::before, .bl-no li::before {
  content: ''; position: absolute; left: 0; top: .2em;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
}
.bl-yes li::before { background: #E8F1EA; }
.bl-no li::before  { background: #F6E9E6; }
/*  เครื่องหมายถูก: ขอบล่าง+ขวาของกล่องเล็กหมุน 45° */
.bl-yes li::after {
  content: ''; position: absolute; left: .43rem; top: calc(.2em + .24rem);
  width: .3rem; height: .58rem;
  border: solid #2F6B3A; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/*  กากบาท: เส้นทแยงสองเส้นจาก gradient */
.bl-no li::after {
  content: ''; position: absolute; left: .32rem; top: calc(.2em + .32rem);
  width: .56rem; height: .56rem;
  background:
    linear-gradient(45deg,  transparent calc(50% - 1px), #A23B2C calc(50% - 1px), #A23B2C calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), #A23B2C calc(50% - 1px), #A23B2C calc(50% + 1px), transparent calc(50% + 1px));
}
.bl-yes b, .bl-no b { color: var(--ink); }
/*  รายการที่วางตรงในเนื้อหา (ไม่ได้อยู่ในการ์ด) ต้องเว้นระยะก่อนย่อหน้าถัดไป */
.lg-sec > .bl-yes, .lg-sec > .bl-no { margin-bottom: 1rem; }
.bl-vs h3 .bl-h-yes { color: #2F6B3A; }
.bl-vs h3 .bl-h-no  { color: #A23B2C; }

/* ------------------------------------------- ขั้นตอนเป็นเส้นเวลา */
.bl-steps { list-style: none; counter-reset: st; margin: .3rem 0 1.1rem; padding: 0; }
.bl-steps li { counter-increment: st; position: relative; padding: 0 0 1.35rem 3.2rem; }
.bl-steps li::before {
  content: counter(st);
  position: absolute; left: 0; top: 0;
  width: 2.15rem; height: 2.15rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #FFFFFF;
  font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.bl-steps li::after {
  content: ''; position: absolute; left: calc(1.075rem - 1px); top: 2.55rem; bottom: .25rem;
  width: 2px; background: linear-gradient(var(--gold-light), var(--line));
}
.bl-steps li:last-child { padding-bottom: 0; }
.bl-steps li:last-child::after { display: none; }
.bl-steps h4 { font-size: 1rem; margin: .3rem 0 .2rem; color: var(--ink); }
.lg-sec .bl-steps p { margin: 0; font-size: .92rem; line-height: 1.8; }

/* ------------------------------------------- กำหนดวันยื่น (หน้าปฏิทิน) */
.bl-dates {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem; margin: 0 0 1.1rem;
}
.bl-date {
  display: flex; align-items: center; gap: .95rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--panel); padding: .95rem 1.05rem;
}
.bl-date.is-best { border-color: var(--gold-light); background: var(--gold-soft); }
.bl-cal {
  flex: none; width: 3.7rem; overflow: hidden; text-align: center;
  border: 1px solid var(--line); border-radius: .7rem;
  background: #FFFFFF; box-shadow: var(--shadow-sm);
}
.bl-cal i {
  display: block; padding: .14rem 0;
  font-style: normal; font-size: .65rem; font-weight: 600; letter-spacing: .04em;
  background: var(--ink); color: #FFFFFF;
}
.bl-date.is-best .bl-cal i { background: var(--gold); }
.bl-cal b {
  display: block; font-family: var(--font-accent); font-weight: 700;
  font-size: 1.55rem; line-height: 1.55; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bl-cal b.is-word { font-size: .95rem; line-height: 2.6; }
.bl-date-t { font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.5; }
.bl-date-s { margin-top: .1rem; font-size: .78rem; color: var(--muted); line-height: 1.6; }

/* ------------------------------------------- ตัวอย่างคำนวณแบบใบเสร็จ */
.bl-calcs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem; margin: 0 0 1.1rem;
}
.bl-calc {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--panel); box-shadow: var(--shadow-sm);
  padding: 1.15rem 1.25rem 1.1rem;
  display: flex; flex-direction: column;
}
.bl-calc-h { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; margin-bottom: .75rem; }
.bl-calc-h b { font-size: .98rem; color: var(--ink); line-height: 1.55; }
.bl-calc-tag {
  flex: none; padding: .18rem .6rem; border-radius: 999px;
  font-size: .7rem; font-weight: 600; white-space: nowrap;
  background: var(--ink); color: #FFFFFF;
}
.bl-calc-tag.is-gold { background: var(--gold-dark); }
.bl-calc dl { margin: 0; }
.bl-calc dl > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .4rem 0; font-size: .9rem; color: var(--ink-soft);
}
.bl-calc dt { line-height: 1.6; }
.bl-calc dd {
  margin: 0; white-space: nowrap;
  font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
}
.bl-calc .is-minus dd { color: #A23B2C; }
.bl-calc .is-total {
  margin-top: .3rem; padding-top: .7rem;
  border-top: 1px dashed var(--gold-light);
  font-weight: 600; color: var(--ink);
}
.bl-calc .is-total dd { font-size: 1.15rem; color: var(--gold-dark); }
.lg-sec .bl-calc-note {
  margin: auto 0 0; padding-top: .7rem;
  font-size: .78rem; color: var(--muted); line-height: 1.65;
}

/* ------------------------------------------- สูตรเด่น (ภาษีออกแทน) */
.bl-formula {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .7rem;
  padding: 1rem 1.2rem; margin: 0 0 1rem;
  border: 1px dashed var(--gold-light); border-radius: var(--r-md);
  background: #FFFFFF;
  font-size: .95rem; font-weight: 600; color: var(--ink); text-align: center;
}
.bl-formula span { color: var(--gold-dark); }
.bl-formula small { flex-basis: 100%; font-size: .78rem; font-weight: 400; color: var(--muted); }

/* ------------------------------------------- กล่องแนะนำแอป + ภาพจำลอง 50 ทวิ */
.bl-app {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem); align-items: center;
  border: 1px solid var(--gold-light); border-radius: var(--r-xl);
  background: linear-gradient(160deg, #FFFFFF 30%, var(--gold-soft));
  padding: clamp(1.25rem, 2.6vw, 2rem);
  margin: .4rem 0 1rem;
}
.bl-app-k {
  font-size: .75rem; font-weight: 500; letter-spacing: .04em;
  color: var(--gold-dark); margin-bottom: .4rem;
}
.bl-app h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: .9rem; line-height: 1.4; }
.bl-app .bl-yes { margin-bottom: 1.1rem; }
.bl-app-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.bl-cert {
  position: relative;
  background: #FFFFFF; border: 1px solid #DCDCE0; border-radius: .5rem;
  padding: 1rem 1.05rem .9rem;
  /*  กระดาษใบที่สองซ้อนข้างหลัง = เงาทึบเยื้องลงขวา (ใช้ ::before z-index:-1 ไม่ได้
   *  เพราะ transform ทำให้กล่องนี้เป็น stacking context ของมันเอง แผ่นหลังจะลอยมาทับกระดาษ) */
  box-shadow: 10px 12px 0 -1px #F1EEE7, 10px 12px 0 0 #E4DED2, var(--shadow-lg);
  transform: rotate(1.2deg);
  font-size: .7rem; color: #333;
}
.bl-cert-t {
  text-align: center; padding: .35rem 0 .45rem; margin-bottom: .6rem;
  border-top: 2px solid #333; border-bottom: 2px solid #333;
}
.bl-cert-t b { display: block; font-size: .85rem; color: #111; }
.bl-cert-t span { display: block; font-size: .62rem; color: #555; }
.bl-cert-p { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-bottom: .55rem; }
.bl-cert-p > div { border: 1px solid #CFCFD4; padding: .4rem .5rem; line-height: 1.55; }
.bl-cert-p em { display: block; font-style: normal; font-weight: 700; color: #111; }
.bl-cert-p i { display: block; height: 5px; margin-top: .3rem; border-radius: 3px; background: #E7E7EA; font-style: normal; }
.bl-cert-p i + i { width: 70%; }
.bl-cert-r {
  display: flex; justify-content: space-between; gap: .5rem;
  padding: .3rem .1rem; border-bottom: 1px solid #EDEDF0;
  font-variant-numeric: tabular-nums;
}
.bl-cert-r.is-h { font-weight: 700; color: #111; border-bottom-color: #333; }
.bl-cert-r.is-sum { font-weight: 700; color: #111; border-bottom: 0; }
.bl-cert-f { display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem; margin-top: .55rem; }
.bl-cert-chk { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: #111; }
.bl-cert-chk::before {
  content: ''; width: .62rem; height: .62rem; border: 1.5px solid #111; border-radius: 2px;
  background: linear-gradient(135deg, transparent 40%, #111 40%, #111 60%, transparent 60%);
}
.bl-cert-sig { width: 40%; text-align: center; color: #777; font-size: .6rem; }
.bl-cert-sig::before { content: ''; display: block; height: 1px; background: #999; margin-bottom: .2rem; }
.bl-cert-badge {
  position: absolute; top: -.75rem; right: -.6rem;
  padding: .28rem .7rem; border-radius: 999px;
  background: var(--ink); color: #FFFFFF;
  font-size: .68rem; font-weight: 600; letter-spacing: .02em;
  box-shadow: var(--shadow-md);
  transform: rotate(-1.2deg);
}
.bl-cert-cap { margin-top: 1.1rem; text-align: center; font-size: .72rem; color: var(--muted); }

/* ==========================================================================
 *  🧾 ชิ้นส่วนเพิ่ม 11 พ.ย. 2569 (2) — บทความใบกำกับภาษี
 * ========================================================================== */

/* ------------------------------------------- เครื่องหมายมี / ไม่มี ในตาราง */
.bl-mark {
  position: relative; display: inline-block; vertical-align: middle;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
}
.bl-mark.is-yes { background: #E8F1EA; }
.bl-mark.is-no  { background: #F3F3F5; }
.bl-mark.is-yes::after {
  content: ''; position: absolute; left: .47rem; top: .26rem;
  width: .32rem; height: .62rem;
  border: solid #2F6B3A; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.bl-mark.is-no::after {
  content: ''; position: absolute; left: .35rem; right: .35rem; top: calc(50% - 1px);
  height: 2px; border-radius: 2px; background: #A1A1A6;
}
.bl-mark-t { margin-left: .45rem; font-size: .8rem; color: var(--muted); vertical-align: middle; }
.lg-table td.bl-c { text-align: center; white-space: nowrap; }
.lg-table thead th.bl-c { text-align: center; }

/* ------------------------------------------- ภาพจำลองเอกสาร + จุดอธิบาย */
.bl-anatomy {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem); align-items: start;
  margin: .3rem 0 1.2rem;
}
.bl-paper {
  background: #FFFFFF; color: #333;
  border: 1px solid #DCDCE0; border-radius: .55rem;
  box-shadow: 10px 12px 0 -1px #F1EEE7, 10px 12px 0 0 #E4DED2, var(--shadow-lg);
  padding: 1.05rem 1.1rem 1rem;
  font-size: .72rem; line-height: 1.6;
}
.bl-paper.is-slip { max-width: 290px; margin-inline: auto; font-size: .7rem; text-align: center; border-radius: .3rem; }
.bl-paper-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; padding-bottom: .6rem; margin-bottom: .6rem; border-bottom: 2px solid #333; }
.bl-paper-top b, .bl-paper h5 { color: #111; font-size: .8rem; }
.bl-paper h5 { margin: 0; font-size: 1rem; font-weight: 700; text-align: right; line-height: 1.3; }
.bl-paper h5 small { display: block; font-size: .62rem; font-weight: 500; color: #666; letter-spacing: .04em; }
.bl-paper-box { border: 1px solid #CFCFD4; padding: .45rem .6rem; margin-bottom: .6rem; }
.bl-paper-row { display: flex; justify-content: space-between; gap: .6rem; padding: .28rem 0; border-bottom: 1px solid #EDEDF0; font-variant-numeric: tabular-nums; }
.bl-paper-row.is-h { font-weight: 700; color: #111; border-bottom-color: #333; }
.bl-paper-row.is-sum { font-weight: 700; color: #111; }
.bl-paper-row.is-total { font-weight: 700; color: #111; border-top: 1px solid #333; border-bottom: 0; }
.bl-paper-dash { border-top: 1px dashed #BBB; margin: .5rem 0; }
.bl-paper-meta { display: flex; justify-content: space-between; gap: .6rem; margin-bottom: .5rem; }
.bl-paper.is-slip .bl-paper-row { text-align: left; }

/*  วงกลมตัวเลขบนเอกสาร — ตรงกับรายการด้านข้าง */
.bl-pin {
  display: inline-grid; place-items: center; flex: none;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  margin: 0 .3rem 0 0; vertical-align: .06rem;
  background: var(--gold); color: #FFFFFF;
  font-size: .62rem; font-weight: 700; font-style: normal; line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px var(--gold-light);
}
.bl-legend { list-style: none; counter-reset: lg; display: grid; gap: .7rem; margin: 0; padding: 0; }
.bl-legend li { counter-increment: lg; position: relative; padding-left: 2.1rem; font-size: .9rem; line-height: 1.7; }
.bl-legend li::before {
  content: counter(lg);
  position: absolute; left: 0; top: .1rem;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: #FFFFFF;
  font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.bl-legend b { color: var(--ink); }
.bl-legend .bl-sub { margin-top: .1rem; }

/* ================================================================== มือถือ */
@media (max-width: 960px) {
  .bl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-dates { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .bl-vs { grid-template-columns: 1fr; }
  .bl-inline-cta .btn { flex: 1 1 100%; }
  /*  ตารางกลายเป็นการ์ด (กฎใน legal.css) — ตัวเลขกลับมาชิดซ้ายให้ตรงกับป้าย */
  .lg-table .bl-n { text-align: left; }

  /*  ตารางอัตรา: บนมือถือการ์ดแต่ละแถวยาวมากถ้าเรียง 3 ช่องลงมา
   *  ⇒ ช่องแรก (ชื่อรายการ) เต็มแถว แล้ววางสองช่องที่เหลือคู่กันข้างล่าง */
  .lg-table.bl-rates tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-table.bl-rates td:first-child { grid-column: 1 / -1; }
  .lg-table.bl-rates td:nth-child(2) { border-bottom: 0; border-right: 1px solid var(--line); }
  /*  ช่องเครื่องหมายมี/ไม่มี: ครึ่งการ์ดแคบ ให้คำอธิบายตัดบรรทัดลงใต้เครื่องหมาย ไม่ล้นขอบ */
  .lg-table td.bl-c { white-space: normal; }
  .bl-mark-t { display: block; margin: .3rem 0 0; line-height: 1.5; }

  .bl-forms, .bl-calcs, .bl-app, .bl-anatomy { grid-template-columns: 1fr; }
  .bl-paper { margin-right: .7rem; }
  /*  ใบกำกับจำลองบนจอแคบ: ชื่อเอกสารขึ้นบน ข้อมูลผู้ซื้อ/เลขที่เรียงลง ไม่บีบเป็นสองคอลัมน์ */
  .bl-paper-top { flex-direction: column-reverse; gap: .4rem; }
  .bl-paper h5 { text-align: left; }
  .bl-paper-meta { flex-direction: column; gap: 0; }
  .bl-app-actions .btn { flex: 1 1 100%; }
  .bl-cert { transform: none; margin: .4rem .7rem 0 0; }
  .bl-split-a { font-size: .75rem; padding: 0 .7rem; }
}

@media print {
  .bl-inline-cta, .bl-cta, .bl-app { display: none !important; }
  .bl-stat, .bl-calc, .bl-form-card { box-shadow: none; }
}
