/* 무료 도구 (계산기·체크리스트) — /tools, /ko/tools. site.css 의 색·서체 토큰을 그대로 쓴다 */
.tl { padding: 48px 0 24px; }
.tl-crumb { font-size: 14px; color: var(--ink-light); margin-bottom: 18px; }
.tl-crumb a { color: inherit; }
.tl-head { max-width: 820px; }
.tl-head h1 { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 48px); line-height: 1.12; letter-spacing: -.025em; }
.hh-ko .tl-head h1 { font-weight: 800; letter-spacing: -.035em; line-height: 1.25; }
.tl-head .hh-lead { max-width: 680px; }

.tl-card { margin: 36px 0 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); overflow: hidden; }
.tl-form { padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; align-content: start; }
.tl-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tl-field.is-wide { grid-column: 1 / -1; }
.tl-field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.tl-field small { font-size: 12.5px; color: var(--ink-light); line-height: 1.45; }
.tl-field input, .tl-field select {
    width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-md);
    background: var(--page); font: inherit; font-size: 16px; color: var(--ink); min-width: 0;
}
.tl-field input:focus, .tl-field select:focus { outline: none; border-color: var(--celadon-mid); background: var(--white); }
.tl-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-mid); grid-column: 1 / -1; }
.tl-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--celadon); flex: 0 0 20px; }
.tl-more { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; }
.tl-more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--celadon-mid); }
.tl-more[open] summary { margin-bottom: 16px; }
.tl-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }

.tl-out { background: var(--celadon); color: var(--white); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.tl-out-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); }
.hh-ko .tl-out-label { letter-spacing: .02em; font-size: 13px; }
.tl-big { font-family: var(--serif); font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -.02em; word-break: break-all; }
.tl-sub { font-size: 14.5px; color: rgba(255,255,255,.78); line-height: 1.55; }
.tl-rows { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.16); }
.tl-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14.5px; }
.tl-row span:first-child { color: rgba(255,255,255,.75); }
.tl-row b { font-weight: 600; text-align: right; white-space: nowrap; }
.tl-row.is-total b { color: var(--sand); font-size: 16px; }
.tl-warn { background: rgba(247,201,166,.14); border: 1px solid rgba(247,201,166,.4); color: var(--white); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.tl-warn[hidden] { display: none; }
.tl-note { font-size: 12.5px; color: rgba(255,255,255,.6); line-height: 1.5; margin-top: auto; }

.tl-sec { padding: 56px 0 0; }
.tl-sec .hh-prose { max-width: 780px; }
.tl-sec .hh-prose h2:first-child { margin-top: 0; }
.tl-formula { background: var(--celadon-pale); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-size: 16px; color: var(--ink); margin: 0 0 22px; }

.tl-faq { max-width: 780px; display: grid; gap: 10px; }
.tl-faq h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.hh-ko .tl-faq h2 { font-weight: 800; letter-spacing: -.03em; }
.tl-faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.tl-faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; color: var(--ink); }
.tl-faq details p { margin-top: 10px; color: var(--ink-mid); line-height: 1.7; }

.tl-cta { margin: 64px 0 0; background: var(--celadon); color: var(--white); border-radius: var(--radius); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tl-cta h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.hh-ko .tl-cta h2 { font-weight: 800; letter-spacing: -.03em; }
.tl-cta h2 span { color: var(--sand); margin-right: 4px; }
.tl-cta p { color: rgba(255,255,255,.78); margin-top: 10px; max-width: 560px; }
.tl-cta .hh-btn { flex: 0 0 auto; }

.tl-sources { max-width: 780px; margin: 48px 0 0; font-size: 14px; color: var(--ink-light); }
.tl-sources h2 { font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.tl-sources ul { margin: 0 0 12px 20px; padding: 0; }
.tl-sources li { margin-bottom: 4px; }
.tl-sources a { color: var(--celadon-mid); }

.tl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.tl-tile { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.tl-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tl-tile h2 { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.hh-ko .tl-tile h2 { font-weight: 800; letter-spacing: -.03em; }
.tl-tile p { font-size: 15px; color: var(--ink-light); }
.tl-tile span { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--celadon-mid); }

@media (max-width: 900px) {
    .tl-card { grid-template-columns: minmax(0, 1fr); }
    .tl-cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
}
@media (max-width: 560px) {
    .tl { padding-top: 32px; }
    .tl-form, .tl-out { padding: 22px 18px; }
    .tl-form, .tl-more-grid { grid-template-columns: minmax(0, 1fr); }
    .tl-grid { grid-template-columns: minmax(0, 1fr); }
    .tl-cta .hh-btn { width: 100%; white-space: normal; text-align: center; height: auto; min-height: 52px; padding: 12px 20px; }
}
