/* 전시 도슨트 카드 (Codes 백로그 309, 2026-10-30) — js/exhibit_docent.js·exhibit_inspect.js가 만드는 요소만 꾸민다.
   색은 바탕 css/style.css의 변수(--card·--text·--line·--blue, body.dark에서 바뀜)만 쓴다.
   볼트 code/스니펫 「반전 강조 옮겨 가기」(.dc-strip, 직접 작성 코드)를 옮겨 고쳤다. 출처는 js/exhibit_docent.js 머리 주석. */

/* 자리: 1920 너비에서 왼쪽 아래 .tracking(14 + 700)과 오른쪽 아래 .docks(440 + 14) 사이 빈칸 */
:root { --dc-l: 726px; --dc-r: 466px; }
/* 흐린 글자: 바탕 --muted(#7b8199, 흰 바탕 3.9:1)는 투사에 옅어 글자색 쪽으로 당김(흰 바탕 약 8:1) */
.docent { --dc-sub: color-mix(in srgb, var(--text) 74%, var(--card)); }
@media (max-width: 1500px) { :root { --dc-l: 626px; } }
@media (max-width: 1400px) { :root { --dc-l: 586px; --dc-r: 426px; } }
/* 441: 전시 모드에서는 .docks가 숨어(아래 「337 전시 모드」) 오른쪽이 빈다. 좁은 창에서도 1920의 카드 폭 728을 지키도록 오른쪽 자리를 줄이고,
   모자라면 지도 단추 줄(.map-tools: 14 + 42 + 틈 10) 앞까지 쓴다. 1920 이상은 466px 그대로다. 개발 모드(?dev=1)는 .docks가 보여 위 값을 그대로 쓴다 */
body.exhibit-mode { --dc-r: clamp(66px, 100vw - var(--dc-l) - 728px, 466px); }
/* 441: 넓어진 카드는 창이 좁으면(잰 값 1400 · 1366 · 1280) 공장을 눌러 뜬 바탕 카드(#detail)와 겹친다. 방금 연 판을 위로 둔다 [초안 — 441 러너가 정함, 되돌리려면 이 줄을 지움] */
body.exhibit-mode.has-detail .right-stack { z-index: 12; }

.docent { position: fixed; left: var(--dc-l); right: var(--dc-r); bottom: 14px; z-index: 11; padding: 12px 16px 0; overflow: hidden;
  display: grid; gap: 8px; user-select: none; word-break: keep-all; /* 한글을 낱말 가운데서 끊지 않음(309 그림: 「통째/로는」) */ }
.dc-top { display: flex; align-items: center; gap: 10px; }
.dc-status { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--dc-sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.docent.hold .dc-status { color: var(--blue); }
.dc-act { height: 32px; padding: 0 14px; border-radius: 9px; border: 1.5px solid var(--blue); font-size: 14px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.dc-act:hover { background: var(--blue); color: #fff; }

/* 「반전 강조 옮겨 가기」: 같은 줄 두 벌, 위 벌(.ink)은 clip-path로 고른 칸만 보임 */
.dc-strip { position: relative; flex: none; }
.dc-row { display: flex; gap: 4px; }
.dc-row > * { box-sizing: border-box; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--dc-sub); }
.dc-row.base > button:hover { border-color: var(--blue); color: var(--text); }
.dc-row.base > button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dc-row.ink { position: absolute; inset: 0; pointer-events: none; }
.dc-row.ink > * { background: var(--blue); border-color: var(--blue); color: #fff; }

.dc-main { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px; min-height: 104px; }
.dc-title { font-size: 23px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; display: flex; align-items: center; gap: 9px; }
.dc-text p { margin: 6px 0 0; font-size: 17px; line-height: 1.38; }
.dc-text .dc-l2 { color: var(--dc-sub); }
.dc-num { display: grid; justify-items: end; text-align: right; max-width: 230px; padding-bottom: 2px; }
.dc-num b { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--blue); font-variant-numeric: tabular-nums; }
.dc-num small { margin-top: 6px; font-size: 14px; line-height: 1.3; color: var(--dc-sub); }
.dc-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; flex: none; }
/* 누른 것 설명: 숫자 칸을 접고 셋째 줄(숫자 한 줄)을 굵게 */
.docent.inspect .dc-num { display: none; }
.docent.inspect .dc-text .dc-l2 { color: var(--blue); font-weight: 700; }
.dc-bar { height: 4px; margin: 0 -16px; background: var(--line); }
.dc-bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

body.cinema .docent { left: 50%; right: auto; width: min(760px, calc(100vw - 28px)); translate: -50% 0; bottom: 70px; }
@media (max-width: 1180px) {
  .docent { left: 14px; right: 14px; bottom: auto; top: 186px; }
  .dc-title { font-size: 19px; } .dc-text p { font-size: 15px; } .dc-num b { font-size: 30px; }
}
body.phone .docent { left: 8px; right: 8px; top: auto; bottom: calc(8px + var(--sab, 0px)); padding: 10px 12px 0; }
body.phone .dc-main { min-height: 0; }
body.phone .dc-title { font-size: 16px; } body.phone .dc-text p { font-size: 13.5px; } body.phone .dc-num b { font-size: 24px; }

/* 비교 판 (Codes 백로그 310) — js/ui.js compareHTML()이 만드는 .kpi.cmp. 바탕 .kpi(가로 한 줄 카드)를 두 칸 비교 카드로 바꾼다.
   두 칸은 색만이 아니라 칸 머리 글(한 켤레씩 맞춤 · 모듈 조합)과 왼쪽 띠 굵기로도 가른다. 흐린 글자는 도슨트 카드와 같은 섞음. */
.kpi.cmp { display: grid; grid-template-rows: auto 1fr auto; gap: 5px; align-items: stretch; width: 372px; min-width: 0; padding: 8px 13px 7px; word-break: keep-all;
  --cmp-sub: color-mix(in srgb, var(--text) 74%, var(--card)); }
.cmp-top { display: flex; align-items: center; gap: 8px; }
.cmp .kpi-ic { width: 22px; height: 22px; border-radius: 7px; flex: none; }
.cmp .kpi-ic .ic { width: 14px; height: 14px; }
.cmp-label { font-size: 15px; font-weight: 700; line-height: 1.25; }
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp-col { display: grid; gap: 1px; align-content: start; padding-left: 8px; border-left: 2px solid var(--line); }
.cmp-col.modular { border-left: 4px solid var(--blue); }
.cmp-head { font-size: 13px; font-weight: 600; color: var(--cmp-sub); }
.cmp-val { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.cmp-col.modular .cmp-val { color: var(--blue); }
.cmp.even .cmp-col.modular .cmp-val { color: var(--text); }
.cmp-sub { font-size: 13px; line-height: 1.3; color: var(--cmp-sub); }
.cmp-src { font-size: 12.5px; line-height: 1.3; color: var(--cmp-sub); border-top: 1px solid var(--line); padding-top: 5px; }
.mode-chips { top: var(--cmp-chips-top, 142px); }
:root { --cmp-chips-top: 212px; } /* 카드 아래 + 8px(카드 높이는 310 그림에서 잼) */
/* 311 비율: 창 폭이 1602 px보다 좁으면(3:2 1440×960 · 16:10 1280×800 · 1366×768) 카드 넷(4 × 372 + 틈 30 = 1518 px)의 넷째 장이
   오른쪽 지도 단추 줄 밑으로 들어가 잘렸다. 카드 줄을 폭에 맞춰 왼쪽 위 기준으로 통째로 줄이고(글자 비율은 1920 화면과 같아짐),
   칩 줄 · 안내줄은 줄어든 높이(130 px × 비율)를 따라 올린다. --cmp-scale은 js/ui.js fitScreen이 적는다(1602 px 이상은 1).
   :where()로 우선순위를 0으로 두어 아래 여는 · 닫는 화면의 70px(346)이 그대로 이긴다 */
body.exhibit-mode:not(.phone) #kpis { transform: scale(var(--cmp-scale, 1)); transform-origin: 0 0; }
:where(body.exhibit-mode:not(.phone)) { --cmp-chips-top: calc(68px + 144px * var(--cmp-scale, 1)); }
/* 311 비율: style.css 1500 px 줄(.tracking 600)이 그 앞 1400 px 줄(560)을 덮어, 1400 이하에서 길 패널(14 + 600)이 도슨트 카드(왼쪽 586)와 28 px 겹쳤다 */
@media (max-width: 1400px) { body.exhibit-mode .tracking { width: 560px; } }
body.phone .cmp-label, body.phone .cmp-head, body.phone .cmp-sub, body.phone .cmp-src, body.phone .cmp-col.custom { display: none; }
body.phone .kpi.cmp { width: auto; padding: 0 4px; }
/* 310 그림 검사에서 고침: 밤 테마의 고른 거점 번호(흰 글자 on #6d8bff 3.09:1)를 어두운 글자로(약 6:1),
   공장 카드 왼쪽 이름이 「다섯 구/역」처럼 낱말 안에서 꺾이던 것(바탕 .d-row) */
body.dark .dc-row.ink > * { color: #0b1020; }
.detail .d-row { word-break: keep-all; }
.detail .d-row span { flex: none; white-space: nowrap; }
/* 310 판정 고침: 10 낱말 꺾임(시설 카드 머리·오른쪽 아래 목록) · 11 숫자 밑 글 줄 맞춤 · 12 바닥에 깔려 안 보이던 안내줄을 칩 줄 아래로
   · 13 길 패널의 짓기 완료 시각(거꾸로 보임)을 숨김 — 지금 거점 강조는 js/ui.js renderExpansion */
.detail, .docks { word-break: keep-all; }
.dc-num small { text-wrap: balance; }
.hint { left: 14px; right: auto; top: calc(var(--cmp-chips-top) + 40px); bottom: auto; transform: none; font-size: 12.5px; color: var(--text);
  max-width: 700px; white-space: normal; word-break: keep-all; line-height: 1.45;
  padding: 4px 10px; border-radius: 8px; background: color-mix(in srgb, var(--card) 88%, transparent); pointer-events: auto; }
.step .s-time { display: none; }
/* 337 전시 모드(주소에 ?dev=1이 없을 때, js/exhibit_data.js mode) — 310 판정 14·9: 개발 흔적(판 배지 · 검색 · 알림)과 연출 시계,
   연출 숫자가 많은 곳(오른쪽 아래 목록 · 알림 띄움 · 짓기 알약 · 길 패널의 공사 수와 공사 카드 · 시설 수 알약)을 숨겨 그 자리를 3D 장면에 준다 */
body.exhibit-mode .site-pill, body.exhibit-mode .topbar .search, body.exhibit-mode .brand .ver, body.exhibit-mode .bell-wrap, body.exhibit-mode .live-pill,
body.exhibit-mode .docks, body.exhibit-mode .toasts, body.exhibit-mode .build-label, body.exhibit-mode .t-veh, body.exhibit-mode .t-card { display: none; }
/* 339 부스 화면 확대(js/exhibit_booth.js): 사람 키보다 작은 부스 화면을 P3 · P5에서만 왼쪽 빈칸에 크게. 자리(top · height · width)는 JS가 안내줄과 길 패널 사이로 잼 */
.booth-zoom { position: fixed; left: 14px; z-index: 10; margin: 0; padding: 8px; display: none; grid-template-rows: auto 1fr; gap: 6px; box-sizing: border-box; pointer-events: none; }
.booth-zoom.on { display: grid; }
.booth-zoom figcaption { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--text); word-break: keep-all; }
.booth-zoom figcaption small { display: block; font-size: 12.5px; font-weight: 600; color: color-mix(in srgb, var(--text) 74%, var(--card)); }
.booth-zoom canvas { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 8px; pointer-events: auto; touch-action: none; cursor: pointer; } /* 451: 판만 누름을 받는다(js/exhibit_booth_play.js) */
.booth-zoom canvas.hand-hot { outline: 3px solid #2f56e0; outline-offset: -3px; }
.booth-zoom .bz-hint { position: absolute; left: calc(100% + 8px); top: 0; width: 210px; margin: 0; padding: 8px 10px; box-sizing: border-box; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--text); word-break: keep-all; } /* 451: 판 크기를 줄이지 않게 패널 옆에 띄운다 */
/* 346 길 패널 두 줄(js/ui.js renderExpansion · exhibit_data.js phaseRows): 위 공장 · 아래 매장. 칸은 순회 차례(1~6) 열에 놓여 둘 사이를 오가는 꼴이 보인다 */
.t-rows { flex: 1; display: grid; gap: 4px; }
.t-row { display: grid; grid-template-columns: 38px 1fr; align-items: start; }
.t-place { padding-top: 8px; font-size: 13px; font-weight: 800; color: var(--text); }
.t-grid { position: relative; display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); }
.t-grid .t-line { position: absolute; top: 15px; height: 3px; border-radius: 2px; background: var(--line); }
.t-grid .t-line.done { background: var(--blue); }
.t-grid .step { width: auto; }
.t-grid .s-name { margin-top: 5px; white-space: nowrap; }
.s-no { margin-right: 3px; font-variant-numeric: tabular-nums; }
/* 346 비교 카드 넷(J2): 여는 · 닫는 화면에서는 접어 매장 ↔ 공장 장면을 덮지 않는다(거점에서는 그대로). 칩 줄과 안내줄은 위로 당긴다.
   칸은 js/exhibit_docent.js가 body[data-ex-step]에 적는다 [초안 — 346 러너가 정함, 되돌리려면 이 두 줄을 지움] */
body[data-ex-step="open"] #kpis, body[data-ex-step="close"] #kpis { display: none; }
body[data-ex-step="open"], body[data-ex-step="close"] { --cmp-chips-top: 70px; }
/* 449 손 읽기 상태(js/exhibit_hand.js): 위 막대 가운데 빈칸. 441 도슨트 카드 · 길 패널은 아래쪽이라 창이 좁아져도 만나지 않는다(1280 · 1366 잰 값은 Codes 449 결과).
   자동 카메라 칩을 꺼 위 막대가 숨어도(body.cinema) 그 자리에 남는다. 개발 모드(?dev=1)는 위 막대가 차 있어 그 아래로 [초안] */
.hand-status { position: fixed; top: 10px; left: 50%; translate: -50% 0; z-index: 21; display: flex; align-items: center; gap: 10px; height: 36px; pointer-events: none; word-break: keep-all; white-space: nowrap; }
.hand-chip { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: 14px; font-weight: 700;
  color: color-mix(in srgb, var(--text) 74%, var(--card)); }
.hand-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--text) 40%, var(--card)); }
.hand-status.reading .hand-chip { border-color: var(--blue); color: var(--blue); }
.hand-status.reading .hand-chip::before { background: var(--blue); }
.hand-note { font-size: 14px; font-weight: 600; color: color-mix(in srgb, var(--text) 74%, var(--card)); }
body:not(.exhibit-mode) .hand-status { top: 60px; }
body.phone .hand-status { display: none; }
.hand-video { position: fixed; left: 0; top: 0; width: 2px; height: 2px; opacity: 0.01; pointer-events: none; z-index: -1; } /* 화면에 띄우지 않는다. display:none이면 프레임이 멈출 수 있어 이렇게 둔다 */
.hand-dots { position: fixed; inset: 0; z-index: 19; pointer-events: none; }
/* 450 손 커서와 안내 줄(js/exhibit_hand_ui.js). 커서는 카드 · 3D 위에 뜨는 작은 점, 누름을 가로채지 않는다. 안내 줄은 도슨트 카드 바로 위(자리는 js가 카드에 맞춘다, 숫자 카드 · 모드 칩을 가리지 않게) [초안] */
.hand-cursor { position: fixed; left: -11px; top: -11px; z-index: 30; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid var(--blue); background: color-mix(in srgb, var(--blue) 20%, transparent);
  box-shadow: 0 0 0 1.5px var(--card); pointer-events: none; will-change: transform; }
.hand-cursor[hidden] { display: none; }
.hand-cursor.hot { background: color-mix(in srgb, var(--blue) 50%, transparent); }
.hand-cursor.pinch { background: var(--blue); outline: 3px solid color-mix(in srgb, var(--blue) 30%, transparent); }
.hand-guide { position: fixed; right: 14px; bottom: 190px; z-index: 21; max-width: calc(100vw - 28px); padding: 5px 13px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text); pointer-events: none; word-break: keep-all; white-space: nowrap; }
.hand-guide[hidden] { display: none; }
body.phone .hand-guide { display: none; }
.dc-row.base > button.hand-hot { border-color: var(--blue); color: var(--text); }
.dc-act.hand-hot { background: var(--blue); color: #fff; }
.docent { touch-action: pan-y; } /* 카드를 옆으로 쓸기(450 [초안])를 브라우저가 가져가지 않게 */
