/* assets/css/styles_blog.css
   Blog listing + article page styles tuned to match the reference look:
   - big editorial H1
   - light header band
   - clean white content surface
   - TOC as a white card on the left
   - no floating TOC button / no overlay
*/

/* ---------- shared surfaces ---------- */
.ln-blog-hero,
.ln-article-hero{
  background: linear-gradient(180deg, rgba(124,92,255,0.10) 0%, rgba(124,92,255,0.04) 55%, rgba(124,92,255,0.00) 100%);
}

.ln-blog-hero{
  padding: 34px 0 26px;
}
.ln-article-hero{
  padding: 18px 0 22px;
}

/* ---------- breadcrumbs like reference (small, subtle) ---------- */
.ln-breadcrumbs{
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}
.ln-breadcrumbs a{
  color: var(--accent, #7c5cff);
  text-decoration: none;
}
.ln-breadcrumbs .sep{
  margin: 0 8px;
  color: rgba(0,0,0,0.35);
}

/* ---------- BLOG HERO (simple, not too busy) ---------- */
.ln-blog-hero__wrap{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.ln-blog-hero__sub{
  margin-top: 10px;
  max-width: 78ch;
  color: rgba(0,0,0,0.65);
}

/* optional decorative images (keep but soften) */
.ln-blog-hero__imgs{
  display:flex;
  gap:12px;
  align-items:flex-end;
  opacity: 0.9;
}
.ln-blog-hero__imgs .img{
  width: 110px;
  height: 110px;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}
.ln-blog-hero__imgs img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
@media (max-width: 860px){
  .ln-blog-hero__wrap{ flex-direction:column; }
  .ln-blog-hero__imgs{ display:none; } /* closer to reference */
}

/* ---------- BLOG LIST (image left, white card, like reference) ---------- */
.ln-blog{
  padding-top: 18px;
}
.ln-blog-items{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.ln-blog-item{
  display:flex;
  gap:18px;
  padding:18px;
  border-radius: 22px;
  text-decoration:none;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 18px 44px rgba(0,0,0,0.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ln-blog-item:hover{
  transform: translateY(-1px);
  border-color: rgba(124,92,255,0.22);
  box-shadow: 0 22px 54px rgba(0,0,0,0.08);
}

.ln-blog-item .img{
  flex: 0 0 210px;
  height: 140px;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.06);
}
.ln-blog-item .img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ln-blog-item .cont{ flex:1; min-width:0; }

.ln-blog-item .ttl{
  font-weight: 950;
  font-size: 18px;
  line-height:1.18;
  color: rgba(0,0,0,0.92);
}
.ln-blog-item .date{
  margin-top: 8px;
  font-size: 13px;
  color: rgba(0,0,0,0.55);
}
.ln-blog-item .excerpt{
  margin-top: 10px;
  font-size: 14px;
  color: rgba(0,0,0,0.72);
  line-height:1.45;
  max-width: 92ch;
}
.ln-blog-item .read-more{
  margin-top: 12px;
  font-weight: 900;
  font-size: 13px;
  color: var(--accent, #7c5cff);
}
@media (max-width: 760px){
  .ln-blog-item{ flex-direction:column; }
  .ln-blog-item .img{ flex-basis:auto; width:100%; height: 190px; }
}

/* ---------- ARTICLE HERO (big title, square image left) ---------- */
.ln-article-hero__info{
  margin-top: 14px;
  display:flex;
  gap:18px;
  align-items:flex-start;
}

.ln-article-hero__info .img{
  flex:0 0 110px;
  width:110px;
  height:110px;
  border-radius: 22px;
  overflow:hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 18px 44px rgba(0,0,0,0.08);
}
.ln-article-hero__info .img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ln-article-hero__info h1{
  font-size: 44px;      /* closer to reference */
  line-height: 1.04;
  margin: 0;
  color: rgba(0,0,0,0.94);
  letter-spacing: -0.02em;
}
.ln-article-hero__info .date{
  margin-top: 10px;
  font-size: 14px;
  color: rgba(0,0,0,0.55);
}

.ln-article-hero__excerpt{
  margin-top: 14px;
  font-size: 16px;
  color: rgba(0,0,0,0.70);
  max-width: 95ch;
}

@media (max-width: 980px){
  .ln-article-hero__info h1{ font-size: 34px; }
}
@media (max-width: 720px){
  .ln-article-hero__info{ flex-direction:column; }
  .ln-article-hero__info .img{ width:92px; height:92px; }
  .ln-article-hero__info h1{ font-size: 30px; }
}

/* ---------- ARTICLE BODY LAYOUT (TOC left card, content right) ---------- */
.ln-article{
  background: #fff;
  padding: 26px 0 70px;
}

.ln-article__wrap{
  position: relative;
  display:grid;
  grid-template-columns: 320px 1fr; /* TOC left like reference */
  gap: 26px;
  align-items:start;
}

/* kill floating / overlay TOC behaviour */
.ln-open-toc{ display:none !important; }
.ln-toc__mob{ display:none !important; }
.ln-toc.is-open{ opacity:1; pointer-events:auto; } /* harmless */

/* TOC card */
.ln-toc{
  position: sticky;
  top: 92px;
  align-self:start;
  border-radius: 22px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 44px rgba(0,0,0,0.06);
}
.ln-toc__ttl-desktop{
  font-weight: 950;
  font-size: 16px;
  color: rgba(0,0,0,0.92);
  margin-bottom: 12px;
}

/* TOC list (no numbering like reference) */
.ln-toc__list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.ln-toc-link{
  display:block;
  text-decoration:none;
  font-size: 14px;
  line-height:1.35;
  color: rgba(0,0,0,0.72);
  opacity: 1;
}
.ln-toc-link:hover{
  color: rgba(0,0,0,0.92);
}
.ln-toc-link .num{
  display:none; /* remove 1., 2., 4.1 etc */
}
.ln-toc-link.l3{
  padding-left: 16px;
  color: rgba(0,0,0,0.55);
}

/* content surface: make it editorial, not “card in card” */
.ln-post-content{
  border-radius: 0;
  background: transparent;
  border: none;
  padding: 0;
}
.ln-post{
  max-width: 860px; /* similar to reference column width */
}

.ln-post p{
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(0,0,0,0.78);
}
.ln-post h2{
  margin-top: 28px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: rgba(0,0,0,0.94);
}
.ln-post h3{
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.2;
  color: rgba(0,0,0,0.92);
}
.ln-post ul{
  margin-top: 14px;
  padding-left: 22px;
}
.ln-post li{
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(0,0,0,0.78);
}

/* callout - lighter, like editorial highlight */
.ln-post .callout{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(124,92,255,0.07);
  border: 1px solid rgba(124,92,255,0.12);
  color: rgba(0,0,0,0.80);
}

/* responsive: TOC moves above content */
@media (max-width: 980px){
  .ln-article__wrap{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ln-toc{
    position: static;
    top: auto;
  }
}

/* cover image above TOC */
.ln-toc-cover{
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 44px rgba(0,0,0,0.06);
  margin-bottom: 14px;
}
.ln-toc-cover img{
  width: 100%;
  height: auto;
  display: block;
}

/* make TOC slightly wider to fit the image nicely */
.ln-article__wrap{
  grid-template-columns: 360px 1fr;
}

/* remove old hero image spacing (since image is moved out) */
.ln-article-hero__info .img{ display:none; }

/* Hide blog hero placeholders (if you didn't delete them in HTML) */
.ln-blog-hero__imgs{ display:none !important; }

/* Zoom-in article thumbnails by ~25% */
.ln-blog-item .img img{
  transform: scale(1.25);
  transform-origin: center;
}

/* Pagination (like the reference) */
.ln-pagination{
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:center;
  padding: 28px 0 6px;
}

.ln-page{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  text-decoration:none;
  color: rgba(0,0,0,0.75);
  font-weight: 700;
}

.ln-page:hover{
  background: rgba(0,0,0,0.04);
}

.ln-page.is-active{
  color: rgba(0,0,0,0.95);
  border: 1px solid rgba(173,255,119,0.55); /* lime hint */
  background: rgba(173,255,119,0.12);
}

.ln-ellipsis{
  color: rgba(0,0,0,0.45);
  font-weight: 900;
}

.ln-nextprev{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: rgba(0,0,0,0.80);
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 14px;
}
.ln-nextprev:hover{
  background: rgba(0,0,0,0.04);
}
.ln-next-icon{
  display:inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(0,0,0,0.14);
}
