
/* ===== v11: 세로 스크롤 기본 + 구조로 길이 관리 ===== */
html.snap{scroll-snap-type:none}
.scr{min-height:0;scroll-snap-align:none;padding:48px 20px;justify-content:flex-start}
.next,.dots{display:none!important}

/* 가로 카드 → 세로·격자 */
.swipe{display:grid;grid-template-columns:1fr 1fr;gap:10px;overflow:visible;margin:24px 0 0;padding:0;scroll-snap-type:none}
.swipe>*{flex:none;min-width:0}
.swipe .box{padding:16px 14px}
.swipe .box img.ico{width:34px;margin-bottom:8px}
.swipe .box strong{font-size:16px}
.swipe .box p{font-size:14px}
.swipe-hint{display:none}
.swipe.rows{grid-template-columns:1fr}
.swipe.rows .box.pic{display:flex;align-items:center}
.swipe.rows .box.pic img{flex:0 0 104px;width:104px;height:104px}
.swipe.rows .box.pic div{padding:12px 16px}

/* 일주일 사이클: 자동 재생 없이 전체 단계가 보이게 */
.rcard,.rctl{display:none!important}
.ring{width:min(240px,64vw)}
.stagelist{list-style:none;margin:20px 0 0;padding:0;width:100%;max-width:560px;display:flex;flex-direction:column;gap:8px;counter-reset:none}
.stagelist li{display:flex;gap:12px;align-items:flex-start;background:#FFFFFF;border-radius:16px;padding:14px 14px;border:2px solid transparent;transition:border-color .2s}
.stagelist li.on{border-color:var(--ink)}
.stagelist .no{flex:0 0 32px;height:32px;border-radius:50%;color:#FFFFFF;font-weight:900;font-size:14px;display:flex;align-items:center;justify-content:center}
.stagelist .no.ai{background:var(--ai)}.stagelist .no.home{background:var(--home)}.stagelist .no.mix{background:linear-gradient(135deg,var(--ai),var(--home))}
.stagelist .tx{flex:1;min-width:0}
.stagelist small{font-size:12px;font-weight:700;color:var(--mute)}
.stagelist b{display:block;font-size:16px;line-height:1.4;margin-top:1px}
.stagelist p{margin:3px 0 0;font-size:14px;line-height:1.55;color:var(--sub)}
.stagelist a{display:inline-block;margin-top:4px;font-size:13px;font-weight:700}
.stagelist a.ai{color:var(--ai)}.stagelist a.home{color:var(--home)}
.stagelist li.loop{background:transparent;padding:6px 14px;font-size:14px;font-weight:700;color:var(--mute);justify-content:center}

/* 여정: 가로 패널 → 세로 타임라인 + 고정 단계 칩(현재 위치 표시) */
.viewer{min-height:0;scroll-snap-align:none}
.panes{display:block;overflow:visible;height:auto!important;scroll-snap-type:none;transition:none}
.pane{position:relative;padding:28px 20px 8px 56px}
.pane::before{content:"";position:absolute;left:31px;top:0;bottom:0;width:2px;background:var(--line)}
.pane:first-child::before{top:36px}
.pane:last-child::before{bottom:auto;height:36px}
.pane .stepno::before{content:"";position:absolute;left:24px;top:33px;width:16px;height:16px;border-radius:50%;border:3px solid #FFFFFF;box-shadow:0 0 0 2px currentColor}
.viewer.ai .pane .stepno::before{background:var(--ai);color:var(--ai)}
.viewer.home .pane .stepno::before{background:var(--home);color:var(--home)}
.pane .stepno{position:static}
.pane .pi{margin:14px 0}
.pane .pimg{max-height:220px}
.pager{display:none}
.rail .seg button{padding:6px 12px}
.pane .loopnote{margin-bottom:16px}
details.more{margin-top:12px;border:1.5px solid var(--line);border-radius:14px;background:#FFFFFF}
details.more summary{cursor:pointer;list-style:none;padding:12px 14px;font-size:14px;font-weight:700;display:flex;justify-content:space-between;align-items:center;min-height:46px}
details.more summary::-webkit-details-marker{display:none}
details.more summary::after{content:"+";font-size:18px;color:var(--mute)}
details.more[open] summary::after{content:"−"}
details.more>*:not(summary){margin-left:12px;margin-right:12px}
details.more>*:last-child{margin-bottom:12px}
details.more .numlist,details.more .stack{margin-top:0}

/* 맨 위로 */
.totop{position:fixed;right:14px;bottom:calc(var(--bb) + 14px);z-index:29;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:#FFFFFF;box-shadow:0 6px 16px rgba(31,36,51,.12);font-size:18px;cursor:pointer;display:none;color:var(--ink)}
.totop.show{display:block}
.page.join~.totop{display:none}

@media (min-width:900px){
 .scr{padding:88px 24px}
 .swipe{grid-template-columns:repeat(var(--n,3),1fr);gap:18px;margin-top:40px}
 .swipe .box{padding:24px 22px}
 .swipe .box strong{font-size:19px}.swipe .box p{font-size:15px}
 .swipe.rows{grid-template-columns:repeat(3,1fr)}
 .swipe.rows .box.pic{display:block}
 .swipe.rows .box.pic img{width:100%;height:170px}
 .ring{width:360px}
 .cycle{align-items:center}
 .stagelist{margin-top:0}
 .pane{padding:44px 24px 20px 72px;max-width:1160px;margin:0 auto}
 .pane::before{left:40px}
 .pane .stepno::before{left:33px;top:49px}
 .pane .pimg{max-height:none}
 .pane .pi{margin:0}
}
@media (max-width:899px){
 .pane .in{display:flex;flex-direction:column}
 .pane .pt{display:contents}
 .pane .pt>*{order:5}
 .pane .pt>.stepno{order:1;align-self:flex-start}
 .pane .pt>.ask{order:2}
 .pane .pt>h3{order:3}
 .pane .pi{order:4}
}
