/* =========================================================
   2027 중위소득 · 내 지원금 찾기 – subsidy.css
   ========================================================= */

/* 체크박스 줄 (상황 선택) */
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.check-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  min-height: 40px;
}
.check-pill:hover { border-color: #bfdbfe; background: var(--blue-50); }
.check-pill.is-active {
  border-color: var(--blue);
  background: var(--blue-50);
  color: var(--blue-dark);
}
.check-pill.is-active::after {
  content: "✓";
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
}

/* 중위소득 비율 게이지 */
.gauge {
  margin: 18px 0 6px;
}
.gauge-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.gauge-head b { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.gauge-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dbeafe 0%, #e0f2fe 30%, #ecfdf5 62%, #fef3c7 100%);
  overflow: hidden;
}
.gauge-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #2563eb 70%, #3b82f6);
  transition: width .35s ease;
}
.gauge-pin {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 20px;
  margin-left: -2px;
  border-radius: 2px;
  background: rgba(15, 23, 42, .22);
}
.gauge-scale {
  position: relative;
  height: 18px;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--muted-2);
}
.gauge-scale span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.gauge-scale span:first-child { transform: none; }
.gauge-scale span:last-child { transform: translateX(-100%); }

/* 판정 요약 */
.judge-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.judge-row div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 6px;
  text-align: center;
  background: #fff;
}
.judge-row span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 2px;
}
.judge-row strong { font-size: 18px; letter-spacing: -.02em; }
.judge-row .j-ok strong { color: #047857; }
.judge-row .j-check strong { color: #b45309; }

/* 지원금 카드 */
.prog-section { margin-top: 8px; }
.prog-group + .prog-group { margin-top: 26px; }
.prog-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: -.02em;
}
.prog-group h3 em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.prog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.prog-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prog-card.is-ok { border-color: #a7f3d0; box-shadow: 0 10px 26px -22px rgba(5, 150, 105, .8); }
.prog-card.is-check { border-color: #fde68a; }
.prog-card.is-no { opacity: .72; }
.prog-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.prog-card h4 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -.02em;
  line-height: 1.35;
}
.prog-card .basis {
  font-size: 11.5px;
  color: var(--muted-2);
  font-weight: 600;
}
.prog-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}
.prog-card .money {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.prog-card .money strong { color: var(--blue-dark); font-size: 15px; }
.prog-card .how {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--muted-2);
}
.status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.status.ok { background: #ecfdf5; color: #047857; }
.status.check { background: #fffbeb; color: #b45309; }
.status.no { background: #f1f5f9; color: #64748b; }

@media (max-width: 760px) {
  .prog-grid { grid-template-columns: 1fr; }
  .judge-row strong { font-size: 16px; }
}

/* 내 가구 줄 강조 */
.data-table tr.is-mine td {
  background: var(--blue-50);
  font-weight: 700;
  color: var(--blue-dark);
}
