/* Common reading shell for กลับไทยแบบมีแผน EP.01–EP.16.
   Progressive enhancement: legacy content stays available when JavaScript is absent. */
.return-thailand-page .rt-unified-header,.return-thailand-page .rt-unified-footer{box-sizing:border-box;max-width:760px;margin:20px auto 30px;color:#0B1F3A;font-family:inherit}
.return-thailand-page .rt-unified-header{width:calc(100% - 32px)}
.return-thailand-page .rt-unified-footer{width:100%}
.return-thailand-page .rt-unified-header[hidden],.return-thailand-page .rt-unified-footer[hidden],.return-thailand-page .rt-opinion-slot[hidden]{display:none!important}
.return-thailand-page.rt-ready .chapter-head{display:none!important}
.return-thailand-page .rt-unified-header{padding:22px 22px 19px;background:#fff;border:1px solid #dde4ee;border-radius:16px}
.return-thailand-page .rt-unified-header .rt-kicker{color:#80621c;font-size:13px;line-height:1.5;font-weight:800;letter-spacing:.02em}
.return-thailand-page .rt-unified-header h1{margin:11px 0!important;color:#0B1F3A!important;font-size:clamp(23px,4vw,29px)!important;line-height:1.45!important}
.return-thailand-page .rt-unified-header .rt-lead{font-size:16px;color:#516077;line-height:1.75;margin:0 0 13px}
.return-thailand-page .rt-unified-header .rt-read-meta{font-size:13px;color:#657086;display:flex;gap:11px;flex-wrap:wrap;align-items:center}
.return-thailand-page .rt-hero-actions{margin-top:12px}
.return-thailand-page .rt-hero-actions .article-save-row{margin:0}
.return-thailand-page .rt-article-toc{margin:17px 0 0;border:1px solid #e0e4ed;border-radius:12px;background:#fff;overflow:hidden}
.return-thailand-page .rt-article-toc summary{padding:13px 16px;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#0B1F3A;cursor:pointer;font-size:15px;font-weight:800;list-style:none}
.return-thailand-page .rt-article-toc summary::-webkit-details-marker{display:none}
.return-thailand-page .rt-article-toc summary::marker{content:""}
.return-thailand-page .rt-article-toc[open] summary{border-bottom:1px solid #e0e4ed}
.return-thailand-page .rt-article-toc .rt-toc-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:8px 12px}
.return-thailand-page .rt-article-toc a{display:block;padding:10px 8px;border-bottom:1px solid #edf0f4;color:#193f67;font-size:14px;line-height:1.5;text-decoration:none}
.return-thailand-page .rt-unified-footer{position:relative;padding:0 0 20px;box-sizing:border-box;background:transparent}
.return-thailand-page .rt-unified-footer>section,.return-thailand-page .rt-unified-footer>aside,.return-thailand-page .rt-unified-footer>details{box-sizing:border-box;width:100%;margin:16px 0!important;padding:17px 19px!important;max-width:100%;background:#fff!important;border:1px solid #dfe5ed!important;border-radius:13px!important;min-width:0;box-shadow:none!important}
.return-thailand-page .rt-unified-footer h2,.return-thailand-page .rt-unified-footer h3{display:block!important;background:none!important;border:0!important;padding:0!important;margin:0 0 10px!important;color:#0B1F3A!important;font-size:19px!important;line-height:1.5!important;font-weight:800!important;letter-spacing:normal!important}
.return-thailand-page .rt-unified-footer h2:before,.return-thailand-page .rt-unified-footer h3:before{display:none!important;content:none!important}
.return-thailand-page .rt-unified-footer p,.return-thailand-page .rt-unified-footer li,.return-thailand-page .rt-unified-footer dt,.return-thailand-page .rt-unified-footer dd{font-size:14.5px!important;line-height:1.75!important;color:#46556a!important;overflow-wrap:anywhere}
.return-thailand-page .rt-unified-footer p{margin:3px 0 9px!important}
.return-thailand-page .rt-unified-footer .rt-opinion-slot{border-left:4px solid #C9A24B!important;background:#fffdf8!important}
.return-thailand-page .rt-unified-footer .rt-opinion-content>*{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;color:#142941!important}
.return-thailand-page .rt-unified-footer .rt-opinion-content :is(.return-opinion,.return-opinion-box,.opinion,.ep16-opinion){margin:0!important;border:0!important;padding:0!important;box-shadow:none!important;background:transparent!important}
.return-thailand-page .rt-unified-footer .rt-opinion-content :is(span,strong,h2){color:#0B1F3A!important}
.return-thailand-page .rt-unified-footer details.rt-terms{padding:0!important;overflow:hidden}
.return-thailand-page .rt-unified-footer .rt-terms>summary{display:flex!important;justify-content:space-between!important;align-items:center!important;min-height:59px!important;gap:12px!important;padding:16px 19px!important;cursor:pointer!important;color:#0B1F3A!important;font-size:19px!important;line-height:1.5!important;font-weight:800!important;list-style:none!important;background:#FFFCF5!important}
.return-thailand-page .rt-unified-footer .rt-terms>summary::-webkit-details-marker{display:none}
.return-thailand-page .rt-unified-footer .rt-terms>summary::marker{content:""}
.return-thailand-page .rt-unified-footer .rt-terms[open]>summary{border-bottom:1px solid #e2e7ed}
.return-thailand-page .rt-unified-footer .rt-arrow{display:inline-flex!important;justify-content:center!important;align-items:center!important;width:28px;height:28px;flex:0 0 28px;border:1px solid #D5BE82;border-radius:50%;color:#816423!important;font-size:25px!important;transition:transform .15s}
.return-thailand-page .rt-unified-footer .rt-terms[open] .rt-arrow{transform:rotate(180deg)}
.return-thailand-page .rt-unified-footer .rt-term-content{padding:8px 18px 18px!important;background:#fff!important;color:#0B1F3A!important}
.return-thailand-page .rt-unified-footer .rt-term-content :is(.return-vocab-list,dl,ul){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px 19px!important;margin:8px 0!important;padding:0!important;list-style:none!important}
.return-thailand-page .rt-unified-footer .rt-term-content .return-vocab-entry{display:block!important;padding:9px 0!important;margin:0!important;border:0!important;border-bottom:1px solid #e6ebf1!important;min-width:0!important;background:transparent!important}
.return-thailand-page .rt-unified-footer .rt-term-content :is(dt,strong){display:block!important;color:#0B1F3A!important;font-size:15px!important;line-height:1.6!important}
.return-thailand-page .rt-unified-footer .rt-term-content :is(dd,span){display:block!important;color:#43516a!important;font-size:14px!important;line-height:1.6!important;margin:0!important}
.return-thailand-page .rt-unified-footer .rt-compact-dictionary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin:0 18px 16px!important;padding:13px 14px!important;border:1px solid #e5e9ef!important;border-radius:10px!important;background:#f8fafc!important}
.return-thailand-page .rt-unified-footer .rt-compact-dictionary>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.return-thailand-page .rt-unified-footer .rt-compact-dictionary strong{color:#0B1F3A!important;font-size:14px!important;line-height:1.4!important;font-weight:750!important}
.return-thailand-page .rt-unified-footer .rt-compact-dictionary small{color:#66758b!important;font-size:12px!important;line-height:1.5!important}
.return-thailand-page .rt-unified-footer .rt-compact-dictionary>a{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;min-height:42px!important;padding:8px 10px!important;border:1px solid #C9A24B!important;border-radius:8px!important;background:#fff!important;color:#0B1F3A!important;font-size:12.5px!important;font-weight:750!important;line-height:1.45!important;text-decoration:none!important;text-align:center!important}
@media(max-width:420px){.return-thailand-page .rt-unified-footer .rt-compact-dictionary{margin:0 14px 14px!important;padding:12px!important;gap:8px!important}.return-thailand-page .rt-unified-footer .rt-compact-dictionary>a{font-size:12px!important;padding:8px!important}}
.return-thailand-page .rt-unified-footer .rt-source-list ol,.return-thailand-page .rt-unified-footer .rt-source-list ul{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px 20px!important;margin:0!important;padding:0!important;list-style:none!important;counter-reset:rt-src}
.return-thailand-page .rt-unified-footer .rt-source-list li{position:relative!important;margin:0!important;padding:7px 0 9px 25px!important;border:0!important;border-bottom:1px solid #e8ecf2!important;background:transparent!important;counter-increment:rt-src;min-width:0!important}
.return-thailand-page .rt-unified-footer .rt-source-list li:before{content:counter(rt-src) "."!important;position:absolute!important;left:0!important;top:7px!important;color:#927022!important;font-weight:750!important}
.return-thailand-page .rt-unified-footer .rt-source-list a{color:#133b65!important;font-size:13.5px!important;line-height:1.7!important;text-decoration:underline!important;text-underline-offset:2px;overflow-wrap:anywhere}
.return-thailand-page .rt-unified-footer .rt-source-list a.rt-source-translate{display:inline-block!important;margin-left:8px!important;font-size:12px!important;font-weight:700!important;color:#86651a!important;white-space:nowrap!important}
.return-thailand-page .rt-unified-footer .rt-source-translate-note{font-size:12px!important;margin-top:12px!important;color:#687589!important}
.return-thailand-page .rt-unified-footer .rt-education-note{border-left:3px solid #C9A24B!important;background:#f7f8fa!important}
.return-thailand-page .rt-unified-footer .rt-dictionary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;background:#fffcf5!important;border-color:#dbc998!important}
.return-thailand-page .rt-unified-footer .rt-dictionary a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:45px;padding:9px 13px;border:1px solid #C9A24B;border-radius:9px;background:#fff;color:#0B1F3A!important;font-size:13.5px!important;font-weight:750;text-align:center;text-decoration:none}
/* EP 01–05 share actions match the light outlined Move Thailand footer.
   EP 06–16 have no share panel in the shared template. */
.return-thailand-page .rt-unified-footer .rt-share-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.return-thailand-page .rt-unified-footer .rt-share-controls>*{
  display:flex;align-items:center;justify-content:center;min-height:44px;min-width:0;
  padding:9px 11px;border:1px solid #D5DEE8;border-radius:9px;
  background:#fff!important;color:#0B1F3A!important;font-family:inherit!important;
  font-size:13px!important;font-weight:750!important;line-height:1.5!important;
  text-align:center;text-decoration:none!important;cursor:pointer
}
.return-thailand-page .rt-unified-footer .rt-share-controls .rt-share-button{
  border-color:#D5DEE8!important;background:#fff!important;color:#0B1F3A!important
}
.return-thailand-page .rt-unified-footer .rt-share-controls .rt-facebook-page{
  border-color:#1877F2!important;background:#fff!important;color:#1877F2!important
}
.return-thailand-page .rt-unified-footer .rt-copy-status:empty{display:none!important}
.return-thailand-page .rt-unified-footer .rt-copy-status{min-height:0;font-size:12px!important;color:#28614d!important}
.return-thailand-page .rt-series-nav{display:flex;gap:8px;margin:22px 0 8px!important}
.return-thailand-page .rt-series-nav>a{flex:1;display:flex;justify-content:center;align-items:center;min-height:51px;min-width:0;border:1px solid #d9e0ea;border-radius:10px;background:#fff;padding:10px 7px;color:#0B1F3A!important;font-size:13px!important;line-height:1.45;text-align:center;text-decoration:none!important;font-weight:800}
.return-thailand-page .rt-series-nav>a[href="/series/return-thailand"]{border-color:#C9A24B;background:#fffaf0}
.return-thailand-page .rt-legacy-hidden{display:none!important}
.return-thailand-page .rt-unified-header :is(a,button,summary):focus-visible,.return-thailand-page .rt-unified-footer :is(a,button,summary):focus-visible{outline:3px solid #C9A24B!important;outline-offset:2px!important}
@media(max-width:720px){.return-thailand-page .rt-unified-header{width:calc(100% - 36px);margin-left:auto;margin-right:auto}.return-thailand-page .rt-unified-header{padding:17px 16px}.return-thailand-page .rt-unified-footer>section,.return-thailand-page .rt-unified-footer>aside,.return-thailand-page .rt-unified-footer>details{padding:15px!important}.return-thailand-page .rt-unified-footer .rt-terms>summary{padding:14px 15px!important}.return-thailand-page .rt-unified-footer .rt-term-content{padding:8px 15px 15px!important}.return-thailand-page .rt-article-toc .rt-toc-links,.return-thailand-page .rt-unified-footer .rt-source-list ol,.return-thailand-page .rt-unified-footer .rt-source-list ul,.return-thailand-page .rt-unified-footer .rt-term-content :is(.return-vocab-list,dl,ul){grid-template-columns:1fr!important}.return-thailand-page .rt-unified-footer .rt-dictionary{flex-direction:column;align-items:stretch!important}.return-thailand-page .rt-share-controls>*{font-size:12px!important}.return-thailand-page .rt-series-nav>a{font-size:12px!important}}
@media(prefers-reduced-motion:reduce){.return-thailand-page .rt-unified-footer .rt-arrow{transition:none}}

/* Permanent five-question reference card. The main episode TOC above
   remains a disclosure; only the redundant nested one is flattened. */
.return-thailand-page .chapter-content .content.prose .rt-five-question-card{
  display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  min-width:0!important;margin:20px 0 25px!important;padding:18px 20px 17px!important;
  border:1px solid #DDE2EA!important;border-radius:14px!important;
  background:#fff!important;color:#0B1F3A!important;box-shadow:none!important;
}
.return-thailand-page .chapter-content .content.prose .rt-five-question-card>.rt-five-question-title{
  display:block!important;margin:0 0 13px!important;padding:0 0 12px!important;
  border:0!important;border-bottom:1px solid #E6EAF0!important;background:transparent!important;
  font-size:19px!important;line-height:1.5!important;font-weight:800!important;color:#0B1F3A!important;
}
.return-thailand-page .chapter-content .content.prose .rt-five-question-card>.rt-five-question-title::before,
.return-thailand-page .chapter-content .content.prose .rt-five-question-card>.rt-five-question-title::after{
  content:none!important;display:none!important;
}
.return-thailand-page .chapter-content .content.prose .rt-five-question-card a{
  overflow-wrap:anywhere;text-underline-offset:3px;
}
@media(max-width:720px){
  .return-thailand-page .chapter-content .content.prose .rt-five-question-card{
    padding:15px 16px!important;margin:17px 0 23px!important;
  }
  .return-thailand-page .chapter-content .content.prose .rt-five-question-card>.rt-five-question-title{
    font-size:18px!important;
  }
}

/* Shared footer aligns with the 18px episode-card gutter on phones. */
@media(max-width:700px){
  main.return-thailand-page .chapter-content > .rt-unified-footer{
    box-sizing:border-box!important;
    width:calc(100vw - 36px)!important;
    max-width:calc(100vw - 36px)!important;
    left:50%;
    margin:14px 0 24px!important;
    transform:translateX(-50%);
  }
  main.return-thailand-page .rt-unified-footer > :is(section,aside,details){
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  main.return-thailand-page.rt-ready .rt-unified-footer > :first-child{
    margin-top:0!important;
  }
  /* When the JS shared footer is active, remove superfluous blank
     space reserved by full-page legacy episode shells. */
  main.return-thailand-page.rt-ready .chapter-content .content.prose :is(
    .ep3-spec-root .page,
    .ep4-spec-root .page,
    .ep5-spec-root .page,
    .ep6-spec-root .page,
    .ep7-spec-root .ep7-page,
    .ep8-spec-root .ep8-page,
    .ep9-spec-root .ep9-page,
    .ep10-spec-root .ep10-page,
    .ep11-spec-root .ep11-page,
    .ep12-spec-root .ep12-page,
    .ep13-spec-root .page
  ){
    padding-bottom:24px!important;
  }
  main.return-thailand-page .rt-unified-footer :is(p,li,a,dt,dd){
    overflow-wrap:anywhere;
    word-break:normal;
  }
}
