/* RAM CMS v1.7 — full, always-visible premium editorial layout.
   Extends the existing v1.6 public stylesheet; no images are resized.
   The original article, links, tables and figures are never hidden. */
body main section#บทความ {
  --rc-art-ink: #153426;
  --rc-art-green: #188549;
  --rc-art-border: #dbe9de;
  --rc-art-bg: #f4f8f5;
  padding-block: clamp(28px, 3.4vw, 46px) !important;
  background: linear-gradient(180deg, #f2f7f3 0%, #eaf2ed 100%);
}
body main section#บทความ .container { min-width: 0; }
body main section#บทความ > .container > .section-head {
  display: grid;
  gap: 7px;
  padding: 0 0 17px;
  margin: 0;
  text-align: left;
}
body main section#บทความ > .container > .section-head .kicker {
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid #cce5d3;
  border-radius: 7px;
  background: #e0f1e6;
  color: #18773f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
}
body main section#บทความ > .container > .section-head h2 {
  margin: 0;
  font-size: clamp(23px, 2.4vw, 33px) !important;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.022em;
  color: #123521;
}
body main section#บทความ > .container > .section-head p {
  margin: 0;
  color: #557363;
  font-size: 13px;
  line-height: 1.55;
}
/* Quick orientation, not a disclosure: everything below is visible. */
body main section#บทความ .rc-article-toc {
  display: grid;
  grid-template-columns: minmax(175px, .28fr) minmax(0, 1fr);
  overflow: hidden;
  margin: 0 0 12px;
  border: 1px solid rgba(130, 213, 150, .34);
  border-radius: 15px;
  background: #0d261b;
  box-shadow: 0 8px 24px rgba(13, 63, 38, .07);
}
body main section#บทความ .rc-article-toc__label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 20px;
  border-right: 1px solid rgba(186, 247, 194, .13);
  background: linear-gradient(140deg, rgba(102, 191, 93, .14), rgba(255,255,255,.015));
}
body main section#บทความ .rc-article-toc__overline {
  color: #a0e48a;
  font: 800 9.5px/1.4 system-ui, sans-serif;
  letter-spacing: .15em;
}
body main section#บทความ .rc-article-toc__label strong {
  color: #f5fff4;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}
body main section#บทความ .rc-article-toc__label small {
  color: #a5bfaa;
  font-size: 11px;
  line-height: 1.5;
}
body main section#บทความ .rc-article-toc ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  margin: 0;
  list-style: none;
}
body main section#บทความ .rc-article-toc li { min-width: 0; margin: 0; list-style: none; }
body main section#บทความ .rc-article-toc a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(181, 242, 184, .12);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #e0eee5;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .15s, background .15s;
}
body main section#บทความ .rc-article-toc a:hover,
body main section#บทความ .rc-article-toc a:focus-visible {
  background: #204932;
  border-color: #95e286;
  color: #fff;
}
body main section#บทความ .rc-article-toc__number { color: #aff582; font: 900 10px/1.4 system-ui, sans-serif; }
body main section#บทความ .rc-article-toc__arrow { margin-left: auto; color: #97c99c; font-size: 12px; }
/* Original article cards displayed in logical, natural document order. */
body main section#บทความ .article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start;
  gap: 10px !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}
body main section#บทความ .article-shell > .article-card {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: clamp(16px, 1.85vw, 23px) clamp(16px, 2.05vw, 26px);
  border: 1px solid var(--rc-art-border);
  border-left: 3px solid #64b979;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(15, 61, 35, .045);
  color: #293d30;
  scroll-margin-top: 84px;
}
body main section#บทความ .article-shell > .article-card:first-child {
  border-left-color: #b9ef85;
  background: linear-gradient(120deg, #103725 0%, #0b2a1e 100%);
  color: #e7f1e8;
}
body main section#บทความ .article-shell > .article-card:first-child :is(h2,h3,h4) { color: #fff; }
body main section#บทความ .article-shell > .article-card:first-child :is(p,li,small) { color: #d6e9db; }
body main section#บทความ .article-shell > .article-card:first-child :is(strong,.keyword) { color: #cbfb9b; }
body main section#บทความ .article-shell .article-card :is(h2,h3,h4) {
  overflow-wrap: anywhere;
  color: var(--rc-art-ink);
}
body main section#บทความ .article-shell .article-card h2 {
  margin: 0 0 10px;
  font-size: clamp(17px, 1.65vw, 23px) !important;
  line-height: 1.42;
  font-weight: 900;
  letter-spacing: -.01em;
  scroll-margin-top: 84px;
}
body main section#บทความ .article-shell .article-card h3 {
  margin: 14px 0 7px;
  font-size: clamp(15px, 1.25vw, 18px) !important;
  line-height: 1.45;
  font-weight: 850;
}
body main section#บทความ .article-shell .article-card h4 { margin: 10px 0 6px; font-size: 14px; line-height: 1.45; }
body main section#บทความ .article-shell .article-card :is(p,li,blockquote,dd,dt) {
  font-size: clamp(12.75px, .98vw, 14px);
  line-height: 1.72;
  overflow-wrap: break-word;
}
body main section#บทความ .article-shell .article-card :is(p,.lead,.meta,.byline) {
  max-width: 100%;
  margin: 0 0 10px;
}
body main section#บทความ .article-shell .article-card :is(ul,ol) { margin: 7px 0 12px; padding-left: 24px; }
body main section#บทความ .article-shell .article-card li + li { margin-top: 3px; }
body main section#บทความ .article-shell .article-card :is(blockquote,.note-box) {
  max-width: 100%;
  margin: 11px 0;
  padding: 12px 15px;
  border: 1px solid #cce5d5;
  border-left: 3px solid #49a66b;
  border-radius: 8px;
  background: #f2f9f4;
  color: #2a5138;
}
body main section#บทความ .article-shell .article-card .note-box.warning { background: #fff9e8; border-color: #f1dfb0; color: #5d4a24; }
body main section#บทความ .article-shell .article-card :is(a,a:visited) { text-underline-offset: 3px; }
body main section#บทความ .article-shell .article-card :is(.table-scroll,.compare-wrap) {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dbe9df;
  border-radius: 9px;
}
body main section#บทความ .article-shell .article-card :is(table,.data-table) {
  max-width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
body main section#บทความ .article-shell .article-card :is(th,td) {
  padding: 9px 11px;
  border-bottom: 1px solid #e6f0e9;
  line-height: 1.55;
  vertical-align: top;
}
body main section#บทความ .article-shell .article-card th { background: #e9f4ec; color: #244f33; font-weight: 850; }
body main section#บทความ .article-shell .article-card tr:nth-child(even) td { background: #f8fbf9; }
/* Do not change any img / picture / figure dimensions: the source sizes remain authoritative. */
@media (max-width: 1000px) {
  body main section#บทความ .rc-article-toc { grid-template-columns: minmax(0, 1fr); }
  body main section#บทความ .rc-article-toc__label { padding: 12px 16px; border-right: 0; border-bottom: 1px solid rgba(186,247,194,.13); }
  body main section#บทความ .rc-article-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body main section#บทความ { padding-block: 27px 32px !important; }
  body main section#บทความ > .container > .section-head { padding-bottom: 12px; }
  body main section#บทความ > .container > .section-head h2 { font-size: clamp(20px, 5.5vw, 25px) !important; }
  body main section#บทความ > .container > .section-head p { font-size: 11.5px; }
  body main section#บทความ .rc-article-toc { margin-bottom: 9px; border-radius: 11px; }
  body main section#บทความ .rc-article-toc__label { gap: 2px; padding: 11px 13px; }
  body main section#บทความ .rc-article-toc__label strong { font-size: 15px; }
  body main section#บทความ .rc-article-toc__label small { font-size: 10px; }
  body main section#บทความ .rc-article-toc ol { gap: 5px; padding: 8px; }
  body main section#บทความ .rc-article-toc a { padding: 8px; font-size: 10.75px; line-height: 1.42; }
  body main section#บทความ .rc-article-toc__arrow { display: none; }
  body main section#บทความ .article-shell { gap: 8px !important; }
  body main section#บทความ .article-shell > .article-card { padding: 13px 13px 12px; border-radius: 9px; }
  body main section#บทความ .article-shell .article-card h2 { font-size: 17px !important; }
  body main section#บทความ .article-shell .article-card h3 { font-size: 15px !important; }
  body main section#บทความ .article-shell .article-card :is(p,li,blockquote,dd,dt) { font-size: 12.5px; line-height: 1.64; }
  body main section#บทความ .article-shell .article-card :is(th,td) { padding: 8px 9px; }
}
@media (max-width: 350px) {
  body main section#บทความ .rc-article-toc ol { grid-template-columns: 1fr; }
  body main section#บทความ .rc-article-toc a { min-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  body main section#บทความ .rc-article-toc a { transition: none; }
}
