@page {
  margin: 18mm 16mm 18mm 16mm;
  size: A4;
}

body {
  font-family: "Sarabun", "Noto Sans Thai", sans-serif;
  font-size: 12.6px;
  line-height: 1.58;
  color: #1b2733;
  background: #ffffff;
}

h1 {
  font-size: 31px;
  margin: 0 0 12px;
  color: #0c2b40;
  border-bottom: 3px solid #c8893d;
  padding-bottom: 8px;
}

h2 {
  font-size: 21px;
  margin: 24px 0 10px;
  color: #123a54;
  border-bottom: 1px solid #d8e2ea;
  padding-bottom: 5px;
}

h3 {
  font-size: 16px;
  margin: 16px 0 8px;
  color: #1f4f6f;
}

hr {
  border: none;
  height: 1px;
  margin: 16px 0;
  background: linear-gradient(90deg, #dbe7ef 0%, #c8893d 55%, #dbe7ef 100%);
  page-break-after: avoid;
}

p,
li {
  font-size: 12.6px;
}

ul,
ol {
  padding-left: 20px;
}

code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 11px;
  background: #edf3f7;
  border: 1px solid #d4e2ec;
  border-radius: 4px;
  padding: 1px 5px;
}

pre {
  border: 1px solid #d0dde8;
  border-left: 4px solid #2e607e;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f8fbff;
  margin: 8px 0 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

pre code {
  display: block;
  border: none;
  background: transparent;
  padding: 0;
  white-space: inherit;
  overflow-wrap: anywhere;
  word-break: break-word;
}

blockquote {
  border-left: 3px solid #c8893d;
  background: #f7f3eb;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  color: #4a5f70;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0 14px;
}

th,
td {
  border: 1px solid #c9d6e0;
  padding: 7px 9px;
  font-size: 11.3px;
}

th {
  background: #e9f1f7;
  color: #123a54;
}

a {
  color: #0f6fa6;
  text-decoration: underline;
}