/**
 * assets/pages/cases/case_detail.css
 *
 * 시공 사례 상세 페이지 — /pages/case-detail.php
 * 검수 완료된 네이버 블로그 글이 사이트 내부 콘텐츠로 게시되는 페이지.
 *
 * 톤: 매거진형 아티클 (cases.php 의 그리드와 구분되는 단일 글 레이아웃).
 */

/* ── 컨테이너 ───────────────────────────────────────── */
.cd-article {
    max-width: 800px;
    margin: 24px auto 80px;
    padding: 0 20px;
    color: #0f172a;
    line-height: 1.75;
    font-size: 16px;
    word-break: keep-all;
}

/* ── 헤더 ───────────────────────────────────────────── */
.cd-head {
    padding: 4px 0 28px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 28px;
}
.cd-preview-bar {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}
.cd-cat {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.cd-cat::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 1px;
    background: #94a3b8;
    vertical-align: middle;
    margin-right: 8px;
    margin-bottom: 2px;
}
.cd-title {
    margin: 0 0 14px;
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.cd-desc {
    margin: 0 0 16px;
    font-size: 16.5px;
    color: #475569;
    line-height: 1.7;
}
.cd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #64748b;
}
.cd-meta i {
    color: #94a3b8;
    margin-right: 4px;
}

/* ── 핵심 한 줄 — 매거진 리드 톤 (박스 없이 굵은 인용체) ── */
.cd-answer-box {
    margin: 0 0 24px;
    padding: 4px 0 4px 20px;
    border-left: 3px solid #0f172a;
    background: transparent;
    border-radius: 0;
}
.cd-answer-box strong {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 4px;
}
.cd-answer-box p {
    margin: 0;
    font-size: 17px;
    color: #0f172a;
    font-weight: 500;
    line-height: 1.65;
}

/* ── 한눈에 보기 — 박스 제거, 단순 리스트 ── */
.cd-tldr {
    margin: 0 0 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}
.cd-tldr strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}
.cd-tldr ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}
.cd-tldr li {
    padding: 5px 0 5px 18px;
    position: relative;
    font-size: 14.5px;
    color: #334155;
    line-height: 1.65;
}
.cd-tldr li::before {
    content: '–';
    position: absolute;
    left: 0;
    top: 4px;
    color: #94a3b8;
    font-weight: 600;
}

/* ── 본문 ─────────────────────────────────────────── */
.cd-body {
    font-size: 16px;
    color: #1f2937;
    line-height: 1.85;
}
.cd-body > * { max-width: 100%; }
.cd-body h2 {
    margin: 40px 0 16px;
    padding: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 2px solid #f1f5f9;
    letter-spacing: -0.015em;
}
.cd-body h3 {
    margin: 28px 0 10px;
    font-size: 17.5px;
    font-weight: 700;
    color: #0050c8;
}
.cd-body p {
    margin: 0 0 16px;
}
.cd-body strong {
    color: #0050c8;
    font-weight: 700;
}
.cd-body ul, .cd-body ol {
    margin: 0 0 18px;
    padding-left: 24px;
}
.cd-body li {
    margin-bottom: 6px;
    line-height: 1.7;
}
.cd-body figure {
    margin: 22px 0;
    text-align: center;
}
.cd-body figure img {
    display: block;
    width: 100%;          /* 모든 사진 가로 폭 동일 (본문 전체 폭) */
    max-width: 100%;
    height: auto;          /* 세로는 비율 따라 자동 */
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}
.cd-body figcaption {
    margin-top: 8px;
    font-size: 12.5px;
    color: #64748b;
    font-style: italic;
}
.cd-body a {
    color: #0050c8;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.cd-body a:hover { color: #003087; }
.cd-body blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-left: 4px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-style: italic;
}

/* ── FAQ — 박스 제거, 구분선 only ── */
.cd-faq {
    margin: 48px 0 0;
    padding: 32px 0 0;
    border-top: 1px solid #e2e8f0;
}
.cd-faq h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}
.cd-faq__item {
    margin: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    overflow: hidden;
}
.cd-faq__item:last-child { border-bottom: none; }
.cd-faq__item summary {
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 36px;
}
.cd-faq__item summary::-webkit-details-marker { display: none; }
.cd-faq__item summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 20px;
    font-weight: 400;
}
.cd-faq__item[open] summary::after { content: '−'; }
.cd-faq__a {
    padding: 0 0 16px;
    font-size: 14.5px;
    color: #334155;
    line-height: 1.7;
}

/* ── 관련 서비스 ──────────────────────────────────── */
.cd-related {
    margin: 48px 0 0;
    padding: 32px 0 0;
    border-top: 1px solid #e2e8f0;
}
.cd-related h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}
.cd-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.cd-related__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #0f172a;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.12s, color 0.12s;
}
.cd-related__card:hover {
    border-color: #0f172a;
    color: #0f172a;
    background: transparent;
}
.cd-related__arrow {
    color: #94a3b8;
    font-weight: 400;
    transition: color 0.12s;
}
.cd-related__card:hover .cd-related__arrow {
    color: #0f172a;
}

/* ── 관련 시공 사례 — 124건 자산 cross-linking (썸네일 + 제목 카드) ── */
.cd-related-cases {
    margin: 48px 0 0;
    padding: 32px 0 0;
    border-top: 1px solid #e2e8f0;
}
.cd-related-cases h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}
.cd-related-cases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.cd-related-cases__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #0f172a;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.cd-related-cases__card:hover {
    border-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15,23,42,0.06);
    color: #0f172a;
}
.cd-related-cases__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}
.cd-related-cases__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cd-related-cases__cat {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cd-related-cases__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 600px) {
    .cd-related-cases__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cd-related-cases h2 { font-size: 18px; }
    .cd-related-cases__title { font-size: 13px; }
}

/* ── 영업 브릿지 — 본문 직후 회선+시공 통합 상담 (지역·타사 감지, 2026-07-05) ── */
.cd-bridge {
    margin: 40px 0 8px;
    padding: 26px 26px 24px;
    background: #f7fafd;
    border: 1px solid #c7dcf2;
    border-left: 4px solid #0050c8;
    border-radius: 4px;
}
.cd-bridge__eyebrow {
    margin: 0 0 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #0050c8;
}
.cd-bridge__title {
    margin: 0 0 10px;
    padding: 0;
    border: none;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
}
.cd-bridge__desc {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #334155;
}
.cd-bridge__switch {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fff;
    border: 1px dashed #94a3b8;
    border-radius: 4px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #475569;
}
.cd-bridge__switch a { font-weight: 700; color: #0050c8; text-decoration: none; }
.cd-bridge__switch a:hover { text-decoration: underline; }
/* 타사 언급 없는 케이스 — 가벼운 한 줄 버전 (전 케이스 상시 노출) */
.cd-bridge__switch--lite {
    padding: 0;
    background: transparent;
    border: none;
    font-size: 13px;
    color: #64748b;
}
.cd-bridge__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-bridge__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    color: #0f172a;
    border: 1px solid #c5cdd6;
    transition: border-color .15s, color .15s;
}
.cd-bridge__btn:hover { border-color: #0050c8; color: #0050c8; }
.cd-bridge__btn--phone { background: #0050c8; color: #fff; border-color: #0050c8; }
.cd-bridge__btn--phone:hover { background: #0046ad; color: #fff; }
@media (max-width: 640px) {
    .cd-bridge { padding: 20px 16px; }
    .cd-bridge__btn { width: 100%; justify-content: center; }
}

/* ── CTA — 단색 네이비, 매거진 푸터 톤 ── */
.cd-cta {
    margin: 56px 0 0;
    padding: 36px 28px;
    background: #0f172a;
    border-radius: 4px;
    color: #ffffff !important;
    text-align: left;
}
section.cd-cta h2,
.cd-cta h2 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff !important;
    border-bottom: none;
    padding: 0;
}
section.cd-cta p,
.cd-cta p {
    margin: 0 0 22px;
    font-size: 14.5px;
    color: #cbd5e1 !important;
    line-height: 1.7;
    opacity: 1;
}
.cd-cta__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}
.cd-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 4px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.12s, color 0.12s;
}
.cd-cta__btn--phone {
    background: #ffd700;
    color: #0f172a;
}
.cd-cta__btn--phone:hover {
    background: #ffeb3b;
}
.cd-cta__btn--ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.cd-cta__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ════════════════════════════════════════════════
   반응형
   ════════════════════════════════════════════════ */

/* 태블릿 (≤ 980px) — 좁아지면 폰트·간격 미세 조정 */
@media (max-width: 980px) {
    .cd-article { padding: 0 18px; }
    .cd-title   { font-size: 27px; }
}

/* 모바일 (≤ 720px) */
@media (max-width: 720px) {
    .cd-article {
        margin: 16px auto 56px;
        padding: 0 16px;
        font-size: 15.5px;
    }
    .cd-head { padding-bottom: 22px; margin-bottom: 22px; }
    .cd-title { font-size: 23px; }
    .cd-desc  { font-size: 14.5px; }
    .cd-meta  { gap: 10px; font-size: 12px; }
    .cd-answer-box p { font-size: 16px; }
    .cd-body  { font-size: 15.5px; line-height: 1.78; }
    .cd-body h2 { font-size: 19px; margin: 32px 0 12px; }
    .cd-body h3 { font-size: 16px; margin: 22px 0 8px; }
    .cd-body figure { margin: 18px 0; }
    .cd-faq h2, .cd-related h2 { font-size: 18px; }
    .cd-related__grid { grid-template-columns: 1fr; }
    .cd-cta { padding: 28px 20px; margin-top: 44px; }
    .cd-cta h2 { font-size: 18px; }
    .cd-cta__btns { flex-direction: column; gap: 8px; }
    .cd-cta__btn { width: 100%; justify-content: center; }
}

/* 소형 모바일 (≤ 420px) — 가독성·여백 추가 축소 */
@media (max-width: 420px) {
    .cd-article { padding: 0 14px; font-size: 15px; }
    .cd-title { font-size: 21px; }
    .cd-body { font-size: 15px; }
    .cd-body h2 { font-size: 18px; }
    .cd-body h3 { font-size: 15.5px; }
    .cd-answer-box { padding-left: 14px; }
    .cd-answer-box p { font-size: 15px; }
}
