/* =========================================================
   도구 페이지 공통 (file_draw.html 가공도면 작성 · file_select.html 볼나사의 선정)
   - 글꼴은 사이트 공통(common.css의 Pretendard)을 그대로 사용
   - 제목줄, 단계 표시, 카드, 카드 제목(번호 동그라미), 입력칸, 버튼, 안내문을 같은 모양으로
   ========================================================= */
* { box-sizing: border-box; }
body { background: #eef1f5; margin: 0; color: #1e293b; }

/* 페이지 제목줄 + 단계 표시 */
.tool-title-bar { max-width: 1400px; margin: 85px auto 0; padding: 30px 40px 4px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tool-title-bar .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--accent-color); margin-bottom: 6px; }
.tool-title-bar h1 { font-size: 26px; margin: 0 0 6px; font-weight: 800; color: #0f172a; }
.tool-title-bar .sub { font-size: 14px; color: #64748b; margin: 0; }
.steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #475569; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 6px 14px 6px 6px; white-space: nowrap; }
.steps li b { width: 22px; height: 22px; border-radius: 50%; background: var(--main-color); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* 카드 */
.tool-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); padding: 20px 22px; }
.tool-card > h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 17px; font-weight: 800; color: var(--main-color); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid #e2e8f0; }
.tool-card > h2 small { font-size: 12.5px; font-weight: 600; color: #64748b; }
.tool-accent { border-top: 4px solid var(--main-color); }
.step { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--main-color); color: #fff; font-size: 13px; font-weight: 800; flex-shrink: 0; }

/* 입력 항목 이름 / 선택칸 (연한 파랑) */
.tool-label { display: block; font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.tool-select { width: 100%; padding: 9px 8px; font-size: 16px; font-weight: 800; color: var(--main-color); border: 1.5px solid #93c5fd; border-radius: 6px; background: #eff6ff; font-family: inherit; text-align: center; }
.tool-select:focus { outline: none; border-color: var(--main-color); box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1); }

/* 버튼 */
.tool-btn { display: block; width: 100%; padding: 12px 8px; border-radius: 6px; font-size: 15px; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.tool-btn.primary { background: var(--main-color); color: #fff; border: 1px solid var(--main-color); }
.tool-btn.primary:hover { background: #003d82; color: #fff; }
.tool-btn.outline { background: #fff; color: var(--main-color); border: 1.5px solid var(--main-color); }
.tool-btn.outline:hover { background: #eff6ff; }

/* 안내문 (빨강 주의 / 회색 도움말) */
.tool-warn { font-size: 12.5px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; padding: 10px 14px; margin: 0; line-height: 1.6; font-weight: 600; }
.tool-help { font-size: 12.5px; color: #64748b; line-height: 1.6; }

@media (max-width: 900px) {
    .tool-title-bar { padding: 24px 16px 4px; }
    .tool-card { padding: 16px 14px; }
}
