/* The blog's only stylesheet (scripts/seo-lib/blog.mjs, 8 Nov 2026): the portal's colours, system fonts for Latin text
   (no download, so pages draw at once), readable on a phone. */

/* Bangla text: Noto Sans Bengali served from this site (9 Nov 2026: devices without a Bengali font showed boxes).
   One variable file for every weight (Google Fonts' Bengali subset, v33; licence: /fonts/noto-sans-bengali-OFL.txt).
   unicode-range: the browser downloads it only for a page that has Bengali letters (an English article fetches it
   only for its "বাংলায় পড়ুন" link); U+0964-0965 are the danda (।, ॥) Bangla sentences end with. */
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/noto-sans-bengali-v33.woff2') format('woff2');
  unicode-range: U+0964-0965, U+0980-09FF, U+200C-200D, U+25CC;
}
:root {
  --primary: #292764;
  --primary-dark: #2d2a80;
  --accent: #eba416;
  --text: #25283a;
  --muted: #6b7184;
  --line: #e3e6f0;
  --soft: #f5f7fc;
  --white: #fff;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Bengali', Arial, sans-serif;
}
[lang='bn'] {
  font-family: 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
html[lang='bn'] body {
  font-family: 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.8;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--primary);
}
a:hover {
  color: var(--primary-dark);
}
.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 10;
  background: var(--white);
  padding: 6px 10px;
}

/* Header: logo and links, like the portal's public header. */
.top {
  background: #c2d0f4ab;
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.logo img {
  display: block;
  width: 150px;
  height: auto;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top nav a {
  color: var(--primary);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 5px;
}
.top nav a[aria-current='page'] {
  font-weight: 600;
}
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
}
.top nav .btn {
  border-radius: 5px;
  padding: 6px 14px;
}
.btn:hover {
  background: #1e293b;
}

/* Breadcrumbs */
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 18px 0 6px;
  font-size: 14px;
  color: var(--muted);
}
.crumbs li + li::before {
  content: '›';
  margin-right: 4px;
}

/* Article */
.post,
.intro,
.related {
  max-width: 760px;
}
h1 {
  color: var(--primary);
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  margin: 8px 0 10px;
}
h2,
h3 {
  color: var(--primary);
  line-height: 1.3;
}
h2 {
  font-size: 1.45rem;
  margin: 1.8em 0 0.5em;
}
h3 {
  font-size: 1.15rem;
  margin: 1.4em 0 0.4em;
}
.meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}
.cover {
  display: block;
  width: 100%;
  border-radius: 12px;
  margin: 0 0 18px;
}
.body p,
.body li {
  margin: 0 0 1em;
}
.body li {
  margin-bottom: 0.4em;
}
.body li > p {
  margin: 0.3em 0;
}
.body li > ul,
.body li > ol {
  margin: 0.4em 0;
}
blockquote {
  margin: 1.2em 0;
  padding: 10px 16px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}
code {
  background: var(--soft);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.92em;
}
pre {
  background: var(--soft);
  padding: 12px;
  overflow-x: auto;
  border-radius: 8px;
}
pre code {
  background: none;
  padding: 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}
.table {
  overflow-x: auto;
  margin: 1.2em 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
th,
td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--soft);
  color: var(--primary);
}
.c {
  text-align: center;
}
.r {
  text-align: right;
}
.faq {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px 16px 4px;
  margin: 10px 0;
}
.faq h3 {
  margin: 0.8em 0 0.3em;
}
.cta {
  margin: 2.5em 0;
  padding: 22px;
  border-radius: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.cta h2 {
  margin-top: 0;
}
.related ul,
.cards {
  list-style: none;
  padding: 0;
}
.related li,
.cards li {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.related li p,
.cards li p {
  margin: 4px 0;
  color: var(--muted);
}
.cards h2 {
  font-size: 1.3rem;
  margin: 0.2em 0;
}
.cards h2 a {
  text-decoration: none;
}
.more {
  font-size: 14px;
}

/* Footer, like the portal's. */
.foot {
  margin-top: 48px;
  color: var(--white);
  font-size: 13px;
}
.foot-top {
  background: var(--primary-dark);
  padding: 22px 0;
}
.foot-top .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.foot-top p {
  margin: 0;
  font-weight: 300;
}
.foot-bottom {
  background: var(--primary);
  padding: 16px 0;
  text-align: center;
  color: #d6d7e6;
}
.foot-bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin-bottom: 8px;
}
.foot-bottom a {
  color: #d6d7e6;
}
.foot-bottom p {
  margin: 4px 0;
}

@media (max-width: 600px) {
  .logo img {
    width: 120px;
  }
  .top nav a {
    padding: 6px 6px;
    font-size: 14px;
  }
  .foot-top .wrap {
    flex-direction: column;
    text-align: center;
  }
}
