/* /insurance/cases/: the day of diagnosis moves along the contract; segment heights are the guide's amounts (1,000만원 basis). Builds on scenes.css. */
.case-page .dx-chart { position: relative; }
.dx-row { margin-top: 14px; }
.dx-row:first-child { margin-top: 0; }
.dx-name { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 14px; line-height: 1.35; }
.dx-name > span { color: var(--ink); }
.amt { flex: 0 0 auto; min-width: 4.4em; text-align: right; font-size: clamp(22px, 2.3vw, 30px); font-weight: 620; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.amt span { display: none; }
[data-state="d60"] .amt [data-s="d60"], [data-state="m6"] .amt [data-s="m6"], [data-state="y2"] .amt [data-s="y2"] { display: inline; }
.dx-track { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 46px; margin-top: 6px; border-bottom: 1px solid var(--line-strong); }
.seg { display: block; height: 100%; border-radius: 4px 4px 0 0; background: rgba(163, 196, 179, .3); transition: background 300ms var(--ease), box-shadow 300ms var(--ease); }
.seg.s1 { flex: 0 0 calc(var(--a) - 3px); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(236, 232, 224, .1) 6px 7px); box-shadow: inset 0 0 0 1px var(--line); }
.seg.s2 { flex: 0 0 calc(var(--b) - 3px); }
.seg.s3 { flex: 1 1 auto; }
.seg.half { height: 50%; }
/* the period the chosen day falls in is drawn solid; the rest stays as outline of the same shape */
[data-state="m6"] .seg.s2, [data-state="y2"] .seg.s3 { background: var(--accent); }
[data-state="d60"] .seg.s1 { box-shadow: inset 0 0 0 2px var(--ink); }
.dx-track::after { content: ""; position: absolute; top: -6px; bottom: -1px; left: var(--m); width: 2px; margin-left: -1px; background: var(--ink); transition: left 400ms var(--ease); }
.dx { --m: 35.4%; }
[data-state="d60"] .dx { --m: 16%; }
[data-state="y2"] .dx { --m: 68%; }
.dx-axis { position: relative; height: 38px; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.3; }
.dx-axis span { position: absolute; top: 0; white-space: nowrap; }
.dx-axis .t0 { left: 0; }
.dx-axis .t1 { left: var(--a); }
.dx-axis .t2 { left: calc(var(--a) + var(--b)); }
.dx-axis .t3 { right: 0; }
.dx-stops button:nth-child(1) { flex: 0 0 calc(var(--a) - 3px); }
.dx-stops button:nth-child(2) { flex: 0 0 calc(var(--b) - 3px); }
.dx-stops button:nth-child(3) { flex: 1 1 auto; }
.cx-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; padding-top: 48px; padding-bottom: 64px; background: var(--paper-2); }
.cx-point { padding: 26px 0 30px; border-top: 1px solid var(--line-strong); }
.cx-point .eyebrow { display: flex; align-items: center; }
.cx-point h2 { margin: 12px 0 14px; font-size: clamp(22px, 2.2vw, 32px); font-weight: 560; line-height: 1.28; letter-spacing: -.04em; }
.cx-point p { max-width: 600px; margin: 0 0 10px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.cx-quote { padding-left: 12px; border-left: 2px solid var(--line-strong); font-size: 15px !important; }
.cx-basis, .cx-note, .cx-who { font-size: 14px !important; }
.cx-check { grid-column: 1 / -1; }
.cx-check ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 48px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: c; }
.cx-check li { counter-increment: c; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1.6; }
.cx-check li strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 560; }
.cx-check li strong::before { content: counter(c) ". "; color: var(--warm); }
.mark-key { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 12px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.rf { position: relative; margin: 6px 0 16px; max-width: 560px; }
.rf-bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; border-bottom: 1px solid var(--line-strong); }
.rf-bars i { flex: 1 1 0; height: max(2px, calc(var(--r) * 2%)); border-radius: 3px 3px 0 0; background: var(--line-strong); }
.rf-bars i.paid { background: var(--accent); }
.rf-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 13px; }
.rf-zero { position: absolute; left: 0; width: 46%; bottom: 40px; padding-bottom: 6px; border-bottom: 2px solid var(--warm); color: var(--ink); font-size: 13px; text-align: center; }
@media (min-width: 1000px) {
  .dx-track { height: 70px; }
  .dx-row { margin-top: 20px; }
  .dx-name { font-size: 15.5px; }
}
@media (max-width: 760px) {
  .cx-more { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 40px; }
  .cx-check ol { grid-template-columns: 1fr; }
}
