/* 발표 자료 보기 */
.skin-slide { position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; overflow: hidden; color: #f2f0f7; background: #0b0b0e; font-family: 'Noto Sans KR', system-ui, sans-serif; word-break: keep-all; }
.skin-slide *, .skin-slide *::before, .skin-slide *::after { box-sizing: border-box; }
.skin-slide button, .skin-slide a { font: inherit; }
.skin-slide button { border: 0; cursor: pointer; }
.skin-slide button:disabled { opacity: .35; cursor: default; }
.skin-slide button:focus-visible, .skin-slide a:focus-visible { outline: 2px solid #ffc72c; outline-offset: 2px; }
.skin-slide [hidden] { display: none !important; }
.onebuild-flipbook-container.skin-slide { height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none; } /* 엔진 공통 height:700px 를 화면 높이로 — 높이가 낮은 화면에서 슬라이드·조작 바가 잘리지 않게 */

/* [2026-10-23 #178] 슬라이드를 화면에 최대로 — 하단 바·QR·자사 탭은 평소 숨기고 화살표(.sl-menu-btn)로 연다. 뷰어 하단 줄은 23px(CSS 배율 보정 뒤엔 23/dpr). */
.skin-slide { --sl-pad: 24px; }
.sl-stage { position: absolute; z-index: 1; inset: var(--sl-pad); display: grid; place-items: center; min-width: 0; min-height: 0; }
.sl-slide { position: relative; width: min(100%, calc((100vh - var(--sl-pad) * 2) * 1.7777778)); width: min(100%, calc((100dvh - var(--sl-pad) * 2) * 1.7777778)); aspect-ratio: 16 / 9; max-height: 100%; min-width: 0; min-height: 0; overflow: hidden; background: #fff; border-radius: 3px; }
/* 고배율 보정 — 뷰어는 iframe 의 CSS 크기로 그림을 만든다(배율 무시). 배율만큼 크게 두고 다시 줄여 화면 픽셀과 1:1 로 맞춘다 */
.sl-viewer { position: absolute; top: 0; left: 0; display: block; width: calc(100% * var(--sl-dpr, 1)); height: calc(100% * var(--sl-dpr, 1)); border: 0; transform: scale(calc(1 / var(--sl-dpr, 1))); transform-origin: 0 0; }

.sl-menu-btn { position: absolute; z-index: 50; bottom: calc(23px / var(--sl-dpr, 1) + 10px); left: 50%; display: grid; place-items: center; width: 48px; height: 28px; padding: 0; transform: translateX(-50%); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; color: #f2f0f7; background: rgba(20, 21, 27, .82); }
.sl-menu-btn svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.skin-slide.sl-menu-open .sl-menu-btn svg { transform: rotate(180deg); }

/* [2026-10-23 #179] 하단 메뉴 — 아이콘+글자 버튼 3개(전체 화면·공유하기·원본 내려받기), 평소 배경 없음·켜진 버튼만 노랑 */
.sl-bar { position: absolute; z-index: 50; bottom: calc(23px / var(--sl-dpr, 1) + 46px); left: 50%; display: flex; align-items: center; justify-content: center; gap: 4px; height: 56px; padding: 6px; transform: translateX(-50%); border: 1px solid rgba(255, 255, 255, .14); border-radius: 28px; background: rgba(20, 21, 27, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.sl-fs, .sl-share, .sl-dl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 22px; color: #f2f0f7; background: transparent; text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 1; }
.sl-fs:hover, .sl-share:hover, .sl-dl:hover { background: rgba(255, 255, 255, .08); }
.sl-menu-btn:hover { filter: brightness(1.14); }
.sl-bar svg, .sl-copy svg, .sl-native svg { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sl-share[aria-expanded="true"] { color: #ffc72c; background: rgba(255, 199, 44, .18); }
.sl-fs .ic-cmp, .skin-slide.is-fullscreen .sl-fs .ic-exp { display: none; }
.skin-slide.is-fullscreen .sl-fs .ic-cmp { display: block; }

/* 공유 창 — 메뉴 바로 위 흰 카드(QR·안내·링크 복사) */
.sl-qr { position: absolute; z-index: 51; bottom: calc(23px / var(--sl-dpr, 1) + 110px); left: 50%; width: 296px; padding: 20px; transform: translateX(-50%); border-radius: 18px; color: #4b5563; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); text-align: center; }
.sl-share-dim { display: none; }
.sl-share-title { margin: 0 0 12px; color: #111827; font-size: 16px; font-weight: 700; line-height: 1.4; text-align: left; }
.sl-qr-code { display: grid; place-items: center; width: 168px; height: 168px; margin: 0 auto; }
.sl-qr-code canvas { display: block; max-width: 168px; max-height: 168px; image-rendering: pixelated; }
.sl-qr-cap { margin: 12px 0 16px; font-size: 13px; font-weight: 400; line-height: 1.5; }
.sl-qr.is-noqr .sl-qr-code, .sl-qr.is-noqr .sl-qr-cap { display: none; }
.sl-copy, .sl-native { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1; }
.sl-copy { color: #fff; background: #111827; }
.sl-copy.is-done { background: #047857; }
.sl-native { margin-top: 8px; color: #111827; background: #fff; border: 1px solid #d1d5db; }

/* 평소 숨김 — 화살표로 연다. 자사 탭(co-promo)은 이 템플릿(.skin-slide)에서만 */
.sl-bar, .sl-qr, .onebuild-flipbook-container.skin-slide .co-promo { transition: opacity .2s ease, visibility .2s; }
.skin-slide:not(.sl-menu-open) .sl-bar, .skin-slide:not(.sl-menu-open) .sl-qr,
.onebuild-flipbook-container.skin-slide:not(.sl-menu-open) .co-promo { opacity: 0; visibility: hidden; pointer-events: none; }

.sl-empty { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; padding: 24px; }
.sl-empty section { width: min(100%, 360px); padding: 34px 24px; border-radius: 16px; background: #1f1e26; text-align: center; }
.sl-empty h1 { margin: 0; color: #f2f0f7; font-size: 18px; font-weight: 700; }

.skin-slide.is-fullscreen { --sl-pad: 0px; width: 100%; height: 100%; min-height: 100%; background: #000; }
.skin-slide.is-fullscreen .sl-slide { border-radius: 0; }

@media (max-width: 820px) {
  .skin-slide { --sl-pad: 12px; }
  .skin-slide.is-fullscreen { --sl-pad: 0px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .skin-slide { --sl-pad: 8px; }
  .skin-slide.is-fullscreen { --sl-pad: 0px; }
}
/* 좁은 세로 휴대폰 — 세로형 버튼(아이콘 위·글자 아래) */
@media (max-width: 480px) {
  .sl-bar { height: 64px; border-radius: 20px; }
  .sl-fs, .sl-share, .sl-dl { flex-direction: column; gap: 4px; width: 88px; height: 52px; padding: 0 4px; border-radius: 14px; font-size: 12px; }
}
/* 슬라이드가 작은 화면(휴대폰·작은 창) — 공유 창은 아래 시트, QR 은 접는다(자기 화면의 QR 은 찍을 수 없고 카드가 슬라이드보다 크다) */
@media (max-width: 1000px), (max-height: 560px) {
  .sl-qr { position: fixed; z-index: 60; top: auto; right: 0; bottom: 0; left: 0; width: auto; padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); transform: none; border-radius: 20px 20px 0 0; text-align: left; }
  .sl-qr::before { content: ""; display: block; width: 36px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: #d1d5db; }
  .sl-share-dim { display: block; position: fixed; z-index: -1; inset: 0; background: rgba(0, 0, 0, .5); }
  .sl-qr-code, .sl-qr-cap { display: none; }
  .sl-copy, .sl-native { height: 48px; }
  .onebuild-flipbook-container.skin-slide.sl-share-open .co-promo { visibility: hidden; } /* 자사 탭은 무대(z-index 1) 밖이라 어둡게 가려지지 않는다 */
}

@media (prefers-reduced-motion: reduce) {
  .skin-slide *, .skin-slide *::before, .skin-slide *::after { transition: none !important; scroll-behavior: auto !important; }
}
