/* ── 양도소득세 계산기 페이지 ── */
.calc-page { max-width: 720px; }
.calc-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.yds-calc {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 28px;
}
.yds-field { display: flex; flex-direction: column; gap: 12px; }
.yds-field label, .yds-field-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.yds-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yds-field input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1.05rem;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  box-sizing: border-box;
}

.yds-pillgroup { display: flex; flex-wrap: wrap; gap: 8px; }
.yds-pillgroup button {
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.yds-pillgroup button:hover { border-color: var(--accent); color: var(--accent); }
.yds-pillgroup button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.yds-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
}
.yds-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }

.yds-result {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  text-align: center;
}
.yds-result-label { margin: 0 0 6px; font-size: 0.85rem; color: var(--text-muted); }
.yds-result-amount {
  margin: 0 0 18px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.yds-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.yds-steps li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-muted);
}
.yds-steps li strong { color: var(--text-primary); font-weight: 700; flex: none; }

.yds-exempt-note, .yds-short-note {
  margin: -6px 0 14px;
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: left;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-primary));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  color: var(--text-primary);
}

.yds-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.yds-share-btn:hover { background: var(--accent-hover); }

@media (max-width: 480px) {
  .yds-row2 { grid-template-columns: 1fr; }
}
