/* ============================================
   레이어미디어 소식 게시판 — 글 상세 공통 스타일
   --------------------------------------------
   새 글은 이 파일을 link 하고, <body> 또는 최상위에서
   --post-color 만 바꾸면 색상 테마가 적용됩니다.
   예) <body style="--post-color:#16a34a">
   ============================================ */

:root {
  --ink: #111418; --ink-2: #2b3038; --ink-3: #5a6470; --ink-4: #8b95a2;
  --line: #dee2e8; --line-soft: #eceff3;
  --paper: #ffffff; --bg: #f6f7fa;
  --gold: #b8922a; --gold-bg: rgba(184,146,42,0.08); --gold-border: rgba(184,146,42,0.22);
  --shadow: 0 1px 3px rgba(18,20,24,.06);
  --post-color: #1a56db;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

.topbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mainnav a { padding: 7px 13px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: all .15s ease; }
.mainnav a:hover { background: var(--line-soft); color: var(--ink); }
.mainnav a.active { background: var(--ink); color: white; }

.main { flex: 1; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 32px; }

.post-header { background: var(--paper); border-bottom: 1px solid var(--line); padding: 52px 0 36px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-4); margin-bottom: 18px; white-space: nowrap; }
.crumb a { color: var(--post-color); }
.crumb a:hover { text-decoration: underline; }
.post-meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.post-cat-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--post-color); text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: color-mix(in oklch, var(--post-color) 9%, transparent); border: 1px solid color-mix(in oklch, var(--post-color) 22%, transparent); white-space: nowrap; }
.post-cat-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--post-color); }
.post-date-tag { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; white-space: nowrap; }
.post-pin-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--gold); background: var(--gold-bg); padding: 3px 10px; border-radius: 4px; border: 1px solid var(--gold-border); white-space: nowrap; }
.post-title-h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.025em; line-height: 1.25; color: var(--ink); max-width: 24ch; }
.post-lede { margin-top: 16px; font-size: 16.5px; color: var(--ink-3); line-height: 1.75; max-width: 60ch; }

.post-body { padding: 44px 0 64px; }
.post-body h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 44px 0 14px; line-height: 1.3; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { font-size: 17px; font-weight: 800; letter-spacing: -.015em; margin: 28px 0 10px; color: var(--ink); }
.post-body p { font-size: 16px; line-height: 1.8; color: var(--ink-2); margin-bottom: 16px; }
.post-body ul, .post-body ol { margin: 12px 0 18px; padding-left: 24px; }
.post-body li { font-size: 16px; line-height: 1.75; color: var(--ink-2); margin-bottom: 6px; }
.post-body li::marker { color: var(--post-color); font-weight: 700; }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body a:not(.cta-btn):not(.back-link) { color: var(--post-color); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklch, var(--post-color) 40%, transparent); }
.post-body hr { margin: 36px 0; border: 0; border-top: 1px dashed var(--line); }

.callout { margin: 20px 0; padding: 18px 22px; background: color-mix(in oklch, var(--post-color) 6%, var(--paper)); border: 1px solid color-mix(in oklch, var(--post-color) 22%, var(--line)); border-radius: 12px; }
.callout-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: -.01em; color: var(--post-color); margin-bottom: 8px; }
.callout p { font-size: 14.5px; margin-bottom: 0; color: var(--ink-2); }

.say { margin: 16px 0 20px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--post-color); border-radius: 10px; }
.say div { font-size: 14.5px; color: var(--ink-2); line-height: 1.9; font-family: "JetBrains Mono", ui-monospace, monospace; }

.step { display: flex; gap: 16px; margin: 0 0 18px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.step-no { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--post-color); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step-body h3 { margin: 0 0 5px; font-size: 16px; font-weight: 800; }
.step-body p { font-size: 14.5px; margin-bottom: 0; color: var(--ink-3); }

table.cmp { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 14.5px; }
table.cmp th, table.cmp td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; line-height: 1.6; }
table.cmp th { background: var(--line-soft); font-weight: 800; font-size: 13.5px; }
table.cmp td:first-child { font-weight: 700; white-space: nowrap; }

.cta-btn { display: inline-flex; align-items: center; gap: 6px; margin: 6px 8px 6px 0; padding: 12px 20px; border-radius: 9px; background: var(--post-color); color: white !important; font-size: 14.5px; font-weight: 700; text-decoration: none !important; transition: opacity .15s; }
.cta-btn:hover { opacity: 0.88; }
.cta-btn.ghost { background: transparent; color: var(--post-color) !important; border: 1px solid color-mix(in oklch, var(--post-color) 35%, transparent); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: white; font-size: 13.5px; font-weight: 600; transition: opacity .15s; }
.back-link:hover { opacity: 0.85; }

.related { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.related-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; }
.related a { display: block; padding: 12px 16px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 14.5px; font-weight: 700; color: var(--ink); }
.related a:hover { border-color: var(--post-color); }

.footer { border-top: 1px solid var(--line); background: var(--paper); padding: 30px 0; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; color: var(--ink-4); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: var(--ink-4); }
.footer-nav a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .topbar-inner { height: auto; padding: 12px 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .mainnav { width: 100%; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  .mainnav::-webkit-scrollbar { display: none; }
  .wrap, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .post-header { padding: 36px 0 28px; }
  table.cmp { font-size: 13.5px; }
  table.cmp th, table.cmp td { padding: 9px 10px; }
}
