/* ============================================================
   MKC Blog — blog.css (v6 staging, 2026-10-18)
   V5 홈페이지 디자인 토큰 재사용 (site.css :root와 동일값)
   - 외부 웹폰트/CDN/트래커 0개 (Caddy CSP 'self' 호환)
   - JS 없음 → 키보드 탐색·접근성은 CSS만으로 보장
   ============================================================ */
:root{
  --navy:#070d22;--navy2:#0d1736;--deep:#08132c;--ink:#131c38;
  --muted:#65718f;--line:#e3e8f4;--cyan:#48daf9;--violet:#986bff;
  --blue:#557bff;--pink:#eb79e1;--mint:#62f5d3;--white:#fff;
  --width:1200px;--shadow:0 28px 84px rgba(15,25,70,.1);
  --text-dark:#2a3350;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,"Pretendard","Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  font-size:16px;line-height:1.6;color:#e9edfb;background:var(--navy);-webkit-font-smoothing:antialiased}
a{color:var(--blue)} a:hover{text-decoration-thickness:2px}
.wrap{max-width:var(--width);margin:0 auto;padding:0 24px}
img,svg{max-width:100%}

/* accessibility */
.skip-link{position:absolute;left:-9999px;top:0;background:#fff;color:var(--ink);padding:10px 16px;border-radius:0 0 10px 0;z-index:50;font-weight:700}
.skip-link:focus{left:0}
a:focus-visible,button:focus-visible,.task-box:focus-visible{outline:3px solid var(--cyan);outline-offset:2px;border-radius:4px}

/* header */
.blog-header{position:sticky;top:0;z-index:20;background:rgba(13,23,54,.94);backdrop-filter:blur(8px);border-bottom:1px solid rgba(72,218,249,.16)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px}
.brand{display:inline-flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-size:17px;letter-spacing:.2px}
.brand strong{color:var(--cyan)}
.orb{width:15px;height:15px;border-radius:50%;background:radial-gradient(circle at 32% 30%,#bff4ff,var(--cyan) 45%,var(--violet));box-shadow:0 0 14px rgba(72,218,249,.75);flex:none}
.blog-nav{display:flex;gap:6px;flex-wrap:wrap}
.blog-nav a{color:#c6d2f2;text-decoration:none;padding:8px 12px;border-radius:9px;font-size:14.5px}
.blog-nav a:hover{background:rgba(72,218,249,.1);color:#fff;text-decoration:none}
.blog-nav a.active{background:rgba(72,218,249,.16);color:#fff;font-weight:700}

/* hero band */
.hero-band{padding:64px 0 40px;background:radial-gradient(ellipse at 76% 17%,rgba(43,65,165,.38),transparent 45%),radial-gradient(ellipse at 30% 70%,rgba(57,26,115,.3),transparent 55%),var(--deep)}
.hero-inner{max-width:860px}
.eyebrow{display:inline-flex;align-items:center;gap:9px;margin:0 0 14px;padding:7px 14px;border:1px solid rgba(72,218,249,.35);border-radius:999px;color:#9fdcff;font-size:12.5px;letter-spacing:.12em}
.dot{width:8px;height:8px;border-radius:50%;background:var(--mint);box-shadow:0 0 10px var(--mint)}
#blogTitle{margin:0 0 14px;font-size:clamp(30px,5vw,46px);line-height:1.2;color:#fff}
.hero-lead{margin:0;max-width:720px;color:#b9c5e8;font-size:16.5px;line-height:1.75}

/* sections */
.section{padding-top:44px;padding-bottom:8px}
.section-title{position:relative;margin:0 0 20px;padding-left:14px;font-size:22px;color:#fff}
.section-title::before{content:"";position:absolute;left:0;top:5px;bottom:5px;width:4px;border-radius:4px;background:linear-gradient(180deg,var(--cyan),var(--violet))}
.section-title.small{font-size:18px;margin-top:36px;color:#fff}
.section-desc{color:#b9c5e8;max-width:720px;line-height:1.75}
.page-title{margin:6px 0 14px;font-size:clamp(26px,4vw,38px);line-height:1.25;color:#fff}

/* category cards */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;padding-bottom:24px}
.cat-card{display:flex;flex-direction:column;gap:8px;background:#fff;border-radius:14px;padding:18px;text-decoration:none;color:var(--ink);box-shadow:var(--shadow);transition:transform .15s ease}
.cat-card:hover{transform:translateY(-3px);text-decoration:none}
.cat-name{font-size:17px;font-weight:800}
.cat-desc{font-size:13.5px;color:var(--muted);line-height:1.6;flex:1}
.cat-state{font-size:12.5px;color:var(--blue);font-weight:700}

/* chips */
.cat-chip{display:inline-block;padding:4px 11px;border-radius:999px;font-size:12.5px;font-weight:800;letter-spacing:.02em;text-decoration:none}
a.cat-chip:hover{text-decoration:none;filter:brightness(.96)}
.c-cyan{background:#e2f8fe;color:#0b7d9c}.cat-cyan .cat-chip,.cat-chip.cat-cyan{background:#e2f8fe;color:#0b7d9c}
.c-violet{background:#efe7ff;color:#5b2fd1}.cat-chip.cat-violet{background:#efe7ff;color:#5b2fd1}
.c-blue{background:#e7ecff;color:#3450c9}.cat-chip.cat-blue{background:#e7ecff;color:#3450c9}
.c-mint{background:#dcfbee;color:#0d8a6f}.cat-chip.cat-mint{background:#dcfbee;color:#0d8a6f}
.c-pink{background:#fbe7fa;color:#b8289a}.cat-chip.cat-pink{background:#fbe7fa;color:#b8289a}

/* post cards */
.post-list{display:grid;gap:16px;padding-bottom:30px}
.post-card{background:#fff;border-radius:14px;padding:22px 24px;box-shadow:var(--shadow)}
.post-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;font-size:12.5px;color:var(--muted)}
.post-title{margin:0 0 8px;font-size:19.5px;line-height:1.4}
.post-title a{color:var(--ink);text-decoration:none}
.post-title a:hover{color:var(--blue);text-decoration:underline}
.post-card p:not(.post-meta-line){margin:0;color:#4a5678;font-size:14.5px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.post-meta-line{margin:12px 0 0;font-size:12.5px;color:var(--muted)}

/* planning list */
.plan-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.plan-item{background:rgba(255,255,255,.72);border:1px dashed #c9d4ee;border-radius:10px;padding:12px 16px;color:#3a4568;font-size:14.5px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.plan-tag{font-size:11.5px;font-weight:800;color:#7c5cd1;background:#efe7ff;padding:3px 9px;border-radius:999px;align-self:center}
.empty-note{color:#b9c5e8;margin:0 0 14px}

/* breadcrumb */
.breadcrumb{font-size:13.5px;color:#8fa0c9;padding-top:26px;display:flex;gap:8px;flex-wrap:wrap}
.breadcrumb a{color:#b9c5e8;text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}

/* article */
.article-card{background:#fff;border-radius:18px;box-shadow:var(--shadow);padding:clamp(24px,5vw,56px) clamp(20px,5.5vw,64px);margin-bottom:44px}
.post-head{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:28px}
.post-head h1{margin:14px 0 10px;font-size:clamp(24px,3.6vw,34px);line-height:1.35;color:var(--ink)}
.post-submeta{font-size:13px;color:var(--muted)}
.article-body{color:var(--text-dark);font-size:16.5px;line-height:1.85}
.article-body p{margin:0 0 18px}
.article-body h2{position:relative;margin:40px 0 16px;padding-left:14px;font-size:23px;color:var(--ink);line-height:1.4}
.article-body h2::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:4px;border-radius:4px;background:linear-gradient(180deg,var(--cyan),var(--violet))}
.article-body h3{margin:30px 0 12px;font-size:19px;color:var(--ink)}
.article-body ul,.article-body ol{margin:0 0 18px;padding-left:26px}
.article-body li{margin-bottom:8px}
.article-body li.task{list-style:none;margin-left:-26px;display:flex;align-items:flex-start;gap:9px}
.task-box{flex:none;width:17px;height:17px;margin-top:5px;border:1.6px solid #9aa7c7;border-radius:4px;background:#fff;color:#0d8a6f;font-size:12px;display:inline-flex;align-items:center;justify-content:center;line-height:1}
.article-body code{font-family:"JetBrains Mono",Consolas,"Cascadia Code",monospace;font-size:.9em;background:#eef1fa;border:1px solid #dde4f5;border-radius:6px;padding:2px 7px;color:#33406b;word-break:break-word}
.article-body pre{background:var(--navy2);border:1px solid rgba(72,218,249,.22);border-radius:12px;padding:18px 20px;overflow-x:auto;margin:0 0 20px;line-height:1.6}
.article-body pre code{background:none;border:0;padding:0;color:#d7e3ff;font-size:14px;white-space:pre}
.article-body blockquote{margin:0 0 20px;padding:16px 20px;border-left:4px solid;border-image:linear-gradient(180deg,var(--cyan),var(--violet)) 1;background:#f5f9ff;border-radius:0 12px 12px 0;color:#3c4a75}
.article-body blockquote p{margin:0}
.article-body hr{border:0;height:1px;background:linear-gradient(90deg,transparent,var(--line),transparent);margin:36px 0}
.table-wrap{overflow-x:auto;margin:0 0 22px;border:1px solid var(--line);border-radius:12px}
.article-body table{width:100%;border-collapse:collapse;font-size:14.5px;line-height:1.6;min-width:560px}
.article-body th{background:#f3f6fd;text-align:left;padding:12px 14px;color:var(--ink);font-weight:800;border-bottom:2px solid var(--line);white-space:nowrap}
.article-body td{padding:12px 14px;border-bottom:1px solid var(--line);color:#3a4568;vertical-align:top}
.article-body tr:last-child td{border-bottom:0}
.post-foot{border-top:1px solid var(--line);margin-top:36px;padding-top:22px;font-size:14.5px;color:#4a5678;display:grid;gap:10px}
.cta-line a{font-weight:800;color:var(--blue)}

/* about / contact / disclosure */
.about-cols{display:grid;gap:14px;background:#fff;border-radius:16px;padding:clamp(20px,4vw,36px);box-shadow:var(--shadow);color:var(--text-dark);line-height:1.8;font-size:15.5px}
.contact-card{background:#fff;border-radius:16px;padding:clamp(20px,4vw,36px);box-shadow:var(--shadow);display:grid;gap:16px;color:var(--text-dark)}
.contact-lead a{font-weight:800;font-size:17px}
.expect-list{margin:0;padding-left:22px;display:grid;gap:10px;font-size:15px;line-height:1.7}

/* 404 */
.err-code{margin:30px 0 0;font-size:clamp(60px,14vw,120px);font-weight:900;background:linear-gradient(90deg,var(--cyan),var(--violet));-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1}

/* footer (v6, superseded below) */
.blog-footer{margin-top:56px;padding:34px 0 42px;background:var(--navy2);border-top:1px solid rgba(72,218,249,.14)}
.footer-inner{display:grid;gap:6px;font-size:13.5px;color:#a9b7dd}
.footer-inner a{color:var(--cyan)}
.footer-legal{color:#7d8db8;margin-top:8px}

/* responsive */
@media (max-width:720px){
  .header-inner{height:auto;flex-direction:column;align-items:flex-start;padding:12px 0;gap:8px}
  .blog-nav a{padding:6px 9px;font-size:13.5px}
  .hero-band{padding:44px 0 28px}
  .section{padding-top:32px}
  .post-card{padding:18px}
  .article-body table{min-width:480px}
}

/* print */
@media print{
  .blog-header,.blog-footer,.breadcrumb{display:none}
  body{background:#fff;color:#111}
  .hero-band{background:none;padding:0}
  #blogTitle,.page-title,.section-title{color:#111}
  .article-card,.post-card{box-shadow:none;border:1px solid #ddd}
}

/* ============================================================
   V7 (2026-10-25): 홈페이지와 연결 · 중복 제거 · 디자인 정리
   ============================================================ */
body{overflow-x:clip}
.brand-orb{position:relative;display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:conic-gradient(from 15deg,#3fc9ff,#7163ff,#e779e6,#61ecfb,#3fc9ff);box-shadow:0 0 20px rgba(95,155,255,.6)}
.brand-orb::before{content:"";width:20px;height:20px;border-radius:50%;background:#111b45;box-shadow:inset 0 0 9px rgba(83,150,255,.7)}
.brand-orb span{position:absolute;width:11px;height:4px;top:13px;border-radius:0 0 50% 50%;border-bottom:2px solid #b6f9fe}
.brand{font-weight:570;letter-spacing:-.3px}.brand strong{color:#fff;font-weight:820}
.brand-lab{margin-left:8px;padding:2px 8px;border:1px solid rgba(72,218,249,.4);border-radius:99px;color:var(--cyan);font-style:normal;font-size:11.5px;font-weight:800;letter-spacing:.08em;vertical-align:2px}
.blog-nav{margin-left:auto}
.product-btn{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 16px;border-radius:99px;background:linear-gradient(100deg,#44d2f5,#7461fb);color:#fff;font-size:13.5px;font-weight:800;text-decoration:none;white-space:nowrap;box-shadow:0 4px 20px rgba(83,129,255,.35)}
.product-btn:hover{text-decoration:none;filter:brightness(1.08)}

/* hero: full-bleed band */
.hero-band{padding:76px 0 52px}
.hero-links{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin:26px 0 0}
.hero-links a{color:#b9c5e8;font-size:14.5px;font-weight:700}
.hero-links a.hero-cta{display:inline-flex;gap:8px;align-items:center;padding:11px 20px;border-radius:99px;background:#fff;color:var(--ink);text-decoration:none}
.hero-links a.hero-cta:hover{background:#e9f7ff}

/* cards: quieter surfaces on the dark page */
.cat-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.cat-card{position:relative;overflow:hidden;padding:20px 20px 18px;border-top:3px solid var(--blue)}
.cat-card.cat-cyan{border-top-color:var(--cyan)}.cat-card.cat-violet{border-top-color:var(--violet)}.cat-card.cat-mint{border-top-color:#2fd7b0}.cat-card.cat-pink{border-top-color:var(--pink)}
.post-card{transition:transform .15s ease,box-shadow .15s ease}.post-card:hover{transform:translateY(-2px);box-shadow:0 20px 60px rgba(15,25,70,.28)}
.post-card-top a.cat-chip{text-decoration:none}

/* article foot: product link + related posts (replaces the repeated mail CTA) */
.post-foot{display:grid;gap:28px;font-size:15px}
.product-card{display:grid;gap:6px;padding:22px 24px;border-radius:16px;background:linear-gradient(120deg,var(--navy2),#1a1f5a);color:#c9d5f5}
.product-kicker{color:var(--cyan);font-size:12px;font-weight:800;letter-spacing:.12em}
.product-card strong{color:#fff;font-size:19px}
.product-card p{margin:0;line-height:1.7;font-size:14.5px}
.product-card a{justify-self:start;margin-top:6px;color:#fff;font-weight:800;text-decoration:none;border-bottom:2px solid var(--cyan)}
.related h2{margin:0 0 12px;font-size:17px;color:var(--ink)}
.related-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.related-list a{display:grid;gap:8px;height:100%;padding:16px 18px;border:1px solid var(--line);border-radius:14px;color:var(--ink);text-decoration:none;transition:border-color .15s,background .15s}
.related-list a:hover{border-color:var(--blue);background:#f6f8ff}
.related-list .cat-chip{justify-self:start}
.related-list strong{font-size:15px;line-height:1.5}
.related-list small{color:var(--muted)}

/* footer */
.blog-footer{margin-top:72px;padding:48px 0 40px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px;font-size:14px;color:#a9b7dd}
.footer-about p{margin:12px 0 0;max-width:380px;line-height:1.7}
.footer-col{display:grid;align-content:start;gap:8px}
.footer-col h2{margin:0 0 4px;color:#fff;font-size:13px;letter-spacing:.08em}
.footer-col a{color:#a9b7dd;text-decoration:none}.footer-col a:hover{color:#fff}
.footer-legal{grid-column:1/-1;margin:8px 0 0;padding-top:20px;border-top:1px solid rgba(255,255,255,.08);color:#7d8db8;font-size:13px}
.footer-legal a{color:var(--cyan)}

@media (max-width:860px){
  .header-inner{flex-wrap:wrap;height:auto;padding:12px 0;gap:10px}
  .blog-nav{order:3;width:100%;margin-left:0;overflow-x:auto;flex-wrap:nowrap}
  .blog-nav a{white-space:nowrap}
  .footer-grid{grid-template-columns:1fr 1fr}.footer-about{grid-column:1/-1}
}
@media (max-width:720px){
  .header-inner{flex-direction:row;align-items:center}
  .product-btn{height:32px;padding:0 12px;font-size:12.5px}
}
@media print{.product-btn,.post-foot{display:none}}

/* drafts (preview only; check.py refuses to publish pages containing these) */
.draft-banner{margin:18px 0 0;padding:10px 16px;border:1px dashed #f5b74f;border-radius:10px;background:rgba(245,183,79,.12);color:#ffd99a;font-size:14px;font-weight:700}
.draft-flag{margin-left:auto;margin-right:10px;padding:2px 8px;border-radius:99px;background:#f5b74f;color:#3a2600;font-size:11px;font-weight:900;letter-spacing:.06em}
