/* journal.css — 수리일지 공통 스타일 (9/8 이전 인라인 스타일 복원, 접수 폼(wiz) 제외) */
:root { --orange: #E8732A; --dark: #0A0A0A; --text: #1a1a1a; --muted: #666; --border: #e8e8e8; --font: -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.75; }
/* 기존 칼럼과 동일한 네비게이션 */
.art-nav { position: sticky; top: 0; z-index: 1000; background: rgba(10,10,10,0.82); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-bottom: 1px solid rgba(255,255,255,0.09); }
.art-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.art-nav-inner > .art-nav-logo { justify-self: start; }
.art-nav-inner > .art-nav-links { justify-self: center; }
.art-nav-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.art-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.art-nav-logo img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.art-nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.art-nav-logo-ko { font-size: 15px; font-weight: 900; color: #fff; letter-spacing: -0.5px; }
.art-nav-logo-ko em { color: #E8732A; font-style: normal; }
.art-nav-logo-en { font-size: 8px; font-weight: 700; color: rgba(255,255,255,0.35); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }
.art-nav-links { display: flex; gap: 0; list-style: none; align-items: center; padding: 0; margin: 0; }
.art-nav-links li { display: flex; align-items: center; }
.art-nav-links li + li::before { content: ''; display: block; width: 1px; height: 12px; background: rgba(255,255,255,0.12); flex-shrink: 0; margin: 0 1px; }
.art-nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 12.5px; font-weight: 400; transition: color 0.2s; padding: 0 9px; }
.art-nav-links a:hover { color: #fff; }
.art-nav-home { position: relative; background: none; border: none; color: rgba(255,255,255,0.75); cursor: pointer; padding: 6px; display: flex; align-items: center; justify-content: center; margin-left: 4px; margin-right: 4px; text-decoration: none; transition: color 0.2s; flex-shrink: 0; }
.art-nav-home:hover { color: #fff !important; }
.art-nav-reserve { position: relative; }
.art-nav-reserve-btn { background: #E8732A; color: #fff; padding: 6px 13px; border-radius: 20px; font-size: 12.5px; font-weight: 700; border: none; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.art-nav-reserve-btn:hover { background: #C55E1A; }
.art-nav-reserve-dropdown { display: none; position: absolute; top: calc(100% + 10px); right: 0; background: #1D1D1F; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; overflow: hidden; min-width: 160px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.art-nav-reserve.open .art-nav-reserve-dropdown { display: block; }
.art-nav-reserve-dropdown a { display: block; padding: 13px 18px; color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.07); transition: all 0.15s; }
.art-nav-reserve-dropdown a:last-child { border-bottom: none; }
.art-nav-reserve-dropdown a:hover { background: rgba(232,115,42,0.12); color: #E8732A; }
.art-nav-reserve-dropdown a span { font-size: 11px; color: rgba(255,255,255,0.35); display: block; margin-top: 2px; font-weight: 400; }
@media (max-width: 768px) { .art-nav-links { display: none; } .art-nav-inner { padding: 0 20px; display: flex !important; justify-content: space-between !important; grid-template-columns: none !important; } }
body { padding-top: 64px; }
.art-wrap { max-width: 720px; margin: 0 auto; padding: 50px 20px 100px; }
/* PC 본문 가독성 — 박스·표·CTA·관련글 양끝 퍼짐 방지 */
.art-body > div, .art-body > .art-cta, .art-body > .art-tip, .art-body > table { max-width: 100%; box-sizing: border-box; }
.art-body table { table-layout: auto; }
@media (min-width: 1024px) {
  /* PC에서 본문 박스 최대 폭 약간 좁혀서 가독성 강화 */
  .art-body div[style*="border-left"], .art-body .progress-block { max-width: 92%; margin-left: auto; margin-right: auto; }
  .art-body table { max-width: 95%; margin-left: auto; margin-right: auto; }
}
.art-cat { display: inline-block; background: rgba(232,115,42,0.12); color: var(--orange); font-size: 12px; font-weight: 800; padding: 5px 13px; border-radius: 50px; margin-bottom: 16px; letter-spacing: 0.3px; }
/* RELATED-CSS-START */
    .art-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.art-related-heading { font-size: 17px; font-weight: 900; color: var(--dark); margin-bottom: 16px; }
.art-related-heading::before { content: ''; display: block; width: 28px; height: 3px; background: var(--orange); border-radius: 2px; margin-bottom: 10px; }
.related-grid { display: flex; flex-direction: column; gap: 8px; }
.related-card { display: block; padding: 14px 16px; background: #fafafa; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color 0.2s, background 0.2s; }
.related-card:hover { border-color: var(--orange); background: #fff; }
.related-badge { display: inline-block; background: rgba(232,115,42,0.12); color: var(--orange); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-bottom: 7px; letter-spacing: 0.2px; }
.related-badge:empty { display: none; }
.related-title { display: block; font-size: 14px; font-weight: 700; color: var(--dark); line-height: 1.5; word-break: keep-all; }
@media (max-width: 600px) {
      .art-related { margin-top: 36px; padding-top: 24px; }
      .art-related-heading { font-size: 16px; margin-bottom: 12px; }
      .related-grid { gap: 8px; }
      .related-card { padding: 12px 14px; border-radius: 10px; }
      .related-badge { font-size: 10px; padding: 2px 8px; margin-bottom: 5px; }
      .related-title { font-size: 13.5px; line-height: 1.45; }
    }
/* RELATED-CSS-END */

.art-title { font-size: clamp(22px, 5vw, 30px); font-weight: 900; line-height: 1.35; letter-spacing: -0.5px; margin-bottom: 16px; }
.art-desc { font-size: 16px; color: var(--muted); margin-bottom: 24px; line-height: 1.7; }
.art-meta { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 36px; font-size: 13px; }
.art-meta-author { font-weight: 700; color: var(--text); }
.art-meta-date { color: var(--muted); }
.art-body { font-size: 16px; line-height: 1.85; word-break: keep-all; overflow-wrap: break-word; }
.art-body p { margin-bottom: 22px; color: #333; word-break: keep-all; overflow-wrap: break-word; }
.art-body li { word-break: keep-all; overflow-wrap: break-word; }
.art-body strong { color: var(--text); font-weight: 700; }
.art-body h2 { font-size: 20px; font-weight: 900; margin: 52px 0 20px; line-height: 1.4; letter-spacing: -0.3px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); display: inline-block; }
.art-body ul, .art-body ol { margin: 0 0 28px 22px; padding-left: 4px; }
.art-body li { margin-bottom: 14px; line-height: 1.85; }
.art-body li:last-child { margin-bottom: 0; }
.art-body a { color: var(--orange); text-decoration: underline; font-weight: 600; }
.art-body table { margin: 20px 0 32px; }
.art-body table td, .art-body table th { line-height: 1.6; }
.art-body div[style*="border-left"] { margin: 28px 0 !important; }
.faq-item { margin-bottom: 22px; padding: 18px 20px; background: #fafafa; border-radius: 14px; border-left: 3px solid var(--orange); }
.faq-q { font-weight: 800; color: var(--text); margin-bottom: 10px; font-size: 15px; line-height: 1.5; }
.faq-a { color: #555; line-height: 1.85; font-size: 14px; }
.faq-a a { color: var(--orange); }
.ba-section { margin: 28px 0 8px; }
.ba-section + .ba-section { margin-top: 22px; }
.ba-section-title { font-size: 15px; font-weight: 800; color: var(--text); margin: 0 0 10px; padding-left: 10px; border-left: 3px solid var(--orange); line-height: 1.4; }
.ba-section .ba-photos { margin: 0; }
.ba-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 8px; }
.ba-photo { margin: 0; background: #0a0a0a; border-radius: 14px; overflow: hidden; position: relative; }
.ba-photo img {
  display: block; width: 100%; height: auto;
  /* 🔒 이미지 도용 방지 — 우클릭/드래그/저장 차단 */
  -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; -o-user-drag: none; user-drag: none;
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
/* 우클릭 방지를 위한 투명 오버레이 (이미지 위에 덮음) */
.ba-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: transparent; pointer-events: auto;
}
.ba-photo figcaption { padding: 10px 12px; font-size: 12px; color: #fff; background: rgba(0,0,0,0.9); display: flex; align-items: center; gap: 8px; position: relative; z-index: 3; pointer-events: none; }
.ba-tag { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; padding: 3px 8px; border-radius: 50px; }
.ba-tag-before { background: rgba(255,69,58,0.95); color: #fff; }
.ba-tag-after { background: rgba(52,199,89,0.95); color: #fff; }
.ba-tag-progress { background: rgba(232,115,42,0.95); color: #fff; }
.ba-photo-progress { background: #1a1a1a; }
/* 수리중 사진: PC 3-column 일렬, 모바일은 1-column 큰 사진 (한 장씩 보기 좋게) */
.ba-photos:has(.ba-photo-progress) { grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 600px) {
  .ba-photos:has(.ba-photo-progress) { grid-template-columns: 1fr; gap: 14px; }
  /* before/after 사진도 모바일에서 1-column으로 크게 보이게 */
  .ba-photos:not(:has(.ba-photo-progress)) { grid-template-columns: 1fr; gap: 14px; }
}
.ba-caption-text { text-align: center; color: #888; font-size: 12px; margin: 0 0 32px; }
/* 워터마크 (옅은 텍스트 — 도용 시 출처 추적 가능) */
.ba-photo::after {
  content: "© 다올리페어"; position: absolute; bottom: 38px; right: 8px;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6); z-index: 3; pointer-events: none;
}
/* 수리 과정 공개 블록 — 모바일에서 줄바꿈 자연스럽게 */
.progress-block { background: #fafafa; border: 1px solid #e5e5e7; border-radius: 14px; padding: 20px 18px; margin: 24px 0; }
.progress-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.progress-badge { background: #1C1C1E; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; padding: 5px 11px; border-radius: 50px; white-space: nowrap; flex-shrink: 0; }
.progress-subtitle { font-size: 13px; color: #666; font-weight: 600; line-height: 1.5; }
.progress-desc { font-size: 14px; color: #555; line-height: 1.7; margin: 0 0 14px; }
@media (max-width: 480px) {
  .progress-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .progress-subtitle { font-size: 12.5px; }
}
@media (max-width: 720px) {
  .art-wrap { padding: 30px 18px 80px; }
  .art-body { font-size: 15.5px; line-height: 1.95; }
  .art-body p { margin-bottom: 26px; }
  .art-body h2 { font-size: 18px; margin: 48px 0 18px; line-height: 1.45; }
  .art-body ul, .art-body ol { margin: 0 0 30px 20px; }
  .art-body li { margin-bottom: 16px; line-height: 1.95; }
  .art-body table { font-size: 13px; }
  .art-body table td, .art-body table th { padding: 8px !important; line-height: 1.55; }
  .art-body div[style*="border-left"] { margin: 32px 0 !important; padding: 16px 18px !important; }
  .faq-item { margin-bottom: 18px; padding: 16px 18px; }
  .faq-a { line-height: 1.95; }
}
@media (max-width: 480px) {
  .ba-photos { grid-template-columns: 1fr; }
}
.art-cta-btn { display:inline-block; background:#E8732A; color:#fff; text-decoration:none; padding:13px 26px; border-radius:30px; font-size:14px; font-weight:800; transition:background 0.2s; box-shadow:0 4px 14px rgba(232,115,42,0.3); }
.art-cta-btn:hover { background:#C55E1A; }
.art-cta-btn-ghost { display:inline-block; background:#fff; color:#1a1a1a; border:2px solid #1a1a1a; text-decoration:none; padding:11px 24px; border-radius:30px; font-size:14px; font-weight:800; transition:all 0.2s; }
.art-cta-btn-ghost:hover { background:#1a1a1a; color:#fff; }
