/* =========================================================
   자격·위촉 증명 (credentials.html) — 메뉴에 없는 페이지, 홈 변호사 소개 버튼으로 들어옴
   사진 크게 보기는 js/credentials.js
   ========================================================= */
.creds__heading { margin: 0 0 20px; font-family: var(--font-title); font-size: 28px; line-height: 1.4; color: var(--c-title); }
.creds__heading ~ .creds__heading { margin-top: 72px; }
.creds__guide { margin: -8px 0 28px; color: var(--c-muted); }

/* ---------- 한눈에 보기 표 ---------- */
.creds-summary { overflow-x: auto; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); }
.creds-summary:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.creds-summary table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 16px; }
.creds-summary th, .creds-summary td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.creds-summary tbody tr:last-child > * { border-bottom: 0; }
.creds-summary thead th { background: var(--c-bg-alt); font-size: 14px; font-weight: 700; color: var(--c-muted); }
.creds-summary tbody th { width: 8.5em; font-weight: 700; color: var(--c-primary); white-space: nowrap; }
.creds-summary td:last-child { white-space: nowrap; color: var(--c-muted); }

/* ---------- 서류 카드 ---------- */
.cred-list { display: flex; flex-direction: column; gap: 28px; }
.cred { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; padding: 32px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg); scroll-margin-top: 100px; }
.cred__thumb { position: relative; display: block; border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; background: var(--c-white); box-shadow: 0 10px 24px rgba(31, 61, 49, .08); transition: box-shadow .2s, transform .2s; }
.cred__thumb img { display: block; width: 100%; height: auto; }
.cred__thumb:hover { box-shadow: 0 14px 32px rgba(31, 61, 49, .16); transform: translateY(-2px); }
.cred__thumb:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; }
.cred__zoom { position: absolute; right: 10px; bottom: 10px; padding: 4px 12px; border-radius: var(--radius-pill); background: rgba(31, 61, 49, .85); font-size: 13px; font-weight: 600; color: var(--c-white); }
.cred__body { min-width: 0; }
.cred__tag { display: inline-block; padding: 3px 12px; border-radius: var(--radius-pill); background: var(--c-bg-alt); font-size: 13px; font-weight: 700; color: var(--c-primary); }
.cred__title { margin-top: 10px; font-family: var(--font-title); font-size: 24px; line-height: 1.4; color: var(--c-title); }
.cred__issuer { margin-top: 4px; font-size: 15px; color: var(--c-muted); }
.cred__facts { margin-top: 20px; border-top: 1px solid var(--c-line); }
.cred__facts > div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--c-line); }
.cred__facts dt { font-size: 15px; font-weight: 700; color: var(--c-muted); }
.cred__facts dd { margin: 0; }
.cred__facts ul { margin: 0; padding: 0; list-style: none; }
.cred__facts li + li { margin-top: 4px; }
.cred__quote { margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--c-primary); background: var(--c-bg); font-family: var(--font-title); font-size: 16px; line-height: 1.7; color: var(--c-title); }
.cred__masked { margin-top: 14px; font-size: 14px; color: var(--c-muted); }
.cred__masked::before { content: ""; display: inline-block; width: 22px; height: 10px; margin-right: 8px; border-radius: 3px; background: #3A3A3A; vertical-align: 1px; }
.creds__back { margin-top: 56px; }

/* ---------- 크게 보기 ---------- */
.cred-viewer { width: min(920px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 12px; background: var(--c-white); overflow: auto; }
.cred-viewer::backdrop { background: rgba(20, 30, 25, .78); }
.cred-viewer__img { display: block; width: 100%; height: auto; }
.cred-viewer__close { position: sticky; top: 10px; float: right; z-index: 1; width: 44px; height: 44px; margin: 10px 10px -54px 0; border: 0; border-radius: 50%; background: rgba(31, 61, 49, .9); font-size: 26px; line-height: 1; color: var(--c-white); cursor: pointer; }
.cred-viewer__close:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .cred__thumb { transition: none; } .cred__thumb:hover { transform: none; } }

/* 태블릿 */
@media (max-width: 1199px) {
  .cred { grid-template-columns: 240px 1fr; gap: 28px; padding: 26px; }
}
/* 모바일: 사진 위, 글 아래 */
@media (max-width: 767px) {
  .creds__heading { font-size: 23px; }
  .creds__heading ~ .creds__heading { margin-top: 52px; }
  /* 요약표: 한 줄씩 카드처럼 (구분 → 내용 → 기관·일자) */
  .creds-summary table { min-width: 0; font-size: 15px; }
  .creds-summary thead { display: none; }
  .creds-summary tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--c-line); }
  .creds-summary tbody tr:last-child { border-bottom: 0; }
  .creds-summary th, .creds-summary td { display: block; width: auto; padding: 0; border: 0; white-space: normal; }
  .creds-summary tbody th { font-size: 14px; }
  .creds-summary td:nth-child(2) { margin-top: 2px; color: var(--c-title); font-weight: 600; }
  .creds-summary td:nth-child(3), .creds-summary td:last-child { display: inline; font-size: 14px; color: var(--c-muted); }
  .creds-summary td:last-child::before { content: " · "; }
  .cred { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .cred__thumb { max-width: 320px; width: 100%; margin: 0 auto; }
  .cred__title { font-size: 21px; }
  .cred__facts > div { grid-template-columns: 6.5em 1fr; gap: 12px; }
  .cred__quote { font-size: 15px; }
  .creds__back .btn { width: 100%; }
}
