/* 더나은남자 무료 전자책 랜딩 · 뷰어 — 모바일 우선. 블랙&화이트 + 중립 회색만(사용자 지시 2026-11-15). 토큰은 :root 한 곳. */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --paper-warm: #ffffff;   /* 뷰어 바탕 */
  --soft: #f3f3f3;
  --line: #e3e3e3;
  --line-soft: #ececec;
  --muted: #5f5f5f;        /* 흰 바탕 대비 6.6:1 */
  --accent: #111111;
  --ink-deep: #000000;
  --tint: #ededed;
  --on-ink-muted: #bdbdbd;
  --cta: #111111;          /* 흰 글자 대비 4.7:1 */
  --cta-hover: #333333;
  --cta-tint: #ededed;
  --yl: #e6e6e6;           /* 원문 노란 형광 그대로 */
  --f-sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --wrap: 1120px;
  --read: 680px;
  --gutter: 20px;
  --radius: 14px;
  --fs-body: 17px;         /* 뷰어 본문 기본, Aa 로 15/17/19 */
}
@media (max-width: 400px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--f-sans); word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; letter-spacing: -0.01em; }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); color: #fff; }
.btn-ink { background: var(--accent); color: #fff; }
.btn-ink:hover { background: var(--ink-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-lg { width: 100%; min-height: 56px; font-size: 18px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.cta-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.cta-inline { margin: 28px 0 8px; }

/* 상단 바 */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .row { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.pill { font-size: 12px; font-weight: 500; color: var(--accent); background: var(--tint); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.topbar-cta { margin-left: auto; display: none; }

/* 히어로 */
.hero { background: var(--accent); color: #fff; padding: 32px 0 36px; }
.hero-grid { display: grid; gap: 24px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--on-ink-muted); letter-spacing: .02em; }
.hero h1 { margin: 0; font-size: clamp(34px, 9.5vw, 48px); line-height: 1.1; font-weight: 900; letter-spacing: -0.03em; }
.hero h1 .ed { display: block; font-size: .42em; font-weight: 500; color: var(--on-ink-muted); letter-spacing: 0; margin-top: 6px; }
.hero-sub { margin: 16px 0 0; font-size: 16px; line-height: 1.55; color: #f2f2f2; }
.hero-cta { margin-top: 22px; }
.hero .cta-note { color: var(--on-ink-muted); }
.hero .btn-primary { background: #ffffff; color: #111111; }
.hero .btn-primary:hover { background: #e6e6e6; color: #111111; }
.topbar-cta { background: #111111; color: #fff; }
.hero-cover { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 36px rgba(0,0,0,.35); background: #e6e6e6; }
.hero-cover img { width: 100%; }

/* 소개(원문) */
.intro { padding: 32px 0 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.article { max-width: var(--read); margin: 0 auto; font-size: 16px; line-height: 1.8; }
.article .txt { margin: 0 0 22px; }
.article p { margin: 0 0 4px; }
.article p.c { text-align: center; }
.article p.j { text-align: justify; }
.article p.gap { height: 14px; margin: 0; }
.article .fs24, .preview .fs24 { font-size: 1.12em; }
.article .fs28, .preview .fs28 { font-size: 1.28em; }
.article .fs19, .preview .fs19 { font-size: 1.02em; }
.article .fs11, .preview .fs11 { font-size: .8em; }
mark.ink { background: var(--ink); color: #fff; padding: 1px 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
mark.yl { background: var(--yl); color: var(--ink); padding: 0 4px; font-weight: 700; } /* 원문의 노란 형광 → 회색 바탕(흑백 통일) */
.article .img { margin: 18px 0 22px; }
.article .img img { width: 100%; border-radius: 8px; }
.article figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.quote { margin: 26px 0; padding: 18px 20px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 10px 10px 0; font-weight: 500; }
.quote p { margin: 0 0 4px; }

/* 미리보기 */
.preview { position: relative; max-width: var(--read); margin: 28px auto 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.preview-head { text-align: center; margin-bottom: 18px; }
.preview-head .kicker { margin: 0 0 8px; font-size: 22px; font-weight: 700; line-height: 1.9; }
.preview-head .kicker mark { margin: 0 2px; }
.preview-head p.c { text-align: center; margin: 0; }
.serif { font-family: var(--f-serif); font-size: 17px; line-height: 1.85; }
.preview-body { position: relative; max-height: 420px; overflow: hidden; }
.preview-body p { margin: 0 0 6px; }
.preview-body p.gap { height: 16px; margin: 0; }
.preview-fade { position: relative; height: 110px; margin-top: -110px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 85%); pointer-events: none; }

/* 강의 보조 CTA */
.course { padding: 24px 0 8px; }
.course-card { max-width: var(--read); margin: 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 10px; background: var(--soft); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); }
.course-k { font-size: 12px; color: var(--muted); }
.course-card a.btn-course { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 12px 16px; background: var(--cta); color: #fff; border-radius: 12px; font-size: 16px; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none; }
.course-card a.btn-course:hover { background: var(--cta-hover); }

/* 푸터 */
.footer { margin-top: 36px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.footer .brand { font-size: 13px; margin-bottom: 8px; }
.footer .brand img { width: 26px; height: 26px; }
.footer p { margin: 0 0 6px; }
.foot-links a { color: var(--muted); }

/* ================= 뷰어 ================= */
body.reader { background: var(--paper-warm); color: #111111; }
.rtop { position: sticky; top: 0; z-index: 20; background: var(--paper-warm); border-bottom: 1px solid #e3e3e3; }
.rtop .row { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding-left: max(4px, env(safe-area-inset-left)); padding-right: max(4px, env(safe-area-inset-right)); max-width: none; }
.rback { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 10px; color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 500; }
.rtitle { font-size: 13px; font-weight: 700; text-align: center; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; }
.rtitle small { font-weight: 500; color: var(--muted); }
.ricons { display: flex; }
.ibtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: #111111; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; border-radius: 10px; }
.ibtn:hover { background: var(--line-soft); }
.rprog { height: 3px; background: #e3e3e3; }
.rprog > div { height: 3px; width: 0; background: var(--cta); transition: width .2s; }

.rmain { width: 100%; max-width: var(--read); margin: 0 auto; padding: 28px var(--gutter) 40px; }
.chap-label { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--cta); letter-spacing: .06em; }
.chap-title { margin: 0 0 22px; font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -0.02em; }
.rbody { font-family: var(--f-serif); font-size: var(--fs-body); line-height: 1.85; }
.rbody p { margin: 0 0 8px; }
.rbody p.gap { height: 16px; margin: 0; }
.rbody p.c { text-align: center; }
.rbody mark.ink { background: var(--ink); color: #fff; padding: 1px 6px; }
.rbody mark.yl { background: var(--yl); padding: 0 3px; }
.rend { margin-top: 36px; padding-top: 22px; border-top: 1px solid #e3e3e3; display: flex; flex-direction: column; gap: 14px; }
.pending { padding: 14px 16px; background: #f3f3f3; border-radius: 10px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.rend .course-card { background: #f3f3f3; }

.rnav { position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 8px max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: var(--paper-warm); border-top: 1px solid #e3e3e3; }
.rnav .pos { font-size: 12.5px; color: var(--muted); }
.navbtn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.navbtn[disabled] { background: transparent; color: #a3a3a3; cursor: default; }
.navbtn.prev { background: transparent; color: var(--accent); }
.navbtn.prev[disabled] { color: #a3a3a3; }

/* 목차 시트 */
.sheet { border: 0; padding: 0; width: 100%; max-width: 100%; margin: 0; background: transparent; position: fixed; inset: auto 0 0 0; }
.sheet::backdrop { background: rgba(20,20,19,.45); }
.sheet-in { background: #fff; border-radius: 20px 20px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 80vh; overflow: auto; width: 100%; max-width: var(--read); margin: 0 auto; }
.handle { width: 40px; height: 4px; background: #cfcfcf; border-radius: 2px; margin: 0 auto 10px; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; }
.sheet-h h2 { margin: 0; font-size: 18px; }
.continue { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 12px; margin: 10px 0 14px; border: 0; width: 100%; font: inherit; text-align: left; cursor: pointer; }
.continue b { display: block; font-size: 15px; }
.continue small { color: var(--on-ink-muted); font-size: 12px; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc a, .toc .pend { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px; color: #111111; text-decoration: none; border-top: 1px solid var(--line-soft); }
.toc li:first-child a { border-top: 0; }
.toc a.on { background: var(--cta-tint); border-radius: 10px; }
.toc .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toc a.on .n { background: var(--cta); }
.toc .t { flex: 1; font-size: 14.5px; }
.toc .st { font-size: 11px; font-weight: 700; color: var(--cta); }
.toc .pend { color: var(--muted); font-size: 13px; }
.sheet-foot { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line-soft); margin-top: 8px; }
.sheet-foot a, .sheet-foot button { font: inherit; font-size: 13.5px; font-weight: 500; color: var(--accent); background: none; border: 0; min-height: 44px; cursor: pointer; padding: 0; text-decoration: none; }
.sheet-foot .muted { color: var(--muted); }

/* 글자 크기 메뉴 */
.fsmenu { position: absolute; right: 8px; top: 54px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(20,20,19,.14); padding: 6px; display: none; gap: 4px; z-index: 30; }
.fsmenu[data-open="1"] { display: flex; }
.fsmenu button { min-width: 44px; height: 44px; border: 0; background: transparent; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.fsmenu button[aria-pressed="true"] { background: var(--cta-tint); color: var(--cta); }

/* 키보드 힌트(데스크톱) */
.kbd-hint { display: none; position: fixed; right: 16px; bottom: 80px; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; line-height: 1.6; }

/* PDF 모드: 페이지 이미지 세로 스크롤, 가로폭 맞춤, 확대 */
body.reader.pdf { background: #eaeaea; }
.pdfwrap { overflow-x: auto; padding: 16px 0 24px; }
.pdfpages { display: flex; flex-direction: column; align-items: center; gap: 14px; width: calc(min(100%, 820px) * var(--pdf-k, 1)); margin: 0 auto; } /* 데스크톱 쪽 폭 820px 상한, 확대는 --pdf-k 배율 */
.pdfpages .pg { width: 100%; max-width: 100%; }
.pdfpages .pg img { width: 100%; background: #fff; box-shadow: 0 6px 20px rgba(20,20,19,.18); border-radius: 3px; }
.pdfpages .pg .no { display: block; text-align: center; font-size: 11px; color: var(--muted); margin-top: 4px; }
.zoom { position: fixed; right: 12px; bottom: 84px; display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 4px 14px rgba(20,20,19,.16); overflow: hidden; z-index: 16; }
.zoom button { width: 44px; height: 44px; border: 0; background: transparent; font: inherit; font-size: 20px; cursor: pointer; }
.zoom span { font-size: 10.5px; text-align: center; color: var(--muted); padding: 2px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.pgnav { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pgnav input { width: 48px; height: 36px; text-align: center; border: 1px solid #cfcfcf; border-radius: 8px; font: inherit; font-size: 14px; }
.hidden { display: none !important; }

/* 전체 프레임: 모바일 단일 열, PC 에서도 가운데 512px (사용자 지시 2026-11-15). 바깥 여백은 중립 회색 */
:root { --frame: 512px; }
html { background: #e9e9e9; }
body { width: 100%; max-width: var(--frame); margin: 0 auto; min-height: 100vh; box-shadow: 0 0 0 1px #dedede; overflow-x: hidden; }
/* 화면 고정 요소도 프레임 안에 */
.sheet { left: 0; right: 0; margin: 0 auto; max-width: var(--frame); }
.zoom { right: calc(max(0px, (100vw - var(--frame)) / 2) + 12px); }

/* 하단 고정 읽기 버튼(소개 30% 스크롤 후, js/fixed-cta.js). 프레임 512 안, 안전 영역 · 본문 가림 방지 여백 */
.fixed-read { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: var(--frame); margin: 0 auto; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.08); transform: translateY(100%); opacity: 0; visibility: hidden; transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s; }
.fixed-read.on { transform: none; opacity: 1; visibility: visible; transition: transform .22s ease, opacity .22s ease, visibility 0s; }
.fixed-read .btn { width: 100%; min-height: 52px; font-size: 17px; }
body:has(#fixed-read) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .fixed-read, .fixed-read.on { transition: none; } }

/* ===== 리디자인(research-sales 근거): 본문 중 강의 카드 ===== */

/* ===== 유료 마스터패키지 구매 배너 (package-banner/ 핸드오프 146d62e 병합) ===== */
/* 유료 '연애추월차선 마스터패키지' 구매 배너 — 흑백·중립 회색 UI, 상품 이미지는 원본 색 보존.
   site.css 의 토큰(--ink --muted --line --soft --cta --cta-hover --radius --gutter)을 그대로 쓴다.
   루트 .course-card 와 a[data-course-link] 를 유지해야 fixed-cta.js 가 배너 노출 중 하단 읽기 버튼을 숨긴다. */

/* ---- 대표 배너(이미지 + 구성 + 가격 + CTA) ---- */
.pkg { max-width: var(--read, 680px); margin: 0 auto; background: #fff; border: 1.5px solid var(--ink, #111); border-radius: var(--radius, 14px); overflow: hidden; color: var(--ink, #111); }
.pkg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line, #e3e3e3); }
.pkg-badge { display: inline-flex; align-items: center; white-space: nowrap; flex-shrink: 0; min-height: 28px; padding: 0 10px; background: var(--ink, #111); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 999px; letter-spacing: .01em; }
.pkg-media { margin: 0; background: #000; }
.pkg-media img { display: block; width: 100%; height: auto; aspect-ratio: 1800 / 1010; object-fit: cover; }
.pkg-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.pkg-name { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 900; letter-spacing: -0.02em; }
.pkg-name small { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--muted, #5f5f5f); letter-spacing: 0; }
.pkg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pkg-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.pkg-list svg { flex-shrink: 0; margin-top: 3px; }
.pkg-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 12px 14px; background: var(--soft, #f3f3f3); border-radius: 10px; }
.pkg-price .now { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.pkg-price .now small { font-size: 14px; font-weight: 700; margin-left: 2px; }
.pkg-price .now .tot { margin: 0 6px 0 0; color: var(--muted); }
.pkg-price .inst { font-size: 13.5px; color: var(--muted, #5f5f5f); }
.pkg-price .asof { flex-basis: 100%; font-size: 12px; color: var(--muted, #5f5f5f); }
.pkg-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 12px 16px; background: var(--cta, #111); color: #fff; border-radius: 12px; font-size: 17px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; letter-spacing: -0.01em; }
.pkg-cta:hover { background: var(--cta-hover, #333); color: #fff; }
.pkg-cta:focus-visible { outline: 3px solid var(--ink, #111); outline-offset: 3px; }
.pkg-cta svg { flex-shrink: 0; }
.pkg-foot { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted, #5f5f5f); }

/* ---- 요약 카드(소개 끝 등 두 번째 자리용: 썸네일 + 이름 + 가격 + CTA) ---- */
.pkg-mini { max-width: var(--read, 680px); margin: 0 auto; background: #fff; border: 1.5px solid var(--ink, #111); border-radius: var(--radius, 14px); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; color: var(--ink, #111); }
.pkg-mini-row { display: flex; align-items: center; gap: 12px; }
.pkg-mini-row img { width: 112px; height: auto; aspect-ratio: 1800 / 1010; object-fit: cover; border-radius: 8px; background: #000; flex-shrink: 0; }
.pkg-mini-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pkg-mini-text .pkg-badge { align-self: flex-start; min-height: 24px; font-size: 11.5px; }
.pkg-mini-text b { font-size: 16px; line-height: 1.3; letter-spacing: -0.02em; }
.pkg-mini-text span { font-size: 13px; color: var(--muted, #5f5f5f); line-height: 1.4; }
.pkg-mini .pkg-cta { min-height: 52px; font-size: 16px; }

@media (max-width: 400px) {
  .pkg-name { font-size: 20px; }
  .pkg-price .now { font-size: 22px; }
  .pkg-mini-row img { width: 96px; }
}

/* site.css 의 .course { padding: 24px 0 8px } 가 .wrap 좌우 여백을 지우므로 배너 섹션은 좌우 여백을 되살린다 */
.course-banner, .course-banner-mini { padding: 22px var(--gutter, 20px) 10px; }
/* .course-card 기본 카드(회색 바탕·안쪽 여백)를 배너에서는 끈다 — 이미지가 테두리까지 닿게 */
.pkg.course-card { display: block; padding: 0; gap: 0; background: #fff; }
.pkg-mini.course-card { padding: 14px 16px; gap: 12px; background: #fff; }
.rend .pkg.course-card, .rend .pkg-mini.course-card { background: #fff; }
/* 본문(.article) 안 배너는 이미 바깥 .wrap 여백이 있으므로 좌우 여백 중복 제거 */
.article .course-banner { padding-left: 0; padding-right: 0; }
/* 요약 카드 배지: .pkg-mini-text span 회색 글자 규칙이 배지에 번지지 않게 */
.pkg-mini-text .pkg-badge { color: #fff; }
/* 가격: 정가(취소선) → 판매가 → 할인 금액·율. 정가 590,000원은 사용자 지정값(2026-11-15), 판매가는 라이브클래스 표시가 */
.pkg-price .was { font-size: 14px; color: var(--muted); }
.pkg-price .was s { text-decoration-thickness: 1.5px; }
.pkg-price .off { flex-basis: 100%; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.pkg-mini .pkg-price { padding: 10px 12px; }
.pkg-mini .pkg-price .now { font-size: 21px; }
/* 무료판 PDF 전체 뷰어: 목차 · 쪽 이동 · 책 끝 구매 배너 */
.toc a .pn { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a:not(.sub) .t { font-weight: 700; }
.toc a.sub { padding-left: 22px; min-height: 44px; }
.toc a.sub .t { font-size: 14px; }
.pdfpages .pg { scroll-margin-top: 60px; }
.rend-sec { padding-top: 0; }
body.pdf .rend-sec .rend { margin-top: 8px; }
/* 히어로 유튜브 채널 링크(흑백 단색 유튜브 로고) */
.eyebrow .yt-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #ffffff; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.eyebrow .yt-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow .yt-logo { flex-shrink: 0; }
/* 쪽 번호가 세 자리(166)여도 하단 막대가 줄바꿈되지 않게: 좁은 화면에서는 이전·다음과 겹치는 ‹ › 를 숨긴다 */
body.pdf .rnav .navbtn, body.pdf .pgnav { white-space: nowrap; }
@media (max-width: 400px) { body.pdf .pgnav .ibtn { display: none; } }
/* 4쪽 이후 잠금 칸 · 열람 신청 서랍(하단 시트) */
.lockbox { width: 100%; margin: 0 auto; padding: 40px 24px 36px; background: #fff; border-radius: 3px; box-shadow: 0 6px 20px rgba(20,20,19,.18); text-align: center; scroll-margin-top: 60px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lockbox .lock-t { margin: 8px 0 14px; font-size: 17px; }
.lockbox .btn { width: 100%; max-width: 320px; }
.toc a.locked .pn::after { content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 4px; vertical-align: -1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.unlock .sheet-in { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.unlock form { display: flex; flex-direction: column; gap: 4px; }
.unlock .fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.unlock .fld input { height: 48px; padding: 0 14px; border: 1px solid #bdbdbd; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 400; background: #fff; color: #111111; }
.unlock .fld input:focus-visible { outline: 3px solid #111111; outline-offset: 1px; }
.unlock .ferr { min-height: 18px; margin: 0; font-size: 12.5px; color: #111111; font-weight: 700; }
.unlock .ferr:empty { min-height: 6px; }
.unlock .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.unlock .consent { border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; margin-top: 6px; }
.unlock .chk { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.unlock .chk input { width: 22px; height: 22px; accent-color: #111111; flex-shrink: 0; }
.unlock details { margin: 0 0 8px 32px; font-size: 13px; color: var(--muted); }
.unlock summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.unlock .ctab { width: 100%; border-collapse: collapse; margin: 6px 0; }
.unlock .ctab th, .unlock .ctab td { text-align: left; vertical-align: top; padding: 6px 4px; border-top: 1px solid var(--line-soft); font-weight: 400; }
.unlock .ctab th { width: 34%; color: #111111; font-weight: 700; }
.unlock .cref { margin: 4px 0 0; color: #111111; }
.unlock .cctl { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.unlock .u-submit { margin-top: 10px; width: 100%; }
.unlock .u-submit[disabled] { background: #cfcfcf; color: #fff; cursor: default; }
/* 로컬 시안: 확정 전 문구 표시 */
.unlock.draft .sheet-h h2::after { content: "시안 · 확정 전 문구"; margin-left: 8px; font-size: 11px; font-weight: 700; color: #fff; background: #111111; padding: 2px 6px; border-radius: 4px; vertical-align: middle; }
.unlock .sheet-in { max-height: 92vh; }
