/* 주민번호 정보 추출·검증 전용 스타일 */

nav { max-width: 760px; }
main { max-width: 760px; }

/* 프라이버시 안내 */
.privacy-note {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #15803d;
  padding: 0.75rem 1rem;
  border-radius: 9px;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.privacy-note b {
  font-weight: 800;
  color: #14532d;
}
@media (prefers-color-scheme: dark) {
  .privacy-note { background: rgba(34, 197, 94, 0.1); color: #4ade80; }
  .privacy-note b { color: #86efac; }
}

/* RRN 입력 카드 */
.rrn-input-card {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.95rem;
}

.rrn-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 0.55rem;
}

.rrn-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.15rem 0.45rem 0.15rem 0.95rem;
  transition: border-color 0.15s;
}
.rrn-input-wrap:focus-within {
  border-color: var(--primary);
}

#rrn-input {
  flex: 1;
  padding: 0.7rem 0;
  font-size: 1.2rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  letter-spacing: 0.08em;
  min-width: 0;
}

.btn-clear-input {
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-clear-input:hover {
  background: var(--bg);
  border-color: var(--text-sub);
  color: var(--text);
}

.rrn-status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.rrn-status.dim  { color: var(--text-sub); font-weight: 500; }
.rrn-status.ok   { color: #15803d; }
.rrn-status.warn { color: #d97706; }
.rrn-status.err  { color: var(--error); }

/* 결과 카드 */
.result-card {
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem 1.2rem;
}

.result-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.cell-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.cell-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.cell-value.big {
  font-size: 1.4rem;
  color: var(--primary);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.cell-value.ok  { color: #15803d; }
.cell-value.err { color: var(--error); }

@media (max-width: 480px) {
  .result-grid { grid-template-columns: 1fr 1fr; gap: 0.55rem 0.85rem; }
  #rrn-input { font-size: 1.05rem; letter-spacing: 0.05em; }
}
