:host { all: initial; display: block; visibility: inherit; width: 1200px; height: 1800px; overflow: hidden; background: transparent; color: #23201c; font: 48px/1.65 -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; word-break: keep-all; -webkit-text-size-adjust: none; }
/* 원어민 영어표현 전자책 디자인 — book["design"] = "native-expressions" 인 책의 reader.css 로 EPUB 에 그대로 들어간다(learning_reader.py Reader.designed).
   template.html 이 이 파일을 불러 모든 쪽 모양을 한 장에 보여 준다 — 모양을 바꿀 때는 이 파일만 고치고 template.html 로 확인한 뒤 books/build.py 를 다시 돌린다.

   쪽 구성: 표현 하나 = 한 쪽
     main.card  표현 카드 — 분류 · 번호 / 표현(세리프, 크게) · 뜻 · [▶ 표현 듣기] / 예문(표현에 형광 밑줄) · 해석 · [▶ 예문 듣기] / 직역 · 쓰임 / 목차 · 다음 표현
     main.toc   앞 목차(책 첫 쪽) — 분류만 번호 · 이름 · 표현 수로. 누르면 그 분류 첫 표현 카드('이 책 읽는 법' 쪽은 없다)
   듣기 단추(.pbtn)는 옆 player.js 가 돌 때만 보인다(<html class="js">) — 못 돌리는 리더는 기본 플레이어(<audio controls>)가 그대로 남는다.

   리더 앱(Apple Books · 구글 플레이 북 · 리디 · 교보) 호환:
     - 배경색 · 본문 글자색은 정하지 않는다 → 리더 테마(흰 · 세피아 · 야간)를 그대로 따른다.
     - 색은 강조색 #c0553a 하나(흰 바탕 4.6:1 · 검은 바탕 4.6:1)와 반투명 색만 쓴다 — 야간 모드에서도 읽힌다. 흐린 글은 opacity 로.
     - 단위는 em 만(vw 없음), 변수 · gap · :has · 컨테이너 쿼리 없음(오래된 리더는 무시하고 세로로 쌓인다). */

body { margin: 0; padding: 0; font-family: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; line-height: 1.65;
       word-break: keep-all; overflow-wrap: break-word; -webkit-text-size-adjust: 100%; }
main { max-width: 32em; margin: 0 auto; padding: 1em 1.1em 1.6em; }
p { margin: 0; }
a { color: #c0553a; }
a:focus-visible { outline: 3px solid #c0553a; outline-offset: 2px; }

/* ── 쪽 머리: 분류 · 시리즈 번호 ── */
.head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .6em; border-bottom: 1px solid rgba(128, 120, 110, .35);
        font-size: .82em; font-weight: 700; letter-spacing: .03em; }
.cat { color: #c0553a; margin-right: 1em; }
.no { opacity: .62; font-variant-numeric: tabular-nums; }

/* ── 작은 이름표(예문 · 직역 · 쓰임 · 첫 글자) ── */
.label, .k { color: #c0553a; font-size: .78em; font-weight: 800; letter-spacing: .08em; }

/* ── 표현 카드 ── */
.card h1 { margin: 1.05em 0 .25em; font: 700 2.1em/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.01em; word-break: normal; }
.mean { font-size: 1.15em; font-weight: 700; line-height: 1.5; }
.play { margin-top: .9em; break-inside: avoid; page-break-inside: avoid; }
audio { display: block; width: 100%; max-width: 22em; height: 2.4em; }
/* 듣기 단추: 테두리 알약 + 세모(재생) → 누르면 채운 알약 + 두 줄(멈춤). 아이콘은 글자(이모지) 대신 테두리로 그린다 */
.pbtn { display: none; padding: .6em 1.25em .6em 1em; border: 2px solid #c0553a; border-radius: 2em; background: transparent; color: #c0553a;
        font: inherit; font-size: .92em; font-weight: 700; line-height: 1.2; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.js .pbtn { display: inline-block; }
.js .play audio { display: none; }
.pbtn::before { content: ""; display: inline-block; vertical-align: -.05em; width: 0; height: 0; margin-right: .55em;
                border-left: .62em solid currentColor; border-top: .38em solid transparent; border-bottom: .38em solid transparent; }
.pbtn.on { background: #c0553a; color: #fff; }
.pbtn.on::before { width: .2em; height: .76em; border: 0; border-left: .22em solid currentColor; border-right: .22em solid currentColor; }
.pbtn:focus-visible { outline: 3px solid #c0553a; outline-offset: 2px; }

.ex { margin-top: 1.7em; padding-top: 1.2em; border-top: 1px solid rgba(128, 120, 110, .35); }
.ex .en { margin-top: .45em; font: 1.15em/1.55 Georgia, "Times New Roman", serif; word-break: normal; }
.hit { font-weight: 700; padding: 0 .06em; background: linear-gradient(transparent 60%, rgba(192, 85, 58, .3) 60%);
       -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ex .ko { margin-top: .4em; opacity: .75; }

.more { margin-top: 1.6em; padding: .9em 1.1em; border-left: 3px solid #c0553a; border-radius: 0 .6em .6em 0; background: rgba(192, 85, 58, .07);
        break-inside: avoid; page-break-inside: avoid; }
.row { display: flex; align-items: baseline; }
.row + .row { margin-top: .55em; }
.row .k { flex: none; width: 3.4em; }
.row span + span { flex: 1 1 auto; min-width: 0; font-size: .95em; line-height: 1.6; }

.pager { display: flex; justify-content: space-between; margin-top: 2em; border-top: 1px solid rgba(128, 120, 110, .35); font-size: .88em; font-weight: 700; }
.pager a { display: block; padding: .85em 0; text-decoration: none; }

/* ── 앞 목차: 책의 첫 쪽. 분류만 간추려(번호 · 이름 · 표현 수) — 표현 목록(ol[hidden])은 리더 목차 메뉴용 ── */
.toc .label { display: block; margin-top: 2.6em; }
.toc h1 { margin: .3em 0 .25em; font-size: 1.7em; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.sub { font-size: .9em; opacity: .65; }
nav h2 { margin: 2.4em 0 .3em; color: #c0553a; font-size: .78em; letter-spacing: .08em; }
nav ol { list-style: none; margin: 0; padding: 0; }
nav > ol { counter-reset: g; border-bottom: 1px solid rgba(128, 120, 110, .35); }
nav ol[hidden] { display: none; }
nav .group { display: flex; align-items: baseline; padding: .9em 0; border-top: 1px solid rgba(128, 120, 110, .35); color: inherit;
             font-size: 1.12em; font-weight: 700; text-decoration: none; counter-increment: g; }
nav .group::before { content: counter(g, decimal-leading-zero); flex: none; width: 2.4em; color: #c0553a; font: 700 .82em Georgia, "Times New Roman", serif; }
nav .group::after { content: attr(data-n) "개"; margin-left: auto; padding-left: 1em; font-size: .78em; font-weight: 600; opacity: .6; }
.fine { margin-top: 2.4em; font-size: .78em; line-height: 1.6; opacity: .6; }

main { max-width: none; padding: 1.5em 1.6em .8em; } /* 바탕은 카드 종이(hero.css .vh-page), 아래 듣기 단추 자리는 카드가 따로 둔다 */
.play, .pager { display: none; } /* 소리는 쪽 밖 ▶ 듣기(#mo), 다음 표현은 줄 넘김이 맡는다 */
.-epub-media-overlay-active { color: #c0553a; }
