/*
Theme Name: 국민연금 정보마당
Description: 국민연금 가입·보험료, 급여, 청구와 수령 시점 비교를 제공하는 정보 테마.
Version: 1.3.5
Requires at least: 5.2
Requires PHP: 7.4
Text Domain: yeongeum-guide
*/
:root{color-scheme:light;--ink:#18281e;--green:#16553a;--mint:#e1f1e5;--muted:#4a6153;--line:#d7e5da;--cream:#f5f8f3}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#fff;font:1rem/1.65 system-ui,"Malgun Gothic",sans-serif;word-break:keep-all}a{color:inherit}a:focus-visible,summary:focus-visible,input:focus-visible,button:focus-visible{outline:3px solid #ba650c;outline-offset:4px}.wrap{width:min(1120px,calc(100% - 48px));margin-inline:auto}.bar{min-height:72px;display:flex;justify-content:space-between;align-items:center;gap:16px}.brand,nav a{text-decoration:none}.brand{font-weight:900;font-size:1.5rem}nav{display:flex;gap:24px;font-size:.9rem;font-weight:650}nav a:hover,.source a:hover{text-decoration:underline}.hero{background:#edf6ed;border-block:1px solid var(--line)}.hero-grid{min-height:480px;display:grid;grid-template-columns:1.12fr .88fr;align-items:center;gap:36px;padding-block:58px}.tag{font-size:.9rem;font-weight:750;color:var(--green);margin:0 0 10px}.hero h1{font-size:clamp(2.4rem,6vw,4.8rem);line-height:1.12;letter-spacing:-.065em;margin:0}.intro{margin:22px 0 0;color:var(--muted);font-size:1.1rem}.button{display:inline-flex;justify-content:center;align-items:center;text-align:center;border:1px solid transparent;border-radius:9px;padding:12px 18px;min-height:48px;text-decoration:none;font:inherit;font-weight:720;background:var(--green);color:white;cursor:pointer}.button:hover{background:#103e2a}.secondary{background:white;color:var(--green);border-color:#aac6b3}.secondary:hover{background:var(--mint)}.visual{min-width:0;min-height:340px;display:grid;place-items:center;background:radial-gradient(circle at 65% 30%,#68a27c,transparent 68%),#276342;border-radius:24px;padding:28px}.paper{max-width:295px;width:100%;border-radius:16px;padding:22px;background:#fff;box-shadow:0 14px 28px #102e2170;transform:rotate(-6deg)}.paper-top,.paper-bottom{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:.85rem;font-weight:650}.coin{color:var(--green);background:var(--mint);border-radius:50%;width:39px;height:39px;display:grid;place-items:center;font-size:1.25rem}.paper p{font-size:1.32rem;font-weight:780;margin:3px 0 10px}.graph{height:94px;display:flex;align-items:end;gap:8%;padding:0 8%;border-bottom:1px solid var(--line)}.graph i{flex:1;border-radius:5px 5px 0 0;background:#9fc8ab;height:29%}.graph i:nth-child(2){height:41%}.graph i:nth-child(3){height:48%}.graph i:nth-child(4){height:62%}.graph i:nth-child(5){height:74%;background:#659e7a}.graph i:nth-child(6){height:94%;background:var(--green)}.paper-bottom{margin-top:12px}.section{padding-block:66px;scroll-margin-top:12px}h2{font-size:clamp(1.85rem,4vw,2.7rem);line-height:1.2;letter-spacing:-.045em;margin:0 0 24px}h3{font-size:1.32rem;line-height:1.3;margin:14px 0 8px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.cards article{padding:24px;border:1px solid var(--line);border-radius:14px;display:flex;flex-direction:column;align-items:flex-start}.cards article p{color:var(--muted);margin:0 0 20px;flex:1}.chip{background:var(--mint);color:var(--green);padding:4px 10px;border-radius:6px;font-size:.875rem;font-weight:650}.guide{background:var(--cream);border-block:1px solid var(--line)}.guide-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:30px}.guide ol{margin:0;padding-inline-start:26px}.guide li{padding:8px 0 8px 8px}.guide li::marker{color:var(--green);font-weight:800}.guide p:not(.tag),details p{color:var(--muted);margin:4px 0 0}.questions{border-top:1px solid var(--line)}details{border-bottom:1px solid var(--line);padding:15px 0}summary{cursor:pointer;font-weight:700}details p{padding:4px 0 0 19px}.source{font-size:.9rem;color:var(--muted);margin:20px 0 0}footer{background:#142b20;color:#d0e2d5;padding:36px 0;font-size:.9rem}footer p{margin:6px 0}.footer-title{color:white;font-size:1.12rem}footer dl{margin:14px 0 0;overflow-wrap:anywhere}footer dl div{display:flex;gap:9px}footer dt{color:white;font-weight:650}footer dd{margin:0}
@media(max-width:800px){.cards{grid-template-columns:1fr}.hero-grid{min-height:0}.visual{min-height:280px}.guide-grid{grid-template-columns:1fr;gap:0}}
@media(max-width:600px){.wrap{width:calc(100% - 32px)}.bar{min-height:64px}nav{gap:12px;font-size:.875rem}.brand{font-size:1.25rem}.hero-grid{grid-template-columns:1fr;gap:27px;padding-block:39px}.visual{min-height:242px}.section{padding-block:46px}.desktop{display:none}}


header nav{flex-wrap:wrap;justify-content:flex-end;gap:8px 17px}
table{width:100%;border-collapse:collapse;background:white;border:1px solid var(--line)}
caption{text-align:start;font-weight:700;margin-bottom:9px}
th,td{text-align:start;border-bottom:1px solid var(--line);padding:11px 14px}
thead{background:var(--mint)}
.example-table{max-width:670px;margin-top:26px}
@media(max-width:800px){.bar{flex-wrap:wrap;justify-content:flex-start;padding-block:12px;gap:8px 20px}header nav{justify-content:flex-start}}
@media(max-width:480px){th,td{padding:9px 7px}header nav{gap:8px 14px}}

/* Keep fixed-width ad embeds from shifting the page on phones. */
.yeongeum-ad {
    max-inline-size: 100%;
    overflow-x: auto;
    overflow-wrap: anywhere;
}
.yeongeum-ad iframe,
.yeongeum-ad img,
.yeongeum-ad video {
    max-inline-size: 100%;
}

.bar nav a {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
}
footer dt { flex: none; }
footer dd { min-inline-size: 0; }

@media (max-width: 600px) {
    .bar {
        display: grid;
        gap: 6px;
    }
    .bar nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }
    .bar nav a {
        justify-content: center;
        padding: 4px;
        text-align: center;
        background: var(--cream);
        border-radius: 6px;
        overflow-wrap: anywhere;
    }
    .hero h1 { font-size: clamp(2rem, 10vw, 3.65rem); }
    .paper { transform: none; }
    .cards article { padding: 19px; }
    table { table-layout: fixed; overflow-wrap: anywhere; }
    th, td { vertical-align: top; }
    footer dl div { display: block; margin-block-end: 8px; }
}

.home-intro { padding-block: clamp(20px, 4vw, 44px); }
.home-intro .intro { max-width: 42rem; margin-block-start: 12px; line-height: 1.5; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-card { display: flex; flex-direction: column; align-items: start; border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px, 3vw, 28px); }
.tool-card h3 { margin-top: 0; }
.tool-card label { display: grid; inline-size: 100%; gap: 4px; font-weight: 650; margin-block-end: 14px; }
.tool-card input { inline-size: 100%; min-block-size: 46px; padding: 8px 12px; font: inherit; color: var(--ink); border: 1px solid #8ba99a; border-radius: 8px; }
.tool-card output:not(:empty) { display: block; margin-top: 14px; background: var(--mint); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.tool-note { color: var(--muted); margin-block-end: 0; }
.steps { padding-inline-start: 24px; max-width: 52rem; }
.steps li + li { margin-block-start: 12px; }
@media (max-width: 700px) { .tools-grid { grid-template-columns: 1fr; } }

.related-article {
    margin: 0 0 1.25rem;
}

.related-article-link {
    min-block-size: 48px;
    padding: 0.625rem 1.125rem;
    border: 2px solid var(--green);
    background: var(--mint);
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.4;
}

.related-article-link:hover {
    background: var(--green);
    color: white;
}

@media (max-width: 600px) {
    .related-article-link { inline-size: 100%; }
}
