/* webzine_common/css/sub.css
 * 모든 호(vol) 공통 서브(기사) 페이지 규칙.
 * 서브 페이지 골격(.sub-main / .side-quick / .side-pdf / .sub-article 등)은
 * webzine_common/css/layout.css. 본 파일은 모든 호가 공유하는 기사 본문
 * 콘텐츠(article-*, fig-title, data-table)와 구독 폼(subscribe-page, subscribe__*) 전용.
 * 이 호(vol) 전용 추가 스타일은 vol{N}/css/vol_sub.css. */

.sub-article__title {
  margin-bottom: 24px;
  color: var(--ink-strong);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.sub-article__intro {
  margin-bottom: 40px;
  color: var(--ink-sub);
  font-size: 1.18rem;
  line-height: 1.85;
  word-break: keep-all;
}

.sub-article__content {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.85;
}
.sub-article__content > * + * { margin-top: 32px; }

/* ─── 세션 블록 (평면 흰색 섹션) ─── */
.article-section {
  margin-top: 48px;
  padding: 0;
  background: #ffffff;
}
.article-section + .article-section { margin-top: 28px; }

.article-section__head {
  margin-bottom: 3rem;
  margin-top: 3rem;
}

.article-section__label {
  display: inline-block;
  margin-bottom: 8px;
  margin-right: 12px;
  background: transparent;
  color: var(--ink-strong);
  font-size: clamp(1.7rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.article-section__title {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-size: clamp(1.7rem, 3vw, 2rem);
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.article-section__lead {
  display: block;
  width: min(100%, 860px);
  margin: 12px auto 10px;
  padding: 20px 28px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.65;
  background: black;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}

.article-section__head .article-section__lead {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.article-section__intro {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ─── 주석(노트) ─── 본문 하단 * / ** 각주 형식 */
.article-note {
  margin-top: -12px;
  margin-bottom: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  line-height: 1.6;
}
.article-note span { display: block; }
.article-note span + span { margin-top: 2px; }

/* ─── 그림/표 제목 바 (이미지 상단) ─── */
/* .ig 그리드 안에서 order:-1 로 이미지 위에 배치 */
.fig-title {
  order: -1;
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 30px;
  margin-bottom: 12px;
}
.fig-title__label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--kvic-navy);
  color: #ffffff;
  font-size: 1rem;
  white-space: nowrap;
}
.fig-title__text {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 8px 18px;
  background: rgba(40, 62, 129, 0.1);
  color: var(--ink-strong);
  font-size: 1rem;
  word-break: keep-all;
}

/* 다열 이미지 그리드에서 제목은 전체 너비 */
.ig--cols > .fig-title {
  grid-column: 1 / -1;
}

/* 칼럼 내 이미지를 동일 높이로 꽉 채움 */
.ig--cols.ig--img-fill .ig__col > .ig__img {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: fill;
}

/* ─── 데이터 표 (산업별 현황 등) ─── */
.data-table { margin: 32px 0; }

.data-table__unit {
  margin-bottom: 6px;
  font-size: 1rem;
  text-align: right;
}

.data-table__scroll { overflow-x: auto; }

.data-table__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.4;
}

.data-table__table th,
.data-table__table td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: center;
}

.data-table__table tbody th:first-child,
.data-table__table tbody td:first-child {
  text-align: center;
  font-weight: inherit;
}

.data-table__table thead th {
  background: var(--kvic-navy);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  border-color: var(--kvic-navy);
}

.data-table__table tbody .is-total {
  font-weight: 800;
  background: rgba(40, 62, 129, 0.14);
}

.data-table__table tbody .is-category {
  font-weight: 700;
  background: rgba(40, 62, 129, 0.07);
}

.data-table__table tbody .is-cumulative {
  background: #eef4fb;
}

.data-table__table--centered tbody th:first-child,
.data-table__table--centered tbody td:first-child {
  text-align: center;
  font-weight: 700;
}

.data-table__table--centered tbody td {
  text-align: center;
}

/* 연도×지표 매트릭스 (첫열 헤더색, 줄무늬, 구간 구분) */
.data-table__table--matrix thead th {
  background: var(--kvic-navy);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  border-color: var(--kvic-navy);
}

.data-table__table--matrix thead th:first-child {
  background: #ffffff;
  color: inherit;
  border-color: var(--border);
}

.data-table__table--matrix tbody th {
  background: var(--kvic-navy);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  border-color: var(--kvic-navy);
  white-space: normal;
  line-height: 1.25;
  min-width: 7.5em;
}

.data-table__table--matrix tbody th:first-child {
  text-align: center;
}

.data-table__table--matrix tbody td {
  text-align: center;
  background: #ffffff;
}

.data-table__table--matrix tbody tr.is-alt td {
  background: #d8d8d8;
}

.data-table__table--matrix tbody tr.is-spacer td {
  border: none;
  height: 10px;
  padding: 0;
  background: transparent;
}

.data-table__note {
  margin-top: 0px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.9rem;
}

.data-table__note--end {
  justify-content: flex-end;
  text-align: right;
}

.data-table__note--split {
  justify-content: space-between;
}

.data-table__note--split .data-table__note-left {
  text-align: left;
}

.data-table__note--split .data-table__note-right {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 768px) {
  .data-table__table { min-width: 520px; }
}

/* 본문 내 각주 마커 */
.article-section__intro sup,
.article-topic__body sup {
  color: var(--kvic-navy);
  font-weight: 700;
}

/* ─── 발제 카드 (Speaker Topic) ─────────────── */

.article-topic {
  padding: 24px 0 50px;
  border-top: 1px solid var(--border-light);
}
.article-topic:first-of-type {
  border-top: none;
  padding-top: 8px;
}

.article-topic__title {
  margin-bottom: 20px;
  color: var(--kvic-indigo);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.article-topic__speaker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 16px;
  padding-left: 10px;
  font-size: 1rem;
  color: var(--ink-sub);
  letter-spacing: -0.01em;
  border-left: 3px solid var(--hint-navy);
}

.article-topic__body p {
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.9;
  letter-spacing: -0.01em;
}
.article-topic__body p + p { margin-top: 14px; }

/* 기사 이미지(.ig) 모서리 */
.ig,
.ig img {
  border-radius: var(--radius-sm);
}

/* ═══ 구독 신청/취소 페이지 (subscribe.html) ═══════════ */

.subscribe-page__head {
  margin-bottom: 40px;
  text-align: center;
}
.subscribe-page__eyebrow {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-sub);
  margin-bottom: 8px;
}
.subscribe-page__title {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink-strong);
  margin-bottom: 14px;
}
.subscribe-page__intro {
  font-size: 1.05rem;
  color: var(--ink-sub);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
  word-break: keep-all;
}

.subscribe__tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.subscribe__tab {
  padding: 10px 18px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.subscribe__tab.is-active {
  color: var(--kvic-navy);
  border-bottom-color: var(--kvic-navy);
}

.subscribe__panel { display: none; }
.subscribe__panel.is-active { display: block; }

.subscribe__field {
  display: block;
  margin-bottom: 16px;
}
.subscribe__flabel {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-strong);
}
.subscribe__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--ink-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.subscribe__input:focus {
  outline: none;
  border-color: var(--kvic-navy);
  box-shadow: 0 0 0 3px rgba(40, 62, 129, 0.16);
}

.subscribe__policy {
  margin: 18px 0;
  padding: 16px 18px;
  background: var(--surface-2);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--ink-sub);
  line-height: 1.6;
}
.subscribe__policy h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-strong);
  margin-bottom: 6px;
}
.subscribe__policy ul { margin-top: 8px; padding-left: 4px; }
.subscribe__policy li { list-style: none; padding: 2px 0; }
.subscribe__policy li::before { content: '· '; color: var(--kvic-navy); }

.subscribe__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  color: var(--ink-sub);
  cursor: pointer;
}
.subscribe__check input { margin-top: 3px; accent-color: var(--kvic-navy); flex: none; }

.subscribe__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 0;
  border-radius: 8px;
  background: black;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.subscribe__submit:hover { background: #343434; }
.subscribe__submit:disabled { opacity: 0.6; cursor: default; }
.subscribe__submit--danger { background: #c0554e; }
.subscribe__submit--danger:hover { background: #a5453f; }

.subscribe__result {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 1.2em;
}
.subscribe__result.is-ok  { color: var(--kvic-navy); }
.subscribe__result.is-err { color: #c0554e; }

/* 분류기준 표: 마지막 열(분류 기준) 왼쪽 정렬 */
.data-table__table--text-left tbody td:last-child {
  text-align: left;
  vertical-align: middle;
  word-break: keep-all;
}

/* ─── 반응형 ─────────────────────────────── */

@media (max-width: 768px) {
  .article-section  
  { 
    padding: 0px; 
    margin-top: 28px; 
  }
  .article-section__lead {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    font-size: 1.1rem;
  }
  .article-topic    { padding: 20px 0; }
}

@media (max-width: 720px) {
  .subscribe-page__intro { font-size: 1rem; }
}
