/* EmbedIn — blog & article design (complements css/product.css; grounded / warm / editorial) */

/* ---- blog hub ---- */
.blog-hero{background:linear-gradient(180deg,var(--accent-soft),rgba(253,240,230,0) 70%),#fff;border-bottom:1px solid var(--line-2);padding:56px 0 44px}
.blog-hero .container{max-width:760px;text-align:center}
.blog-hero .kick{margin-bottom:12px}
.blog-hero h1{font-size:clamp(30px,4vw,44px);letter-spacing:-.03em;margin-bottom:14px}
.blog-hero p{font-size:clamp(16px,1.7vw,18.5px);color:var(--body);max-width:600px;margin:0 auto}

.blog-body{padding:44px 0 20px}
.blog-body .lead-row{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:26px;flex-wrap:wrap}
.blog-body .lead-row h2{font-size:20px;letter-spacing:-.02em}
.blog-body .count{font-size:13.5px;color:var(--muted);font-weight:600}

/* category filter */
.blog-filter{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:0 0 38px}
.fchip{display:inline-flex;align-items:center;gap:9px;font-family:inherit;font-size:14px;font-weight:700;color:var(--body);background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 17px;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.fchip:hover{border-color:#ddd6cb;background:var(--paper-2);color:var(--ink)}
.fchip .fdot{width:9px;height:9px;border-radius:50%;flex:0 0 auto}
.fchip .fdot.mon{background:var(--brand)}
.fchip .fdot.jir{background:#0052cc}
.fchip .fc-n{font-size:12px;font-weight:700;color:var(--muted);background:var(--paper-3);border-radius:999px;padding:1px 8px;transition:color .15s,background .15s}
.fchip.is-active{background:var(--ink);color:#fff;border-color:var(--ink)}
.fchip.is-active .fc-n{color:#fff;background:rgba(255,255,255,.16)}
.fchip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* post grid */
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.post-grid.two{grid-template-columns:repeat(2,1fr)}
.post-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:border-color .18s,box-shadow .18s,transform .18s}
.post-card:hover{border-color:#ddd6cb;box-shadow:var(--sh-2);transform:translateY(-3px)}
.post-card .thumb{height:8px;background:var(--accent)}
.post-card.mon .thumb{background:var(--brand)}
.post-card.jir .thumb{background:#0052cc}
.post-card .pc-body{padding:22px 22px 24px;display:flex;flex-direction:column;flex:1}
.post-card .pc-cat{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.post-card .pc-cat img{width:18px;height:18px;border-radius:5px;object-fit:contain}
.post-card h3{font-size:18px;line-height:1.28;letter-spacing:-.015em;margin-bottom:9px}
.post-card p{font-size:14.5px;color:var(--body);line-height:1.55;margin:0 0 16px;flex:1}
.post-card .pc-meta{font-size:12.5px;color:var(--muted);font-weight:600}
.post-card .pc-meta .dot{margin:0 7px;opacity:.5}

/* featured */
.post-feat{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:0;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-bottom:40px;box-shadow:var(--sh-1);transition:border-color .18s,box-shadow .18s}
.post-feat:hover{border-color:#ddd6cb;box-shadow:var(--sh-2)}
.post-feat .pf-txt{padding:38px 40px;display:flex;flex-direction:column;justify-content:center}
.post-feat .pf-cat{display:inline-flex;align-items:center;gap:8px;font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:14px}
.post-feat .pf-cat img{width:20px;height:20px;border-radius:5px}
.post-feat h2{font-size:clamp(22px,2.6vw,29px);line-height:1.18;letter-spacing:-.025em;margin-bottom:13px}
.post-feat p{font-size:16px;color:var(--body);line-height:1.6;margin-bottom:20px}
.post-feat .pf-meta{font-size:13px;color:var(--muted);font-weight:600}
.post-feat .pf-meta .dot{margin:0 7px;opacity:.5}
.post-feat .pf-side{background:var(--paper-2);border-left:1px solid var(--line-2);display:flex;align-items:center;justify-content:center;padding:34px}
.post-feat .pf-side img{width:96px;height:96px;border-radius:22px;border:1px solid var(--line);background:#fff;box-shadow:var(--sh-1);object-fit:contain;padding:6px}

/* ---- article ---- */
.article-hero{background:linear-gradient(180deg,var(--paper-2),#fff);border-bottom:1px solid var(--line-2);padding:34px 0 40px}
.article-hero .container{max-width:800px}
.article-cat{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:16px}
.article-cat img{width:20px;height:20px;border-radius:5px;object-fit:contain}
.article-hero h1{font-size:clamp(28px,3.8vw,42px);line-height:1.13;letter-spacing:-.03em;margin-bottom:16px}
.article-dek{font-size:clamp(16.5px,1.8vw,20px);color:var(--body);line-height:1.5;margin-bottom:22px}
.article-meta{display:flex;align-items:center;gap:11px;font-size:13.5px;color:var(--muted);font-weight:600}
.article-meta .av{width:34px;height:34px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;letter-spacing:.02em}
.article-meta .dot{margin:0 3px;opacity:.5}

.article-wrap{max-width:720px;margin:0 auto;padding:48px 0 12px}

/* table of contents */
.toc{background:var(--paper-2);border:1px solid var(--line-2);border-radius:12px;padding:20px 24px;margin:0 0 38px}
.toc .toc-h{font-size:11.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.toc ol{margin:0;padding:0;list-style:none;counter-reset:toc}
.toc li{counter-increment:toc;font-size:15px;line-height:1.5;padding:5px 0;display:flex;gap:11px}
.toc li::before{content:counter(toc,decimal-leading-zero);color:var(--accent);font-weight:800;font-size:12.5px;flex:0 0 auto;padding-top:2px}
.toc a{color:var(--body);font-weight:600}
.toc a:hover{color:var(--accent-ink)}

/* prose */
.article-body{font-size:17.5px;line-height:1.75;color:var(--body)}
.article-body > h2{font-size:clamp(22px,2.5vw,28px);color:var(--ink);letter-spacing:-.02em;line-height:1.25;margin:44px 0 16px}
.article-body > h2:first-child{margin-top:0}
.article-body > h3{font-size:clamp(18px,2vw,21px);color:var(--ink);letter-spacing:-.015em;margin:30px 0 12px}
.article-body p{margin:0 0 20px}
.article-body a{color:var(--accent-ink);font-weight:600;border-bottom:1px solid var(--accent-soft);transition:border-color .15s}
.article-body a:hover{border-bottom-color:var(--accent)}
.article-body strong{color:var(--ink);font-weight:700}
.article-body ul,.article-body ol{margin:0 0 22px;padding-left:4px;list-style:none}
.article-body li{position:relative;padding-left:30px;margin-bottom:11px;line-height:1.68}
.article-body ul li::before{content:"";position:absolute;left:6px;top:12px;width:7px;height:7px;border-radius:2px;background:var(--accent);transform:rotate(45deg)}
.article-body ol{counter-reset:li}
.article-body ol li{counter-increment:li}
.article-body ol li::before{content:counter(li);position:absolute;left:0;top:1px;width:22px;height:22px;border-radius:7px;background:var(--accent-soft);color:var(--accent-ink);font-size:12.5px;font-weight:800;display:flex;align-items:center;justify-content:center}
.article-body blockquote{margin:26px 0;padding:4px 0 4px 24px;border-left:3px solid var(--accent);font-size:19px;line-height:1.55;color:var(--ink);font-weight:600;letter-spacing:-.01em}
.article-body figure{margin:30px 0}
.article-body figure .fr{border-radius:12px;overflow:hidden;border:1px solid var(--line);background:var(--paper-2);box-shadow:var(--sh-2)}
.article-body figure img{width:100%;display:block}
.article-body figcaption{font-size:13px;color:var(--muted);text-align:center;margin-top:11px;line-height:1.5}
.article-body code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;background:var(--paper-3);border:1px solid var(--line-2);border-radius:5px;padding:1px 6px;color:var(--accent-ink)}

/* callouts */
.callout{display:flex;gap:14px;background:var(--paper-2);border:1px solid var(--line-2);border-left:3px solid var(--accent);border-radius:10px;padding:18px 20px;margin:28px 0;font-size:15.5px;line-height:1.6}
.callout .ci{flex:0 0 auto;width:22px;height:22px;color:var(--accent-ink)}
.callout .ci svg{width:22px;height:22px}
.callout .ct{margin:0}
.callout .ct strong{display:block;color:var(--ink);margin-bottom:3px}
.callout.tip{border-left-color:var(--accent);background:var(--accent-soft)}
.callout.note{border-left-color:var(--brand);background:#f3f0ff}
.callout.note .ci{color:var(--brand)}

/* key takeaways */
.takeaways{background:var(--ink);color:#fff;border-radius:14px;padding:26px 28px;margin:8px 0 36px}
.takeaways h2{color:#fff;font-size:15px;letter-spacing:.03em;text-transform:uppercase;margin:0 0 16px}
.takeaways ul{margin:0;padding:0;list-style:none}
.takeaways li{position:relative;padding-left:28px;margin-bottom:12px;font-size:15.5px;line-height:1.55;color:#e7eaf0}
.takeaways li:last-child{margin-bottom:0}
.takeaways li::before{content:"";position:absolute;left:0;top:6px;width:16px;height:16px;border-radius:50%;background:var(--accent);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");background-size:11px;background-position:center;background-repeat:no-repeat}

/* inline app CTA */
.app-cta{display:flex;align-items:center;gap:20px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px 26px;margin:38px 0;box-shadow:var(--sh-1);flex-wrap:wrap}
.app-cta img.ac-ic{width:56px;height:56px;border-radius:14px;border:1px solid var(--line-2);object-fit:contain;background:#fff;flex:0 0 auto}
.app-cta .ac-txt{flex:1;min-width:200px}
.app-cta .ac-k{font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-bottom:5px}
.app-cta .ac-txt h3{font-size:18.5px;letter-spacing:-.015em;margin-bottom:5px}
.app-cta .ac-txt p{font-size:14.5px;color:var(--body);margin:0;line-height:1.5}
.app-cta .btn{flex:0 0 auto}

/* article footer / author */
.article-foot{max-width:720px;margin:20px auto 0;padding:26px 0 0;border-top:1px solid var(--line)}
.author{display:flex;gap:15px;align-items:center}
.author .av{width:46px;height:46px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;flex:0 0 auto}
.author .au-t strong{display:block;color:var(--ink);font-size:15px}
.author .au-t span{font-size:14px;color:var(--muted)}

/* related posts strip */
.related{padding:64px 0 0}
.related .head{max-width:640px;margin-bottom:28px}

@media(max-width:900px){
  .post-grid,.post-grid.two{grid-template-columns:repeat(2,1fr)}
  .post-feat{grid-template-columns:1fr}
  .post-feat .pf-side{border-left:0;border-top:1px solid var(--line-2);order:-1;padding:26px}
  .post-feat .pf-side img{width:72px;height:72px}
  .post-feat .pf-txt{padding:30px 28px}
}
@media(max-width:640px){
  .post-grid,.post-grid.two{grid-template-columns:1fr}
  .app-cta{gap:14px}
  .app-cta .btn{width:100%}
}
