/* static.css — สไตล์ของหน้า HTML จริงที่ปั่นด้วย build-seo.js
   แยกจาก styles.css เพราะอันนั้นออกแบบมาสำหรับ snap grid เต็มจอ ไม่เหมาะกับหน้าอ่านยาว */
@font-face {
  font-family: "Pinfist";
  src: url("/assets/Pinfist-Regular.woff2") format("woff2"),
       url("/assets/Pinfist-Regular.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --c-red: #E63946; --c-pink: #E0739D; --c-blue: #2E5BAA;
  --ink: #1F1F35; --ink-2: #4A4A66; --ink-3: #8a8aa3;
  --bg: #FFF8F2; --bg-blush: #FDEEF1; --bg-sky: #E8EFFA;
  --font: "Pinfist", "Mitr", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.65; font-size: 17px;
  padding: 24px 20px 64px;
}
.wrap { max-width: 720px; margin: 0 auto; }
header.site { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
header.site img { height: 40px; width: auto; }
header.site a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
nav.crumb { font-size: 14px; color: var(--ink-3); margin-bottom: 10px; }
nav.crumb a { color: var(--ink-3); }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 10px; }
h2 { font-size: 20px; margin: 30px 0 12px; color: var(--ink-2); }
.tagline { font-size: 18px; color: var(--ink-2); margin-bottom: 6px; }
.meta { font-size: 14px; color: var(--ink-3); }
.chip {
  display: inline-block; font-size: 13px; padding: 3px 10px; border-radius: 6px;
  border: 1.5px solid var(--ink); background: #fff; margin: 0 6px 6px 0;
}
.chip.red { background: var(--c-red); color: #fff; border-color: var(--c-red); }
.chip.blue { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
ul { margin: 0 0 0 22px; }
li { margin-bottom: 7px; }
p { margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
th, td { text-align: left; padding: 9px 0; border-bottom: 1px solid #eee6dd; font-size: 16px; }
th { color: var(--ink-3); font-weight: 500; font-size: 14px; }
td.amt { text-align: right; font-weight: 600; color: var(--c-red); }
.people { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: inherit; width: 84px; }
.person img { width: 62px; height: 62px; object-fit: cover; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.person span { font-size: 14px; text-align: center; line-height: 1.2; }
.cta {
  display: inline-block; margin-top: 30px; padding: 13px 24px; border-radius: 12px;
  background: var(--c-red); color: #fff; text-decoration: none; font-size: 16px;
}
.cta:hover { background: #c92f3c; }
.links { margin-top: 40px; padding-top: 22px; border-top: 1px solid #eee6dd; font-size: 15px; }
.links h2 { font-size: 15px; margin: 0 0 10px; }
.links a { display: inline-block; margin: 0 14px 8px 0; color: var(--c-blue); }
footer.site { margin-top: 46px; font-size: 14px; color: var(--ink-3); }
footer.site a { color: var(--ink-3); }

/* บทความ: คำตอบสั้น (bubble) / คำตอบยาว — ให้ตรงกับหน้าเว็บจริง */
.bubble {
  background: var(--bg-blush); border: 1.5px solid rgba(31,31,53,.12);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 20px;
}
.bubble .rich-p { margin: 0; font-weight: 500; }
.rich { font-size: 17px; line-height: 1.85; }
.rich .rich-p { margin: 0 0 1em; }
.rich .rich-h1 { font-size: 1.28em; font-weight: 600; margin: 1.2em 0 .5em; }
.rich .rich-h2 { font-size: 1.12em; font-weight: 600; margin: 1.1em 0 .45em; color: var(--ink-2); }
.rich .rich-ul { margin: 0 0 1em 1.15em; padding: 0; }
.rich .rich-ul li { margin-bottom: .4em; }
.rich .rich-ul li::marker { color: var(--c-pink); }
