/* ============================================================
   리포트 상세 페이지 공통 스타일
   모든 pages/*.html 은 이 클래스 체계만 사용합니다.
   ============================================================ */

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 26px 22px 90px;
}

/* ---------- 히어로 (report.js가 report-meta로 생성) ---------- */
.hero {
  background: linear-gradient(142deg, #10233f 0%, #17335c 55%, #1d3f74 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 30px 32px 26px;
  box-shadow: var(--sh-2);
}
.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}
.hero__tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 4px 11px;
  border-radius: 999px;
  color: #dbe4f0;
}
.hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
}
.hero h1 .hero__code {
  font-size: 17px;
  font-weight: 600;
  color: #93a8c6;
  margin-left: 8px;
  letter-spacing: 0;
}
.hero__headline {
  font-size: 15.5px;
  font-weight: 600;
  color: #cddaeb;
  margin: 6px 0 0;
}
.hero__thesis {
  font-size: 14px;
  color: #a9bad2;
  margin: 10px 0 0;
  max-width: 660px;
  line-height: 1.65;
}
.hero__thesis b { color: #eef3fa; font-weight: 700; }

.hero__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.kpi {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  padding: 13px 15px;
}
.kpi__k { font-size: 11.5px; color: #9dafc8; margin-bottom: 5px; }
.kpi__v { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.kpi__v small { font-size: 12.5px; font-weight: 600; color: #bccbe0; margin-left: 3px; }
.kpi--rate .kpi__v { font-size: 17px; color: #ffd479; }
.kpi__v.is-up { color: #ff8f7d; }
.kpi__v.is-down { color: #86bdf5; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 22px;
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: 12.5px;
  color: #a9bad2;
}
.hero__facts b { color: #fff; font-weight: 700; }
.hero__disc {
  font-size: 11.5px;
  line-height: 1.55;
  color: #7f92ad;
  margin-top: 15px;
}

/* ---------- 섹션 ---------- */
.sec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin-top: 18px;
  box-shadow: var(--sh-1);
}
.sec > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19.5px;
  margin: 0 0 3px;
}
.sec__num {
  flex: none;
  width: 29px; height: 29px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
}
.sec__lead {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 18px;
  padding-left: 41px;
}
.sec h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 24px 0 8px;
  padding-left: 11px;
  border-left: 3px solid var(--accent);
  line-height: 1.4;
}

/* ---------- 실적 스냅샷 ---------- */
.snap {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 6px 0 18px;
}
.snap__head {
  background: var(--navy);
  color: #fff;
  padding: 11px 17px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.snap__head span { font-size: 11.5px; font-weight: 500; color: #a9bad2; }
.snap__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.metric { background: var(--surface); padding: 14px 16px; }
.metric__k { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.metric__v { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.metric__d { font-size: 11.5px; font-weight: 600; margin-top: 3px; color: var(--muted); }
.snap__note {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: 12px 17px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ---------- 콜아웃 ---------- */
.note {
  border-radius: var(--r-md);
  padding: 14px 17px;
  font-size: 13.8px;
  line-height: 1.65;
  margin: 14px 0;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.note__h {
  display: block;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 5px;
}
.note--pos { background: var(--pos-soft); border-color: var(--pos-line); }
.note--pos .note__h { color: var(--pos); }
.note--neg { background: var(--neg-soft); border-color: var(--neg-line); }
.note--neg .note__h { color: var(--neg); }
.note--warn { background: var(--warn-soft); border-color: var(--warn-line); }
.note--warn .note__h { color: var(--warn); }
.note--info { background: var(--info-soft); border-color: var(--info-line); }
.note--info .note__h { color: var(--info); }

.verdict {
  display: inline-block;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--r-xs);
  background: var(--navy);
  color: #fff;
  font-size: 13.5px;
}

/* ---------- 표 ---------- */
.tbl-scroll { overflow-x: auto; margin: 14px 0; }
table.tbl {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
}
table.tbl th,
table.tbl td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  text-align: right;
}
table.tbl th {
  background: var(--surface-3);
  font-weight: 700;
  text-align: center;
  color: var(--ink-2);
  white-space: nowrap;
}
table.tbl td:first-child,
table.tbl th:first-child { text-align: left; white-space: nowrap; }
/* 설명이 긴 열은 왼쪽 정렬 + 줄바꿈 허용 */
table.tbl td.t-left,
table.tbl th.t-left { text-align: left; white-space: normal; min-width: 200px; }
table.tbl tr.is-highlight td { background: var(--accent-soft); font-weight: 700; }
table.tbl tbody tr:hover td { background: var(--surface-2); }
table.tbl tr.is-highlight:hover td { background: var(--accent-soft); }

/* ---------- 차트 ---------- */
.chart { margin: 18px 0 6px; }
.chart__title { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.chart__box { position: relative; height: 300px; }
.chart__box.is-sm { height: 250px; }
.src {
  font-size: 12.2px;
  color: var(--muted);
  line-height: 1.6;
  margin: 9px 0 0;
}

/* ---------- 리스트 ---------- */
ul.list { margin: 11px 0; padding-left: 19px; }
ul.list li { margin: 8px 0; }

/* ---------- 시나리오 알약 ---------- */
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-right: 7px;
}
.pill--bear { background: var(--info-soft); color: var(--down); }
.pill--base { background: var(--surface-3); color: var(--ink-2); }
.pill--bull { background: var(--neg-soft); color: var(--up); }
.pill--key { background: var(--warn-soft); color: var(--warn); }

/* 형광펜 강조 — 문장 안에서 한 구절만 집어낼 때 */
.hl { background: linear-gradient(180deg, transparent 62%, #fbe6b8 62%); }

/* ---------- 푸터 ---------- */
.foot {
  margin-top: 24px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  font-size: 12.3px;
  color: var(--muted);
  line-height: 1.7;
}
.foot b { color: var(--ink-2); }
.foot p { margin: 7px 0; }
.foot__nav {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.foot__nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.foot__nav a:hover { text-decoration: underline; }

/* ---------- 반응형 ---------- */
@media (max-width: 760px) {
  .wrap { padding: 18px 15px 70px; }
  .hero { padding: 24px 20px 22px; border-radius: var(--r-md); }
  .hero h1 { font-size: 22px; }
  .hero h1 .hero__code { display: block; margin: 3px 0 0; font-size: 14px; }
  .hero__kpis, .snap__grid { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: 20px 17px; border-radius: var(--r-md); }
  .sec > h2 { font-size: 17.5px; }
  .sec__lead { padding-left: 0; }
  .foot { padding: 18px 17px; }
}
