/* detail.css — 신규 상세페이지 전용. 기존 style.css 토큰(--pri 차콜 / --acc 세이지그린 / --surf)만 사용, 직선형(radius 0). */
.dt { font-size: 17px; line-height: 1.85; color: var(--text); }
.dt-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--dp-gutter); box-sizing: border-box; }
.dt-sec { padding-block: clamp(44px, 7vw, 80px); }
.dt-sec--soft { background: var(--surf); }
.dt h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.45rem, 3vw, 2.05rem); margin-bottom: 18px; }
.dt h3 { font-size: 1.08rem; margin-bottom: 8px; }
.dt p { color: #3b4350; }
.dt-num { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding-inline: 6px; background: var(--acc); color: #fff; font-size: .82rem; font-weight: 800; font-family: var(--dp-font-heading); }
.dt-sub { color: var(--mute); margin-bottom: 22px; font-size: .95rem; }
.dt-prose { max-width: 820px; }
.dt-prose p { margin-bottom: 1em; }

/* 히어로 */
.dt-hero { position: relative; background: var(--pri); color: #fff; overflow: hidden; isolation: isolate; }
.dt-hero__img { position: absolute; inset: 0; z-index: -1; }
.dt-hero__img img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.dt-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22,25,26,.96) 0%, rgba(22,25,26,.82) 48%, rgba(22,25,26,.25) 100%); }
.dt-hero__inner { max-width: 1120px; margin-inline: auto; padding: clamp(36px, 6vw, 72px) var(--dp-gutter) clamp(40px, 7vw, 84px); box-sizing: border-box; }
.dt-hero .cc-breadcrumb ol { margin-bottom: 18px; padding: 0; list-style: none; flex-wrap: wrap; }
.dt-hero h1 { color: #fff; font-size: clamp(2rem, 5.2vw, 3.7rem); line-height: 1.18; max-width: 760px; margin-bottom: 18px; word-break: keep-all; }
.dt .dt-hero__lead { color: rgba(255,255,255,.9); font-size: clamp(1rem, 1.7vw, 1.15rem); max-width: 600px; margin-bottom: 26px; }
.dt .dt-hero__meta { color: rgba(255,255,255,.62); font-size: .82rem; margin: 18px 0 0; }
.dt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 12px 28px; background: var(--acc); color: #fff; font-weight: 700; font-size: 1rem; border: 0; border-radius: 0; text-align: center; transition: background .2s var(--dp-ease); }
.dt-btn:hover { background: var(--acc-deep); }
.dt-btn--lg { min-height: 56px; padding-inline: 36px; }

/* 사진 그리드: PC 3열 · 모바일 2열, 정사각 동일 크기 */
.dt-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); }
.dt-grid--mid { margin-top: 36px; }
.dt-grid figure { margin: 0; }
.dt-ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--surf); }
.dt-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-grid figcaption { font-size: .85rem; line-height: 1.5; color: #4a5361; padding-top: 8px; }
.dt-gallery .dt-grid--n4, .dt-gallery .dt-grid--n2, .dt-gallery .dt-grid--n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.dt-grid--mid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .dt-grid, .dt-grid--mid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 서비스 포인트 / 확인 항목 */
.dt-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.dt-point, .dt-check { border: 1px solid var(--line); background: #fff; padding: 22px 22px 14px; }
.dt-point h3, .dt-check h3 { color: var(--acc-deep); }
.dt-point p, .dt-check p { font-size: .95rem; margin-bottom: 8px; }
.dt-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.dt-checks .dt-check:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* 진행 과정 */
.dt-steps { list-style: none; margin: 28px 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.dt-steps li { border: 1px solid var(--line); background: #fff; padding: 18px 18px 8px; position: relative; }
.dt-step__n { display: inline-block; font-family: 'Fraunces', serif; font-style: italic; font-size: 1.25rem; color: var(--acc); margin-bottom: 4px; }
.dt-steps h3 { margin-bottom: 6px; }
.dt-steps p { font-size: .9rem; }

/* 작업 정리 표 */
.dt-table { overflow-x: auto; }
.dt-table table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: .95rem; }
.dt-table caption { text-align: left; font-weight: 800; color: var(--pri); padding: 0 0 10px; font-family: var(--dp-font-heading); font-size: 1.05rem; }
.dt-table thead th { background: var(--acc-deep); color: #fff; text-align: left; padding: 12px 16px; font-weight: 700; }
.dt-table tbody th { width: 24%; text-align: left; background: var(--surf); color: var(--pri); padding: 14px 16px; vertical-align: top; border-top: 1px solid var(--line); font-weight: 700; }
.dt-table tbody td { padding: 14px 16px; border-top: 1px solid var(--line); color: #3b4350; vertical-align: top; line-height: 1.7; }

/* FAQ — 기존 jc-faq 아코디언을 폭만 넓혀 재사용 */
.dt .jc-faq-list { max-width: none; padding-bottom: 0; margin-top: 22px; background: #fff; border: 1px solid var(--line); padding-inline: 20px; }
.dt .jc-faq-answer p { color: #3b4350; }

/* 함께 보면 좋은 글 */
.dt-rel { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dt-rel a { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); background: #fff; padding: 12px; height: 100%; box-sizing: border-box; transition: border-color .2s; }
.dt-rel a:hover { border-color: var(--acc); }
.dt-rel__img { flex: 0 0 88px; width: 88px; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surf); }
.dt-rel__img img { width: 100%; height: 100%; object-fit: cover; }
.dt-rel__txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dt-rel__txt strong { color: var(--pri); font-family: var(--dp-font-heading); font-size: 1rem; line-height: 1.35; }
.dt-rel__txt small { color: var(--mute); font-size: .83rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 하단 CTA */
.dt-cta { background: var(--pri); color: #fff; padding-block: clamp(40px, 6vw, 64px); }
.dt-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.dt-cta h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 8px; display: block; }
.dt-cta p { color: rgba(255,255,255,.82); margin: 0; max-width: 560px; }

@media (max-width: 1023px) {
  .dt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-points { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .dt { font-size: 16px; }
  .dt-checks, .dt-rel { grid-template-columns: 1fr; }
  .dt-hero::before { background: linear-gradient(180deg, rgba(22,25,26,.9) 0%, rgba(22,25,26,.78) 100%); }
  .dt-cta__in { flex-direction: column; align-items: stretch; }
  .dt-btn--lg { width: 100%; }
  .dt-table tbody th { width: 30%; }
  .dt .jc-faq-list { padding-inline: 14px; }
}
@media (max-width: 480px) {
  .dt-steps { grid-template-columns: 1fr; }
  .dt-table table, .dt-table tbody, .dt-table tr, .dt-table th, .dt-table td { font-size: .9rem; }
  .dt h2 { gap: 10px; }
  .dt-rel__img { flex-basis: 72px; width: 72px; }
}
