/* 용량 계산기 — docs/design/B_용량계산기.html */
section.body{padding:36px 0 60px}
.calc{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:32px;align-items:start}
.panel{border:1px solid var(--line);background:#fff}
.step{padding:22px 24px;border-bottom:1px solid var(--line)}
.step:last-child{border-bottom:0}
.step h3{font-size:17px;display:flex;align-items:center;gap:10px;margin-bottom:14px}
.step h3 i{font-style:normal;width:26px;height:26px;border-radius:50%;background:var(--green);color:#fff;font-size:13px;display:flex;align-items:center;justify-content:center;flex:none}
.step h3 small{font-weight:400;color:var(--sub);font-size:13px;margin-left:auto}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.f label{display:block;font-size:13px;color:#444;margin-bottom:5px;font-weight:500}
.f .in{display:flex;align-items:center;border:1px solid #cfd3d8;border-radius:2px;background:#fff;height:44px}
.f .in:focus-within{border-color:var(--green);box-shadow:0 0 0 2px rgba(125,191,66,.2)}
.f input,.f select{border:0;outline:0;font:inherit;font-size:16px;width:100%;height:100%;padding:0 12px;background:transparent;min-width:0}
.f .in span{padding:0 12px;color:#888;font-size:13px;white-space:nowrap}
.f select{cursor:pointer}
.pos{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.pos button{border:1px solid var(--line);background:#fff;border-radius:3px;padding:10px 6px 8px;font-size:12.5px;color:#444;line-height:1.35;display:flex;flex-direction:column;align-items:center;gap:6px}
.pos button svg{width:46px;height:30px}
.pos button.on{border:2px solid var(--green);background:var(--green-soft);color:var(--green-dark);font-weight:700;padding:9px 5px 7px}
.mat{display:flex;flex-wrap:wrap;gap:8px}
.mat button{border:1px solid var(--line);background:#fff;border-radius:16px;padding:6px 14px;font-size:14px;color:#444}
.mat button b{font-weight:500;color:#999;font-size:12.5px;margin-left:4px}
.mat button.on{background:var(--green);border-color:var(--green);color:#fff;font-weight:700}
.mat button.on b{color:#eaf6dd}
.mode{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line)}
.mode button{border:0;background:var(--soft);padding:16px;font-size:16px;font-weight:700;color:#777;border-bottom:3px solid transparent}
.mode button small{display:block;font-weight:400;font-size:12.5px;color:#999;margin-top:2px}
.mode button.on{background:#fff;color:var(--ink);border-bottom-color:var(--green)}
.chk{display:flex;align-items:center;gap:8px;font-size:14px;color:#444;margin-top:12px}
.chk input{width:17px;height:17px;accent-color:var(--green)}
.hint{font-size:12.5px;color:var(--sub);margin-top:8px}

/* 결과 */
.res{position:sticky;top:96px}
.res .head{background:var(--bar);color:#fff;padding:18px 22px}
.res .head small{color:#aeb4bb;font-size:13px}
.res .big{display:flex;align-items:baseline;gap:8px;margin-top:2px}
.res .big b{font-size:44px;line-height:1.1;color:#9fd96b;letter-spacing:-.02em}
.res .big span{font-size:18px;color:#dfe3e7}
.res .rec{font-size:15px;color:#dfe3e7;margin-top:4px}
.res .rec b{color:#fff}
.res .body{padding:18px 22px;border:1px solid var(--line);border-top:0;background:#fff}
.fx{font-size:13.5px;color:#444;background:var(--soft);border-left:3px solid var(--green);padding:12px 14px;line-height:1.75}
.fx b{color:var(--ink)}
.fx .eq{font-family:Consolas,"Noto Sans KR",monospace;font-size:13px;color:#333}
.warn{font-size:13.5px;background:#fff7e6;border:1px solid #f3d9a4;color:#7a5a12;padding:10px 12px;margin-top:10px;display:none}
.res h4{font-size:15px;margin:18px 0 10px}
.rm{display:flex;align-items:center;gap:12px;border:1px solid var(--line);padding:10px 12px;margin-bottom:8px}
.rm:hover{border-color:var(--green)}
.rm .pic{width:58px;height:58px;flex:none;display:flex;align-items:center;justify-content:center}
.rm .pic img{max-height:54px;width:auto}
.rm .pic.ph{background:var(--soft);font-size:11px;color:#999;text-align:center;border-radius:2px}
.rm b{display:block;font-size:15.5px}
.rm small{font-size:12.5px;color:var(--green-dark);font-weight:700}
.rm em{font-style:normal;font-size:12.5px;color:var(--sub);display:block}
.rm .go{margin-left:auto;font-size:12.5px;color:#888;white-space:nowrap}
.acts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.acts .btn{height:42px;font-size:14.5px}

/* 계산 방법 */
.how{margin-top:40px}
.how summary{cursor:pointer;font-size:18px;font-weight:700;padding:14px 0;border-bottom:2px solid var(--ink);list-style:none}
.how summary::-webkit-details-marker{display:none}
.how summary:after{content:"＋";float:right;color:var(--green-dark)}
.how[open] summary:after{content:"－"}
.how .cols{display:grid;grid-template-columns:1.3fr 1fr;gap:28px;padding-top:18px}
.how table{width:100%;border-collapse:collapse;font-size:13.5px}
.how th,.how td{border-bottom:1px solid var(--line);padding:8px 10px;text-align:left;vertical-align:top}
.how th{background:var(--soft);font-weight:700}
.how td.eq{font-family:Consolas,monospace;font-size:12.5px;white-space:nowrap}
.how p{font-size:14px;color:#444;margin:10px 0}

@media (max-width:960px){
  .calc{grid-template-columns:1fr}
  .res{position:static}
  .how .cols{grid-template-columns:1fr}
}
@media (max-width:560px){
  .grid3{grid-template-columns:1fr 1fr 1fr;gap:8px}
  .grid3 .f .in span{display:none}
  .f .in span{padding:0 6px}
  .acts{grid-template-columns:1fr}
  .f input{padding:0 8px;font-size:15px}
  .pos{grid-template-columns:repeat(2,1fr)}
  .step{padding:18px 16px}
  .res .big b{font-size:38px}
  .how td.eq{white-space:normal}
}
