:root {
  --ink: #1f2b24;
  --muted: #5a6a60;
  --line: #d9dfd6;
  --paper: #fffdf8;
  --soft: #f3f6ef;
  --brand: #23543a;
  --brand-dark: #183326;
  --accent: #d8952c;
  --sky: #e8f1f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans Thai", Tahoma, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  background: var(--brand-dark);
  color: white;
}

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: white;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 15px;
}

.nav a {
  color: #eef7ee;
}

.hero {
  background: linear-gradient(180deg, var(--sky), var(--paper));
  border-bottom: 1px solid var(--line);
}

.hero-inner,
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(30px, 4vw, 52px);
}

h2 {
  font-size: 28px;
  margin-top: 22px;
}

h3 {
  font-size: 21px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  font-weight: 700;
}

.button.secondary {
  background: white;
  color: var(--brand);
  border: 1px solid var(--line);
}

.section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: #f5f5f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.card-body {
  padding: 18px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--muted);
  font-size: 13px;
  background: var(--soft);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
}

.toc,
.fact-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.toc ul,
.fact-box ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.content-block {
  max-width: 820px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.placeholder {
  border: 1px dashed #9aa89e;
  background: #f8faf6;
}

.site-footer {
  background: var(--brand-dark);
  color: #e8efe8;
  margin-top: 40px;
}

.site-footer .wrap {
  padding-top: 24px;
  padding-bottom: 24px;
}

.disclaimer {
  color: #cdd8cf;
  font-size: 14px;
}

@media (max-width: 820px) {
  .topbar,
  .hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-inner,
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}
