@charset "UTF-8";
/* BiharOne v3: post page fixes, mobile table of contents, home carousel, latest chips. Loads after v2.css. */

/* Mobile blow-out fix: grid tracks may shrink below the width of wide content (tables, long words) */
body{overflow-x:clip}
.content-grid>*{min-width:0}
@media (max-width:980px){
  .content-grid,.content-grid.solo{grid-template-columns:minmax(0,1fr)}
}
.entry{overflow-wrap:break-word}
.entry a{overflow-wrap:anywhere}
.entry img,.entry iframe,.entry video{max-width:100%}

/* Hindi and mixed Hindi-English text needs more line height than Latin-only headings */
.page-head h1{line-height:1.25}
.entry h2,.entry h3,.lead-post h3,.post-item h3,.tile h3,.car-body h3{line-height:1.3}
.entry p,.entry li{line-height:1.78}
@media (max-width:600px){
  .page-head{padding:1.2rem 0 1.5rem}
  .page-head h1{font-size:clamp(1.55rem,6.4vw,2.2rem)}
  .page-head .lead{font-size:1.05rem}
}

/* Breadcrumb: keep the current page short */
.crumbs{display:flex;flex-wrap:wrap;align-items:center;row-gap:.1rem}
.crumbs [aria-current]{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}

/* Featured image on the post page */
.post-cover{margin:0 0 1.6rem}
.post-cover img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:var(--r-md);border:1px solid var(--line);background:var(--tint)}

/* Table of contents as a collapsible box on phones and tablets */
.toc-m{display:none}
@media (max-width:980px){
  .toc-m{display:block;margin:0 0 1.5rem;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
  .toc-m summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;padding:.85rem 1rem;font:700 1rem var(--font-head)}
  .toc-m summary::-webkit-details-marker{display:none}
  .toc-m summary::after{content:"+";font-size:1.5rem;line-height:1;color:var(--accent)}
  .toc-m[open] summary::after{content:"−"}
  .toc-m ol{list-style:none;margin:0;padding:0 1rem .5rem;counter-reset:t}
  .toc-m li{counter-increment:t;border-top:1px solid var(--line)}
  .toc-m a{display:block;padding:.65rem 0;color:var(--ink);text-decoration:none;font-weight:600;font-size:.95rem;line-height:1.4}
  .toc-m a::before{content:counter(t) ". ";color:var(--accent)}
  .content-grid .toc{display:none}
}

/* Home hero */
.hero h1{max-width:20ch}
.trend{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:1.3rem}
.trend b{font:700 .78rem var(--font-head);text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-right:.2rem}
.trend .chip{margin:0;background:var(--surface)}

/* Home carousel */
.carousel-sec{padding:clamp(1.6rem,3.5vw,2.6rem) 0 .6rem}
.carousel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.carousel-head h2{font-size:clamp(1.4rem,2.6vw,1.9rem);margin:0}
.carousel-head p{margin:.3rem 0 0;color:var(--muted);font-size:.95rem}
.car-ctrl{display:flex;gap:.5rem;flex:none}
.car-btn{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);color:var(--ink);cursor:pointer;padding:0}
.car-btn:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}
.car-btn:disabled{opacity:.38;cursor:default}
.car-btn svg{width:20px;height:20px}
.car-track{display:flex;gap:1rem;list-style:none;margin:0;padding:.2rem 0 1rem;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:thin;overscroll-behavior-x:contain}
.car-card{position:relative;flex:0 0 min(310px,80%);scroll-snap-align:start;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;transition:border-color .15s,transform .15s}
.car-card:hover{border-color:var(--accent);transform:translateY(-2px)}
.car-card .thumb{border-radius:0}
.car-body{display:flex;flex-direction:column;gap:.4rem;flex:1;padding:.9rem 1rem 1.1rem}
.car-body h3{font-size:1.06rem;margin:0}
.car-body h3 a{color:var(--ink);text-decoration:none}
.car-body h3 a::after{content:"";position:absolute;inset:0}
.car-body h3 a:hover{color:var(--accent)}
.car-body .meta{margin-top:auto;padding-top:.3rem}
.car-more{margin:.2rem 0 0}
@media (min-width:821px){.car-card{flex-basis:calc((100% - 2rem) / 3)}}
@media (prefers-reduced-motion:reduce){.car-track{scroll-behavior:auto}.car-card{transition:none}}
