*{box-sizing:border-box}body{margin:0;font:16px/1.65 system-ui,-apple-system,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;color:#1d2330;background:#f6f7f9}
:lang(ko) body{word-break:keep-all;overflow-wrap:break-word}
a{color:#0b5ed7}header,main,footer{max-width:760px;margin:0 auto;padding:0 16px}
header{display:flex;justify-content:space-between;align-items:center;padding-top:12px;padding-bottom:12px}
header a.logo{font-weight:700;color:#1d2330;text-decoration:none}nav a{margin-left:12px;font-size:14px}
h1{font-size:1.5rem;line-height:1.3}h2{font-size:1.2rem;margin-top:2rem}
.card{background:#fff;border:1px solid #e1e4ea;border-radius:10px;padding:14px 16px;margin:14px 0}
.big{font-size:1.6rem;font-weight:700}
table{border-collapse:collapse;width:100%;font-size:15px;display:block;max-width:100%;overflow-x:auto}th,td{border-bottom:1px solid #e1e4ea;padding:6px 8px;text-align:left}
input,select,button{font:inherit;padding:8px;margin:2px 0}select{max-width:100%}input[type=number]{width:5.5em}button{background:#0b5ed7;color:#fff;border:0;border-radius:6px}
.out{font-weight:700;margin-top:8px}.ad-slot{min-height:100px;margin:16px 0;text-align:center;color:#aaa;font-size:12px}
.links a{display:inline-block;margin:2px 8px 2px 0}footer{padding:24px 16px;font-size:13px;color:#667}
.crumbs{font-size:13px;color:#667}
@media(max-width:480px){table{font-size:13px}th,td{padding:6px 4px}}
.ad-slot:empty{display:none}
label.stk{display:flex;flex-direction:column;gap:4px;margin:10px 0}label.stk input[type=number]{width:100%;max-width:12em;box-sizing:border-box}label.stk select{width:100%;box-sizing:border-box}
label.chk{display:flex;gap:8px;align-items:flex-start;margin:10px 0}label.chk input{flex:none;margin:3px 0 0}

/* 묶음 디자인(sites/kr-calc/DESIGN-CARD.md). topic.json 에 theme 이 있는 주제만 body.themed 로 켜진다. 다른 주제는 위 규칙 그대로. */
.themed{font-family:"Pretendard Variable",Pretendard,-apple-system,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;font-variant-numeric:tabular-nums;background:#fdfcf9;color:#1d2330;letter-spacing:-.01em}
.themed [hidden]{display:none!important}
.themed a{color:var(--ink)}
.themed header{padding-top:14px;padding-bottom:14px;border-bottom:1px solid #e7e4dc;margin-bottom:6px;max-width:760px}
.themed header a.logo{display:inline-flex;align-items:center;gap:7px;font-weight:700;color:#1d2330}
.themed header svg{width:22px;height:22px;fill:var(--a);flex:none}
.themed nav a{color:#515a6b;text-decoration:none}
.themed h1{font-size:1.45rem;line-height:1.3;font-weight:800;letter-spacing:-.025em;margin:.55em 0 .5em}
.themed h2{font-size:1.15rem;margin-top:2.2rem;letter-spacing:-.02em}
.themed .lead{color:#515a6b;margin:12px 0 0;font-size:15px}
.themed .card{background:transparent;border:0;border-top:2px solid var(--a);border-radius:0;padding:2px 0 0;margin:6px 0 14px}
.themed .fld{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;padding:4px 0;border-bottom:1px solid #e7e4dc;font-size:15px}
.themed .fld .k{color:#3f4757;min-width:0}
.themed .fld .v{display:inline-flex;align-items:center;gap:4px;flex:none}
.themed .fld input,.themed .fld select{border:0;background:transparent;color:#1d2330;font-size:17px;font-weight:600;text-align:right;padding:6px 2px;margin:0;border-radius:0;font-variant-numeric:tabular-nums}
.themed .fld input[type=number]{width:5.2em;-moz-appearance:textfield}
.themed .fld input[type=number].n2{width:2.6em}
.themed .fld input::-webkit-outer-spin-button,.themed .fld input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.themed .fld input:focus,.themed .fld select:focus{outline:2px solid var(--a);outline-offset:1px}
.themed .fld .u{color:#515a6b;font-size:14px;white-space:nowrap}
.themed form.card button{display:block;width:100%;margin:12px 0 0;padding:12px;background:var(--a);color:var(--on);font-weight:700;font-size:16px;border-radius:8px;cursor:pointer}
.themed .out{margin-top:10px;font-weight:400;background:var(--soft);padding:12px 14px 14px;border-radius:8px;min-height:1em}
.themed .out:empty{display:none}
.themed .res-k{margin:0;font-size:13.5px;color:#3f4757}
.themed .out[data-example] .res-k::after{content:" · 예시 값";color:#515a6b}
.themed .num{margin:0;font-size:2.25rem;line-height:1.2;font-weight:800;letter-spacing:-.03em;color:var(--ink)}
.themed .sub{margin:2px 0 0;font-size:14px;color:#3f4757}
.themed .strip{margin-top:9px}
.themed .bar{display:flex;gap:2px;height:10px}
.themed .bar i{display:block;background:#d8d4c8;min-width:3px}
.themed .bar i.on{background:var(--a)}
.themed .cells{display:flex;align-items:flex-end;gap:6px;margin-top:6px;flex-wrap:nowrap}
.themed .cell{flex:1 1 0;min-width:0}
.themed .cell span{display:block;font-size:12px;color:#515a6b;line-height:1.3}
.themed .cell strong{display:block;font-size:13.5px;font-weight:700;line-height:1.35;white-space:nowrap}
.themed .sep{font-weight:700;color:#3f4757;font-size:16px;line-height:1.3;align-self:flex-end}
.themed .detail{margin-top:9px;padding-top:8px;border-top:1px solid rgba(29,35,48,.12);font-size:13px;color:#3f4757;line-height:1.55}
.themed .links a{margin:2px 10px 2px 0}
.themed th,.themed td{border-bottom:1px solid #e7e4dc}
.themed .ad-slot:empty{display:none}
@media(min-width:720px){
.themed form.card.calc{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:32px;grid-auto-rows:min-content}
.themed form.card.calc>.fld,.themed form.card.calc>button{grid-column:1}
.themed form.card.calc>.out{grid-column:2;grid-row:1/span 9;margin-top:10px;align-self:start}
}
@media(max-width:480px){.themed .num{font-size:2.1rem}}
