/* 주간 기부타임즈 지면 — 판형 1000×1480px
   UI 기준(UI_GUIDE.md 7장) 적용
   - 간격: 4px 단위 (지면 안쪽 기본 여백 24px, 단 사이 24px)
   - 지면 글자 단계: 12 · 13 · 14 · 16 · 18 · 20 · 24 · 28 · 32 · 40 · 48 · 96
   - 색: 아래 --np-* 토큰과 사이트 토큰만 */

:root {
  --np-paper: #F2EEE3;
  --np-paper-hi: #F6F2E8;
  --np-paper-lo: #E9E3D4;
  --np-ink: #1E2126;
  --np-ink-2: #4A4D53;
  --np-rule: #2B2E33;
  --np-hair: #B9B3A5;
  --np-gut: 24px;
  --np-tex: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .22  0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --np-sans: 'Pretendard Variable', Pretendard, 'Noto Sans KR', -apple-system, sans-serif;
}

/* ================= 지면 ================= */
.np-page {
  width: 1000px; height: 1480px; padding: 40px 48px 32px; display: flex; flex-direction: column;
  position: relative; overflow: hidden; color: var(--np-ink); background-color: var(--np-paper);
  background-image: var(--np-tex), radial-gradient(120% 80% at 50% 40%, var(--np-paper-hi) 0%, var(--np-paper) 60%, var(--np-paper-lo) 100%);
  font-family: var(--np-sans); font-size: 16px; line-height: 1.6; word-break: keep-all; text-align: left;
}
.np-page a { color: inherit; text-decoration: none; }
.np-page a:hover { color: var(--blue); }
.np-page h1, .np-page h2, .np-page h3, .np-page p, .np-page figure { margin: 0; }
.np-blank { width: 1000px; height: 1480px; }

/* 공통 머리·바닥 */
.np-folio { display: flex; justify-content: space-between; align-items: center; font-family: var(--np-sans); font-size: 13px; padding-bottom: 8px; border-bottom: 4px solid var(--np-rule); margin-bottom: var(--np-gut); }
.np-folio-sec { font-family: var(--serif); font-size: 24px; font-weight: 900; letter-spacing: -.03em; color: var(--ink); }
.np-folio-no { display: flex; align-items: center; gap: 12px; }
.np-pno { font-family: var(--serif); font-size: 28px; font-weight: 900; line-height: 1; }
.np-foot { display: grid; grid-template-columns: 1fr auto 1fr; font-family: var(--np-sans); font-size: 12px; color: var(--np-ink-2); border-top: 1px solid var(--np-rule); padding-top: 8px; margin-top: 16px; }
.np-foot span:nth-child(2) { text-align: center; }
.np-foot span:last-child { text-align: right; font-weight: 700; }

/* 기사 공통 */
.np-story { display: flex; flex-direction: column; min-height: 0; min-width: 0; flex: 1; }
.np-kicker { margin-bottom: 4px; font-family: var(--np-sans); font-size: 13px; font-weight: 700; color: var(--blue); }
.np-kicker::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--orange); margin-right: 8px; vertical-align: 1px; }
.np-hl { font-weight: 900; letter-spacing: -.035em; line-height: 1.25; text-align: left; }
.np-lead .np-hl { font-size: 48px; margin-bottom: 12px; }
.np-sub .np-hl { font-size: 24px; margin-bottom: 8px; line-height: 1.3; }
.np-brief .np-hl { font-size: 18px; line-height: 1.35; margin-bottom: 4px; }
.np-deck { margin-bottom: 16px; font-size: 18px; font-weight: 600; color: var(--np-ink-2); line-height: 1.5; text-align: left; padding-left: 12px; border-left: 4px solid var(--ink); }
.np-fig img { width: 100%; height: auto; display: block; filter: saturate(.82) contrast(1.03); mix-blend-mode: multiply; }
.np-fig figcaption { font-family: var(--np-sans); font-size: 12px; color: var(--np-ink-2); line-height: 1.5; margin-top: 4px; text-align: left; }
.np-fig-sub img { aspect-ratio: 40 / 21; object-fit: cover; }
.np-by { margin-bottom: 8px; font-family: var(--np-sans); font-size: 12px; color: var(--np-ink-2); text-align: right; }
.np-body { flex: 1; min-height: 0; overflow: hidden; column-fill: auto; column-gap: var(--np-gut); column-rule: 1px solid var(--np-hair); word-break: break-all; text-align: left; }
.np-body p { margin-bottom: 8px; text-indent: 1em; }
.np-body p:first-child { text-indent: 0; }
.np-lead .np-body p:first-child::first-letter { float: left; font-size: 48px; line-height: .95; font-weight: 900; margin: 4px 8px 0 0; color: var(--ink); }
.np-brief .np-body { font-size: 14px; line-height: 1.55; text-align: left; }
.np-brief .np-by { display: none; }
.np-more { font-family: var(--np-sans); font-size: 12px; font-weight: 700; color: var(--blue) !important; white-space: nowrap; border-bottom: 1px solid currentColor; }
.np-en .np-hl { letter-spacing: -.01em; }
.np-en .np-lead .np-hl { font-size: 40px; }
.np-en .np-body { word-break: normal; hyphens: auto; }
.np-en .np-body p { text-indent: 0; }

/* 큰 기사: 제목 아래 [사진 | 본문 2단] */
.np-lead { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); column-gap: var(--np-gut); }
.np-lead > .np-kicker, .np-lead > .np-hl, .np-lead > .np-deck { grid-column: 1 / -1; }
.np-lead > .np-fig { grid-column: 1; grid-row: 4; align-self: start; }
.np-lead > .np-by { grid-column: 2; grid-row: 4; align-self: start; }
.np-lead > .np-body { grid-column: 2; grid-row: 4; column-count: 2; margin-top: 24px; }

/* 작은 기사: 제목 아래 [사진 | 본문] */
.np-sub { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); column-gap: 16px; }
.np-sub > .np-kicker, .np-sub > .np-hl { grid-column: 1 / -1; }
.np-sub > .np-fig { grid-column: 1; grid-row: 3 / 5; align-self: start; }
.np-sub > .np-by { grid-column: 2; grid-row: 3; margin-bottom: 4px; }
.np-sub > .np-body { grid-column: 2; grid-row: 4; column-count: 1; text-align: left; }

/* ---------- 1면 ---------- */
.np-mast { display: grid; grid-template-columns: 172px 1fr 172px; align-items: stretch; gap: var(--np-gut); padding-bottom: 12px; border-bottom: 4px solid var(--np-rule); }
.np-title { display: flex; align-items: center; justify-content: center; gap: 16px; }
.np-logo-full { width: 421px; height: 104px; mix-blend-mode: multiply; }
.np-ear { font-family: var(--np-sans); font-size: 13px; line-height: 1.5; border: 1px solid var(--np-rule); padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; }
.np-ear b { font-size: 20px; font-family: var(--serif); font-weight: 900; }
.np-ear ol { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; line-height: 1.5; white-space: nowrap; columns: 2; column-gap: 8px; }
.np-ear ol b { font-family: inherit; font-size: 12px; margin-right: 4px; color: var(--orange-text); }
.np-dateline { display: flex; justify-content: space-between; font-family: var(--np-sans); font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--np-rule); margin-bottom: 20px; }
.np-figbox { display: flex; flex-direction: column; gap: 4px; background: var(--ink); color: #fff !important; padding: 16px 16px 20px; }
.np-figbox-t { font-family: var(--np-sans); font-size: 13px; font-weight: 700; opacity: .85; }
.np-figbox strong { font-size: 40px; font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.np-figbox span:last-child { font-size: 14px; line-height: 1.5; text-align: left; }
.np-teaser { display: flex; flex-direction: column; gap: 4px; padding: 12px 0 16px; border-top: 4px double var(--np-rule); border-bottom: 1px solid var(--np-hair); text-align: left; }
.np-teaser span { font-family: var(--np-sans); font-size: 12px; font-weight: 700; color: var(--orange-text); }
.np-teaser b { font-size: 18px; line-height: 1.4; font-weight: 900; }
.np-op-side h3, .np-briefs-row h3 { font-size: 18px; font-weight: 900; padding-bottom: 8px; border-bottom: 2px solid var(--np-rule); margin-bottom: 4px; }

/* ---------- 안쪽 면 ---------- */
.np-house { border: 4px double var(--np-rule); padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 8px; text-align: center; font-family: var(--np-sans); font-size: 13px; }
.np-house b { font-family: var(--serif); font-size: 20px; font-weight: 900; line-height: 1.35; }

/* ---------- 1면: 일간지 1면처럼 큰 사진을 정면에 ---------- */
.np-front { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 220px; grid-template-rows: auto auto auto minmax(0, 1fr); column-gap: var(--np-gut); }
.np-front > .np-kicker, .np-front-hl, .np-front-photo { grid-column: 1 / -1; }
.np-front-hl { font-size: 48px; font-weight: 900; letter-spacing: -.04em; line-height: 1.2; text-align: left; margin-bottom: 16px; }
.np-front-photo { margin-bottom: 16px; }
.np-front-photo img { width: 100%; aspect-ratio: 40 / 21; object-fit: cover; }
.np-front-body { grid-column: 1; grid-row: 4; display: flex; flex-direction: column; min-height: 0; }
.np-front-body .np-deck { font-size: 16px; margin-bottom: 12px; }
.np-front-text { column-count: 3; }
.np-front-side { grid-column: 2; grid-row: 4; display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: hidden; padding-left: var(--np-gut); border-left: 1px solid var(--np-hair); }
.np-front-side .np-figbox strong { font-size: 32px; }
.np-front-row { flex: 0 0 236px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--np-gut); margin-top: 16px; padding-top: 16px; border-top: 4px solid var(--np-rule); min-height: 0; }
.np-mini { min-height: 0; }
.np-mini + .np-mini { padding-left: var(--np-gut); border-left: 1px solid var(--np-hair); }
.np-mini .np-hl { font-size: 20px; line-height: 1.35; margin-bottom: 8px; }
.np-mini .np-body { font-size: 14px; line-height: 1.6; column-count: 1; }
.np-index { flex: 0 0 auto; display: flex; gap: 16px; align-items: baseline; margin-top: 12px; padding: 8px 0; border-top: 1px solid var(--np-rule); border-bottom: 1px solid var(--np-rule); font-size: 13px; white-space: nowrap; overflow: hidden; }
.np-index b { font-weight: 800; color: var(--ink); }
.np-index em { font-style: normal; font-weight: 800; color: var(--orange-text); margin-right: 4px; }
.np-index a { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.np-index a + a::before { content: ''; display: inline-block; width: 1px; height: 12px; background: var(--np-hair); margin-right: 16px; vertical-align: -1px; }

/* ---------- 안쪽 면: 머리기사 → 그래픽 기사 → 기사 셋 → 단신 ---------- */
.np-top-story { flex: 0 0 auto; display: flex; flex-direction: column; }
.np-top-hl { font-size: 40px; font-weight: 900; letter-spacing: -.04em; line-height: 1.25; text-align: left; margin-bottom: 12px; }
.np-top-grid { height: 400px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--np-gut); }
.np-top-photo img { width: 100%; aspect-ratio: 40 / 21; object-fit: cover; }
.np-top-text { display: flex; flex-direction: column; min-height: 0; }
.np-top-text .np-body { column-count: 1; }
.np-top-story .np-body p:first-child::first-letter { float: left; font-size: 48px; line-height: .95; font-weight: 900; margin: 4px 8px 0 0; color: var(--ink); }
.np-second { flex: 0 0 280px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--np-gut); margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--np-rule); min-height: 0; }
.np-second-head { display: flex; flex-direction: column; min-height: 0; }
.np-second-head .np-hl { font-size: 24px; line-height: 1.3; margin-bottom: 8px; }
.np-second-head .np-body { column-count: 1; font-size: 14px; }
.np-second-graphic { min-height: 0; display: flex; flex-direction: column; }
.np-second-graphic img { flex: 1; min-height: 0; width: 100%; object-fit: contain; object-position: center top; }
.np-trio { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--np-gut); margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--np-rule); }
.np-trio .np-house { margin: 0; }
.np-briefs-row { flex: 0 0 168px; margin-top: 16px; padding-top: 8px; border-top: 4px double var(--np-rule); display: flex; flex-direction: column; min-height: 0; }
.np-briefs-row h3 { border: 0; padding: 0; margin-bottom: 8px; font-size: 16px; }
.np-briefs-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--np-gut); }
.np-brief { display: flex; flex-direction: column; min-height: 0; }
.np-brief + .np-brief { padding-left: var(--np-gut); border-left: 1px solid var(--np-hair); }
.np-brief h4 { margin: 0 0 4px; font-size: 16px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.np-brief .np-body { font-size: 13px; line-height: 1.55; column-count: 1; }

/* ---------- 6면 데이터 ---------- */
.np-data-title { font-size: 48px; font-weight: 900; letter-spacing: -.04em; line-height: 1.2; }
.np-data-lede { margin: 8px 0 20px; font-size: 16px; color: var(--np-ink-2); text-align: left; }
.np-num-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 4px solid var(--np-rule); }
.np-num-grid a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 20px; border-right: 1px solid var(--np-hair); border-bottom: 1px solid var(--np-hair); text-align: left; }
.np-num-grid a:nth-child(3n) { border-right: 0; }
.np-num-grid strong { font-size: 40px; font-weight: 900; color: var(--ink); letter-spacing: -.04em; line-height: 1.1; }
.np-num-grid span { font-size: 14px; line-height: 1.5; }
.np-num-grid em { font-family: var(--np-sans); font-style: normal; font-size: 12px; color: var(--np-ink-2); }
.np-gallery { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--np-gut); padding-top: var(--np-gut); border-top: 4px solid var(--np-rule); }
.np-num-grid + .np-gallery { border-top: 0; }
.np-gallery.is-6 { grid-template-rows: repeat(3, minmax(0, 1fr)); }
.np-gal-item { display: flex; flex-direction: column; gap: 8px; min-height: 0; text-align: left; }
.np-gal-item .np-fig { min-height: 0; flex: 0 1 auto; overflow: hidden; }
.np-gal-item .np-fig img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; object-position: left top; }
.np-gal-item .np-fig figcaption { display: none; }
.np-gal-item b { font-size: 16px; font-weight: 900; line-height: 1.4; }

/* ---------- 9면 오피니언 ---------- */
.np-op-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 220px; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "ed cart side" "col col side"; gap: var(--np-gut); }
.np-op-label { font-family: var(--np-sans); font-size: 13px; font-weight: 800; color: var(--orange-text); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--np-rule); }
.np-editorial { grid-area: ed; display: flex; flex-direction: column; min-height: 0; padding-right: var(--np-gut); border-right: 1px solid var(--np-hair); }
.np-editorial .np-hl, .np-column .np-hl { font-size: 32px; margin-bottom: 16px; }
.np-editorial .np-body { column-count: 2; }
.np-cartoon { grid-area: cart; display: flex; flex-direction: column; min-height: 0; }
.np-cartoon > a { flex: 0 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--np-rule); padding: 8px; background: var(--paper); }
.np-cartoon img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.np-cartoon figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; text-align: left; }
.np-cartoon figcaption b { font-size: 20px; font-weight: 900; }
.np-cartoon figcaption span { font-size: 14px; color: var(--np-ink-2); }
.np-column { grid-area: col; display: flex; flex-direction: column; min-height: 0; padding-top: 16px; border-top: 4px solid var(--np-rule); }
.np-col-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.np-col-head .np-op-label { border: 0; padding: 0; margin: 0; }
.np-col-face { width: 48px; height: 48px; border-radius: 50%; }
.np-col-by { font-family: var(--np-sans); font-size: 13px; color: var(--np-ink-2); }
.np-column .np-body { column-count: 3; }
.np-op-side { grid-area: side; display: flex; flex-direction: column; gap: var(--np-gut); padding-left: var(--np-gut); border-left: 1px solid var(--np-hair); }
.np-op-side p { font-size: 14px; line-height: 1.6; text-align: left; margin-top: 8px; }
.np-correct { border: 1px solid var(--np-rule); padding: 16px; }
.np-correct h3 { border-bottom-width: 1px; }
.np-addr { font-family: var(--np-sans); font-weight: 700; color: var(--blue); }

.np-measure { position: absolute; left: -99999px; top: 0; }

/* ================= 보기 화면 ================= */
.ep { background: var(--ink-deep); color: #fff; }
.ep-bar { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 8px var(--gut); background: var(--ink-deeper); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ep-bar-l { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ep-title { font-family: var(--serif); font-size: 20px; white-space: nowrap; }
.ep-issue select { height: 44px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: var(--ink-deep); color: #fff; padding: 0 12px; font: inherit; font-size: 15px; }
.ep-nav { display: flex; align-items: center; gap: 12px; }
.ep-nav button { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 28px; line-height: 1; }
.ep-nav button:disabled { opacity: .3; cursor: default; }
.ep-nav button:not(:disabled):hover { background: rgba(255, 255, 255, .2); }
.ep-count { min-width: 120px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.ep-bar-r { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.ep-bar-r > button, .ep-zoom button { height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ep-bar-r > button:hover, .ep-bar-r > button[aria-expanded=true] { background: #fff; color: var(--ink); }
.ep-zoom { display: flex; }
.ep-zoom button { border-radius: 0; margin-left: -1px; min-width: 44px; padding: 0 12px; font-size: 18px; }
.ep-zoom button:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.ep-zoom button:last-child { border-radius: 0 8px 8px 0; }
.ep-zoom .ep-zoom-val { font-size: 14px; min-width: 64px; font-variant-numeric: tabular-nums; }
.ep-zoom button:disabled { opacity: .35; cursor: default; }
.ep-zoom button:not(:disabled):hover { background: rgba(255, 255, 255, .15); }
.ep-body { display: flex; }
.ep-stage { position: relative; flex: 1; min-width: 0; overflow: auto; outline-offset: -4px; touch-action: pan-x pan-y; overscroll-behavior: contain; }
.ep-stage.is-zoomed { cursor: grab; }
.ep-fit { position: relative; margin: 24px auto; }
.is-single .ep-fit { margin: 8px auto; }
.ep-book { position: absolute; top: 0; left: 0; transform-origin: 0 0; display: flex; perspective: 4200px; box-shadow: 0 32px 64px -20px rgba(0, 0, 0, .6); }
.ep-slot { width: 1000px; height: 1480px; position: relative; }
.ep-slot:empty { display: none; }
.ep-l::after, .ep-r::after { content: ''; position: absolute; top: 0; bottom: 0; width: 64px; pointer-events: none; }
.ep-l::after { right: 0; background: linear-gradient(to left, rgba(60, 45, 20, .18), transparent); }
.ep-r::after { left: 0; background: linear-gradient(to right, rgba(60, 45, 20, .22), transparent); }
.is-single .ep-l::after, .ep-slot:has(.np-blank)::after { display: none; }
.ep-slot:has(.np-blank) { visibility: hidden; }
.ep-flip { position: absolute; top: 0; width: 1000px; height: 1480px; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.35, .1, .2, 1); z-index: 5; }
.ep-flip.is-fwd { left: 1000px; transform-origin: left center; }
.ep-flip.is-back { left: 0; transform-origin: right center; }
.ep-flip.is-fwd.is-on { transform: rotateY(-180deg); }
.ep-flip.is-back.is-on { transform: rotateY(180deg); }
.ep-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
.ep-back { transform: rotateY(180deg); }
.ep-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 16px; opacity: .8; }

/* 글로 보기 */
.ep-read { width: 420px; flex: none; background: var(--paper); color: var(--ink); overflow-y: auto; border-left: 1px solid var(--line); }
.ep-read-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 12px 24px; background: var(--paper); border-bottom: 2px solid var(--ink); z-index: 1; }
.ep-read-head h2 { font-family: var(--serif); font-size: 20px; }
.ep-read-sec { padding: 16px 24px 8px; }
.ep-read-sec h3 { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 8px; }
.ep-read-item { padding: 16px 0 20px; border-bottom: 1px solid var(--line-2); }
.ep-read-item img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 12px; }
.ep-read-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--blue); }
.ep-read-item h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.ep-read-item p { margin: 0 0 8px; font-size: 16px; line-height: 1.75; color: var(--text); }
.ep-read-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--blue); }

.ep-thumbs { display: flex; gap: 16px; overflow-x: auto; padding: 16px var(--gut); background: var(--ink-deeper); }
.ep-thumb { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; }
.ep-thumb-in { display: block; width: 100px; height: 148px; overflow: hidden; position: relative; outline: 4px solid transparent; }
.ep-thumb-in > .np-page { transform: scale(.1); transform-origin: 0 0; pointer-events: none; }
.ep-thumb[aria-current=true] .ep-thumb-in { outline-color: var(--orange); }
.ep-thumb b { font-size: 13px; }
.ep-note { margin: 0; padding: 12px var(--gut) 20px; font-size: 13px; color: rgba(255, 255, 255, .72); text-align: center; }
.ep:fullscreen .ep-note, .ep:fullscreen .ep-thumbs { display: none; }

@media (max-width: 1180px) {
  .ep-title, .ep-bar-r > [data-full] { display: none; }
}
@media (max-width: 860px) {
  .ep-bar { grid-template-columns: 1fr auto; gap: 8px; padding: 8px var(--gut); }
  .ep-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .ep-count { flex: 1; }
  .ep-bar-r { grid-column: 2; grid-row: 1; }
  .ep-bar-r > button { padding: 0 12px; }
  .ep-zoom .ep-zoom-val { min-width: 56px; }
  .ep-read { position: fixed; inset: 0; width: auto; z-index: 70; border: 0; }
}
@media (max-width: 520px) {
  .ep-bar-r > [data-thumbs] { display: none; }
  .ep-zoom .ep-zoom-val { display: none; }
  .ep-issue select { max-width: 160px; }
}
@media (prefers-reduced-motion: reduce) { .ep-flip { transition: none; } }

/* ================= 메인 화면 지면 안내 ================= */
.ep-promo { background-color: var(--np-paper); background-image: var(--np-tex); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; }
.ep-promo .wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: center; }
.ep-promo-cover { display: block; width: 300px; height: 444px; overflow: hidden; box-shadow: 0 20px 40px -16px rgba(21, 39, 68, .45), 0 0 0 1px rgba(0, 0, 0, .06); transition: transform .25s; }
.ep-promo-cover:hover { transform: translateY(-4px); }
.ep-promo-in { display: block; width: 1000px; height: 1480px; transform: scale(.3); transform-origin: 0 0; pointer-events: none; }
.ep-promo-text h2 { font-family: var(--serif); font-size: 32px; letter-spacing: -.02em; }
.ep-promo-text .ep-promo-no { margin: 0 0 8px; font-weight: 700; color: var(--blue); }
.ep-promo-text > p { color: var(--ink-2); margin: 12px 0 20px; max-width: 520px; }
.ep-promo-index { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; max-width: 560px; }
.ep-promo-index li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--np-hair); font-size: 15px; }
.ep-promo-index b { font-family: var(--serif); color: var(--blue); width: 24px; }
.ep-promo-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ep-back-issues { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.ep-back-issues a { display: inline-block; padding-block: 4px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) {
  .ep-promo .wrap { grid-template-columns: 1fr; gap: 24px; justify-items: center; }
  .ep-promo-cover { width: 240px; height: 356px; }
  .ep-promo-in { transform: scale(.24); }
  .ep-promo-text { width: 100%; }
  .ep-promo-index { grid-template-columns: 1fr; }
}
