/* 시급·월급·연봉 환산기 전용 스타일 */

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

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

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

.wage-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wage-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: border-color 0.15s;
  cursor: text;
}
.wage-row:focus-within { border-color: var(--primary); }
.wage-row.highlight {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.4);
}

.wage-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--text);
  min-width: 0;
}

.wage-icon { font-size: 1.05rem; }

.wage-name {
  font-weight: 700;
}
.wage-name em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-sub);
  font-weight: 500;
  margin-left: 0.3rem;
}

.wage-input-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 0.6rem 0 0;
}
.wage-row.highlight .wage-input-row { background: var(--bg); }
.wage-row:focus-within .wage-input-row { border-color: var(--primary); }

.wage-input-row input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.55rem;
  font-size: 1.05rem;
  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;
}
.wage-row.highlight .wage-input-row input { color: var(--primary); font-size: 1.15rem; }

.wage-unit {
  font-size: 0.82rem;
  color: var(--text-sub);
  font-weight: 600;
  white-space: nowrap;
}

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

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

.opts-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.opt-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}
.opt-label em {
  font-style: normal;
  font-size: 0.74rem;
  color: var(--text-sub);
  font-weight: 500;
  margin-left: 0.25rem;
}

.opt-input-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 0.6rem 0 0;
}
.opt-input-row input {
  width: 84px;
  padding: 0.45rem 0.55rem;
  font-size: 0.95rem;
  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;
}
.opt-unit {
  font-size: 0.78rem;
  color: var(--text-sub);
  white-space: nowrap;
}

.opt-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.opt-check input {
  accent-color: var(--primary);
  width: 1.05rem;
  height: 1.05rem;
}
.opt-check em {
  font-style: normal;
  font-size: 0.74rem;
  color: var(--text-sub);
  margin-left: 0.2rem;
}

.opts-summary-row {
  display: flex;
  gap: 0.55rem 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--text-sub);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.opts-summary-row b {
  color: var(--primary);
  font-weight: 800;
}

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

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

@media (max-width: 600px) {
  .wage-row { grid-template-columns: 1fr; gap: 0.35rem; padding: 0.6rem 0.7rem; }
  .wage-input-row input { font-size: 1rem; }
  .wage-row.highlight .wage-input-row input { font-size: 1.05rem; }
  .opt-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .opt-input-row input { width: 100%; }
}
