@font-face{font-family:JeilSans;src:url('/css/font/NanumGothicR.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
:root{--bg:#edf0ed;--surface:#fff;--surface-soft:#f7f8f6;--ink:#2b414b;--muted:#798684;--line:#e3e8e3;--accent:#486158;--accent-soft:#edf2ed;--gold:#ac8667;--shadow:0 14px 30px #243c4026;--rail:74px;--sidebar:270px;color-scheme:light}
*{box-sizing:border-box}body{margin:0;font-family:JeilSans,'Malgun Gothic',sans-serif;color:var(--ink);background:var(--bg);font-size:13px}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit;background:none;border:0}a{color:inherit;text-decoration:none}button:disabled{opacity:.3;cursor:default}button:not(:disabled):hover,a:hover{color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--gold);outline-offset:3px}svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button span[data-icon],a span[data-icon]{display:inline-flex}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.reader{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:var(--bg)}.reader-header{height:78px;flex-shrink:0;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 26px;gap:20px}.brand{display:flex;align-items:center;gap:24px}.brand img{width:145px;height:auto}.brand>span{border-left:1px solid var(--line);padding-left:24px;font-size:9px;letter-spacing:2px;color:var(--muted)}.edition{font-size:10px;letter-spacing:.3px;color:var(--muted);display:flex;align-items:center;gap:9px}.edition-dot{width:5px;height:5px;background:#7d9883;border-radius:50%}.edition-divider{margin:0 9px;color:#c7cdca}.header-actions{display:flex;align-items:center;gap:12px}.icon-button{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:5px;flex-shrink:0}.icon-button:hover{background:var(--accent-soft)}.reader-body{display:flex;flex:1;min-height:0;position:relative}.rail{width:var(--rail);flex-shrink:0;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:20px 8px 14px;z-index:4}.rail-main,.rail-bottom{display:flex;flex-direction:column;gap:12px;width:100%}.rail-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;width:100%;height:62px;border-radius:7px;font-size:9px;color:var(--muted)}.rail-button[aria-expanded=true]{color:var(--accent);background:var(--accent-soft)}.rail-button:hover{background:var(--surface-soft)}.sidebar{width:var(--sidebar);flex-shrink:0;background:var(--surface-soft);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;z-index:3}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:29px 22px 25px;flex-shrink:0}.sidebar-heading p{font-size:8px;letter-spacing:1.8px;color:var(--gold);margin:0 0 12px}.sidebar-heading h2{font-size:21px;font-weight:400;margin:0;letter-spacing:-.8px}.sidebar-heading .icon-button{width:28px}.sidebar-heading svg{width:17px}.panel-content{flex:1;overflow:auto;padding:0 15px 20px;overscroll-behavior:contain}.chapter{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:15px 12px;border-bottom:1px solid var(--line);border-radius:3px}.chapter .chapter-number{font-size:10px;color:var(--muted);width:21px;font-variant-numeric:tabular-nums}.chapter strong{display:block;font-size:12px;font-weight:400;margin-bottom:7px}.chapter small{display:block;font-size:7px;letter-spacing:1px;color:var(--muted)}.chapter.active{background:var(--accent-soft);box-shadow:inset 2px 0 var(--accent)}.chapter.active .chapter-number{color:var(--accent)}.sidebar-footnote{font-size:9px;line-height:1.8;color:var(--muted);padding:18px 24px;margin:0;border-top:1px solid var(--line)}.reading-area{flex:1;min-width:0;display:flex;flex-direction:column;position:relative}.reading-heading{display:flex;justify-content:space-between;align-items:center;padding:24px 36px 10px;flex-shrink:0}.reading-eyebrow{font-size:8px;letter-spacing:2px;color:var(--muted)}.reading-heading h1{font-size:16px;font-weight:400;margin:9px 0 0;letter-spacing:-.4px}.save-button{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;padding:10px;border-radius:5px}.save-button svg{width:17px}.save-button[aria-pressed=true]{color:var(--accent);background:var(--surface)}.save-button[aria-pressed=true] svg{fill:var(--accent-soft)}.stage-shell{flex:1;min-height:0;position:relative}.stage{height:100%;width:100%;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-width:thin}.book-wrap{padding:24px 62px;display:flex;align-items:center;justify-content:center;min-width:100%;width:max-content;min-height:100%}.book{display:flex;position:relative;flex-shrink:0;box-shadow:var(--shadow);background:var(--surface);isolation:isolate}.book.spread:after{content:'';position:absolute;top:0;bottom:0;left:50%;width:28px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#0000000b 42%,#00000022 49%,#ffffff30 51%,#00000008 60%,transparent);pointer-events:none;z-index:3}.sheet{position:relative;flex-shrink:0;background:#fff;overflow:hidden}.sheet img{width:100%;height:100%;display:block;user-select:none;-webkit-user-drag:none}.sheet-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;background:#f7f8f6;color:#4a6058}.sheet-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#fff;color:#344e5b;text-align:center;padding:15px;font-size:12px}.sheet-error button{border:1px solid #9baea4;padding:10px 20px}.page-highlight{position:absolute;background:#ffe35b85;border:1px solid #eab52788;pointer-events:none;z-index:2}.page-arrow{position:absolute;top:50%;transform:translateY(-50%);width:39px;height:52px;border:1px solid var(--line);border-radius:25px;background:var(--surface);display:flex;align-items:center;justify-content:center;box-shadow:0 3px 9px #1d303908}.page-arrow.previous{left:15px}.page-arrow.next{right:15px}.reader-caption{height:39px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 36px;color:var(--muted);font-size:9px;gap:12px}.keyboard-hint{font-size:9px;letter-spacing:.3px}.keyboard-hint>span{margin:0 8px}#read-text{display:flex;gap:7px;align-items:center;font-size:9px;padding:8px 0}#read-text svg{width:14px;height:14px}.controls{height:70px;flex-shrink:0;background:var(--surface);display:flex;align-items:center;justify-content:space-between;padding:0 25px;border-top:1px solid var(--line);gap:12px}.page-controls,.zoom-controls,.view-controls{display:flex;align-items:center;gap:6px}.page-controls input{width:43px;height:32px;background:var(--surface-soft);border:1px solid var(--line);border-radius:4px;text-align:center;color:var(--ink);font-size:12px;appearance:textfield;-moz-appearance:textfield}.page-controls input::-webkit-inner-spin-button{appearance:none}.total{color:var(--muted);font-size:11px;min-width:32px}.control-divider{display:block;width:1px;height:18px;background:var(--line);margin:0 8px}#zoom-reset{font-size:11px;width:49px;height:36px;font-variant-numeric:tabular-nums}.view-button{display:flex;align-items:center;gap:8px;padding:10px;font-size:10px;border-radius:4px}.view-button[aria-pressed=true]{background:var(--accent-soft)}.page-range{appearance:none;display:block;width:100%;height:8px;flex-shrink:0;margin:0;border:0;cursor:pointer;background:linear-gradient(to right,var(--accent) var(--progress,0%),var(--line) var(--progress,0%));border-radius:0}.page-range::-webkit-slider-thumb{appearance:none;background:var(--accent);width:18px;height:12px;border-radius:5px}.page-range::-moz-range-thumb{background:var(--accent);width:18px;height:12px;border:0;border-radius:5px}.thumb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.thumb{padding:7px;border:1px solid transparent;border-radius:4px;text-align:left}.thumb img{width:100%;aspect-ratio:.71;display:block;box-shadow:0 2px 5px #0001;object-fit:contain;background:#fff}.thumb>span{display:flex;align-items:center;justify-content:space-between;margin-top:9px;font-size:9px}.thumb.active{border-color:var(--accent);background:var(--accent-soft)}.thumb .saved-dot{color:var(--gold)}.search-box{padding:0 23px 12px}.search-box>label{display:block;font-size:10px;color:var(--muted);margin-bottom:10px}.search-box>div{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);padding:10px;border-radius:4px}.search-box svg{width:15px;height:15px}.search-box input{min-width:0;width:100%;border:0;background:transparent;color:var(--ink);font-size:12px;outline-offset:9px}#search-status{font-size:10px;color:var(--muted);line-height:1.7;margin:12px 0 0}.search-result{display:block;text-align:left;width:100%;padding:15px 10px;border-bottom:1px solid var(--line)}.search-result strong{font-size:11px;font-weight:400}.search-result p{font-size:11px;line-height:1.8;margin:10px 0 0;color:var(--muted);overflow-wrap:anywhere}mark{background:#f7e5a7;color:#263b43}.empty-state{font-size:12px;line-height:1.9;color:var(--muted);padding:22px 8px}.loading-message{padding:45px;font-size:13px}.toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:#2b414bf0;color:#fff;padding:14px 24px;border-radius:7px;font-size:12px;box-shadow:var(--shadow);z-index:30;max-width:90vw;line-height:1.6}.resume{position:fixed;bottom:104px;left:50%;transform:translateX(-50%);background:var(--surface);border:1px solid var(--line);padding:10px 12px 10px 20px;box-shadow:var(--shadow);z-index:20;display:flex;align-items:center;gap:15px;white-space:nowrap;font-size:11px;border-radius:7px}#resume-go{color:var(--accent);font-weight:bold;padding:10px 3px}dialog{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:28px;width:min(540px,calc(100% - 32px));max-height:85dvh;box-shadow:0 20px 100px #0004}dialog::backdrop{background:#1c303a80;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-heading h2{font-size:20px;font-weight:400;margin:0}dialog p{font-size:12px;line-height:1.9;color:var(--muted)}.shortcut-list{display:grid;grid-template-columns:100px 1fr;gap:15px;font-size:12px;padding:20px;background:var(--surface-soft)}.shortcut-list dt{font-weight:bold}.shortcut-list dd{margin:0}.dialog-note{border-top:1px solid var(--line);padding-top:15px;font-size:10px!important}#page-text{white-space:pre-wrap;line-height:2;font-size:14px;padding-top:20px;overflow-wrap:anywhere}#share-dialog label{font-size:11px}#share-url{display:block;width:100%;padding:13px;margin:10px 0 18px;border:1px solid var(--line);background:var(--surface-soft);color:var(--ink);font-size:12px}.solid-button{background:var(--accent);color:#fff;padding:12px 22px;border-radius:4px}.noscript{position:fixed;inset:30%;background:#fff;color:#263b43;z-index:50;padding:40px}.noscript a{text-decoration:underline}.sidebar-backdrop{position:absolute;inset:0;background:#1c303a66;z-index:2}
body.dark{--bg:#243039;--surface:#2d3c45;--surface-soft:#293740;--ink:#e0e8e7;--muted:#a2b3b7;--line:#405058;--accent:#b9cdbd;--accent-soft:#40564f;--gold:#d0ae8b;--shadow:0 15px 35px #0005;color-scheme:dark}body.dark .brand img{filter:brightness(0) invert(1)}body.dark .solid-button{color:#20342d}
@media(max-width:1200px){.edition{display:none}.controls{padding:0 15px}.reading-heading{padding-left:25px;padding-right:25px}}
@media(max-width:1000px){:root{--sidebar:270px;--rail:64px}.sidebar{position:absolute;left:var(--rail);top:0;bottom:0;box-shadow:10px 0 30px #0001}.reader-header{height:66px;padding:0 18px}.brand img{width:130px}.brand>span{font-size:8px;padding-left:17px}.brand{gap:17px}.reading-heading{padding-top:18px}.rail{padding-top:14px}.rail-button{font-size:8px}.reader-caption{padding:0 23px}.header-actions{gap:7px}}
@media(max-width:600px){:root{--rail:0px}.reader-header{height:60px;padding:0 14px;gap:10px}.brand img{width:109px}.brand>span{display:none}.header-actions{gap:1px}.close-reader{display:none}.header-actions .icon-button{width:33px}.reader-body{padding-bottom:57px}.rail{position:absolute;width:100%;height:57px;bottom:0;left:0;right:0;flex-direction:row;justify-content:center;padding:0 10px;border:0;border-top:1px solid var(--line)}.rail-main{flex-direction:row;gap:6px;width:100%;justify-content:space-around}.rail-button{height:49px;gap:5px;font-size:8px;max-width:72px}.rail-button svg{width:18px;height:18px}.rail-bottom{display:none}.reading-heading{padding:17px 18px 7px}.reading-eyebrow{font-size:7px}.reading-heading h1{font-size:14px;margin-top:7px}.save-button{font-size:9px;padding:7px;gap:5px}.save-button svg{width:16px}.book-wrap{padding:15px 23px}.page-arrow{width:26px;height:40px;background:var(--surface);opacity:.9}.page-arrow svg{width:16px}.page-arrow.previous{left:3px}.page-arrow.next{right:3px}.reader-caption{height:30px;padding:0 18px;font-size:8px}.keyboard-hint{display:none}#read-text{font-size:8px}.controls{height:59px;padding:0 10px;gap:3px}.controls .icon-button{width:27px;height:36px}.controls svg{width:17px;height:17px}.page-controls,.zoom-controls,.view-controls{gap:1px}.page-controls input{width:32px;font-size:11px}.total{min-width:26px;font-size:9px}.control-divider{display:none}.view-button{padding:8px 5px}.view-button>span:last-child{display:none}#zoom-reset{width:39px;font-size:9px}#fit{display:none}.sidebar{left:0;bottom:57px;width:min(310px,calc(100vw - 38px))}.sidebar-heading{padding-top:23px}.sidebar-backdrop{bottom:57px}.resume{max-width:94vw;gap:8px;font-size:10px;bottom:134px;padding-left:12px}.toast{bottom:136px}.page-range{height:6px}.page-range::-webkit-slider-thumb{height:10px}.sidebar-footnote{font-size:9px}dialog{padding:21px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}
#language-select{font:inherit;font-size:10px;letter-spacing:.6px;border:0;background:var(--surface);color:var(--muted);padding:8px 4px;cursor:pointer}.rail-button{font-size:10px}.chapter small{font-size:8px}.reader-caption,#read-text{font-size:10px}@media(max-width:600px){.rail-button{font-size:10px}.save-button{font-size:10px}.reader-caption,#read-text{font-size:9px}}

/* Stable page dimensions; paper geometry is rendered in a separate fixed layer. */
.stage{overflow:hidden;touch-action:pan-y pinch-zoom;cursor:grab;overflow-anchor:none}
.stage.is-zoomed{overflow:auto;touch-action:pan-x pan-y pinch-zoom}
.stage.is-dragging{cursor:grabbing;user-select:none}
.book-wrap{position:relative;overflow-anchor:none}
.book{flex:none;perspective:none;transform:none;overflow:hidden}
.sheet{flex:none}

.drag-next .next,.drag-previous .previous{background:var(--accent);color:var(--surface);box-shadow:0 4px 18px #243c4020}
.layout-mode{display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;min-height:36px;padding:8px 13px;background:var(--accent-soft);border-radius:20px;font-size:11px}
.layout-mode svg{width:17px;height:17px}
.tools-toggle{display:none;position:absolute;top:0;left:50%;transform:translateX(-50%);align-items:center;justify-content:center;gap:8px;min-width:116px;height:35px;padding:0 18px;border-radius:0 0 18px 18px;background:var(--surface);box-shadow:0 3px 16px #243c4012;z-index:12;font-size:11px}
.tools-toggle svg{width:15px;height:15px}
.is-focus .tools-toggle{display:flex}
.is-focus .reader-body{padding:0;flex:1}
.is-focus .rail,.is-focus .reading-heading,.is-focus .reader-caption{display:none}
.is-focus .reading-area{width:100%;height:100%}
.is-focus .reader-header{position:absolute;top:47px;left:20px;right:20px;height:58px;padding:0 18px;border:0;border-radius:14px;box-shadow:0 5px 30px #243c4014;z-index:10;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease}
.is-focus .reader-header .brand img{width:125px}
.is-focus .reader-header .brand>span,.is-focus .edition{display:none}
.is-focus .controls{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);width:min(750px,calc(100% - 40px));height:62px;padding:0 18px;border:0;border-radius:15px;box-shadow:0 5px 30px #243c4014;z-index:10;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease}
.is-focus.tools-visible .reader-header,.is-focus.tools-visible .controls{opacity:1;visibility:visible;pointer-events:auto}
.is-focus .book-wrap{padding:12px 54px}
.is-focus .page-range{position:absolute;bottom:0;left:0;height:4px;z-index:8;opacity:.65}
.is-focus .page-arrow{width:46px;height:46px;border:0;background:var(--surface);box-shadow:0 3px 16px #243c4014}
.is-focus .page-arrow.previous{left:12px}.is-focus .page-arrow.next{right:12px}
.is-focus .resume,.is-focus .toast{bottom:92px}
/* Selection is a filled rounded tile, without an accent on one edge. */
.chapter{border:0;border-radius:11px;margin-bottom:5px;padding:14px 11px}
.chapter:hover{background:var(--surface)}
.chapter.active{box-shadow:none;background:var(--accent-soft)}
.chapter.active:after{content:'✓';margin-left:auto;color:var(--accent);font-size:13px}
.chapter .chapter-number{display:flex;align-items:center;justify-content:center;width:28px;height:28px;flex:none;border-radius:50%;background:var(--surface)}
.chapter.active .chapter-number{background:var(--accent);color:var(--surface)}
.rail,.sidebar,.reader-header,.controls,.sidebar-footnote,.search-result,.brand>span{border:0}
.sidebar{box-shadow:4px 0 18px #243c4006}
.sidebar-footnote{background:var(--surface);margin:8px 14px 14px;border-radius:10px;padding:14px}
.search-result{border-radius:10px;margin-bottom:8px;background:var(--surface)}
.rail-button{border-radius:12px}
.thumb{border:0;border-radius:10px;padding:9px}
.thumb.active{background:var(--accent-soft);box-shadow:0 3px 12px #243c4010}
.reader-header{box-shadow:0 3px 14px #243c4005}
@media(max-width:1200px){.brand>span{display:none}}
@media(max-width:600px){
 .is-focus .book-wrap{padding:12px 10px}
 .is-focus .reader-header{top:43px;left:9px;right:9px;height:52px;padding:0 9px;border-radius:12px;gap:5px}
 .is-focus .reader-header .brand img{width:85px}
 .layout-mode{font-size:10px;padding:8px;gap:5px}
 .layout-mode svg{width:15px}
 .quick-search{display:none}
 .is-focus .controls{bottom:14px;width:calc(100% - 18px);height:55px;padding:0 8px;border-radius:12px}
 .is-focus .page-arrow{width:29px;height:40px;opacity:.8}
 .is-focus .page-arrow.previous{left:3px}.is-focus .page-arrow.next{right:3px}
 .reader:not(.is-focus) .reader-header{padding:0 10px;gap:5px}
 .reader:not(.is-focus) .brand img{width:94px}
 .reader:not(.is-focus) .layout-mode{font-size:9px;padding:7px}
 .reader:not(.is-focus) .header-actions{gap:0}
 .reader:not(.is-focus) .header-actions .icon-button{width:28px}
}

.paper-turn-source{visibility:hidden}
.paper-turn-layer{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:7;pointer-events:none;isolation:isolate}
.paper-turn-host{position:relative;will-change:transform}
.paper-turn-host .stf__wrapper{width:100%;height:100%}
.paper-turn-host .stf__block{width:100%;height:100%}
.paper-face{background:white;overflow:hidden;box-shadow:0 3px 18px #263b4320}
.paper-face img{display:block;width:100%;height:100%;object-fit:fill;user-select:none;-webkit-user-drag:none}
.paper-face.paper-blank{background:transparent;box-shadow:none}

@media print{body>*{display:none!important}body:after{display:block;content:'브로슈어는 온라인 뷰어에서 열람해 주세요.';padding:32px;color:#253b46;font:16px sans-serif}}
