@font-face { font-family: "UI"; font-weight: 400; font-display: swap; src: url("/ui-font.ttf") format("truetype"); }
@font-face { font-family: "UI"; font-weight: 700; font-display: swap; src: url("/ui-font-bold.ttf") format("truetype"); }

:root {
  --green: #2db84b;
  --green-soft: #e7f7eb;
  --green-ink: #14642a;
  --navy: #1a2b6d;
  --navy-soft: #eceffa;
  --ink: #18203a;
  --muted: #5d6680;
  --line: #d9deea;
  --bg: #f4f6fb;
  --card: #fff;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.7 "UI", "Noto Sans Bengali", sans-serif; overflow-x: hidden; }
h1, h2, p { margin: 0; }
h1 { color: var(--navy); font-size: 25px; line-height: 1.35; }
h2 { color: var(--navy); font-size: 20px; line-height: 1.4; }
a { color: var(--navy); }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }

.demo { padding: 5px var(--gutter); background: #fff5dd; color: #7a5200; font-size: 14px; text-align: center; }
.skip { position: absolute; left: -999px; top: 0; z-index: 10; padding: 8px 12px; background: var(--navy); color: #fff; }
.skip:focus { left: 8px; top: 8px; }

header.site { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 8px var(--gutter); background: var(--card); border-bottom: 3px solid var(--green); }
.brand { display: block; min-width: 0; }
.brand img { display: block; width: 150px; max-width: 100%; height: auto; }
header.site nav { display: flex; gap: 4px; }
header.site nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--navy); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.search { grid-column: 1 / -1; display: flex; gap: 6px; min-width: 0; }
.search input { flex: 1; min-width: 0; min-height: 44px; padding: 4px 12px; background: var(--bg); border: 1px solid #aeb6cb; border-radius: 9px; font-size: 16px; }
.search button { flex: none; min-height: 44px; padding: 0 14px; background: var(--navy); border: 0; border-radius: 9px; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }

main { width: 100%; max-width: 1040px; margin: 0 auto; padding: 12px var(--gutter) 24px; }

.bar { display: grid; gap: 4px; margin-bottom: 10px; }
.dates { display: flex; flex-wrap: wrap; gap: 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.dates b { flex-basis: 100%; color: var(--navy); font-size: 17px; }
.days { display: flex; justify-content: space-between; gap: 8px; }
.days a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; font-weight: 700; text-decoration: none; }

.tabs { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 0 calc(var(--gutter) * -1) 10px; padding: 6px var(--gutter); background: var(--bg); }
.tabs a { display: flex; align-items: center; justify-content: center; min-height: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-weight: 700; text-decoration: none; }
.tabs a.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.sheet { position: relative; background: #fff; border: 1px solid var(--line); line-height: 0; box-shadow: 0 2px 10px rgb(26 43 109 / .1); }
.sheet img { display: block; width: 100%; height: auto; }
.hs { position: absolute; display: block; border-radius: 2px; }
.hs.lit { background: rgb(45 184 75 / .2); outline: 2px solid var(--green); }
.hs:focus-visible { outline: 3px solid var(--navy); }
.hint { margin-top: 6px; color: var(--muted); font-size: 14px; text-align: center; }

.pager { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0; }
.pager a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 14px; background: var(--card); border: 1px solid var(--navy); border-radius: 9px; font-size: 16px; font-weight: 700; text-decoration: none; }

.tools { display: grid; gap: 10px; margin-bottom: 14px; }
.pdf { display: flex; align-items: center; justify-content: center; min-height: 46px; background: var(--navy); border-radius: 9px; color: #fff; font-weight: 700; text-decoration: none; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; }
.share span { color: var(--muted); }
.share a, .share button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; background: var(--card); border: 1px solid #aeb6cb; border-radius: 9px; color: var(--navy); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }

.panel { padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.links { margin: 6px 0 0; padding: 0; list-style: none; }
.links li { border-top: 1px solid var(--line); }
.links li:first-child { border-top: 0; }
.links a { display: block; padding: 9px 0; color: var(--ink); font-size: 17px; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }

.story { margin-bottom: 14px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.crumb { color: var(--muted); font-size: 14px; }
.crumb a { display: inline-block; padding: 6px 0; font-weight: 700; text-decoration: none; }
.story h1 { font-size: 27px; overflow-wrap: anywhere; }
.byline { margin-top: 6px; color: var(--green-ink); font-size: 15px; font-weight: 700; }
.photo { display: block; width: 100%; height: auto; margin: 12px 0 2px; border-radius: 8px; }
.more-photo { margin: 14px 0 0; }
.more-photo figcaption { margin-top: 3px; color: var(--muted, #5a6484); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.more-photo small { font-weight: 700; }
.text { margin: 12px 0 16px; font-size: 19px; line-height: 1.85; overflow-wrap: anywhere; }
.text p + p { margin-top: 12px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 700; text-decoration: none; }

.months { display: flex; gap: 6px; margin: 10px calc(var(--gutter) * -1) 12px; padding: 0 var(--gutter) 4px; overflow-x: auto; }
.months a { display: inline-flex; flex: none; align-items: center; min-height: 42px; padding: 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; font-size: 15px; font-weight: 700; text-decoration: none; }
.months a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { display: block; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; line-height: 1.4; }
.card img { display: block; width: 100%; height: auto; margin-bottom: 5px; border: 1px solid var(--line); }
.card b { display: block; color: var(--navy); font-size: 15px; }
.card small { color: var(--muted); font-size: 13px; }

.count { margin: 8px 0; color: var(--muted); font-size: 15px; }
.hits { display: grid; gap: 10px; margin-top: 8px; }
.hit { display: flex; gap: 10px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; line-height: 1.5; }
.hit img { flex: none; width: 84px; height: 64px; object-fit: cover; border-radius: 6px; }
.hit > span { min-width: 0; overflow-wrap: anywhere; }
.hit b { display: block; color: var(--navy); font-size: 17px; }
.hit small { display: block; color: var(--muted); font-size: 13px; }
.snip { display: block; margin-top: 3px; font-size: 15px; }
mark { padding: 0 2px; background: var(--green-soft); color: var(--green-ink); font-weight: 700; }
.empty, .blank { padding: 28px 12px; text-align: center; color: var(--muted); }
.blank h1 { margin-bottom: 8px; }

footer.site { padding: 16px var(--gutter) 22px; background: var(--navy); color: #e8ecf8; font-size: 13px; line-height: 1.65; text-align: center; overflow-wrap: anywhere; }

@media (min-width: 720px) {
  header.site { grid-template-columns: 200px auto minmax(240px, 1fr); }
  .brand img { width: 190px; }
  .search { grid-column: auto; justify-self: end; width: 100%; max-width: 380px; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tools { grid-template-columns: auto 1fr; align-items: center; }
  .pdf { padding: 0 18px; }
  .story { padding: 26px 32px; }
  .story h1 { font-size: 34px; }
  .bar { grid-template-columns: 1fr auto; align-items: end; }
  .days { gap: 16px; }
}
