/**
 * CCT PAK 20 — ABOUT US, "INSTITUTIONAL HANDBOOK"
 * คริสตจักรภาคที่ 20 สภาคริสตจักรในประเทศไทย
 *
 * ขอบเขต: เฉพาะ about.php (โหลดหลัง theme-modern.css)
 * หมายเหตุ: districts.php ยังใช้ page-about.css เดิมและไม่ถูกกระทบไฟล์นี้
 * หลักการ:
 *   - ไม่ใช้ !important ทั้งไฟล์ (แก้ด้วย specificity + ลำดับ cascade)
 *   - ภาษาเดียวกับหน้าแรก: กระดาษขาว/งาช้าง, หมึก navy, ทองล้านนา, เส้น magenta
 *   - ข้อความไทย: คอลัมน์ 760px, line-height 1.95, ไม่ตัดคำแบบ justify
 */

/* ==========================================================
   1. TOKENS + ขอบเขต
========================================================== */
.abt-page {
  --abt-ink:        var(--church-navy-primary, #1a2258);
  --abt-ink-deep:   var(--church-navy-dark, #121634);
  --abt-body:       var(--church-text-body, #334155);
  --abt-muted:      #5b6878;
  --abt-hair:       #e7e3da;
  --abt-rail-line:  #ece8df;
  --abt-paper:      #fbf8f2;
  --abt-white:      #ffffff;
  --abt-canvas:     var(--church-canvas, #f8fafc);
  --abt-gold:         var(--church-gold-primary, #f59e0b);
  --abt-gold-rich:    var(--church-gold-rich, #d97706);
  --abt-gold-dark:    var(--church-gold-dark, #b45309);
  --abt-gold-bright:  var(--church-gold-bright, #fbbf24);
  --abt-gold-faint:   #fdf6e3;
  --abt-gold-pale:    #fef3c7;
  --abt-gold-glow:    rgba(217, 119, 6, 0.24);
  --abt-pink:       #ff37ff;
  --abt-pink-soft:  rgba(255, 55, 255, 0.42);

  --abt-measure: 760px;
  --abt-rail:    268px;
  --abt-header:  92px;

  background: var(--abt-paper);
  padding: 34px 0 72px;
  color: var(--abt-body);
}

/* พื้นผิวที่เบราว์เซอร์เป็นคนวาด ต้องมาจากพาเลตต์เดียวกัน */
.abt-page ::selection {
  background: rgba(251, 191, 36, 0.34);
  color: var(--abt-ink-deep);
}

.abt-page a:focus,
.abt-page a:focus-visible,
.abt-page button:focus,
.abt-page button:focus-visible {
  outline: none;
  box-shadow: none;
}

/* ==========================================================
   2. MASTHEAD (ดัชนีAbout)
========================================================== */
.abt-masthead {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--abt-white) 0%, var(--abt-paper) 100%);
  border: 1px solid var(--abt-hair);
  border-radius: 3px;
  padding: 46px 52px 40px;
}

.abt-masthead::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--abt-pink);
  opacity: 0.85;
}

.abt-masthead::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: 2px;
  pointer-events: none;
}

.abt-masthead-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: start;
}

.abt-masthead h1 {
  font-size: clamp(2rem, 3.3vw, 2.75rem);
  line-height: 1.22;
  color: var(--abt-ink-deep);
  margin: 0 0 8px;
}

.abt-masthead-sub {
  margin: 0 0 22px;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--abt-gold-dark);
}

.abt-lede {
  margin: 0 0 26px;
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--abt-body);
}

/* ปุ่ม: มุมเหลี่ยม 2px เหมือนหน้าแรก */
.abt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.abt-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid var(--abt-gold-bright);
  background: linear-gradient(135deg, var(--abt-gold-bright), var(--abt-gold));
  color: #2a1a02;
  box-shadow: 0 6px 18px rgba(180, 83, 9, 0.22);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.abt-btn:hover {
  box-shadow: 0 10px 26px rgba(180, 83, 9, 0.3);
  transform: translateY(-1px);
  color: #2a1a02;
}

.abt-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.6;
  flex-shrink: 0;
}

.abt-btn--ghost {
  background: transparent;
  border-color: rgba(20, 26, 62, 0.18);
  color: var(--abt-ink);
  box-shadow: none;
}

.abt-btn--ghost:hover {
  background: var(--abt-white);
  border-color: var(--abt-gold-dark);
  color: var(--abt-gold-dark);
  transform: none;
  box-shadow: 0 4px 14px rgba(20, 26, 62, 0.06);
}

/* ตัวเลขจริงของทะเบียน (คำนวณจาก DB ไม่ได้พิมพ์มือ) */
.abt-facts {
  margin: 0;
  border-top: 1px solid var(--abt-hair);
}

.abt-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--abt-hair);
}

.abt-facts dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--abt-muted);
  letter-spacing: 0.04em;
}

.abt-facts dd {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--abt-ink-deep);
  font-variant-numeric: tabular-nums;
}

.abt-facts dd small {
  flex: 0 0 3.1em;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--abt-muted);
  text-align: left;
}

.abt-facts-note {
  margin: 14px 0 0;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--abt-muted);
}

/* ==========================================================
   3. แถบพระวจนะ
========================================================== */
.abt-verse {
  position: relative;
  margin-top: 36px;
  padding: 32px 0 28px;
  text-align: center;
  background:
    linear-gradient(135deg, var(--abt-gold-faint), var(--abt-gold-pale) 55%, var(--abt-gold-faint));
  border-top: 1px solid rgba(217, 119, 6, 0.3);
  border-bottom: 1px solid rgba(217, 119, 6, 0.3);
}

.abt-verse p {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--abt-ink-deep);
}

.abt-verse span {
  display: block;
  margin-top: 8px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--abt-gold-dark);
}

.abt-verse-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--abt-gold-dark);
}

.abt-verse-orn i {
  width: 84px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 83, 9, 0.5));
}

.abt-verse-orn i + i {
  background: linear-gradient(90deg, rgba(180, 83, 9, 0.5), transparent);
}

.abt-verse-orn svg {
  width: 15px;
  height: 20px;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ==========================================================
   4. ดัชนี 13 หมวด
========================================================== */
.abt-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  background: var(--abt-white);
  border: 1px solid var(--abt-hair);
  border-radius: 3px;
}

.abt-index--single {
  grid-template-columns: minmax(0, 1fr);
}

.abt-index--single .abt-index-col {
  border-right: 0;
}

.abt-index--single .abt-index-head span {
  display: none;
}

.abt-index-col {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--abt-hair);
}

.abt-index-col:last-child {
  border-right: 0;
}

.abt-index-head {
  padding-bottom: 13px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--abt-ink);
}

.abt-index-head span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--abt-gold-dark);
}

.abt-index-head h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--abt-ink-deep);
}

.abt-index a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 56px;
  padding: 16px 0;
  border-bottom: 1px solid var(--abt-hair);
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.abt-index a:last-child {
  border-bottom: 0;
}

.abt-index a:hover {
  background: var(--abt-gold-faint);
  padding-left: 8px;
}

.abt-index .abt-num {
  flex: 0 0 26px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--abt-gold-dark);
  font-variant-numeric: tabular-nums;
}

.abt-index .abt-lbl {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--abt-ink);
}

.abt-index a:hover .abt-lbl {
  color: var(--abt-gold-dark);
}

.abt-index .abt-cnt {
  font-size: 0.71rem;
  font-weight: 400;
  color: var(--abt-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ==========================================================
   5. โครงสมุด: รางสารบัญ + บทความ
========================================================== */
.abt-shell {
  display: grid;
  grid-template-columns: var(--abt-rail) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.abt-rail {
  position: sticky;
  top: var(--abt-header);
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 4px;
}

.abt-rail::-webkit-scrollbar {
  width: 4px;
}

.abt-rail::-webkit-scrollbar-thumb {
  background: #d9d3c7;
  border-radius: 4px;
}

.abt-rail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--abt-ink);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--abt-gold-dark);
}

.abt-rail-title svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.6;
}

.abt-rail-group + .abt-rail-group {
  margin-top: 24px;
}

.abt-rail-group-head {
  padding: 0 0 8px 14px;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--abt-muted);
}

.abt-rail-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--abt-rail-line);
}

.abt-rail-group a {
  display: flex;
  gap: 10px;
  min-height: 44px;
  margin-left: -1px;
  padding: 11px 0 11px 14px;
  border-left: 2px solid transparent;
  font-size: 0.87rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--abt-body);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.abt-rail-group a .abt-n {
  flex: 0 0 20px;
  padding-top: 3px;
  font-size: 0.69rem;
  color: var(--abt-gold-dark);
  font-variant-numeric: tabular-nums;
}

.abt-rail-group a:hover {
  color: var(--abt-ink);
  border-left-color: var(--abt-pink-soft);
  background: var(--abt-gold-faint);
}

.abt-rail-group a[aria-current="page"] {
  color: var(--abt-ink-deep);
  font-weight: 600;
  border-left-color: var(--abt-pink);
  background: linear-gradient(90deg, rgba(255, 55, 255, 0.06), transparent 70%);
}

.abt-rail-foot {
  margin-top: 24px;
  padding: 14px 14px 0;
  border-top: 1px solid var(--abt-hair);
  font-size: 0.71rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--abt-muted);
}

.abt-rail-foot b {
  display: block;
  color: var(--abt-ink);
  font-weight: 500;
}

/* ==========================================================
   6. บทความ
========================================================== */
.abt-doc {
  min-width: 0;
}

.abt-doc > * {
  max-width: var(--abt-measure);
}

/* ข้อความคุมที่ 700px แต่ตารางทะเบียนและการ์ดภาพขยายเต็มคอลัมน์:
   การอ่านข้อความ กับการกวาดตาหาชื่อในตาราง เป็นคนละจังหวะกัน */
.abt-doc > .abt-body {
  max-width: 100%;
}

.abt-body > p,
.abt-body > h3,
.abt-body > h4,
.abt-body > ul,
.abt-body > ol,
.abt-body > blockquote,
.abt-body > figure,
.abt-body > .abt-empty {
  max-width: var(--abt-measure);
}

.abt-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--abt-muted);
}

.abt-crumb a {
  color: var(--abt-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.abt-crumb a:hover {
  color: var(--abt-gold-dark);
  border-bottom-color: var(--abt-gold-dark);
}

.abt-crumb span[aria-current] {
  color: var(--abt-gold-dark);
  font-weight: 500;
}

.abt-title {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  line-height: 1.35;
  color: var(--abt-ink-deep);
}

/* Tiêu đề chỉ nhận focus bằng lệnh (tabindex="-1") để trình đọc màn hình đọc
   lại sau khi chuyển mục — không phải điểm dừng của phím Tab, nên không vẽ
   viền focus (nếu không mỗi lần chuyển mục lại hiện một khung đen). */
.abt-title:focus {
  outline: none;
}

.abt-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin-top: 16px;
  background: var(--abt-pink);
  opacity: 0.85;
}

.abt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 22px 0 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--abt-hair);
  font-size: 0.77rem;
  font-weight: 400;
  color: var(--abt-muted);
}

.abt-meta div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.abt-meta svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.6;
  color: var(--abt-gold-rich);
  flex-shrink: 0;
}

.abt-meta b {
  color: var(--abt-ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ซ่อนเฉพาะเมื่อสลับหมวดแล้วไม่มีข้อมูล (ไม่ให้ flex ทับ [hidden]) */
.abt-meta > div.abt-is-off {
  display: none;
}

/* --- เนื้อหาจาก departments.html_content --- */
.abt-body {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.95;
  color: var(--abt-body);
  text-wrap: pretty;
}

.abt-body p {
  margin: 0 0 1.2em;
}

.abt-body h3,
.abt-body h4 {
  margin: 2.1em 0 0.85em;
  padding-left: 13px;
  border-left: 1px solid var(--abt-gold);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--abt-ink-deep);
}

.abt-body strong,
.abt-body b {
  font-weight: 600;
  color: var(--abt-ink-deep);
}

.abt-body img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

.abt-body ul,
.abt-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.abt-body li {
  margin-bottom: 0.5em;
}

.abt-body a {
  color: var(--church-ocean-deep, #0b7294);
  text-underline-offset: 3px;
}

/* ตาราง: ใช้ทั้ง HTML เดิมและตารางที่สร้างจากทะเบียน */
.abt-body table,
.abt-ledger table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.abt-body table td,
.abt-body table th {
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid var(--abt-hair);
  vertical-align: top;
  font-size: 0.95rem;
}

.abt-body table img {
  max-width: 130px;
}

/* ตาราง HTML เดิมเป็นการ์ดภาพ 2-3 คอลัมน์ ไม่ใช่ตารางข้อมูล */
.abt-body table td img {
  display: inline-block;
}

.abt-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.2rem 0;
}

/* ==========================================================
   7. รายชื่อแบบมีภาพ (คณะเล็ก)
========================================================== */
.abt-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
  margin: 0 0 8px;
}

.abt-person {
  text-align: center;
}

.abt-person-photo {
  position: relative;
  padding: 7px;
  background: var(--abt-white);
  box-shadow: 0 10px 26px rgba(20, 26, 62, 0.1);
  transition: box-shadow 0.5s ease;
}

.abt-person-photo::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 4;
  border: 1px solid var(--abt-pink-soft);
  pointer-events: none;
}

.abt-person:hover .abt-person-photo {
  box-shadow: 0 18px 40px rgba(20, 26, 62, 0.16);
}

.abt-person-frame {
  position: relative;
  padding-top: 118%;
  overflow: hidden;
  background: linear-gradient(165deg, #eef1f7, #dde7ee);
}

.abt-person-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(20, 26, 62, 0.28));
}

.abt-person-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.9s ease;
}

.abt-person:hover .abt-person-frame img {
  transform: scale(1.035);
}

/* ช่องภาพของบัตร: ไม่มีภาพถ่าย -> monogram (หรือภาพเงากลาง ๆ) เต็มช่อง */
.abt-person-frame > .person-mono {
  position: absolute;
  inset: 0;
  transition: transform 0.9s ease;
}

.abt-person:hover .abt-person-frame > .person-mono {
  transform: scale(1.035);
}

/* แผ่นเงาใต้ภาพมีไว้ให้ตัวหนังสือบนภาพอ่านได้ — ไม่ต้องใช้กับ monogram */
.abt-person-frame.is-mono::after {
  display: none;
}

.abt-person-body {
  padding: 16px 4px 0;
}

.abt-person-role {
  display: block;
  margin-bottom: 7px;
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--abt-gold-dark);
}

.abt-person-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--abt-ink-deep);
}

.abt-person-alias {
  display: block;
  margin-top: 5px;
  font-size: 0.73rem;
  font-weight: 400;
  color: var(--abt-muted);
}

/* ชื่อม้ง: บรรทัดรองใต้ชื่อไทย ใช้เพื่อระบุตัวบุคคล ไม่ใช่คำแปล */
.abt-person-hmong {
  display: block;
  margin-top: 3px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--abt-muted);
}

.abt-person-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(20, 26, 62, 0.16);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--abt-ink);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.abt-person-tel svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.6;
  color: var(--abt-gold-rich);
}

.abt-person-tel:hover {
  color: var(--abt-gold-dark);
  border-bottom-color: var(--abt-gold-dark);
}

/* ==========================================================
   7b. ช่องทางติดต่อ — แบบ A "เงียบ"
   กรอบบาง 1px ไอคอนสีหมึกจาง เปลี่ยนเป็นทองเมื่อชี้
   จงใจไม่ใช้สีแบรนด์: หน้าหนึ่งมีการ์ดหลายใบ สี่สีแข่งกันจะกลายเป็นความวุ่นวาย
========================================================== */
.abt-body .abt-soc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.abt-body .abt-soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--abt-hair);
  border-radius: 2px;
  background: var(--abt-white);
  color: rgba(20, 26, 62, 0.58);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.abt-body .abt-soc:hover,
.abt-body .abt-soc:focus-visible {
  color: var(--abt-gold-dark);
  border-color: var(--abt-gold);
  background: var(--abt-gold-faint);
}

/* ในตารางทะเบียนเล็กลงหนึ่งขั้น เพื่อไม่ให้แถวสูงเกินจังหวะของตาราง */
.abt-body .abt-soc--sm {
  width: 26px;
  height: 26px;
  font-size: 13px;
}

/* ==========================================================
   8. ทะเบียนรายชื่อแบบตาราง (คณะใหญ่)
========================================================== */
.abt-ledger {
  border-top: 1px solid var(--abt-ink);
}

/* ตารางทะเบียนมีจังหวะของตัวเอง ไม่ใช้ค่า padding/border ของตาราง HTML ทั่วไป */
.abt-body .abt-ledger th {
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid var(--abt-hair);
}

.abt-body .abt-ledger td {
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid var(--abt-hair);
  vertical-align: middle;
}

.abt-ledger th {
  padding: 11px 12px;
  border-bottom: 1px solid var(--abt-hair);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: left;
  white-space: nowrap;
  color: var(--abt-gold-dark);
}

.abt-ledger td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--abt-hair);
  font-size: 0.92rem;
  font-weight: 400;
  vertical-align: middle;
  color: var(--abt-body);
}

.abt-ledger tbody tr {
  transition: background 0.2s ease;
}

.abt-ledger tbody tr:hover {
  background: var(--abt-gold-faint);
}

.abt-ledger .abt-col-num {
  width: 52px;
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--abt-gold-dark);
  font-variant-numeric: tabular-nums;
}

.abt-ledger .abt-who {
  display: flex;
  align-items: center;
  gap: 13px;
}

.abt-ledger .abt-who img,
.abt-ledger .abt-who .person-mono {
  flex: 0 0 auto;
  width: 40px;
  height: 48px;
  border-radius: 2px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 2px 8px rgba(20, 26, 62, 0.14);
}

.abt-ledger .abt-who .person-mono {
  box-shadow: inset 0 0 0 1px var(--abt-hair);
}

/* ช่องเล็ก 40×48: ลายหยักต้องละเอียดกว่า ไม่ใช่ฟันเลื่อยหยาบ */
.abt-ledger .abt-who .person-mono::after {
  height: 4px;
  background-size: 14px 4px;
}

.abt-ledger .abt-who b {
  display: block;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--abt-ink-deep);
}

.abt-ledger .abt-who small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--abt-muted);
}

.abt-ledger .abt-who small.abt-hmong {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ฝ่าย/แผนกของบุคคล — หนึ่งคนอยู่ได้หลายฝ่าย หลายคริสตจักร
   บรรทัดเสริมใต้ชื่อ ใช้ตัวอักษรชุดเดียวกับชื่อรอง ไม่แตะการ์ด/รูป/ระยะเดิม */
.abt-ledger .abt-who > span {
  min-width: 0;
}

.abt-ledger .abt-affil {
  display: block;
  margin-top: 6px;
}

.abt-ledger .abt-who small.abt-affil-line {
  margin-top: 0;
  font-size: 0.71rem;
  line-height: 1.6;
  color: var(--abt-muted);
}

.abt-ledger .abt-role span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.abt-ledger .abt-role span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--abt-gold);
  flex-shrink: 0;
}

.abt-ledger .abt-tel {
  white-space: nowrap;
  color: var(--abt-ink);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.abt-ledger .abt-tel:hover {
  color: var(--abt-gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.abt-ledger .abt-tel--none {
  color: #b6bcc7;
}

/* คอลัมน์ช่องทาง: ชิดขวาเพื่อให้ขอบขวาของตารางตรงกันทุกแถว */
.abt-ledger .abt-col-soc {
  width: 118px;
}

.abt-ledger .abt-col-soc .abt-soc-row {
  margin-top: 0;
  justify-content: flex-end;
}

.abt-ledger-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 2px 0;
  font-size: 0.77rem;
  font-weight: 400;
  color: var(--abt-muted);
}

.abt-ledger-note b {
  color: var(--abt-ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================
   9. สถานะว่าง
========================================================== */
.abt-empty {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 30px 30px;
  background: var(--abt-white);
  border: 1px solid var(--abt-hair);
  border-top: 1px solid var(--abt-gold);
  border-radius: 2px;
}

.abt-empty-orn {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 50%;
  color: var(--abt-gold-rich);
}

.abt-empty-orn svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.3;
}

.abt-empty h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--abt-ink-deep);
}

.abt-empty p {
  margin: 0;
  max-width: 52ch;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--abt-muted);
}

/* ทางออกจากหน้าที่ว่าง: กลับไปเลือกหมวดอื่นได้ ไม่ต้องกด back เพราะเอง */
.abt-empty-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(180, 83, 9, 0.4);
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--abt-gold-dark);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.abt-empty-link i {
  font-size: 13px;
}

.abt-empty-link:hover {
  color: var(--abt-gold-rich);
  border-bottom-color: var(--abt-gold-rich);
}

/* ==========================================================
   10. ก่อนหน้า / ถัดไป
========================================================== */
.abt-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 44px;
  background: var(--abt-hair);
  border: 1px solid var(--abt-hair);
  border-radius: 2px;
  overflow: hidden;
}

.abt-pager a {
  display: block;
  padding: 18px 22px;
  background: var(--abt-white);
  text-decoration: none;
  transition: background 0.25s ease;
}

.abt-pager a:hover {
  background: var(--abt-gold-faint);
}

.abt-pager small {
  display: block;
  margin-bottom: 6px;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--abt-gold-dark);
}

.abt-pager strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--abt-ink-deep);
}

.abt-pager a.abt-next {
  text-align: right;
}

.abt-pager a.abt-none {
  background: #f7f5f0;
  pointer-events: none;
}

.abt-pager a.abt-none strong {
  color: #b6bcc7;
}

/* ==========================================================
   11. มือถือ: แถบตัวเลือก + ลิ้นชัก (โครงเดิม ยังไม่ redesign)
========================================================== */
.abt-mobile-bar {
  position: -webkit-sticky;
  position: sticky;
  top: var(--church-mobile-header-offset, 0px);
  z-index: 100;
  padding: 4px 0;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid rgba(20, 26, 62, 0.08);
  box-shadow: 0 1px 3px rgba(20, 26, 62, 0.03);
  transition: top 0.2s ease;
}

.scrolled .abt-mobile-bar,
.has-sticky-header .abt-mobile-bar {
  top: 60px;
}

/* Nút Picker Capsule mỏng nhẹ chuẩn iOS Native */
.abt-picker-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  height: 38px;
  min-height: 38px;
  padding: 0 12px 0 8px;
  border: 0.5px solid rgba(20, 26, 62, 0.1);
  border-radius: 999px;
  background: #f1f4fb;
  color: var(--abt-ink-deep, #0f172a);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.abt-picker-btn:hover {
  background: #e9eef8;
  border-color: rgba(20, 26, 62, 0.16);
}

.abt-picker-btn:active {
  background: #dfe6f5;
  transform: scale(0.992);
}

/* Icon tròn nhỏ phía trước */
.abt-picker-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(27, 37, 89, 0.08);
  color: var(--church-navy-primary, #1b2559);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* Dòng chữ ngang gọn gàng (Single line layout) */
.abt-picker-text-wrap {
  display: flex;
  align-items: center;
  flex-grow: 1;
  min-width: 0;
  gap: 0;
  overflow: hidden;
  white-space: nowrap;
}

.abt-picker-btn .abt-picker-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  flex-shrink: 0;
  line-height: 1;
}

.abt-picker-sep {
  display: inline-block;
  font-size: 12px;
  color: #94a3b8;
  margin: 0 6px;
  flex-shrink: 0;
  user-select: none;
}

.abt-picker-btn strong.current-title-label,
.abt-picker-btn strong {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-grow: 1;
  min-width: 0;
  line-height: 1.2;
}

.abt-picker-caret {
  font-size: 12px;
  color: #94a3b8;
  flex-shrink: 0;
  margin-left: auto;
}

.abt-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--abt-hair);
  border-radius: 50px;
  background: var(--abt-canvas);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--church-ocean-deep, #0b7294);
}

.abt-offcanvas {
  width: 320px;
  max-width: 85vw;
  border-right: 3px solid var(--abt-gold);
}

.abt-offcanvas .offcanvas-header {
  padding: 16px 20px;
  background: var(--abt-ink);
  color: var(--abt-white);
}

.abt-offcanvas .offcanvas-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--abt-white);
}

.abt-offcanvas .offcanvas-body {
  background: var(--abt-canvas);
}

.abt-offcanvas .btn-close {
  padding: 0.9rem;
  margin: -0.35rem -0.35rem -0.35rem auto;
  filter: invert(1) grayscale(100%) brightness(200%);
}

.abt-drawer-group + .abt-drawer-group {
  margin-top: 16px;
}

.abt-offcanvas-body--single .abt-drawer-head {
  display: none;
}

.abt-drawer-head {
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: rgba(26, 34, 88, 0.05);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--abt-ink);
}

.abt-drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--abt-body);
  text-decoration: none;
}

.abt-drawer-item:hover {
  background: var(--abt-white);
  color: var(--abt-ink);
}

.abt-drawer-item[aria-current="page"] {
  background: var(--abt-ink);
  color: var(--abt-white);
  font-weight: 600;
}

.abt-drawer-item[aria-current="page"] i {
  color: var(--abt-gold-bright);
}

.abt-drawer-item .abt-n {
  flex: 0 0 20px;
  font-size: 0.7rem;
  color: var(--abt-gold-dark);
  font-variant-numeric: tabular-nums;
}

.abt-drawer-item[aria-current="page"] .abt-n {
  color: var(--abt-gold-bright);
}

/* ==========================================================
   12. จอแคบ: ลดขนาดโครงสร้าง ไม่ใช่ย่อทั้งหน้า
========================================================== */
@media (max-width: 991.98px) {
  .abt-page {
    padding-top: 0;
  }

  .abt-masthead {
    padding: 28px 22px 30px;
  }

  .abt-masthead-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .abt-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .abt-index-col {
    border-right: 0;
    border-bottom: 1px solid var(--abt-hair);
  }

  .abt-index-col:last-child {
    border-bottom: 0;
  }

  .abt-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .abt-rail {
    display: none;
  }

  .abt-people {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .abt-empty {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .abt-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .abt-pager a.abt-next {
    text-align: left;
  }

  .abt-body {
    font-size: 1rem;
    line-height: 1.85;
  }
}

/* Joc nhỏ: bảng thành khối — 4 cột không đủ, và cuộn ngang không phải câu trả lời nhìn thấy được */
@media (max-width: 640px) {
  .abt-body .abt-ledger thead {
    display: none;
  }

  .abt-body .abt-ledger table,
  .abt-body .abt-ledger tbody,
  .abt-body .abt-ledger tr,
  .abt-body .abt-ledger td {
    display: block;
  }

  .abt-body .abt-ledger tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "who  num"
      "role role"
      "tel  tel"
      "soc  soc";
    gap: 6px 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--abt-hair);
  }

  .abt-body .abt-ledger td {
    padding: 0;
    border: 0;
  }

  .abt-body .abt-ledger .abt-col-num {
    grid-area: num;
    width: auto;
    padding-top: 5px;
    text-align: right;
  }

  .abt-body .abt-ledger td:nth-child(2) {
    grid-area: who;
  }

  .abt-body .abt-ledger td.abt-role {
    grid-area: role;
    padding-left: 53px;
  }

  .abt-body .abt-ledger td:nth-child(4) {
    grid-area: tel;
    padding-left: 53px;
  }

  .abt-body .abt-ledger .abt-col-soc {
    grid-area: soc;
    width: auto;
    padding-left: 53px;
  }

  .abt-body .abt-ledger .abt-col-soc .abt-soc-row {
    justify-content: flex-start;
  }

  /* นิ้วต้องการเป้ากดที่ใหญ่กว่าตา — 40px เท่ากับความกว้างกรอบภาพในตาราง */
  .abt-body .abt-soc,
  .abt-body .abt-soc--sm {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* ==========================================================
   9. เส้นเวลาประวัติศาสตร์ (list 1 · ประวัติความเป็นมา)
   โทนสงบ: เส้นบางสีทอง ตัวเลขปีสีน้ำตาลทอง เนื้อความสีหมึก
========================================================== */
.abt-tl {
  margin: 0 0 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--abt-hair);
}

.abt-tl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.abt-tl-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0 18px;
}

.abt-body .abt-tl-year {
  padding-top: 3px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: right;
  color: var(--abt-gold-dark);
  font-variant-numeric: tabular-nums;
}

.abt-tl-content {
  position: relative;
  padding: 0 0 1.6rem 20px;
  border-left: 1px solid var(--abt-rail-line);
}

.abt-tl-content::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--abt-gold-rich);
  box-shadow: 0 0 0 4px var(--abt-gold-faint);
}

.abt-tl-item:last-child .abt-tl-content {
  padding-bottom: 0;
  border-left-color: transparent;
}

.abt-body .abt-tl-title {
  padding-left: 0;
  border-left: 0;
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--abt-ink);
}

.abt-body .abt-tl-body {
  margin: 0;
  max-width: 62ch;
  font-size: 0.89rem;
  line-height: 1.85;
  color: var(--abt-muted);
}

.abt-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--abt-hair);
}

.abt-stat {
  flex: 1 1 118px;
  padding: 0.75rem 1rem;
  background: var(--abt-gold-faint);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 2px;
}

.abt-body .abt-stat b {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--abt-ink);
}

.abt-body .abt-stat span {
  display: block;
  margin-top: 2px;
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  color: var(--abt-gold-dark);
}

/* ==========================================================
   10. หน้าเอกสารนโยบาย (list 13 · นโยบาย)
========================================================== */
.abt-policy-lead {
  max-width: var(--abt-measure);
}

.abt-body .abt-policy-lead p {
  margin: 0 0 1em;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--abt-body);
}

.abt-policy-lead p:last-child {
  margin-bottom: 0;
}

.abt-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 1.9rem 0 1.7rem;
}

.abt-pillar {
  padding: 1.1rem 1.2rem 1.15rem;
  background: var(--abt-white);
  border: 1px solid var(--abt-hair);
  border-top: 2px solid var(--abt-gold);
  border-radius: 2px;
}

.abt-pillar-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--abt-gold-dark);
}

.abt-pillar-quote {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.75;
  color: var(--abt-ink);
}

.abt-pillar-ref {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--abt-muted);
}

.abt-body .abt-policy-leadline {
  max-width: var(--abt-measure);
  margin: 0 0 1.5rem;
  font-size: 0.91rem;
  line-height: 1.85;
  color: var(--abt-muted);
}

/* บทนำนโยบายแก้ผ่าน trình soạn thảo nên có thể làหลายย่อหน้า —
   khung ngoài giữ nhịp cũ, các đoạn bên trong không cộng thêm lề. */
.abt-body .abt-policy-leadline p {
  margin: 0;
}

.abt-body .abt-policy-leadline p + p {
  margin-top: 0.7em;
}

.abt-policy-block {
  padding: 1.5rem 0 1.6rem;
  border-top: 1px solid var(--abt-hair);
}

.abt-policy-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 0.7rem;
}

.abt-policy-no {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  color: var(--abt-gold-rich);
  font-variant-numeric: tabular-nums;
}

.abt-body .abt-policy-title {
  padding-left: 0;
  border-left: 0;
  margin: 0;
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--abt-ink);
}

.abt-body .abt-policy-intro {
  max-width: var(--abt-measure);
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--abt-body);
}

/* Đoạn dẫn do trình soạn thảo trả về có thể là nhiều <p> — khung ngoài giữ nhịp cũ */
.abt-body .abt-policy-intro p {
  margin: 0;
}

.abt-body .abt-policy-intro p + p {
  margin-top: 0.6em;
}

.abt-body .abt-policy-slabel {
  padding-left: 0;
  border-left: 0;
  margin: 1.15rem 0 0.55rem;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--abt-gold-dark);
}

.abt-policy-items {
  max-width: var(--abt-measure);
  margin: 0;
  padding-left: 1.15rem;
}

.abt-body .abt-policy-items li {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--abt-body);
}

.abt-policy-items li::marker {
  color: var(--abt-gold);
}

.abt-body .abt-policy-closing {
  margin: 2rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--abt-hair);
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--abt-gold-dark);
}

/* เอกสารฉบับเต็ม (พับเก็บ) */
.abt-fulltext {
  margin-top: 1.9rem;
  background: var(--abt-white);
  border: 1px solid var(--abt-hair);
  border-radius: 2px;
}

.abt-fulltext summary {
  padding: 0.85rem 1.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--abt-gold-dark);
  cursor: pointer;
}

.abt-fulltext[open] summary {
  border-bottom: 1px solid var(--abt-hair);
}

.abt-fulltext .abt-prose {
  padding: 1.2rem 1.4rem 1.4rem;
}

/* Bài đọc dài (văn bản gốc) */
.abt-prose {
  max-width: var(--abt-measure);
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--abt-body);
}

.abt-prose p {
  margin: 0 0 1em;
}

.abt-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

.abt-prose blockquote {
  margin: 1.2em 0;
  padding-left: 1rem;
  border-left: 2px solid var(--abt-gold);
  color: var(--abt-muted);
}

@media (max-width: 900px) {
  .abt-pillars {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .abt-tl-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0 12px;
  }

  .abt-tl-year {
    font-size: 0.76rem;
  }

  .abt-tl-content {
    padding-left: 16px;
  }

  .abt-policy-no {
    font-size: 1.25rem;
  }

  .abt-stat {
    flex: 1 1 90px;
    padding: 0.65rem 0.75rem;
  }

  .abt-stat b {
    font-size: 1.3rem;
  }
}

/* ==========================================================
   11. แถบเครื่องมือทะเบียน (ค้นหา · กรอง · แบ่งหน้า)
   เรียบ สงบ ใช้เส้นบางและสีทองเฉพาะตอนโฟกัส/เลือก
========================================================== */
.abt-listbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--abt-hair);
}

.abt-listbar-search {
  position: relative;
  flex: 1 1 240px;
}

.abt-listbar-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  stroke-width: 1.6;
  color: var(--abt-muted);
  pointer-events: none;
}

.abt-listbar-search input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--abt-ink);
  background: var(--abt-white);
  border: 1px solid var(--abt-hair);
  border-radius: 2px;
}

.abt-listbar-search input:focus {
  outline: none;
  border-color: var(--abt-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.abt-listbar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.abt-chip {
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--abt-muted);
  background: transparent;
  border: 1px solid var(--abt-hair);
  border-radius: 2px;
  cursor: pointer;
}

.abt-chip:hover {
  border-color: var(--abt-gold);
  color: var(--abt-gold-dark);
}

.abt-chip.is-active {
  background: var(--abt-gold-faint);
  border-color: var(--abt-gold);
  color: var(--abt-gold-dark);
}

.abt-listbar-count {
  margin-left: auto;
  font-size: 0.76rem;
  color: var(--abt-muted);
  font-variant-numeric: tabular-nums;
}

.abt-body .abt-ledger tbody tr.abt-row-off {
  display: none;
}

/* Lưới thẻ chân dung (dùng chung CSS với /districts): bộ điều khiển danh sách
   ẩn/hiện từng thẻ bằng cùng class .abt-row-off. */
.abt-body .abt-cards [data-lc-item].abt-row-off {
  display: none;
}

/* Khối thẻ bám đúng cột chữ 760px để lưới 2 cột canh giữa, không lệch phải */
.abt-body .abt-cards {
  max-width: var(--abt-measure, 760px);
}

/* Nhãn chức danh phủ góc trái trên thẻ chân dung — HIỆN LẠI (Sếp chốt 2026-11-13).
   Trước đó bị ẩn (2026-11-11) vì cho rằng trùng lặp với tiêu đề mục; nay Sếp muốn
   thấy «ประธาน / รองประธาน / เหรัญญิก / เลขานุการ» ngay trên từng thẻ như /districts.
   Không khai báo lại `display` ở đây: để rule `.church-county-section
   .card-apple-glass .c5-top-ribbon` trong profile-card-apple-glass.css tự áp dụng
   (flex + top/left 12px) — một nguồn duy nhất, không nhân đôi thuộc tính. */

/* Thanh tìm kiếm / phân trang / dòng ghi chú canh đúng bề rộng lưới thẻ
   (bề rộng thẻ + rãnh) × số cột — 2 cột hay 3 cột đều thẳng mép. */
@media (min-width: 992px) {
  .abt-body .abt-cards .abt-listbar,
  .abt-body .abt-cards .abt-lc-pager,
  .abt-body .abt-cards .abt-ledger-note,
  .abt-body .abt-cards .abt-lc-empty {
    max-width: calc((var(--county-card-w, 290px) + 16px) * var(--county-cols, 2));
    margin-left: auto;
    margin-right: auto;
  }
}

.abt-lc-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
}

.abt-lc-pager button {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--abt-ink);
  background: var(--abt-white);
  border: 1px solid var(--abt-hair);
  border-radius: 2px;
  cursor: pointer;
}

.abt-lc-pager button:hover:not(:disabled) {
  border-color: var(--abt-gold);
  color: var(--abt-gold-dark);
}

.abt-lc-pager button.is-active {
  background: var(--abt-ink);
  border-color: var(--abt-ink);
  color: #ffffff;
}

.abt-lc-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

.abt-lc-gap {
  padding: 0 4px;
  color: var(--abt-muted);
}

.abt-lc-empty {
  padding: 26px 0;
  text-align: center;
}

.abt-lc-empty p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--abt-muted);
}

.abt-lc-reset {
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--abt-gold-dark);
  background: transparent;
  border: 1px solid var(--abt-gold);
  border-radius: 2px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .abt-listbar-count {
    margin-left: 0;
    flex-basis: 100%;
  }
}

/* ==========================================================
   12. บทความประวัติศาสตร์แบบแบ่งช่วง (list 1)
   ภาพประกอบแยกจากการไหลของข้อความ + เปิดดูเต็มทีละภาพ
========================================================== */
.abt-article-lead {
  max-width: var(--abt-measure);
  margin: 0 0 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--abt-hair);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--abt-muted);
}

.abt-body .abt-chapter {
  margin: 2.6rem 0 1.1rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--abt-hair);
}

.abt-body .abt-chapter:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.abt-chapter-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--abt-gold-dark);
}

.abt-body .abt-chapter-title {
  margin: 0;
  padding-left: 0;
  border-left: 0;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--abt-ink);
}

.abt-figrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 1.5rem 0;
}

.abt-figrow--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.abt-fig {
  margin: 0;
}

.abt-fig-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--abt-white);
  border: 1px solid var(--abt-hair);
  border-radius: 2px;
}

.abt-fig-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.abt-figrow--duo .abt-fig-link {
  aspect-ratio: 16 / 10;
}

.abt-figrow--duo .abt-fig-link img {
  height: 100%;
  object-fit: cover;
}

.abt-fig-link:hover img {
  transform: scale(1.02);
}

.abt-fig-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: rgba(20, 26, 62, 0.74);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.abt-fig-link:hover .abt-fig-hint,
.abt-fig-link:focus-visible .abt-fig-hint {
  opacity: 1;
}

.abt-fig figcaption {
  margin-top: 8px;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--abt-muted);
}

@media (max-width: 640px) {
  .abt-figrow--duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .abt-figrow--duo .abt-fig-link {
    aspect-ratio: auto;
  }

  .abt-body .abt-chapter {
    margin-top: 2rem;
  }
}

/* ==========================================================
   13. หัวเอกสารนโยบาย (doc_title + badge + ตราสัญลักษณ์)
========================================================== */
.abt-policy-dochead {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--abt-hair);
}

.abt-policy-emblem {
  flex: none;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.abt-policy-badge {
  display: block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--abt-gold-dark);
}

.abt-body .abt-policy-doctitle {
  margin: 0;
  padding-left: 0;
  border-left: 0;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--abt-ink);
}

@media (max-width: 640px) {
  .abt-policy-dochead {
    gap: 12px;
  }

  .abt-policy-emblem {
    width: 52px;
    height: 52px;
  }

  .abt-body .abt-policy-doctitle {
    font-size: 0.98rem;
  }
}

/* ==========================================================
   MỤC 10 — BAN NGÀNH CỦA คริสตจักรภาคที่ 20
   Desktop: kiểu "sổ" — mỗi ban ngành một dải (số · tên · loại · số người),
   danh sách người xếp 2 cột nên trang ngắn và không còn cột trống.
   Không có vùng cuộn riêng bên trong.
   Mobile ≤860px: gập/mở kiểu Q&A (JS ở about.php thêm .is-accordion).
========================================================== */
.abt-dept {
  border: 1px solid var(--abt-hair);
  border-radius: 14px;
  background: var(--abt-white);
}

.abt-dept-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  grid-template-areas:
    "no id type toggle"
    "people people people people";
  column-gap: 12px;
  row-gap: 12px;
  align-items: center;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--abt-hair);
}

.abt-dept-item:first-of-type {
  border-top: 0;
}

.abt-dept-no {
  grid-area: no;
  color: var(--abt-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

/* Tên + tên tiếng Anh trên cùng một dòng, canh theo đường chân chữ */
.abt-dept-id {
  grid-area: id;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
  min-width: 0;
}

/* `.abt-body h3` (0,1,1) đè `.abt-dept-name` (0,1,0) → cần selector cha */
.abt-dept-id > .abt-dept-name {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--abt-ink);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
}

.abt-dept-name-alt {
  color: var(--abt-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.abt-dept-type {
  grid-area: type;
  justify-self: end;
  min-width: 0;
}

.abt-dept-chip {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--abt-gold-pale);
  border-radius: 999px;
  background: var(--abt-gold-faint);
  color: var(--abt-gold-dark);
  font-size: 0.76rem;
  line-height: 1.6;
  white-space: nowrap;
}

.abt-dept-dash {
  color: var(--abt-muted);
  font-size: 0.82rem;
}

/* Desktop: nút gập/mở chỉ còn là con số (do JS set disabled) */
.abt-dept-toggle {
  grid-area: toggle;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  justify-self: end;
  min-width: 58px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--abt-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  white-space: nowrap;
}

.abt-dept-toggle[disabled] {
  opacity: 1;
}

/* i[class*="ph-"] của phosphor (0,1,1) đè .abt-dept-caret (0,1,0) → cần 0,2,0 */
.abt-dept-toggle .abt-dept-caret {
  display: none;
}

/* Thụt vào đúng bằng cột số + khoảng cách để danh sách người thẳng hàng
   với tên ban ngành (không thụt theo cột số). */
.abt-dept-people {
  grid-area: people;
  min-width: 0;
  padding-left: 50px;
}

/* `.abt-body ul` (0,1,1) đè `.abt-dept-list` (0,1,0) → phải có selector cha */
.abt-dept-people > .abt-dept-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Mỗi người là một "hàng" trọn bề ngang cột: nút liên hệ nằm cuối hàng
   nên khoảng trống giữa tên và nút đọc như padding, không phải lỗ hổng.
   Selector có `.abt-dept-list >` để thắng `.abt-body li { margin-bottom }`. */
.abt-dept-list > .abt-dept-person {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  grid-template-areas: "ava main actions";
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0 -10px;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background-color 0.16s ease;
}

.abt-dept-ava {
  grid-area: ava;
}

.abt-dept-person-main {
  grid-area: main;
}

.abt-dept-actions {
  grid-area: actions;
}

.abt-dept-list > .abt-dept-person:hover {
  background: var(--abt-paper);
}

.abt-dept-ava {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--abt-paper);
  color: var(--abt-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.abt-dept-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.abt-dept-person-main {
  min-width: 0;
}

.abt-dept-person-name {
  display: block;
  overflow-wrap: anywhere;
  color: var(--abt-ink);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.abt-dept-person-meta {
  display: block;
  color: var(--abt-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.abt-dept-person-meta i {
  font-size: 0.85em;
  vertical-align: -0.05em;
}

/* Nút liên hệ: luôn hiện đủ, không cắt, không phụ thuộc hover */
.abt-dept-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.abt-dept-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--abt-hair);
  border-radius: 999px;
  background: var(--abt-white);
  color: var(--abt-muted);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.abt-dept-act:hover,
.abt-dept-act:focus-visible {
  border-color: var(--abt-gold);
  background: var(--abt-gold-faint);
  color: var(--abt-gold-dark);
}

.abt-dept-act i {
  font-size: 0.95em;
}

.abt-dept-people > .abt-dept-empty {
  margin: 0;
  color: var(--abt-muted);
  font-size: 0.82rem;
}

/* ------------------------------------------------------------------
   Mobile: mỗi ban ngành là một mục Q&A
------------------------------------------------------------------ */
@media (max-width: 860px) {
  .abt-dept {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .abt-dept-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "id toggle"
      "type type"
      "people people";
    column-gap: 10px;
    row-gap: 8px;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid var(--abt-hair);
    border-radius: 12px;
    background: var(--abt-white);
    transition: border-color 0.18s ease;
  }

  .abt-dept-item:first-of-type {
    border-top: 1px solid var(--abt-hair);
  }

  .abt-dept-item:last-child {
    margin-bottom: 0;
  }

  .abt-dept-item.is-open {
    border-color: var(--abt-gold-pale);
  }

  .abt-dept-no {
    display: none;
  }

  .abt-dept-type {
    justify-self: start;
  }

  .abt-dept-people {
    padding-left: 0;
  }

  .abt-dept-people > .abt-dept-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .abt-dept-toggle {
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--abt-hair);
    border-radius: 999px;
    background: var(--abt-white);
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.16s ease, color 0.16s ease;
  }

  .abt-dept-toggle[disabled] {
    cursor: pointer;
  }

  .abt-dept-toggle:hover,
  .abt-dept-toggle:focus-visible {
    border-color: var(--abt-gold);
    color: var(--abt-gold-dark);
  }

  .abt-dept-toggle .abt-dept-caret {
    display: inline-flex;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
  }

  .abt-dept-item.is-open .abt-dept-caret {
    transform: rotate(180deg);
  }

  /* Chỉ ẩn khi JS đã bật chế độ accordion — không có JS thì vẫn thấy đủ */
  .abt-dept.is-accordion .abt-dept-people {
    display: none;
    margin-top: 2px;
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid var(--abt-hair);
  }

  .abt-dept.is-accordion .abt-dept-item.is-open .abt-dept-people {
    display: block;
  }

  /* Một người = một hàng dọc: avatar + tên, các nút liên hệ xuống dòng riêng.
     Nhờ vậy thêm email/Facebook/YouTube vẫn không bóp hẹp tên. */
  .abt-dept-list > .abt-dept-person {
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas:
      "ava main"
      "ava actions";
    align-items: start;
    column-gap: 10px;
    row-gap: 0;
  }

  /* Dùng margin thay row-gap: người không có kênh liên hệ thì hàng nút
     rỗng, row-gap vẫn tính 7px làm mỗi dòng cao thêm vô ích. */
  .abt-dept-actions {
    justify-self: start;
    margin-top: 7px;
  }

  .abt-dept-ava {
    width: 32px;
    height: 32px;
  }

  .abt-dept-act {
    height: 32px;
    padding: 0 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abt-dept-caret,
  .abt-dept-item,
  .abt-dept-toggle,
  .abt-dept-act,
  .abt-dept-list > .abt-dept-person {
    transition: none;
  }
}
