/* ==========================================================
   analysis-report.html 전용 스타일 (신규 파일)
   기존 style.css의 컬러 토큰(--black, --charcoal, --red 등)과
   .container / .consult / .form-wrap / .mobile-cta / .site-footer
   등 기존 클래스를 그대로 재사용하며, 이 파일은 신규 요소만 정의한다.
   ========================================================== */

/* ---------- 상단바 ---------- */
.rp-header {
  background: var(--charcoal);
  border-bottom: 1px solid var(--line);
}
.rp-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.rp-brand { color: var(--white); font-weight: 900; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.rp-back { color: var(--ink-soft); font-size: 14px; font-weight: 700; padding: 8px 4px; white-space: nowrap; }
.rp-back:hover { color: var(--white); }
.rp-back-short { display: none; }
@media (max-width: 420px) {
  .rp-back-long { display: none; }
  .rp-back-short { display: inline; }
  .rp-brand { font-size: 13.5px; }
  .rp-back { font-size: 13px; }
}

/* ---------- 인트로 ---------- */
.rp-intro {
  padding: 56px 0 40px; text-align: center;
  border-bottom: 1px solid var(--line);
}
.rp-eyebrow {
  color: var(--red); font-weight: 900; font-size: 12px; letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.rp-title {
  font-family: var(--serif); font-weight: 900; color: var(--white);
  font-size: clamp(26px, 4.2vw, 42px); line-height: 1.35; margin-bottom: 18px;
}
.rp-lead {
  color: var(--ink-soft); font-size: clamp(15px, 1.8vw, 18px); line-height: 1.75;
  max-width: 640px; margin: 0 auto 26px;
}
.rp-tel {
  display: inline-block; background: var(--red); color: var(--white);
  font-weight: 700; font-size: 15px; padding: 13px 28px; border-radius: 5px;
}
.rp-tel:hover { background: var(--red-deep); }

/* ---------- 자료 선택 탭 ---------- */
.rp-select { padding: 30px 0 0; }
.rp-tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.rp-tab {
  display: flex; align-items: center; gap: 8px; background: transparent; border: none;
  color: var(--ink-dim); font-weight: 700; font-size: 15px; padding: 14px 22px;
  cursor: pointer; border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.rp-tab-icon { font-size: 12px; }
.rp-tab:hover { color: var(--white); }
.rp-tab.is-active { color: var(--white); border-bottom-color: var(--red); }

/* ---------- 패널 공통 ---------- */
.rp-panel { padding: 40px 0 64px; }
.rp-panel[hidden] { display: none; }

/* ---------- 영상 ---------- */
.rp-video-wrap {
  background: #000; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.rp-video { width: 100%; height: auto; max-height: 78vh; display: block; background: #000; }
.rp-caption { text-align: center; color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-top: 22px; }

/* ---------- 툴바(새 창·전체화면) ---------- */
.rp-toolbar { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.rp-tool-btn {
  background: var(--charcoal-hi); color: var(--white); border: 1px solid var(--line);
  font-weight: 700; font-size: 13.5px; padding: 10px 18px; border-radius: 5px; cursor: pointer;
}
.rp-tool-btn:hover { background: var(--charcoal); }
.rp-tool-btn-primary { background: var(--red); border-color: var(--red); }
.rp-tool-btn-primary:hover { background: var(--red-deep); }

/* ---------- 웹 리포트 / PDF 뷰어 프레임 ---------- */
.rp-iframe-wrap, .rp-pdf-wrap {
  position: relative; width: 100%; height: min(78vh, 900px);
  background: var(--charcoal); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.rp-iframe-wrap iframe, .rp-pdf-wrap iframe, .rp-pdf-wrap embed {
  width: 100%; height: 100%; border: 0; display: block; background: #fff;
}
.rp-iframe-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink-dim); font-size: 14px; text-align: center; padding: 0 20px;
}
.rp-iframe-fallback { text-align: center; color: var(--ink-dim); font-size: 13.5px; margin-top: 14px; }
.rp-iframe-fallback a { color: var(--red); font-weight: 700; text-decoration: underline; }

/* ---------- PDF 선택 ---------- */
.rp-pdf-select { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.rp-pdf-btn {
  flex: 1; min-width: 220px; background: var(--charcoal-hi); color: var(--ink-soft);
  border: 1px solid var(--line); font-weight: 700; font-size: 14px; padding: 14px 18px;
  border-radius: 8px; cursor: pointer; text-align: left;
}
.rp-pdf-btn:hover { color: var(--white); }
.rp-pdf-btn.is-active { color: var(--white); border-color: var(--red); background: var(--charcoal); }
.rp-pdf-desc { color: var(--ink-dim); font-size: 14px; margin-bottom: 8px; line-height: 1.6; }
.rp-pdf-viewonly {
  display: inline-block; color: var(--red); font-weight: 700; font-size: 12.5px;
  background: rgba(228, 3, 46, 0.1); border: 1px solid rgba(228, 3, 46, 0.35);
  border-radius: 4px; padding: 5px 10px; margin-bottom: 16px;
}

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .rp-iframe-wrap, .rp-pdf-wrap { height: 62vh; }
}
@media (max-width: 640px) {
  .rp-header-inner { padding: 12px 16px; }
  .rp-intro { padding: 44px 0 32px; }
  .rp-tabs { justify-content: stretch; }
  .rp-tab { flex: 1; justify-content: center; padding: 12px 6px; font-size: 13px; }
  .rp-video { max-height: 42vh; }
  .rp-iframe-wrap, .rp-pdf-wrap { height: 52vh; }
  .rp-pdf-select { flex-direction: column; }
  .rp-pdf-btn { min-width: 0; }
  .rp-toolbar { justify-content: stretch; }
  .rp-toolbar .rp-tool-btn, a.rp-tool-btn { flex: 1; text-align: center; }
}
