/* ============ RESET + BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Sarabun', 'IBM Plex Sans Thai', -apple-system, sans-serif;
  color: #1a1a2e;
  background: #f5f2ea;
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #8b2635; text-decoration: none; transition: color 0.2s ease; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', 'IBM Plex Serif', Georgia, serif;
  color: #1a1a2e;
  line-height: 1.3;
  margin: 1.5em 0 0.6em;
  font-weight: 700;
}
h1 { font-size: 2.4rem; margin-top: 0; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
strong { color: #8b2635; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
blockquote { margin: 0; padding: 0; }

/* ============ HEADER + NAV ============ */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #d9d3c1;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a1a2e;
  font-weight: 700;
}
.site-logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #8b2635;
  color: #fff;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: 'Playfair Display', 'IBM Plex Serif', Georgia, serif;
}
.logo-text {
  font-family: 'Playfair Display', 'IBM Plex Serif', Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.2px;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  color: #1a1a2e;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.site-nav a:hover {
  background: #f5f2ea;
  color: #8b2635;
  text-decoration: none;
}
.site-nav .nav-current a {
  color: #8b2635;
  font-weight: 700;
}

/* ============ MAIN LAYOUT ============ */
.page-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.article-body > * { margin-bottom: 1.6rem; }
.article-body > *:last-child { margin-bottom: 0; }
.page-title-block { margin-bottom: 2rem; }
.page-title-block h1 { margin-bottom: 0.4em; }
.page-lede {
  font-size: 1.15rem;
  color: #5a5a6a;
  line-height: 1.6;
  margin-top: 0;
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
  font-size: 0.9rem;
  color: #5a5a6a;
  margin-bottom: 1.5rem;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumbs li:not(:last-child)::after {
  content: "\203A";
  margin-left: 8px;
  color: #5a5a6a;
}
.breadcrumbs a { color: #5a5a6a; }
.breadcrumbs a:hover { color: #8b2635; }

/* ============ HERO + INLINE FIGURES ============ */
.hero-figure, .inline-figure {
  margin: 2rem 0;
  border-radius: 6px;
  overflow: hidden;
}
.hero-figure img, .inline-figure img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #d9d3c1;
}
.hero-figure figcaption, .inline-figure figcaption {
  font-size: 0.85rem;
  color: #5a5a6a;
  padding: 8px 4px 0;
  font-style: italic;
}

/* ============ AUTHOR BOX ============ */
.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #d9d3c1;
  border-radius: 8px;
  margin: 1.5rem 0;
}
.author-photo img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #8b2635;
}
.author-info { flex: 1; }
.author-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #5a5a6a;
  margin: 0 0 4px;
}
.author-name-line { margin: 0 0 4px; font-size: 1.05rem; }
.author-role {
  margin: 0;
  font-size: 0.88rem;
  color: #5a5a6a;
  line-height: 1.5;
}

/* ============ INTRO + TOC ============ */
.intro-block { font-size: 1.05rem; }
.intro-block p:first-of-type::first-letter {
  font-family: 'Playfair Display', 'IBM Plex Serif', Georgia, serif;
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  padding-right: 8px;
  padding-top: 6px;
  color: #8b2635;
  font-weight: 700;
}
.toc {
  background: #ffffff;
  border-left: 4px solid #8b2635;
  padding: 20px 24px;
  border-radius: 4px;
  margin: 2rem 0;
}
.toc h2 { margin-top: 0; font-size: 1.1rem; }
.toc ol { margin: 0; padding-left: 1.4em; column-count: 2; column-gap: 24px; }
.toc li { margin-bottom: 0.35em; font-size: 0.94rem; break-inside: avoid; }
.toc a { color: #1a1a2e; }
.toc a:hover { color: #8b2635; }

/* ============ CONTENT SECTIONS ============ */
.content-section { margin-bottom: 1.8rem; }
.content-section h2 { scroll-margin-top: 80px; }
.head-anchor-para {
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 4px;
  font-size: 0.95rem;
  border-left: 3px solid #8b2635;
}

/* ============ FAQ ============ */
.faq-block {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #d9d3c1;
  margin: 2rem 0;
}
.faq-block h2 { margin-top: 0; }
.faq-block details {
  border-bottom: 1px solid #d9d3c1;
  padding: 12px 0;
}
.faq-block details:last-of-type { border-bottom: none; }
.faq-block summary {
  cursor: pointer;
  font-weight: 600;
  padding: 4px 0;
  color: #1a1a2e;
  list-style: none;
  position: relative;
  padding-left: 24px;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 4px;
  color: #8b2635;
  font-weight: 700;
  font-size: 1.2rem;
}
.faq-block details[open] summary::before { content: "\2212"; }
.faq-answer {
  padding: 8px 0 4px 24px;
  color: #5a5a6a;
  font-size: 0.96rem;
}

/* ============ RELATED ============ */
.related-pages { margin: 2.5rem 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 1rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #d9d3c1;
  border-radius: 8px;
  color: #1a1a2e;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.related-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: #8b2635;
}
.related-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #8b2635;
  font-weight: 700;
}
.related-title {
  font-family: 'Playfair Display', 'IBM Plex Serif', Georgia, serif;
  font-size: 1rem;
  line-height: 1.4;
}
.related-card-home { background: #8b2635; color: #fff; border-color: #8b2635; }
.related-card-home .related-label { color: rgba(255,255,255,0.85); }
.related-card-home .related-title { color: #fff; }

/* ============ DISCLAIMER ============ */
.disclaimer {
  background: #ffffff;
  border: 1px solid #d9d3c1;
  border-left: 5px solid #8b2635;
  padding: 20px 24px;
  border-radius: 4px;
  margin: 2rem 0;
  font-size: 0.93rem;
  color: #5a5a6a;
}
.disclaimer h3 { margin-top: 0; color: #1a1a2e; font-size: 1.1rem; }
.disclaimer a { font-weight: 600; }
.disclaimer-note { font-size: 0.85rem; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #d9d3c1; }

/* ============ FOOTER ============ */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #d9d3c1;
  margin-top: 60px;
  padding: 40px 0 20px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-col { font-size: 0.9rem; color: #5a5a6a; }
.footer-brand { font-family: 'Playfair Display', 'IBM Plex Serif', Georgia, serif; font-size: 1.15rem; color: #1a1a2e; margin: 0 0 6px; }
.footer-tag { margin: 0; }
.footer-heading { font-weight: 700; color: #1a1a2e; margin: 0 0 10px; font-size: 0.95rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: #5a5a6a; }
.footer-col a:hover { color: #8b2635; }
.footer-bottom {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid #d9d3c1;
  font-size: 0.82rem;
  color: #5a5a6a;
  text-align: center;
}
.footer-bottom p { margin: 0; }

/* ============ CONTACT FORM ============ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin-top: 1.2rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  color: #1a1a2e;
  font-size: 0.92rem;
}
.contact-form input, .contact-form textarea {
  border: 1px solid #d9d3c1;
  background: #ffffff;
  color: #1a1a2e;
  padding: 10px 12px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: #8b2635;
  box-shadow: 0 0 0 2px #8b263522;
}
.contact-form button {
  align-self: flex-start;
  background: #8b2635;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}
.contact-form button:hover { opacity: 0.88; }
.form-note {
  font-size: 0.82rem;
  color: #5a5a6a;
  margin: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav ul { gap: 2px; }
  .site-nav a { padding: 6px 10px; font-size: 0.9rem; }
  .page-main { padding: 24px 18px 40px; }
  .toc ol { column-count: 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ============ PRINT ============ */
@media print {
  .site-nav, .site-footer, .contact-form, .related-pages { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}


/* ==== EDITORIAL MAGAZINE ==== */
body { line-height: 1.85; }
.page-title-block h1 {
  font-style: italic;
  letter-spacing: -0.5px;
  border-bottom: 2px solid #c19a4a;
  padding-bottom: 0.4em;
}
.pullquote {
  border-left: 5px solid #8b2635;
  padding: 8px 0 8px 24px;
  margin: 2rem 0;
}
.pullquote blockquote p {
  font-size: 1.4rem;
  line-height: 1.45;
  font-style: italic;
  color: #1a1a2e;
  margin: 0 0 0.4em;
}
.pullquote figcaption {
  font-size: 0.85rem;
  color: #5a5a6a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-figure figcaption, .inline-figure figcaption {
  text-align: right;
  font-style: italic;
}
