/* ── 정책자금 페이지 공통 스타일 ── */

/* 헤더 인트로 */
.kp-intro {
  margin-bottom: 28px;
}
.kp-intro h2 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  color: #1a1d20;
  margin-bottom: 8px;
  line-height: 1.4;
}
.kp-intro p {
  font-size: 14px;
  color: #6c757d;
}

/* 섹션 카드 */
.kp-section {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  padding: 28px;
  margin-bottom: 20px;
}
.kp-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #1a1d20;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e8f0fd;
}
.kp-section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: #0159de;
  border-radius: 2px;
  flex-shrink: 0;
}

/* 서브 타이틀 */
.kp-sub-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #0159de;
  margin: 24px 0 10px;
}
.kp-sub-title:first-child { margin-top: 0; }
.kp-sub-title::before {
  content: '●';
  font-size: 9px;
  margin-top: 6px;
  flex-shrink: 0;
}

/* 텍스트 박스 */
.kp-text-box {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  color: #343a40;
  line-height: 1.8;
  margin-bottom: 10px;
}
.kp-text-box p { margin: 0; }
.kp-text-box p + p { margin-top: 6px; }

/* 불릿 목록 */
.kp-bullet-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: bullet-counter;
}
.kp-bullet-list li {
  counter-increment: bullet-counter;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: #343a40;
  line-height: 1.8;
  padding: 16px 18px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.kp-bullet-list li::before {
  content: counter(bullet-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: #0159de;
  color: #f6f7fb;
  font-size: 12px;
  font-weight: 800;
  border-radius: 50%;
  margin-top: 2px;
}
/* 강조 박스 (청년 장려금 등) */
.kp-highlight-box {
  background: linear-gradient(135deg, #eaf1fc, #f0f5ff);
  border: 1px solid rgba(1, 89, 222, 0.15);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 4px;
  text-align: center;
}
.kp-highlight-main {
  font-size: 20px;
  font-weight: 900;
  color: #0159de;
  margin: 0 0 8px;
}
.kp-highlight-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* 안내 텍스트 박스 */
.kp-note {
  font-size: 13px;
  color: #64748b;
  background: #f1f5f9;
  border-left: 3px solid #94a3b8;
}

/* 4열 지원금 표 */
.kp-grant-table th {
  background: #f2f2f2;
  font-weight: 700;
  padding: 12px 10px;
}
.kp-grant-table td {
  padding: 11px 10px;
}

/* 번호형 리스트 */
.kp-numbered-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kp-numbered-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  font-size: 14px;
  color: #343a40;
  line-height: 1.7;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.kp-num-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: #0159de;
  color: #f6f7fb;
  font-size: 12px;
  font-weight: 800;
  border-radius: 50%;
  margin-top: 2px;
}

.kp-dash {
  padding-left: 1.2em;
  text-indent: -1.2em;
}
.kp-dash-sub {
  padding-left: 2.8em;
  text-indent: -1.2em;
}
.kp-sub-text.kp-dash {
  padding-left: 22px;
  text-indent: -17px;
}
.kp-sub-text.kp-dash-sub {
  padding-left: 39px;
  text-indent: -17px;
}

/* 지원규모 카드 */
.kp-fund-total {
  background: #0159de;
  color: #f6f7fb;
  border-radius: 10px;
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 12px;
}
.kp-fund-total .ft-label {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 4px;
}
.kp-fund-total .ft-amount {
  font-size: 22px;
  font-weight: 700;
}
.kp-fund-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.kp-fund-card {
  background: #e8f0fd;
  border: 1px solid #c2d6f9;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.kp-fund-card .fc-label {
  font-size: 12px;
  color: #0159de;
  font-weight: 600;
  margin-bottom: 4px;
}
.kp-fund-card .fc-amount {
  font-size: 15px;
  font-weight: 700;
  color: #003da5;
}

/* 표 공통 */
.kp-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  margin-bottom: 10px;
}
.kp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.kp-table th,
.kp-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #e9ecef;
  border-right: 1px solid #e9ecef;
  vertical-align: middle;
  line-height: 1.7;
}
.kp-table th:last-child,
.kp-table td:last-child { border-right: none; }
.kp-table thead th {
  background: #f1f3f5;
  font-weight: 600;
  color: #343a40;
  text-align: center;
}
.kp-table tr:last-child td,
.kp-table tr:last-child th { border-bottom: none; }
.kp-table .tc { text-align: center; }
.kp-table .th-cell {
  background: #f8f9fa;
  font-weight: 600;
  text-align: center;
  color: #343a40;
  white-space: nowrap;
}

/* 융자제한 표 번호 셀 */
.kp-restrict-table td:first-child {
  text-align: center;
  font-weight: 700;
  color: #0159de;
  background: #f8f9fa;
  white-space: nowrap;
  width: 48px;
}

/* 신청·문의 info 표 */
.kp-info-table th {
  background: #f1f3f5;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  width: 100px;
  color: #343a40;
}

/* 구분/용도 셀 */
.kp-category-cell {
  text-align: center;
  font-weight: 700;
  background: #f1f3f5;
  color: #343a40;
  white-space: nowrap;
}
.kp-usage-cell {
  text-align: center;
  white-space: nowrap;
  color: #343a40;
}

/* 보조 텍스트 */
.kp-sub-text {
  font-size: 13px;
  color: #6c757d;
  line-height: 1.6;
}

/* 주석 */
.kp-note {
  font-size: 13px;
  color: #6c757d;
  margin-top: 8px;
}

/* 문의처 */
.kp-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kp-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 14px;
}
.kp-contact-row .cr-key {
  font-weight: 600;
  color: #0159de;
  min-width: 72px;
  flex-shrink: 0;
}

/* 융자절차 이미지 */
.kp-proc-label {
  font-size: 14px;
  font-weight: 600;
  color: #343a40;
  margin: 14px 0 8px;
}
.kp-proc-img {
  padding: 15px 0;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  display: block;
  cursor: zoom-in;
  margin-bottom: 20px;
}

/* 링크 hover */
.tab-panel a:not(.btn-primary):not(.btn-outline) {
  color: #0159de;
  text-decoration: none;
  transition: color 0.18s ease;
}
.tab-panel a:not(.btn-primary):not(.btn-outline):hover {
  color: #003da5;
  text-decoration: underline;
}

/* 인페이지 탭 */
.kp-tab-buttons {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 24px;
}
.kp-tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.18s ease, border-color 0.18s ease;
  user-select: none;
}
.kp-tab-btn:hover { color: #0159de; }
.kp-tab-btn.is-active {
  color: #0159de;
  border-bottom-color: #0159de;
}
.kp-tab-pane { display: none; }
.kp-tab-pane.is-active { display: block; }

/* 요약 텍스트 (탭 상단 강조 박스) */
.kp-summary-box {
  background: #e8f0fd;
  border: 1px solid #c2d6f9;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  color: #1a1d20;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 20px;
}
.kp-summary-box sup {
  font-size: 11px;
  color: #0159de;
  font-weight: 700;
}

@media (max-width: 720px) {
  .kp-section { padding: 20px 16px; }
  .kp-fund-grid { grid-template-columns: repeat(2, 1fr); }
  .kp-tab-buttons {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .kp-tab-buttons::-webkit-scrollbar { display: none; }
  .kp-tab-btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }
}
