/* ebook.css — 한영 대역 e-book 읽기 화면 (iala-docs-ko/*-KO 공통)
   왼쪽 영문 · 오른쪽 국문의 대역서 판면을 웹으로 옮긴 스타일. ebook.js가 구조를 보강한다. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700&family=Crimson+Pro:ital,wght@0,400;0,600;1,400;1,500&display=swap');

/* ---------- 테마 토큰 ---------- */
.eb-on {
  --eb-paper: #fbf9f4;
  --eb-paper-2: #f1ede3;
  --eb-ink: #1d2230;
  --eb-ink-2: #4a5160;
  --eb-ink-3: #8a8f99;
  --eb-rule: #e2ddd0;
  --eb-accent: #24527a;
  --eb-accent-soft: rgba(36, 82, 122, .08);
  --eb-shadow: 0 1px 2px rgba(40, 36, 28, .06), 0 18px 48px -18px rgba(40, 36, 28, .28);
  --eb-fs: 17px;
  --eb-serif-en: 'Crimson Pro', 'Iowan Old Style', Georgia, serif;
  --eb-serif-ko: 'Noto Serif KR', 'RIDIBatang', 'Nanum Myeongjo', serif;
  --eb-sans: 'Pretendard Variable', Pretendard, 'Inter', system-ui, sans-serif;
}
.eb-on[data-eb-theme="sepia"] {
  --eb-paper: #f3ead8;
  --eb-paper-2: #e8dcc3;
  --eb-ink: #3a2e1f;
  --eb-ink-2: #5e4f3b;
  --eb-ink-3: #94846b;
  --eb-rule: #dccdb0;
  --eb-accent: #8a4b1f;
  --eb-accent-soft: rgba(138, 75, 31, .09);
}
.eb-on[data-eb-theme="night"] {
  --eb-paper: #15171c;
  --eb-paper-2: #1d2027;
  --eb-ink: #e9e7e1;
  --eb-ink-2: #b9b6ae;
  --eb-ink-3: #7c7a75;
  --eb-rule: #2c2f37;
  --eb-accent: #8fb4dc;
  --eb-accent-soft: rgba(143, 180, 220, .1);
  --eb-shadow: 0 0 0 1px #23262d, 0 18px 48px -18px rgba(0, 0, 0, .6);
}

/* ---------- 판면 ---------- */
.eb-on .doc-summary-content.eb-book {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--eb-paper);
  color: var(--eb-ink-2);
  border-radius: 6px;
  box-shadow: var(--eb-shadow);
  padding: 0 clamp(20px, 5vw, 72px) clamp(40px, 6vw, 80px);
  font-family: var(--eb-serif-ko);
  font-size: var(--eb-fs);
  word-break: keep-all;
  overflow-wrap: break-word;
  position: relative;
}
.eb-on .doc-summary-download { max-width: 1180px; margin-left: auto; margin-right: auto; }
.eb-on .eb-book a { color: var(--eb-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.eb-on .eb-book strong { color: var(--eb-ink); font-weight: 600; }

/* ---------- 도구 막대 ---------- */
.eb-bar {
  position: sticky; top: var(--eb-top, 0px); z-index: 30;
  margin: 0 calc(-1 * clamp(20px, 5vw, 72px)) 0;
  padding: 10px clamp(16px, 3vw, 28px);
  display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--eb-paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--eb-rule);
  border-radius: 6px 6px 0 0;
  font-family: var(--eb-sans);
  font-size: 13px;
  color: var(--eb-ink-2);
}
.eb-bar-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--eb-accent); transition: width .15s linear; }
.eb-running { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--eb-ink-3); letter-spacing: .01em; }
.eb-running b { color: var(--eb-ink); font-weight: 600; margin-right: 8px; }
.eb-ctrl { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.eb-seg { display: inline-flex; border: 1px solid var(--eb-rule); border-radius: 999px; padding: 2px; background: var(--eb-paper); }
.eb-seg button, .eb-btn {
  font: inherit; font-size: 12.5px; line-height: 1; color: var(--eb-ink-2);
  background: transparent; border: 0; border-radius: 999px; padding: 7px 11px; cursor: pointer; white-space: nowrap;
}
.eb-seg button[aria-pressed="true"] { background: var(--eb-ink); color: var(--eb-paper); }
.eb-btn { border: 1px solid var(--eb-rule); background: var(--eb-paper); }
.eb-btn:hover, .eb-seg button:hover:not([aria-pressed="true"]) { background: var(--eb-accent-soft); }
.eb-btn:active, .eb-seg button:active { transform: translateY(1px); }
.eb-swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; vertical-align: middle; border: 1px solid rgba(0,0,0,.15); }

/* ---------- 표제지 ---------- */
.eb-title-page {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--eb-rule);
  margin-bottom: 40px;
}
.eb-on .eb-book .eb-series { font-family: var(--eb-sans); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--eb-ink-3); margin: 0 0 28px; }
.eb-on .eb-book .eb-code { font-family: var(--eb-serif-en); font-size: clamp(56px, 9vw, 96px); font-weight: 400; line-height: 1; color: var(--eb-accent); letter-spacing: -.01em; margin: 0; }
.eb-orn { display: block; width: 56px; height: 1px; background: var(--eb-ink-3); margin: 28px auto; position: relative; }
.eb-orn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: var(--eb-paper); border: 1px solid var(--eb-ink-3); transform: translate(-50%, -50%) rotate(45deg); }
.eb-on .eb-book h1.eb-title { font-family: var(--eb-serif-ko); font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; line-height: 1.35; color: var(--eb-ink); margin: 0 auto 14px; max-width: 22em; letter-spacing: -.01em; }
.eb-on .eb-book .eb-title-en { font-family: var(--eb-serif-en); font-style: italic; font-size: clamp(18px, 2.2vw, 23px); color: var(--eb-ink-2); margin: 0 auto 30px; max-width: 30em; line-height: 1.4; }
.eb-on .eb-book .eb-credits { font-family: var(--eb-sans); font-size: 13.5px; color: var(--eb-ink-3); line-height: 1.9; margin: 0; }
.eb-credits b { color: var(--eb-ink); font-weight: 600; }
.eb-on .eb-book .ko-note {
  background: transparent; border: 0; border-top: 1px solid var(--eb-rule); border-bottom: 1px solid var(--eb-rule);
  border-radius: 0; color: var(--eb-ink-3); font-family: var(--eb-sans); font-size: 12.5px; text-align: center;
  max-width: 46em; margin: 0 auto 40px; padding: 14px 8px;
}
.eb-on .eb-book .ko-note a { color: var(--eb-ink-2) !important; }
.eb-on .eb-book .doc-jump { display: none; }

/* ---------- 역자 해설(요약) ---------- */
.eb-preface { max-width: 44em; margin: 0 auto 56px; }
.eb-on .eb-book .eb-preface h2,
.eb-on .eb-book h2#bilingual {
  font-family: var(--eb-serif-ko); font-size: 26px; font-weight: 700; color: var(--eb-ink); text-align: center;
  margin: 56px 0 8px; letter-spacing: -.01em;
}
.eb-on .eb-book .eb-kicker { display: block; text-align: center; font-family: var(--eb-serif-en); font-style: italic; font-size: 16px; color: var(--eb-ink-3); margin: 0 0 32px; }
.eb-on .eb-book .eb-preface ul { list-style: none; padding: 0; gap: 0; counter-reset: pf; }
.eb-on .eb-book .eb-preface li { counter-increment: pf; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--eb-rule); line-height: 1.85; }
.eb-on .eb-book .eb-preface li:last-child { border-bottom: 1px solid var(--eb-rule); }
.eb-on .eb-book .eb-preface li::before { content: counter(pf, decimal-leading-zero); position: absolute; left: 0; top: 15px; font-family: var(--eb-serif-en); font-size: 18px; color: var(--eb-accent); }
.eb-on .eb-book .eb-preface h3 { font-family: var(--eb-serif-ko); font-size: 19px; font-weight: 700; color: var(--eb-ink); margin: 36px 0 12px; }
.eb-on .eb-book .eb-preface p { line-height: 1.95; }

/* ---------- 본문 도입 ---------- */
.eb-on .eb-book h2#bilingual + p { text-align: center; font-family: var(--eb-sans); font-size: 12.5px !important; color: var(--eb-ink-3) !important; max-width: 44em; margin: 0 auto 8px; }
.eb-spread-head {
  display: grid; grid-template-columns: 40px 1fr 1fr; column-gap: 48px;
  font-family: var(--eb-sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--eb-ink-3);
  padding: 28px 0 10px; border-bottom: 1px solid var(--eb-ink-3); margin-bottom: 8px;
}
.eb-spread-head span:first-child { visibility: hidden; }

/* ---------- 장·절 제목 ---------- */
.eb-on .eb-book h3.eb-chap {
  margin: 72px 0 28px; padding: 0; text-align: left; font-weight: 400; scroll-margin-top: 124px;
  display: grid; grid-template-columns: 40px 1fr 1fr; column-gap: 48px; align-items: end;
}
.eb-chap .eb-ch-label { grid-column: 2 / 4; font-family: var(--eb-sans); font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--eb-accent); margin-bottom: 14px; display: flex; align-items: center; gap: 14px; }
.eb-chap .eb-ch-label::after { content: ""; flex: 1; height: 1px; background: var(--eb-rule); }
.eb-chap .eb-ch-num { grid-column: 1; grid-row: 2; font-family: var(--eb-serif-en); font-size: 44px; line-height: .9; color: var(--eb-accent); }
.eb-chap .eb-ch-en { grid-column: 2; grid-row: 2; font-family: var(--eb-serif-en); font-size: 29px; line-height: 1.15; color: var(--eb-ink); font-weight: 500; }
.eb-chap .eb-ch-ko { grid-column: 3; grid-row: 2; font-family: var(--eb-serif-ko); font-size: 25px; line-height: 1.3; color: var(--eb-ink); font-weight: 700; }
.eb-on .eb-book h3.eb-sec, .eb-on .eb-book h4.eb-sec {
  margin: 40px 0 14px; scroll-margin-top: 124px; font-weight: 400;
  display: grid; grid-template-columns: 40px 1fr 1fr; column-gap: 48px; align-items: baseline;
}
.eb-sec .eb-ch-num { font-family: var(--eb-serif-en); font-size: 16px; color: var(--eb-accent); }
.eb-sec .eb-ch-en { font-family: var(--eb-serif-en); font-size: 20px; font-weight: 600; color: var(--eb-ink); line-height: 1.3; }
.eb-sec .eb-ch-ko { font-family: var(--eb-serif-ko); font-size: 17.5px; font-weight: 700; color: var(--eb-ink); line-height: 1.45; }
.eb-sec .eb-ch-en:only-of-type { grid-column: 2 / 4; }

/* ---------- 대역 문단 ---------- */
.eb-on .eb-book .bi-row {
  display: grid; grid-template-columns: 40px 1fr 1fr; column-gap: 48px;
  padding: 10px 0; border-bottom: 0; position: relative;
  counter-increment: ebp;
}
.eb-on .eb-book .bi-row::before {
  content: counter(ebp); grid-column: 1; grid-row: 1;
  font-family: var(--eb-sans); font-size: 10.5px; color: var(--eb-ink-3); text-align: right; padding-top: .55em;
  font-variant-numeric: tabular-nums; opacity: .8;
}
.eb-on .eb-book .bi-row::after { content: ""; position: absolute; top: 12px; bottom: 12px; left: calc(40px + 48px + (100% - 40px - 96px) / 2 + 24px); width: 1px; background: var(--eb-rule); }
.eb-on .eb-book .bi-row:hover { background: linear-gradient(90deg, transparent, var(--eb-accent-soft) 8%, var(--eb-accent-soft) 92%, transparent); }
.eb-on .eb-book .bi-en {
  grid-column: 2; font-family: var(--eb-serif-en); font-size: calc(var(--eb-fs) * 1.06); line-height: 1.62;
  color: var(--eb-ink-2); hyphens: auto; -webkit-hyphens: auto; text-align: justify; word-break: normal;
}
.eb-on .eb-book .bi-ko {
  grid-column: 3; font-family: var(--eb-serif-ko); font-size: var(--eb-fs); line-height: 1.9;
  color: var(--eb-ink); text-align: left;
}
.eb-on .eb-book .bi-en p, .eb-on .eb-book .bi-ko p { margin: 0 0 .7em; }
.eb-on .eb-book .bi-en p:last-child, .eb-on .eb-book .bi-ko p:last-child { margin-bottom: 0; }
.eb-on .eb-book .bi-en ul, .eb-on .eb-book .bi-ko ul,
.eb-on .eb-book .bi-en ol, .eb-on .eb-book .bi-ko ol { padding-left: 1.3em; margin: .4em 0 .7em; gap: .35em; }
.eb-on .eb-book .bi-en li, .eb-on .eb-book .bi-ko li { line-height: inherit; }
.eb-on .eb-book .bi-en li::marker, .eb-on .eb-book .bi-ko li::marker { color: var(--eb-ink-3); }
.eb-on .eb-book .bi-en em { font-style: italic; }
.eb-on .eb-book .bi-head { font-weight: 600; color: var(--eb-ink); }
.eb-on .eb-book .bi-fn, .eb-on .eb-book .bi-row.bi-fn .bi-en, .eb-on .eb-book .bi-row.bi-fn .bi-ko { font-size: calc(var(--eb-fs) * .8); line-height: 1.6; color: var(--eb-ink-3); }
.eb-on .eb-book .bi-row:has(.bi-fn) { border-top: 1px dotted var(--eb-rule); margin-top: 6px; }
.eb-on .eb-book sup { font-family: var(--eb-sans); font-size: .62em; color: var(--eb-accent); }
/* 장 첫 문단: 드롭캡 */
.eb-on .eb-book .bi-row.eb-first .bi-en > p:first-child::first-letter {
  float: left; font-family: var(--eb-serif-en); font-size: 3.4em; line-height: .82; padding: .06em .08em 0 0; color: var(--eb-accent);
}
.eb-on .eb-book .bi-row.eb-first .bi-ko > p:first-child::first-letter { font-weight: 700; color: var(--eb-accent); }

/* ---------- 표 (북탭스 스타일) ---------- */
.eb-on .eb-book .ko-table-wrap { margin: 20px 0 28px 88px; }
.eb-on .eb-book .ko-table { font-family: var(--eb-sans); font-size: calc(var(--eb-fs) * .82); color: var(--eb-ink-2); border-top: 1.5px solid var(--eb-ink); border-bottom: 1.5px solid var(--eb-ink); }
.eb-on .eb-book .ko-table th, .eb-on .eb-book .ko-table td { border: 0; border-bottom: 1px solid var(--eb-rule); padding: 10px 12px; line-height: 1.6; }
.eb-on .eb-book .ko-table th { background: transparent; color: var(--eb-ink); font-weight: 600; border-bottom: 1px solid var(--eb-ink); }
.eb-on .eb-book .ko-table tr:last-child td { border-bottom: 0; }
.eb-on .eb-book .ko-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--eb-paper-2) 45%, transparent); }

/* ---------- 보기 방식 ---------- */
.eb-on[data-eb-view="en"] .eb-book .bi-ko, .eb-on[data-eb-view="en"] .eb-book .eb-ch-ko { display: none; }
.eb-on[data-eb-view="ko"] .eb-book .bi-en, .eb-on[data-eb-view="ko"] .eb-book .eb-ch-en { display: none; }
.eb-on[data-eb-view="en"] .eb-book .bi-row, .eb-on[data-eb-view="ko"] .eb-book .bi-row,
.eb-on[data-eb-view="en"] .eb-book h3.eb-chap, .eb-on[data-eb-view="ko"] .eb-book h3.eb-chap,
.eb-on[data-eb-view="en"] .eb-book .eb-sec, .eb-on[data-eb-view="ko"] .eb-book .eb-sec,
.eb-on[data-eb-view="en"] .eb-spread-head, .eb-on[data-eb-view="ko"] .eb-spread-head { grid-template-columns: 40px minmax(0, 40em); justify-content: center; }
.eb-on[data-eb-view="en"] .eb-book .bi-en, .eb-on[data-eb-view="ko"] .eb-book .bi-ko,
.eb-on[data-eb-view="en"] .eb-ch-en, .eb-on[data-eb-view="ko"] .eb-ch-ko { grid-column: 2 !important; }
.eb-on[data-eb-view="en"] .eb-chap .eb-ch-label, .eb-on[data-eb-view="ko"] .eb-chap .eb-ch-label { grid-column: 2; }
.eb-on[data-eb-view="en"] .eb-book .bi-row::after, .eb-on[data-eb-view="ko"] .eb-book .bi-row::after,
.eb-on[data-eb-view="en"] .eb-spread-head span:nth-child(3), .eb-on[data-eb-view="ko"] .eb-spread-head span:nth-child(2) { display: none; }
.eb-on[data-eb-view="en"] .eb-book .ko-table-wrap, .eb-on[data-eb-view="ko"] .eb-book .ko-table-wrap { max-width: 44em; margin-left: auto; margin-right: auto; }
/* 교차: 영문 한 문단, 바로 아래 국문 (포켓판 대역서 방식) */
.eb-on[data-eb-view="stack"] .eb-book .bi-row,
.eb-on[data-eb-view="stack"] .eb-book h3.eb-chap,
.eb-on[data-eb-view="stack"] .eb-book .eb-sec { grid-template-columns: 40px minmax(0, 40em); justify-content: center; }
.eb-on[data-eb-view="stack"] .eb-book .bi-en, .eb-on[data-eb-view="stack"] .eb-book .bi-ko,
.eb-on[data-eb-view="stack"] .eb-ch-en, .eb-on[data-eb-view="stack"] .eb-ch-ko { grid-column: 2 !important; grid-row: auto; }
.eb-on[data-eb-view="stack"] .eb-chap .eb-ch-label { grid-column: 2; }
.eb-on[data-eb-view="stack"] .eb-chap .eb-ch-ko { margin-top: 6px; }
.eb-on[data-eb-view="stack"] .eb-book .bi-ko { margin-top: .6em; padding-left: 14px; border-left: 2px solid var(--eb-accent-soft); border-left-color: color-mix(in srgb, var(--eb-accent) 35%, transparent); }
.eb-on[data-eb-view="stack"] .eb-book .bi-row { padding: 14px 0; }
.eb-on[data-eb-view="stack"] .eb-book .bi-row::after, .eb-on[data-eb-view="stack"] .eb-spread-head { display: none; }
.eb-on[data-eb-view="stack"] .eb-book .ko-table-wrap { max-width: 44em; margin-left: auto; margin-right: auto; }

/* ---------- 목차 서랍 ---------- */
.eb-toc-scrim { position: fixed; inset: 0; background: rgba(10, 12, 16, .35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; }
.eb-toc {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(380px, 88vw); z-index: 61;
  background: var(--eb-paper); color: var(--eb-ink-2); box-shadow: 0 0 40px rgba(0,0,0,.25);
  transform: translateX(-102%); transition: transform .28s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column; font-family: var(--eb-sans);
}
.eb-toc-open .eb-toc { transform: none; }
.eb-toc-open .eb-toc-scrim { opacity: 1; pointer-events: auto; }
.eb-toc-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--eb-rule); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eb-toc-head div { font-family: var(--eb-serif-ko); font-size: 17px; font-weight: 700; color: var(--eb-ink); }
.eb-toc-head small { display: block; font-family: var(--eb-serif-en); font-style: italic; font-weight: 400; font-size: 14px; color: var(--eb-ink-3); margin-top: 2px; }
.eb-toc ol { list-style: none; margin: 0; padding: 10px 0 40px; overflow-y: auto; flex: 1; }
.eb-toc li a { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 9px 24px; color: var(--eb-ink-2); text-decoration: none; font-size: 14px; line-height: 1.45; border-left: 2px solid transparent; }
.eb-toc li a:hover { background: var(--eb-accent-soft); }
.eb-toc li a[aria-current="true"] { border-left-color: var(--eb-accent); color: var(--eb-ink); font-weight: 600; background: var(--eb-accent-soft); }
.eb-toc li a span:first-child { font-family: var(--eb-serif-en); color: var(--eb-accent); }
.eb-toc li.eb-toc-sub a { padding-left: 40px; font-size: 13px; color: var(--eb-ink-3); }
.eb-toc li.eb-toc-part a { font-weight: 600; color: var(--eb-ink); }

/* ---------- 콜로폰 ---------- */
.eb-on .eb-book .eb-colophon { text-align: center; margin: 80px auto 0; max-width: 34em; font-family: var(--eb-sans); font-size: 12.5px; line-height: 1.9; color: var(--eb-ink-3); }
.eb-colophon .eb-orn { margin-bottom: 20px; }

/* ---------- 반응형 ---------- */
@media (max-width: 980px) {
  .eb-on .eb-book .bi-row, .eb-on .eb-book h3.eb-chap, .eb-on .eb-book .eb-sec { column-gap: 28px; }
  .eb-on .eb-book .bi-row::after { left: calc(40px + 28px + (100% - 40px - 56px) / 2 + 14px); }
  .eb-spread-head { column-gap: 28px; }
}
@media (max-width: 760px) {
  .eb-on .doc-summary-content.eb-book { border-radius: 0; margin: 0 -16px; padding: 0 18px 48px; --eb-fs: 16px; }
  .eb-bar { margin: 0 -18px; border-radius: 0; flex-wrap: wrap; gap: 8px; }
  .eb-running { flex-basis: 100%; order: -1; }
  .eb-ctrl { flex-wrap: wrap; }
  .eb-seg button, .eb-btn { padding: 7px 9px; }
  /* 폰에서는 대역을 교차 배열로 */
  .eb-on .eb-book .bi-row, .eb-on .eb-book h3.eb-chap, .eb-on .eb-book .eb-sec { grid-template-columns: 26px minmax(0, 1fr) !important; column-gap: 12px; }
  .eb-on .eb-book .bi-en, .eb-on .eb-book .bi-ko, .eb-on .eb-book .eb-ch-en, .eb-on .eb-book .eb-ch-ko { grid-column: 2 !important; grid-row: auto; }
  .eb-on .eb-book .eb-chap .eb-ch-label { grid-column: 1 / 3; }
  .eb-on .eb-book .eb-chap .eb-ch-num { grid-row: 2; font-size: 30px; }
  .eb-on .eb-book .eb-chap .eb-ch-en { font-size: 23px; }
  .eb-on .eb-book .eb-chap .eb-ch-ko { font-size: 20px; margin-top: 4px; }
  .eb-on:not([data-eb-view="en"]):not([data-eb-view="ko"]) .eb-book .bi-ko { margin-top: .6em; padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--eb-accent) 35%, transparent); }
  .eb-on .eb-book .bi-row::after, .eb-spread-head { display: none; }
  .eb-on .eb-book .bi-en, .eb-on .eb-book .bi-ko { text-align: left; }
  .eb-on .eb-book .ko-table-wrap { margin-left: 0; }
  .eb-view-stack { display: none !important; }
}

/* ---------- 인쇄 ---------- */
@media print {
  .top-nav, .footer, .eb-bar, .eb-toc, .eb-toc-scrim, .doc-summary-download, .breadcrumb { display: none !important; }
  .eb-on .doc-summary-content.eb-book { box-shadow: none; background: #fff; max-width: none; padding: 0; }
  .eb-on .eb-book h3.eb-chap { break-before: page; }
  .eb-on .eb-book .bi-row { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { .eb-toc, .eb-toc-scrim, .eb-bar-progress { transition: none; } }
