/* /ipo/: one contract, one choice made "today". The shapes after today follow the choice (keep / trim / switch). Builds on scenes.css. */
.ipo-dx { --t: 40%; --pe: 72%; }
.ipo-dx .dx-chart { position: relative; }
.dx-row + .dx-row { margin-top: 16px; }
.dx-name { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 15px; line-height: 1.35; }
.dx-name > span { font-weight: 560; }
.st { flex: 0 0 auto; font-size: 15px; font-weight: 560; color: var(--ink); }
.st span { display: none; }
[data-state="keep"] .st [data-s="keep"], [data-state="trim"] .st [data-s="trim"], [data-state="switch"] .st [data-s="switch"] { display: inline; }
[data-state="switch"] [data-row="now"] .st, [data-state="switch"] [data-row="new"] .st { color: var(--warm); }
.lane { position: relative; margin-top: 6px; }
.lane.cov { height: 42px; border-bottom: 1px solid var(--line-strong); }
.lane.prem { height: 10px; margin-top: 4px; }
.lane .b { position: absolute; bottom: 0; display: block; height: 100%; border-radius: 3px 3px 0 0; transition: height 350ms var(--ease), opacity 350ms var(--ease), background 350ms var(--ease), box-shadow 350ms var(--ease); }
.lane.prem .b { border-radius: 2px; }
.lane.cov::after { content: ""; position: absolute; top: -6px; bottom: -1px; left: var(--t); width: 2px; margin-left: -1px; background: var(--ink); }
.hatch, .c-wait, .n-wait { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(236, 232, 224, .16) 6px 7px); box-shadow: inset 0 0 0 1px var(--line-strong); }
.c-wait { left: 0; width: 7%; }
.c-past { left: calc(7% + 2px); width: calc(var(--t) - 7% - 4px); background: rgba(163, 196, 179, .38); }
.c-next { left: calc(var(--t) + 2px); right: 0; background: var(--accent); }
.p-past { left: 0; width: calc(var(--t) - 2px); background: rgba(203, 176, 138, .45); }
.p-next { left: calc(var(--t) + 2px); width: calc(var(--pe) - var(--t) - 2px); background: var(--warm); }
.n-wait { left: calc(var(--t) + 2px); width: 11%; }
.n-half { left: calc(var(--t) + 11% + 4px); width: 11%; height: 50% !important; background: var(--accent); }
.n-full { left: calc(var(--t) + 22% + 6px); right: 0; background: var(--accent); }
.n-prem { left: calc(var(--t) + 2px); right: 6%; background: var(--warm); }
/* trim: what continues after today gets thinner, not cut */
[data-state="trim"] .c-next { height: 48%; }
[data-state="trim"] .p-next { height: 50%; }
/* switch: the current contract ends today (outline only); the new one starts from zero */
[data-state="switch"] .c-next, [data-state="switch"] .p-next { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
[data-state="switch"] .p-next { opacity: .5; }
/* (h) no new contract in keep / trim: draw nothing, not a shadow contract */
:not([data-state="switch"]) > .ipo-dx [data-row="new"] .b { opacity: 0; }
/* (g) trim: the former size stays as a dashed outline, so the cut reads as an amount */
.lane::before { content: ""; position: absolute; left: calc(var(--t) + 2px); bottom: 0; border: 1.5px dashed var(--ink); border-bottom: 0; border-radius: 3px 3px 0 0; opacity: 0; transition: opacity 350ms var(--ease); }
.lane.cov::before { right: 0; top: 0; }
.lane.prem::before { width: calc(var(--pe) - var(--t) - 2px); top: 0; border-bottom: 1.5px dashed var(--ink); border-radius: 2px; }
[data-state="trim"] [data-row="now"] .lane::before { opacity: .7; }
[data-state="switch"] .n-wait { box-shadow: inset 0 0 0 2px var(--warm); }
[data-state="keep"] [data-row="new"] .dx-name, [data-state="trim"] [data-row="new"] .dx-name { color: var(--muted); }
[data-state="keep"] [data-row="new"] .dx-name > span, [data-state="trim"] [data-row="new"] .dx-name > span, [data-state="keep"] [data-row="new"] .st, [data-state="trim"] [data-row="new"] .st { color: var(--muted); }
.chip { position: absolute; top: 50%; left: calc(var(--t) + 10px); transform: translateY(-50%); padding: 3px 9px; border: 1px solid var(--warm); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-style: normal; white-space: nowrap; opacity: 0; transition: opacity 300ms var(--ease); }
.chip { opacity: 1; }
.chip span { display: none; }
[data-state="keep"] .chip [data-s="keep"], [data-state="trim"] .chip [data-s="trim"], [data-state="switch"] .chip [data-s="switch"] { display: inline; }
[data-state="trim"] .chip { top: 4px; transform: none; }
.dx-case { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; color: var(--ink); font-size: 15px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.ipo-dx .dx-axis { position: relative; height: 22px; margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.ipo-dx .dx-axis span { position: absolute; top: 0; white-space: nowrap; }
.ipo-dx .dx-axis .t0 { left: 0; }
.ipo-dx .dx-axis .t1 { left: var(--t); transform: translateX(-50%); color: var(--ink); font-weight: 560; }
.ipo-dx .dx-axis .t3 { right: 0; }
.ipo-dx .dx-stops button { flex: 1 1 0; }
.ipo-dx .dx-stops button b { font-size: 14.5px; }
.dx-deeper { display: grid; justify-items: start; margin-top: 10px; font-size: 14.5px; }
.dx-deeper > span { color: var(--muted); font-size: 13px; }
.dx-deeper a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
@media (min-width: 1000px) {
  .lane.cov { height: 66px; }
  .lane.prem { height: 12px; }
  .ipo-dx .dx-stops button b { font-size: 17px; }
  .dx-deeper { grid-column: 2; grid-row: 3 / span 3; align-self: start; }
  .ipo-dx .dx-out { min-height: 184px; }
  .dx-case { grid-column: 2; grid-row: 2; align-self: start; margin-top: 4px; }
  .ipo-dx .dx-src { grid-row: 3; }
  .dx-deeper { grid-row: 4 / span 2; }
}
/* 「보고 있던 화면으로」 (07): an item of the sticky .ins-exits row (insurance-section.css), so it stays in reach under the sub-nav
   while the visitor reads the section a 두루마리 sent them to (07-B wave 1: one row for both ways back) */
/* 04's three customer sections: the exact targets of the 두루마리's IPO links, clear of the sticky insurance subnav when jumped to */
.ipo-core { padding-top: 40px; padding-bottom: 40px; }
.ipo-core section { max-width: 680px; padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.ipo-core h2 { margin: 0 0 8px; font-size: clamp(20px, 2vw, 26px); font-weight: 560; line-height: 1.3; letter-spacing: -.03em; }
.ipo-core p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.ipo-core strong { color: var(--ink); font-weight: 520; }
.ipo-deeper { padding-top: 56px; padding-bottom: 70px; background: var(--paper-2); }
.ipo-deeper .eyebrow { display: block; font-size: 12px; letter-spacing: .04em; }
.ipo-deeper h2 { margin: 12px 0 12px; font-size: clamp(24px, 2.6vw, 38px); font-weight: 560; line-height: 1.25; letter-spacing: -.045em; }
.ipo-deeper > p { max-width: 640px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.deep-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.deep-list li { display: grid; gap: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.deep-list li span { color: var(--warm); font-size: 14px; }
.deep-list li a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.ipo-flow { margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ipo-flow summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; font-size: 15px; }
.ipo-flow ol { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.ipo-flow strong { margin-right: 6px; color: var(--ink); font-weight: 520; }
.ipo-basis { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.cx-who { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .deep-list { grid-template-columns: 1fr; } }
