
:root{--ink:#1a2233;--ink-2:#3d4a63;--muted:#68748c;--line:#e5e9f2;--bg:#f7f8fb;--card:#ffffff;--brand:#17316a;--accent:#e8a020;--radius:14px}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;color:var(--ink);background:var(--bg);line-height:1.75;-webkit-font-smoothing:antialiased;word-break:keep-all}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
/* header */
.site-head{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.head-in{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.15rem;color:var(--brand)}
.logo img{width:30px;height:30px;border-radius:8px}
.gnb{display:flex;gap:4px;overflow-x:auto}
.gnb a{padding:8px 13px;border-radius:999px;font-size:.92rem;font-weight:600;color:var(--ink-2);white-space:nowrap}
.gnb a:hover{background:var(--bg)}
.gnb a.on{background:var(--brand);color:#fff}
/* hero */
.hero{background:linear-gradient(135deg,#132a5e 0%,#2b5cb0 100%);color:#fff;padding:52px 0 56px}
.hero h1{font-size:clamp(1.5rem,4vw,2.2rem);font-weight:800;letter-spacing:-.02em}
.hero p{margin-top:12px;color:#cdd9f0;font-size:1.02rem;max-width:640px}
.hero .chips{margin-top:22px;display:flex;gap:8px;flex-wrap:wrap}
.hero .chips a{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);padding:7px 14px;border-radius:999px;font-size:.88rem;font-weight:600}
.hero .chips a:hover{background:rgba(255,255,255,.22)}
/* sections */
.sec{padding:44px 0}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:20px}
.sec-head h2{font-size:1.3rem;font-weight:800;letter-spacing:-.01em}
.sec-head a{font-size:.88rem;color:var(--muted);font-weight:600}
/* cards */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
@media(max-width:860px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.grid{grid-template-columns:1fr}}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .18s,box-shadow .18s;display:flex;flex-direction:column}
.card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(23,42,88,.12)}
.card .thumb{aspect-ratio:1200/630;background:#dde3ef}
.card .body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.card .cat{font-size:.76rem;font-weight:700}
.card h3{font-size:1.02rem;font-weight:700;line-height:1.45;letter-spacing:-.01em}
.card p{font-size:.86rem;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card time{font-size:.78rem;color:#98a2b8;margin-top:auto}
/* featured */
.feature{display:grid;grid-template-columns:1.2fr 1fr;gap:26px;background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden;margin-bottom:34px}
.feature:hover{box-shadow:0 14px 34px rgba(23,42,88,.12)}
.feature .fimg{min-height:100%}
.feature .fimg img{height:100%;object-fit:cover}
.feature .fbody{padding:30px 30px 30px 6px;display:flex;flex-direction:column;gap:12px;justify-content:center}
@media(max-width:760px){.feature{grid-template-columns:1fr}.feature .fbody{padding:6px 22px 24px}}
.feature h3{font-size:1.35rem;font-weight:800;line-height:1.4;letter-spacing:-.015em}
.feature p{color:var(--muted);font-size:.95rem}
/* article */
.art-hero{max-width:820px;margin:36px auto 0;padding:0 20px}
.crumb{font-size:.84rem;color:var(--muted);margin-bottom:14px}
.crumb a{color:var(--muted)}
.crumb a:hover{color:var(--brand)}
.art-hero h1{font-size:clamp(1.5rem,3.6vw,2.1rem);font-weight:800;line-height:1.35;letter-spacing:-.02em}
.art-meta{display:flex;gap:14px;align-items:center;margin:16px 0 22px;font-size:.86rem;color:var(--muted)}
.art-meta .cat-badge{padding:4px 12px;border-radius:999px;color:#fff;font-weight:700;font-size:.8rem}
.art-hero .himg{border-radius:16px;overflow:hidden;border:1px solid var(--line)}
article.prose{max-width:820px;margin:0 auto;padding:10px 20px 30px;background:transparent}
.prose-in{background:#fff;border:1px solid var(--line);border-radius:18px;padding:clamp(22px,4vw,44px);margin-top:26px}
.prose h2{font-size:1.32rem;font-weight:800;margin:2.2em 0 .8em;padding-top:.4em;letter-spacing:-.01em;border-top:1px solid var(--line)}
.prose h2:first-child{margin-top:0;border-top:0;padding-top:0}
.prose h3{font-size:1.08rem;font-weight:700;margin:1.6em 0 .6em}
.prose p{margin:.9em 0;color:var(--ink-2)}
.prose ul,.prose ol{margin:.9em 0 .9em 1.3em;color:var(--ink-2)}
.prose li{margin:.35em 0}
.prose strong{color:var(--ink)}
.prose table{width:100%;border-collapse:collapse;margin:1.2em 0;font-size:.92rem;display:block;overflow-x:auto;white-space:nowrap}
@media(min-width:640px){.prose table{display:table;white-space:normal}}
.prose th{background:#f0f3fa;font-weight:700;text-align:left}
.prose th,.prose td{border:1px solid var(--line);padding:10px 14px}
.prose tr:nth-child(even) td{background:#fafbfe}
.prose blockquote{border-left:4px solid var(--accent);background:#fdf8ef;padding:14px 18px;border-radius:0 10px 10px 0;margin:1.2em 0;color:var(--ink-2)}
.prose a{color:#1d5cc0;text-decoration:underline;text-underline-offset:3px}
.prose hr{border:0;border-top:1px solid var(--line);margin:2em 0}
/* footer */
.site-foot{background:#101a30;color:#aab4cc;margin-top:50px}
.foot-in{padding:38px 0;display:flex;flex-wrap:wrap;gap:26px;justify-content:space-between;align-items:flex-start}
.foot-in .fl{max-width:420px}
.foot-in .fl .fname{color:#fff;font-weight:800;font-size:1.05rem;margin-bottom:8px}
.foot-in .fl p{font-size:.85rem;line-height:1.7}
.foot-links{display:flex;gap:18px;font-size:.88rem}
.foot-links a:hover{color:#fff}
.copy{border-top:1px solid #24304d;padding:16px 0;font-size:.8rem;color:#7c88a5}
/* misc */
.page-title{padding:44px 0 6px}
.page-title h1{font-size:1.7rem;font-weight:800;letter-spacing:-.02em}
.page-title p{color:var(--muted);margin-top:8px}
.related{max-width:820px;margin:0 auto;padding:0 20px 60px}
.related h2{font-size:1.2rem;font-weight:800;margin-bottom:16px}
.rel-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
@media(max-width:640px){.rel-grid{grid-template-columns:1fr}}

/* 모바일 가로 스크롤 방지 — 넓은 표가 문서 폭을 넘기지 않도록 가둠 */
html,body{overflow-x:hidden}
.prose table{max-width:100%}
.prose-in{overflow-x:hidden}
