/* Native single article design — scoped to .article-native-page */
.article-native-page {
  font-family: "Sarabun", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: #243044;
  background: #fff;
}

/*
 * Legacy WordPress content can carry inline font-family declarations from
 * editors/builders. Inherit alone cannot beat those inline declarations, so
 * normalize all visible article typography back to Google Sarabun. Code and
 * preformatted blocks intentionally keep a monospace font below.
 */
.article-native-page .article-native,
.article-native-page .article-native :where(h1, h2, h3, h4, h5, h6, p, span, div, li, a, strong, b, em, i, u, small, mark, blockquote, figcaption, table, thead, tbody, tfoot, tr, th, td, label, time) {
  font-family: "Sarabun", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.article-native-page .article-native-main {
  padding: 42px 0 72px;
}

.article-native-page .article-native {
  width: 100%;
}

.article-native__header-wrap {
  width: min(100% - 36px, 1040px);
  margin: 0 auto;
}

.article-native__breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #7a8494;
  font-size: .86rem;
  line-height: 1.5;
}

.article-native__breadcrumb a {
  color: #637083;
  text-decoration: none;
}

.article-native__breadcrumb a:hover,
.article-native__breadcrumb a:focus-visible {
  color: #1769d2;
  text-decoration: underline;
}

.article-native__header {
  max-width: 920px;
  margin: 0 auto 28px;
}

.article-native__eyebrow {
  margin: 0 0 12px;
  color: #1769d2;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-native__title {
  max-width: 900px;
  margin: 0;
  color: #111827;
  font-family: "Sarabun", system-ui, sans-serif;
  font-size: clamp(2.15rem, 5vw, 4.15rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.article-native__lead {
  max-width: 850px;
  margin: 22px 0 0;
  color: #536071;
  font-size: clamp(1.05rem, 1.65vw, 1.24rem);
  line-height: 1.9;
  font-weight: 400;
}

.article-native__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e8ebef;
  color: #667085;
  font-size: .9rem;
  line-height: 1.55;
}

.article-native__meta span {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
}

.article-native__meta strong {
  color: #334155;
  font-weight: 700;
}

.article-native__hero {
  margin: 30px auto 0;
  overflow: hidden;
  border-radius: 18px;
  background: #f5f6f8;
}

.article-native__hero img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
}

.article-native__content-wrap {
  width: min(100% - 36px, 1080px);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: center;
  gap: 54px;
  align-items: start;
}

.article-native__content-wrap--no-toc {
  grid-template-columns: minmax(0, 780px);
}

.article-native__aside {
  min-width: 0;
}

.article-native__toc {
  position: sticky;
  top: 104px;
  padding: 18px 0 18px 18px;
  border-left: 2px solid #e7ebf0;
}

.article-native__toc-title {
  margin: 0 0 10px;
  color: #111827;
  font-size: .95rem;
  font-weight: 800;
}

.article-native__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-native__toc li {
  margin: 0;
  padding: 0;
}

.article-native__toc li + li {
  margin-top: 8px;
}

.article-native__toc .toc-level-3 {
  padding-left: 14px;
}

.article-native__toc a {
  display: block;
  color: #687487;
  font-size: .86rem;
  line-height: 1.55;
  font-weight: 500;
  text-decoration: none;
}

.article-native__toc a:hover,
.article-native__toc a:focus-visible {
  color: #1769d2;
}

.article-native__body {
  min-width: 0;
}

.article-native-page .single-content {
  color: #29364a;
  font-family: "Sarabun", system-ui, sans-serif;
  font-size: 1.075rem;
  line-height: 1.92;
  overflow-wrap: anywhere;
}

.article-native-page .single-content > :first-child {
  margin-top: 0;
}

.article-native-page .single-content p {
  margin: 0 0 1.25em;
}

.article-native-page .single-content h2,
.article-native-page .single-content h3,
.article-native-page .single-content h4 {
  scroll-margin-top: 110px;
  color: #111827;
  font-family: "Sarabun", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.012em;
}

.article-native-page .single-content h2 {
  margin: 2.2em 0 .72em;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 1.32;
}

.article-native-page .single-content h3 {
  margin: 1.85em 0 .65em;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.4;
}

.article-native-page .single-content h4 {
  margin: 1.6em 0 .55em;
  font-size: 1.13rem;
  line-height: 1.45;
}

.article-native-page .single-content ul,
.article-native-page .single-content ol {
  margin: .2em 0 1.4em;
  padding-left: 1.45em;
}

.article-native-page .single-content li {
  margin-bottom: .45em;
}

.article-native-page .single-content a {
  color: #1769d2;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-native-page .single-content strong {
  color: #172033;
  font-weight: 700;
}

.article-native-page .single-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 14px;
}

.article-native-page .single-content figure {
  margin: 32px 0;
}

.article-native-page .single-content figure img {
  margin: 0 auto;
}

.article-native-page .single-content figcaption {
  margin-top: 9px;
  color: #7a8494;
  font-size: .84rem;
  line-height: 1.55;
  text-align: center;
}

.article-native-page .single-content blockquote {
  margin: 1.8em 0;
  padding: 18px 22px;
  border-left: 4px solid #2f80ed;
  border-radius: 0 10px 10px 0;
  background: #f7faff;
  color: #344257;
}

.article-native-page .single-content table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  font-size: .95rem;
}

.article-native-page .single-content th,
.article-native-page .single-content td {
  padding: 11px 12px;
  border: 1px solid #e2e6eb;
  text-align: left;
  vertical-align: top;
}

.article-native-page .single-content th {
  background: #f7f8fa;
  color: #172033;
  font-weight: 700;
}

.article-native-page .single-content pre,
.article-native-page .single-content code,
.article-native-page .single-content pre *,
.article-native-page .single-content code * {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}

.article-native-page .single-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 18px;
  border-radius: 10px;
  background: #111827;
  color: #e5e7eb;
  font-size: .88rem;
  line-height: 1.65;
}

.article-native__trust {
  margin-top: 52px;
  padding: 28px;
  border: 1px solid #e5e9ef;
  border-radius: 16px;
  background: #fafbfc;
}

.article-native__trust-kicker {
  margin: 0 0 6px;
  color: #1769d2;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-native__trust h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 800;
}

.article-native__trust p {
  margin: 0;
  color: #5e6978;
  font-size: .95rem;
  line-height: 1.75;
}

.article-native__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.article-native__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #dce2e8;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

.article-native__actions a:hover,
.article-native__actions a:focus-visible {
  border-color: #a7c8f7;
  color: #1769d2;
}

.article-native__actions a.is-primary {
  border-color: #1769d2;
  background: #1769d2;
  color: #fff;
}

@media (max-width: 980px) {
  .article-native__content-wrap {
    grid-template-columns: minmax(0, 760px);
    gap: 28px;
  }

  .article-native__aside {
    order: 0;
  }

  .article-native__toc {
    position: static;
    padding: 18px 20px;
    border: 1px solid #e4e8ed;
    border-left-width: 1px;
    border-radius: 12px;
    background: #fafbfc;
  }

  .article-native__toc ol {
    columns: 2;
    column-gap: 30px;
  }

  .article-native__toc li {
    break-inside: avoid;
  }
}

@media (max-width: 720px) {
  .article-native-page .article-native-main {
    padding: 28px 0 52px;
  }

  .article-native__header-wrap,
  .article-native__content-wrap {
    width: min(100% - 28px, 100%);
  }

  .article-native__breadcrumb {
    margin-bottom: 16px;
    font-size: .8rem;
  }

  .article-native__title {
    font-size: clamp(2rem, 9.5vw, 3rem);
    line-height: 1.16;
  }

  .article-native__lead {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.78;
  }

  .article-native__meta {
    gap: 7px 13px;
    margin-top: 16px;
    padding-top: 14px;
    font-size: .82rem;
  }

  .article-native__hero {
    margin-top: 22px;
    border-radius: 12px;
  }

  .article-native__content-wrap {
    margin-top: 30px;
  }

  .article-native__toc ol {
    columns: 1;
  }

  .article-native-page .single-content {
    font-size: 1rem;
    line-height: 1.86;
  }

  .article-native-page .single-content h2 {
    margin-top: 1.9em;
  }

  .article-native-page .single-content img {
    margin: 22px auto;
    border-radius: 10px;
  }

  .article-native__trust {
    margin-top: 38px;
    padding: 20px;
  }
}
