@font-face { font-family: "Anek"; font-weight: 800; font-display: swap; src: url("/fonts/anek-800.woff2") format("woff2"); }
@font-face { font-family: "Anek"; font-weight: 700; font-display: swap; src: url("/fonts/anek-700.woff2") format("woff2"); }
@font-face { font-family: "Hind"; font-weight: 500; font-display: swap; src: url("/fonts/hind-500.woff2") format("woff2"); }
@font-face { font-family: "Hind"; font-weight: 700; font-display: swap; src: url("/fonts/hind-700.woff2") format("woff2"); }
@font-face { font-family: "Grotesk"; font-weight: 700; font-display: swap; src: url("/fonts/grotesk-700.woff2") format("woff2"); }

:root {
  --ink: #141217; --paper: #F4EFE4; --card: #FBF8F2; --pop: #FF5A1F; --pop-text: #C2410C; --sticker: #FFD23F;
  --muted: #6E675C; --line: #DDD5C5; --bg: var(--paper); --fg: var(--ink);
  --head: "Anek", "Grotesk", "Hind", sans-serif; --body: "Hind", "Grotesk", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #141217; --fg: #EFE9DC; --card: #1D1B21; --muted: #A39C8F; --line: #34313A; --pop-text: #FF7A45; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #141217; --fg: #EFE9DC; --card: #1D1B21; --muted: #A39C8F; --line: #34313A; --pop-text: #FF7A45; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 19px; line-height: 1.7; font-weight: 500; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-head { background: var(--ink); color: #F4EFE4; position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo .bubble { width: 36px; height: 31px; background: var(--pop); color: var(--ink); border-radius: 28% 28% 28% 6%;
  display: grid; place-items: center; font: 700 22px "Grotesk"; }
.logo .word { font: 800 26px var(--head); line-height: 1; padding-top: 4px; }
.logo .word i { font-style: normal; color: var(--pop); font-family: "Grotesk"; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; font: 700 17px var(--head); padding: 6px 12px; border-radius: 999px; white-space: nowrap; color: #D9D2C4; }
.nav a:hover, .nav a.on { background: #2B2830; color: #fff; }
.nav a.on { color: var(--sticker); }
@media (max-width: 720px) {
  .site-head .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 6px; }
  .nav { margin: 0 -16px; padding: 0 12px 8px; width: calc(100% + 32px); }
}

/* shared bits */
.cat { display: inline-block; background: var(--sticker); color: var(--ink); font: 700 15px var(--head); padding: 4px 12px 1px;
  border: 2px solid var(--ink); transform: rotate(-2deg); text-decoration: none; }
.meta { color: var(--muted); font-size: 15px; }
mark { background: linear-gradient(transparent 58%, var(--sticker) 58%, var(--sticker) 88%, transparent 88%); color: inherit; }
:root[data-theme="dark"] mark { background: linear-gradient(transparent 58%, #8a3a17 58%, #8a3a17 88%, transparent 88%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) mark { background: linear-gradient(transparent 58%, #8a3a17 58%, #8a3a17 88%, transparent 88%); } }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.2; }

/* home */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 40px 0 48px; border-bottom: 2px solid var(--line); }
.hero img { border-radius: 6px; box-shadow: 0 1px 0 var(--line), 10px 10px 0 var(--pop); }
.hero h2 { font-size: clamp(30px, 4.2vw, 50px); margin: 16px 0 12px; }
.hero h2 a { text-decoration: none; }
.hero p { color: var(--muted); margin: 0 0 14px; font-size: 20px; }
.more { font: 700 18px var(--head); color: var(--pop-text); text-decoration: none; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; gap: 22px; padding-top: 24px; } }

.section-title { font-size: 28px; margin: 44px 0 20px; display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.tile img { aspect-ratio: 1200/630; object-fit: cover; width: 100%; }
.tile .in { padding: 16px 18px 18px; }
.tile h3 { font-size: 23px; margin: 12px 0 6px; }
.tile h3 a { text-decoration: none; }
.tile h3 a:hover { color: var(--pop-text); }
.empty { color: var(--muted); padding: 40px 0; }

/* article */
.article-head { padding: 36px 0 8px; }
.article-head h1 { font-size: clamp(32px, 5.2vw, 52px); margin: 18px 0 14px; }
.dek { font-size: 21px; color: var(--muted); margin: 0 0 14px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; }
.share a, .share button { font: 700 15px var(--head); padding: 8px 14px 6px; border: 2px solid var(--fg); background: transparent; color: var(--fg);
  border-radius: 999px; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--fg); color: var(--bg); }
.figure { margin: 26px 0; }
.figure img { max-width: 520px; width: 100%; margin: 0 auto; border-radius: 6px; border: 1px solid var(--line); }
.figure figcaption { text-align: center; font-size: 15px; color: var(--muted); margin-top: 8px; }
.glance { background: var(--card); border: 2px solid var(--fg); border-radius: 8px; padding: 18px 22px 8px; margin: 28px 0; box-shadow: 6px 6px 0 var(--pop); }
.glance h2 { font-size: 22px; margin: 0 0 8px; }
.glance ol { margin: 0; padding-left: 0; list-style: none; counter-reset: g; }
.glance li { counter-increment: g; position: relative; padding-left: 40px; margin-bottom: 10px; }
.glance li::before { content: counter(g, bengali); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--pop); color: var(--ink); font: 800 16px var(--head); display: grid; place-items: center; }
.prose h2 { font-size: 30px; margin: 40px 0 10px; }
.prose h3 { font-size: 24px; margin: 30px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--pop-text); }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--pop); font-size: 21px; }
.sources { margin: 40px 0 0; padding: 20px 22px 6px; border: 2px dashed var(--line); border-radius: 8px; }
.sources h2 { font-size: 22px; margin: 0 0 10px; }
.sources ol { padding-left: 22px; margin: 0 0 14px; font-size: 16px; }
.sources a { color: var(--pop-text); word-break: break-word; }
.sources p { font-size: 15px; color: var(--muted); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.tags span { font-size: 15px; border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; color: var(--muted); }

/* footer */
.site-foot { margin-top: 64px; background: var(--ink); color: #CFC8BA; padding: 36px 0; font-size: 16px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot a { color: #F4EFE4; }
.site-foot .tag { color: var(--sticker); font-family: var(--head); font-weight: 700; font-size: 19px; }
.page-title { font-size: clamp(32px, 5vw, 46px); margin: 36px 0 6px; }

/* ===== magazine home (v2) ===== */
.pic { position: relative; display: block; overflow: hidden; border-radius: 8px; background: var(--line); }
.pic img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .35s ease; }
.pic:hover img { transform: scale(1.03); }
.badges { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.badge { background: var(--ink); color: #F4EFE4; font: 700 14px var(--head); padding: 4px 10px 1px; border-radius: 999px; }
.badge.data { background: var(--sticker); color: var(--ink); }
.dek { color: var(--muted); }

.front { display: grid; grid-template-columns: 1.65fr 1fr; gap: 36px; padding: 32px 0 40px; border-bottom: 2px solid var(--line); }
.lead .pic { box-shadow: 10px 10px 0 var(--pop); }
.lead .in { padding-top: 22px; }
.lead h2 { font-size: clamp(30px, 3.8vw, 48px); margin: 14px 0 10px; }
.lead h2 a, .wide h3 a, .tile h3 a { text-decoration: none; }
.lead h2 a:hover, .wide h3 a:hover, .tile h3 a:hover { color: var(--pop-text); }
.lead .dek { font-size: 20px; margin: 0 0 10px; }
.side-title { font-size: 24px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 3px solid var(--fg); }
.row { display: grid; grid-template-columns: 28px 112px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row .num { font: 800 26px var(--head); color: var(--pop-text); }
.row img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.row .t { font: 700 18px/1.35 var(--head); }
.row .t em { display: block; font-style: normal; font-size: 14px; color: var(--pop-text); margin-bottom: 2px; }
.row:hover .t { color: var(--pop-text); }

.section-title small { font-family: var(--body); font-weight: 500; font-size: 16px; color: var(--muted); }
.section-title a { text-decoration: none; }
.section-title .all { order: 3; font: 700 16px var(--head); color: var(--pop-text); white-space: nowrap; }
.swipe .strip, .slides .strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.fbcard { position: relative; flex: 0 0 230px; scroll-snap-align: start; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.fbcard img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .3s; }
.fbcard:hover img { transform: translateY(-4px); }
.fbcard .badge { position: absolute; right: 8px; top: 8px; }

.topic { margin-top: 8px; }
.wide { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.topic.k-feature .wide { margin-bottom: 28px; }
.topic.rev .wide { grid-template-columns: 1fr 1.2fr; }
.topic.rev .wide .pic { order: 2; }
.wide h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 12px 0 8px; }
.wide .dek { margin: 0 0 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.tile .pic { border-radius: 0; }
.tile .in { padding: 14px 16px 18px; }
.tile h3 { font-size: 22px; margin: 10px 0 6px; }

/* article slide strip */
.slides { margin: 36px 0 0; }
.slides h2 { font-size: 24px; margin: 0 0 12px; }
.slides h2 small { font-family: var(--body); font-weight: 500; font-size: 15px; color: var(--muted); margin-left: 6px; }
.slides .strip img { flex: 0 0 min(78%, 360px); scroll-snap-align: start; border-radius: 8px; border: 1px solid var(--line); }

@media (max-width: 860px) {
  .front { grid-template-columns: 1fr; gap: 26px; padding-top: 18px; }
  .wide { grid-template-columns: 1fr; padding: 0 0 16px; overflow: hidden; }
  .wide .pic { border-radius: 10px 10px 0 0; }
  .wide .in { padding: 0 16px; }
  .fbcard { flex-basis: 62%; }
}
@media (max-width: 860px) { .topic.rev .wide { grid-template-columns: 1fr; } .topic.rev .wide .pic { order: 0; } }

/* ===== share bar with brand logos (v2) ===== */
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0 8px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--head); padding: 9px 14px 7px; border: 0;
  border-radius: 999px; text-decoration: none; cursor: pointer; color: #fff; background: #555; line-height: 1; }
.share svg { width: 20px; height: 20px; fill: currentColor; flex: none; margin-top: -2px; }
.share .s-fb { background: #0866FF; }
.share .s-wa { background: #25D366; color: #0b3d20; }
.share .s-tg { background: #26A5E4; }
.share .s-x { background: #000; }
.share .s-copy, .share .s-native { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--fg); }
.share svg[fill="none"] { fill: none; }
.share a:hover, .share button:hover { filter: brightness(1.08); transform: translateY(-1px); background: inherit; }
.share .s-fb:hover { background: #0866FF; } .share .s-wa:hover { background: #25D366; } .share .s-tg:hover { background: #26A5E4; } .share .s-x:hover { background: #000; }
.share .s-copy:hover, .share .s-native:hover { background: var(--fg); color: var(--bg); }
:root[data-theme="dark"] .share .s-x { box-shadow: inset 0 0 0 1px #555; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .share .s-x { box-shadow: inset 0 0 0 1px #555; } }
.share-label { width: 100%; font: 800 20px var(--head); margin-bottom: 2px; }
.share-end { margin-top: 30px; padding: 18px 20px 12px; background: var(--card); border: 2px solid var(--fg); border-radius: 10px; }
.share-end .share { margin: 0; }
/* on phones show icon-only for the brand buttons so everything fits on one or two rows */
@media (max-width: 520px) {
  .article-head .share a span, .article-head .share button span { display: none; }
  .article-head .share button { padding: 10px; }
  .article-head .share a { padding: 10px; }
  .share svg { width: 22px; height: 22px; }
}
.foot-fb { display: inline-flex; align-items: center; gap: 8px; font: 700 18px var(--head); text-decoration: none; color: #fff !important; background: #0866FF;
  padding: 8px 14px 6px; border-radius: 999px; margin-bottom: 8px; }
.foot-fb svg { width: 20px; height: 20px; fill: currentColor; margin-top: -2px; }

/* ===== v3 "case file" layout ===== */
:root { --folder: #EBDDBF; --folder-edge: #141217; --stamp: #C2410C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --folder: #26221C; --folder-edge: #CFC6B4; --stamp: #FF7A45; } }
:root[data-theme="dark"] { --folder: #26221C; --folder-edge: #CFC6B4; --stamp: #FF7A45; }

.file { position: relative; padding-top: 30px; display: block; background: none; border: 0; border-radius: 0; overflow: visible; }
.file .tab { position: absolute; top: 0; left: 0; height: 32px; max-width: 92%; display: flex; gap: 10px; align-items: center; padding: 3px 16px 0;
  background: var(--folder); border: 2px solid var(--folder-edge); border-bottom: 0; border-radius: 10px 10px 0 0; font: 700 15px var(--head); white-space: nowrap; z-index: 2; }
.file .tab a { text-decoration: none; color: var(--fg); }
.file .tab a:hover { color: var(--pop-text); }
.file .tab span { color: var(--muted); font-size: 13px; }
.file .sheet { position: relative; background: var(--folder); border: 2px solid var(--folder-edge); border-radius: 0 12px 12px 12px; padding: 18px;
  box-shadow: 6px 6px 0 var(--folder-edge); transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.file:hover .sheet { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--folder-edge); }
.file h3, .file h2 { margin: 14px 0 8px; }
.file h3 { font-size: 22px; }
.file h3 a, .file h2 a { text-decoration: none; }
.file h3 a:hover, .file h2 a:hover { color: var(--pop-text); }

/* photo pinned with a paper clip */
.photo { position: relative; display: block; background: #fff; padding: 8px 8px 8px; box-shadow: 0 3px 10px rgba(0,0,0,.18); transform: rotate(-1.2deg); transition: transform .25s ease; }
.grid .file:nth-child(even) .photo, .topic.rev .photo { transform: rotate(1.2deg); }
.file:hover .photo { transform: rotate(0deg); }
.photo img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.photo .clip { position: absolute; top: -22px; left: 26px; width: 22px; height: 56px; color: #6b6f76; z-index: 3; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.25)); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.chip { font: 700 13px var(--head); padding: 3px 9px 1px; border-radius: 999px; background: var(--fg); color: var(--bg); }
.chip.data { background: var(--sticker); color: #141217; }
.verdict { margin: 4px 0 12px; padding: 8px 12px 6px; background: var(--bg); border-left: 5px solid var(--pop); border-radius: 0 6px 6px 0; font-weight: 700; line-height: 1.5; }
.verdict b { display: inline-block; margin-right: 8px; font: 800 14px var(--head); color: #fff; background: var(--pop-text); padding: 2px 8px 0; border-radius: 4px; }

/* lead = today's case, opened */
.front { grid-template-columns: 1.7fr 1fr; align-items: start; }
.file.lead .sheet { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; align-items: center; padding: 24px; }
.file.lead .kicker { font: 800 16px var(--head); color: var(--pop-text); letter-spacing: .02em; }
.file.lead h2 { font-size: clamp(28px, 2.9vw, 40px); margin: 6px 0 10px; }
.file.lead .dek { font-size: 17px; margin: 0 0 12px; }
.stamp { position: absolute; right: 18px; top: -26px; z-index: 4; transform: rotate(7deg); border: 3px double var(--stamp); color: var(--stamp); border-radius: 8px;
  padding: 6px 12px 3px; font: 800 17px/1.1 var(--head); text-align: center; background: color-mix(in srgb, var(--folder) 85%, transparent); }
.stamp small { display: block; font-size: 12px; font-weight: 700; }

/* docket = running cases list */
.docket h2 { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 4px; padding-bottom: 8px; border-bottom: 3px double var(--fg); font-size: 24px; }
.docket h2 small { font: 700 14px var(--head); color: var(--muted); }
.docket-row { display: grid; grid-template-columns: 52px 1fr 92px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); text-decoration: none; }
.docket-row .no { font: 700 15px "Grotesk", var(--head); color: var(--pop-text); }
.docket-row .t { font: 700 17px/1.35 var(--head); }
.docket-row .t em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.docket-row img { width: 92px; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.docket-row:hover .t { color: var(--pop-text); }

/* section headers = cabinet drawer labels */
.drawer { display: flex; align-items: center; gap: 14px; margin: 54px 0 22px; font-size: 22px; }
.drawer::after { content: ""; flex: 1; height: 2px; background: var(--line); order: 2; }
.drawer .plate { text-decoration: none; padding: 6px 18px 3px; border: 2px solid var(--fg); border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--fg); }
.drawer small { font: 700 14px var(--head); color: var(--muted); order: 1; }
.drawer .all { order: 3; font: 700 15px var(--head); color: var(--pop-text); text-decoration: none; white-space: nowrap; }

/* wide file */
.file.wide .sheet { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; padding: 22px; }
.file.wide h3 { font-size: clamp(22px, 2.4vw, 30px); margin-top: 0; }
.topic.rev .file.wide .photo { order: 2; }
.topic.k-feature .file.wide { margin-bottom: 30px; }
.grid { gap: 34px 26px; }
.grid .file .sheet { display: flex; flex-direction: column; }
.grid .file .meta { margin-top: auto; }

/* article: case line + verdict box + stamp */
.case-line { display: inline-flex; gap: 10px; align-items: center; padding: 5px 14px 2px; border: 2px solid var(--fg); border-radius: 8px 8px 0 0; border-bottom-width: 0; background: var(--folder); font: 700 15px var(--head); }
.case-line a { text-decoration: none; }
.case-line span { color: var(--muted); font-size: 13px; }
.article-head h1 { margin-top: 10px; }
.verdict-box { margin: 26px 0 0; padding: 14px 18px 10px; background: var(--folder); border: 2px solid var(--fg); border-left: 8px solid var(--pop); border-radius: 8px; font: 700 20px/1.5 var(--head); }
.verdict-box span { display: block; font-size: 14px; color: var(--pop-text); margin-bottom: 2px; }
.sources { position: relative; }
.sources .stamp { top: -22px; right: 14px; }

@media (max-width: 860px) {
  .file.lead .sheet, .file.wide .sheet { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .topic.rev .file.wide .photo { order: 0; }
  .stamp { top: -18px; right: 10px; font-size: 15px; }
  .docket-row { grid-template-columns: 46px 1fr 84px; }
}

/* ===== responsive (kept last so it wins) ===== */
@media (max-width: 1100px) {
  .front { grid-template-columns: 1.45fr 1fr; gap: 28px; }
  .file.lead .sheet { grid-template-columns: 1fr; gap: 18px; }
  .file.lead .photo { max-width: 640px; }
  .file.wide .sheet { gap: 22px; }
}
@media (max-width: 860px) {
  .front { grid-template-columns: 1fr; gap: 10px; padding-top: 16px; }
  .file.lead .photo { max-width: none; }
  .file.wide .sheet { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .topic.rev .file.wide .photo { order: 0; }
  .docket h2 { margin-top: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
  .drawer { margin: 40px 0 18px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .file .sheet { padding: 14px; box-shadow: 4px 4px 0 var(--folder-edge); }
  .file.lead .sheet { padding: 16px 14px; }
  .file .tab { font-size: 14px; padding: 3px 12px 0; gap: 8px; }
  .file .tab span { font-size: 12px; }
  .stamp { top: -14px; right: 8px; font-size: 13px; padding: 4px 8px 2px; border-width: 2px; }
  .stamp small { font-size: 10px; }
  .photo { padding: 6px; }
  .photo .clip { width: 18px; height: 46px; top: -18px; left: 18px; }
  .file.lead h2 { font-size: 27px; }
  .verdict { font-size: 16px; }
  .docket-row { grid-template-columns: 42px 1fr 76px; gap: 10px; }
  .docket-row img { width: 76px; }
  .docket-row .t { font-size: 16px; }
  .drawer { font-size: 19px; gap: 10px; }
  .drawer::after { display: none; }
  .drawer .all { margin-left: auto; }
  .fbcard { flex-basis: 70%; }
  .verdict-box { font-size: 18px; }
  .case-line { font-size: 14px; }
}
/* share bar: compact, one line */
.share { gap: 6px; flex-wrap: nowrap; }
.share-end .share { flex-wrap: wrap; }
.share-label { flex-basis: 100%; }
.share a, .share button { padding: 7px 11px 5px; font-size: 14px; gap: 6px; white-space: nowrap; }
.share svg { width: 17px; height: 17px; }
.share .s-x, .share .s-native { padding: 7px 9px; }
@media (max-width: 560px) {
  .share a span, .share button span { display: none; }
  .share a, .share button { padding: 9px; }
  .share svg { width: 20px; height: 20px; }
}
@media (max-width: 360px) { .share a, .share button { padding: 7px; } .share { gap: 5px; } .share-end { padding: 14px 12px 10px; } }
.share a, .share button { min-height: 34px; }

/* Bangla digits: Hind Siliguri's ১ looks like ৲, so take ০-৯ from Anek Bangla */
@font-face { font-family: "Hind"; font-weight: 500; font-display: swap; src: url("/fonts/anek-500.woff2") format("woff2"); unicode-range: U+09E6-09EF; }
@font-face { font-family: "Hind"; font-weight: 700; font-display: swap; src: url("/fonts/anek-700.woff2") format("woff2"); unicode-range: U+09E6-09EF; }

/* ===== v4 features ===== */
/* header tools */
.site-head .wrap { gap: 18px; }
.nav { margin-left: auto; }
.tools { display: flex; gap: 6px; flex: none; }
.tool { display: inline-flex; align-items: center; gap: 6px; background: #2B2830; color: #F4EFE4; border: 0; border-radius: 999px; padding: 8px 12px 6px; font: 700 15px var(--head); cursor: pointer; }
.tool svg { width: 18px; height: 18px; margin-top: -2px; }
.tool:hover { background: var(--pop); color: var(--ink); }
@media (max-width: 1100px) { .tool span { display: none; } .tool { padding: 9px; } }
@media (max-width: 720px) { .tools { margin-left: auto; } .site-head .logo { order: 0; } .tools { order: 1; } .nav { order: 2; } }

/* search dialog */
#search { width: min(640px, calc(100vw - 24px)); max-height: 80vh; margin: 9vh auto auto; padding: 0; border: 2px solid var(--fg); border-radius: 14px; background: var(--bg); color: var(--fg); box-shadow: 8px 8px 0 var(--pop); }
#search::backdrop { background: rgba(20,18,23,.6); backdrop-filter: blur(2px); }
.s-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 2px solid var(--line); }
.s-icon svg { width: 22px; height: 22px; display: block; }
#search-input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--fg); font: 700 20px var(--head); padding: 6px 0 2px; min-width: 0; }
.s-close { border: 0; background: var(--line); color: var(--fg); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; }
#search-results { padding: 8px; overflow-y: auto; max-height: 62vh; }
.s-hit { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; }
.s-hit:hover, .s-hit:focus { background: var(--folder); outline: none; }
.s-hit img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.s-hit span { font: 700 17px/1.35 var(--head); }
.s-hit em { display: block; font-style: normal; font-size: 13px; color: var(--pop-text); }
.s-hint { color: var(--muted); padding: 14px 10px; margin: 0; }

/* ads */
.ad-slot { position: relative; margin: 28px 0; }
.ad-label { position: absolute; top: -10px; left: 12px; z-index: 1; font: 700 12px var(--head); background: var(--bg); color: var(--muted); padding: 2px 8px 0; border: 1px solid var(--line); border-radius: 4px; }
.ad { display: block; text-decoration: none; }
.ad-img img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.ad-text { display: grid; gap: 4px; padding: 18px 20px 14px; border: 2px dashed var(--line); border-radius: 10px; background: var(--card); }
.ad-text b { font: 800 19px var(--head); }
.ad-text span { color: var(--muted); font-size: 16px; }
.ad-text em { font: 700 15px var(--head); font-style: normal; color: var(--pop-text); }
.docket .ad-slot { margin-top: 26px; }

/* listen player */
.listen { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; padding: 10px 14px 10px 10px; background: var(--folder); border: 2px solid var(--fg); border-radius: 999px; max-width: 520px; }
.l-play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--pop); color: #141217; display: grid; place-items: center; cursor: pointer; }
.l-play svg { width: 24px; height: 24px; }
.l-play .i-pause, .listen.on .i-play { display: none; }
.listen.on .i-pause { display: block; }
.l-main { flex: 1; min-width: 0; }
.l-main b { display: block; font: 700 15px var(--head); }
.l-bar { height: 8px; margin-top: 6px; border-radius: 999px; background: var(--bg); cursor: pointer; overflow: hidden; }
.l-bar i { display: block; height: 100%; width: 0; background: var(--pop); }
.l-time { font: 700 13px var(--head); color: var(--muted); white-space: nowrap; }
.l-speed { border: 2px solid var(--fg); background: transparent; color: var(--fg); border-radius: 999px; font: 700 13px var(--head); padding: 4px 8px 2px; cursor: pointer; }
.chip.listen-chip { background: var(--folder); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }

/* simple mode (ELI5) */
.eli5 { margin: 18px 0 0; border: 2px dashed var(--pop); border-radius: 10px; background: var(--card); }
.eli5 summary { cursor: pointer; padding: 12px 16px 10px; font: 800 18px var(--head); list-style: none; display: flex; align-items: center; gap: 8px; }
.eli5 summary::-webkit-details-marker { display: none; }
.eli5 summary::after { content: "＋"; margin-left: auto; color: var(--pop-text); }
.eli5[open] summary::after { content: "－"; }
.eli5 summary em { font: 600 13px var(--body); font-style: normal; color: var(--muted); }
.eli5 ol { margin: 0; padding: 0 18px 14px 40px; font-size: 19px; }
.eli5 li { margin-bottom: 6px; }

/* glossary terms */
.term { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help; text-decoration: underline dotted var(--pop-text) 2px; text-underline-offset: 5px; }
.term:hover { color: var(--pop-text); }
.term-tip { position: absolute; z-index: 50; background: var(--ink); color: #F4EFE4; padding: 12px 14px 10px; border-radius: 10px; font-size: 16px; line-height: 1.55; box-shadow: 5px 5px 0 var(--pop); animation: pop .15s ease-out; }
.term-tip b { display: block; color: var(--sticker); font: 800 17px var(--head); margin-bottom: 2px; }
.term-hint { font-size: 14px; color: var(--muted); margin: 18px 0 -6px; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

/* quiz */
.quiz { margin: 36px 0 0; padding: 20px 20px 12px; background: var(--folder); border: 2px solid var(--fg); border-radius: 12px; }
.quiz h2 { font-size: 26px; margin: 0 0 12px; }
.quiz h2 small { font: 600 15px var(--body); color: var(--muted); margin-left: 6px; }
.q { padding: 12px 0; border-top: 1px dashed var(--line); }
.q p { margin: 0 0 10px; font-weight: 700; }
.q-btns { display: flex; gap: 8px; }
.q-btns button { flex: 1; max-width: 160px; font: 800 17px var(--head); padding: 10px 12px 7px; border-radius: 999px; border: 2px solid var(--fg); background: var(--bg); color: var(--fg); cursor: pointer; }
.q-btns button:hover { background: var(--fg); color: var(--bg); }
.q-why { display: none; margin: 10px 0 0 !important; font-weight: 500 !important; }
.q.answered .q-why { display: block; }
.q.answered button { pointer-events: none; opacity: .5; }
.q.answered button.picked { opacity: 1; }
.q.ok button.picked { background: #1F9D55; border-color: #1F9D55; color: #fff; }
.q.no button.picked { background: #D83A2E; border-color: #D83A2E; color: #fff; }
.q.ok .q-why b { color: #1F9D55; } .q.no .q-why b { color: #D83A2E; }
.q-result { font: 800 20px var(--head); margin: 6px 0 8px; padding: 10px 14px 6px; background: var(--sticker); color: #141217; border-radius: 8px; }

/* reading progress + case closed */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 30; pointer-events: none; }
.read-progress i { display: block; height: 100%; width: 0; background: var(--pop); }
.case-closed { display: flex; flex-direction: column; align-items: center; margin: 40px 0 8px; }
.case-closed span { font: 800 30px var(--head); color: var(--stamp); border: 4px double var(--stamp); border-radius: 10px; padding: 8px 20px 4px; transform: rotate(-6deg) scale(1.6); opacity: 0; transition: transform .35s cubic-bezier(.2,1.6,.4,1), opacity .2s; }
.case-closed small { margin-top: 10px; color: var(--muted); font-weight: 700; opacity: 0; transition: opacity .3s .3s; }
.case-closed.show span { transform: rotate(-6deg) scale(1); opacity: 1; }
.case-closed.show small { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .case-closed span, .case-closed small { transition: none; } }

/* photo credits */
.sources h3 { font-size: 18px; margin: 4px 0 6px; }
.credits { font-size: 14px; padding-left: 20px; margin: 0 0 12px; color: var(--muted); }
.credits a { color: var(--pop-text); }

@media (max-width: 560px) {
  .listen { border-radius: 16px; flex-wrap: wrap; }
  .l-main { flex-basis: calc(100% - 60px); }
  .l-time { margin-left: 58px; }
  .l-speed { margin-left: auto; }
  .quiz { padding: 16px 14px 10px; }
  .s-hit { grid-template-columns: 96px 1fr; }
  .s-hit img { width: 96px; }
}
.eli5 ol, .prose ol, .sources ol { list-style-type: bengali; }
#search-input::-webkit-search-cancel-button { display: none; }

/* ===== v4.1 fixes ===== */
/* lead: big photo on top, text below, at every width */
.file.lead .sheet { grid-template-columns: 1fr !important; gap: 20px; }
.file.lead .photo { max-width: none; }
.file.lead h2 { font-size: clamp(28px, 2.6vw, 40px); }
/* grids size to how many cards they hold, so one card never sits alone in a wide row */
.grid[style*="--n"] { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.grid[style*="--n:1"] { max-width: 460px; }
@media (max-width: 860px) { .grid[style*="--n:3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid[style*="--n"] { grid-template-columns: 1fr; } .grid[style*="--n:1"] { max-width: none; } }
/* X logo readable in dark mode */
:root[data-theme="dark"] .share .s-x { background: #fff; color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .share .s-x, :root:not([data-theme="light"]) .share .s-x:hover { background: #fff; color: #000; } }
