/* Infographic โครงการเชียงรายหัวใจแข็งแรง 2570 · cvdremission.mshprimary.com/infographic-2027
   แต่ละหน้าเป็น SVG ขนาด A4 แนวนอน (1123×794) ย่อขยายตามจอเอง · พิมพ์ได้หน้าละแผ่น */
:root{--red:#c8102e;--fg:#2a1316;--muted:#6b665e;--line:#ece6e7;--paper:#f3f1ee;color-scheme:light}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--fg);font-family:"Noto Sans Thai",system-ui,sans-serif;line-height:1.5}
/* แถบบนเป็นของ MSH Organize (shell-navbar.js + cvd-shell.js · 17 พ.ย. 2569) · .top = แถบปุ่มของหน้าอยู่ใต้แถบบน ไม่ลอย · พิมพ์ไม่ติดไป */
.top{background:#fff;border-bottom:1px solid var(--line)}
.top-in{max-width:1180px;margin:0 auto;padding:10px 16px;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px 16px}
.actions{display:flex;flex-wrap:wrap;gap:8px}
.btn{font:inherit;font-size:.9rem;font-weight:600;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:8px;border:1px solid var(--red);background:var(--red);color:#fff;text-decoration:none;cursor:pointer}
.btn:hover{background:#a10d26;border-color:#a10d26}
.btn.ghost{background:#fff;color:var(--red)}
.btn.ghost:hover{background:#fdf1f2}
.btn:focus-visible{outline:3px solid #1f5fa8;outline-offset:2px}
.sheets{max-width:1180px;margin:0 auto;padding:20px 16px 48px;display:grid;gap:20px}
.sheet{background:#fff;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.08),0 6px 20px rgba(0,0,0,.05);overflow:hidden}
.sheet-svg{display:block;width:100%;height:auto}
.sheet-svg .t{font-family:"Noto Sans Thai",system-ui,sans-serif}
.sheet-svg .m{font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace}
/* ลิงก์ "สูตร HDC" ในแผนภาพที่ 1 และหน้าต่างตารางเปรียบเทียบสูตร */
.hdc-link{cursor:pointer}.hdc-link:focus-visible{outline:3px solid #1f5fa8;outline-offset:2px}
.hdc-dialog{width:min(1080px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:14px;box-shadow:0 30px 90px rgba(23,32,51,.28);color:var(--fg)}
.hdc-dialog::backdrop{background:rgba(23,32,51,.4)}
.hdc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px 6px}
.hdc-head h2{margin:0;font-size:1.1rem;line-height:1.4}
.hdc-formula,.hdc-note{margin:0;padding:4px 18px;color:var(--muted);font-size:.9rem}
.hdc-note{padding-bottom:16px}
.hdc-scroll{overflow:auto;padding:8px 18px}
.hdc-table{width:100%;border-collapse:collapse;font-size:.88rem;font-variant-numeric:tabular-nums}
.hdc-table th,.hdc-table td{border:1px solid #cfc7c9;padding:6px 8px;text-align:center;vertical-align:middle}
.hdc-table thead th{background:#f3f1ee;font-weight:700}
.hdc-table thead small{display:block;font-weight:400;color:var(--muted);font-size:.78rem}
.hdc-table tbody th{text-align:left;font-weight:600;white-space:nowrap}
.hdc-table tr.is-model td{color:#1f5fa8;white-space:nowrap}
.hdc-table tr.is-project th,.hdc-table tr.is-project td:nth-child(2),.hdc-table tr.is-project td:nth-child(3){background:#fff7b8;font-weight:700}
@page{size:A4 landscape;margin:0}
@media print{
  body{background:#fff}
  .top,.hdc-dialog{display:none}
  .sheets{max-width:none;padding:0;gap:0;display:block}
  .sheet{width:297mm;height:210mm;border-radius:0;box-shadow:none;break-after:page;page-break-after:always}
  .sheet:last-child{break-after:auto;page-break-after:auto}
  .sheet-svg{width:297mm;height:210mm}
}
