/* Keizai Post - Single post template. Based on essay.html mockup. */

body.kp-custom #masthead,
body.kp-custom #page,
body.kp-custom .site-footer { display:none !important; }

body.kp-custom { background:#faf7f2; }

#kp-root{
  --paper:#faf7f2;--ink:#1a1712;--ink-2:#3a352c;--muted:#7b7364;--line:#dcd5c6;--line-2:#e8e2d4;--red:#b0361d;--gold:#7a5b1e;--tag:#5c4a2a;
}
#kp-root{box-sizing:border-box;background:var(--paper);color:var(--ink);font-family:'Noto Serif JP','EB Garamond',serif;-webkit-font-smoothing:antialiased;line-height:1.85}
#kp-root *{box-sizing:border-box}
#kp-root a{color:inherit;text-decoration:none}
#kp-root .sans{font-family:'Noto Sans JP',sans-serif}

#kp-root .mast{border-bottom:1px solid var(--ink);padding:18px 24px}
#kp-root .mast-inner{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}
#kp-root .brand{font-family:'Noto Serif JP',serif;font-weight:900;font-size:24px}
#kp-root .brand em{font-family:'EB Garamond',serif;font-style:italic;font-weight:500;color:var(--red)}
#kp-root .mast .r{font-family:'Noto Sans JP',sans-serif;font-size:12px;color:var(--muted)}
#kp-root .mast .r a{margin-left:14px;color:var(--ink-2)}

#kp-root .hero{max-width:820px;margin:0 auto;padding:56px 24px 24px;text-align:center}
#kp-root .crumb{font-family:'EB Garamond',serif;font-style:italic;color:var(--muted);font-size:13px;margin-bottom:24px}
#kp-root .crumb a{color:var(--red)}
#kp-root .cat-line{margin-bottom:20px}
#kp-root .cat-line span{font-family:'Noto Sans JP',sans-serif;font-size:11px;color:var(--red);letter-spacing:.3em;text-transform:uppercase}
#kp-root h1.title{font-family:'Noto Serif JP',serif;font-size:clamp(32px,4.6vw,52px);font-weight:700;line-height:1.25;letter-spacing:-.018em;margin-bottom:24px}
#kp-root .subtitle{font-family:'EB Garamond',serif;font-style:italic;font-size:20px;color:var(--ink-2);max-width:640px;margin:0 auto 32px;line-height:1.65}

#kp-root .byline{padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px}
#kp-root .author{display:flex;align-items:center;gap:14px;text-align:left}
#kp-root .av{width:52px;height:52px;background:var(--line-2);color:var(--tag);border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:'Noto Serif JP',serif;font-weight:700;font-size:20px;flex-shrink:0}
#kp-root .who b{display:block;font-family:'Noto Sans JP',sans-serif;font-size:14px;color:var(--ink);font-weight:700}
#kp-root .who span{font-family:'Noto Sans JP',sans-serif;font-size:11.5px;color:var(--muted);letter-spacing:.02em}
#kp-root .meta{font-family:'EB Garamond',serif;font-style:italic;color:var(--muted);font-size:14px;text-align:right}

#kp-root .cover{max-width:1000px;margin:36px auto 0;padding:0 24px}
#kp-root .cover-img{aspect-ratio:16/8;overflow:hidden}

#kp-root .body{max-width:680px;margin:56px auto 0;padding:0 24px;font-size:17px;color:var(--ink-2);line-height:1.95}
#kp-root .body > p:first-of-type::first-letter{font-family:'Noto Serif JP',serif;font-size:64px;float:left;line-height:.9;padding:8px 12px 0 0;color:var(--red);font-weight:700}
#kp-root .body p{margin-bottom:22px}
#kp-root .body p b,#kp-root .body p strong{color:var(--ink);font-weight:700}
#kp-root .body h2{font-family:'Noto Serif JP',serif;font-size:30px;font-weight:700;color:var(--ink);margin:48px 0 20px;letter-spacing:-.01em;line-height:1.3}
#kp-root .body h3{font-family:'Noto Serif JP',serif;font-size:22px;font-weight:600;color:var(--ink);margin:32px 0 14px}
#kp-root .body blockquote{font-family:'Noto Serif JP',serif;font-size:22px;line-height:1.6;color:var(--ink);font-weight:500;padding:20px 30px;margin:32px -20px;border-left:4px solid var(--red);position:relative}
@media (max-width:700px){#kp-root .body blockquote{margin:32px 0}}
#kp-root .body blockquote::before{content:'\201C';position:absolute;top:-8px;left:12px;font-family:'EB Garamond',serif;color:var(--red);font-size:48px;font-style:italic;line-height:1}
#kp-root .body ul,#kp-root .body ol{margin:16px 0 24px 24px}
#kp-root .body li{margin-bottom:10px}
#kp-root .body a{color:var(--red);border-bottom:1px solid var(--red)}
#kp-root .body img{max-width:100%;height:auto}

/* 타이안브릿지 CTA 박스 (본문 끝 자동 삽입, kp_taian_cta_html()) */
#kp-root .body .kp-cta{margin:40px -20px;background:#f5efe1;border:1px solid var(--line);border-left:4px solid var(--red);padding:28px 32px}
@media (max-width:700px){#kp-root .body .kp-cta{margin:32px 0}}
#kp-root .body .kp-cta .kp-cta-label{font-family:'Noto Sans JP',sans-serif;font-size:10px;letter-spacing:.24em;color:var(--red);text-transform:uppercase;margin-bottom:10px}
#kp-root .body .kp-cta h4{font-family:'Noto Serif JP',serif;font-size:20px;font-weight:700;color:var(--ink);margin:0 0 10px;line-height:1.4}
#kp-root .body .kp-cta p{font-size:14.5px;color:var(--ink-2);line-height:1.75;margin-bottom:18px}
#kp-root .body .kp-cta p b{color:var(--ink)}
#kp-root .body .kp-cta .kp-cta-btn{display:inline-block;background:var(--ink);color:var(--paper);border:0;border-bottom:0;font-family:'Noto Sans JP',sans-serif;font-size:13px;font-weight:700;letter-spacing:.04em;padding:12px 26px}
#kp-root .body .kp-cta .kp-cta-btn:hover{background:var(--red)}

#kp-root .body-toc{margin:32px 0;padding:24px 30px;border:1px solid var(--line);background:#faf7f2}
#kp-root .body-toc h4{font-family:'Noto Sans JP',sans-serif;font-size:11px;color:var(--muted);letter-spacing:.2em;text-transform:uppercase;margin-bottom:14px}
#kp-root .body-toc ol{counter-reset:sec;list-style:none;margin:0}
#kp-root .body-toc li{counter-increment:sec;font-family:'Noto Serif JP',serif;font-size:15px;padding:6px 0;line-height:1.5;margin-bottom:0}
#kp-root .body-toc li::before{content:counter(sec,decimal-leading-zero);font-family:'EB Garamond',serif;font-style:italic;color:var(--red);margin-right:12px;font-size:14px}

#kp-root .bio{max-width:680px;margin:64px auto 0;padding:32px 24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
#kp-root .bio-inner{display:flex;gap:24px;align-items:start}
@media (max-width:600px){#kp-root .bio-inner{flex-direction:column}}
#kp-root .bio .av{width:80px;height:80px;font-size:28px;flex-shrink:0}
#kp-root .bio h4{font-family:'Noto Serif JP',serif;font-size:20px;font-weight:700;margin-bottom:4px}
#kp-root .bio .role{font-family:'EB Garamond',serif;font-style:italic;color:var(--red);font-size:14px;margin-bottom:12px}
#kp-root .bio p{font-size:14.5px;color:var(--ink-2);line-height:1.75}

#kp-root .related{max-width:1000px;margin:64px auto 0;padding:0 24px}
#kp-root .related h3{font-family:'Noto Serif JP',serif;font-size:22px;font-weight:700;padding-bottom:12px;border-bottom:1px solid var(--ink);margin-bottom:24px;display:flex;justify-content:space-between;align-items:baseline}
#kp-root .related h3 span{font-family:'EB Garamond',serif;font-style:italic;color:var(--red);font-size:14px;font-weight:500}
#kp-root .rel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
@media (max-width:800px){#kp-root .rel-grid{grid-template-columns:1fr}}
#kp-root .rel-card .cover{aspect-ratio:5/4;overflow:hidden;margin-bottom:14px;max-width:none;padding:0}
#kp-root .rel-card h4{font-family:'Noto Serif JP',serif;font-size:18px;font-weight:600;line-height:1.4;margin-bottom:10px}
#kp-root .rel-card h4 a:hover,#kp-root .rel-card:hover h4{color:var(--red)}
#kp-root .rel-card .by{font-family:'Noto Sans JP',sans-serif;font-size:11.5px;color:var(--muted)}

#kp-root .nl{background:var(--ink);color:var(--paper);padding:52px 24px;margin-top:80px;text-align:center}
#kp-root .nl h3{font-family:'Noto Serif JP',serif;font-size:26px;font-weight:700;margin-bottom:8px}
#kp-root .nl h3 em{font-family:'EB Garamond',serif;font-style:italic;color:#d99b7d;font-weight:500}
#kp-root .nl p{font-family:'EB Garamond',serif;font-style:italic;color:#c9c1af;font-size:14px;margin-bottom:22px}
#kp-root .nl form{display:flex;gap:8px;justify-content:center;max-width:500px;margin:0 auto;flex-wrap:wrap}
#kp-root .nl input{padding:11px 18px;background:transparent;border:1px solid #4a4238;color:var(--paper);font-family:'Noto Sans JP',sans-serif;font-size:13.5px;min-width:260px;flex:1}
#kp-root .nl button{padding:11px 24px;background:var(--paper);color:var(--ink);border:0;font-weight:700;font-family:'Noto Sans JP',sans-serif;font-size:13px;cursor:pointer}

#kp-root footer{padding:32px 24px;text-align:center;font-family:'Noto Sans JP',sans-serif;font-size:12px;color:var(--muted)}
#kp-root footer a{color:var(--red);margin:0 8px}
