/* ============================================================
   리포트ON · Sample Report (/sample)
   weeklyReportHtml.ejs + 실제 PDF(W19 강남권)을 기준으로 한
   정적 샘플 리포트 전용 스타일.

   원칙
   - 모든 셀렉터는 .sample-report-page 하위로 스코프 제한
   - main.css 변수 시스템 재사용 (--green-ink / --green-700 / ...)
   - 문서형 4p A4 느낌 / 데이터 밀도 높음 / 인터랙션 최소
   ============================================================ */

/* ── 로컬 토큰 (PDF 톤 보강용; main.css 의 변수에 의존) ───── */
.sample-report-page {
  --rpt-ink-900:      #0E1A14;
  --rpt-ink-700:      #2A3A30;
  --rpt-ink-500:      #5A6B62;
  --rpt-ink-400:      #8B9A91;
  --rpt-ink-300:      #B8C3BC;
  --rpt-line:         #E5EAE7;
  --rpt-line-2:       #EEF2EF;
  --rpt-paper:        #FFFFFF;
  --rpt-bg:           #F4F6F4;
  --rpt-rise:         #C0392B;   /* 상승=빨강 */
  --rpt-rise-bg:      #FDF2F0;
  --rpt-fall:         #1F4DBF;   /* 하락=파랑 */
  --rpt-fall-bg:      #F0F4FB;
  --rpt-warn:         #B36A00;
  --rpt-warn-bg:      #FBF4E6;
  --rpt-mono: 'JetBrains Mono', 'Menlo', 'Consolas', ui-monospace, monospace;

  background: var(--rpt-bg);
  font-feature-settings: 'tnum' on, 'lnum' on;
}

/* ── 안내 배너 (화면 전용) ─────────────────────────────── */
.sample-report-banner {
  background: var(--green-ink);
  color: #E9F1EC;
  padding: 14px 0;
  border-bottom: 1px solid #08291F;
}
.sample-report-banner .container {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.sample-report-banner .srb-text {
  font-size: 14px; line-height: 1.5; letter-spacing: -0.005em;
}
.sample-report-banner .srb-text strong {
  color: #fff; font-weight: 700;
}
.sample-report-banner .srb-text small {
  display: block; margin-top: 2px;
  font-size: 12px; color: rgba(255,255,255,0.62); letter-spacing: 0.01em;
}
.sample-report-banner .srb-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--green-ink);
  font-size: 13.5px; font-weight: 700;
  padding: 9px 16px; border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.sample-report-banner .srb-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}

/* ── 뷰어 (4p 문서 컨테이너) ──────────────────────────── */
.sample-report-page .report-viewer {
  padding: 36px 16px 80px;
  display: flex; flex-direction: column; align-items: center;
  gap: 24px;
}
.sample-report-page .report-shell {
  display: flex; flex-direction: column; gap: 24px;
  width: 100%; max-width: 210mm;
}

/* ── 페이지 ──────────────────────────────────────────── */
.sample-report-page .report-page {
  width: 210mm; min-height: 297mm;
  background: var(--rpt-paper);
  color: var(--rpt-ink-900);
  font-family: 'Pretendard Variable','Pretendard','Noto Sans KR','Apple SD Gothic Neo',sans-serif;
  font-size: 12.5px; line-height: 1.55;
  box-shadow: 0 12px 40px rgba(11,61,46,0.10), 0 2px 8px rgba(0,0,0,0.04);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.sample-report-page .report-topband {
  height: 6px; background: var(--green-ink); position: relative; flex-shrink: 0;
}
.sample-report-page .report-topband::after {
  content: ''; position: absolute; inset: 0 70% 0 0;
  background: var(--green-500);
}
.sample-report-page .report-page-pad {
  padding: 14mm 13mm 12mm;
  display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0;
}

/* 페이지 헤더 (P2~P4) */
.sample-report-page .report-page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--rpt-line);
  margin-bottom: 14px;
  flex-shrink: 0;
}
.sample-report-page .rph-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: 0.04em; color: var(--rpt-ink-500);
}
.sample-report-page .rph-brand-mark {
  width: 16px; height: 16px;
  background: var(--green-ink); border-radius: 3px;
  position: relative; display: inline-block;
}
.sample-report-page .rph-brand-mark::after {
  content: ''; position: absolute; inset: 4px;
  background: var(--green-500); border-radius: 1px;
}
.sample-report-page .rph-brand strong {
  color: var(--green-ink); font-weight: 800;
  letter-spacing: 0.02em; font-size: 11.5px;
}
.sample-report-page .rph-meta {
  font-size: 10px; color: var(--rpt-ink-400);
  letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
}
.sample-report-page .rph-meta .sep { margin: 0 6px; opacity: 0.4; }
.sample-report-page .rph-meta .pill {
  display: inline-block; padding: 1px 7px;
  background: var(--green-50); color: var(--green-700);
  border-radius: 10px; font-weight: 700; font-size: 9.5px;
  letter-spacing: 0.06em; vertical-align: 1px;
}

/* 페이지 푸터 */
.sample-report-page .report-page-footer {
  margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--rpt-line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9.5px; color: var(--rpt-ink-400);
  letter-spacing: 0.02em; flex-shrink: 0;
}
.sample-report-page .report-page-footer strong { color: var(--rpt-ink-500); font-weight: 600; }
.sample-report-page .report-page-footer .pgnum {
  font-weight: 700; color: var(--green-700);
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}

/* 섹션 라벨 */
.sample-report-page .report-section-label {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 11px;
  font-size: 9.5px; font-weight: 800;
  color: var(--green-700);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.sample-report-page .report-section-label::before {
  content: ''; width: 14px; height: 2px;
  background: var(--green-500); display: inline-block; flex-shrink: 0;
}
.sample-report-page .report-section + .report-section { margin-top: 14px; }

/* 등락 색 */
.sample-report-page .num,
.sample-report-page .r-up,
.sample-report-page .r-down,
.sample-report-page .r-flat {
  font-variant-numeric: tabular-nums;
}
.sample-report-page .r-up,
.sample-report-page .up      { color: var(--rpt-rise); }
.sample-report-page .r-down,
.sample-report-page .down    { color: var(--rpt-fall); }
.sample-report-page .r-flat  { color: var(--rpt-ink-500); }
.sample-report-page .danger  { color: var(--rpt-rise); }
.sample-report-page .positive{ color: var(--green-700); }

/* 톤 라벨 */
.sample-report-page .tone {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 11px;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.04em; white-space: nowrap;
}
.sample-report-page .tone-fall   { background: var(--rpt-fall-bg);  color: var(--rpt-fall);  }
.sample-report-page .tone-rise   { background: var(--rpt-rise-bg);  color: var(--rpt-rise);  }
.sample-report-page .tone-warn   { background: var(--rpt-warn-bg);  color: var(--rpt-warn);  }
.sample-report-page .tone-neutral{ background: var(--green-50);     color: var(--green-700); }

/* ── P1: COVER MAST ─────────────────────────────────── */
.sample-report-page .cover-mast {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 22px; flex-shrink: 0;
}
.sample-report-page .cover-mast-left {
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--green-700); font-weight: 700;
}
.sample-report-page .cover-mast-left .week {
  display: block; margin-top: 4px;
  font-size: 22px; letter-spacing: -0.01em; font-weight: 800;
  color: var(--rpt-ink-900); font-variant-numeric: tabular-nums;
}
.sample-report-page .cover-mast-right {
  text-align: right;
  font-size: 10px; color: var(--rpt-ink-400); letter-spacing: 0.04em;
}
.sample-report-page .cover-mast-right .reg {
  display: block; margin-top: 3px;
  font-size: 12.5px; font-weight: 700; color: var(--rpt-ink-700);
  letter-spacing: 0;
}

.sample-report-page .cover-region {
  font-size: 10px; font-weight: 700; color: var(--green-700);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px;
}
.sample-report-page .report-title.cover-headline {
  font-size: 35px; font-weight: 800; line-height: 1.26;
  letter-spacing: -0.025em; color: var(--rpt-ink-900);
  margin-bottom: 10px; word-break: keep-all; text-wrap: pretty;
  max-width: 172mm;
}
.sample-report-page .cover-headline em {
  font-style: normal;
  background: linear-gradient(transparent 62%, rgba(0,155,98,0.18) 62%);
  padding: 0 1px;
}
.sample-report-page .cover-sub {
  font-size: 13px; color: var(--rpt-ink-500); line-height: 1.6;
  word-break: keep-all; max-width: 165mm; margin-bottom: 24px;
}

/* P1: 진단 pill 그룹 */
.sample-report-page .diag-pills {
  display: flex; gap: 0;
  margin-bottom: 22px;
  border: 1px solid var(--rpt-line); border-radius: 6px;
  overflow: hidden; background: var(--rpt-paper);
}
.sample-report-page .diag-pill {
  flex: 1; padding: 10px 14px;
  border-right: 1px solid var(--rpt-line);
  display: flex; flex-direction: column; gap: 3px;
}
.sample-report-page .diag-pill:last-child { border-right: none; }
.sample-report-page .diag-pill-lbl {
  font-size: 9px; font-weight: 700; color: var(--rpt-ink-400);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.sample-report-page .diag-pill-val {
  font-size: 13px; font-weight: 700;
  color: var(--rpt-ink-900); letter-spacing: -0.005em;
}
.sample-report-page .diag-pill .tone { align-self: flex-start; margin-top: 1px; }

/* P1: KPI strip (4 col) */
.sample-report-page .metric-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--green-ink);
  border-bottom: 1px solid var(--rpt-line);
  margin-bottom: 22px;
}
.sample-report-page .metric-card {
  padding: 13px 14px 13px 0;
  border-right: 1px solid var(--rpt-line);
  display: flex; flex-direction: column; gap: 2px;
}
.sample-report-page .metric-card + .metric-card { padding-left: 14px; }
.sample-report-page .metric-card:last-child { border-right: none; padding-right: 0; }
.sample-report-page .metric-lbl {
  font-size: 10px; font-weight: 600; color: var(--rpt-ink-500);
  letter-spacing: 0.04em; margin-bottom: 4px;
}
.sample-report-page .metric-num {
  font-size: 22px; font-weight: 800; color: var(--rpt-ink-900);
  letter-spacing: -0.025em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.sample-report-page .metric-num small {
  font-size: 12px; font-weight: 700; color: var(--rpt-ink-500);
  margin-left: 1px; letter-spacing: 0;
}
.sample-report-page .metric-delta {
  margin-top: 5px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}
.sample-report-page .metric-delta .lbl {
  font-weight: 500; color: var(--rpt-ink-400);
  font-size: 9.5px; letter-spacing: 0.04em;
}
.sample-report-page .metric-foot {
  margin-top: 5px;
  font-size: 9.5px; color: var(--rpt-ink-400); letter-spacing: 0.02em;
}

/* P1: Body 2col */
.sample-report-page .p1-body {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 18px; margin-bottom: 6px; align-items: stretch;
}

/* P1: 시장 지수 게이지 */
.sample-report-page .market-index {
  display: flex; flex-direction: column; gap: 10px;
}
.sample-report-page .midx-row {
  display: flex; flex-direction: column; gap: 3px;
}
.sample-report-page .midx-head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.sample-report-page .midx-name {
  font-size: 12px; font-weight: 700; color: var(--rpt-ink-900);
  letter-spacing: -0.005em;
}
.sample-report-page .midx-score {
  font-size: 14px; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.sample-report-page .midx-score small {
  font-size: 10px; font-weight: 700; color: var(--rpt-ink-500); margin-left: 1px;
}
.sample-report-page .midx-hint {
  font-size: 11.5px; font-weight: 500; color: #7A8A84;
  margin-left: 5px; letter-spacing: -0.005em;
}
.sample-report-page .midx-bar {
  height: 6px; background: var(--rpt-line-2); border-radius: 3px; overflow: hidden;
}
.sample-report-page .midx-fill { height: 100%; }
.sample-report-page .midx-fill.lv-hot  { background: var(--rpt-rise); }
.sample-report-page .midx-fill.lv-warm { background: #E07A1A; }
.sample-report-page .midx-fill.lv-cold { background: var(--green-500); }
.sample-report-page .midx-row.lv-hot  .midx-score { color: var(--rpt-rise); }
.sample-report-page .midx-row.lv-warm .midx-score { color: #E07A1A; }
.sample-report-page .midx-row.lv-cold .midx-score { color: var(--green-700); }

/* P1: 3줄 진단 리스트 */
.sample-report-page .diag-list {
  display: flex; flex-direction: column;
  justify-content: space-between; gap: 6px;
  min-height: 118px;
}
.sample-report-page .diag-row {
  display: grid; grid-template-columns: 22px 1fr;
  gap: 10px; align-items: start;
}
.sample-report-page .diag-row-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-50); color: var(--green-700);
  font-size: 10.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums; margin-top: 1px;
}
.sample-report-page .diag-row-text {
  font-size: 12.5px; color: var(--rpt-ink-700); line-height: 1.65;
  word-break: keep-all; text-wrap: pretty;
}
.sample-report-page .diag-row-text strong { color: var(--rpt-ink-900); font-weight: 700; }

/* P1: 섹션 구분선 */
.sample-report-page .p1-divider {
  height: 1px; width: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(12,92,68,0.16) 12%,
    rgba(12,92,68,0.22) 50%,
    rgba(12,92,68,0.16) 88%,
    transparent 100%
  );
  margin: 14px 0;
}

/* P1: 핵심 액션 카드 (3 col) */
.sample-report-page .action-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-top: 8px; margin-bottom: 12px;
  align-items: stretch;
}
.sample-report-page .action-card {
  border: 1px solid var(--rpt-line);
  border-left: 3px solid var(--rpt-ink-300);
  padding: 10px 12px;
  border-radius: 4px;
  background: var(--rpt-paper);
  display: flex; flex-direction: column; gap: 5px;
  min-height: 88px;
}
.sample-report-page .action-card.act-buy  { border-left-color: var(--green-500); background: var(--green-50); }
.sample-report-page .action-card.act-sell { border-left-color: var(--rpt-rise);  background: var(--rpt-rise-bg); }
.sample-report-page .action-card.act-wait { border-left-color: var(--rpt-warn);  background: var(--rpt-warn-bg); }
.sample-report-page .action-card-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  display: inline-flex; align-items: center; gap: 5px;
}
.sample-report-page .action-card.act-buy  .action-card-tag { color: var(--green-700); }
.sample-report-page .action-card.act-sell .action-card-tag { color: var(--rpt-rise); }
.sample-report-page .action-card.act-wait .action-card-tag { color: var(--rpt-warn); }
.sample-report-page .action-card-text {
  font-size: 11px; color: var(--rpt-ink-700); line-height: 1.55;
  word-break: keep-all; margin: 0;
}

/* P1: CTA / consult guide */
.sample-report-page .cta-block {
  margin-top: auto; background: var(--green-ink); color: #E9F1EC;
  padding: 14px 18px; border-radius: 6px;
  display: flex; align-items: center; gap: 14px;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.sample-report-page .cta-block::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0;
  width: 3px; background: var(--green-500);
}
.sample-report-page .cta-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,155,98,0.18); color: #4ADE80;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 800; font-size: 15px;
}
.sample-report-page .cta-body { flex: 1; min-width: 0; }
.sample-report-page .cta-lbl {
  font-size: 9px; font-weight: 800; letter-spacing: 0.18em;
  color: #4ADE80; margin-bottom: 3px;
}
.sample-report-page .cta-text {
  font-size: 12.5px; font-weight: 600; color: #F0F8F3;
  line-height: 1.55; word-break: keep-all;
}

/* ── P2 ─────────────────────────────────────────────── */

/* P2: News 그리드 */
.sample-report-page .news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 16px;
}
.sample-report-page .news-card {
  border: 1px solid var(--rpt-line); border-radius: 5px;
  padding: 11px 13px;
  background: var(--rpt-paper);
  display: flex; flex-direction: column; gap: 6px;
  min-height: 92px;
}
.sample-report-page .news-cat {
  display: inline-flex; align-self: flex-start;
  font-size: 9px; font-weight: 800;
  padding: 2px 8px; border-radius: 9px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: var(--green-50); color: var(--green-700);
}
.sample-report-page .news-cat.cat-lease  { background: #F0F4FB; color: #1F4DBF; }
.sample-report-page .news-cat.cat-policy { background: #FBF4E6; color: #B36A00; }
.sample-report-page .news-title {
  font-size: 11.5px; font-weight: 700; color: var(--rpt-ink-900);
  line-height: 1.5; word-break: keep-all; text-wrap: pretty;
  letter-spacing: -0.005em;
}
.sample-report-page .news-source {
  margin-top: auto;
  font-size: 9.5px; color: var(--rpt-ink-400); letter-spacing: 0.02em;
}

/* P2: 평형별 시장 온도 */
.sample-report-grid-divider {}
.sample-report-page .temperature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rpt-line);
  border-bottom: 1px solid var(--rpt-line);
  margin-bottom: 16px;
}
.sample-report-page .temp-block {
  padding: 13px 16px 13px 0;
  border-right: 1px solid var(--rpt-line);
  display: flex; flex-direction: column; gap: 5px;
}
.sample-report-page .temp-block + .temp-block { padding-left: 16px; }
.sample-report-page .temp-block:last-child { border-right: none; padding-right: 0; }
.sample-report-page .temp-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px;
}
.sample-report-page .temp-name {
  font-size: 12px; font-weight: 700; color: var(--rpt-ink-900);
  letter-spacing: -0.005em;
}
.sample-report-page .temp-tag {
  font-size: 9.5px; font-weight: 800;
  padding: 2px 8px; border-radius: 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.sample-report-page .temp-tag.t-cold { background: var(--rpt-fall-bg); color: var(--rpt-fall); }
.sample-report-page .temp-tag.t-cool { background: #E8F0EE;            color: #2E7256; }
.sample-report-page .temp-tag.t-warm { background: #FBF4E6;            color: var(--rpt-warn); }
.sample-report-page .temp-tag.t-hot  { background: var(--rpt-rise-bg); color: var(--rpt-rise); }
.sample-report-page .temp-score {
  font-size: 22px; font-weight: 800; color: var(--rpt-ink-900);
  letter-spacing: -0.025em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.sample-report-page .temp-score small {
  font-size: 12px; font-weight: 700; color: var(--rpt-ink-400); margin-left: 1px;
}
.sample-report-page .temp-meta {
  font-size: 10.5px; color: var(--rpt-ink-500); line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.sample-report-page .temp-note {
  font-size: 11px; color: var(--rpt-ink-700); line-height: 1.55;
  word-break: keep-all;
}

/* P2: 협상력 분석 */
.sample-report-page .negotiation-box {
  border: 1px solid var(--rpt-line); border-radius: 6px;
  background: var(--rpt-paper);
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 11px;
  margin-bottom: 16px;
}
.sample-report-page .neg-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap;
}
.sample-report-page .neg-verdict {
  font-size: 14px; font-weight: 800;
  color: var(--green-700); letter-spacing: -0.01em;
  white-space: nowrap;
}
.sample-report-page .neg-code {
  font-size: 9.5px; letter-spacing: 0.18em;
  color: var(--rpt-ink-400); font-weight: 700;
}
.sample-report-page .neg-bar {
  height: 14px; border-radius: 7px; overflow: hidden;
  background: var(--rpt-line-2); display: flex;
}
.sample-report-page .neg-bar-seller {
  background: var(--rpt-ink-300);
  display: flex; align-items: center; justify-content: flex-start;
  padding-left: 10px;
  color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em;
}
.sample-report-page .neg-bar-buyer {
  background: var(--green-700);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 10px;
  color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em;
}
.sample-report-page .neg-foot {
  font-size: 11.5px; color: var(--rpt-ink-700); line-height: 1.55;
  word-break: keep-all;
  display: flex; flex-direction: column; gap: 2px;
}

/* P2: 주목 거래 */
.sample-report-page .deal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.sample-report-page .notable-deal {
  border: 1px solid var(--rpt-line); border-radius: 6px;
  background: var(--rpt-paper);
  padding: 13px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.sample-report-page .notable-deal.deal-high { border-top: 3px solid var(--rpt-rise); }
.sample-report-page .notable-deal.deal-low  { border-top: 3px solid var(--rpt-fall); }
.sample-report-page .deal-tag-row {
  display: flex; justify-content: space-between; align-items: center;
}
.sample-report-page .deal-tag {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sample-report-page .deal-tag.tag-high { color: var(--rpt-rise); }
.sample-report-page .deal-tag.tag-low  { color: var(--rpt-fall); }
.sample-report-page .deal-conf {
  font-size: 9px; color: var(--rpt-ink-400); letter-spacing: 0.06em;
  white-space: nowrap;
}
.sample-report-page .deal-price {
  font-size: 22px; font-weight: 800; color: var(--rpt-ink-900);
  letter-spacing: -0.025em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.sample-report-page .deal-meta {
  font-size: 10.5px; color: var(--rpt-ink-500); line-height: 1.5;
}
.sample-report-page .deal-note {
  font-size: 11px; color: var(--rpt-ink-700); line-height: 1.55;
  word-break: keep-all;
  padding-top: 6px; border-top: 1px dashed var(--rpt-line);
}
.sample-report-page .deal-action {
  font-size: 11px; color: var(--green-700); font-weight: 600;
  line-height: 1.55; word-break: keep-all;
}

/* ── P3 ─────────────────────────────────────────────── */

/* P3: 헤드라인 */
.sample-report-page .p3-headline {
  font-size: 22px; font-weight: 800;
  color: var(--rpt-ink-900); letter-spacing: -0.022em;
  line-height: 1.32; margin-bottom: 5px;
  word-break: keep-all; max-width: 165mm;
}
.sample-report-page .p3-subhead {
  font-size: 11.5px; color: var(--rpt-ink-500);
  letter-spacing: 0.02em; margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

/* P3: 시그널 그리드 */
.sample-report-page .signal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rpt-line);
  border-bottom: 1px solid var(--rpt-line);
  margin-bottom: 18px;
}
.sample-report-page .signal-block {
  padding: 14px 16px 14px 0;
  border-right: 1px solid var(--rpt-line);
  display: flex; flex-direction: column;
}
.sample-report-page .signal-block + .signal-block { padding-left: 16px; }
.sample-report-page .signal-block:last-child { border-right: none; padding-right: 0; }
.sample-report-page .signal-cat {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--rpt-ink-400); text-transform: uppercase;
  margin-bottom: 6px;
}
.sample-report-page .signal-conclusion {
  font-size: 14px; font-weight: 800; color: var(--rpt-ink-900);
  letter-spacing: -0.01em; margin-bottom: 5px; line-height: 1.35;
}
.sample-report-page .signal-conclusion .delta {
  display: inline-block; margin-left: 4px;
  font-size: 12.5px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.sample-report-page .signal-desc {
  font-size: 11.5px; color: var(--rpt-ink-500); line-height: 1.62;
  word-break: keep-all;
}

/* P3: 지역 심층 */
.sample-report-page .district-review {
  display: flex; flex-direction: column; gap: 0;
}
.sample-report-page .district-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--rpt-line);
}
.sample-report-page .district-row:last-child { border-bottom: none; padding-bottom: 6px; }
.sample-report-page .district-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.sample-report-page .district-name {
  font-size: 16px; font-weight: 800; color: var(--rpt-ink-900);
  letter-spacing: -0.015em; white-space: nowrap;
}
.sample-report-page .district-status {
  font-size: 11.5px; color: var(--rpt-ink-500); font-weight: 500;
  flex: 1; word-break: keep-all;
}
.sample-report-page .district-status .tone { margin-left: 6px; vertical-align: 1px; }
.sample-report-page .district-metrics {
  display: flex; align-items: center; flex-wrap: wrap;
  font-size: 11px; color: var(--rpt-ink-700);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.sample-report-page .district-metric {
  padding: 2px 0; display: inline-flex; align-items: center; gap: 5px;
}
.sample-report-page .district-metric + .district-metric::before {
  content: ''; display: inline-block;
  width: 1px; height: 10px; background: var(--rpt-line);
  margin: 0 11px 0 0;
}
.sample-report-page .district-metric .lbl { color: var(--rpt-ink-400); font-weight: 500; }
.sample-report-page .district-metric .val { font-weight: 700; color: var(--rpt-ink-900); }
.sample-report-page .district-apt {
  font-size: 10.5px; color: var(--green-700); margin-bottom: 6px; font-weight: 600;
}
.sample-report-page .district-apt::before {
  content: '대표 단지 ·'; color: var(--rpt-ink-400); font-weight: 500; margin-right: 4px;
}
.sample-report-page .district-note {
  font-size: 11.5px; color: var(--rpt-ink-700); line-height: 1.65;
  word-break: keep-all;
  padding-left: 10px; border-left: 2px solid var(--green-500);
}
.sample-report-page .district-row.row-warn .district-note { border-left-color: var(--rpt-warn); }
.sample-report-page .district-row.row-balanced .district-note { border-left-color: var(--rpt-ink-300); }

/* P3: Risk Note */
.sample-report-page .risk-note {
  margin-top: 12px;
  display: flex; align-items: center; gap: 14px;
  min-height: 38px;
  padding: 10px 16px;
  border: 1px solid #DFE7E3;
  border-left: 3px solid #C57900;
  border-radius: 6px;
  background: #FFFDF8;
}
.sample-report-page .risk-label {
  flex: 0 0 auto;
  font-size: 10px; font-weight: 900;
  letter-spacing: 0.16em; color: #B36B00;
  white-space: nowrap;
}
.sample-report-page .risk-text {
  font-size: 12.5px; line-height: 1.5;
  color: var(--rpt-ink-700);
  word-break: keep-all;
}

/* ── P4 ─────────────────────────────────────────────── */

/* P4: Q&A */
.sample-report-page .qa-list {
  display: flex; flex-direction: column;
  margin-bottom: 18px;
}
.sample-report-page .qa-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--rpt-line);
}
.sample-report-page .qa-item:last-child { border-bottom: none; padding-bottom: 6px; }
.sample-report-page .qa-q {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 6px;
}
.sample-report-page .qa-role {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  padding: 2px 9px; border-radius: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--green-50); color: var(--green-700);
}
.sample-report-page .qa-role.role-buy  { background: var(--green-50);     color: var(--green-700); }
.sample-report-page .qa-role.role-sell { background: var(--rpt-rise-bg); color: var(--rpt-rise); }
.sample-report-page .qa-role.role-wait { background: var(--rpt-warn-bg); color: var(--rpt-warn); }
.sample-report-page .qa-question {
  font-size: 13.5px; font-weight: 800; color: var(--rpt-ink-900);
  letter-spacing: -0.012em; line-height: 1.4; word-break: keep-all;
}
.sample-report-page .qa-answer {
  font-size: 11.5px; color: var(--rpt-ink-700); line-height: 1.7;
  padding-left: 10px; border-left: 2px solid var(--rpt-line);
  margin-left: 4px; word-break: keep-all;
}
.sample-report-page .qa-answer::before {
  content: 'A.'; font-weight: 800; color: var(--green-700);
  margin-right: 6px; letter-spacing: 0.04em;
}

/* P4: Playbook */
.sample-report-page .playbook {
  border: 1px solid var(--rpt-line); border-radius: 6px;
  background: var(--rpt-paper);
  display: flex; flex-direction: column;
  margin-bottom: 18px;
}
.sample-report-page .playbook-row {
  display: grid; grid-template-columns: 84px 1fr;
  gap: 14px; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rpt-line-2);
}
.sample-report-page .playbook-row:last-child { border-bottom: none; }
.sample-report-page .playbook-tag {
  font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 4px;
  letter-spacing: 0.04em; text-align: center;
  border-left: 3px solid var(--green-500);
  background: transparent; color: var(--rpt-ink-900);
  padding-left: 11px;
  text-align: left;
}
.sample-report-page .playbook-tag.tag-buy  { border-left-color: var(--green-500); color: var(--green-700); }
.sample-report-page .playbook-tag.tag-sell { border-left-color: var(--rpt-rise);  color: var(--rpt-rise); }
.sample-report-page .playbook-tag.tag-wait { border-left-color: var(--rpt-warn);  color: var(--rpt-warn); }
.sample-report-page .playbook-text {
  font-size: 12px; color: var(--rpt-ink-700); line-height: 1.6;
  word-break: keep-all;
}

/* P4: Consult Message */
.sample-report-page .consult-message {
  background: var(--green-ink); color: #E9F1EC;
  padding: 16px 20px; border-radius: 6px;
  position: relative; overflow: hidden;
  margin-bottom: 12px;
}
.sample-report-page .consult-message::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0;
  width: 3px; background: var(--green-500);
}
.sample-report-page .consult-label {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.18em;
  color: #4ADE80; margin-bottom: 5px;
}
.sample-report-page .consult-text {
  font-size: 13px; font-weight: 600; color: #F0F8F3;
  line-height: 1.6; word-break: keep-all;
}

/* P4: 발행 정보 (consult-message 바로 아래 inline 라인) */
.sample-report-page .issue-meta {
  margin-top: 4px; margin-bottom: 18px;
  padding-top: 4px;
  font-size: 10px; color: var(--rpt-ink-400);
  letter-spacing: 0.04em; text-align: center;
  font-variant-numeric: tabular-nums;
}
.sample-report-page .issue-meta strong {
  color: var(--green-700); font-weight: 700;
}

/* ============================================================
   P3 추가 섹션 — 다음 주 관전 포인트 (Watch Next Week)
   ============================================================ */
.sample-report-page .watch-section { margin-top: 16px; }
.sample-report-page .watch-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}
.sample-report-page .watch-item {
  display: grid; grid-template-columns: 26px 1fr;
  gap: 10px; align-items: start;
  padding: 9px 0;
  border-top: 1px solid var(--rpt-line-2);
}
.sample-report-page .watch-item:first-child,
.sample-report-page .watch-item:nth-child(2) {
  border-top: none; padding-top: 4px;
}
.sample-report-page .watch-num {
  font-size: 11px; font-weight: 800;
  color: var(--green-700);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.sample-report-page .watch-body { display: flex; flex-direction: column; gap: 3px; }
.sample-report-page .watch-head {
  font-size: 12px; font-weight: 700;
  color: var(--rpt-ink-900);
  letter-spacing: -0.005em;
}
.sample-report-page .watch-text {
  font-size: 11px; color: var(--rpt-ink-700);
  line-height: 1.55; word-break: keep-all;
  margin: 0;
}

/* ============================================================
   P4 추가 섹션 — 데이터 출처 & 발행 정보
   ============================================================ */
.sample-report-page .sources-section { margin-top: auto; }
.sample-report-page .sources-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rpt-line);
  border-bottom: 1px solid var(--rpt-line);
  margin-bottom: 12px;
}
.sample-report-page .source-card {
  padding: 10px 14px 11px 0;
  border-right: 1px solid var(--rpt-line);
  display: flex; flex-direction: column; gap: 3px;
}
.sample-report-page .source-card + .source-card { padding-left: 14px; }
.sample-report-page .source-card:last-child { border-right: none; padding-right: 0; }
.sample-report-page .source-card-lbl {
  font-size: 9px; font-weight: 800;
  color: var(--rpt-ink-400);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.sample-report-page .source-card-val {
  font-size: 12px; font-weight: 700;
  color: var(--rpt-ink-900);
  letter-spacing: -0.005em; line-height: 1.4;
  word-break: keep-all;
}
.sample-report-page .source-card-meta {
  font-size: 10.5px; color: var(--rpt-ink-500);
  line-height: 1.5; word-break: keep-all;
}
.sample-report-page .source-card-meta strong {
  color: var(--rpt-ink-900); font-weight: 700;
}

.sample-report-page .issue-info {
  display: flex; flex-direction: column;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 6px;
  padding: 10px 14px;
}
.sample-report-page .issue-info-row {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 10px;
  font-size: 11px;
  padding: 4px 0;
}
.sample-report-page .issue-info-row + .issue-info-row {
  border-top: 1px dashed rgba(11,61,46,0.10);
}
.sample-report-page .issue-info-lbl {
  font-size: 9.5px; font-weight: 800;
  color: var(--green-700);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding-top: 2px;
}
.sample-report-page .issue-info-val {
  font-size: 11.5px; color: var(--rpt-ink-700);
  font-weight: 600; letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   반응형 — 모바일에서는 A4 폭을 풀고 1열로 자연스럽게
   ============================================================ */
@media (max-width: 880px) {
  .sample-report-page .report-viewer { padding: 16px 0 60px; gap: 14px; }
  .sample-report-page .report-shell { gap: 14px; max-width: 100%; }
  .sample-report-page .report-page {
    width: 100%; min-height: 0;
    box-shadow: 0 4px 18px rgba(11,61,46,0.08);
    border-radius: 0;
  }
  .sample-report-page .report-page-pad { padding: 22px 18px 24px; }

  .sample-report-page .report-page-head {
    flex-direction: column; align-items: flex-start; gap: 4px;
  }
  .sample-report-page .cover-mast { flex-direction: column; gap: 8px; }
  .sample-report-page .cover-mast-right { text-align: left; }
  .sample-report-page .report-title.cover-headline { font-size: 26px; }
  .sample-report-page .cover-sub { font-size: 13px; }

  .sample-report-page .diag-pills { flex-direction: column; }
  .sample-report-page .diag-pill { border-right: none; border-bottom: 1px solid var(--rpt-line); }
  .sample-report-page .diag-pill:last-child { border-bottom: none; }

  .sample-report-page .metric-grid,
  .sample-report-page .signal-grid,
  .sample-report-page .temperature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sample-report-page .metric-card,
  .sample-report-page .signal-block,
  .sample-report-page .temp-block {
    padding: 12px !important;
    border-right: none;
    border-bottom: 1px solid var(--rpt-line);
  }
  .sample-report-page .metric-card:last-child,
  .sample-report-page .signal-block:last-child,
  .sample-report-page .temp-block:last-child { border-bottom: none; }

  .sample-report-page .p1-body,
  .sample-report-page .news-grid,
  .sample-report-page .action-grid,
  .sample-report-page .deal-grid {
    grid-template-columns: 1fr;
  }

  .sample-report-page .district-metrics { gap: 4px 0; }
  .sample-report-page .playbook-row { grid-template-columns: 64px 1fr; gap: 10px; }

  .sample-report-page .watch-grid { grid-template-columns: 1fr; gap: 0; }
  .sample-report-page .watch-item:nth-child(2) { border-top: 1px solid var(--rpt-line-2); padding-top: 9px; }

  .sample-report-page .sources-grid { grid-template-columns: 1fr; }
  .sample-report-page .source-card {
    padding: 12px !important;
    border-right: none;
    border-bottom: 1px solid var(--rpt-line);
  }
  .sample-report-page .source-card:last-child { border-bottom: none; }
  .sample-report-page .issue-info-row { grid-template-columns: 70px 1fr; }
}

@media (max-width: 480px) {
  .sample-report-page .metric-grid,
  .sample-report-page .signal-grid,
  .sample-report-page .temperature-grid {
    grid-template-columns: 1fr;
  }
  .sample-report-page .report-title.cover-headline { font-size: 22px; }
  .sample-report-page .deal-price,
  .sample-report-page .metric-num,
  .sample-report-page .temp-score { font-size: 19px; }
}

/* ============================================================
   프린트 — 화면용 chrome 모두 숨기고 실제 4p 리포트로
   ============================================================ */
@media print {
  .main-nav, .nav-inner,
  .sample-report-banner,
  .no-print { display: none !important; }

  body.report-page { background: #fff !important; }
  .sample-report-page { background: #fff !important; }
  .sample-report-page .report-viewer { padding: 0 !important; gap: 0 !important; }
  .sample-report-page .report-shell  { gap: 0 !important; max-width: none; }

  .sample-report-page .report-page {
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 210mm; min-height: 297mm; height: 297mm;
    page-break-after: always;
    break-after: page;
    margin: 0;
  }
  .sample-report-page .report-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  @page { size: A4; margin: 0; }
}
