/* WSIM 기술 자료실 보강 스타일 — landing.css 뒤에 로드. 라이트 고정 · 본문 18px */

:root { --gd-maxw: 840px; --gd-amber: #b45309; --gd-amber-bg: #fffbeb; --gd-amber-line: #fcd34d; }

/* 0. 유틸 */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 1. 아티클 레이아웃 */
.gd-container { max-width: var(--gd-maxw); margin: 0 auto; }
.breadcrumb.gd-narrow { max-width: var(--gd-maxw); }
.gd-hero { padding-top: 26px; padding-bottom: 8px; }
.gd-hero .lp-h1 { margin-top: 10px; }

/* 2. 메타 정보 줄 */
.gd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin-top: 22px; padding-top: 18px; font-size: 14px;
  border-top: 1px solid var(--border-light); color: var(--text-muted); }
.gd-meta span { display: inline-flex; align-items: center; gap: 6px; }
.gd-meta strong { color: var(--text-secondary); font-weight: 600; }

/* 3. 목차 */
.gd-toc { margin: 34px 0 8px; padding: 22px 26px; border-radius: 12px;
  background: var(--bg-light); border: 1px solid var(--border-light); }
.gd-toc-title { font-size: 15px; font-weight: 800; letter-spacing: -.2px;
  color: var(--text-dark); margin-bottom: 12px; }
.gd-toc-list { list-style: none; counter-reset: gdtoc; margin: 0; padding: 0; }
.gd-toc-list li { counter-increment: gdtoc; margin-bottom: 9px; line-height: 1.5; }
.gd-toc-list li:last-child { margin-bottom: 0; }
.gd-toc-list a { display: inline-flex; gap: 10px; align-items: baseline;
  text-decoration: none; font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.gd-toc-list a::before { content: counter(gdtoc) '.'; flex-shrink: 0; font-weight: 800;
  color: var(--color-primary); font-variant-numeric: tabular-nums; }
.gd-toc-list a:hover { color: var(--color-primary); text-decoration: underline; }

/* 4. 프로즈 보강 (.lp-prose 와 병용) */
.gd-prose { margin-top: 40px; }
.gd-prose p { line-height: 1.85; margin: 0 0 22px; }
.gd-prose > h2 { margin-top: 52px; scroll-margin-top: calc(var(--header-h) + 20px); }
.gd-prose > h3 { font-size: 19px; margin: 32px 0 12px; padding-left: 12px;
  border-left: 3px solid var(--border-light); }
.gd-prose p a, .gd-prose li a { color: var(--color-primary); font-weight: 600; }
.gd-prose p a:hover, .gd-prose li a:hover { text-decoration: underline; }
.gd-prose li { line-height: 1.75; }

/* 번호 목록 */
.gd-prose ol.gd-ol { list-style: none; counter-reset: gdol; margin: 0 0 24px; padding: 0; }
.gd-prose ol.gd-ol > li { counter-increment: gdol; position: relative;
  padding-left: 38px; margin-bottom: 14px; color: var(--text-secondary); }
.gd-prose ol.gd-ol > li::before { content: counter(gdol); position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 50%; text-align: center; font-size: 13px;
  background: var(--bg-light-blue); color: var(--color-primary);
  font-weight: 800; line-height: 26px; font-variant-numeric: tabular-nums; }
/* 점 목록 (✓ 대신 불릿) */
.gd-prose ul.gd-dot li::before { content: ''; top: .68em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--color-primary); }

/* 5. 표 */
.gd-table-wrap { margin: 26px 0 30px; overflow-x: auto; border-radius: 12px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-subtle); }
.gd-table { width: 100%; min-width: 520px; border-collapse: collapse;
  font-size: 16px; background: var(--bg-white); }
.gd-table th, .gd-table td { padding: 13px 16px; text-align: left; vertical-align: top;
  line-height: 1.6; border-bottom: 1px solid var(--border-light); }
.gd-table thead th { background: var(--bg-light-blue); color: var(--text-dark);
  font-size: 15px; font-weight: 700; white-space: nowrap; }
.gd-table tbody tr:last-child td { border-bottom: 0; }
.gd-table tbody tr:nth-child(even) td { background: #fafbfc; }
.gd-table td { color: var(--text-secondary); }
.gd-table td strong, .gd-table th[scope="row"] { color: var(--text-dark); font-weight: 700; }
.gd-table th[scope="row"] { font-size: 16px; white-space: nowrap; }

/* 6. 콜아웃 · 인용 */
.gd-callout { margin: 28px 0; padding: 20px 24px; border-radius: 0 12px 12px 0;
  background: var(--bg-light-blue); border-left: 4px solid var(--color-primary); }
.gd-callout p { margin: 0 0 10px; font-size: 16px; line-height: 1.75; }
.gd-callout p:last-child { margin-bottom: 0; }
.gd-callout-title { display: block; margin-bottom: 8px; font-size: 15px;
  font-weight: 800; letter-spacing: -.2px; color: var(--color-primary); }
.gd-callout--warn { background: var(--gd-amber-bg); border-left-color: var(--gd-amber-line); }
.gd-callout--warn .gd-callout-title { color: var(--gd-amber); }
.gd-quote { margin: 30px 0; padding: 6px 0 6px 24px; font-size: 19px;
  border-left: 3px solid var(--border-light);
  line-height: 1.75; color: var(--text-dark); font-weight: 500; }
.gd-quote cite { display: block; margin-top: 10px; font-size: 14px;
  font-style: normal; color: var(--text-muted); }

/* 7. 단계(공정) 리스트 */
.gd-steps { list-style: none; margin: 28px 0 32px; padding: 0; }
.gd-step { position: relative; padding: 0 0 22px 56px; margin-left: 17px;
  border-left: 2px solid var(--border-light); }
.gd-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.gd-step::before { content: attr(data-step); position: absolute; left: -18px; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; text-align: center;
  background: var(--color-primary); color: #fff; font-size: 13px;
  font-weight: 700; line-height: 34px; font-variant-numeric: tabular-nums; }
.gd-step h3 { font-size: 18px; font-weight: 700; color: var(--text-dark);
  margin: 4px 0 6px; padding: 0; border: 0; }
.gd-step p { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* 8. 그림 */
.gd-figure { margin: 30px 0; }
.gd-figure img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-subtle); }
.gd-figure figcaption { margin-top: 10px; font-size: 14px;
  color: var(--text-muted); line-height: 1.55; }

/* 9. 회사 소개 박스 */
.gd-about { margin: 48px 0 0; padding: 26px 28px; border-radius: 14px;
  background: var(--bg-light); border: 1px solid var(--border-light); }
.gd-about h2 { font-size: 19px !important; font-weight: 800; color: var(--text-dark);
  margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; }
.gd-about p { font-size: 16px; line-height: 1.8; color: var(--text-secondary); margin: 0 0 12px; }
.gd-about p:last-child { margin-bottom: 0; }
.gd-about a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.gd-about a:hover { text-decoration: underline; }

/* 10. 카드 (관련 자료·목차 공용) */
.gd-card-head { margin: 56px 0 18px; }
.gd-card-head h2 { font-size: 22px; font-weight: 800;
  letter-spacing: -.4px; color: var(--text-dark); }
.gd-card-head p { margin-top: 6px; font-size: 16px; color: var(--text-muted); }
.gd-grid { display: grid; gap: 18px; }
.gd-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gd-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gd-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px;
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: 12px; box-shadow: var(--shadow-subtle); text-decoration: none;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.gd-card:hover, .gd-card:focus-visible { transform: translateY(-3px);
  box-shadow: var(--shadow-md); border-color: rgba(0,82,204,.35); }
.lp-section--alt .gd-card { background: var(--bg-white); }
.gd-card-tag { align-self: flex-start; padding: 3px 10px; border-radius: 20px;
  background: var(--bg-light-blue); color: var(--color-primary);
  font-size: 12px; font-weight: 700; letter-spacing: .2px; }
.gd-card-title { font-size: 17px; font-weight: 700; line-height: 1.45;
  letter-spacing: -.3px; color: var(--text-dark); }
.gd-card:hover .gd-card-title { color: var(--color-primary); }
.gd-card-desc { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.gd-card-more { margin-top: auto; padding-top: 8px; font-size: 14px;
  font-weight: 700; color: var(--color-primary); }

/* 11. 간결 CTA */
.gd-cta { margin: 48px 0 0; padding: 30px 32px; border-radius: 14px;
  background: var(--bg-white); border: 1.5px solid var(--color-primary);
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap; }
.gd-cta-text h2 { font-size: 21px; font-weight: 800; letter-spacing: -.4px;
  color: var(--text-dark); margin-bottom: 6px; }
.gd-cta-text p { font-size: 16px; color: var(--text-muted); line-height: 1.65; }
.gd-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.gd-cta-actions .btn svg { width: 18px; height: 18px; }

/* 12. 자료실 목차 페이지 */
.gd-index-group { margin-top: 44px; }
.gd-index-group:first-of-type { margin-top: 34px; }
.gd-index-group > h2 { font-size: clamp(21px, 2.8vw, 25px); font-weight: 800;
  letter-spacing: -.5px; color: var(--text-dark); margin-bottom: 6px;
  padding-left: 14px; border-left: 4px solid var(--color-primary); }
.gd-index-group > p { margin: 0 0 20px 18px; font-size: 16px; color: var(--text-muted); }
.gd-index-count { display: inline-block; margin-left: 8px; vertical-align: middle;
  font-size: 14px; font-weight: 700; color: var(--color-primary); }

/* 13. 반응형 */
@media (max-width: 900px) {
  .gd-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .gd-toc { padding: 18px 20px; }
  .gd-toc-list a { font-size: 15px; }
  .gd-prose p { line-height: 1.8; }
  .gd-prose > h3 { font-size: 18px; }
  .gd-table { font-size: 15px; min-width: 460px; }
  .gd-table th, .gd-table td { padding: 11px 13px; }
  .gd-callout { padding: 18px 20px; border-radius: 0 10px 10px 0; }
  .gd-quote { font-size: 17px; }
  .gd-step { padding-left: 44px; }
  .gd-about { padding: 22px 20px; }
  .gd-cta { padding: 24px 20px; flex-direction: column; align-items: stretch; }
  .gd-cta-actions .btn { width: 100%; }
}
@media (max-width: 620px) {
  .gd-grid--2, .gd-grid--3 { grid-template-columns: 1fr; }
}
