/*
 ThaiSwissCompass article typography / link pairing – 2026-11-03.
 Scope deliberately excludes homepage, tables, form tools, calculators and site navigation.
 Five-level type scale: 34 / 24 / 21 / 18 / 14 px.
*/
:root{
 --tsc-ink:#15243A;
 --tsc-heading:#0B2748;
 --tsc-muted:#65748A;
 --tsc-link-gold:#C9A24B;
}
.tsc-pair-blue-green{--tsc-link-1:#174F84;--tsc-link-2:#176B5B}
.tsc-pair-blue-red{--tsc-link-1:#174F84;--tsc-link-2:#B32632}
.tsc-pair-blue-purple{--tsc-link-1:#174F84;--tsc-link-2:#654A91}
.tsc-pair-green-purple{--tsc-link-1:#176B5B;--tsc-link-2:#654A91}
.tsc-pair-red-purple{--tsc-link-1:#B32632;--tsc-link-2:#654A91}
.tsc-pair-red-green{--tsc-link-1:#B32632;--tsc-link-2:#176B5B}

/* Articles rendered with templates/article.html */
main.chapter-page.tsc-editorial-2026,
main.chapter-page.tsc-editorial-2026 .chapter-head,
main.chapter-page.tsc-editorial-2026 .chapter-head :is(h1,p,span,time),
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose,
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose :is(h1,h2,h3,h4,p,li,dd,dt,blockquote,strong,a){
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif!important;
 letter-spacing:normal;
}
main.chapter-page.tsc-editorial-2026{background:#FFFFFF}
main.chapter-page.tsc-editorial-2026 .chapter-head h1,
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose h1{
 font-size:34px!important;line-height:1.35!important;font-weight:700!important;color:var(--tsc-heading)!important;
}
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose h2:not(:is(.sources h2,.dictionary h2,.article-glossary h2,.gmd-article-glossary h2,.ep-vocab h2,.article-series-navigation h2)){
 font-size:24px!important;line-height:1.45!important;font-weight:700!important;color:var(--tsc-heading)!important;
}
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose h3,
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose h4{
 font-size:21px!important;line-height:1.5!important;font-weight:700!important;color:var(--tsc-heading)!important;
}
main.chapter-page.tsc-editorial-2026 .chapter-head .chapter-lead{
 font-size:18px!important;line-height:1.72!important;font-weight:400!important;color:var(--tsc-ink)!important;
}
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose :is(p,li,dd):not(:is(.sources *, .dictionary *, .article-glossary *, .gmd-article-glossary *, .ep-vocab *, .article-vocab *, .rt-compact-dictionary *, .mg-dictionary *, .tsc-dictionary-link *, .article-series-navigation *, .article-share-actions *, .table-wrap *, .tbl *)){
 font-size:18px!important;line-height:1.72!important;font-weight:400!important;
}
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose > :is(p,ul,ol) :is(p,li,dd),
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose > p{
 color:var(--tsc-ink)!important;
}
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose :is(strong,b){
 font-weight:700!important;
}
main.chapter-page.tsc-editorial-2026 .chapter-head :is(.chapter-meta,.chapter-byline,.chapter-byline span,.chapter-byline time),
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose :is(p.reference,p.source-note,p.disclaimer,.sources p,.sources li,.sources a,.dictionary p,.dictionary li,.dictionary a){
 font-size:14px!important;line-height:1.65!important;font-weight:400!important;
}
/* Keep original panel colors and card dimensions. Change only paper hue. */
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content > .content.prose{
 background:#FFFFFF;
}

/* Standalone reading guides opt in with body.tsc-guide-reading + article.paper */
body.tsc-guide-reading{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif;color:var(--tsc-ink)}
body.tsc-guide-reading article.paper{background:#FFFFFF!important;font-family:inherit!important;font-size:18px!important;font-weight:400!important;color:var(--tsc-ink)!important}
body.tsc-guide-reading article.paper > h1{
 font-size:34px!important;line-height:1.35!important;font-weight:700!important;color:var(--tsc-heading)!important;
}
body.tsc-guide-reading article.paper > h2{
 font-size:24px!important;line-height:1.45!important;font-weight:700!important;color:var(--tsc-heading)!important;
}
body.tsc-guide-reading article.paper > h3{
 font-size:21px!important;line-height:1.5!important;font-weight:700!important;color:var(--tsc-heading)!important;
}
body.tsc-guide-reading article.paper > :is(p,ul,ol) > li,
body.tsc-guide-reading article.paper > p:not(:is(.meta,.reference,.disclaimer,.foot)){
 font-size:18px!important;line-height:1.72!important;font-weight:400!important;color:var(--tsc-ink)!important;
}
body.tsc-guide-reading article.paper :is(strong,b){font-weight:700!important}
body.tsc-guide-reading article.paper :is(.meta,.reference,.disclaimer),
body.tsc-guide-reading article.paper :is(.reference a,.sources li,.sources a){
 font-size:14px!important;line-height:1.65!important;font-weight:400!important;
}
body.tsc-guide-reading article.paper :is(.sources h2,.dictionary h2){font-size:19px!important}

/* Linked reading content: primary plus optional secondary, with visible underlines. */
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose :is(p,li,dd) a[href]:not(:is(.btn,.button,[role="button"])),
body.tsc-guide-reading article.paper :is(p,li,dd) a[href]:not(:is(.btn,.button,[role="button"])){
 color:var(--tsc-link-1,#174F84)!important;
 text-decoration-line:underline!important;
 text-decoration-thickness:1px!important;
 text-decoration-color:var(--tsc-link-gold)!important;
 text-underline-offset:3px!important;
 overflow-wrap:anywhere;
}
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose :is(p,li,dd) a.tsc-link-secondary[href]:not(:is(.btn,.button,[role="button"])),
body.tsc-guide-reading article.paper :is(p,li,dd) a.tsc-link-secondary[href]:not(:is(.btn,.button,[role="button"])){
 color:var(--tsc-link-2,#176B5B)!important;
}
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose a[href]:focus-visible,
body.tsc-guide-reading article.paper a[href]:focus-visible{
 outline:2px solid var(--tsc-link-gold)!important;outline-offset:3px;
}
/* Mobile article titles follow the unified responsive scale below. */
/* Static tax articles: keep interactive checklists, tables and form controls unchanged */
body.tsc-guide-reading article.article{
 background:#FFFFFF!important;color:var(--tsc-ink)!important;
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif!important;
 font-size:18px!important;font-weight:400!important;
}
body.tsc-guide-reading article.article > h1{
 font-size:34px!important;line-height:1.35!important;font-weight:700!important;color:var(--tsc-heading)!important;
}
body.tsc-guide-reading article.article > h2{
 font-size:24px!important;line-height:1.45!important;font-weight:700!important;color:var(--tsc-heading)!important;
}
body.tsc-guide-reading article.article > h3{
 font-size:21px!important;line-height:1.5!important;font-weight:700!important;color:var(--tsc-heading)!important;
}
body.tsc-guide-reading article.article > p:not(:is(.kicker,.meta,.reference,.disclaimer)),
body.tsc-guide-reading article.article > :is(ul,ol) > li{
 font-size:18px!important;line-height:1.72!important;font-weight:400!important;color:var(--tsc-ink)!important;
}
body.tsc-guide-reading article.article :is(strong,b){font-weight:700!important}
body.tsc-guide-reading article.article :is(.meta,.reference,.disclaimer,.kicker),
body.tsc-guide-reading article.article .sources :is(p,li,a){
 font-size:14px!important;line-height:1.65!important;font-weight:400!important;
}
body.tsc-guide-reading article.article :is(p,li,dd) a[href]:not(:is(.btn,.button,[role="button"],[style*="background"])){
 color:var(--tsc-link-1,#174F84)!important;
 text-decoration-line:underline!important;text-decoration-thickness:1px!important;
 text-decoration-color:var(--tsc-link-gold)!important;text-underline-offset:3px!important;
}
body.tsc-guide-reading article.article :is(p,li,dd) a.tsc-link-secondary[href]:not(:is(.btn,.button,[role="button"],[style*="background"])){
 color:var(--tsc-link-2,#176B5B)!important;
}
body.tsc-guide-reading article.article a[href]:focus-visible{outline:2px solid var(--tsc-link-gold);outline-offset:3px}

/*
 Article-specific accessibility repair: /article/saeule-3a-early-withdrawal.
 The source bibliography and glossary share a legacy .ep-vocab wrapper.
 Avoid the inherited navy panel + navy link combination. Keep references compact.
 No legal wording, URLs, or article navigation is modified here.
*/
main.chapter-page.tsc-saeule3a-early-withdrawal .chapter-reading .chapter-content .content.prose > .ep-vocab{
  background:#FFFFFF!important;
  color:#15243A!important;
  border:0!important;
  border-top:1px solid #DDE4ED!important;
  border-radius:0!important;
  padding:20px 0 0!important;
  margin:32px 0 24px!important;
  box-shadow:none!important;
  max-width:100%!important;
}
main.chapter-page.tsc-saeule3a-early-withdrawal .chapter-reading .chapter-content .content.prose > .ep-vocab > h2{
  margin:26px 0 12px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#0B2748!important;
  font-size:20px!important;
  font-weight:700!important;
  line-height:1.45!important;
}
main.chapter-page.tsc-saeule3a-early-withdrawal .chapter-reading .chapter-content .content.prose > .ep-vocab > h2:first-child{
  margin:0 0 8px!important;
  color:#526477!important;
  font-size:15px!important;
  font-weight:700!important;
}
main.chapter-page.tsc-saeule3a-early-withdrawal .chapter-reading .chapter-content .content.prose > .ep-vocab > p{
  color:#15243A!important;
  font-size:18px!important;
  font-weight:400!important;
  line-height:1.72!important;
  margin:0 0 12px!important;
  overflow-wrap:anywhere;
}
main.chapter-page.tsc-saeule3a-early-withdrawal .chapter-reading .chapter-content .content.prose > .ep-vocab > h2:first-child + p,
main.chapter-page.tsc-saeule3a-early-withdrawal .chapter-reading .chapter-content .content.prose > .ep-vocab > h2:first-child + p + p{
  font-size:14px!important;
  line-height:1.6!important;
  margin:0 0 7px!important;
}
main.chapter-page.tsc-saeule3a-early-withdrawal .chapter-reading .chapter-content .content.prose > .ep-vocab > h2:first-child + p a[href],
main.chapter-page.tsc-saeule3a-early-withdrawal .chapter-reading .chapter-content .content.prose > .ep-vocab > h2:first-child + p + p a[href]{
  display:inline!important;
  color:#174F84!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.6!important;
  background:transparent!important;
  text-decoration-line:underline!important;
  text-decoration-color:#C9A24B!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:3px!important;
  border:0!important;
}
main.chapter-page.tsc-saeule3a-early-withdrawal .chapter-reading .chapter-content .content.prose > .ep-vocab strong{
  color:#0B2748!important;
  font-weight:700!important;
}
main.chapter-page.tsc-saeule3a-early-withdrawal .chapter-reading .chapter-content .content.prose > .ep-vocab > p:last-child a[href]{
  color:#174F84!important;
  text-decoration-line:underline!important;
  text-decoration-color:#C9A24B!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:3px!important;
  border:0!important;
}

/*
 Responsive editorial reading measure — 2026-11-13.
 One mobile gutter for article headings and body text. Previously the 9vw
 shell combined with nested card padding and squeezed the reading column.
 Keep custom EP layouts, interactive widgets and desktop geometry unchanged.
*/
@media(max-width:700px){
  main.chapter-page.tsc-editorial-2026 .chapter-head > .wrap.chapter-shell,
  main.chapter-page.tsc-editorial-2026 .chapter-reading > .wrap.chapter-shell{
    box-sizing:border-box!important;
    width:100%!important;
    padding-left:clamp(18px,5vw,22px)!important;
    padding-right:clamp(18px,5vw,22px)!important;
  }
  main.chapter-page.tsc-editorial-2026 .chapter-reading > .wrap.chapter-shell > .chapter-content{
    box-sizing:border-box;
    width:100%;
    min-width:0;
    max-width:100%;
  }
  main.chapter-page.tsc-editorial-2026:not(.return-thailand-page)
  .chapter-reading .chapter-content > .content.prose{
    box-sizing:border-box;
    min-width:0;
    max-width:100%;
  }
  main.chapter-page.tsc-editorial-2026 .chapter-head h1,
  main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose h1,
  body.tsc-guide-reading article.paper > h1{
    font-size:clamp(28px,7.8vw,32px)!important;
  }
  /* Standalone guides use a paper card, not the chapter shell.
     Preserve their existing padding and interactive tool layout. */
  body.tsc-guide-reading article.paper{
    box-sizing:border-box!important;
    width:calc(100% - 16px)!important;
    max-width:840px;
    margin-left:8px!important;
    margin-right:8px!important;
    padding-left:clamp(24px,7vw,32px)!important;
    padding-right:clamp(24px,7vw,32px)!important;
  }
}

/* Editorial glossary contrast guard: 2026-11-03 */
/*
  The legacy .ep-vocab panel is navy with white type, while link-pair rules
  can override the white links with navy. Make all standard article glossary
  panels white instead of relying on competing dark/bright color declarations.
  Scope strictly to article prose; does not affect site navigation, hero cards,
  calculators, forms, or the separately styled return-to-Thailand UI.
*/
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose .ep-vocab{
  box-sizing:border-box;
  max-width:100%;
  background:#FFFFFF!important;
  color:#15243A!important;
  border:1px solid #DDE4ED!important;
  border-top:2px solid #C9A24B!important;
  border-radius:12px!important;
  box-shadow:none!important;
  overflow-wrap:anywhere;
}
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose .ep-vocab :is(h2,h3){
  color:#0B2748!important;
  font-weight:700!important;
  line-height:1.45!important;
  background:transparent!important;
}
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose .ep-vocab h2{
  font-size:20px!important;
}
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose .ep-vocab :is(p,li,dd,dt){
  color:#15243A!important;
  font-weight:400!important;
  line-height:1.72!important;
  background:transparent!important;
}
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose .ep-vocab :is(dt,strong,b){
  color:#0B2748!important;
  font-weight:700!important;
}
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose .ep-vocab :is(small,dt small,dd small){
  color:#526477!important;
  background:transparent!important;
}
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose .ep-vocab a[href],
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose .ep-vocab :is(p,li,dd,dt) a[href],
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose .ep-vocab > p a[href]{
  color:#174F84!important;
  background:transparent!important;
  text-decoration:underline!important;
  text-decoration-color:#C9A24B!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:3px!important;
  border-bottom:0!important;
}
main.chapter-page.tsc-editorial-2026 .chapter-reading .chapter-content .content.prose .ep-vocab :is(p,li,dd,dt) a[href]:focus-visible{
  outline:2px solid #C9A24B!important;
  outline-offset:3px;
}
/* Keep the existing 3a reference/source typography and its flat white layout. */
main.chapter-page.tsc-saeule3a-early-withdrawal .chapter-reading .chapter-content .content.prose > .ep-vocab{
  border:0!important;
  border-top:1px solid #DDE4ED!important;
  border-radius:0!important;
}
