/* ─────────────────────────────────────────────
   꿀팁·이벤트 상세 (body.v6.art6) — 사이트 v6 톤
   본문 서식(에디터 컬러 박스·템플릿 박스·표)은 관리자 에디터와 같은 모양 유지
   ───────────────────────────────────────────── */
body.v6.art6 { background: #fff !important; }
.art { padding: 28px 0 72px; }
.art-wrap { width: min(760px, 100% - 40px); margin: 0 auto; }
@media (max-width: 640px) { .art { padding: 18px 0 56px; } .art-wrap { width: calc(100% - 32px); } }

/* 위치 표시 */
.art-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.art-crumb a { color: var(--muted); }
.art-crumb a:hover { color: var(--ink); text-decoration: underline; }
.art-crumb span { color: var(--line-strong); }

/* 제목 영역 */
.art-head { margin-top: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.art-cat { display: inline-block; padding: 3px 8px; border-radius: var(--r-xs); background: var(--blue-soft); color: var(--blue); font-size: 12.5px; font-weight: 700; }
.art-tips .art-cat { background: var(--blue-soft); }
.art-head h1 { margin-top: 12px; font-size: clamp(25px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.32; color: var(--ink); word-break: keep-all; }
.art-meta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; color: var(--muted); }
.art-meta i { width: 1px; height: 11px; background: var(--line-strong); }
.art-state { font-weight: 700; color: var(--blue); }
.art-state.ended { color: var(--muted); }

/* ── 본문 ── */
.art6 .article-content { margin-top: 30px; font-size: 17px; line-height: 1.8; color: #1F2937; word-break: keep-all; overflow-wrap: anywhere; }
.art6 .article-content > :first-child { margin-top: 0 !important; }
.art6 .article-content p { margin: 0 0 14px; }
.art6 .article-content p:empty { min-height: 1.2em; margin: 0; }
.art6 .article-content h2 { margin: 44px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 23px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; color: var(--ink); }
.art6 .article-content h3 { margin: 30px 0 10px; font-size: 19.5px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.art6 .article-content h4 { margin: 22px 0 8px; font-size: 17px; font-weight: 700; color: var(--ink); }
.art6 .article-content ul, .art6 .article-content ol { margin: 0 0 16px; padding-left: 1.4em; }
.art6 .article-content li { margin-bottom: 6px; }
.art6 .article-content li > p { margin: 0; }
.art6 .article-content strong { font-weight: 700; color: var(--ink); }
.art6 .article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.art6 .article-content hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.art6 .article-content img { max-width: 100%; height: auto; display: block; margin: 20px auto; border-radius: var(--r-sm); }
.art6 .article-content img.float-left { float: left; margin: 0 20px 10px 0; max-width: 50%; }
.art6 .article-content img.float-right { float: right; margin: 0 0 10px 20px; max-width: 50%; }
.art6 .article-content span { display: inline; }
.art6 .article-content blockquote { margin: 18px 0; padding: 14px 18px; background: var(--bg-alt); border-left: 3px solid var(--navy); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); }
.art6 .article-content pre { background: #0B1020; color: #E5E7EB; padding: 14px 16px; border-radius: var(--r-sm); overflow-x: auto; }
.art6 .article-content .ql-align-center, .art6 .article-content [style*="text-align: center"] { text-align: center; }
@media (max-width: 640px) {
  .art6 .article-content { font-size: 16px; line-height: 1.78; }
  .art6 .article-content h2 { margin-top: 36px; font-size: 20.5px; }
  .art6 .article-content h3 { font-size: 17.5px; }
  .art6 .article-content img.float-left, .art6 .article-content img.float-right { float: none; max-width: 100%; margin: 12px 0; }
}

/* 표 (article-tables.js 가 좌우 스크롤 틀로 감쌈) */
.art6 .article-content table { width: 100% !important; border-collapse: collapse; table-layout: fixed; margin: 0; font-size: 15px; line-height: 1.55; }
.art6 .article-content > table, .art6 .article-content div > table { margin: 18px 0; }
.art6 .article-table-scroll { width: 100%; margin: 20px 0; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; -webkit-overflow-scrolling: touch; }
.art6 .article-table-scroll > table { min-width: var(--article-table-min-width, 560px); }
.art6 .article-content th, .art6 .article-content td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: middle; text-align: center; word-break: keep-all; }
.art6 .article-table-scroll tr:first-child > * { border-top: 0; }
.art6 .article-table-scroll tr:last-child > * { border-bottom: 0; }
.art6 .article-table-scroll tr > :first-child { border-left: 0; }
.art6 .article-table-scroll tr > :last-child { border-right: 0; }
.art6 .article-content th, .art6 .article-content thead td, .art6 .article-content tr:first-child td { background: var(--bg-alt); font-weight: 700; color: var(--ink); }
.art6 .article-content td p, .art6 .article-content th p { margin: 0; }

/* 에디터 컬러 박스 (관리자 에디터와 같은 색) */
.art6 .article-content .callout { padding: 14px 18px; border-radius: var(--r-sm); margin: 18px 0; line-height: 1.75; color: #1F2937; }
.art6 .article-content .callout-primary   { background: #EFF6FF; border-left: 4px solid #3B82F6; }
.art6 .article-content .callout-secondary { background: #F9FAFB; border-left: 4px solid #9CA3AF; }
.art6 .article-content .callout-warning   { background: #FFFBEB; border-left: 4px solid #F59E0B; }
.art6 .article-content .callout-success   { background: #F0FDF4; border-left: 4px solid #22C55E; }
.art6 .article-content .callout-danger    { background: #FFF1F2; border-left: 4px solid #EF4444; }
.art6 .article-content .callout-purple    { background: #FAF5FF; border-left: 4px solid #A855F7; }
.art6 .article-content .callout-orange    { background: #FFF7ED; border-left: 4px solid #F97316; }
.art6 .article-content .callout > :last-child { margin-bottom: 0; }
.art6 .article-content .side-line { padding: 10px 16px; margin: 14px 0; line-height: 1.75; border-radius: 0 6px 6px 0; }
.art6 .article-content .side-blue   { border-left: 5px solid #3B82F6; background: #F0F7FF; }
.art6 .article-content .side-green  { border-left: 5px solid #22C55E; background: #F0FDF4; }
.art6 .article-content .side-yellow { border-left: 5px solid #F59E0B; background: #FFFBEB; }
.art6 .article-content .side-red    { border-left: 5px solid #EF4444; background: #FFF5F5; }
.art6 .article-content .side-purple { border-left: 5px solid #A855F7; background: #FAF5FF; }
.art6 .article-content .hl-yellow { background: #FEF08A; padding: 1px 3px; border-radius: 3px; }
.art6 .article-content .hl-green  { background: #BBF7D0; padding: 1px 3px; border-radius: 3px; }
.art6 .article-content .hl-blue   { background: #BFDBFE; padding: 1px 3px; border-radius: 3px; }
.art6 .article-content .hl-pink   { background: #FBCFE8; padding: 1px 3px; border-radius: 3px; }
.art6 .article-content .hl-orange { background: #FED7AA; padding: 1px 3px; border-radius: 3px; }
.art6 .article-content .badge, .art6 .article-content .content-badge { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: .82em; font-weight: 700; line-height: 1.5; margin: 0 2px; color: #fff; }
.art6 .article-content .badge-blue   { background: #3B82F6; }
.art6 .article-content .badge-green  { background: #22C55E; }
.art6 .article-content .badge-red    { background: #EF4444; }
.art6 .article-content .badge-yellow { background: #F59E0B; }
.art6 .article-content .badge-purple { background: #A855F7; }

/* 에디터 템플릿 박스 */
.art6 .article-content .tpl-review-box { background: #FFF5EB; border: 1px solid #FED7AA; border-radius: 10px; padding: 18px 22px; margin: 18px 0; }
.art6 .article-content .tpl-review-title { font-weight: 800; color: #C2410C; margin-bottom: 10px; font-size: 15.5px; }
.art6 .article-content .tpl-review-item { padding: 8px 0; color: #44403C; line-height: 1.7; border-bottom: 1px dashed #FED7AA; }
.art6 .article-content .tpl-review-item:last-child { border-bottom: none; }
.art6 .article-content .tpl-faq-box { background: #FAF5FF; border: 1px solid #E9D5FF; border-radius: 10px; margin: 16px 0; overflow: hidden; }
.art6 .article-content .tpl-faq-q { background: #F3E8FF; color: #6B21A8; font-weight: 700; padding: 12px 18px; }
.art6 .article-content .tpl-faq-a { padding: 14px 18px; color: #44403C; line-height: 1.75; }
.art6 .article-content .tpl-warn-box { background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px; padding: 16px 20px; margin: 18px 0; }
.art6 .article-content .tpl-warn-title { color: #B91C1C; font-weight: 800; margin-bottom: 8px; }
.art6 .article-content .tpl-warn-list { margin: 0 0 0 20px; padding: 0; color: #44403C; }
.art6 .article-content .tpl-warn-list li { padding: 3px 0; line-height: 1.65; margin: 0; }
.art6 .article-content .tpl-check-box { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 10px; padding: 16px 20px; margin: 18px 0; }
.art6 .article-content .tpl-check-title { color: #166534; font-weight: 800; margin-bottom: 8px; }
.art6 .article-content .tpl-check-list { list-style: none; padding-left: 0; margin: 0; }
.art6 .article-content .tpl-check-list li { padding: 4px 0 4px 28px; position: relative; color: #44403C; line-height: 1.65; margin: 0; }
.art6 .article-content .tpl-check-list li::before { content: '✓'; position: absolute; left: 8px; color: #16A34A; font-weight: 800; }
.art6 .article-content .tpl-tip-box { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 10px; padding: 16px 20px; margin: 18px 0; }
.art6 .article-content .tpl-tip-title { color: #92400E; font-weight: 800; margin-bottom: 6px; }
.art6 .article-content .tpl-tip-content { color: #44403C; line-height: 1.75; }
.art6 .article-content .tpl-compare-table th { background: #3B82F6; color: #fff; }
.art6 .article-content .tpl-compare-table tr:nth-child(even) td { background: #F9FAFB; }

/* 하단 견적 안내 */
.art-cta { margin-top: 48px; padding: 24px; border-radius: var(--r); background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.art-cta strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.art-cta p { margin-top: 6px; font-size: 14.5px; color: rgba(255,255,255,.75); line-height: 1.6; max-width: 44ch; }
.art-cta-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.art-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 18px; border-radius: var(--r-sm); font-size: 15px; font-weight: 700; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.art-btn.primary { background: #fff; color: var(--navy); }
.art-btn.primary:hover { background: #EEF3FC; }
.art-btn.ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.art-btn.ghost:hover { border-color: #fff; }
.art-404 .art-btn.primary { background: var(--blue); color: #fff; margin-top: 18px; }
.art-404 { padding: 60px 0; text-align: center; }
.art-404 h1 { font-size: 26px; font-weight: 800; }
.art-404 p { margin-top: 8px; color: var(--muted); }
@media (max-width: 640px) { .art-cta { padding: 20px 18px; } .art-cta-actions { width: 100%; } .art-btn { flex: 1; } }

/* 관련 글 */
.art-related { margin-top: 48px; }
.art-related-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.art-related-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.art-related-head a { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.art-related-head a:hover { text-decoration: underline; }
.art-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.art-rel { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; transition: border-color .2s; }
.art-rel:hover { border-color: var(--ink-2); }
.art-rel-thumb { aspect-ratio: 16 / 9; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.art-rel-thumb img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.art-rel-thumb span { font-size: 13px; font-weight: 700; color: var(--muted); }
.art-rel-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.art-rel-cat { font-size: 12px; font-weight: 700; color: var(--blue); }
.art-rel-body strong { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-rel-body time { font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) {
  .art-related-grid { grid-template-columns: 1fr; gap: 10px; }
  .art-rel { flex-direction: row; }
  .art-rel-thumb { width: 112px; flex: none; aspect-ratio: auto; min-height: 84px; }
}

.art-back { display: inline-flex; align-items: center; height: 42px; margin-top: 28px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.art-back:hover { border-color: var(--ink-2); color: var(--ink); }
