/* 인사이트 (10-B · 2026-10-07) — /styles.css 다음에 읽습니다. 머리글 · 바닥글 · 버튼 · 색은 styles.css 그대로 씁니다.
   이 파일은 손으로 고칩니다. tools/build-insights.mjs 는 이 파일을 건드리지 않습니다. */
:root { --read: 720px; --wide: 1040px; }

.nav a.is-on { color: var(--accent); }
.ins { padding-block: calc(var(--hdr) + clamp(32px, 5vw, 64px)) clamp(72px, 8vw, 120px); }
.ins-article, .ins-more { width: min(var(--read), 100% - var(--pad) * 2); margin-inline: auto; }
.ins-hero, .ins-index, .ins > .ins-cta { width: min(var(--wide), 100% - var(--pad) * 2); margin-inline: auto; }

/* 현재 위치 */
.crumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumb li + li::before { content: '›'; margin-right: 6px; color: var(--line-2); }
.crumb a { display: inline-flex; align-items: center; min-height: 32px; }
.crumb a:hover { color: var(--accent); }

/* 분류 · 날짜 */
.ins-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.ins-cat { display: inline-flex; align-items: center; padding: 3px 11px; border: 1px solid rgba(195, 255, 46, .45); border-radius: var(--pill); color: var(--accent); font-size: 13px; font-weight: 700; }

/* 글 머리 */
.ins-head { margin-top: 18px; padding-bottom: 32px; border-bottom: 1px solid var(--hair); }
.ins-head h1 { margin-top: 16px; font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; line-height: 1.32; letter-spacing: -0.035em; }
.ins-lead { margin-top: 18px; color: var(--text-2); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.75; }

/* 본문: 폭 720px · 18px(모바일 17px) · 줄 간격 1.8 */
.ins-body { margin-top: 36px; color: var(--text-2); font-size: 18px; line-height: 1.8; letter-spacing: -0.005em; }
@media (max-width: 599px) { .ins-body { font-size: 17px; } }
.ins-body > * + * { margin-top: 1.15em; }
.ins-body h2 { margin-top: 2.3em; color: var(--text); font-size: clamp(22px, 2.3vw, 26px); font-weight: 800; line-height: 1.4; letter-spacing: -0.03em; }
.ins-body h3 { margin-top: 1.8em; color: var(--text); font-size: 19px; font-weight: 750; line-height: 1.45; }
.ins-body h2 + *, .ins-body h3 + * { margin-top: .75em; }
.ins-body ul, .ins-body ol { display: grid; gap: .45em; padding-left: 1.3em; }
.ins-body ul { list-style: disc; }
.ins-body ol { list-style: decimal; }
.ins-body li::marker { color: var(--accent); font-weight: 700; }
.ins-body strong { color: var(--text); font-weight: 700; }
.ins-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ins-body blockquote { margin: 1.4em 0 0; padding: 18px 22px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--card); color: var(--text); }
.ins-body blockquote p + p { margin-top: .6em; }
.ins-body hr { margin: 2.2em 0 0; border: 0; border-top: 1px solid var(--hair); }
.ins-body code { padding: 2px 6px; border-radius: 6px; background: var(--card-2); font-size: .9em; }

/* 표 (599px 이하에서는 줄마다 카드로 쌓입니다) */
.ins-table { margin-top: 1.4em; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.ins-table table { width: 100%; font-size: 15.5px; line-height: 1.6; }
.ins-table th, .ins-table td { padding: 13px 14px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.ins-table thead th { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.ins-table tbody th { color: var(--text); font-weight: 700; }
.ins-table td { color: var(--text-2); }
.ins-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 599px) {
  .ins-table { overflow: visible; border: 0; background: none; }
  .ins-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ins-table table, .ins-table tbody, .ins-table tr, .ins-table th, .ins-table td { display: block; width: 100%; }
  .ins-table tr { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
  .ins-table tbody th { padding: 0 0 8px; border: 0; font-size: 16px; }
  .ins-table td { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 10px; padding: 7px 0; border: 0; }
  .ins-table td::before { content: attr(data-label); color: var(--accent); font-size: 13px; font-weight: 700; padding-top: .15em; }
}

/* 상담 신청 */
.ins-cta { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--hair); }
.ins > .ins-cta { margin-top: clamp(48px, 6vw, 72px); }

/* 목록 머리 */
.ins-hero { padding-bottom: clamp(28px, 3vw, 40px); }
.ins-hero h1 { font-size: var(--h2); font-weight: 800; line-height: 1.25; }

/* 글 카드 */
.ins-list { display: grid; gap: 16px; }
@media (min-width: 700px) { .ins-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 800px) {
  .ins-index .ins-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-index .ins-card:first-child { grid-column: 1 / -1; }
  .ins-index .ins-card:first-child h2 { font-size: clamp(22px, 2.3vw, 28px); }
}
.ins-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); transition: border-color .25s, transform .25s var(--ease); }
.ins-card:hover { border-color: rgba(195, 255, 46, .5); transform: translateY(-3px); }
.ins-card:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.ins-card h2, .ins-card h3 { margin-top: 14px; font-size: clamp(19px, 1.8vw, 22px); font-weight: 800; line-height: 1.42; letter-spacing: -0.03em; }
.ins-card h2 a::after, .ins-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.ins-card a:focus-visible { outline: none; }
.ins-sum { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.ins-go { margin-top: auto; padding-top: 18px; color: var(--accent); font-size: 14px; font-weight: 700; }

/* 다른 글 */
.ins-more { margin-top: clamp(56px, 7vw, 88px); }
.ins-more > h2 { font-size: 20px; font-weight: 800; }
.ins-more .ins-list { margin-top: 18px; }
.ins-all { margin-top: 18px; }
.ins-all .link { min-height: 44px; }

@media (prefers-reduced-motion: reduce) { .ins-card, .ins-card:hover { transition: none; transform: none; } }
