:host { all: initial; display: block; visibility: inherit; width: 1200px; height: 1800px; overflow: hidden; background: var(--paper, #f5f5f5); color: var(--ink, #191919); font-family: "Paperlogy", "Apple SD Gothic Neo", sans-serif; word-break: keep-all; -webkit-text-size-adjust: none; }
p, h1, h2, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
.page { position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 1080px; height: 1920px; padding: 52px 64px 110px; overflow: hidden; }
.page > * { flex: none; }
.page.cover { padding: 0; }
.cover img { display: block; width: 1080px; height: 1920px; }
.-epub-media-overlay-active { background-color: rgba(192, 85, 58, .2); border-radius: 8px; }

/* 쪽 머리: 왼쪽 = 지금 자리(누르면 한 단계 위로), 오른쪽 = 몇 번째. 아래 줄은 포켓북처럼 선 없이 */
.head { display: flex; justify-content: space-between; align-items: center; height: 52px; margin-bottom: 26px; font-size: 30px; }
.head a, .head .crumb { color: #c0553a; font-weight: 700; }
.head a { padding: 24px 0; }
.head em { color: var(--soft, #606060); font-style: normal; }
.run { position: absolute; left: 64px; right: 64px; bottom: 26px; display: flex; justify-content: space-between; font-size: 24px; color: var(--soft, #606060); }
.title { margin-bottom: 14px; font-size: 64px; font-weight: 700; line-height: 1.26; letter-spacing: -1.5px; }

/* 구간 탭(패턴 90 달력) */
.tabs { display: flex; gap: 14px; margin: 0 0 28px; }
.tabs a { display: flex; flex: 1; align-items: center; justify-content: center; height: 96px; border-radius: 28px; background: #fffcf5; font-size: 30px; font-weight: 700; }
.tabs a[aria-current="page"] { background: #c0553a; color: #fff; }

/* 상황 칸: 두 줄 */
.group { margin: 12px 0; font-size: 34px; line-height: 50px; }
.group a { display: flex; align-items: baseline; gap: 16px; color: #c0553a; }
.group b { font-family: Georgia, serif; }
.group small { color: var(--soft, #606060); font: italic 26px Georgia, serif; }
.cells { display: flex; flex-wrap: wrap; justify-content: space-between; }
.cells li { width: 466px; margin-bottom: 10px; }
.cells a { display: flex; align-items: center; gap: 12px; box-sizing: border-box; height: 92px; padding: 0 28px; border-radius: 28px; background: #fffcf5; box-shadow: 0 8px 22px rgba(92, 66, 36, .08); font-size: 33px; }
.cells span { flex: 1; min-width: 0; line-height: 1.25; }
.cells em { color: #c0553a; font: 700 28px Georgia, serif; }

/* 그림: 남는 높이를 모두 가진다 → 빈 데가 없고, 글이 길면 그림이 줄어든다 */
.page > .art { position: relative; flex: 1 1 0; min-height: 0; margin: 20px -64px; }
.art img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }

/* 큰 분류 첫 장 */
.title.big { margin: 0; font-size: 112px; line-height: 1.2; }
.part-en { color: var(--soft, #606060); font: italic 44px/1.4 Georgia, serif; }
.part-lede { margin-top: 18px; font-size: 36px; line-height: 1.55; }
.next { display: flex; justify-content: flex-end; margin-top: 18px; }
.next a { display: flex; align-items: center; height: 100px; padding: 0 17px 0 46px; border-radius: 60px; background: var(--ink, #191919); color: #fff; font-size: 36px; font-weight: 700; }
.next a::after { content: "→"; width: 68px; height: 68px; margin-left: 28px; border-radius: 50%; background: #c0553a; line-height: 64px; text-align: center; }

/* 문장 목록: 흰 카드 8줄이 남는 높이를 나눠 가진다(가장 긴 상황이 약 1,400px / 1,450px) */
.page > .glance { display: flex; flex: 1 1 0; flex-direction: column; gap: 14px; min-height: 0; margin-top: 8px; }
.glance li { display: flex; flex: 1 0 auto; }
.glance a { display: flex; flex: 1; align-items: center; padding: 15px 24px; border-radius: 30px; background: #fffcf5; box-shadow: 0 8px 22px rgba(92, 66, 36, .08); }
.glance b { flex: none; width: 56px; color: #c0553a; font: 700 30px Georgia, serif; }
.glance .sen { display: block; font: 44px/1.25 Georgia, "Times New Roman", serif; }
.glance .tr { display: block; margin-top: 2px; color: var(--soft, #606060); font-size: 32px; line-height: 1.35; }

/* 문장 카드: 글은 위, 그림은 아래, 둥근 듣기는 아래 가운데(포켓북) */
.page.card { padding-bottom: 80px; text-align: center; }
.card .head { text-align: left; }
.progress { display: flex; align-items: center; gap: 20px; }
.progress i { width: 180px; height: 10px; overflow: hidden; border-radius: 10px; background: #dccdb2; }
.progress b { display: block; height: 100%; background: #c0553a; }
.hw { margin-top: 24px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.1; letter-spacing: -1.5px; }
.hw-ko { margin-top: 6px; color: var(--soft, #606060); font-size: 44px; line-height: 1.35; }
.sent { margin-top: 38px; font-family: Georgia, "Times New Roman", serif; line-height: 1.3; text-wrap: balance; }
.sent .key { color: #c0553a; }
.sent-ko { margin-top: 18px; color: #3d372f; line-height: 1.4; text-wrap: balance; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.chips li { padding: 8px 24px 10px; border-radius: 999px; background: var(--ink, #191919); color: #fff; font-size: 28px; line-height: 1.3; }
.chips span { margin-right: 10px; font: 32px Georgia, serif; }
.page > .sheet { margin: auto 0; padding: 80px 48px 88px; border-radius: 46px; background: #fffcf5; box-shadow: 0 14px 36px rgba(92, 66, 36, .11); }
.sheet .hw { margin-top: 0; }
.sheet .sent { margin-top: 56px; padding-top: 56px; border-top: 3px solid #e2d4bb; }
.card .listen { position: absolute; left: 50%; bottom: 115px; z-index: 2; width: 144px; height: 144px; margin-left: -72px; border-radius: 50%; background: #c0553a; color: #fff; font-size: 0; }
.card .listen::before { content: ""; position: absolute; left: 58px; top: 48px; border-top: 24px solid transparent; border-bottom: 24px solid transparent; border-left: 36px solid #fff; }


:host([data-carousel-page]) { background: transparent; }
:host([data-carousel-page]) .cover { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
:host([data-carousel-page]) .cover img { width: 84%; height: 84%; object-fit: contain; }

:host, :host([data-carousel-page]) { width: 1080px; height: 1920px; }
.page { background: #eee4cf url("/sample/pocket-paper.png") center / cover; }
.page.card.full > .hw { margin-top: 140px; } /* 여행 완전판 웹 미리보기: 위 글 영역을 아래로(12-03) */

.listen { display: none; }
