/* BlueTag 블로그 — /styles.css 의 토큰(--blue, --navy, --sans …)과 .wrap/.btn/.brand/.eyebrow 를 재사용한다. */
.blog-page { overflow-wrap: break-word; background: var(--bg); }
.blog-page :is(a, button):focus-visible { outline: 3px solid #bc4b00; outline-offset: 3px; border-radius: 4px; }
.blog-page :is(main, section, [id]) { scroll-margin-top: 90px; }
.bl-skip { position: fixed; z-index: 100; left: 16px; top: -100px; padding: 12px 20px; background: var(--navy); color: #fff; border-radius: 8px; }
.bl-skip:focus { top: 12px; }

/* Header */
.bl-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.bl-header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.bl-nav { display: flex; gap: 4px; margin-left: auto; }
.bl-nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); padding: 10px 12px; border-radius: 8px; }
.bl-nav a:hover { color: var(--blue); background: var(--bg-tint); }
.bl-nav a[aria-current] { color: var(--blue-700); font-weight: 700; }
.bl-header-cta { min-height: 44px; padding: 10px 18px; font-size: 14px; }

/* List hero */
.bl-hero { padding: 28px 0 40px; background: linear-gradient(120deg, #fff 40%, #f1f6ff); border-bottom: 1px solid var(--line-2); }
.bl-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 32px; font-size: 13px; color: var(--muted); }
.bl-breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--muted-2); }
.bl-breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.bl-breadcrumb [aria-current] { color: var(--ink-soft); }
.bl-hero h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.25; letter-spacing: -.04em; margin: 16px 0 14px; word-break: keep-all; }
.bl-h1-sub { font-size: .5em; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.bl-lead { max-width: 720px; font-size: 17px; line-height: 1.8; color: var(--ink-soft); word-break: keep-all; margin: 0; }
.bl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.bl-filters a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.bl-filters a:hover { border-color: var(--sky-line); background: var(--bg-tint); }
.bl-filters a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.bl-count { font-family: var(--mono); font-size: 12px; opacity: .7; }

/* Cards */
.bl-list { padding: 48px 0 72px; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; position: relative; }
.bl-card:hover { box-shadow: var(--shadow); border-color: var(--sky-line); transform: translateY(-2px); }
.bl-card-thumb { display: block; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.bl-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-card > :not(.bl-card-thumb) { margin-left: 22px; margin-right: 22px; }
.bl-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.bl-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: 6px; background: var(--sky); color: var(--blue-700); font-size: 12px; font-weight: 700; position: relative; z-index: 1; }
a.bl-chip:hover { background: var(--sky-line); }
.bl-card-title { font-size: 19px; line-height: 1.45; letter-spacing: -.02em; margin: 12px 0 8px; word-break: keep-all; }
.bl-card-title a::after { content: ''; position: absolute; inset: 0; } /* 카드 전체 클릭 */
.bl-card-title a:hover { color: var(--blue-700); }
.bl-card-desc { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; padding: 0; margin: auto 0 22px; font-size: 12.5px; color: var(--muted-2); }
.bl-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.bl-empty a { color: var(--blue-700); text-decoration: underline; }

/* Pagination */
.bl-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 48px; }
.bl-pagination a, .bl-pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-soft); background: #fff; }
.bl-pagination a:hover { border-color: var(--sky-line); background: var(--bg-tint); }
.bl-pagination [aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.bl-pagination [aria-disabled] { color: var(--muted-2); background: var(--bg-soft); }

/* Post */
.bp-narrow { max-width: 800px; }
.bp-head { padding: 28px 0 8px; background: linear-gradient(180deg, #f3f7ff, #fff 70%); }
.bp-head .bl-breadcrumb ol { margin-bottom: 28px; }
.bp-head .bl-card-meta { margin-top: 0; }
.bp-head h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.32; letter-spacing: -.035em; margin: 16px 0 16px; word-break: keep-all; }
.bp-lead { font-size: 18px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 12px; word-break: keep-all; }
.bp-author { font-size: 13px; color: var(--muted); margin: 0 0 28px; }
.bp-cover { margin: 0 0 8px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.bp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bp-summary { margin: 32px 0 0; padding: 20px 24px; border-left: 4px solid var(--blue-700); border-radius: var(--radius-sm); background: var(--bg-soft); }
.bp-summary h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--blue-700); }
.bp-summary ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; line-height: 1.7; color: var(--ink); word-break: keep-all; }
.bp-summary + .bp-toc { margin-top: 16px; }
.bp-toc { margin: 32px 0 8px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.bp-toc p { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.bp-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.bp-toc a { color: var(--ink-soft); }
.bp-toc a:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }

.bp-body { font-size: 17px; line-height: 1.9; color: var(--ink); word-break: keep-all; padding-top: 16px; }
.bp-body > * { margin: 0 0 1.25em; }
.bp-body h2 { font-size: clamp(22px, 2.4vw, 27px); line-height: 1.4; letter-spacing: -.025em; margin: 2.2em 0 .8em; padding-top: .4em; }
.bp-body h3 { font-size: 20px; line-height: 1.45; letter-spacing: -.02em; margin: 1.8em 0 .6em; }
.bp-body h4 { font-size: 17px; margin: 1.6em 0 .5em; }
.bp-body a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bp-body a:hover { text-decoration-thickness: 2px; }
.bp-body ul, .bp-body ol { padding-left: 1.4em; }
.bp-body li { margin: .35em 0; }
.bp-body li > p { margin: 0; }
.bp-body strong { font-weight: 700; color: var(--ink); }
.bp-body blockquote { margin-left: 0; margin-right: 0; padding: 16px 22px; border-left: 4px solid var(--blue); background: var(--bg-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-soft); }
.bp-body blockquote > :last-child { margin-bottom: 0; }
.bp-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.bp-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); display: block; margin: 0 auto; }
.bp-body code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: .1em .35em; }
.bp-body pre { background: var(--navy-900); color: #e6edff; padding: 18px 20px; border-radius: var(--radius-sm); overflow-x: auto; line-height: 1.6; font-size: 14px; }
.bp-body pre code { background: none; border: 0; padding: 0; color: inherit; }
.bp-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.bp-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; min-width: 520px; }
.bp-table th, .bp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.bp-table th { background: var(--bg-soft); font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.bp-table tr:last-child td { border-bottom: 0; }

.bp-tags { margin: 36px 0 0; font-size: 14px; }
.bp-sources { margin-top: 40px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.bp-sources h2 { font-size: 18px; margin: 0 0 14px; letter-spacing: -.02em; }
.bp-sources ol { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.bp-sources li { font-size: 15px; line-height: 1.6; }
.bp-sources a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.bp-sources li span { display: block; font-size: 13px; color: var(--muted); }
.bp-note { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 16px 0 0; }
.bp-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.bp-adjacent a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.bp-adjacent a:hover { border-color: var(--sky-line); background: var(--bg-tint); }
.bp-adjacent a span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.bp-adj-next { text-align: right; grid-column: 2; }
.bp-back { margin: 28px 0 56px; font-size: 15px; }
.bp-back a { color: var(--blue-700); font-weight: 600; }
.bp-related { padding: 56px 0 72px; background: var(--bg-soft); border-top: 1px solid var(--line-2); }
.bp-related h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 24px; }

/* CTA */
.bl-cta { padding: 0 0 72px; }
.bp + .bl-cta { padding-top: 0; }
.bl-cta-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 44px; border-radius: var(--radius-lg); background: radial-gradient(ellipse at 100% 0%, #2c55c9, transparent 60%), var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.bl-cta-card h2 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; margin: 12px 0 10px; word-break: keep-all; }
.bl-cta-card p { margin: 0; color: #c9d8f5; line-height: 1.75; font-size: 15.5px; max-width: 620px; word-break: keep-all; }
.bl-cta-card .btn { flex: none; }
.bl-cta-card .btn:focus-visible { outline-color: #fff; }

/* Footer */
.bl-footer { padding: 44px 0 36px; border-top: 1px solid var(--line); background: #fff; }
.bl-footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.bl-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.bl-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
.bl-footer nav a:hover { color: var(--blue); }
.bl-footer-legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.bl-footer-legal p { margin: 0; }
.bl-footer-legal a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-header-cta { display: none; }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  .bl-header-inner { min-height: 60px; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
  .bl-nav { order: 3; width: 100%; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .bl-nav::-webkit-scrollbar { display: none; }
  .bl-nav a { white-space: nowrap; font-size: 14px; padding: 10px; }
  .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bl-hero { padding-bottom: 28px; }
  .bl-breadcrumb ol { margin-bottom: 20px; }
  .bl-list { padding: 28px 0 56px; }
  .bp-body { font-size: 16.5px; line-height: 1.85; }
  .bp-lead { font-size: 16.5px; }
  .bp-adjacent { grid-template-columns: 1fr; }
  .bp-adj-next { grid-column: 1; text-align: left; }
  .bl-cta-card { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .bl-cta-card .btn { width: 100%; justify-content: center; }
  .bl-footer-top { flex-direction: column; align-items: flex-start; }
  .bp-sources { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) { .bl-card { transition: none; } .bl-card:hover { transform: none; } }
