/* ভোরের আকাশ: light ground, indigo-sky-peach gradients, Anek Bangla + Noto Serif Bengali */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --indigo: #4f46e5;
  --indigo-deep: #312e81;
  --indigo-text: #4338ca;
  --indigo-soft: #eef2ff;
  --sky: #0ea5e9;
  --sky-soft: #e0f2fe;
  --sky-text: #0369a1;
  --peach: #fb923c;
  --peach-soft: #fff7ed;
  --peach-text: #c2410c;
  --grad: linear-gradient(135deg, #4f46e5, #0ea5e9);
  --grad-3: linear-gradient(135deg, #6366f1, #38bdf8 60%, #fb923c);
  --grad-deep: linear-gradient(135deg, #312e81 0%, #4f46e5 45%, #0ea5e9 85%, #fb923c 130%);

  --sans: "Anek Bangla", "Hind Siliguri", system-ui, sans-serif;
  --serif: "Noto Serif Bengali", "Noto Serif", Georgia, serif;
  --latin: "Inter", system-ui, sans-serif;
  --wrap: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--indigo-text); text-underline-offset: 3px; }
a:hover { color: var(--indigo-deep); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 4rem, var(--wrap)); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: min(100% - 2.5rem, var(--wrap)); } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 10px; z-index: 100; }
.skip:focus { top: 1rem; color: #fff; }

/* soft sky glows behind the top of every page */
.glow { position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; overflow: hidden; z-index: 0; }
.glow span { position: absolute; border-radius: 50%; }
.glow .g1 { width: 640px; height: 640px; right: -140px; top: -200px; background: radial-gradient(circle at 40% 40%, #a5b4fc 0%, rgba(165,180,252,0) 62%); }
.glow .g2 { width: 540px; height: 540px; right: 280px; top: 140px; background: radial-gradient(circle, rgba(125,211,252,.7) 0%, rgba(125,211,252,0) 62%); }
.glow .g3 { width: 500px; height: 500px; right: -80px; top: 360px; background: radial-gradient(circle, rgba(253,186,116,.55) 0%, rgba(253,186,116,0) 62%); }
.glow.small .g2 { right: auto; left: -200px; top: 120px; opacity: .65; }
.glow.small .g3 { display: none; }
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,250,252,.78); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.45rem; }
.brand:hover { color: var(--ink); }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--grad-3); flex: none; }
.nav-list { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; font-size: 1.06rem; font-weight: 500; }
.nav-list a { color: var(--ink); text-decoration: none; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--indigo-text); }
.nav-list .nav-cta { padding: .4rem 1.1rem; border-radius: 999px; background: var(--ink); color: #fff; }
.nav-list .nav-cta:hover { background: var(--indigo-deep); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .25rem; padding: .75rem 1.25rem 1.25rem; }
  .nav-list a { display: block; padding: .7rem .9rem; border-radius: 12px; }
  .nav-list .nav-cta { text-align: center; }
}

/* Buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.6rem; border-radius: 14px; font: 600 1.06rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -12px rgba(79,70,229,.7); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgba(79,70,229,.8); }
.btn-ghost { background: rgba(255,255,255,.85); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.chip { display: inline-block; padding: .2rem .8rem; border-radius: 999px; font-size: .875rem; font-weight: 600; line-height: 1.6; text-decoration: none; }
.chip-farsi { background: var(--peach-soft); color: var(--peach-text); }
.chip-bhumi-ain { background: var(--indigo-soft); color: var(--indigo-text); }
.chip-itihas { background: var(--sky-soft); color: var(--sky-text); }
a.chip:hover { filter: brightness(.96); }

/* Section heads */
.sec { padding-block: clamp(4rem, 8vw, 5.5rem); }
.sec-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; margin-bottom: 2rem; }
.sec-title { margin: 0 0 .4rem; font-weight: 800; font-size: clamp(2.1rem, 4vw, 2.75rem); line-height: 1.15; }
.sec-lede { margin: 0; color: var(--muted); font-size: 1.125rem; }
.more-link { font-weight: 600; font-size: 1.06rem; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 3.5rem; align-items: center; padding: clamp(2rem, 5vw, 3rem) 0 clamp(4rem, 8vw, 5.5rem); }
.hero-text { flex: 999 1 520px; }
.hero-name { margin: 0 0 1.1rem; font-weight: 800; font-size: clamp(2.6rem, 5.4vw, 4.1rem); line-height: 1.12; letter-spacing: -.01em; }
.hero-role { margin: 0 0 .6rem; font-size: 1.32rem; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-intro { margin: 0 0 1.9rem; font-size: 1.2rem; line-height: 1.7; color: #475569; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-photo { flex: 1 1 320px; display: flex; justify-content: center; }
.photo-ring { width: 360px; max-width: 100%; aspect-ratio: 6 / 7; border-radius: 36px; padding: 6px; background: linear-gradient(160deg, #6366f1, #38bdf8 55%, #fb923c); }
.photo-inner { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--indigo-soft); }
.photo-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: #6366f1; font-size: .95rem; }
.photo-empty svg { width: 64px; height: 64px; }

/* About */
.about { background: var(--surface); border-block: 1px solid var(--line-soft); }
.about-grid { display: flex; flex-wrap: wrap; gap: 3.5rem; }
.about-side { flex: 1 1 260px; }
.about-side p { margin: 0; color: var(--muted); font-size: 1.06rem; }
.about-body { flex: 999 1 560px; }
.about-body > p { margin: 0 0 1.1rem; font-size: 1.19rem; line-height: 1.8; color: var(--ink-2); max-width: 44rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.facts li { padding: 1.1rem 1.25rem; border-radius: 18px; }
.facts li:nth-child(3n+1) { background: var(--indigo-soft); }
.facts li:nth-child(3n+2) { background: var(--sky-soft); }
.facts li:nth-child(3n) { background: var(--peach-soft); }
.facts span { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .2rem; }
.facts li:nth-child(3n+1) span { color: var(--indigo-text); }
.facts li:nth-child(3n+2) span { color: var(--sky-text); }
.facts li:nth-child(3n) span { color: var(--peach-text); }
.facts b { font-weight: 600; font-size: 1rem; line-height: 1.5; display: block; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.topics { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; align-items: center; }
.topics > span { color: var(--muted); font-size: .95rem; margin-right: .25rem; }

/* Post cards */
.featured { display: flex; flex-wrap: wrap; text-decoration: none; color: var(--ink); border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 50px -36px rgba(15,23,42,.5); margin-bottom: 1.5rem; transition: box-shadow .2s, transform .2s; }
.featured:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 30px 60px -36px rgba(15,23,42,.55); }
.featured-cover { flex: 1 1 460px; min-height: 300px; position: relative; background: var(--indigo-deep); }
.featured-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-cover .badge { position: absolute; left: 1.4rem; bottom: 1.3rem; padding: .35rem .9rem; border-radius: 999px; background: rgba(255,255,255,.93); color: var(--indigo-deep); font-size: .875rem; font-weight: 600; }
.featured-body { flex: 1 1 420px; padding: clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.featured-body h3 { margin: .9rem 0 .75rem; font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.35; }
.featured-body p { margin: 0 0 1.1rem; font-size: 1.06rem; color: #475569; line-height: 1.7; }
.meta { margin: 0; font-size: .925rem; color: var(--muted); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.post-grid.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.post-grid.five > :nth-child(-n+2) { grid-column: span 3; }
.post-grid.five > :nth-child(n+3) { grid-column: span 2; }
@media (max-width: 1000px) { .post-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post-grid.five > * { grid-column: auto !important; } .post-grid.five > :first-child { grid-column: 1 / -1 !important; } }
@media (max-width: 640px) { .post-grid.five { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 44px -36px rgba(15,23,42,.5); transition: transform .2s, box-shadow .2s; }
.card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 26px 52px -36px rgba(15,23,42,.55); }
.card-cover { aspect-ratio: 1200 / 560; background: var(--indigo-soft); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.card-body h3 { margin: .65rem 0 .5rem; font-weight: 700; font-size: 1.25rem; line-height: 1.45; }
.card-body p { margin: 0 0 .9rem; font-size: 1rem; line-height: 1.65; color: #475569; }
.card-body .meta { margin-top: auto; }

/* Contact */
.contact-band { border-radius: 32px; padding: clamp(2rem, 5vw, 3.5rem); color: #fff; background: var(--grad-deep); display: flex; flex-wrap: wrap; gap: 3rem; }
.contact-band .sec-title { color: #fff; }
.contact-intro { flex: 1 1 320px; }
.contact-intro p { margin: 0 0 1.6rem; font-size: 1.125rem; line-height: 1.7; color: rgba(255,255,255,.86); }
.contact-intro .btn { background: #fff; color: var(--indigo-deep); }
.contact-intro .btn:hover { background: var(--indigo-soft); color: var(--indigo-deep); }
.contact-list { flex: 1 1 420px; display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; align-content: start; }
.contact-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: 1rem 1.25rem; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.contact-list span { color: rgba(255,255,255,.75); }
.contact-list a, .contact-list b { color: #fff; font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; padding: 1.6rem 0; font-size: .95rem; color: var(--muted); }
.footer-inner .url { font-family: var(--latin); }

/* Blog index */
.page-head { padding: clamp(2rem, 5vw, 3rem) 0 1.25rem; }
.page-title { margin: 0 0 .5rem; font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.75rem); line-height: 1.1; }
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 0 1.75rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter { min-height: 44px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 1rem/1.3 var(--sans); cursor: pointer; }
.filter:hover { border-color: var(--ink-2); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter .n { opacity: .65; margin-left: .3rem; }
.search { position: relative; flex: 0 1 20rem; }
.search input { width: 100%; min-height: 48px; padding: .6rem 1rem .6rem 2.6rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: 400 1rem/1.4 var(--sans); color: var(--ink); }
.search input:focus { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: transparent; }
.search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.post-list { display: grid; gap: 1.25rem; }
.row-card { display: grid; grid-template-columns: 17rem 1fr; gap: 1.5rem; align-items: center; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1rem; box-shadow: 0 20px 44px -40px rgba(15,23,42,.5); transition: transform .2s; }
.row-card:hover { color: var(--ink); transform: translateY(-2px); }
.row-card .card-cover { border-radius: 14px; overflow: hidden; }
.row-card h2 { margin: .55rem 0 .4rem; font-weight: 700; font-size: 1.35rem; line-height: 1.45; }
.row-card p { margin: 0 0 .6rem; color: #475569; font-size: 1rem; line-height: 1.65; }
@media (max-width: 700px) { .row-card { grid-template-columns: 1fr; } }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }
.empty[hidden] { display: none; }

/* Article */
.progress { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 4px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #4f46e5, #0ea5e9, #fb923c); }
.crumbs { margin: 0 0 1.4rem; padding-top: 1.5rem; font-size: .95rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 .35rem; }
.article-head { max-width: 55rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.chip-note { background: var(--indigo-soft); color: var(--indigo-text); }
.article-title { margin: 0 0 1.1rem; font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.22; letter-spacing: -.005em; }
.article-dek { margin: 0 0 1.6rem; font-size: 1.25rem; line-height: 1.65; color: #475569; }
.byline-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.byline { display: flex; align-items: center; gap: .75rem; line-height: 1.4; }
.byline b { display: block; font-size: 1.06rem; }
.byline .meta { font-size: .95rem; }
.avatar { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--grad-3); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.share-icons { display: flex; gap: .5rem; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.article-cover { margin: 2.25rem 0 3.5rem; border-radius: 28px; overflow: hidden; background: var(--indigo-deep); }
.article-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 420; object-fit: cover; }
@media (max-width: 760px) { .article-cover { margin: 1.5rem 0 1.25rem; border-radius: 20px; } .article-cover img { aspect-ratio: 16 / 9; } }
.article-layout { display: flex; flex-wrap: wrap; gap: 4rem; align-items: flex-start; padding-bottom: 4.5rem; }
.article-layout article { flex: 999 1 560px; max-width: 45rem; }
.toc { flex: 1 1 240px; max-width: 19rem; position: sticky; top: calc(var(--header-h) + 1.25rem); padding: 1.4rem 1.5rem; border-radius: 20px; background: rgba(255,255,255,.88); border: 1px solid var(--line); }
@media (max-width: 1000px) { .toc { display: none; } }
.toc p { margin: 0 0 .75rem; font-weight: 700; font-size: 1.06rem; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; font-size: 1rem; line-height: 1.5; }
.toc a { color: #475569; text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--indigo-text); }
.toc a.is-active { font-weight: 600; }

.prose { font-family: var(--serif); font-size: 1.19rem; line-height: 1.95; color: #1e293b; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-family: var(--sans); font-weight: 700; font-size: 1.9rem; line-height: 1.35; color: var(--ink); margin: 2.4em 0 0; }
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 1.45rem; line-height: 1.4; color: var(--ink); margin: 2em 0 0; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 0; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--indigo); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.75rem 0; padding: 1.6rem 1.9rem; border-radius: 22px; background: linear-gradient(135deg, #eef2ff, #e0f2fe 60%, #fff7ed); border: 1px solid #e0e7ff; font-size: 1.3rem; line-height: 2; color: var(--indigo-deep); }
.prose blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); margin-block: 1.75rem; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 1rem; line-height: 1.55; }
.prose thead tr { background: linear-gradient(90deg, #eef2ff, #e0f2fe); }
.prose th { text-align: left; padding: .9rem 1.1rem; color: var(--indigo-deep); white-space: nowrap; }
.prose td { padding: .8rem 1.1rem; border-top: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-2); }
.prose td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.prose h3#tathyasutra { font-size: 1.25rem; }
.prose h3#tathyasutra + ol { font-family: var(--sans); font-size: 1rem; line-height: 1.7; color: var(--ink-2); padding: 1.4rem 1.75rem 1.4rem 2.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }

.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share-row > span { color: var(--muted); margin-right: .25rem; }
.share-row button, .share-row a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 .95rem/1.3 var(--sans); text-decoration: none; cursor: pointer; }
.share-row button:hover, .share-row a:hover { border-color: var(--ink-2); color: var(--ink); }
.share-row svg { width: 16px; height: 16px; }
.author-box { display: flex; gap: 1.1rem; align-items: flex-start; margin-top: 2rem; padding: 1.5rem 1.6rem; border-radius: 22px; background: linear-gradient(135deg, #eef2ff, #e0f2fe); }
.author-box .avatar { width: 60px; height: 60px; font-size: 1.4rem; }
.author-box b { font-size: 1.19rem; }
.author-box p { margin: .25rem 0 0; color: #475569; font-size: 1rem; line-height: 1.65; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.pager a { display: block; padding: 1.1rem 1.3rem; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.pager a:hover { border-color: var(--ink-2); color: var(--ink); }
.pager small { display: block; color: var(--muted); font-size: .875rem; }
.pager span { font-weight: 700; line-height: 1.45; }
.pager .next { grid-column: 2; text-align: right; }
@media (max-width: 620px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }
.related { background: var(--surface); border-top: 1px solid var(--line-soft); }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); opacity: 0; background: var(--ink); color: #fff; padding: .7rem 1.15rem; border-radius: 14px; font-size: .95rem; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 4rem 0; }
.notfound p { color: var(--muted); margin: 0 0 1.5rem; }

/* hero role on two lines + mobile breathing room */
.hero-role span { display: block; }
.hero-role span + span { margin-top: .15rem; }
@media (max-width: 760px) {
  .hero { padding-top: 2.75rem; gap: 2.5rem; }
  .hero-name { font-size: clamp(2.2rem, 9vw, 2.8rem); line-height: 1.2; margin-bottom: 1.4rem; }
  .hero-role { font-size: 1.18rem; line-height: 1.55; margin-bottom: 1.1rem; }
  .hero-intro { font-size: 1.08rem; margin-bottom: 1.8rem; }
}

/* collapsible table of contents on phones and tablets */
.toc-mobile { display: none; margin: 0 0 2rem; border-radius: 16px; background: rgba(255,255,255,.9); border: 1px solid #e2e8f0; }
.toc-mobile summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: .95rem 1.2rem; font-weight: 700; font-size: 1.05rem; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: ""; width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-top: -.25rem; }
.toc-mobile[open] summary::after { transform: rotate(-135deg); margin-top: .2rem; }
.toc-mobile summary:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: 16px; }
.toc-mobile ol { list-style: bengali; margin: 0; padding: 0 1.2rem 1.1rem 2.4rem; display: grid; gap: .55rem; line-height: 1.5; }
.toc-mobile a { color: #475569; text-decoration: none; }
@media (max-width: 1000px) { .toc-mobile { display: block; } }

[hidden] { display: none !important; }

/* justified body text: about section and article body */
.about-body > p,
.prose p, .prose li, .prose blockquote p { text-align: justify; text-justify: inter-word; }

/* phones: centred hero and article header */
@media (max-width: 760px) {
  .hero-text { text-align: center; }
  .hero-intro { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .article-head { text-align: center; margin-inline: auto; }
  .article-head .chips { justify-content: center; }
  .byline-row { flex-direction: column; justify-content: center; }
  .byline { text-align: left; }
}
@media (max-width: 760px) { .crumbs { text-align: center; } }
@media (max-width: 760px) { .about-side { text-align: center; } }
@media (max-width: 760px) { .sec-head { flex-direction: column; align-items: center; text-align: center; } .contact-intro { text-align: center; } }
