/* A connected journey with a concrete example for each operation. */
.rtf-concept { background: #f7f9fb; }
.rtf-concept .sec-head { max-width: 1050px; }
.rtf-concept .sec-lead { max-width: 900px; font-size: 18px; }
.rtf-concept .sec-lead strong { font-weight: 700; color: #102a43; }
.rtf-journey { margin-top: 48px; }
.rtf-journey-top { display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.rtf-journey-top > p { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: #102a43; }
.rtf-journey-top > p i { width: 8px; height: 8px; border-radius: 50%; background: #087f8c; box-shadow: 0 0 0 5px #087f8c0c; flex: none; }
.rtf-play-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cbdde3; border-radius: 40px; padding: 10px 15px; font: inherit; font-size: 14px; background: #fff; color: #536472; cursor: pointer; white-space: nowrap; }
.rtf-play-toggle[hidden] { display: none; }
.rtf-play-toggle > svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.rtf-play-toggle:hover { color: #087f8c; border-color: #087f8c; }
.rtf-guide { margin-top: 10px; color: #536472; font-size: 15px; line-height: 1.8; }
.rtf-steps { position: relative; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; margin-top: 26px; }
.rtf-steps::before { content: ''; position: absolute; top: 95px; left: 0; right: 0; height: 1px; background: #bedadd; }
.rtf-steps > li { position: relative; min-width: 0; }
.rtf-steps > li + li::before { content: '›'; position: absolute; left: -15px; width: 14px; top: 79px; z-index: 1; color: #087f8c; text-align: center; font-size: 22px; }
.rtf-step { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 218px; padding: 23px 12px 24px; background: #fff; color: #102a43; border: 1px solid #d9e5e8; border-radius: 18px; font: inherit; cursor: pointer; overflow: hidden; transition: transform .25s, border-color .25s, background-color .25s, box-shadow .25s; }
.rtf-step-number { position: absolute; top: 14px; left: 16px; font-family: var(--f-en); font-size: 13px; font-weight: 600; color: #637c88; }
.rtf-step > svg { width: 42px; height: 42px; margin-top: 13px; fill: none; stroke: #087f8c; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rtf-step-word { color: #102a43; font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1.3; }
.rtf-step strong { font-size: 17px; font-weight: 600; color: #536472; line-height: 1.5; }
.rtf-step.is-current { background: #eaf7f7; border-color: #087f8c; transform: translateY(-5px); box-shadow: 0 12px 25px #087f8c0d; }
.rtf-step.is-current .rtf-step-number, .rtf-step.is-current strong { color: #087f8c; }
.rtf-step.is-complete { border-color: #b0d9dc; }
.rtf-step.is-complete .rtf-step-number::after { content: ' ✓'; color: #087f8c; margin-left: 3px; }
.rtf-step:hover { border-color: #087f8c; }
.rtf-step-progress { position: absolute; bottom: 0; height: 3px; left: 12px; right: 12px; border-radius: 5px; background: #087f8c; transform: scaleX(0); transform-origin: left; }
.rtf-journey.is-playing .rtf-step.is-current .rtf-step-progress { animation: rtfProgress 4.8s linear both; }
.rtf-example { display: grid; grid-template-columns: 1.05fr 1fr; border-radius: 25px; overflow: hidden; margin-top: 30px; border: 1px solid #d7e7ea; }
.rtf-example-copy { padding: 42px 42px 32px; background: linear-gradient(135deg,#102a43,#123f51); color: #fff; }
.rtf-example-label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; color: #a5dadd; line-height: 1.8; }
.rtf-example-label > span { font-family: var(--f-en); font-size: 13px; letter-spacing: .05em; white-space: nowrap; }
.rtf-example-copy > h3 { min-height: 95px; margin-top: 23px; font-size: clamp(26px,2.7vw,37px); font-weight: 800; line-height: 1.45; letter-spacing: -.035em; color: #fff; }
.rtf-example-body { margin-top: 18px; min-height: 122px; font-size: 17px; line-height: 1.9; color: #d3e2e8; }
.rtf-output { padding-top: 20px; margin-top: 22px; border-top: 1px solid #96c9d32b; }
.rtf-output > span { display: block; font-size: 13px; color: #97cbd1; margin-bottom: 9px; line-height: 1.7; }
.rtf-output > strong { display: block; font-weight: 600; font-size: 17px; line-height: 1.7; min-height: 58px; }
.rtf-path { display: flex; gap: 10px; align-items: center; margin-top: 21px; font-size: 12px; color: #7d9daa; }
.rtf-path > span { white-space: nowrap; }
.rtf-path > span.is-current { color: #75dde0; font-weight: 700; }
.rtf-path > i { height: 1px; flex: 1; background: #8daeb32b; }
/* Full, uncropped illustrations make the operation understandable before reading. */
.rtf-example-visual { position: relative; display: grid; align-items: center; min-height: 530px; background: #f7f9fb; }
.rtf-example-panel { margin: 0; width: 100%; animation: rtfPanelIn .55s ease both; }
.rtf-example-panel[hidden] { display: none; }
.rtf-scene { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.rtf-example-panel figcaption { display: flex; align-items: center; gap: 14px; padding: 24px 30px 32px; min-height: 104px; }
.rtf-example-panel figcaption > span { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #087f8c; color: #fff; font: 600 14px var(--f-en); }
.rtf-example-panel figcaption > strong { font-size: 19px; line-height: 1.6; font-weight: 700; color: #102a43; }
.rtf-footnote { margin-top: 18px; font-size: 13px; color: #536472; line-height: 1.9; }
.rtf-journey :is(button):focus-visible { outline: 3px solid #21b6c7; outline-offset: 4px; }
@keyframes rtfProgress { to { transform: scaleX(1); } }
@keyframes rtfPanelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) {
 .rtf-steps { gap: 12px; }
 .rtf-steps > li + li::before { left: -12px; width: 11px; }
 .rtf-step { padding-inline: 8px; }
 .rtf-step strong { font-size: 16px; }
 .rtf-example-copy { padding: 34px 28px 29px; }
 .rtf-example-body { min-height: 156px; }
}
@media (max-width: 767px) {
 .rtf-concept .sec-lead { font-size: 16px; }
 .rtf-journey { margin-top: 32px; }
 .rtf-journey-top { flex-wrap: wrap; gap: 14px; }
 .rtf-journey-top > p { font-size: 18px; }
 .rtf-play-toggle { font-size: 13px; }
 .rtf-guide { font-size: 14px; }
 .rtf-steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .rtf-steps::before, .rtf-steps > li + li::before { display: none; }
 .rtf-steps > li:last-child { grid-column: 1/-1; }
 .rtf-step { min-height: 151px; gap: 8px; padding: 17px 9px; border-radius: 14px; }
 .rtf-step > svg { width: 33px; height: 33px; margin-top: 6px; }
 .rtf-step-number { font-size: 12px; left: 12px; top: 11px; }
 .rtf-step-word { font-size: 23px; }
 .rtf-step strong { font-size: 17px; }
 .rtf-steps > li:last-child .rtf-step { flex-direction: row; gap: 14px; min-height: 96px; }
 .rtf-steps > li:last-child .rtf-step > svg { margin-top: 0; }
 .rtf-steps > li:last-child .rtf-step-number { top: 9px; }
 .rtf-example { grid-template-columns: 1fr; margin-top: 24px; border-radius: 19px; }
 .rtf-example-copy { padding: 27px 25px; }
 .rtf-example-label { font-size: 13px; }
 .rtf-example-copy > h3 { font-size: 29px; min-height: 90px; margin-top: 21px; }
 .rtf-example-body { font-size: 16px; min-height: 154px; margin-top: 12px; }
 .rtf-output { margin-top: 16px; padding-top: 16px; }
 .rtf-output > strong { font-size: 16px; }
 .rtf-path { font-size: 12px; gap: 8px; }
 .rtf-example-visual { min-height: 0; order: -1; }
 .rtf-example-panel figcaption { padding: 18px 23px 23px; min-height: 128px; }
 .rtf-example-panel figcaption > strong { font-size: 18px; }
 .rtf-footnote { font-size: 12px; }
}
@media (max-width: 380px) {
 .rtf-example-copy { padding-inline: 19px; }
 .rtf-example-copy > h3 { font-size: 26px; }
 .rtf-example-body { min-height: 182px; }
 .rtf-path { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
 .rtf-journey *, .rtf-journey *::before, .rtf-journey *::after { animation: none !important; transition: none !important; }
 .rtf-step.is-current { transform: none; }
}
