@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root{
  --bg:#ffffff; --fg:#22201b; --muted:#6e675c; --line:#ece6da; --soft:#faf7f0;
  --honey:#ffc93c; --honey-ink:#2b1d00; --amber:#9a5b00; --good:#2f7a3d; --warn:#a24a00;
  --radius:14px;
}
@media (prefers-color-scheme:dark){:root{
  --bg:#17150f; --fg:#eeeae0; --muted:#a59d8f; --line:#2f2b22; --soft:#201d16;
  --amber:#ffc93c; --good:#7fd48c; --warn:#ffb36b;
}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font-family:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;font-size:16px;line-height:1.65;word-break:keep-all;font-feature-settings:"tnum"}
a{color:var(--amber)}
:focus-visible{outline:3px solid var(--honey);outline-offset:2px;border-radius:6px}

/* 머리·꼬리 */
header.site{border-bottom:1px solid var(--line);background:var(--bg)}
header.site div{max-width:680px;margin:0 auto;padding:14px 16px;display:flex;justify-content:space-between;align-items:center}
header.site a{color:var(--fg);text-decoration:none}
header.site .logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:1.15rem;letter-spacing:-.02em}
header.site .logo svg{width:24px;height:24px}
header.site nav a{color:var(--muted);font-size:.92rem;margin-left:18px}
header.site nav a:hover{color:var(--fg)}
footer.site{border-top:1px solid var(--line);color:var(--muted);font-size:.85rem;margin-top:24px}
footer.site div{max-width:680px;margin:0 auto;padding:24px 16px 48px}
footer.site a{color:var(--muted);margin-right:16px}
footer.site p{margin:12px 0 0}

/* 본문 */
main{max-width:680px;margin:0 auto;padding:36px 16px 56px}
h1{font-size:clamp(1.7rem,5vw,2.1rem);line-height:1.25;letter-spacing:-.03em;font-weight:800;margin:0 0 8px}
h2{font-size:1.2rem;letter-spacing:-.02em;font-weight:750;margin:44px 0 12px}
p.sub{color:var(--muted);margin:0 0 28px;font-size:1.02rem;max-width:34em}
p{margin:8px 0}

/* 입력 */
label{display:block;font-size:.9rem;font-weight:650;margin:18px 0 7px}
label small{font-weight:400;color:var(--muted)}
input[type=date],input[type=text],input[type=number],select{
  width:100%;height:50px;padding:0 14px;font:inherit;font-size:1.05rem;font-weight:550;color:var(--fg);
  background:var(--soft);border:1.5px solid transparent;border-radius:12px;appearance:none;-webkit-appearance:none}
select{background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 20px) 22px,calc(100% - 15px) 22px;background-size:5px 5px;background-repeat:no-repeat;padding-right:36px}
input:hover,select:hover{border-color:var(--line)}
input:focus,select:focus{outline:none;border-color:var(--honey);background:var(--bg)}
input[type=date]{cursor:pointer}
input::placeholder{color:var(--muted);font-weight:400}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.row3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
@media (max-width:480px){.row3{grid-template-columns:1fr 1fr}}
.check{display:flex;align-items:center;gap:10px;font-weight:500;margin-top:18px;cursor:pointer}
.check input{width:20px;height:20px;accent-color:var(--honey);margin:0}

/* 선택 버튼 */
.seg{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.seg label{margin:0;font-weight:600;font-size:.92rem;padding:10px 16px;border-radius:999px;background:var(--soft);cursor:pointer;border:1.5px solid transparent}
.seg label:hover{border-color:var(--line)}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg label:has(input:checked){background:var(--honey);color:var(--honey-ink)}
.seg label:has(input:focus-visible){outline:3px solid var(--honey);outline-offset:2px}

/* 결과: 사이트에서 유일하게 꿀색을 칠하는 곳 */
.card{background:var(--honey);color:var(--honey-ink);border-radius:20px;padding:22px 22px 14px;margin-top:28px}
.card .note{color:rgba(43,29,0,.72);font-size:.92rem;font-weight:550}
.card .total{font-size:clamp(2rem,8vw,2.7rem);font-weight:850;letter-spacing:-.035em;line-height:1.15;margin:4px 0 14px;font-variant-numeric:tabular-nums}
.card .kv{border-top-color:rgba(43,29,0,.14)}
.card .kv span:first-child{color:rgba(43,29,0,.7)}
.card .plus{color:var(--honey-ink)}
.card a{color:var(--honey-ink)}
.card:empty{display:none}
.kv{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-top:1px solid var(--line);font-size:.97rem}
.kv span:last-child{text-align:right;font-weight:600}

/* 안내 */
.tip{background:var(--soft);padding:12px 16px 12px 40px;margin-top:10px;border-radius:12px;font-size:.95rem;position:relative}
.tip::before{content:"!";position:absolute;left:14px;top:12px;width:18px;height:18px;border-radius:50%;background:var(--warn);color:#fff;font-size:.75rem;font-weight:800;text-align:center;line-height:18px}
.tip.good::before{content:"✓";background:var(--good)}

/* 표 */
table{width:100%;border-collapse:collapse;font-size:.92rem;font-variant-numeric:tabular-nums}
th,td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top}
th:first-child,td:first-child{text-align:left}
th{color:var(--muted);font-weight:600;font-size:.85rem}
.plus{color:var(--good);font-weight:700}
.note{color:var(--muted);font-size:.86rem}
.cap{color:var(--muted);font-size:.8rem}
tr.future td{color:var(--muted)}

/* 자주 묻는 질문 */
details{border-bottom:1px solid var(--line);padding:14px 0}
details:first-of-type{border-top:1px solid var(--line)}
summary{cursor:pointer;font-weight:650;list-style:none;display:flex;justify-content:space-between;gap:12px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";color:var(--muted);font-weight:400;font-size:1.3rem;line-height:1}
details[open] summary::after{content:"−"}
details p{color:var(--muted);margin:10px 0 0}

/* 도구 목록: 카드 대신 줄 목록 */
.tools{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.tool{display:flex;flex-direction:column;padding:15px 4px;border-bottom:1px solid var(--line);color:var(--fg);text-decoration:none;position:relative;padding-right:32px}
.tool::after{content:"";position:absolute;right:8px;top:50%;width:8px;height:8px;border-top:2px solid var(--muted);border-right:2px solid var(--muted);transform:translateY(-50%) rotate(45deg)}
.tool:hover b{color:var(--amber)}
.tool b{font-size:1.04rem;font-weight:700;letter-spacing:-.01em}
.tool span{color:var(--muted);font-size:.9rem}
.tool.soon{opacity:.45;pointer-events:none}
.cat{font-size:1rem;color:var(--fg);font-weight:750;margin:36px 0 6px}
.cat small{color:var(--muted);font-weight:500;margin-left:6px}

/* 홈 검색 */
.find{position:relative;margin:4px 0 8px}
.find input{height:58px;font-size:1.1rem;padding-left:48px;border-radius:16px}
.find svg{position:absolute;left:16px;top:18px;width:22px;height:22px;color:var(--muted)}
.empty{color:var(--muted);padding:24px 0}

.ad{margin:28px 0}
.hide{display:none!important}
@media (prefers-reduced-motion:no-preference){.tool b{transition:color .15s}}
