/* =========================================================
   호안 인사이트 · 블로그 글 상세 (Single Post) — article.css
   Loads AFTER insights.css (reuses tokens, header, consult, footer)
   Body Pretendard · labels JetBrains Mono · 3-color (blue/gold/black)
   ========================================================= */

:root { --c0f: #0F0F0F; --c2a: #2A2A2A; --c4a: #4A4A4A; --c88: #888; --cc0: #C0C0C0; --cec: #ECECEC; --cf0: #F0F0F0; }

/* offset for fixed header reused from insights.css */
.art-top { height: 76px; background: #fff; }
.art-fig { display: block; width: 100%; height: auto; border: 1px solid var(--cec); border-radius: 12px; margin: 26px 0; }

/* ── native timeline figure (replaces flat infographic image for legibility) ── */
.tline { border: 1px solid var(--cec); border-radius: 14px; background: #fff; padding: 30px clamp(20px, 4vw, 40px) 28px; margin: 32px 0; }
.tline-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tline-head .tl-lab { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; color: var(--blue); }
.tline-head .tl-brand { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; color: var(--cc0); }
.tline-title { font-family: var(--sans); font-weight: 700; font-size: clamp(18px, 2.4vw, 24px); color: var(--c0f); letter-spacing: -0.02em; line-height: 1.4; margin: 14px 0 36px; }
.tline-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tline-rail { position: absolute; top: 12px; left: 12.5%; right: 12.5%; height: 2px; transform: translateY(-50%); background: linear-gradient(90deg, var(--cec) 0 33.33%, var(--blue) 33.33% 100%); z-index: 0; }
.tline-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; }
.tl-dot::after { content: ""; border-radius: 50%; }
.tl-dot.is-mute { border: 2px solid var(--cc0); }
.tl-dot.is-mute::after { width: 8px; height: 8px; background: var(--cc0); }
.tl-dot.is-blue { border: 3px solid var(--blue); }
.tl-dot.is-blue::after { width: 9px; height: 9px; background: var(--blue); }
.tl-dot.is-gold { border: 5px solid var(--gold); }
.tl-year { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; margin-top: 16px; color: var(--cc0); white-space: nowrap; }
.tl-meta { display: flex; flex-direction: column; align-items: inherit; width: 100%; }
.tline-step.s-blue .tl-year { color: var(--blue); }
.tline-step.s-gold .tl-year { color: var(--gold); }
.tl-name { font-size: clamp(14px, 1.6vw, 16px); font-weight: 700; color: var(--c0f); margin-top: 8px; letter-spacing: -0.01em; white-space: nowrap; }
.tl-desc { font-size: 13px; color: var(--c4a); line-height: 1.6; margin-top: 8px; }
.tline-foot { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--cf0); }
.tl-badge { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: #fff; background: var(--gold); padding: 7px 14px; border-radius: 6px; white-space: nowrap; }
.tl-foot-desc { font-size: 14px; font-weight: 500; color: var(--c2a); }
@media (max-width: 600px) {
  .tline-track { grid-template-columns: 1fr; gap: 0; }
  .tline-rail { top: 0; bottom: 12px; left: 12px; right: auto; width: 2px; height: auto; transform: none; background: linear-gradient(180deg, var(--cec) 0 16%, var(--blue) 16% 100%); }
  .tline-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; padding-bottom: 24px; }
  .tline-step .tl-dot { margin-top: 0; flex-shrink: 0; }
  .tl-year { margin-top: 0; }
}

/* article view = standalone newspaper: hide the global site header/nav */
body.article-view .hdr, body.article-view .mnav { display: none !important; }
body.article-view .art-top { height: 22px; }

/* newspaper masthead (article view only) */
.artmast { background: #fff; }
.artmast .artmast-in { max-width: 1320px; margin-inline: auto; padding: 22px 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-top: none; border-bottom: 3px double #c4c4c4; }
.artmast .am-side { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--c88); white-space: nowrap; }
.artmast .am-right { text-align: right; }
.artmast .am-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.artmast .am-name { font-family: var(--chosun); font-weight: 400; font-size: clamp(28px, 3.6vw, 44px); color: var(--c0f); line-height: 1; letter-spacing: 0.05em; }
.artmast .am-en { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--gold); text-transform: uppercase; white-space: nowrap; }
@media (max-width: 720px) { .artmast .artmast-in { grid-template-columns: 1fr; gap: 12px; } .artmast .am-side { display: none; } }

/* breadcrumb */
/* sticky newspaper area (replaces site header on article view) */
.news-sticky { position: sticky; top: 0; z-index: 50; background: #fff; }

.crumb { background: var(--paper); border-bottom: 1px solid var(--cec); }
.crumb .wrapx { max-width: 1320px; margin-inline: auto; padding: 0 32px; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.crumb-trail { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 13.5px; font-weight: 500; letter-spacing: 0.02em; color: var(--c88); }
.crumb-nav { display: flex; align-items: center; gap: 22px; }
.crumb-nav a { font-size: 13px; font-weight: 600; color: var(--c4a); white-space: nowrap; letter-spacing: -0.01em; transition: color .2s; }
.crumb-nav a:hover { color: var(--blue); }
.crumb-nav a.cn-active { color: var(--c0f); }
.crumb-nav a.cn-active::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #1a1a1a; margin-right: 7px; vertical-align: middle; }
@media (max-width: 860px) { .crumb-nav { display: none; } }
.crumb a { color: var(--c88); }
.crumb a:hover { color: var(--blue); }
.crumb .sep { color: var(--cc0); }
.crumb .cur { color: var(--c2a); }

/* layout */
.art-wrap { max-width: 1320px; margin-inline: auto; padding: clamp(40px, 5vw, 60px) 32px; display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 60px; align-items: start; }
.art-main { min-width: 0; }
.art-side { position: sticky; top: 88px; display: grid; gap: 32px; }

/* article meta header */
.badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--blue); }
.cat-badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.b-pick { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; background: var(--blue); color: #fff; padding: 3px 9px; border-radius: 4px; }
.b-new { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.b-new .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); position: relative; }
.b-new .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blue); animation: apulse 2s ease-out infinite; }
@keyframes apulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.6); opacity: 0; } }
.art-title { font-family: var(--sans); font-weight: 700; font-size: clamp(26px, 3.6vw, 38px); color: var(--c0f); letter-spacing: -0.03em; line-height: 1.35; margin-bottom: 20px; }
.art-meta { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; color: var(--c88); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.art-meta .by { color: var(--c4a); font-weight: 600; }
.art-meta .sep { color: var(--cc0); }

.art-hero-img { width: 100%; max-height: 480px; aspect-ratio: 16/8; object-fit: cover; border-radius: 12px; margin-bottom: 48px; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); position: relative; overflow: hidden; }
.art-hero-img.ph { display: grid; place-items: center; }
.art-hero-img.ph::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 30px 30px; -webkit-mask-image: radial-gradient(ellipse at 60% 35%, #000, transparent 72%); mask-image: radial-gradient(ellipse at 60% 35%, #000, transparent 72%); }
.art-hero-img.ph span { position: relative; z-index: 1; color: rgba(255,255,255,.6); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }

/* prose */
.prose { max-width: none; }
.prose p { font-size: 16px; color: var(--c2a); line-height: 1.85; margin-bottom: 20px; }
.prose p.lead { font-size: 16.5px; margin-bottom: 32px; }
.prose b, .prose strong { color: var(--c0f); font-weight: 600; }
.prose a { color: var(--blue); border-bottom: 1px dotted var(--blue); }
.prose a:hover { color: var(--blue-dark); border-bottom-style: solid; }

/* FOR YOU box */
.foryou { background: var(--paper); border: 1px solid var(--cec); border-radius: 12px; padding: 24px 28px; margin-bottom: 40px; }
.foryou .lab { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.15em; color: var(--blue); }
.foryou h2 { font-size: 17px; font-weight: 700; color: var(--c0f); margin: 6px 0 0; letter-spacing: -0.01em; }
.foryou ul { margin-top: 14px; display: grid; gap: 9px; }
.foryou li { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: 14.5px; color: var(--c2a); line-height: 1.8; }
.foryou li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--blue); margin-top: 12px; }

/* 세 줄 요약 */
.tldr { border-left: 4px solid var(--blue); background: #fff; padding: 26px 32px; border-radius: 0 8px 8px 0; margin-bottom: 56px; box-shadow: var(--shadow-sm, 0 1px 3px rgba(15,15,15,.05)); }
.tldr h2 { font-size: 18px; font-weight: 700; color: var(--c0f); }
.tldr ul { margin-top: 14px; display: grid; gap: 11px; }
.tldr li { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: 15px; font-weight: 500; color: var(--c2a); line-height: 1.75; }
.tldr li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--blue); margin-top: 11px; }

/* H2 / H3 */
.prose h2.sec { font-size: clamp(22px, 2.6vw, 26px); font-weight: 700; color: var(--c0f); letter-spacing: -0.025em; border-bottom: 1px solid var(--cec); padding-bottom: 14px; margin: 72px 0 28px; }
.prose h2.sec .n { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.15em; color: var(--blue); margin-bottom: 8px; }
.prose h3 { font-size: clamp(18px, 2.1vw, 21px); font-weight: 700; color: var(--c0f); letter-spacing: -0.02em; margin: 48px 0 16px; }

/* comparison table */
.cmp-wrap { margin: 32px 0; overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp thead th { background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; text-align: left; padding: 16px 18px; }
.cmp thead th:first-child { border-radius: 8px 0 0 0; }
.cmp thead th:last-child { border-radius: 0 8px 0 0; }
.cmp td { font-size: 14.5px; color: var(--c2a); padding: 14px 18px; border: 1px solid var(--cec); line-height: 1.6; }
.cmp td:first-child { font-weight: 600; color: var(--c0f); }
.cmp tbody tr:nth-child(even) td { background: var(--paper); }
.cmp tbody tr:hover td { background: #F5F8FF; }

/* 처리 절차 number list */
.proc .ptit { font-size: 15px; font-weight: 600; color: var(--blue); margin: 28px 0 16px; }
.proc ol { display: grid; gap: 12px; counter-reset: step; }
.proc li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; font-size: 15px; color: var(--c2a); line-height: 1.75; }
.proc li .num { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 700; display: grid; place-items: center; transition: transform .2s ease; }
.proc li:hover .num { transform: scale(1.08); }

/* callout boxes (주의·법령·실무) */
.call { border-left: 4px solid; padding: 20px 24px; border-radius: 0 8px 8px 0; margin: 28px 0; }
.call h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.call p { font-size: 14.5px; color: var(--c2a); line-height: 1.75; margin: 0; }
.call p b { font-weight: 600; }
.call--warn { border-color: var(--gold); background: #FFFAF0; }
.call--warn h4 { color: var(--gold); }
.call--warn p b { color: var(--gold); }
.call--law { border-color: var(--blue); background: #F5F8FF; }
.call--law h4 { color: var(--blue); }
.call--law p b { color: var(--blue); }
.call--prac { border-color: var(--c0f); background: var(--paper); }
.call--prac h4 { color: var(--c0f); }

/* 결론 박스 */
.verdict { background: #fff; border: 1px solid var(--blue); border-radius: 10px; padding: 24px 28px; margin: 40px 0; }
.verdict h3 { font-size: 17px; font-weight: 700; color: var(--blue); margin: 0 0 14px; }
.verdict ul { display: grid; gap: 12px; }
.verdict li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; font-size: 15px; color: var(--c2a); line-height: 1.6; }
.verdict li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); align-self: flex-start; margin-top: 7px; }
.verdict .arr { color: var(--c88); margin: 0 4px; }
.verdict .res { color: var(--blue); font-weight: 700; }

/* ============ SIDEBAR widgets ============ */
.w-lab { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.15em; color: var(--c88); margin-bottom: 16px; }
.w-cats a { display: flex; align-items: center; gap: 10px; padding: 8px 0 8px 0; border-bottom: 1px solid var(--cf0); font-size: 13.5px; font-weight: 500; color: var(--c2a); border-left: 2px solid transparent; padding-left: 0; transition: .18s ease; }
.w-cats a .d { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.w-cats a .nm { flex: 1; }
.w-cats a .ct { font-family: var(--mono); font-size: 11px; color: var(--c88); }
.w-cats a.black .d { background: var(--c0f); }
.w-cats a.gold .d { background: var(--gold); }
.w-cats a:hover { color: var(--blue); border-left-color: var(--blue); padding-left: 10px; }
.w-cats a.active { color: var(--blue); font-weight: 700; border-left-color: var(--blue); padding-left: 10px; }
.w-all { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--blue); }

.w-cta { background: #fff; border: 1px solid var(--cec); border-radius: 12px; padding: 24px; }
.w-cta .lab { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--blue); }
.w-cta h3 { font-size: 17px; font-weight: 700; color: var(--c0f); margin: 8px 0 12px; }
.w-cta p { font-size: 13px; color: var(--c4a); line-height: 1.7; }
.w-cta .btn { display: block; text-align: center; margin-top: 20px; background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; padding: 12px 16px; border-radius: 8px; transition: background .2s; }
.w-cta .btn:hover { background: var(--blue-dark); }
.w-cta .fine { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--cec); text-align: center; font-size: 11.5px; color: var(--c88); }

.w-deep { background: var(--c0f); color: #fff; border-radius: 12px; padding: 24px; }
.w-deep .lab { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--gold-light); display: inline-flex; align-items: center; gap: 7px; }
.w-deep .lab::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); }
.w-deep h3 { color: #fff; font-size: 16px; font-weight: 700; margin: 10px 0; }
.w-deep p { font-size: 12.5px; color: rgba(255,255,255,.65); line-height: 1.65; }
.w-deep .btn { display: block; text-align: center; margin-top: 18px; background: var(--gold-light); color: var(--c0f); font-weight: 600; font-size: 13px; padding: 12px 16px; border-radius: 6px; transition: background .2s; }
.w-deep .btn:hover { background: #e6bc78; }

.w-latest .it { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--cf0); }
.w-latest .rk { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--cc0); }
.w-latest .ct { font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--c88); }
.w-latest .ct .d { width: 6px; height: 6px; border-radius: 50%; background: var(--c0f); }
.w-latest .tit { font-size: 13.5px; font-weight: 600; color: var(--c0f); line-height: 1.5; margin: 6px 0; }
.w-latest a:hover .tit { color: var(--blue); }
.w-latest .mt { font-family: var(--mono); font-size: 11px; color: var(--c88); }

.w-about h3 { font-size: 15px; font-weight: 700; color: var(--c0f); margin: 8px 0 10px; }
.w-about p { font-size: 12.5px; color: var(--c4a); line-height: 1.7; }
.w-about a { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--blue); }

/* ============ bottom sections ============ */
.series { background: var(--paper); border-block: 1px solid var(--cec); }
.series .inn { max-width: 1320px; margin-inline: auto; padding: clamp(44px,6vw,60px) 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scard { background: #fff; border: 1px solid var(--cec); border-radius: 12px; padding: 24px 28px; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.scard .lab { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--c88); }
.scard.next .lab { color: var(--blue); }
.scard h3 { font-size: 17px; font-weight: 700; color: var(--c0f); margin: 10px 0 8px; line-height: 1.4; }
.scard .mt { font-family: var(--mono); font-size: 12px; color: var(--c88); }
.scard.prev:hover { border-color: var(--blue); transform: translateX(-4px); }
.scard.next { text-align: right; }
.scard.next:hover { border-color: var(--blue); transform: translateX(4px); background: #F5F8FF; }

.related { background: #fff; }
.related .inn { max-width: 1320px; margin-inline: auto; padding: clamp(56px,7vw,80px) 32px; }
.related .lab { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.15em; color: var(--blue); }
.related h2 { font-size: clamp(22px,2.6vw,26px); font-weight: 700; color: var(--c0f); margin: 8px 0 32px; letter-spacing: -0.02em; }
.rel-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.rcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cec); border-radius: 12px; padding: 28px 24px; min-height: 220px; overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.rcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.rcard:hover { border-color: var(--blue); transform: translateY(-3px); }
.rcard:hover::before { transform: scaleX(1); }
.rcard .ct { font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--c88); }
.rcard .ct .d { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.rcard h3 { font-size: 17px; font-weight: 700; color: var(--c0f); letter-spacing: -0.02em; line-height: 1.45; margin: 12px 0 10px; }
.rcard .sum { font-size: 13.5px; color: var(--c4a); line-height: 1.65; flex: 1; }
.rcard .mt { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--cec); font-family: var(--mono); font-size: 11.5px; color: var(--c88); display: flex; justify-content: space-between; align-items: center; }
.rcard .mt .arr { color: var(--blue); }

/* comments */
.comments { background: #fff; border-top: 1px solid var(--cec); }
.comments .inn { max-width: 720px; margin-inline: auto; padding: clamp(56px,7vw,80px) 32px; }
.comments h2 { font-size: 22px; font-weight: 700; color: var(--c0f); }
.comments .note { font-size: 12.5px; color: var(--c88); margin: 6px 0 24px; }
.cform { display: grid; gap: 14px; }
.cform textarea, .cform input { width: 100%; border: 1px solid #D9D9D9; border-radius: 8px; padding: 14px; font-size: 14.5px; font-family: var(--sans); color: var(--c2a); outline: none; transition: border-color .2s; }
.cform textarea:focus, .cform input:focus { border-color: var(--blue); }
.cform textarea { min-height: 120px; resize: vertical; }
.cform .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.cform .agree { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--c88); }
.cform .agree input { width: 16px; height: 16px; accent-color: var(--blue); margin-top: 2px; }
.cform .submit { justify-self: start; background: var(--blue); color: #fff; border: 0; font-weight: 600; font-size: 14px; padding: 12px 24px; border-radius: 8px; transition: background .2s; }
.cform .submit:hover { background: var(--blue-dark); }

/* ============ responsive ============ */
@media (max-width: 1199px) {
  .art-wrap { grid-template-columns: 1fr; gap: 48px; }
  .art-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .w-latest, .w-about { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .art-side { grid-template-columns: 1fr; }
  .series .inn { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr; }
  .cmp-wrap { margin-inline: -8px; }
  .cform .row3 { grid-template-columns: 1fr; }
}
