/* 부동산 취득세 계산기 전용 스타일 */

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

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

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

.at-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

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

.at-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;
}
.at-input-row:focus-within { border-color: var(--primary); }
.at-input-row input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  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: right;
}
.at-unit {
  font-size: 0.85rem;
  color: var(--text-sub);
  font-weight: 600;
}

.at-helper {
  font-size: 0.78rem;
  color: var(--text-sub);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  min-height: 0.95rem;
}
.at-helper:empty { display: none; }

.at-radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.45rem;
}

.at-radio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.85rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.at-radio:hover { border-color: var(--text-sub); }
.at-radio input { display: none; }
.at-radio:has(input:checked) {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--primary);
}
.at-radio-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-sub);
  line-height: 1;
}
.at-radio:has(input:checked) .at-radio-num { color: var(--primary); }
.at-radio-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.at-radio-label em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-sub);
}

.at-checks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.at-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s;
}
.at-check:hover { border-color: var(--text-sub); }
.at-check:has(input:checked) {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.35);
}
.at-check input {
  accent-color: var(--primary);
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
}
.at-check span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}
.at-check b { color: var(--text); font-weight: 700; }
.at-check em {
  font-style: normal;
  font-size: 0.76rem;
  color: var(--text-sub);
  font-weight: 400;
}

.btn-calc {
  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;
  margin-bottom: 0.95rem;
}
.btn-calc:hover { filter: brightness(1.08); }

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

.result-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.result-cell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.result-cell.highlight {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
  padding: 0.95rem 1rem;
}

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

.cell-rate {
  font-size: 0.78rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--text-sub);
  font-weight: 600;
}

.cell-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}
.cell-value.big {
  font-size: 1.6rem;
  color: var(--primary);
}
.cell-value.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.at-note {
  margin-top: 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;
}
.at-note b { color: var(--text); font-weight: 700; }

.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.table-summary {
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.table-summary::-webkit-details-marker { display: none; }
.table-summary::after {
  content: "▾";
  float: right;
  color: var(--text-sub);
  transition: transform 0.15s;
}
.table-card[open] .table-summary::after { transform: rotate(180deg); }
.table-card[open] .table-summary { border-bottom: 1px solid var(--border); }

.table-body {
  padding: 0.85rem 1rem 1rem;
}

.rate-h3 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.5rem 0;
  padding-top: 0.5rem;
}
.rate-h3:first-child { padding-top: 0; }

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.7rem;
}
.rate-table th {
  padding: 0.5rem 0.6rem;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-sub);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.rate-table th:not(:first-child),
.rate-table td:not(:first-child) { text-align: right; }
.rate-table td {
  padding: 0.45rem 0.6rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.rate-table tr:last-child td { border-bottom: none; }

@media (max-width: 600px) {
  .at-radio-row { grid-template-columns: 1fr; }
  .at-radio { flex-direction: row; text-align: left; }
  .at-radio-label { font-size: 0.85rem; }
  .result-cell { grid-template-columns: 1fr 1fr; }
  .cell-rate { text-align: right; font-size: 0.7rem; }
  .cell-value { grid-column: 1 / -1; }
  .result-cell.highlight .cell-value.big { font-size: 1.4rem; }
}
