/* SPDX-License-Identifier: LicenseRef-Vahini-Proprietary
   © 2026 Vahini Technologies. All rights reserved. Dual-IMU sensing: Indian Patent No. 584433.
   Proprietary & confidential. Third-party notices: /THIRD-PARTY-NOTICES.md · SBOM: /sbom.spdx.json */
/* ============================================================
   Vahini — blog.css
   Shared styling for the Blog index, blog posts, and Resources.
   Reads design tokens from theme.css / site.css.
   ============================================================ */

/* ---- category tags (shared) ---- */
.btag{display:inline-flex; align-items:center; font-family:var(--sans); font-size:10.5px; font-weight:700;
  letter-spacing:.05em; text-transform:uppercase; padding:3px 10px; border-radius:20px; line-height:1.6;}
.btag--research{color:var(--accent-ink); background:var(--accent-soft);}
.btag--signals{color:var(--dev); background:var(--dev-bg);}
.btag--technology{color:var(--hot-deep); background:var(--hot-soft);}
.btag--health{color:var(--live); background:var(--live-bg);}
.btag--explainer{color:var(--dev); background:var(--dev-bg);}

/* ============================================================
   BLOG INDEX
   ============================================================ */
.blog-controls{display:flex; flex-wrap:wrap; align-items:center; gap:14px; justify-content:space-between; margin-top:6px;}
.blog-filter{display:flex; flex-wrap:wrap; gap:10px;}
.blog-chip{font-family:var(--sans); font-size:14px; font-weight:600; color:var(--elephant); background:var(--surface);
  border:1.5px solid var(--rule); border-radius:99px; padding:8px 16px; cursor:pointer; transition:.16s;}
.blog-chip:hover{border-color:var(--rule-2);}
.blog-chip.on{background:var(--ink); color:#fff; border-color:var(--ink);}

/* featured (latest) post */
.blog-feat{display:grid; grid-template-columns:1.15fr .85fr; gap:0; margin-top:8px; border:1px solid var(--rule);
  border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-1); background:var(--surface);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);}
.blog-feat:hover{transform:translateY(-4px); box-shadow:var(--shadow-2);}
.blog-feat__art{background:linear-gradient(155deg,var(--dark),var(--dark-2)); padding:40px; display:flex; align-items:flex-end; min-height:280px; position:relative; overflow:hidden;}
.blog-feat__copy{padding:40px; display:flex; flex-direction:column; justify-content:center;}
.blog-feat__meta{display:flex; align-items:center; gap:12px; margin-bottom:14px; font-size:12.5px; color:var(--hint); font-weight:600;}
.blog-feat__copy h2{font-size:clamp(24px,2.8vw,32px); line-height:1.12; margin-bottom:14px;}
.blog-feat__copy p{font-size:16px; color:var(--muted); line-height:1.62;}
.blog-feat__more{margin-top:22px; font-size:14.5px; font-weight:600; color:var(--crimson-deep); display:inline-flex; align-items:center; gap:7px;}
.blog-feat__more svg{width:16px; height:16px; transition:transform .18s var(--ease);}
.blog-feat:hover .blog-feat__more svg{transform:translateX(3px);}

/* post grid */
.blog-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:24px;}
.bpost{display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--rule);
  border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-1); text-decoration:none; color:inherit;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;}
.bpost:hover{transform:translateY(-4px); box-shadow:var(--shadow-2); border-color:var(--rule-2);}
.bpost__art{aspect-ratio:16/10; position:relative; overflow:hidden;}
.bpost__art svg{position:absolute; inset:0; width:100%; height:100%;}
.bpost__body{padding:22px 22px 24px; display:flex; flex-direction:column; flex:1;}
.bpost__meta{display:flex; align-items:center; gap:10px; margin-bottom:12px;}
.bpost__date{font-size:12px; color:var(--hint); font-weight:600;}
.bpost h3{font-size:19px; line-height:1.24; margin-bottom:9px;}
.bpost p{font-size:14px; color:var(--muted); line-height:1.55; flex:1;}
.bpost__more{margin-top:16px; font-size:13px; font-weight:600; color:var(--crimson-deep); display:inline-flex; align-items:center; gap:6px;}
.bpost__more svg{width:14px; height:14px; transition:transform .18s var(--ease);}
.bpost:hover .bpost__more svg{transform:translateX(3px);}
.blog-empty{display:none; text-align:center; color:var(--muted); padding:48px 0; font-size:16px;}

/* ============================================================
   BLOG POST (article)
   ============================================================ */
.post-hero{padding:72px 0 40px; border-bottom:1px solid var(--rule);}
.post-hero .wrap{max-width:780px;}
.post-back{display:inline-flex; align-items:center; gap:7px; font-size:14px; font-weight:600; color:var(--muted); text-decoration:none; margin-bottom:24px;}
.post-back:hover{color:var(--crimson-deep);}
.post-back svg{width:15px; height:15px;}
.post-hero h1{font-size:clamp(30px,4.2vw,50px); line-height:1.06; letter-spacing:-.02em; margin-top:16px;}
.post-meta{display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-top:24px; font-size:13.5px; color:var(--hint); font-weight:600;}
.post-meta .dot{width:3px; height:3px; border-radius:50%; background:var(--rule-2);}

/* share bar (auto-injected into posts) */
.post-share{display:flex; align-items:center; gap:9px; margin-top:22px; flex-wrap:wrap;}
.post-share .ps-label{font-family:var(--sans); font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--hint); margin-right:2px;}
.ps-btn{display:grid; place-items:center; width:38px; height:38px; border-radius:10px; border:1px solid var(--rule);
  background:var(--surface); color:var(--elephant); cursor:pointer; transition:.16s; text-decoration:none;}
.ps-btn:hover{background:var(--crimson); border-color:var(--crimson); color:#fff; transform:translateY(-2px);}
.ps-btn svg{width:18px; height:18px;}
.ps-copy.done{background:var(--live); border-color:var(--live); color:#fff;}
.post-author{display:inline-flex; align-items:center; gap:8px;}
.post-author .pa-av{width:24px; height:24px; border-radius:50%; display:grid; place-items:center; font-family:var(--sans); font-size:11px; font-weight:800; color:#fff; background:var(--accent-deep);}
.post-author .pa-av.malli{background:var(--hot-deep);}

/* AI summary band (centered, just under the hero) */
.post-ai{background:var(--ivory-2); border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);}
.post-ai .wrap{max-width:720px; padding-top:30px; padding-bottom:30px;}
.post-ai__card{position:relative; background:var(--surface); border:1px solid var(--rule); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-1); padding:24px 26px;}
.post-ai__tag{display:inline-flex; align-items:center; gap:8px; font-family:var(--sans); font-size:11px; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase; color:var(--accent-ink); margin-bottom:12px;}
.post-ai__tag svg{width:15px; height:15px;}
.post-ai__card p{font-size:16px; line-height:1.66; color:var(--elephant); margin:0;}
.post-ai__card p + p{margin-top:12px;}
.post-ai__note{margin-top:14px; font-size:12px; color:var(--hint); font-style:italic;}

/* table of contents */
.post-toc{background:var(--surface); border:1px solid var(--rule); border-radius:var(--radius-lg); padding:20px 24px; margin-bottom:34px;}
.post-toc h4{font-family:var(--sans); font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--hint); margin-bottom:12px;}
.post-toc ol{margin:0; padding:0; list-style:none; counter-reset:toc; display:flex; flex-direction:column; gap:9px;}
.post-toc li{counter-increment:toc; font-size:15.5px; line-height:1.4;}
.post-toc li::before{content:counter(toc,decimal-leading-zero); font-family:var(--serif); font-weight:600; color:var(--crimson-deep); margin-right:12px;}
.post-toc a{color:var(--elephant); text-decoration:none; font-weight:500;}
.post-toc a:hover{color:var(--crimson-deep);}

.post-body{padding:54px 0 72px;}
.post-body .wrap{max-width:720px;}
.post-body .lede-para{font-size:21px; line-height:1.6; color:var(--elephant); font-family:var(--serif); font-weight:500; margin-bottom:30px;}
.post-body h2{font-size:clamp(24px,3vw,30px); line-height:1.15; margin:44px 0 16px;}
.post-body h3{font-size:20px; margin:30px 0 10px;}
.post-body p{font-size:17px; line-height:1.74; color:var(--elephant); margin-bottom:20px;}
.post-body p a{color:var(--crimson-deep); font-weight:600; text-decoration:underline; text-underline-offset:2px;}
.post-body strong{color:var(--ink); font-weight:700;}
.post-body ul{margin:0 0 22px; padding-left:4px; list-style:none; display:flex; flex-direction:column; gap:12px;}
.post-body ul li{position:relative; padding-left:28px; font-size:16.5px; line-height:1.6; color:var(--elephant);}
.post-body ul li::before{content:""; position:absolute; left:2px; top:9px; width:9px; height:9px; border-radius:50%; background:var(--accent);}

.post-quote{border-left:3px solid var(--accent); padding:6px 0 6px 26px; margin:30px 0; font-family:var(--serif);
  font-size:21px; line-height:1.5; color:var(--ink); font-style:italic;}

.post-fig{margin:34px 0; border:1px solid var(--rule); border-radius:var(--radius-lg); background:var(--surface-2); overflow:hidden;}
.post-fig svg{width:100%; height:auto; display:block; background:var(--surface);}
.post-fig figcaption{padding:14px 20px; font-size:13.5px; color:var(--muted); line-height:1.5; border-top:1px solid var(--rule); background:var(--surface);}

.post-key{background:var(--ivory-2); border:1px solid var(--rule); border-radius:var(--radius-lg); padding:28px 30px; margin:36px 0;}
.post-key h4{font-family:var(--sans); font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--crimson-deep); margin-bottom:16px;}
.post-key ul{margin:0;}

.source-box{display:flex; gap:16px; align-items:flex-start; padding:22px 24px; margin:40px 0 0; background:var(--surface);
  border:1px solid var(--rule); border-radius:var(--radius-lg); box-shadow:var(--shadow-1);}
.source-box__ic{flex:0 0 auto; width:44px; height:44px; border-radius:11px; background:var(--accent-soft); color:var(--accent-deep); display:grid; place-items:center;}
.source-box__ic svg{width:22px; height:22px;}
.source-box .sb-k{font-size:11.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--hint);}
.source-box h4{font-family:var(--serif); font-size:18px; color:var(--ink); margin:5px 0 4px; line-height:1.25;}
.source-box .sb-cite{font-size:13.5px; color:var(--muted); line-height:1.5;}
.source-box a{display:inline-flex; align-items:center; gap:6px; margin-top:12px; font-size:14px; font-weight:600; color:var(--crimson-deep); text-decoration:none;}
.source-box a svg{width:14px; height:14px;}

.post-disclaimer{font-size:13px; color:var(--hint); line-height:1.55; margin-top:26px; font-style:italic;}

/* read-next */
.post-next{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:38px;}

/* ============================================================
   RESOURCES HUB
   ============================================================ */
.res-group{margin-top:40px;}
.res-group__head{display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; margin-bottom:18px;}
.res-group__head h2{font-size:clamp(22px,2.6vw,28px);}
.res-group__head p{font-size:15px; color:var(--muted);}
.res-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
.rcard{display:flex; flex-direction:column; gap:10px; background:var(--surface); border:1px solid var(--rule);
  border-radius:var(--radius-lg); padding:24px; box-shadow:var(--shadow-1); text-decoration:none; color:inherit;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;}
.rcard:hover{transform:translateY(-4px); box-shadow:var(--shadow-2); border-color:var(--rule-2);}
.rcard__top{display:flex; align-items:center; gap:12px;}
.rcard__ic{flex:0 0 auto; width:42px; height:42px; border-radius:11px; background:var(--accent-soft); color:var(--accent-deep); display:grid; place-items:center;}
.rcard__ic svg{width:21px; height:21px;}
.rcard__pill{margin-left:auto; font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--hint); border:1px solid var(--rule); padding:2px 8px; border-radius:20px;}
.rcard h3{font-size:18px; line-height:1.2;}
.rcard p{font-size:14px; color:var(--muted); line-height:1.55; flex:1;}
.rcard__more{font-size:13px; font-weight:600; color:var(--crimson-deep); display:inline-flex; align-items:center; gap:6px; margin-top:2px;}
.rcard__more svg{width:14px; height:14px; transition:transform .18s var(--ease);}
.rcard:hover .rcard__more svg{transform:translateX(3px);}

@media (max-width:900px){
  .blog-feat{grid-template-columns:1fr;}
  .blog-grid,.res-grid,.post-next{grid-template-columns:1fr 1fr;}
}
@media (max-width:620px){
  .blog-grid,.res-grid,.post-next{grid-template-columns:1fr;}
  .blog-feat__art,.blog-feat__copy{padding:28px;}
  .blog-controls{flex-direction:column; align-items:stretch;}
}
