/* RAM CMS v1.6 | Compact premium editorial experience.
 * Scope: articles on public pages, plus legacy standalone article page.
 * The existing article HTML, text, tables, images, width/height and srcset
 * remain unchanged and accessible inside a native <details> disclosure.
 */
body main section#บทความ {
  box-sizing: border-box;
  padding-block: clamp(30px, 3.25vw, 44px) !important;
  background:
    radial-gradient(ellipse 67% 82% at 100% 0%, rgba(99, 173, 105, .095), transparent 73%),
    linear-gradient(170deg, #f4f9f5 0%, #eaf3ec 100%);
}
body main section#บทความ > .container > .section-head {
  display: grid;
  gap: 5px;
  max-width: 100%;
  margin: 0 0 16px;
  text-align: left;
}
body main section#บทความ > .container > .section-head .kicker {
  width: max-content;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid #d0e7d4;
  border-radius: 7px;
  background: #e3f3e7;
  color: #156b39;
  font: 850 10px/1.35 system-ui, 'Noto Sans Thai', sans-serif;
  letter-spacing: .095em;
}
body main section#บทความ > .container > .section-head h2 {
  margin: 0;
  color: #122f21;
  font-size: clamp(22px, 2.32vw, 31px) !important;
  font-weight: 900;
  letter-spacing: -.028em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
body main section#บทความ > .container > .section-head h2 :is(strong, .keyword) { color: #168341; }
body main section#บทความ > .container > .section-head p {
  max-width: 1060px;
  margin: 0;
  color: #557363;
  font-size: 12.5px;
  line-height: 1.48;
}

/* Dense full-rail editorial feature replaces a stack of giant article cards. */
body main section#บทความ .rc-article-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(32, 110, 67, .16);
  border-radius: 16px 16px 0 0;
  background: linear-gradient(120deg, #0d281c 0%, #0a2119 55%, #0a1c16 100%);
  box-shadow: 0 14px 32px rgba(13, 52, 30, .095);
}
body main section#บทความ .rc-article-spotlight * { box-sizing: border-box; }
body main section#บทความ .rc-article-spotlight__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 22px 25px 20px;
  isolation: isolate;
}
body main section#บทความ .rc-article-spotlight__intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 0% 0%, rgba(132, 223, 108, .15), transparent 70%);
}
body main section#บทความ .rc-article-spotlight__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b8ecab;
  font: 830 10px/1.3 system-ui, 'Noto Sans Thai', sans-serif;
  letter-spacing: .105em;
}
body main section#บทความ .rc-article-spotlight__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bafa72;
  box-shadow: 0 0 0 3px rgba(186,250,114,.11);
}
body main section#บทความ .rc-article-spotlight__eyebrow-divider { color: #658e72; }
body main section#บทความ .rc-article-spotlight__intro h3 {
  margin: 0 !important;
  color: #fff;
  font-size: clamp(18px, 1.7vw, 23px) !important;
  font-weight: 890;
  line-height: 1.3;
  letter-spacing: -.015em;
}
body main section#บทความ .rc-article-spotlight__intro p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  max-width: 620px;
  margin: 0;
  color: #c2d8cb;
  font-size: 12.75px;
  line-height: 1.65;
}
body main section#บทความ .rc-article-spotlight__footnote {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
  color: #b3ec9f;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.45;
}
body main section#บทความ .rc-article-spotlight__topics {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 17px 20px;
  border-left: 1px solid rgba(172, 245, 162, .16);
  background: rgba(5, 17, 13, .22);
}
body main section#บทความ .rc-article-spotlight__topics-heading {
  display: block;
  margin-bottom: 9px;
  color: #a8dba8;
  font-size: 11px;
  font-weight: 880;
  line-height: 1.4;
}
body main section#บทความ .rc-article-spotlight__topics ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
body main section#บทความ .rc-article-spotlight__topics li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  min-height: 55px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(171, 236, 161, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .046);
  list-style: none;
}
body main section#บทความ .rc-article-spotlight__number {
  flex: 0 0 auto;
  padding-top: 1px;
  color: #b7f777;
  font: 900 10px/1.6 system-ui, sans-serif;
}
body main section#บทความ .rc-article-spotlight__topic-title {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #e5f4e7;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Native disclosure; keyboard-friendly and functional without scripts. */
body main section#บทความ .rc-article-fold {
  display: block;
  min-width: 0;
  margin: 0;
  border: 0; /* no horizontal shrinkage of the original full-width illustrations */
  border-radius: 0 0 13px 13px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #cddfd1, 0 9px 26px rgba(16, 70, 39, .07);
}
body main section#บทความ .rc-article-fold > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 59px;
  margin: 0;
  padding: 10px 20px 10px 24px;
  border: 0;
  border-radius: 0 0 13px 13px;
  color: #123a25;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(90deg, #f0f9ed, #fbfffb);
  transition: background .2s ease;
}
body main section#บทความ .rc-article-fold > summary::-webkit-details-marker { display: none; }
body main section#บทความ .rc-article-fold > summary::marker { content: ""; }
body main section#บทความ .rc-article-fold > summary:hover { background: #e8f7df; }
body main section#บทความ .rc-article-fold > summary:focus-visible {
  outline: 2px solid #138944;
  outline-offset: -3px;
}
body main section#บทความ .rc-article-fold__label { display: grid; gap: 1px; min-width: 0; }
body main section#บทความ .rc-article-fold__label strong {
  color: #133f28;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.4;
}
body main section#บทความ .rc-article-fold__label small {
  color: #6c8873;
  font-size: 11.5px;
  font-weight: 620;
  line-height: 1.45;
}
body main section#บทความ .rc-article-fold__opened { display: none; }
body main section#บทความ .rc-article-fold[open] .rc-article-fold__opened { display: inline; }
body main section#บทความ .rc-article-fold[open] .rc-article-fold__closed { display: none; }
body main section#บทความ .rc-article-fold__chevron {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid #c8e7c5;
  border-radius: 9px;
  background: #dff5d8;
  color: #176e32;
  font: 900 25px/1 system-ui, sans-serif;
  transition: transform .2s ease;
}
body main section#บทความ .rc-article-fold[open] > summary { border-bottom: 1px solid #dae9dc; border-radius: 0; }
body main section#บทความ .rc-article-fold[open] .rc-article-fold__chevron { transform: rotate(180deg); }
body main section#บทความ .rc-article-fold__body { padding: 12px 0 0; }

/* The full, unchanged article is more comfortable and less wasteful when opened. */
body main section#บทความ .rc-article-fold .article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
}
body main section#บทความ .rc-article-fold .article-card {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: clamp(15px, 1.8vw, 23px);
  border: 1px solid #dbe9df;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(17, 69, 39, .035);
}
body main section#บทความ .rc-article-fold .article-card :is(h2,h3,h4) { color: #193d29; }
body main section#บทความ .rc-article-fold .article-card h2,
body main section#บทความ .rc-article-fold .article-card .article-title {
  margin: 0 0 10px;
  font-size: clamp(18px, 1.75vw, 23px) !important;
  font-weight: 900;
  line-height: 1.33;
}
body main section#บทความ .rc-article-fold .article-card h3 {
  margin: 15px 0 7px;
  font-size: clamp(15px, 1.25vw, 18px) !important;
  font-weight: 850;
  line-height: 1.42;
}
body main section#บทความ .rc-article-fold .article-card h4 {
  margin: 12px 0 6px;
  font-size: 14px;
  line-height: 1.42;
}
body main section#บทความ .rc-article-fold .article-card :is(p,li,blockquote,dd,dt) {
  max-width: 100%;
  font-size: clamp(12.5px, .98vw, 14px);
  line-height: 1.68;
}
body main section#บทความ .rc-article-fold .article-card p { margin: 0 0 10px; }
body main section#บทความ .rc-article-fold .article-card :is(ul,ol) { margin: 7px 0 12px; padding-left: 23px; }
body main section#บทความ .rc-article-fold .article-card li + li { margin-top: 3px; }
body main section#บทความ .rc-article-fold .article-card :is(blockquote,.note-box) { margin: 10px 0; padding: 11px 15px; }
body main section#บทความ .rc-article-fold .article-card :is(.table-scroll,.compare-wrap) {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 9px;
}
body main section#บทความ .rc-article-fold .article-card .data-table :is(th,td) {
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.47;
}
/* The figure, picture and img elements deliberately inherit prior dimensions. */

/* Legacy standalone /บทความ.html remains a full reading page, but properly styled. */
body.rc-standalone-article {
  box-sizing: border-box;
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  padding: 0;
  background: linear-gradient(170deg, #f0f7f2, #e6efe9);
  color: #193426;
  font-family: 'Noto Sans Thai', Tahoma, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  text-align: left;
}
body.rc-standalone-article > :not(.rc-site-footer):not(script) {
  box-sizing: border-box;
  max-width: min(1080px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
body.rc-standalone-article > h1 {
  margin-top: 16px;
  margin-bottom: 15px;
  padding: 20px 23px;
  border-radius: 13px;
  background: #102e20;
  color: #fff;
  font-size: clamp(22px, 2.7vw, 32px);
  font-weight: 900;
  line-height: 1.4;
}
body.rc-standalone-article > :is(h2,h3,h4) {
  margin-top: 15px;
  margin-bottom: 9px;
  color: #17462d;
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 900;
  line-height: 1.42;
}
body.rc-standalone-article > h3 { font-size: clamp(15px, 1.32vw, 18px); }
body.rc-standalone-article > p { margin-top: 0; margin-bottom: 10px; }
body.rc-standalone-article > :is(ul,ol) { padding: 10px 13px 10px 35px; border-radius: 10px; background: #fff; }
body.rc-standalone-article > li { margin-block: 3px; }
body.rc-standalone-article > table {
  display: block;
  overflow-x: auto;
  max-width: min(1080px, calc(100% - 32px));
  margin-block: 12px;
  border: 1px solid #d9e8de;
  border-radius: 10px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
body.rc-standalone-article > table :is(th,td) { padding: 9px 12px; border-color: #e2eee6; }
body.rc-standalone-article > blockquote { margin-block: 12px; padding: 10px 15px; border-left: 3px solid #32905c; background: #e4f2e7; }

@media (max-width: 900px) {
  body main section#บทความ .rc-article-spotlight { grid-template-columns: minmax(0, 1fr); }
  body main section#บทความ .rc-article-spotlight__intro { padding: 19px 21px 17px; }
  body main section#บทความ .rc-article-spotlight__topics {
    padding: 14px 20px 17px;
    border-left: 0;
    border-top: 1px solid rgba(172,245,162,.17);
  }
}
@media (max-width: 680px) {
  body main section#บทความ { padding-block: 27px 31px !important; }
  body main section#บทความ > .container > .section-head { gap: 5px; margin-bottom: 13px; }
  body main section#บทความ > .container > .section-head h2 { font-size: clamp(20px, 5.5vw, 24px) !important; }
  body main section#บทความ > .container > .section-head p { font-size: 11.5px; }
  body main section#บทความ .rc-article-spotlight { border-radius: 12px 12px 0 0; }
  body main section#บทความ .rc-article-spotlight__intro { padding: 16px 14px 13px; gap: 6px; }
  body main section#บทความ .rc-article-spotlight__intro h3 { font-size: 17px !important; }
  body main section#บทความ .rc-article-spotlight__intro p { font-size: 11.5px; line-height: 1.58; }
  body main section#บทความ .rc-article-spotlight__footnote { font-size: 10px; }
  body main section#บทความ .rc-article-spotlight__topics { padding: 12px 13px 14px; }
  body main section#บทความ .rc-article-spotlight__topics-heading { margin-bottom: 7px; font-size: 10.5px; }
  body main section#บทความ .rc-article-spotlight__topics ol { gap: 6px; }
  body main section#บทความ .rc-article-spotlight__topics li { gap: 6px; min-height: 45px; padding: 7px; }
  body main section#บทความ .rc-article-spotlight__topic-title { font-size: 10.7px; line-height: 1.43; }
  body main section#บทความ .rc-article-fold > summary { min-height: 55px; padding: 9px 13px 9px 15px; }
  body main section#บทความ .rc-article-fold__label strong { font-size: 12.5px; }
  body main section#บทความ .rc-article-fold__label small { font-size: 10.5px; }
  body main section#บทความ .rc-article-fold__body { padding: 9px 0 0; }
  body main section#บทความ .rc-article-fold .article-shell { gap: 9px; }
  body main section#บทความ .rc-article-fold .article-card { padding: 13px; }
  body main section#บทความ .rc-article-fold .article-card h2,
  body main section#บทความ .rc-article-fold .article-card .article-title { font-size: 18px !important; }
  body main section#บทความ .rc-article-fold .article-card :is(p,li,blockquote,dd,dt) { font-size: 12.5px; }
  body.rc-standalone-article > :not(.rc-site-footer):not(script) { max-width: calc(100% - 24px); }
  body.rc-standalone-article > h1 { padding: 16px; border-radius: 10px; }
}
@media (max-width: 360px) {
  body main section#บทความ .rc-article-spotlight__topics ol { grid-template-columns: 1fr; }
  body main section#บทความ .rc-article-spotlight__topics li { min-height: 34px; }
}
@supports not (overflow: clip) { body.rc-standalone-article { overflow-x: hidden; } }
@media (prefers-reduced-motion: reduce) {
  body main section#บทความ .rc-article-fold > summary,
  body main section#บทความ .rc-article-fold__chevron { transition: none; }
}
