/* 조합원 화면과 관리 화면(/redevelopment/tour/). 시연 무대 한 장: 위 막대 · 장면 흐름 · 두 화면 · 아래 줄이 화면 높이(100dvh)를 꽉 채운다.
   무대는 레일 네이비 면이고, 그 위에 어두운 테두리의 휴대전화와 브라우저 창 두 개만 밝게 뜬다. 금색은 네이비 위에서만 쓴다
   (지금 장면 표시와 두 화면을 잇는 실). 코발트는 주 행동 하나(다음 장면)와 화면 안 고리다.
   두 틀 안은 같은 출처의 실제 화면(iframe)이다. 화면은 제 크기(휴대전화 390×844, 관리 화면 1280px 폭)로 그리고 배율만 바꾼다
   (tour.js가 CSSOM으로 --rt-k·--rt-ka·--rt-adm-w·--rt-adm-h를 바꾼다. 인라인 스타일은 CSP로 막혀 있다).
   장면 설명 목록·직접 열어 보기·바닥은 무대 아래 웜 페이퍼에 둔다(소개 화면 landing.css의 단추·바닥을 쓴다).
   값은 lm-tokens.css 변수다(이 파일에 hex를 두지 않는다). */

.rt {
  --rt-phone-w: 390px;
  --rt-phone-h: 844px;
  --rt-k: 0.7;
  --rt-ka: 0.8;
  --rt-adm-w: 1280px;
  --rt-adm-h: 760px;
  --rt-stage-bg: var(--lm-trust);
  --rt-bezel: var(--lm-rail-bg);
  --rt-line: var(--lm-rail-line);
  --rt-ink: var(--lm-rail-ink);
  --rt-ink-strong: var(--lm-rail-ink-strong);
  --rt-muted: var(--lm-rail-muted);
  --rt-gold: var(--lm-rail-accent);
  --rt-shadow: 0 28px 64px color-mix(in srgb, var(--lm-rail-bg) 85%, transparent);
}

.rt-wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── 시연 무대: 화면 한 장 ── */

.rt-show {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 640px;
  background: var(--rt-stage-bg);
  color: var(--rt-ink);
}

.rt-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

/* ── 위 막대 ── */

.rt-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 20px;
  height: 56px;
  padding: 0 32px;
  border-bottom: 1px solid var(--rt-line);
}

.rt-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--rt-ink-strong);
  text-decoration: none;
}

.rt-logo {
  display: block;
  width: auto;
  height: 18px;
}

.rt-brand__sub {
  padding-left: 10px;
  border-left: 1px solid var(--rt-line);
  color: var(--rt-muted);
  font-size: 13px;
  white-space: nowrap;
}

.rt-title {
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid var(--rt-line);
  color: var(--rt-ink-strong);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}

.rt-bar__note {
  overflow: hidden;
  min-width: 0;
  margin: 0 auto 0 0;
  color: var(--rt-muted);
  font-size: 13.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rt-bar__actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.rt-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--lm-radius);
  color: var(--rt-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--lm-duration-fast) var(--lm-ease-out), color var(--lm-duration-fast) var(--lm-ease-out);
}

.rt-link:hover {
  background: var(--lm-rail-hover);
  color: var(--rt-ink-strong);
}

.rt-link--line {
  border-color: var(--rt-line);
  color: var(--rt-ink-strong);
}

.rt-show :focus-visible {
  outline: var(--lm-focus-ring-dark);
  outline-offset: 3px;
}

/* ── 장면 흐름: 번호 마디를 한 줄로 잇는다. 지난 장면·지금 장면·남은 장면이 보인다 ── */

.rt-band {
  flex: none;
  padding: 10px 32px 8px;
}

.rt-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 마디를 잇는 선 */
.rt-tabs::before {
  content: "";
  position: absolute;
  top: 14px;
  right: calc(100% / 14);
  left: calc(100% / 14);
  height: 1px;
  background: var(--rt-line);
}

.rt-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 6px;
  color: var(--rt-ink);
  text-align: center;
  text-decoration: none;
}

.rt-tab__node {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rt-line);
  border-radius: var(--lm-radius-pill);
  background: var(--rt-stage-bg);
  color: var(--rt-muted);
  font-family: var(--rl-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--lm-duration-fast) var(--lm-ease-out), border-color var(--lm-duration-fast) var(--lm-ease-out), color var(--lm-duration-fast) var(--lm-ease-out);
}

.rt-tab__text {
  display: grid;
  gap: 1px;
  min-width: 0;
  max-width: 100%;
}

.rt-tab__name {
  overflow: hidden;
  color: var(--rt-ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rt-tab__role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  color: var(--rt-muted);
  font-size: 12.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.rt-tab__role .icon {
  flex: none;
  width: 14px;
  height: 14px;
}

.rt-tab:hover .rt-tab__node {
  border-color: var(--rt-ink);
  color: var(--rt-ink-strong);
}

.rt-tab:hover .rt-tab__name {
  color: var(--rt-ink-strong);
}

/* 지난 장면: 마디를 채운다 */
.rt-tab.is-past .rt-tab__node {
  border-color: var(--rt-ink);
  color: var(--rt-ink-strong);
}

/* 지금 장면: 금색 마디와 굵은 흰 이름 */
.rt-tab[aria-selected="true"] .rt-tab__node {
  border-color: var(--rt-gold);
  background: var(--rt-gold);
  color: var(--lm-rail-bg);
  font-weight: 700;
}

.rt-tab[aria-selected="true"] .rt-tab__name {
  color: var(--rt-ink-strong);
  font-weight: 700;
}

.rt-tab[aria-selected="true"] .rt-tab__role {
  color: var(--rt-ink);
}

/* ── 무대: 휴대전화 | 실이 지나가는 틈 | 브라우저 창 ── */

.rt-live {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 0 32px;
}

.rt-stage {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: auto minmax(96px, 168px) minmax(0, 1fr);
  min-height: 0;
  padding-top: 12px;
}

.rt-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}

/* ── 한눈에 띠: 이 장면에서 조합원에게 오는 일 → 알아야 할 정보 → 누가 보나 → 정보 형평 ── */

.rt-strip {
  display: grid;
  flex: none;
  grid-template-columns: minmax(150px, 0.85fr) minmax(0, 2.2fr) minmax(300px, 1.7fr) minmax(150px, 0.85fr);
  border: 1px solid var(--rt-line);
  border-radius: 14px;
  background: var(--rt-bezel);
}

.rt-strip__cell {
  min-width: 0;
  padding: 10px 16px 12px;
}

.rt-strip__cell + .rt-strip__cell {
  border-left: 1px solid var(--rt-line);
}

.rt-strip__label {
  margin: 0 0 6px;
  color: var(--rt-gold);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

/* 나에게 오는 일: 아이콘 원 하나와 한 줄 */
.rt-come {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--rt-ink-strong);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.rt-come .icon {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: var(--lm-radius-pill);
  background: var(--lm-rail-selected);
  color: var(--rt-gold);
}

/* 알아야 할 정보: 아이콘이 붙은 알약 */
.rt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rt-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 8px;
  border: 1px solid var(--rt-line);
  border-radius: var(--lm-radius-pill);
  background: var(--lm-rail-hover);
  color: var(--rt-ink-strong);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.rt-chips .icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--rt-gold);
}

/* 누가 보나: 정보 이름과 네 사람(조합원·집행부·선관위·운영자)의 표시. 표시는 아이콘·색·글 셋이 함께 간다 */
.rt-whos {
  display: grid;
  gap: 6px;
}

.rt-whorow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
}

.rt-whorow__item {
  margin: 0;
  color: var(--rt-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.rt-who {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rt-who li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 5px;
  align-items: center;
  min-width: 0;
}

.rt-who__dot {
  display: inline-grid;
  grid-row: span 2;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--lm-radius-pill);
  font-size: 13px;
  font-weight: 700;
}

.rt-who__dot .icon {
  width: 14px;
  height: 14px;
}

.rt-who__name {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rt-who__note {
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 무대의 띠에서는 정보 이름을 위 줄에, 네 사람을 아래 줄에 둔다(좁은 칸에서 이름이 잘리지 않게) */
.rt-strip .rt-whorow {
  grid-template-columns: minmax(0, 1fr);
}

/* 무대(네이비) 위의 표시 색 */
.rt-show [data-mark="see"] .rt-who__dot { background: var(--lm-success-surface); color: var(--lm-success-text); }
.rt-show [data-mark="part"] .rt-who__dot { border: 1.5px solid var(--rt-gold); color: var(--rt-gold); }
.rt-show [data-mark="off"] .rt-who__dot { background: var(--lm-rail-selected); color: var(--rt-muted); }
.rt-show [data-mark="na"] .rt-who__dot { border: 1px dashed var(--rt-line); color: var(--rt-muted); }
.rt-show .rt-who__name { color: var(--rt-ink-strong); }
.rt-show .rt-who__note { color: var(--rt-muted); }
.rt-show [data-mark="part"] .rt-who__note { color: var(--rt-gold); }

/* 정보 형평: 한 줄 판정 */
.rt-fair {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.45;
}

.rt-fair .icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.rt-show .rt-fair {
  color: var(--rt-ink-strong);
}

.rt-show .rt-fair .icon {
  color: var(--lm-rail-success);
}

.rt-side--phone {
  align-items: center;
}

/* 휴대전화: 어두운 테두리와 둥근 모서리. 노치·버튼 같은 장식은 그리지 않는다 */
.rt-device {
  align-self: center;
  width: fit-content;
  padding: 10px;
  border: 1px solid var(--rt-line);
  border-radius: 42px;
  background: var(--rt-bezel);
  box-shadow: var(--rt-shadow);
}

.rt-device > .rt-screen {
  border-radius: 32px;
}

.rt-screen {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--lm-bg-page);
}

.rt-screen--phone {
  width: calc(var(--rt-phone-w) * var(--rt-k));
  height: calc(var(--rt-phone-h) * var(--rt-k));
}

.rt-screen--adm {
  height: calc(var(--rt-adm-h) * var(--rt-ka));
}

/* 실제 화면은 제 크기로 그리고 배율만 바꾼다. 누르기·굴리기는 변형을 지나 그대로 화면에 간다 */
.rt-frame {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border: 0;
  background: var(--lm-bg-page);
  transform-origin: 0 0;
}

.rt-frame--phone {
  width: var(--rt-phone-w);
  height: var(--rt-phone-h);
  transform: scale(var(--rt-k));
}

.rt-frame--adm {
  width: var(--rt-adm-w);
  height: var(--rt-adm-h);
  transform: scale(var(--rt-ka));
}

/* ── 브라우저 창: 자리 셋은 탭, 오른쪽은 주소 칸 ── */

.rt-window {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rt-line);
  border-radius: 14px;
  background: var(--rt-bezel);
  box-shadow: var(--rt-shadow);
}

.rt-window__head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  min-height: 52px;
  padding: 8px 12px 0;
}

.rt-roles {
  display: flex;
  flex: none;
  gap: 2px;
}

/* 탭: 고른 탭은 아래 화면과 이어지는 밝은 면, 나머지는 어두운 면 위 글자 */
.rt-role {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: var(--rt-muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--lm-duration-fast) var(--lm-ease-out), color var(--lm-duration-fast) var(--lm-ease-out);
}

.rt-role .icon {
  width: 16px;
  height: 16px;
}

.rt-role:hover {
  background: var(--lm-rail-hover);
  color: var(--rt-ink-strong);
}

.rt-role[aria-selected="true"] {
  background: var(--lm-bg-surface);
  color: var(--lm-text-strong);
}

.rt-role[aria-selected="true"] .icon {
  color: var(--lm-primary);
}

.rt-role:focus-visible {
  outline-offset: -3px;
}

/* 이 장면에서 맞는 자리: 글자 표지 하나(색만으로 가르지 않는다) */
.rt-role__auto {
  padding: 0 7px;
  border: 1px solid currentColor;
  border-radius: var(--lm-radius-pill);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.5;
}

.rt-role[aria-selected="true"] .rt-role__auto {
  border-color: var(--lm-primary);
  color: var(--lm-primary-pressed);
}

/* 자리 설명: 주소 칸 자리에 한 줄(넘치면 두 줄) */
.rt-rolecap {
  flex: 1;
  min-width: 0;
  margin: 0 0 8px;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--lm-rail-hover);
  color: var(--rt-ink);
  font-size: 13.5px;
  line-height: 1.45;
}

.rt-rolecap strong {
  margin-right: 8px;
  color: var(--rt-gold);
  font-weight: 650;
}

/* 로그인 중·로그인이 필요한 자리 같은 알림. 비면 숨는다 */
.rt-status {
  margin: 0;
  padding: 8px 16px;
  background: var(--lm-warning-surface);
  color: var(--lm-warning-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.rt-status:empty {
  display: none;
}

/* 이 장면의 일이 오지 않는 자리: 그 자리의 실제 화면을 옅게 두고 그 위에 까닭을 적는다 */
.rt-screen.is-na .rt-frame {
  opacity: 0.3;
  pointer-events: none;
}

.rt-na {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  width: min(460px, calc(100% - 48px));
  padding: 20px 22px;
  border: 1px solid var(--lm-border-strong);
  border-radius: var(--lm-radius);
  background: var(--lm-bg-surface);
  box-shadow: var(--lm-shadow-overlay);
  transform: translate(-50%, -50%);
}

.rt-na p {
  margin: 0;
  color: var(--lm-text);
  font-size: 14px;
  line-height: 1.6;
}

.rt-na p:first-child {
  margin-bottom: 6px;
  color: var(--lm-text-strong);
  font-size: 15px;
  font-weight: 650;
}

/* ── 실: 무대 위 SVG 한 장(금색) ── */

.rt-thread {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rt-thread__line {
  fill: none;
  stroke: var(--rt-gold);
  stroke-width: 2;
  stroke-linecap: round;
}

.rt-thread__line.is-drawing {
  animation: rt-draw var(--lm-duration) var(--lm-ease-out) both;
}

@keyframes rt-draw {
  from {
    stroke-dashoffset: var(--rt-len);
  }
}

.rt-thread__dot {
  fill: var(--rt-stage-bg);
  stroke: var(--rt-gold);
  stroke-width: 2;
}

.rt-thread__lock {
  fill: var(--rt-bezel);
  stroke: var(--rt-gold);
  stroke-width: 1.5;
}

.rt-thread__lockicon {
  color: var(--rt-gold);
}

.rt-tag {
  position: absolute;
  z-index: 3;
  padding: 2px 10px;
  border: 1px solid var(--rt-gold);
  border-radius: var(--lm-radius-pill);
  background: var(--rt-bezel);
  color: var(--rt-gold);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.6;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.rt-tag.is-cut {
  border-style: dashed;
}

/* ── 아래 줄: 지켜지는 것 + 장면 넘기기 ── */

.rt-foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 14px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--rt-line);
}

.rt-keep {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  margin: 0;
  color: var(--rt-ink);
  font-size: 15px;
  line-height: 1.55;
}

.rt-keep .icon {
  flex: none;
  margin-top: 3px;
  color: var(--rt-gold);
}

.rt-keep strong {
  margin-right: 8px;
  color: var(--rt-ink-strong);
}

.rt-nav {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.rt-nav__count {
  min-width: 3.5em;
  color: var(--rt-muted);
  font-family: var(--rl-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.rt-navbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--rt-line);
  border-radius: var(--lm-radius);
  background: transparent;
  color: var(--rt-ink-strong);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color var(--lm-duration-fast) var(--lm-ease-out), border-color var(--lm-duration-fast) var(--lm-ease-out);
}

.rt-navbtn:hover {
  background: var(--lm-rail-hover);
}

.rt-navbtn--primary {
  border-color: var(--lm-primary);
  background: var(--lm-primary);
  color: var(--lm-on-primary);
}

.rt-navbtn--primary:hover {
  border-color: var(--lm-primary-hover);
  background: var(--lm-primary-hover);
}

.rt-navbtn[disabled] {
  opacity: 0.4;
  cursor: default;
}

/* 스크립트가 없으면 무대는 들어오기 화면과 로그인 화면을 그대로 띄우고, 넘기기는 숨긴다 */
.rt:not(.rt-js) .rt-nav {
  display: none;
}

/* ── 장면 설명 목록: 스크립트가 없을 때만 보인다(있으면 무대 설명 칸으로 옮겨 쓴다) ── */

.rt-scenes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px 40px;
  padding-top: 48px;
}

.rt-js .rt-scenes {
  display: none;
}

.rt-scene h2 {
  margin: 0 0 4px;
  color: var(--lm-text-strong);
  font-size: 20px;
  font-weight: 450;
  letter-spacing: -0.02em;
}

.rt-scene__meeting {
  margin: 0 0 12px;
  color: var(--lm-text-muted);
  font-size: 14px;
}

.rt-scene p:not(.rt-scene__meeting) {
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--lm-hairline);
  font-size: 15px;
  line-height: 1.6;
}

.rt-scene strong {
  margin-right: 6px;
  color: var(--lm-text-strong);
}

/* ── 조합원 여정 지도(무대 아래 웜 페이퍼): 일곱 장면을 열로, 오는 일·알아야 할 정보·누가 보나·정보 형평을 줄로 ── */

.rt-map {
  padding: 64px 0 24px;
}

.rt-map__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px 56px;
  align-items: end;
  margin-bottom: 28px;
}

.rt-map__head h2 {
  margin: 0;
  color: var(--lm-text-strong);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.rt-map__head p {
  max-width: 44em;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.rt-legend {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--lm-text);
  font-size: 14px;
  font-weight: 600;
}

.rt-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 웜 페이퍼 위의 표시 색 */
.rt-map [data-mark="see"] .rt-who__dot { background: var(--lm-success-surface); color: var(--lm-success-text); }
.rt-map [data-mark="part"] .rt-who__dot { border: 1.5px solid var(--lm-warning-accent); background: var(--lm-warning-surface); color: var(--lm-warning-text); }
.rt-map [data-mark="off"] .rt-who__dot { background: var(--lm-bg-subtle); color: var(--lm-text-muted); }
.rt-map [data-mark="na"] .rt-who__dot { border: 1px dashed var(--lm-border); color: var(--lm-text-muted); }
.rt-map .rt-who__name { color: var(--lm-text-strong); }
.rt-map .rt-who__note { color: var(--lm-text-muted); }
.rt-map [data-mark="part"] .rt-who__note { color: var(--lm-warning-text); }

.rt-map__steps {
  position: relative;
  display: grid;
  grid-template-columns: 112px repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 장면 마디를 잇는 선 */
.rt-map__steps::before {
  content: "";
  position: absolute;
  top: 17px;
  right: calc((100% - 112px) / 14);
  left: calc(112px + (100% - 112px) / 14);
  height: 1px;
  background: var(--lm-border);
}

.rt-map__labels,
.rt-step {
  display: grid;
  grid-row: 1 / span 5;
  grid-template-rows: subgrid;
  min-width: 0;
}

.rt-map__labels span {
  padding: 14px 12px 14px 0;
  border-top: 1px solid var(--lm-hairline);
  color: var(--lm-text-muted);
  font-size: 13px;
  font-weight: 650;
}

.rt-map__labels span:first-child {
  border-top: 0;
}

.rt-step {
  padding: 0 6px;
}

.rt-step.is-current {
  border-radius: var(--lm-radius);
  background: var(--lm-bg-surface);
  box-shadow: inset 0 0 0 1px var(--lm-border);
}

.rt-step__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding-bottom: 14px;
  text-align: center;
}

.rt-step__node {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--lm-radius-pill);
  background: var(--lm-rail-bg);
  color: var(--lm-rail-ink-strong);
  font-family: var(--rl-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.rt-step.is-current .rt-step__node {
  background: var(--lm-rail-accent);
  color: var(--lm-rail-bg);
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--lm-rail-bg);
}

.rt-step__name {
  color: var(--lm-text-strong);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.rt-step__cell {
  min-width: 0;
  padding: 14px 6px;
  border-top: 1px solid var(--lm-hairline);
}

/* 줄 이름은 왼쪽 첫 열이 맡는다. 좁은 화면에서만 칸 안에 보인다 */
.rt-step__label {
  display: none;
  margin: 0 0 6px;
  color: var(--lm-text-muted);
  font-size: 12.5px;
  font-weight: 650;
}

.rt-map .rt-come {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--lm-text-strong);
  font-size: 14.5px;
}

.rt-map .rt-come .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: var(--lm-radius-pill);
  background: var(--lm-trust-soft);
  color: var(--lm-trust);
}

.rt-map .rt-chips {
  flex-direction: column;
  align-items: flex-start;
}

.rt-map .rt-chips li {
  max-width: 100%;
  border-color: var(--lm-hairline);
  background: var(--lm-bg-surface);
  color: var(--lm-text-strong);
  font-size: 13px;
  white-space: normal;
}

.rt-map .rt-chips .icon {
  color: var(--lm-primary);
}

.rt-map .rt-whorow {
  grid-template-columns: minmax(0, 1fr);
}

.rt-map .rt-whorow__item {
  color: var(--lm-text);
  white-space: normal;
}

.rt-map .rt-who {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 6px;
}

.rt-map .rt-fair {
  color: var(--lm-success-text);
  font-size: 14px;
}

.rt-map .rt-fair .icon {
  color: var(--lm-success-text);
}

/* ── 직접 열어 보기(무대 아래 웜 페이퍼) ── */

.rt-try {
  padding: 64px 0 80px;
}

.rt-try__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 56px;
  align-items: start;
  max-width: 1440px;
}

.rt-try h2 {
  margin: 0 0 12px;
  color: var(--lm-text-strong);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 450;
  letter-spacing: -0.03em;
}

.rt-try p {
  max-width: 36em;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.rt-try .rl-actions {
  padding-top: 6px;
}

/* ── 좁은 화면 ── */

@media (max-width: 1180px) {
  .rt-bar__note {
    display: none;
  }

  .rt-tab__role {
    display: none;
  }

  .rt-stage {
    grid-template-columns: auto minmax(64px, 96px) minmax(0, 1fr);
  }

  .rt-strip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }

  .rt-strip__cell:nth-child(3) {
    border-left: 0;
  }

  .rt-strip__cell:nth-child(n + 3) {
    border-top: 1px solid var(--rt-line);
  }

}

/* 820px 이하: 화면 한 장에 담지 않고 휴대전화 → 관리 창 차례로 쌓는다. 실 대신 양쪽 고리만 남긴다 */
@media (max-width: 820px) {
  .rt-show {
    height: auto;
    min-height: 0;
  }

  .rt-bar,
  .rt-band,
  .rt-live,
  .rt-wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  .rt-title,
  .rt-bar__actions .rt-link:first-child {
    display: none;
  }

  .rt-bar__actions {
    margin-left: auto;
  }

  .rt-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .rt-tabs::before {
    display: none;
  }

  .rt-tabs > li {
    flex: none;
  }

  .rt-tab {
    flex-direction: row;
    padding: 0 10px 0 0;
  }

  .rt-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .rt-gap,
  .rt-thread,
  .rt-tag {
    display: none;
  }

  .rt-side--phone {
    align-items: center;
  }

  .rt-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .rt-strip__cell + .rt-strip__cell {
    border-top: 1px solid var(--rt-line);
    border-left: 0;
  }

  .rt-window__head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 6px 6px 0;
  }

  /* 자리 세 칸이 390px에 들어가도록 아이콘을 빼고 '이 장면' 표지는 이름 아래로 내린다 */
  .rt-roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rt-role {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 4px;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  .rt-role .icon {
    display: none;
  }

  .rt-rolecap {
    margin: 0 0 6px;
  }

  .rt-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .rt-nav {
    justify-content: space-between;
  }

  .rt-try__grid,
  .rt-map__head {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .rt-map__steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .rt-map__steps::before,
  .rt-map__labels {
    display: none;
  }

  .rt-step {
    display: block;
    grid-row: auto;
    padding: 16px 0;
    border-top: 1px solid var(--lm-border);
  }

  .rt-step.is-current {
    padding: 16px 12px;
  }

  .rt-step__head {
    flex-direction: row;
    padding-bottom: 8px;
    text-align: left;
  }

  .rt-step__cell {
    padding: 10px 0;
    border-top: 0;
  }

  .rt-step__label {
    display: block;
  }

  .rt-map .rt-chips {
    flex-direction: row;
  }

  .rt-map .rt-who {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rt-brand__sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-thread__line.is-drawing {
    animation: none;
  }

  .rt-tab__node,
  .rt-role,
  .rt-link,
  .rt-navbtn {
    transition: none;
  }
}

/* ── 2026-10-10 재디자인 층(사용자 지시: 비교 시안 a·b·c를 섞은 소개 화면 site.css와 같은 세계) ──
   무대는 밤(저녁의 아파트, 뒤에 창 무늬가 옅게), 금색 자리는 불빛 색, 주 행동은 불빛 바탕에 밤 글자.
   무대 아래(여정 지도·직접 열어 보기)는 제도 용지. 위의 규칙은 그대로 두고 여기서 색과 재질만 바꾼다 */
.rt {
  --rt-stage-bg: var(--lm-night);
  --rt-bezel: var(--lm-ink-black);
  --rt-line: var(--lm-night-line);
  --rt-ink: var(--lm-night-ink);
  --rt-ink-strong: var(--lm-night-ink);
  --rt-muted: var(--lm-night-ink-muted);
  --rt-gold: var(--lm-window);
  --rt-shadow: 0 32px 72px rgba(0, 0, 0, 0.55);
}
body.rt {
  background-color: var(--lm-draft-paper);
  background-image:
    linear-gradient(var(--lm-draft-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--lm-draft-grid-major) 1px, transparent 1px),
    linear-gradient(var(--lm-draft-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--lm-draft-grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.rt-show { position: relative; isolation: isolate; overflow: hidden; }
.rt-show > :not(.rt-facade) { position: relative; z-index: 1; }
.rt-facade {
  --bays: 8;
  position: absolute;
  inset: 56px 0 0;
  z-index: 0;
  opacity: 0.16;
  pointer-events: none;
}
.rt-facade.is-built { display: grid; grid-template-columns: repeat(var(--bays), minmax(0, 1fr)); gap: 0 18px; padding: 24px 36px 0; }
.rt-facade .ls-bay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 14px 5px; padding: 0 7px; background: var(--lm-pilaster); }
.rt-facade .ls-win { height: 27px; background: var(--lm-window-off); transition: background-color 700ms var(--lm-ease-out); }
.rt-facade .ls-win.is-on { background: var(--lm-window); }
.rt-facade .ls-win.is-on.is-b { background: var(--lm-window-bright); }
.rt-facade .ls-win.is-on.is-c { background: var(--lm-window-deep); }
.rt-bar h1 { font-weight: 800; letter-spacing: -0.03em; }
.rt-navbtn--primary { border-color: var(--lm-window); background: var(--lm-window); color: var(--lm-night); }
.rt-navbtn--primary:hover { border-color: var(--lm-window-bright); background: var(--lm-window-bright); }
.rt-role[aria-selected="true"] .icon { color: var(--lm-signal-ink); }
.rt-role[aria-selected="true"] .rt-role__auto { border-color: var(--lm-signal-ink); color: var(--lm-signal-ink); }
.rt-map, .rt-try { color: var(--lm-draft-ink); }
.rt-map__head h2, .rt-try h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.12; font-weight: 800; letter-spacing: -0.05em; color: var(--lm-draft-ink); }
.rt-map__steps::before { background: var(--lm-draft-ink); }
.rt-map__labels span, .rt-step__cell { border-top-color: var(--lm-draft-ink); }
.rt-step.is-current { background: var(--lm-bg-surface); box-shadow: inset 0 0 0 2px var(--lm-draft-ink); }
.rt-map .rt-chips li { border-color: var(--lm-draft-ink); }
.rt-map .rt-chips .icon { color: var(--lm-signal-ink); }
@media (prefers-reduced-motion: reduce) { .rt-facade .ls-win { transition: none; } }

/* ── 첫 화면: 한빛아파트(공개 자료) ── */
.rt-hanbit { min-height: min(100dvh, 980px); padding: 40px 32px 56px; background: var(--lm-night); color: var(--lm-night-ink); display: flex; align-items: center; }
.rt-hanbit__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 48px; align-items: center; width: min(100%, 1560px); margin: 0 auto; }
.rt-hanbit__brand { margin-bottom: 56px; }
.rt-hanbit__kicker { margin: 0; color: var(--lm-window); font-size: 15px; font-weight: 700; }
.rt-hanbit h2 { margin: 18px 0 0; color: var(--lm-night-ink); font-size: clamp(40px, 4.8vw, 72px); line-height: 1.08; font-weight: 800; letter-spacing: -0.05em; }
.rt-hanbit__facts { display: grid; margin: 32px 0 0; border-top: 1px solid var(--lm-night-line); }
.rt-hanbit__facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--lm-night-line); }
.rt-hanbit__facts dt { color: var(--lm-night-ink-muted); font-size: 14px; font-weight: 600; }
.rt-hanbit__facts dd { margin: 0; color: var(--lm-night-ink); font-size: 16px; font-weight: 700; }
.rt-hanbit__facts dd span { display: block; margin-top: 2px; color: var(--lm-night-ink-muted); font-size: 13px; font-weight: 500; }
.rt-hanbit__lead { margin: 28px 0 0; max-width: 32em; color: var(--lm-night-ink-muted); font-size: 17px; line-height: 1.75; }
.rt-hanbit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 32px 0 0; }
.rt-hanbit__go { display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 24px; border-radius: 14px; background: var(--lm-window); color: var(--lm-night); font-size: 16.5px; font-weight: 700; text-decoration: none; }
.rt-hanbit__go:hover { background: var(--lm-window-bright); }
.rt-hanbit__go:focus-visible { outline: var(--lm-focus-ring-dark); outline-offset: 3px; }
.rt-hanbit__fig { margin: 0; }
.rt-hanbit__fig .c3-stage .c3 { max-width: none; max-height: 560px; }
/* 단지 그림은 오른쪽 칸을 꽉 채우고 화면 높이의 대부분을 쓴다(빈 여백 없이 크게) */
.rt-hanbit__fig .c3o__canvas { aspect-ratio: auto; height: clamp(360px, 70dvh, 760px); max-height: none; }
@media (max-width: 640px) {
  .rt-hanbit__fig .c3o__canvas { aspect-ratio: 5 / 4; height: auto; }
}
.rt-hanbit__figtitle { margin: 8px 0 0; color: var(--lm-night-ink); font-size: 15px; font-weight: 800; }
.rt-hanbit__figtitle span { margin-left: 8px; color: var(--lm-night-ink-muted); font-size: 12.5px; font-weight: 500; }
.rt-hanbit__fig .c3-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.rt-hanbit__fig .c3-legend li { grid-template-columns: 16px minmax(0, 1fr) auto 28px; }
.rt-hanbit__fig .c3-legend b { font-size: 22px; }
.rt-hanbit__fig .c3-rotate { margin-top: 12px; }
@media (max-width: 1100px) {
  .rt-hanbit__grid { grid-template-columns: minmax(0, 1fr); }
  .rt-hanbit__brand { margin-bottom: 32px; }
}
@media (max-width: 560px) {
  .rt-hanbit { padding: 28px 20px 40px; }
  .rt-hanbit__fig .c3-legend { grid-template-columns: minmax(0, 1fr); }
}
