/* 자녀 키 예측 계산기 전용 스타일 */

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

.card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.hp-card {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.95rem;
}

.hp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.hp-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.hp-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.hp-input-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 0.7rem 0 0;
  transition: border-color 0.15s;
}
.hp-input-row:focus-within { border-color: var(--primary); }
.hp-input-row input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.75rem;
  font-size: 1.15rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.hp-unit {
  font-size: 0.85rem;
  color: var(--text-sub);
  font-weight: 600;
}

.hp-gender-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}
.hp-label-block {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.hp-gender {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.65rem 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.15s;
}
.hp-gender:hover { border-color: var(--text-sub); }
.hp-gender input { accent-color: var(--primary); }
.hp-gender:has(input:checked) {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-calc {
  margin-top: 0.95rem;
  width: 100%;
  padding: 0.8rem 1.4rem;
  font-size: 0.98rem;
  font-weight: 800;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.15s;
  font-family: inherit;
}
.btn-calc:hover { filter: brightness(1.08); }

.result-card {
  padding: 1.2rem 1.3rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.result-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 11px;
  margin-bottom: 1.2rem;
}
.hero-icon { font-size: 2.6rem; line-height: 1; }
.hero-text { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.hero-value {
  font-size: 2rem;
  font-weight: 800;
  color: #15803d;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
@media (prefers-color-scheme: dark) {
  .hero-value { color: #4ade80; }
}
.hero-range {
  font-size: 0.88rem;
  color: var(--text-sub);
  font-weight: 500;
}

.meter-card {
  margin-bottom: 1.2rem;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.meter-track {
  position: relative;
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  overflow: visible;
}
.meter-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.6), rgba(99, 102, 241, 0.2));
  border-radius: 6px;
  width: 100%;
}
.meter-marker {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 4px;
  height: 18px;
  background: var(--primary);
  transform: translateX(-50%);
  border-radius: 2px;
}
.meter-tip {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.meter-tip::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--primary);
  border-bottom: none;
}

.meter-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-sub);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.meter-ticks span:nth-child(2) { color: var(--primary); font-weight: 700; }

.meter-label {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-sub);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  margin-bottom: 1.1rem;
}

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

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

.info-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}
.info-value.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.hp-note {
  margin-bottom: 1rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-sub);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  line-height: 1.65;
}
.hp-note b { color: var(--text); font-weight: 700; }

.tip-card {
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tip-list li {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-sub);
  padding-left: 1.1rem;
  position: relative;
}
.tip-list li::before {
  content: "·";
  position: absolute;
  left: 0.35rem;
  color: var(--primary);
  font-weight: 800;
}
.tip-list b { color: var(--text); font-weight: 700; }

@media (max-width: 600px) {
  .hp-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .hero-icon { font-size: 2.1rem; }
  .hero-value { font-size: 1.6rem; }
  .hp-gender { font-size: 0.88rem; }
}
