/* 슬라이드 뷰어 공통 스타일 (offline.html). 슬라이드는 1920x1080 캔버스를 만들고 화면 크기에 맞춰 줄여서 보여준다. */
:root {
  --blue: #3a46c8;
  --blue-deep: #2a3499;
  --blue-soft: #e8eaf8;
  --ink: #0c0c2e;
  --muted: #5d6187;
  --paper: #f5f6fb;
  --lime: #d8f27a;
  --coral: #ff775c;
  --coral-soft: #fff1ee;
  --line: #dfe2f3;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  background: #f7f8fc;
  color: var(--ink);
  word-break: keep-all;
}

/* ---------- 페이지 (목록) ---------- */
.dv-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.dv-top-in { width: min(1240px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.dv-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; color: var(--ink); }
.dv-brand .mark { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; }
.dv-btn { border: 0; border-radius: 8px; padding: 10px 16px; font-size: 15px; font-weight: 800; cursor: pointer; background: var(--blue); color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.dv-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.dv-main { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 8px 0 60px; }
.dv-head h1 { margin: 22px 0 6px; font-size: 32px; }
.dv-head p { margin: 0; color: var(--muted); line-height: 1.6; }
.dv-sec { margin: 34px 0 14px; display: flex; align-items: baseline; gap: 12px; }
.dv-sec h2 { margin: 0; font-size: 22px; }
.dv-sec span { color: var(--muted); font-size: 14px; }
.dv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.dv-thumb { display: block; width: 100%; padding: 0; text-align: left; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; box-shadow: 0 10px 28px rgba(31,48,82,.08); transition: transform .12s, box-shadow .12s, border-color .12s; font: inherit; color: inherit; }
.dv-thumb:hover, .dv-thumb:focus-visible { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 16px 36px rgba(58,70,200,.18); outline: none; }
.dv-thumb .box { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #fff; }
.dv-thumb .copy { display: none; }
.dv-thumb .box .slide { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; user-select: none; }
.dv-thumb .cap { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px 12px; }
.dv-thumb .no { font-weight: 800; color: var(--blue); font-size: 13px; min-width: 22px; }
.dv-thumb .ti { font-size: 14px; font-weight: 700; line-height: 1.4; }

/* ---------- 발표 모드 ---------- */
.dv-pv { position: fixed; inset: 0; z-index: 100; background: #05051a; display: none; flex-direction: column; }
.dv-pv.open { display: flex; }
.dv-pv-prog { height: 4px; background: rgba(255,255,255,.12); }
.dv-pv-prog i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .15s; }
.dv-pv-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; display: grid; place-items: center; }
.dv-pv-stage .slide { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; }
.dv-pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 96px; border: 0; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; z-index: 3; }
.dv-pv-nav:hover { background: rgba(255,255,255,.26); }
.dv-pv-nav:disabled { opacity: .25; cursor: default; }
.dv-pv-nav.prev { left: 8px; }
.dv-pv-nav.next { right: 8px; }
.dv-pv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px; color: #dfe2f3; flex-wrap: wrap; }
.dv-pv-title { flex: 1; min-width: 120px; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-pv-count { font-variant-numeric: tabular-nums; color: #9a9cc2; font-size: 14px; min-width: 64px; text-align: center; }
.dv-pv-btn { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; font-size: 14px; font-weight: 700; cursor: pointer; }
.dv-pv-btn:hover { background: rgba(255,255,255,.2); }
.dv-pv-help { color: #9a9cc2; font-size: 12.5px; padding: 0 14px 10px; }
@media (max-width: 640px) { .dv-pv-help, .dv-pv-title { display: none; } .dv-head h1 { font-size: 26px; } }

/* ---------- 슬라이드 (1920 x 1080) ---------- */
.slide {
  --z: 1;
  width: 1920px; height: 1080px; position: relative; overflow: hidden; background: #fff;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink); word-break: keep-all;
}
.slide a { color: inherit; }
.slide .body { position: absolute; left: 120px; top: 72px; width: 1680px; display: flex; flex-direction: column; gap: calc(30px * var(--z)); }
.slide .foot { position: absolute; left: 120px; right: 120px; top: 1000px; height: 40px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 22px; }
.slide .foot svg { width: 40px; height: 40px; flex: none; }
.slide .foot .pg { margin-left: auto; }

.hd { display: flex; flex-direction: column; gap: 14px; }
.hd .eb { font-size: 26px; font-weight: 600; color: var(--blue); }
.hd .h1 { font-size: 64px; font-weight: 700; line-height: 1.18; margin: 0; }
.hd .sub { font-size: 30px; color: var(--muted); line-height: 1.4; }

.cards { display: grid; gap: calc(30px * var(--z)); }
.cards.c1 { grid-template-columns: 1fr; }
.cards.c2 { grid-template-columns: 1fr 1fr; }
.cards.c3 { grid-template-columns: 1fr 1fr 1fr; }
.card { background: var(--paper); border-radius: 28px; padding: calc(36px * var(--z)) calc(40px * var(--z)); display: flex; flex-direction: column; gap: calc(16px * var(--z)); min-width: 0; }
.card.soft { background: var(--blue-soft); }
.card.warn { background: var(--coral-soft); }
.card .tag { font-size: calc(22px * var(--z)); font-weight: 700; color: var(--blue); }
.card .tag.muted { color: var(--muted); }
.card .ct { font-size: calc(36px * var(--z)); font-weight: 700; line-height: 1.25; }
.card .big { font-size: calc(52px * var(--z)); font-weight: 800; color: var(--blue); }
.card .cd { font-size: calc(28px * var(--z)); color: var(--muted); line-height: 1.5; }
.card.soft .cd, .card.warn .cd { color: var(--ink); }
.card.soft .ct { color: var(--blue-deep); }
.card.warn .ct { color: var(--coral); }
.pill { align-self: flex-start; display: inline-flex; background: var(--blue); color: #fff; font-weight: 700; border-radius: 999px; padding: calc(12px * var(--z)) calc(36px * var(--z)); font-size: calc(34px * var(--z)); line-height: 1.2; white-space: nowrap; }

.rows { display: flex; flex-direction: column; gap: calc(16px * var(--z)); }
.row { background: var(--paper); border-radius: 28px; padding: calc(24px * var(--z)) 36px; display: flex; align-items: center; gap: 28px; }
.badge { flex: none; width: calc(64px * var(--z)); height: calc(64px * var(--z)); border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: calc(26px * var(--z)); display: grid; place-items: center; }
.row .rt { font-size: calc(34px * var(--z)); font-weight: 700; }
.row .rt a { color: var(--blue); text-decoration: underline; }
.row .rd { font-size: calc(26px * var(--z)); color: var(--muted); line-height: 1.45; margin-top: 4px; }
.row .pill { font-size: calc(26px * var(--z)); padding: calc(12px * var(--z)) 30px; align-self: center; }

.list { display: grid; grid-template-columns: 1fr 1fr; gap: calc(24px * var(--z)); }
.item { background: var(--paper); border-radius: 28px; padding: calc(30px * var(--z)) 40px; display: flex; align-items: center; gap: 28px; font-size: calc(30px * var(--z)); font-weight: 700; line-height: 1.3; }
.item .badge { width: calc(56px * var(--z)); height: calc(56px * var(--z)); }

.note { background: var(--blue-soft); border-radius: 28px; padding: calc(26px * var(--z)) 40px; display: flex; flex-direction: column; gap: 10px; }
.note .nt { font-size: calc(26px * var(--z)); font-weight: 700; color: var(--blue-deep); }
.note .nx { font-size: calc(30px * var(--z)); line-height: 1.5; }
.note .nx a { color: var(--blue); text-decoration: underline; }
.note.warn { background: var(--coral-soft); }
.note.warn .nt { color: var(--coral); }

.lead { background: var(--blue); color: #fff; border-radius: 28px; padding: calc(30px * var(--z)) 48px; font-size: calc(38px * var(--z)); font-weight: 700; line-height: 1.35; }
.lead a { color: var(--lime); text-decoration: underline; }
.banner { background: var(--coral); color: #fff; border-radius: 28px; padding: calc(34px * var(--z)) 48px; font-size: calc(42px * var(--z)); font-weight: 700; line-height: 1.3; }
.chiplink { display: flex; align-items: center; gap: 20px; }
.chiplink a { background: var(--lime); color: var(--ink); font-weight: 700; font-size: 30px; border-radius: 999px; padding: 16px 36px; text-decoration: underline; }
.chiplink span { color: var(--muted); font-size: 24px; }

.cols { display: grid; grid-template-columns: 3fr 2fr; gap: calc(32px * var(--z)); align-items: stretch; }
.cols.nosize { grid-template-columns: 1fr; }
.term { background: var(--ink); border-radius: 28px; padding: calc(40px * var(--z)) 56px; display: flex; flex-direction: column; gap: calc(24px * var(--z)); min-width: 0; }
.tblock { position: relative; display: flex; flex-direction: column; gap: calc(12px * var(--z)); }
.tlabel { font-size: calc(22px * var(--z)); font-weight: 600; color: var(--lime); padding-right: 140px; }
.code { margin: 0; color: #fff; font-family: inherit; font-weight: 500; font-size: calc(26px * var(--z)); line-height: 1.6; white-space: pre-wrap; word-break: break-word; user-select: text; cursor: text; }
.copy { position: absolute; right: 0; top: -4px; border: 0; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 20px; padding: 8px 18px; cursor: pointer; font-family: inherit; }
.copy:hover { filter: brightness(.95); }
.copy.done { background: #fff; }
.side { display: flex; flex-direction: column; gap: calc(20px * var(--z)); }
.side .card { padding: calc(28px * var(--z)) 36px; gap: calc(10px * var(--z)); }
.side .card .ct { font-size: calc(30px * var(--z)); }
.side .card .cd { font-size: calc(26px * var(--z)); }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: calc(32px * var(--z)); }
.panel { background: var(--paper); border-radius: 28px; padding: calc(36px * var(--z)) 44px; display: flex; flex-direction: column; gap: calc(22px * var(--z)); }
.step { display: flex; align-items: center; gap: 18px; font-size: calc(30px * var(--z)); line-height: 1.4; }
.step .badge { width: 48px; height: 48px; font-size: 22px; }

/* 로고 규격 / 스크린샷 규격 그림 */
.tiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.tile .sq { width: 420px; height: 420px; max-width: 100%; background: var(--paper); border-radius: 32px; display: grid; place-items: center; }
.tile .logo { width: 260px; height: 260px; display: grid; place-items: center; background: var(--blue); }
.tile .logo.round { border-radius: 90px; }
.tile .logo.none { background: transparent; border: 4px dashed #cfd2ea; }
.tile .face { width: 150px; height: 150px; border-radius: 50%; background: var(--lime); }
.tile .lab { display: flex; align-items: center; gap: 14px; font-size: 30px; font-weight: 700; }
.tile .lab .b { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); font-size: 28px; }
.tile .lab .b.x { background: var(--coral); }
.shots { display: flex; align-items: flex-end; gap: 36px; }
.shots .ph { display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 26px; font-weight: 700; }
.shots .phone { width: 212px; height: 349px; border-radius: 24px; border: 3px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.shots .phone i { position: absolute; display: block; }
.shots .wide { width: 560px; height: 276px; border-radius: 24px; background: var(--blue); position: relative; }
.shots .wide i { position: absolute; display: block; }

/* 표지 / 마무리 */
.slide.blue { background: var(--blue); color: #fff; }
.slide.blue .body { gap: 36px; }
.brandrow { display: flex; align-items: center; gap: 20px; font-size: 30px; font-weight: 700; }
.brandrow svg { width: 72px; height: 72px; }
.cv-kicker { font-size: 28px; font-weight: 500; color: var(--blue-soft); }
.cv-title { margin: 0; font-size: 132px; font-weight: 800; line-height: 1.12; white-space: pre-line; }
.cv-desc { font-size: 34px; color: var(--blue-soft); line-height: 1.5; }
.chips { display: flex; gap: 20px; flex-wrap: wrap; }
.chip { border-radius: 999px; padding: 12px 26px; font-size: 26px; font-weight: 600; background: var(--blue-deep); color: #fff; }
.chip.lime { background: var(--lime); color: var(--ink); }
.end-title { margin: 0; font-size: 140px; font-weight: 800; color: var(--lime); }
.end-sub { font-size: 36px; line-height: 1.5; }
