
/* Layout: calm reading site, one confident green hero, single narrow reading column. */
:root {
  --bg: #fbfaf7; --surface: #ffffff; --text: #1f2933; --muted: #5b6770;
  --brand: #0f6b5c; --brand-dark: #0a4d42; --accent: #e8a33d; --line: #e6e2d8;
  --tint: #eef5f3; --tint-line: #cfe4de; --note-bg: #fff8e8; --tag-bg: #fdf1da; --tag-text: #8a5a00;
  --th-bg: #f1ede2; --hero-a: #0f6b5c; --hero-b: #1b8f7b;
  --foot-bg: #12332d; --foot-text: #cfe0dc; --foot-line: #285048; --shadow: rgba(15, 107, 92, 0.14);
  --font-body: "Hind Siliguri", "Noto Sans Bengali", "Kalpurush", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1816; --surface: #16221f; --text: #e6ece9; --muted: #9fb0aa;
    --brand: #4fc3ab; --brand-dark: #8fe0cd; --accent: #e8a33d; --line: #2a3a35;
    --tint: #152823; --tint-line: #24433c; --note-bg: #2a2415; --tag-bg: #3a2f14; --tag-text: #f0c675;
    --th-bg: #1d2b27; --hero-a: #0b3d35; --hero-b: #12685a;
    --foot-bg: #0a1513; --foot-text: #b8cbc6; --foot-line: #213430; --shadow: rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1816; --surface: #16221f; --text: #e6ece9; --muted: #9fb0aa;
  --brand: #4fc3ab; --brand-dark: #8fe0cd; --accent: #e8a33d; --line: #2a3a35;
  --tint: #152823; --tint-line: #24433c; --note-bg: #2a2415; --tag-bg: #3a2f14; --tag-text: #f0c675;
  --th-bg: #1d2b27; --hero-a: #0b3d35; --hero-b: #12685a;
  --foot-bg: #0a1513; --foot-text: #b8cbc6; --foot-line: #213430; --shadow: rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.85; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
.narrow { max-width: 760px; }

.demo-note { background: var(--tint); border-bottom: 1px solid var(--tint-line); font-size: 0.85rem; line-height: 1.5; padding-block: 6px; color: var(--muted); }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.site-header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding-block: 8px; min-height: 64px; }
.brand { font-weight: 700; font-size: 1.5rem; color: var(--brand); text-decoration: none; white-space: nowrap; }
.site-nav { order: 3; flex: 1 1 100%; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { padding: 2px 12px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 1rem; white-space: nowrap; }
.site-nav a:hover { background: var(--tint); color: var(--brand-dark); }
.site-nav a[aria-current="page"] { background: var(--brand); color: var(--surface); }
form.search { display: flex; gap: 6px; margin-left: auto; min-width: 0; }
form.search input { width: 150px; min-width: 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 0.95rem; background: var(--bg); color: var(--text); }
form.search button { padding: 4px 14px; border: 0; border-radius: 999px; font: inherit; font-size: 0.95rem; font-weight: 600; background: var(--brand); color: var(--surface); cursor: pointer; }
@media (min-width: 960px) {
  .site-nav { order: 0; flex: 1 1 auto; }
  form.search { margin-left: 0; }
  form.search input { width: 190px; }
}

.hero { background: linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 100%); color: #fff; padding-block: 56px 52px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.35; text-wrap: balance; }
.hero p { margin: 0; max-width: 620px; font-size: 1.1rem; opacity: 0.95; }

.section-title { margin: 40px 0 16px; font-size: 1.5rem; }
.list-title { margin: 32px 0 6px; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.4; text-wrap: balance; }
.list-intro { margin: 0 0 20px; color: var(--muted); }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 8px 24px var(--shadow); transform: translateY(-2px); }
.card h3 { margin: 0; font-size: 1.2rem; line-height: 1.5; }
.card h3 a { color: var(--text); text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.tag { align-self: flex-start; background: var(--tag-bg); color: var(--tag-text); font-size: 0.8rem; padding: 2px 12px; border-radius: 999px; text-decoration: none; }
a.tag:hover { color: var(--tag-text); text-decoration: underline; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 32px 0 8px; }
.pager a, .pager span { min-width: 42px; padding: 2px 14px; border: 1px solid var(--line); border-radius: 999px; text-align: center; text-decoration: none; background: var(--surface); color: var(--text); }
.pager a:hover { border-color: var(--brand); color: var(--brand-dark); }
.pager .cur { background: var(--brand); color: var(--surface); border-color: var(--brand); font-weight: 600; }
.pager .gap { border: 0; background: none; min-width: 0; padding-inline: 4px; }

.searchbox { margin: 8px 0 12px; }
.searchbox input { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--surface); color: var(--text); }

.article { padding-block: 32px 48px; }
.article h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.4; margin: 6px 0 12px; text-wrap: balance; }
.meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 24px; }
.article h2 { font-size: 1.5rem; line-height: 1.5; margin: 40px 0 10px; padding-left: 12px; border-left: 4px solid var(--accent); text-wrap: balance; scroll-margin-top: calc(130px + env(safe-area-inset-top, 0px)); }
.article h3 { font-size: 1.2rem; margin: 26px 0 6px; color: var(--brand-dark); }
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 24px; margin: 0 0 18px; }
.article li { margin-bottom: 6px; }
.summary { background: var(--tint); border: 1px solid var(--tint-line); border-radius: 14px; padding: 16px 20px; margin: 0 0 24px; }
.summary strong { display: block; margin-bottom: 4px; color: var(--brand-dark); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 0 0 28px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 22px; }
.table-scroll { overflow-x: auto; margin: 0 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 440px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--th-bg); }
.note { background: var(--note-bg); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 8px; margin: 0 0 20px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; }
.related { margin-top: 40px; }
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.related li a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; text-decoration: none; }

/* Ad slots stay empty on the real site; put the AdSense unit inside each one after approval. */
.ad-slot { margin: 28px 0; }

.sel { user-select: all; font-weight: 600; }
form.contact label { display: block; font-weight: 600; margin: 14px 0 4px; }
form.contact input, form.contact textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); color: var(--text); }
form.contact button { margin-top: 16px; background: var(--brand); color: var(--surface); border: 0; padding: 10px 24px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
form.contact button:hover { background: var(--brand-dark); }
.form-status { margin-top: 14px; padding: 10px 14px; border-radius: 8px; background: var(--tint); border: 1px solid var(--tint-line); }

.site-footer { background: var(--foot-bg); color: var(--foot-text); padding-block: 36px 24px; margin-top: 40px; font-size: 0.95rem; line-height: 1.8; }
.site-footer a { color: var(--foot-text); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { margin: 0 0 8px; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.admin-btn { margin-left: 12px; padding: 1px 12px; border: 1px solid var(--foot-line); border-radius: 999px; text-decoration: none; font-size: 0.8rem; opacity: 0.8; }
.admin-btn:hover { opacity: 1; background: var(--foot-line); }
.copy { border-top: 1px solid var(--foot-line); margin-top: 24px; padding-top: 14px; font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
