/* Blog (lncmasterminds.com/blog/): builds on site.css; article pages reuse .phead, .legal-wrap, .toc and .faq. */

/* The article column must be allowed to shrink below its content (wide tables scroll inside .tbl instead of
   widening the page; site.css switches .legal-wrap to a plain 1fr column on small screens). */
.legal-wrap{grid-template-columns:250px minmax(0,1fr);}
.legal.post{min-width:0;}
@media (max-width:980px){.legal-wrap{grid-template-columns:minmax(0,1fr);}}

/* ---------- article header ---------- */
.post-head .wrap{max-width:900px;}
.post-head h1{font-size:clamp(30px,4.4vw,48px);margin:6px auto 18px;max-width:820px;color:#fff;}
.crumbs{display:flex;justify-content:center;gap:8px;font-size:13px;color:rgba(255,255,255,.6);margin-bottom:18px;}
.crumbs a{color:rgba(255,255,255,.75);}
.crumbs a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px;}
.post-meta{font-size:14.5px;color:rgba(255,255,255,.72);}
.post-meta b{color:#fff;font-weight:600;}

/* ---------- article body: readable, larger headings than the legal pages ---------- */
.legal.post{max-width:720px;font-size:17px;}
.legal.post>p:first-child{font-size:19px;color:var(--ink);line-height:1.7;}
.legal.post h2{font-size:clamp(23px,2.6vw,28px);font-weight:800;letter-spacing:-.02em;text-transform:none;margin:28px 0 12px;padding-top:24px;text-wrap:pretty;}
.legal.post h2:first-child{margin-top:0;padding-top:0;border-top:0;}
.legal.post h3{font-size:19px;font-weight:700;color:var(--ink);margin:24px 0 8px;letter-spacing:-.01em;scroll-margin-top:96px;}
.legal.post ol{margin:0 0 18px 22px;}
.legal.post ol li,.legal.post ul li{padding-left:4px;}
.legal.post strong{color:var(--ink);}
.callout{margin:26px 0;padding:20px 22px;border-left:4px solid var(--red);background:var(--red-soft);border-radius:0 var(--r-md) var(--r-md) 0;}
.callout p{margin:0;color:var(--ink);font-weight:500;}

.tbl{overflow-x:auto;margin:24px 0;border:1px solid var(--line);border-radius:var(--r-md);}
.tbl table{width:100%;border-collapse:collapse;font-size:15px;min-width:520px;}
.tbl th,.tbl td{padding:13px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line2);line-height:1.55;}
.tbl thead th{background:var(--paper);color:var(--ink);font-weight:700;font-size:13.5px;letter-spacing:.02em;}
.tbl tbody th{color:var(--ink);font-weight:700;width:28%;}
.tbl tr:last-child>*{border-bottom:0;}

/* free-trial box inside an article */
.post-cta{display:flex;align-items:center;gap:22px;margin:36px 0;padding:24px 26px;border-radius:var(--r-lg);background:#0b0809;color:#fff;}
.post-cta div{display:flex;flex-direction:column;gap:6px;min-width:0;}
.post-cta b{font-size:18px;line-height:1.3;color:#fff;}
.post-cta span{font-size:14.5px;color:rgba(255,255,255,.75);line-height:1.55;}
.post-cta .btn{flex:none;white-space:nowrap;text-decoration:none;color:#fff;}
.post-cta .btn svg{width:18px;height:18px;}

/* FAQ at the end of an article */
.post-faq{margin:18px 0 0;max-width:none;}
.post-faq summary{font-size:16.5px;padding:18px 20px;}
.post-faq .ans{padding:0 20px 18px;font-size:15.5px;}
.post-faq .ans p{margin:0 0 10px;}

.author-box{display:flex;gap:16px;align-items:center;margin-top:48px;padding:22px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--paper);}
.author-box img{width:56px;height:56px;object-fit:contain;border-radius:50%;background:#0b0809;padding:8px;flex:none;}
.author-box div{display:flex;flex-direction:column;gap:3px;min-width:0;}
.author-box b{color:var(--ink);font-size:15.5px;}
.author-box span{font-size:14.5px;color:var(--tx2);line-height:1.55;}

/* ---------- post cards (index + related) ---------- */
.blog-list{padding-top:72px;}
.bgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px;margin-top:40px;}
.blog-list .bgrid{margin-top:0;}
.bcard{display:flex;flex-direction:column;gap:10px;padding:26px;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);transition:transform .2s var(--ease),border-color .2s;min-width:0;}
.bcard:hover{transform:translateY(-3px);border-color:var(--red-line);}
.bc-cat{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--red-dk);}
.bcard b{font-size:20px;line-height:1.3;color:var(--ink);letter-spacing:-.015em;text-wrap:pretty;}   /* pretty, not balance: balanced lines left a ragged gap on phones */
.bc-d{font-size:15px;color:var(--tx2);line-height:1.6;}
.bc-foot{margin-top:auto;padding-top:8px;font-size:13.5px;color:var(--tx3);}
.bc-more{margin-top:auto;padding-top:6px;display:inline-flex;align-items:center;gap:6px;font-size:14.5px;font-weight:700;color:var(--red-dk);}
.bc-more svg{width:16px;height:16px;}
.related .center h2{font-size:clamp(26px,3vw,34px);}

@media (max-width:640px){
  .legal.post{font-size:16.5px;}
  .legal.post h2{margin-top:22px;padding-top:20px;}
  .legal.post>p:first-child{font-size:17.5px;}
  .post-cta{flex-direction:column;align-items:stretch;text-align:left;padding:22px 20px;}
  .post-cta .btn{width:100%;}
  .bgrid{grid-template-columns:1fr;}
  .bcard{padding:22px;}
  .author-box{align-items:flex-start;}
}
@media print{.post-cta,.related,.toc{display:none;}}

/* ---------- feature images ---------- */
.post-hero{margin:0 0 32px;border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow);background:#0b0809;}
.post-hero img{width:100%;height:auto;aspect-ratio:1200/630;}
.bcard{overflow:hidden;}
.bc-img{display:block;width:calc(100% + 52px);max-width:none;margin:-26px -26px 8px;aspect-ratio:1200/630;height:auto;object-fit:cover;background:#0b0809;}
@media (max-width:640px){.bc-img{width:calc(100% + 44px);margin:-22px -22px 6px;}.post-hero{margin-bottom:24px;border-radius:var(--r-md);}}

/* ---------- pillar pages and their cluster articles ---------- */
.pillar-link{display:flex;align-items:center;gap:4px 10px;flex-wrap:wrap;margin:0 0 28px;padding:14px 18px;border:1px solid var(--red-line);background:var(--red-soft);border-radius:var(--r-md);text-decoration:none!important;color:var(--ink)!important;font-weight:400!important;}
.pillar-link span{flex-basis:100%;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--red-dk);}
.pillar-link b{font-size:15.5px;flex:1;min-width:0;}
.pillar-link svg{width:18px;height:18px;color:var(--red-dk);flex:none;}
.pillar-link:hover{border-color:var(--red);}
.cluster-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin:8px 0 8px;}
.legal.post .cluster-grid a{text-decoration:none;font-weight:400;color:inherit;}
.cluster-grid .bcard{padding:18px;gap:8px;}
.cluster-grid .bc-img{width:calc(100% + 36px);margin:-18px -18px 4px;}
.cluster-grid .bcard b{font-size:16px;}
.cluster-grid .bc-more{font-size:13.5px;}
/* the pillar leads the blog index as a wide card */
@media (min-width:900px){
  .blog-list .bcard.pillar{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto auto 1fr auto;column-gap:32px;padding:0 32px 0 0;}
  .blog-list .bcard.pillar .bc-img{grid-row:1/-1;width:100%;margin:0;height:100%;min-height:100%;}
  .blog-list .bcard.pillar .bc-cat{margin-top:32px;}
  .blog-list .bcard.pillar b{font-size:27px;}
  .blog-list .bcard.pillar .bc-foot{padding-bottom:30px;}
}

/* Blog index heading: brand red on the comma */
.brand-h1 .hl{color:var(--red);}
