/* ==========================================================================
   약력 페이지(credentials.html) 전용 스타일 — 카드형 · 카테고리 컬러
   이 파일은 credentials.html 에서만 불러옵니다. 공통 styles.css 는 건드리지 않습니다.
   톤: 네이비 #0a1f44 기준 + 저채도 카테고리 포인트 6색
   ========================================================================== */

/* ---------- 상단 인물 컷 ---------- */
.cv-band.cv-band--cv {
  background: linear-gradient(180deg, #eef4fc 0%, #f6faff 62%, #f5f8fc 100%);
}

.cvc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(26px, 4.4vw, 60px);
  align-items: center;
}

.cvc-hero__text { min-width: 0; }
.cvc-hero__text .cv-band__actions { margin-top: 22px; }

.cvc-hero__photo {
  margin: 0;
  width: clamp(250px, 27vw, 344px);
  flex: none;
}

.cvc-hero__photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(10, 31, 68, .18), 0 2px 6px rgba(10, 31, 68, .08);
  outline: 1px solid rgba(10, 31, 68, .10);
  outline-offset: -1px;
}

.cvc-hero__photo figcaption {
  margin-top: 11px;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.005em;
  color: #4d5f7c;
}

/* ---------- 카드 격자 ---------- */
.cv-doc.cv-doc--cv { background: #f5f8fc; }
.cv-doc--cv .cv-doc__inner { max-width: 1040px; }

.cvc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cvc-card {
  --acc: #46536b;
  --acc-tint: #f2f4f8;
  --acc-wash: #fbfcfe;

  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
  background: #fff;
  border: 1px solid #e2e9f3;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(10, 31, 68, .05);
  overflow: hidden;
}

.cvc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--acc);
}

.cvc-card--wide { grid-column: 1 / -1; }

/* 카테고리 색 */
.cvc-card--profile { --acc: #46536b; --acc-tint: #eef1f6; --acc-wash: #fafbfd; }
.cvc-card--edu     { --acc: #1b2e5e; --acc-tint: #edf1fa; --acc-wash: #f8faff; }
.cvc-card--career  { --acc: #12646b; --acc-tint: #eaf6f5; --acc-wash: #f7fcfb; }
.cvc-card--lecture { --acc: #2c6e9b; --acc-tint: #ebf4fb; --acc-wash: #f8fcff; }
.cvc-card--cert    { --acc: #2e7d5b; --acc-tint: #ecf7f0; --acc-wash: #f8fdfa; }
.cvc-card--books   { --acc: #a06a16; --acc-tint: #fbf3e4; --acc-wash: #fffdf7; }

/* ---------- 카드 머리 ---------- */
.cvc-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cvc-card__icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--acc-tint);
  color: var(--acc);
}

.cvc-card__icon svg { width: 20px; height: 20px; display: block; }

.cvc-card__head h2 {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.025em;
  color: #0f1b2e;
  line-height: 1.35;
}

.cvc-card__en {
  display: block;
  margin-top: 2px;
  font-size: 9.6px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: .17em;
  color: var(--acc);
}

.cvc-card__body { min-width: 0; }

/* ---------- 라벨 + 값 행 ---------- */
.cvc-rows { display: grid; gap: 9px; }

.cvc-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.cvc-row dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #7b88a0;
}

.cvc-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.6;
  color: #16243b;
  letter-spacing: -.015em;
}

.cvc-row dd small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #7d8ca3;
}

.cvc-row dd .cvc-dim { color: #7d8ca3; font-weight: 500; }

.cvc-row dd a { color: #1447cc; font-weight: 650; }
.cvc-row dd a:hover { text-decoration: underline; }

/* 인적 사항 · 연락처 2단 */
.cvc-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 6px 30px;
}

.cvc-profile__col { min-width: 0; }

.cvc-profile__col + .cvc-profile__col {
  padding-left: 30px;
  border-left: 1px solid #edf2f9;
}

.cvc-colhead {
  margin-bottom: 10px;
  font-size: 10.6px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #93a0b4;
}

/* ---------- 타임라인 ---------- */
.cvc-tl {
  position: relative;
  display: grid;
  gap: 14px;
}

.cvc-tl::before {
  content: "";
  position: absolute;
  left: 57px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--acc);
  opacity: .2;
}

.cvc-tl__item {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.cvc-tl__item::after {
  content: "";
  position: absolute;
  left: 53px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--acc);
  box-sizing: border-box;
}

.cvc-tl__year {
  padding-top: 1px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--acc);
  font-variant-numeric: tabular-nums;
}

.cvc-tl__year.is-tag,
.cvc-tl__year.is-tag-out {
  justify-self: start;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: .02em;
  line-height: 1.7;
}

.cvc-tl__year.is-tag { background: var(--acc); color: #fff; }
.cvc-tl__year.is-tag-out { background: #fff; color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }

.cvc-tl__body { min-width: 0; padding-top: 0; }

.cvc-tl__item.is-key .cvc-tl__body {
  padding: 9px 12px;
  margin: -9px 0 -9px -2px;
  background: var(--acc-tint);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(10, 31, 68, .06);
}

.cvc-tl__item.is-key::after { background: var(--acc); }

.cvc-tl__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  color: #16243b;
  letter-spacing: -.015em;
}

.cvc-tl__sub {
  margin-top: 2px;
  font-size: 12.2px;
  line-height: 1.6;
  color: #64748b;
}

/* ---------- 태그/칩 ---------- */
.cvc-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.cvc-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--acc-tint);
  color: var(--acc);
  font-size: 12.8px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.012em;
}

.cvc-groups { display: grid; gap: 13px; }

.cvc-group {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.cvc-group__label {
  padding-top: 5px;
  font-size: 11.6px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #7b88a0;
}

/* ---------- 저서 ---------- */
.cvc-books {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cvc-book {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px 12px 12px;
  background: var(--acc-wash);
  border: 1px solid #efe7d6;
  border-left: 3px solid var(--acc);
  border-radius: 10px;
  transition: transform .16s ease, box-shadow .16s ease;
}

.cvc-book:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(10, 31, 68, .08); }

.cvc-book__num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  background: var(--acc-tint);
  color: var(--acc);
  font-size: 10.8px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.cvc-book__title {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  color: #16243b;
  letter-spacing: -.02em;
}

.cvc-book__en {
  display: block;
  margin-top: 3px;
  font-size: 11.4px;
  font-weight: 500;
  line-height: 1.5;
  color: #8a7a5e;
}

.cvc-card--lecture .cvc-card__body { flex: 1; align-content: space-between; }

/* ---------- 주석 ---------- */
.cvc-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 2px solid var(--acc);
  border-radius: 0 8px 8px 0;
  background: #f8fafd;
  font-size: 11.8px;
  line-height: 1.78;
  color: #64748b;
}

/* ---------- 하단 출처 ---------- */
.cv-doc--cv .cv-foot { margin-top: 26px; }

/* ==========================================================================
   반응형
   ========================================================================== */
@media (max-width: 1000px) {
  .cvc-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .cvc-grid { grid-template-columns: minmax(0, 1fr); }
  .cvc-card--wide { grid-column: auto; }
  .cvc-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .cvc-hero__photo { width: 100%; max-width: 300px; justify-self: center; }
}

@media (max-width: 640px) {
  .cv-band.cv-band--cv { padding-top: 34px; }
  .cvc-hero__photo { max-width: 236px; }
  .cvc-hero__photo figcaption { font-size: 11.6px; }
  .cvc-card { padding: 18px 16px 20px; border-radius: 12px; }
  .cvc-card__head { gap: 10px; margin-bottom: 14px; }
  .cvc-card__icon { width: 34px; height: 34px; border-radius: 9px; }
  .cvc-card__head h2 { font-size: 16px; }
  .cvc-profile { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cvc-profile__col + .cvc-profile__col { padding-left: 0; border-left: 0; padding-top: 18px; border-top: 1px solid #edf2f9; }
  .cvc-row { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
  .cvc-group { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .cvc-tl::before { left: 51px; }
  .cvc-tl__item { grid-template-columns: 40px minmax(0, 1fr); gap: 22px; }
  .cvc-tl__item::after { left: 47px; }
  .cvc-tl__year { font-size: 12px; }
  .cvc-tl__year.is-tag, .cvc-tl__year.is-tag-out { font-size: 10.4px; padding: 1px 5px; }
  .cvc-books { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   인쇄 — 종이/PDF 저장
   ========================================================================== */
@media print {
  @page { size: A4; margin: 16mm 14mm; }

  .cv-band.cv-band--cv {
    background: #fff !important;
    padding: 0 0 5mm !important;
  }

  .cvc-hero {
    grid-template-columns: minmax(0, 1fr) 36mm;
    gap: 8mm;
    align-items: start;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .cvc-hero__photo { width: 36mm; }

  .cvc-hero__photo img {
    border-radius: 2mm;
    box-shadow: none !important;
    outline: .5pt solid #999;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cvc-hero__photo figcaption {
    margin-top: 2mm;
    font-size: 7pt;
    color: #333 !important;
  }

  .cv-doc.cv-doc--cv { background: #fff !important; padding: 0 !important; }
  .cv-doc--cv .cv-doc__inner { max-width: none !important; }

  .cvc-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4mm !important;
    align-items: start;
  }

  .cvc-card--wide { grid-column: 1 / -1 !important; }

  .cvc-card--lecture .cvc-card__body { flex: none; align-content: start; }

  .cvc-card {
    margin: 0 !important;
    padding: 4mm 4.5mm !important;    border: .6pt solid #9aa5b6 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .cvc-card::before {
    height: 2pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cvc-card__head { margin-bottom: 3mm; gap: 3mm; }
  .cvc-card__icon {
    width: 8mm;
    height: 8mm;
    border-radius: 1.6mm;
    background: #fff !important;
    box-shadow: inset 0 0 0 .5pt var(--acc);
    color: var(--acc) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .cvc-card__icon svg { width: 5.4mm; height: 5.4mm; }
  .cvc-card__head h2 { font-size: 11.5pt; color: #000 !important; }
  .cvc-card__en { font-size: 6.6pt; color: #555 !important; }

  .cvc-rows { gap: 1.6mm; }
  .cvc-row { grid-template-columns: 17mm minmax(0, 1fr); gap: 3mm; }
  .cvc-row dt { font-size: 7.6pt; color: #555 !important; }
  .cvc-row dd { font-size: 9.2pt; color: #000 !important; }
  .cvc-row dd small { font-size: 7.6pt; color: #444 !important; }
  .cvc-row dd a { color: #000 !important; }
  .cvc-colhead { font-size: 6.8pt; color: #666 !important; margin-bottom: 2mm; }
  .cvc-profile { gap: 2mm 8mm; }
  .cvc-profile__col + .cvc-profile__col { padding-left: 8mm; border-left: .5pt solid #ccc; }

  .cvc-tl { gap: 2.6mm; }
  .cvc-tl::before { left: 15.5mm; opacity: .55; }
  .cvc-tl__item { grid-template-columns: 12.5mm minmax(0, 1fr); gap: 7mm; }
  .cvc-tl__item::after { left: 14.3mm; top: 1mm; width: 3mm; height: 3mm; }
  .cvc-tl__item.is-key .cvc-tl__body {
    padding: 2mm 2.5mm;
    margin: -2mm 0;
    background: #f2f2f2 !important;
    box-shadow: none !important;
  }
  .cvc-tl__year { font-size: 8pt; color: #000 !important; }
  .cvc-tl__year.is-tag,
  .cvc-tl__year.is-tag-out {
    background: #fff !important;
    color: #000 !important;
    box-shadow: inset 0 0 0 .5pt #888;
    font-size: 6.8pt;
    padding: 0 1mm;
  }
  .cvc-tl__title { font-size: 9.2pt; color: #000 !important; }
  .cvc-tl__sub { font-size: 7.8pt; color: #444 !important; }

  .cvc-groups { gap: 2.4mm; }
  .cvc-group { grid-template-columns: 17mm minmax(0, 1fr); gap: 3mm; }
  .cvc-group__label { font-size: 7.6pt; color: #555 !important; padding-top: 1mm; }
  .cvc-chips { gap: 1.4mm; }
  .cvc-chip {
    background: #fff !important;
    color: #000 !important;
    box-shadow: inset 0 0 0 .5pt #aaa;
    font-size: 8.2pt;
    padding: .6mm 2mm;
  }

  .cvc-books { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 2mm; }
  .cvc-book {
    padding: 2mm 2.5mm;
    background: #fff !important;
    border: .5pt solid #ccc !important;
    border-left: 1.2pt solid var(--acc) !important;
    box-shadow: none !important;
    transform: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .cvc-book__num { width: 4mm; height: 4mm; font-size: 6.6pt; background: #fff !important; box-shadow: inset 0 0 0 .5pt #bbb; }
  .cvc-book__title { font-size: 8.6pt; color: #000 !important; }
  .cvc-book__en { font-size: 7pt; color: #555 !important; }

  .cvc-note {
    margin-top: 2.5mm;
    padding: 2mm 2.5mm;
    background: #f7f7f7 !important;
    border-left: 1.2pt solid #999;
    font-size: 7.4pt;
    color: #444 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cv-doc--cv .cv-foot { margin-top: 4mm; }
}


/* 학력 4항목 — 항목마다 한 줄, 줄 간격 균일 */
.cvc-tl--edu { gap: 11px; }
.cvc-tl--edu .cvc-tl__item { align-items: baseline; }
.cvc-tl--edu .cvc-tl__item.is-key .cvc-tl__body {
  padding: 0; margin: 0; background: none; border-radius: 0; box-shadow: none;
}
.cvc-tl--edu .cvc-tl__title { line-height: 1.5; }
.cvc-tl--edu .cvc-tl__year { line-height: 1.5; }
