/* ===== PinPro — สีและฟอนต์ (แก้ตรงนี้ที่เดียว) =====
   โทน A: น้ำเงินกรมท่า (น่าเชื่อถือ) + ฟ้า Google (นึกถึง Google Maps) + ทอง (จุดเด่น)
   หมายเหตุ: ชื่อตัวแปร --pink / --orange เก็บไว้เหมือนเดิม แต่ตอนนี้คือ ฟ้า Google / น้ำเงินเข้ม */
:root {
  --navy: #0b1f3a;      /* พื้นเข้ม: น้ำเงินกรมท่า */
  --navy-2: #13294b;
  --navy-3: #1e3a66;
  --pink: #1a73e8;      /* ฟ้า Google: ปุ่มหลัก */
  --orange: #0b57d0;    /* น้ำเงินเข้มกว่า: ปลายไล่สีปุ่ม */
  --gold: #f9ab00;      /* ทอง: ดาวรีวิว / จุดเด่น */
  --brand-navy: #0a2d63; /* สีโลโก้: กรมท่า (คำว่า Pin) */
  --brand-red: #e31e24;  /* สีโลโก้: แดงหมุด (คำว่า Pro) */
  --soft: #eef4fd;      /* ฟ้าอ่อนมาก: พื้นหลังส่วนสลับ */
  --text: #142033;
  --muted: #5b6577;
  --line: #e3e8f0;
  --white: #ffffff;
  --grad: linear-gradient(110deg, var(--pink) 0%, var(--orange) 100%);
  --grad-light: linear-gradient(110deg, #8ab4f8 0%, #fdd663 100%); /* ตัวอักษรไล่สีบนพื้นเข้ม */
  --link: #1557b0;      /* สีลิงก์ในเนื้อหา */
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 31, 58, .12);
  --head: "Kanit", "Trebuchet MS", sans-serif;
  --body: "Sarabun", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .grad-text, .bg-navy .grad-text, .modal-side .grad-text { background-image: var(--grad-light); }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-family: var(--head); font-weight: 600; font-size: .85rem; letter-spacing: .06em; padding: 4px 14px; border-radius: 99px; background: var(--grad); color: #fff; margin-bottom: 14px; }

/* ===== ปุ่ม ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: 1.05rem; padding: 12px 26px; border-radius: 10px; border: 0; cursor: pointer; text-decoration: none; color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(26, 115, 232, .3); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(26, 115, 232, .4); }
.btn-ghost { background: transparent; border: 2px solid currentColor; box-shadow: none; color: var(--navy); }
.btn-line { background: #06c755; box-shadow: 0 8px 20px rgba(6, 199, 85, .3); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 30px; width: auto; display: block; }
@media (max-width: 420px) { .logo img { height: 26px; } }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover, .nav a.active { color: var(--pink); }
.site-header .btn { padding: 9px 18px; font-size: .95rem; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.3rem; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .menu-btn { display: block; }
  .site-header .btn { margin-left: auto; }
}
@media (max-width: 420px) { .site-header .btn { display: none; } .menu-btn { margin-left: auto; } }

/* ===== Hero (ส่วนบนสุดพื้นเข้ม) ===== */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 70px 0 110px; background: radial-gradient(circle at 20% 10%, var(--navy-3), transparent 50%), var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 120px; background: #fff; border-radius: 50% 50% 0 0; }
.hero .wrap { position: relative; z-index: 1; }
.hero p { font-size: 1.15rem; max-width: 680px; margin: 0 auto 28px; color: #d8dcea; }
.avatar { width: 150px; height: 150px; margin: 0 auto 24px; border-radius: 50%; padding: 5px; background: linear-gradient(175deg, var(--gold), var(--pink) 70%); }
.avatar img, .avatar span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--navy-2); font-size: 3.5rem; }
.hero-small { padding: 56px 0 90px; }
.hero-small h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-ghost { color: #fff; }

/* ===== Sections ===== */
section { padding: 70px 0; }
.bg-soft { background: var(--soft); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy .muted { color: #b8bfd6; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }

/* แถบโลโก้/ตัวเลข */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 18px 8px; }
.stat strong { display: block; font-family: var(--head); font-size: 2.4rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* การ์ด */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: var(--soft); margin-bottom: 14px; }
.card a.more { font-weight: 700; text-decoration: none; }
.bg-navy .card { background: var(--navy-2); border-color: var(--navy-3); color: #fff; }

/* รีวิว */
.review { position: relative; }
.review .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.review .who span { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 600; }
.review .who small { display: block; color: var(--muted); }

/* แพ็กเกจราคา */
.price { text-align: center; display: flex; flex-direction: column; }
.price .amount { font-family: var(--head); font-size: 2.6rem; font-weight: 700; margin: 6px 0; }
.price .amount small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.price ul { list-style: none; padding: 0; margin: 10px 0 24px; text-align: left; flex: 1; }
.price li { padding: 7px 0 7px 28px; border-bottom: 1px dashed var(--line); position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); font-weight: 700; }
.price.featured { border: 2px solid var(--pink); transform: scale(1.03); }
.price .tag { align-self: center; }

/* ขั้นตอน */
.steps { counter-reset: s; }
.step { position: relative; padding-left: 70px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 24px; top: 26px; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--head); font-weight: 700; display: grid; place-items: center; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
details p { margin: 12px 0 0; color: var(--muted); }

/* ===== ฟอร์ม ===== */
.form-box { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: 20px; padding: 36px; color: #fff; }
.form-box.light { background: #fff; border-color: var(--line); color: var(--text); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .form-box { padding: 24px; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--pink); border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 6px 0 14px; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.captcha { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.captcha b { font-family: var(--head); font-size: 1.2rem; white-space: nowrap; }
.captcha input { max-width: 160px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; margin-top: 14px; padding: 14px; border-radius: 10px; font-weight: 600; }
.form-msg.ok { display: block; background: #e6f9ee; color: #0b7a3b; }
.form-msg.err { display: block; background: #fde8ec; color: #b3002d; }
.fine { font-size: .85rem; opacity: .75; margin-top: 10px; }

/* ===== Popup ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: rgba(8, 12, 24, .7); }
.modal.open { display: grid; }
.modal-box { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(900px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 20px; background: #fff; }
.modal-side { background: linear-gradient(160deg, var(--navy-3), var(--navy)); color: #fff; padding: 36px; }
.modal-side h2 { font-size: 2rem; }
.modal-side ul { list-style: none; padding: 0; }
.modal-side li { padding: 6px 0 6px 30px; position: relative; }
.modal-side li::before { content: "✓"; position: absolute; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; font-size: .75rem; top: 10px; }
.modal-form { padding: 36px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; z-index: 2; }
@media (max-width: 760px) { .modal-box { grid-template-columns: 1fr; } .modal-side { padding: 26px; } .modal-side ul { display: none; } .modal-form { padding: 26px; } }

/* ===== บล็อก ===== */
.post-thumb { aspect-ratio: 16/9; border-radius: 12px; margin: -10px -10px 18px; background: var(--grad); display: grid; place-items: center; font-size: 3rem; }
.post-meta { font-size: .88rem; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #c7cde0; padding: 60px 0 24px; font-size: .95rem; }
.site-footer .logo { background: #fff; border-radius: 10px; padding: 6px 12px; margin-bottom: 14px; }
.site-footer .logo img { height: 26px; }
.footer-about { max-width: 760px; margin-bottom: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 36px; border-top: 1px solid var(--navy-3); }
.footer-cols h3 { font-size: .85rem; letter-spacing: .1em; color: #8d95b0; margin-bottom: 14px; }
.footer-cols a { display: block; color: #fff; text-decoration: none; padding: 4px 0; }
.footer-cols a:hover { color: var(--orange); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--navy-3); font-size: .85rem; }
.footer-bottom a { color: #c7cde0; text-decoration: none; margin-right: 16px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }

/* ปุ่มลอย LINE */
.float-line { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #06c755; color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 700; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.25); }

/* ===== หน้าบทความ ===== */
.crumbs { font-size: .9rem; color: #b8bfd6; margin-bottom: 12px; }
.crumbs a { color: #fff; text-decoration: none; }
.article { max-width: 760px; margin-inline: auto; }
.article h2 { font-size: 1.7rem; margin-top: 1.6em; }
.article h3 { margin-top: 1.2em; }
.article img { border-radius: 12px; margin: 20px 0; }
.article blockquote { margin: 20px 0; padding: 16px 20px; border-left: 4px solid var(--pink); background: var(--soft); border-radius: 0 12px 12px 0; }
.toc { background: var(--soft); border-radius: 12px; padding: 18px 24px; margin: 24px 0; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.author-box { display: flex; gap: 16px; align-items: center; margin-top: 40px; }

/* ===== หน้าผลงาน ===== */
.case .tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--pink); }
.flow { list-style: none; padding: 0; margin: 12px 0; }
.flow li { position: relative; padding: 4px 0 4px 26px; color: var(--muted); }
.flow li::before { content: "→"; position: absolute; left: 4px; color: var(--pink); font-weight: 700; }
.flow li.ok::before { content: "✓"; color: #0b7a3b; }
.flow li.ok { color: var(--text); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips span { padding: 8px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; }

/* ===== หน้าบริการ: แถบหลักฐาน + ตัวช่วยเลือกแพ็กเกจ ===== */
.pay-note { font-size: .8rem; color: var(--muted); margin: 8px 0 0; text-align: center; }
.trust-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 14px 18px; border-radius: var(--radius); background: var(--soft); margin-bottom: 22px; font-size: .95rem; }
.trust-bar a { font-weight: 700; text-decoration: none; }
.chooser { max-width: 760px; margin: 0 auto; text-align: center; }
.chooser h2 { font-size: 1.4rem; }
.chooser .step-no { color: var(--muted); font-size: .85rem; margin: 0 0 4px; }
.chooser .q { font-family: var(--head); font-size: 1.15rem; margin: 0 0 14px; }
.chooser .opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chooser .opts .btn { color: var(--navy); }
.chooser .result { padding: 6px 0; }
.chooser .result b { font-size: 1.2rem; }
.chooser .again { background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; margin-top: 10px; text-decoration: underline; }

/* ===== บทความ: ตาราง, สรุปสั้น, ป้ายแก้เองได้ ===== */
.article .byline { color: #b8bfd6; font-size: .95rem; }
.article table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap th { background: var(--navy); color: #fff; font-family: var(--head); font-weight: 600; text-align: left; padding: 10px 14px; white-space: nowrap; }
.table-wrap td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:nth-child(even) td { background: #f7f9fc; }
.tldr { background: var(--soft); border: 1px solid #cfe0fb; border-radius: 12px; padding: 18px 24px; margin: 24px 0; }
.tldr b:first-child { font-family: var(--head); }
.tldr ul { margin: 8px 0 0; padding-left: 20px; }
.fix { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.fix.diy { background: #e6f4ea; color: #137333; }
.fix.help { background: #fef7e0; color: #8a5a00; }
.fix.no { background: #fce8e6; color: #a50e0e; }
.article .steps { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px 14px 40px; }

/* ===== หน้ารวมบทความ: ปุ่มกรอง + การ์ดมีภาพปก (ภาพปกสร้างจากตัวหนังสือ ไม่ต้องใช้ไฟล์รูป) ===== */
.blog-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0 0 30px; }
.blog-filter button { font-family: var(--head); font-weight: 600; font-size: 1rem; padding: 10px 22px; border-radius: 99px;
  border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; box-shadow: 0 2px 8px rgba(11,31,58,.06); }
.blog-filter button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.blog-count { text-align: center; color: var(--muted); margin: -16px 0 24px; font-size: .95rem; }

.post-card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(11,31,58,.08); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11,31,58,.14); }
.post-card .body { padding: 22px 26px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat { font-family: var(--head); font-size: .82rem; font-weight: 600; letter-spacing: .06em; color: var(--brand-red); margin-bottom: 8px; }
.post-card h3 { font-size: 1.32rem; line-height: 1.35; margin: 0 0 10px; }
.post-card .excerpt { color: var(--muted); margin: 0 0 16px; flex: 1; }
.post-card .foot { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; font-size: .9rem; color: var(--muted); }
.post-card.soon { cursor: default; }
.post-card.soon .cover { filter: saturate(.55) brightness(.92); }
.post-card .soon-badge { position: absolute; top: 14px; right: 14px; z-index: 2; background: #fff; color: var(--navy); font-family: var(--head);
  font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 99px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

.cover { position: relative; aspect-ratio: 2/1; container-type: inline-size; overflow: hidden; display: flex; flex-direction: column;
  justify-content: center; padding: 0 6%; font-family: var(--head); font-weight: 700; line-height: 1.02; } /* padding ใช้ % เพราะ cqw บนตัว container เองจะอิงขนาดหน้าจอ */
.cover .l1 { font-size: 10.5cqw; }
.cover .l2 { font-size: 17.5cqw; letter-spacing: -.01em; }
.cover .l3 { font-size: 7cqw; margin-top: 2cqw; font-weight: 600; }
.cover.long .l2 { font-size: 14cqw; } /* ใช้กับหัวข้อตัวใหญ่ที่ยาว จะได้ไม่ชนไอคอน */
.cover .hl { display: inline-block; padding: 0 2.4cqw; border-radius: 1.6cqw; }
.cover .icon { position: absolute; right: 5cqw; bottom: 5cqw; font-size: 17cqw; line-height: 1; transform: rotate(-8deg); filter: drop-shadow(0 1cqw 1.5cqw rgba(0,0,0,.3)); }
.cover .mark { position: absolute; left: 7cqw; bottom: 3.5cqw; font-family: var(--body); font-size: 3.2cqw; font-weight: 600; opacity: .75; }
.cover::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% 18%, rgba(255,255,255,.16) 0 14cqw, transparent 14.2cqw),
              repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2cqw, transparent 2cqw 4cqw); }
.cover > * { position: relative; }
/* ธีมสี */
.cover.t-navy { background: var(--navy); color: #fff; }
.cover.t-navy .l2, .cover.t-navy .accent { color: var(--gold); }
.cover.t-gold { background: var(--gold); color: var(--navy); }
.cover.t-gold .hl { background: var(--navy); color: #fff; }
.cover.t-gold .l2 { color: var(--brand-red); }
.cover.t-blue { background: linear-gradient(120deg, var(--pink), var(--orange)); color: #fff; }
.cover.t-blue .hl { background: #fff; color: var(--orange); }
.cover.t-green { background: #06c755; color: #fff; }
.cover.t-green .hl { background: #fff; color: #06a144; }
.cover.t-red { background: var(--brand-red); color: #fff; }
.cover.t-red .hl { background: #fff; color: var(--brand-red); }

/* ===== หน้าบทความแบบ 2 คอลัมน์ (เนื้อหา + สารบัญติดข้าง) ===== */
.post-head { padding: 34px 0 10px; }
.post-head .crumbs { color: var(--muted); }
.post-head .crumbs a { color: var(--link); }
.post-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.22; color: var(--navy); max-width: 760px; margin: 6px 0 16px; }
.post-head .lead { font-size: 1.15rem; line-height: 1.8; color: #2c3a52; max-width: 760px; margin: 0 0 20px; }
.post-author { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 760px; font-size: .92rem; color: var(--muted); }
.post-author .ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--head); font-weight: 700; flex: none; }
.post-author .who b { display: block; color: var(--text); font-size: 1rem; }
.post-author .dates { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; }
.post-author .dates b { color: var(--text); }

.post-layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 56px; align-items: start; padding: 28px 0 70px; }
.post-layout .article { max-width: none; margin: 0; font-size: 18px; line-height: 1.8; }
.post-layout .article h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--navy); margin-top: 1.8em; scroll-margin-top: 90px; }
.post-layout .article h3 { font-size: 1.35rem; color: var(--navy); scroll-margin-top: 90px; }
.post-layout .article .toc { display: none; }  /* จอใหญ่ใช้สารบัญด้านข้างแทน */
.post-cover { border-radius: 16px; overflow: hidden; margin: 0 0 28px; }
.post-cover .cover { aspect-ratio: 2.2/1; }

.post-side { position: sticky; top: 88px; display: grid; gap: 18px; }
.side-toc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 12px; box-shadow: 0 4px 16px rgba(11,31,58,.06); }
.side-toc .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.side-toc .top b { font-family: var(--head); font-size: .82rem; letter-spacing: .08em; color: var(--brand-red); }
.side-toc .top span { font-size: .8rem; color: var(--muted); }
.side-toc .bar { height: 3px; background: var(--line); border-radius: 3px; margin-bottom: 10px; overflow: hidden; }
.side-toc .bar i { display: block; height: 100%; width: 0; background: var(--grad); }
.side-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.side-toc li a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 7px 8px; border-radius: 8px; font-size: .92rem; line-height: 1.45; color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
.side-toc li a::before { counter-increment: t; content: counter(t); color: var(--muted); font-weight: 600; }
.side-toc li a:hover { background: var(--soft); }
.side-toc li a.on { background: var(--soft); border-left-color: var(--pink); font-weight: 700; }
.side-cta { background: var(--navy); color: #fff; border-radius: 14px; padding: 20px; }
.side-cta p { margin: 0 0 14px; color: #c9d3e6; font-size: .95rem; }
.side-cta b { color: #fff; }
.side-cta .btn { width: 100%; }

figure.fig { margin: 26px 0; }
figure.fig img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); display: block; margin: 0; }
figure.fig figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; font-style: italic; }

@media (max-width: 1000px) {
  .post-layout { grid-template-columns: 1fr; gap: 0; }
  .post-side { display: none; }
  .post-layout .article .toc { display: block; }
  .post-layout .article { font-size: 17px; }
  .post-author .dates { margin-left: 0; width: 100%; }
}
.article .sources ol { font-size: .92rem; padding-left: 22px; }
.article .sources li { margin-bottom: 6px; word-break: break-word; }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.fig-pair figure.fig { margin: 18px 0; }
@media (max-width: 640px) { .fig-pair { grid-template-columns: 1fr; } }

/* ===== บทความแบบอ่านง่าย: การ์ดเลือก, การ์ดสาเหตุ, การ์ดเล็ก ===== */
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.pick-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 2px solid var(--line); border-radius: 14px; background: #fff;
  color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.pick-card:hover { border-color: var(--pink); transform: translateY(-2px); }
.pick-card .pick-ico { font-size: 1.8rem; }
.pick-card b { font-family: var(--head); font-size: 1.1rem; color: var(--navy); }
.pick-card span:not(.pick-ico) { color: var(--muted); font-size: .95rem; }
.pick-card em { font-style: normal; font-weight: 700; color: var(--pink); margin-top: 6px; }
.hint-line { background: var(--soft); border-radius: 10px; padding: 10px 14px; font-size: .97rem; }
.legend { font-size: .92rem; color: var(--muted); }
.legend .fix { margin-left: 0; }

.cause { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 16px 0; background: #fff; box-shadow: 0 3px 12px rgba(11,31,58,.05); scroll-margin-top: 90px; }
.cause-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cause-head h3 { margin: 0 !important; font-size: 1.2rem !important; flex: 1; min-width: 200px; }
.cause-head .fix { margin-left: 0; }
.cause .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--head); font-weight: 700; flex: none; }
.cause-row { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 6px 0; line-height: 1.6; }
.cause-row .ico { font-size: 1.15rem; line-height: 1.6; }
.cause-row b { display: inline-block; min-width: 62px; color: var(--navy); margin-right: 6px; }
.cause-row ul { margin: 4px 0 0; padding-left: 20px; }
.cause-row li { margin-bottom: 2px; }
details.more { background: transparent; border: 0; border-top: 1px dashed var(--line); border-radius: 0; padding: 10px 0 0; margin: 8px 0 0; }
details.more summary { color: var(--link); font-weight: 700; font-size: .92rem; cursor: pointer; }
details.more p, details.more li { color: #3b4a60; font-size: .95rem; }
details.more.sources { border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; }

.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.mini { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.mini-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 4px; }
.mini-head b { font-family: var(--head); color: var(--navy); }
.mini p { margin: 0; font-size: .95rem; color: #3b4a60; line-height: 1.6; }
@media (max-width: 640px) { .pick, .minis { grid-template-columns: 1fr; } .cause { padding: 16px; } }

/* ไอคอนหัวข้อในแถบสีกรมท่า (หน้าบริการ) */
#audit .icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 12px; }
