/* 투자 성향 고르기와 금액별 구성 미리보기(fund-profile-form.js). 공통 색 변수(--line, --muted, --green)를 쓴다. */
.fund-profile-form { display: grid; gap: 10px; min-width: 0; }
.fund-profile-form legend { padding: 0 4px; font-weight: 800; }
.fund-profile-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.fund-profile-card { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; min-width: 0; }
/* 공통 input 규칙(가로 100%·안쪽 여백)이 라디오 단추를 넓혀 글자 칸을 밀어내지 않게 되돌린다. */
.fund-profile-card input[type="radio"] { width: auto; min-width: 0; padding: 0; margin: 3px 0 0; flex: 0 0 auto; }
.fund-profile-card.is-selected { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.fund-profile-card-body { display: grid; gap: 4px; min-width: 0; flex: 1 1 auto; }
.fund-profile-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fund-profile-card-text { font-size: 12px; line-height: 1.45; }
.fund-profile-preview { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  min-width: 0; }
.fund-profile-preview-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fund-profile-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fund-profile-table th, .fund-profile-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left;
  vertical-align: top; }
.fund-profile-table th { color: var(--muted); font-weight: 700; font-size: 12px; }
.fund-profile-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fund-profile-table td .pill { margin-left: 6px; }
.fund-profile-alt { display: block; margin-top: 2px; }
.fund-profile-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0;
  font-size: 13px; }
.fund-profile-facts dt { color: var(--muted); }
.fund-profile-facts dd { margin: 0; min-width: 0; }
.fund-profile-compare-box summary { cursor: pointer; font-weight: 700; }
.fund-profile-compare { margin-top: 6px; }
.fund-profile-notes { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.fund-profile-form input:focus-visible, .fund-profile-compare-box summary:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px; }

/* 휴대폰: 표는 칸 이름을 붙인 카드로, 사실 목록은 한 줄씩. */
@media (max-width: 560px) {
  .fund-profile-table thead { display: none; }
  .fund-profile-table, .fund-profile-table tbody, .fund-profile-table tr, .fund-profile-table td { display: block; width: 100%; }
  .fund-profile-table tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .fund-profile-table td { border: 0; padding: 2px 0; text-align: left; white-space: normal; }
  .fund-profile-table td.num { text-align: left; }
  .fund-profile-table td::before { content: attr(data-label) " · "; color: var(--muted); font-size: 12px; }
  .fund-profile-facts { grid-template-columns: minmax(0, 1fr); }
  .fund-profile-facts dd { margin-bottom: 6px; }
}
