/* KoreaFolio reading layout: existing palette, fonts, images and card sequence retained. */
nav.kf-language-nav,nav.kf-article-languages{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:stretch!important;margin:20px 0 24px!important;padding:0!important;max-width:680px;line-height:1.4!important}
nav.kf-language-nav>a,nav.kf-article-languages>a{box-sizing:border-box;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:44px!important;padding:10px 16px!important;background:#fff!important;border:1px solid #b8ccc5!important;border-radius:9px!important;color:#214e45!important;font-family:inherit;font-weight:600;font-size:15px;line-height:1.4;text-decoration:none!important;white-space:nowrap;letter-spacing:normal!important}
nav.kf-language-nav>a::before,nav.kf-article-languages>a::before{font:20px/1 'Apple Color Emoji','Segoe UI Emoji',sans-serif;display:inline-block}
nav.kf-language-nav>a[hreflang=en]::before,nav.kf-article-languages>a[hreflang=en]::before{content:'🇺🇸'}
nav.kf-language-nav>a[hreflang=ja]::before,nav.kf-article-languages>a[hreflang=ja]::before{content:'🇯🇵'}
nav.kf-language-nav>a[hreflang=zh-Hans]::before,nav.kf-article-languages>a[hreflang=zh-Hans]::before{content:'🇨🇳'}
nav.kf-language-nav>a[hreflang=zh-Hant]::before,nav.kf-article-languages>a[hreflang=zh-Hant]::before{content:'🇹🇼'}
html[lang=en] nav.kf-language-nav>a[hreflang=en],html[lang=ja] nav.kf-language-nav>a[hreflang=ja],html[lang=zh-Hans] nav.kf-language-nav>a[hreflang=zh-Hans],html[lang=zh-Hant] nav.kf-language-nav>a[hreflang=zh-Hant],nav.kf-article-languages>a[aria-current=page]{background:#eaf3ee!important;border-color:#315f56!important;box-shadow:inset 0 0 0 1px #315f56}
nav.kf-language-nav>a:hover,nav.kf-article-languages>a:hover{background:#f0f6f3!important}
nav.kf-language-nav>a:focus-visible,nav.kf-article-languages>a:focus-visible,.kf-reading-table:focus-visible{outline:3px solid #376f62;outline-offset:3px}
main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide){box-sizing:border-box!important;max-width:800px!important;width:100%!important;margin-inline:auto!important;min-width:0}
main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide){font-size:18px!important;line-height:1.85!important;overflow-wrap:break-word;word-break:normal}
main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide) p{font-size:inherit!important;line-height:1.85!important;margin:0 0 1.15em!important;max-width:75ch}
main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide) h1,main .page-intro h1{font-size:clamp(1.9rem,4.2vw,3rem)!important;line-height:1.22!important;letter-spacing:-.025em;max-width:30ch;margin:0 0 .65em!important;text-wrap:balance}
main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide) h2{font-size:clamp(1.35rem,2.6vw,1.75rem)!important;line-height:1.4!important;margin:1.8em 0 .7em!important;letter-spacing:-.015em;scroll-margin-top:100px;text-wrap:balance}
main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide) h3{font-size:1.15em!important;line-height:1.45!important;margin:1.4em 0 .6em!important}
main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide) section{margin-block:2.2rem!important}
main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide) :is(ul,ol){margin:.7em 0 1.4em!important;padding-inline-start:1.5em!important}
main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide) li{margin:.45em 0!important;padding-inline-start:.15em;line-height:1.8!important}
main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide) :is(a,td,th){overflow-wrap:anywhere}
main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide) a:not([class]){text-decoration:underline;text-underline-offset:.18em}
main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide) figcaption{font-size:.85rem!important;line-height:1.65!important;margin-top:10px!important}
.kf-reading-table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:1.4rem 0 1.8rem;border:1px solid #d9e3df;border-radius:8px}
.kf-reading-table table{margin:0!important;width:100%;border-collapse:collapse;font-size:.95em;line-height:1.65}
.kf-reading-table :is(th,td){padding:12px 14px!important;text-align:start;vertical-align:top;border:1px solid #d9e3df}
.kf-reading-table th{background:#edf4ef;color:#173e35;font-weight:700}
body[data-kf-readable=document] main>.wrap{max-width:840px!important;margin-inline:auto!important;padding-block:2rem!important}
body[data-kf-readable=document] main p{font-size:17px!important;line-height:1.9!important;margin:0 0 1.1em!important;max-width:75ch;overflow-wrap:break-word}
body[data-kf-readable=document] main h1{line-height:1.25!important;margin:0 0 1rem!important}
body[data-kf-readable=document] main :is(h2,h3){line-height:1.45!important;margin:1.6em 0 .7em!important}
body[data-kf-readable=document] main :is(ul,ol){padding-inline-start:1.5em!important;margin:.75em 0 1.5em!important;line-height:1.85}
body[data-kf-readable=document] main li{margin-block:.5em}
@media(max-width:640px){
 nav.kf-language-nav,nav.kf-article-languages{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;margin:18px 0 22px!important}
 nav.kf-language-nav>a,nav.kf-article-languages>a{min-width:0!important;padding:10px 8px!important;font-size:14px!important}
 main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide){font-size:17px!important;line-height:1.85!important}
 main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide) h1,main .page-intro h1{font-size:1.9rem!important;line-height:1.25!important}
 main :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide) h2{font-size:1.35rem!important;margin-top:1.65em!important}
 .kf-reading-table :is(td,th){min-width:110px;padding:10px!important}
}

main :is(.kf-native-article,.kf-article,.kf-daily-wrap) h1{padding:0!important}


/* 2026-11-01: keep article video and social cards readable on narrow screens. */
@media (max-width: 480px) {
  .kf-video-guide > a {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .kf-video-guide > a > :first-child {
    width: 100%;
    min-width: 0;
  }

  .kf-video-guide > a > :last-child {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .kf-article-sns .kf-sns-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .kf-article-sns .kf-sns-tile {
    min-width: 0;
    justify-content: flex-start;
    gap: 0.75rem;
    overflow-wrap: normal;
    word-break: normal;
  }

  .kf-article-sns .kf-sns-tile > span:last-child {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* 2026-11-02: preserve reading gutters on narrow screens, without changing the layout. */
@media(max-width:840px){
 main > :is(.kf-native-article,.kf-article,.kf-daily-wrap,.kf-expert-depth,.kfe-hub-guide){width:calc(100% - 40px)!important;}
 .site-footer .footer-grid > *{min-width:0;max-width:100%;}
}

