/* ==========================================================================
   কেয়ারি — সাইট স্টাইল
   ডিজাইন টোকেন মাস্টার প্রম্পটের অংশ ৩–৫ ও ১৪.৩ অনুযায়ী
   ========================================================================== */
:root {
  --text: #29294B;
  --text-muted: #55556E;
  --accent: #00A664;
  --accent-hover: #00955A;
  --accent-ink: #007A49;
  --line: #CCEDE0;
  --bg-start: #FDFDFF;
  --bg-end: #F8F7FF;
  --surface: #FFFFFF;
  --header-bg: #FDFDFF;
  --highlight: #F2F2F6;
  --menu-link: #222222;
  --btn: linear-gradient(180deg, #80D3B2 0%, #00A664 100%);
  --btn-hover: linear-gradient(180deg, #66CAA2 0%, #00955A 100%);
  --shadow: 0 5px 20px rgba(114, 114, 255, .15);
  --shadow-lg: 0 18px 50px rgba(114, 114, 255, .22);
  --overlay: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82) 100%);
  --radius-lg: 16px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --container: 1296px;
  --gutter: 24px;
  --reading: 680px;
  --header-h: 88px;
  --read-size: 17px;
  --font: 'Keyari Hafs', 'Noto Serif by Gunjoron', serif;
  color-scheme: light;
}
[data-scheme="dark"] {
  --text: #F2F2F7;
  --text-muted: #C4C4CF;
  --accent: #2BC489;
  --accent-hover: #3CD69A;
  --accent-ink: #2BC489;
  --line: #2F3A35;
  --bg-start: #18181B;
  --bg-end: #18181B;
  --surface: #222226;
  --header-bg: #18181B;
  --highlight: #2E2E33;
  --menu-link: #EDEDF2;
  --btn: linear-gradient(180deg, #2BC489 0%, #00955A 100%);
  --btn-hover: linear-gradient(180deg, #3CD69A 0%, #00A664 100%);
  --shadow: 0 5px 20px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text);
  background: linear-gradient(180deg, var(--bg-start), var(--bg-end)) fixed; background-color: var(--bg-start);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-md); }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }
.i { flex: none; }

/* ---------- buttons, pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 18px; border: 0; border-radius: var(--radius-md); background: var(--btn); color: #fff;
  font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; transition: transform .15s, box-shadow .2s;
}
.btn:hover { background: var(--btn-hover); color: #fff; box-shadow: 0 6px 16px rgba(0, 166, 100, .25); }
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.btn--light:hover { background: var(--surface); color: var(--accent); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--text); transition: background .2s;
}
.icon-btn:hover { background: var(--highlight); color: var(--text); }
.pill {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 12px; line-height: 1.3;
  letter-spacing: .02em; background: var(--surface); color: var(--menu-link);
}
.pill--soft { box-shadow: var(--shadow); color: var(--text); border-radius: var(--radius-pill); padding: 5px 12px; }
.pill:hover { color: var(--accent); }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; color: #fff;
  background: rgba(255,255,255,.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.count { font-size: 12px; color: var(--text-muted); }
.sec-label { font-size: 13px; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; margin-bottom: 18px; }
.sec-label--center { text-align: center; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sec-head--center { justify-content: center; text-align: center; border: 0; }
.sec-head__title { font-size: 24px; font-weight: 700; position: relative; }
.sec-head__title::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.sec-head__more { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--accent-ink); }
.empty { padding: 48px 0; text-align: center; color: var(--text-muted); grid-column: 1 / -1; }

/* ---------- header ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }
.site-header {
  position: sticky; top: 0; z-index: 200; height: var(--header-h); background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 2px solid var(--line); transition: transform .3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { position: relative; display: flex; align-items: center; gap: 24px; height: 100%; }
.site-logo { display: inline-flex; align-items: center; flex: none; }
.site-logo img, .site-logo .logo { width: 92px; height: 54px; object-fit: contain; }
[data-scheme="dark"] .site-logo img:not([data-has-dark]) { filter: brightness(1.15) saturate(1.1); }
.hamburger { display: none; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; list-style: none; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: var(--radius-md);
  font-size: 16px; font-weight: 600; color: var(--menu-link); transition: background .2s, color .2s;
}
.nav__link .i { transition: transform .2s; opacity: .7; }
.nav__item:hover > .nav__link, .nav__item:focus-within > .nav__link { color: var(--accent); }
.nav__item.is-active > .nav__link { background: var(--accent); color: #fff; }
.nav__item.has-sub:hover > .nav__link .i, .nav__item.is-open > .nav__link .i { transform: rotate(180deg); }
.dropdown, .mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); opacity: 0; visibility: hidden;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s, visibility .2s; z-index: 210;
}
.dropdown::before, .mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item:hover > .dropdown, .nav__item:hover > .mega, .nav__item.is-open > .dropdown, .nav__item.is-open > .mega {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.dropdown { min-width: 220px; padding: 10px; list-style: none; }
.dropdown a { display: block; padding: 10px 14px; border-radius: var(--radius-md); font-size: 15px; }
.dropdown a:hover { background: var(--highlight); }
.mega { display: flex; gap: 24px; width: min(980px, calc(100vw - 48px)); padding: 28px; }
.mega__cols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mega__group + .mega__group { margin-top: 18px; }
.mega__cat { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; padding: 6px 8px; border-radius: var(--radius-md); }
.mega__cat:hover { background: var(--highlight); }
.mega__icon { width: 22px; text-align: center; }
.mega__count { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-muted); background: var(--highlight); border-radius: var(--radius-pill); padding: 1px 8px; }
.mega__subs { list-style: none; padding-left: 8px; }
.mega__subs a { display: block; padding: 4px 0; font-size: 14.5px; color: var(--text-muted); }
.mega__subs a:hover { color: var(--accent); }
.mega__feature { width: 240px; flex: none; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-lg); background: var(--highlight); }
.mega__feature-img { border-radius: 12px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.mega__feature-label { font-size: 12px; color: var(--accent-ink); font-weight: 600; letter-spacing: .05em; }
.mega__feature-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.header-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.header-tools__sep { width: 1px; height: 24px; background: var(--line); }
.scheme-toggle {
  display: inline-flex; align-items: center; gap: 0; width: 72px; height: 36px; padding: 4px; border: 0; border-radius: 30px; background: var(--highlight); color: var(--text); position: relative;
}
.scheme-toggle__opt { width: 32px; height: 28px; display: grid; place-items: center; border-radius: 50%; position: relative; z-index: 1; transition: color .2s; }
.scheme-toggle::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.12); transition: transform .25s; }
[data-scheme="dark"] .scheme-toggle::after { transform: translateX(36px); }
.btn--fb { margin-left: 20px; }
.search-pop {
  position: absolute; right: var(--gutter); top: calc(100% + 10px); width: min(480px, calc(100vw - 32px)); padding: 44px 24px 24px;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 220;
}
.search-pop__close { position: absolute; right: 8px; top: 4px; }
.search-form { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: 4px; }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 12px; outline: none; font-size: 16px; }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,166,100,.15); }
.search-form--page { max-width: 560px; margin-top: 18px; }

/* off-canvas */
.offcanvas {
  position: fixed; inset: 0 auto 0 0; width: min(400px, 100vw); z-index: 400; background: var(--surface); display: flex; flex-direction: column; gap: 18px;
  padding: 0 20px 20px; transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; visibility: hidden;
}
.offcanvas.is-open { transform: none; visibility: visible; }
.offcanvas__head { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); border-bottom: 2px solid var(--line); flex: none; }
.offcanvas__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: center; }
.offcanvas-backdrop { position: fixed; inset: 0; background: rgba(20, 20, 40, .45); z-index: 390; }
.m-nav { list-style: none; }
.m-item { border-bottom: 1px solid var(--line); }
.m-row { display: flex; align-items: center; justify-content: space-between; }
.m-row > a { flex: 1; padding: 14px 4px; font-size: 18px; font-weight: 600; }
.m-toggle { width: 44px; height: 44px; border: 0; background: var(--highlight); border-radius: 50%; display: grid; place-items: center; }
.m-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
.m-sub { list-style: none; display: none; padding: 0 0 12px 8px; }
.m-item.is-open > .m-sub { display: block; }
.m-sub a { display: block; padding: 8px 4px; font-size: 16px; }
.m-cat { font-weight: 700; }
.m-kids { list-style: none; padding-left: 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.m-kids a { font-size: 14.5px; color: var(--text-muted); padding: 4px 0; }

/* ---------- hero ---------- */
.home .hero { margin-top: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr); gap: 40px; }
.hero__main { position: relative; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.hero__media { display: block; }
.hero__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.badge--img { position: absolute; top: 20px; left: 20px; }
.hero__body { padding: 28px 36px 34px; }
.hero__title { font-size: 32px; font-weight: 700; line-height: 1.25; margin: 8px 0 10px; letter-spacing: -0.02em; }
.hero__excerpt { font-size: 18px; color: var(--text-muted); line-height: 1.6; }
.hero__side { display: flex; flex-direction: column; }
.card-s { display: flex; gap: 20px; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.card-s:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.card-s__body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-s__title { font-size: 20px; line-height: 1.3; }
.card-s__author { align-self: flex-start; font-size: 13.5px; font-weight: 600; color: var(--accent-ink); line-height: 1.3; margin-bottom: -2px; }
.card-s__author:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-s__media { flex: none; }
.card-s__img { width: 150px; height: 150px; object-fit: cover; border-radius: var(--radius-md); }
.card-s__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }

/* ---------- topics ---------- */
.topics { max-width: 1040px; margin: 64px auto 72px; text-align: center; }
.topics__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pill-lg {
  display: inline-flex; align-items: center; gap: 8px; min-height: 49px; padding: 10px 22px; border-radius: var(--radius-pill);
  background: var(--surface); box-shadow: var(--shadow); font-size: 16px; font-weight: 600; transition: transform .2s, box-shadow .2s;
}
.pill-lg:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pill-lg--sm { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.pill-lg.is-active { background: var(--accent); color: #fff; }
.pill-lg.is-active .count { color: #e6fff4; }

/* ---------- ayojon band ---------- */
.ayojon-band { margin: 0 0 72px; padding: 56px 0 44px; background: linear-gradient(135deg, rgba(0,166,100,.08), rgba(114,114,255,.07)); border-block: 1px solid var(--line); }
.ayojon-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.ayojon-band__title { font-size: 42px; line-height: 1.2; margin: 4px 0 12px; }
.ayojon-band__sub { font-size: 18px; color: var(--text-muted); margin-bottom: 24px; }
.ayojon-band__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 18px; overflow-x: auto; padding: 32px 4px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.ay-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.ay-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
.ay-card__title { font-weight: 700; line-height: 1.35; margin-top: 4px; }
.ay-card__author { font-size: 14px; color: var(--accent-ink); font-weight: 600; }

/* ---------- feed + sidebar ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 56px; align-items: start; margin-bottom: 80px; }
.with-sidebar--top { margin-top: 48px; }
.feed__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.card-h { position: relative; display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 24px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.card-h:last-child { border-bottom: 0; }
.card-h__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); transition: transform .4s; }
.card-h__media { overflow: hidden; border-radius: var(--radius-lg); }
.card-h:hover .card-h__media img, .card-v:hover .card-v__img { transform: scale(1.03); }
.card-h__pills, .card-v__pills { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-h__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card__author, .entry-author, .meta__author { color: var(--accent-ink); font-weight: 600; font-size: 15px; }
.card-h__title { font-size: 24px; line-height: 1.3; letter-spacing: -0.02em; }
.card__excerpt { color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.card__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 6px; }
.card__meta { font-size: 14px; color: var(--text-muted); }
.card__meta .card__author { font-size: 14px; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 40px; }
.widget .sec-label { margin-bottom: 16px; }
.slider { position: relative; }
.slider__track { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.card-o { position: absolute; inset: 0; display: block; color: #fff; }
.card-o:hover { color: #fff; }
.card-o__img { width: 100%; height: 100%; object-fit: cover; }
.card-o__shade { position: absolute; inset: 0; background: var(--overlay); }
.card-o__body { position: absolute; left: 24px; right: 24px; bottom: 44px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.card-o__title { font-size: 22px; font-weight: 700; line-height: 1.3; }
.card-o__author { font-size: 14px; opacity: .85; }
.slider__arrow { position: absolute; top: 40%; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #29294B; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.slider:hover .slider__arrow, .slider__arrow:focus-visible { opacity: 1; }
.slider__arrow--prev { left: 12px; } .slider__arrow--next { right: 12px; }
.slider__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.slider__dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: var(--text-muted); opacity: .4; transition: width .3s, opacity .3s; position: relative; }
.slider__dot::after { content: ""; position: absolute; inset: -10px; }
.slider__dot.is-active { width: 24px; opacity: 1; background: var(--text); }
.mini-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.mini { display: flex; gap: 14px; align-items: center; }
.mini__img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-md); }
.mini__title { display: block; font-weight: 700; line-height: 1.35; }
.mini__author { font-size: 13px; color: var(--accent-ink); }
.ay-mini { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); color: #fff; }
.ay-mini__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ay-mini__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: var(--overlay); font-weight: 700; font-size: 18px; }
.cat-list { list-style: none; }
.cat-list a { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px dashed var(--line); font-weight: 600; }
.widget--cta { background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  background-image: radial-gradient(circle at 100% 0, rgba(255,255,255,.18), transparent 50%); }
[data-scheme="dark"] .widget--cta { background-color: #0E5B3C; }
.cta-mini__title { font-size: 22px; }
.cta-mini__mail { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: #fff; opacity: .95; word-break: break-all; }
.cta-mini__mail:hover { color: #fff; text-decoration: underline; }

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pg { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: var(--radius-md); font-weight: 600; }
.pg:hover { background: var(--highlight); color: var(--text); }
.pg--cur { background: var(--surface); box-shadow: var(--shadow); color: var(--accent-ink); }
.pg--gap { min-width: 24px; }

/* ---------- grids & vertical cards ---------- */
.grid { display: grid; gap: 45px 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-v { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-v__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 6px; }
.card-v__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .4s; }
.card-v__title { font-size: 21px; line-height: 1.32; letter-spacing: -0.02em; }
.grid--4 .card-v__title { font-size: 18px; }
.cat-block, .series-block, .authors-strip { margin-bottom: 80px; }
/* ছবি লোড হওয়ার সময় (বা ছবি না থাকলে) নরম পটভূমিতে ছোট লোগো — ছবি এলে সেটি ঢেকে দেয় */
img[data-lz], .ph { background: var(--highlight) url("../img/logo-placeholder.svg") center / min(24%, 96px) auto no-repeat; }
.ph { display: block; aspect-ratio: 16/9; width: 100%; border-radius: inherit; }
.card-s .ph { width: 150px; height: 150px; aspect-ratio: 1; border-radius: var(--radius-md); background-size: 44px auto; }
.card-s__img[data-lz], .mini__img[data-lz] { background-size: 40% auto; }
.series-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); color: #fff; }
.series-card:hover { color: #fff; }
.series-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.series-card__body { position: absolute; inset: auto 0 0; padding: 48px 20px 18px; background: var(--overlay); display: flex; flex-direction: column; gap: 4px; }
.series-card__name { font-size: 20px; font-weight: 700; }
.series-card__count { font-size: 14px; opacity: .9; }
.authors-strip__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.author-chip { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 8px 16px; border-radius: var(--radius-lg); transition: background .2s, box-shadow .2s; }
.author-chip:hover { background: var(--surface); box-shadow: var(--shadow); }
.author-chip__ring { display: grid; padding: 4px; border-radius: 50%; background: linear-gradient(160deg, var(--accent), #29294B 85%); margin-bottom: 6px; }
.author-chip__ring .avatar { width: 112px; height: 112px; border: 4px solid var(--bg-start); }
.author-chip__name { font-size: 17px; font-weight: 700; line-height: 1.3; }
.author-chip__sub { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 8px; font-size: 13.5px; color: var(--text-muted); line-height: 1.4; }
.author-chip__dot { font-size: 10px; opacity: .7; }
.avatar { border-radius: 50%; object-fit: cover; flex: none; aspect-ratio: 1 / 1; }
.avatar--ph { display: inline-grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 60% 93%), hsl(var(--h) 45% 82%)); color: hsl(var(--h) 40% 26%); font-weight: 600; }
[data-scheme="dark"] .avatar--ph { background: linear-gradient(135deg, hsl(var(--h) 28% 30%), hsl(var(--h) 24% 20%)); color: hsl(var(--h) 60% 88%); }

/* ---------- CTA ---------- */
.cta { margin-bottom: 88px; }
.cta__box { background: var(--accent); color: #fff; border-radius: 24px; padding: 56px; text-align: center; background-image: radial-gradient(circle at 0 0, rgba(255,255,255,.22), transparent 45%), radial-gradient(circle at 100% 100%, rgba(41,41,75,.25), transparent 50%); }
[data-scheme="dark"] .cta__box { background-color: #0E5B3C; }
.cta__title { font-size: 34px; margin-bottom: 12px; }
.cta__text { max-width: 640px; margin: 0 auto 26px; font-size: 18px; opacity: .95; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- breadcrumb ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- single post ---------- */
.entry-header { text-align: center; padding-top: 32px; }
.entry-header .breadcrumb ol { justify-content: center; margin-bottom: 28px; }
.entry-title { font-size: 40px; line-height: 1.25; max-width: 920px; margin: 10px auto 12px; letter-spacing: -0.02em; }
.entry-subtitle { font-size: 20px; color: var(--text-muted); max-width: 760px; margin: 0 auto 10px; }
.entry-translator { color: var(--text-muted); font-weight: 600; }
.entry-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--text-muted); margin-top: 12px; }
.entry-meta span { display: inline-flex; align-items: center; gap: 6px; }
.entry-ayojon { margin-top: 10px; font-size: 14px; }
.entry-ayojon a { color: var(--accent-ink); font-weight: 600; }
.entry-cover { margin: 28px 0 0; }
.entry-cover__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.entry-cover figcaption { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.entry-layout { display: grid; grid-template-columns: minmax(0, var(--reading)) 1fr; gap: 56px; margin-top: 40px; align-items: start; }
.entry-layout > .sidebar { justify-self: end; width: 100%; max-width: 370px; }
.entry-rail { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; align-items: center; }
.share { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.share__label { font-size: 12px; color: var(--text-muted); letter-spacing: .05em; }
.share__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); border: 0; color: var(--text); transition: transform .15s, color .2s; }
.share__btn:hover { color: var(--accent); transform: translateY(-2px); }
.share--inline-wrap { display: none; }
.font-tools { display: flex; flex-direction: column; gap: 4px; padding: 6px; background: var(--highlight); border-radius: 24px; }
.font-tools button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; font-weight: 700; font-size: 14px; }
.font-tools button:hover { background: var(--surface); }
.entry-main { min-width: 0; }

/* article typography */
.entry-content { font-size: var(--read-size); line-height: 1.9; overflow-wrap: break-word; hyphens: manual; display: flow-root; }
.entry-content > * + * { margin-top: 0; }
/* :where() দিয়ে নিচু অগ্রাধিকার — অনুচ্ছেদ স্টাইল (.ps-*) ও ইনলাইন সারিবদ্ধতা এগুলোকে বদলাতে পারে */
:where(.entry-content) p { margin: 0 0 1.6em; }
:where(.entry-content) :where(p, li, blockquote) { text-align: justify; text-justify: inter-word; }
:where(.entry-content.no-justify) :where(p, li, blockquote) { text-align: left; }
.card__excerpt, .hero__excerpt, .archive-desc, .author-box__bio, .footer__desc, .editor-card + p, .ay-card__title { text-align: justify; text-justify: inter-word; }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { margin: 1.8em 0 .7em; line-height: 1.4; }
.entry-content h2 { font-size: 1.45em; }
.entry-content h3 { font-size: 1.25em; }
.entry-content h4 { font-size: 1.1em; }
.entry-content h5, .entry-content h6 { font-size: 1em; }
.entry-content a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.entry-content a:hover { text-decoration-color: var(--accent); }
.entry-content ul, .entry-content ol { margin: 0 0 1.6em; padding-left: 1.6em; }
.entry-content li { margin-bottom: .4em; }
.entry-content ol[style*="bengali"], .entry-content ol.bn-num { list-style-type: bengali; }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 2em 0; padding: 1.2em 1.6em; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; box-shadow: var(--shadow); color: var(--text-muted); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6em; font-size: .9em; font-style: normal; color: var(--accent-ink); }
/* ---------- লেখার ভেতরের ছবি: আকার, অবস্থান ও ক্যাপশন (লেখা ছবির পাশ দিয়ে ঘুরে যায়) ---------- */
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content figure { margin: 2em 0; }
.entry-content figure.image { display: table; max-width: 100%; margin: 2em auto; }
.entry-content figure.image > img { display: block; max-width: 100%; height: auto; margin: 0; }
.entry-content figcaption { font-size: .85em; text-align: center; color: var(--text-muted); margin-top: .6em; line-height: 1.5; }
.entry-content figure.image > figcaption { display: table-caption; caption-side: bottom; text-align: center; }
.entry-content figure.align-left, .entry-content figure.alignleft, .entry-content img.alignleft, .entry-content img[style*="float: left"] { float: left; margin: .4em 1.8em 1em 0; max-width: 60%; }
.entry-content figure.align-right, .entry-content figure.alignright, .entry-content img.alignright, .entry-content img[style*="float: right"] { float: right; margin: .4em 0 1em 1.8em; max-width: 60%; }
.entry-content figure.align-center, .entry-content figure.aligncenter { float: none; margin: 2em auto; }
.entry-content img.aligncenter { display: block; float: none; margin: 2em auto; }
.entry-content figure.image.align-left > img, .entry-content figure.image.align-right > img { max-width: 100%; }
.entry-content hr, .entry-content .wp-block-separator { border: 0; height: auto; margin: 2.4em 0; text-align: center; color: var(--accent); }
.entry-content hr::before { content: "✻ ✻ ✻"; letter-spacing: .6em; font-size: .9em; }
.entry-content .table-wrap { overflow-x: auto; margin: 2em 0; -webkit-overflow-scrolling: touch; }
.entry-content table { border-collapse: collapse; min-width: 100%; font-size: .92em; line-height: 1.6; }
.entry-content table:not([class*="ts-"]) td, .entry-content table:not([class*="ts-"]) th { border: 1px solid var(--line); padding: .55em .8em; vertical-align: top; }
.entry-content table:not([class*="ts-"]) th { background: var(--highlight); }
.entry-content caption { caption-side: top; font-weight: 700; padding-bottom: .5em; text-align: left; }
.entry-content sup, .entry-content sub { line-height: 0; }
.entry-content mark { background: linear-gradient(transparent 55%, #CCEDE0 55%); color: inherit; }
.entry-content details { margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; padding: .8em 1.2em; background: var(--surface); }
.entry-content details summary { cursor: pointer; font-weight: 700; }
.entry-content .has-text-align-center, .entry-content p[style*="text-align: center"] { text-align: center; }
.entry-content .has-text-align-right { text-align: right; }
.entry-content .wp-block-image { margin: 2em 0; }
.entry-content .wp-block-pullquote { border-block: 3px solid var(--line); padding: 1.6em 0; text-align: center; font-size: 1.2em; color: var(--accent-ink); }
.entry-content .wp-block-columns { display: flex; gap: 2em; }
.entry-content .wp-block-column { flex: 1; min-width: 0; }
.entry-content iframe, .entry-content video { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 12px; }
.entry-content .k-cols-2 { column-count: 2; column-gap: 2.4em; column-rule: 1px solid var(--line); }
.entry-content .k-cols-3 { column-count: 3; column-gap: 2em; column-rule: 1px solid var(--line); }
.entry-content .k-box { background: var(--highlight); border-radius: var(--radius-lg); padding: 1.4em 1.6em; margin: 2em 0; }
.entry-content .k-box > :last-child { margin-bottom: 0; }
.has-dropcap > p:first-of-type::first-letter,
.entry-content .dropcap-2::first-letter, .entry-content .dropcap-3::first-letter, .entry-content .dropcap-4::first-letter {
  float: left; font-weight: 700; color: var(--accent); line-height: .9; padding: .06em .14em 0 0;
}
.has-dropcap > p:first-of-type::first-letter, .entry-content .dropcap-3::first-letter { font-size: 3.7em; }
.entry-content .dropcap-2::first-letter { font-size: 2.6em; }
.entry-content .dropcap-4::first-letter { font-size: 4.9em; }
.fn-ref a { text-decoration: none !important; font-size: .75em; padding: 0 .15em; color: var(--accent-ink); font-weight: 700; }
.footnotes { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: .88em; line-height: 1.7; }
.footnotes__title { font-size: 1.1em; margin: 0 0 .8em !important; }
.footnotes ol { list-style-type: bengali; }
.fn-back { text-decoration: none !important; }
.toc { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 32px; }
.toc__title { font-weight: 700; margin-bottom: 10px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.toc__l3 { padding-left: 16px; }
.toc a:hover, .toc a.is-current { color: var(--accent-ink); }
.toc a.is-current { font-weight: 700; }

.series-nav { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px 24px; margin: 0 0 36px; }
.entry-content + .series-nav { margin-top: 36px; }
.series-nav__label { font-weight: 700; margin-bottom: 10px; }
.series-nav__label a { color: var(--accent-ink); }
.series-nav__list { padding-left: 1.4em; list-style-type: bengali; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.series-nav__list li[aria-current] { font-weight: 700; color: var(--accent-ink); }
.series-nav__pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

.entry-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 15px; }
.entry-footer__cats, .entry-footer__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 14px; color: var(--text-muted); }
/* লেখার নিচে লেখক পরিচিতি */
.author-box { margin-top: 44px; padding: 28px 32px 30px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.author-box__label { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--accent-ink); margin: 0 0 22px; }
.author-box__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.author-box__label--sm { margin: 26px 0 12px; color: var(--text-muted); }
.author-box__who { display: flex; align-items: center; gap: 18px; }
.author-box__who .avatar { width: 84px; height: 84px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.author-box__name { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }
.author-box__profile { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--text-muted); }
.author-box__profile:hover { color: var(--accent-ink); }
.author-box__bio { margin-top: 20px; font-size: 16.5px; line-height: 1.9; color: var(--text-muted); text-align: justify; }
.author-box__more { list-style: none; display: flex; flex-direction: column; }
.author-box__more li { border-top: 1px solid var(--line); }
.author-box__more a { display: block; padding: 10px 2px; font-weight: 600; }
.author-box__more a:hover { color: var(--accent-ink); }
.comments { margin-top: 40px; text-align: center; }
.comments__body { margin-top: 24px; text-align: left; }
.comment-fallback { text-align: center; color: var(--text-muted); display: flex; flex-direction: column; gap: 14px; }
.comment-fallback .btn { margin: 4px; }
.read-next { margin-top: 80px; margin-bottom: 80px; padding-top: 48px; border-top: 1px solid var(--line); }
.read-next__title { font-size: 26px; margin-bottom: 28px; }

/* ---------- archive ---------- */
.archive { padding-top: 32px; padding-bottom: 80px; }
.archive-header { padding: 24px 0 40px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.archive-title { font-size: 34px; letter-spacing: -0.02em; }
.archive-desc { margin-top: 10px; color: var(--text-muted); max-width: 680px; font-size: 17px; }
.archive-kids { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
/* লেখক প্রোফাইল */
.author-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; padding: 40px 0 64px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.author-hero__ring { padding: 9px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); }
.author-hero__ring .avatar { display: grid; width: 144px; height: 144px; }
.author-hero__kicker { font-size: 13px; letter-spacing: .12em; color: var(--accent-ink); font-weight: 600; margin-bottom: 10px; }
.author-hero__name { font-size: 46px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 18px; }
.author-hero__bio { max-width: 680px; font-size: 17px; line-height: 1.9; color: var(--text-muted); text-align: justify; }
.author-stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); max-width: 680px; }
.author-stats div { display: flex; flex-direction: column; gap: 2px; }
.author-stats dt { font-size: 13px; color: var(--text-muted); }
.author-stats dd { margin: 0; font-size: 21px; font-weight: 700; }
.author-hero__social { display: flex; gap: 8px; margin-top: 22px; }
.author-works { margin-bottom: 8px; }
.author-works .sec-head { margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip-btn { padding: 8px 16px; min-height: 40px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: transparent; font-size: 15px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-btn.is-active .count { color: #e6fff4; }
.card-v[hidden] { display: none; }
.filter-input { margin-top: 18px; width: min(420px, 100%); padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.author-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.author-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 18px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: transform .2s; }
.author-card:hover { transform: translateY(-3px); }
.author-card__name { font-size: 18px; font-weight: 700; }
.author-card__bio { font-size: 14px; color: var(--text-muted); }
.author-card__count { font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.topic-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.topic-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.topic-card__body { padding: 22px 24px 26px; }
.topic-card__title { font-size: 22px; }
.topic-card__kids { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 15px; }
.topic-card__kids a { color: var(--accent-ink); font-weight: 600; }

/* ---------- static pages ---------- */
.page { padding-top: 32px; padding-bottom: 72px; }
.page-hero { text-align: center; padding: 24px 0 32px; }
.page-title { font-size: 40px; letter-spacing: -0.02em; }
.page-lead { margin-top: 10px; font-size: 19px; color: var(--text-muted); }
.page-banner { margin: 0 auto 48px; max-width: 1000px; }
.page-banner--small { max-width: 640px; }
.page-banner__img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.entry-content--page { max-width: 760px; margin: 0 auto; }
.meanings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto 56px; }
.meaning { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; text-align: center; }
.meaning__icon { font-size: 30px; color: var(--accent); display: block; margin-bottom: 8px; }
.meaning__title { font-size: 20px; margin-bottom: 8px; color: var(--accent-ink); }
.meaning p { color: var(--text-muted); }
.about-cats { margin: 64px auto 0; max-width: 1000px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-mini { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 18px 20px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); font-weight: 700; }
.topic-mini__icon { font-size: 22px; }
.editor-card { max-width: 480px; margin: 56px auto 0; text-align: center; padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.editor-card__name { font-size: 26px; margin-bottom: 6px; }
.editor-card a { color: var(--accent-ink); }
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; max-width: 1080px; margin: 0 auto; }
.guide-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.guide-layout .entry-content--page { margin: 0; }
.page--guide .entry-content h2 { padding-top: .4em; border-top: 1px solid var(--line); color: var(--accent-ink); }
.mail-cta { margin-top: 40px; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.mail-cta__mail { font-size: 26px; font-weight: 700; color: var(--accent-ink); margin-bottom: 18px; word-break: break-all; }
.ay-editorial { margin-bottom: 56px; }
.ay-posts, .ay-archive { margin-bottom: 80px; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 72px 24px 96px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nf__icon { width: 120px; height: 120px; display: grid; place-items: center; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); color: var(--accent); }
.nf__title { font-size: 36px; }
.nf__text { color: var(--text-muted); max-width: 520px; }
.nf .search-form { width: min(520px, 100%); }
.nf__latest { margin-top: 40px; text-align: left; width: 100%; }

/* ---------- footer ---------- */
.site-footer { padding: 0 0 32px; }
.site-footer > .container { border-top: 1px solid var(--line); padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__title { font-size: 16px; margin-bottom: 16px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer__cats { display: grid !important; grid-template-columns: 1fr 1fr; }
.footer__desc { font-size: 14px; color: var(--text-muted); margin-top: 12px; max-width: 410px; }
.footer__desc a, .footer__mail { color: var(--accent-ink); font-weight: 600; }
.footer__mail { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 15px; word-break: break-all; }
.footer__social { display: flex; gap: 8px; margin-top: 18px; }
.social { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-muted); }

/* ---------- misc ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s; z-index: 150;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top__ring { position: absolute; inset: 0; width: 48px; height: 48px; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; transition: stroke-dashoffset .1s linear; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--text); color: var(--bg-start); padding: 12px 20px; border-radius: var(--radius-md); z-index: 500; font-size: 15px; box-shadow: var(--shadow-lg); }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .entry-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .card-h { grid-template-columns: 320px minmax(0, 1fr); }
  .authors-strip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .nav, .header-tools .btn--fb, .header-tools__sep, .header-tools .scheme-toggle { display: none; }
  .hamburger { display: inline-grid; }
  .site-header__inner { justify-content: space-between; }
  .site-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .site-logo img, .site-logo .logo { width: 84px; height: 49px; }
  .offcanvas .site-logo { position: static; transform: none; }
  .home .hero { grid-template-columns: 1fr; }
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .entry-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
  .entry-rail { position: static; flex-direction: row; justify-content: space-between; order: 2; }
  .entry-rail .share { flex-direction: row; }
  .entry-layout > .sidebar { order: 3; max-width: none; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-h__title { font-size: 22px; }
  .ayojon-band__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .author-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meanings, .topic-grid { grid-template-columns: 1fr 1fr; }
  .mega { display: none; }
}
@media (max-width: 767.98px) {
  :root { --read-size: 17px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .entry-title, .page-title { font-size: 28px; }
  .archive-title { font-size: 28px; }
  .entry-content figure.align-left, .entry-content figure.align-right, .entry-content figure.alignleft, .entry-content figure.alignright, .entry-content img.alignleft, .entry-content img.alignright, .entry-content img[style*="float"] { float: none; max-width: 100%; margin: 1.4em auto; }
  .entry-content img.alignleft, .entry-content img.alignright, .entry-content img[style*="float"] { display: block; }
  .entry-content .k-cols-2, .entry-content .k-cols-3, .entry-content .ps-two-col { column-count: 1; }
  .entry-content .wp-block-columns { flex-direction: column; }
  .sidebar { grid-template-columns: 1fr; }
  .authors-strip__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .author-grid { grid-template-columns: 1fr 1fr; }
  .author-hero { grid-template-columns: 1fr; gap: 28px; text-align: center; justify-items: center; padding: 16px 0 44px; }
  .author-hero__name { font-size: 34px; }
  .author-stats, .author-hero__social { justify-content: center; }
  .ayojon-band__title { font-size: 32px; }
  .cta__box { padding: 40px 24px; }
  .cta__title { font-size: 26px; }
  .meanings, .topic-grid { grid-template-columns: 1fr; }
  .author-box { padding: 22px 20px 24px; }
  .author-box__who { gap: 14px; }
}
@media (max-width: 575.98px) {
  .home .hero { margin-top: 24px; padding-bottom: 40px; gap: 32px; }
  .hero__body { padding: 20px 20px 24px; }
  .hero__title { font-size: 25px; }
  .hero__excerpt { font-size: 16px; }
  .card-s { flex-direction: column-reverse; gap: 14px; }
  .card-s__img, .card-s .ph { width: 100%; height: auto; aspect-ratio: 16/9; }
  .card-h { grid-template-columns: 1fr; gap: 16px; padding-bottom: 32px; margin-bottom: 32px; }
  .card-h .btn { width: 100%; }
  .topics { margin: 44px auto 48px; }
  .pill-lg { min-height: 44px; padding: 8px 16px; font-size: 15px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .authors-strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-grid { grid-template-columns: 1fr; }
  .entry-meta { gap: 6px 14px; }
  .to-top { right: 16px; bottom: 16px; }
  .sec-head__title { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .sidebar, .entry-rail, .comments, .read-next, .to-top, .read-progress, .share--inline-wrap { display: none !important; }
  .entry-layout { display: block; }
  body { background: #fff; color: #000; }
}

.author-chip .avatar, .author-card .avatar { align-self: center; margin-inline: auto; }

/* ---------- মুখপাতার ব্যানার-স্লাইডার (অ্যাডমিন থেকে নিয়ন্ত্রিত) ---------- */
.banner-slider { margin-top: 28px; }
.banner-slider .slider__track { aspect-ratio: var(--bn-d, 3/1); border-radius: var(--radius-lg); background: var(--highlight); }
.banner-slider .slide > a, .banner-slider .slide > div { display: block; width: 100%; height: 100%; }
.banner-slider .slide picture, .banner-slider .slide img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.banner-slider .slider__arrow { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 16px rgba(41, 41, 75, .18); opacity: 0; transition: opacity .2s, transform .2s; }
.banner-slider .slider:hover .slider__arrow, .banner-slider .slider__arrow:focus-visible { opacity: 1; }
.banner-slider .slider__arrow:hover { transform: translateY(-50%) scale(1.06); }
.banner-slider .slider__arrow--prev { left: 16px; }
.banner-slider .slider__arrow--next { right: 16px; }
.banner-slider .slider__dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 7px 12px; border-radius: 99px; background: rgba(41, 41, 75, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); gap: 7px; }
.banner-slider .slider__dot { background: #fff; opacity: .55; }
.banner-slider .slider__dot.is-active { width: 24px; opacity: 1; background: #fff; }
.slider__count { position: absolute; right: 16px; bottom: 14px; padding: 4px 14px; border-radius: 99px; background: rgba(41, 41, 75, .5); color: #fff; font-size: 13.5px; font-weight: 600; backdrop-filter: blur(6px); }
.banner-slider + .hero { margin-top: 40px; }
@media (max-width: 640px) {
  .banner-slider { margin-top: 16px; }
  .banner-slider .slider__track { border-radius: 12px; }
  .banner-slider .slider__arrow { display: none; }
  .banner-slider .slider__dots { bottom: 10px; padding: 5px 10px; }
}

/* ---------- বিজ্ঞাপন-স্লাইডার (মুখপাতার মাঝখানে) ---------- */
.ad-slider { max-width: 988px; margin: 64px auto 72px; }
.ad-slider .slider__track { border-radius: 12px; box-shadow: 0 4px 18px rgba(114, 114, 255, .12); border: 1px solid var(--line); }
.ad-slider__tag { position: absolute; top: 10px; left: 10px; z-index: 3; padding: 2px 10px; border-radius: 6px; background: rgba(255, 255, 255, .88); color: var(--text-muted); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; pointer-events: none; }
[data-scheme="dark"] .ad-slider__tag { background: rgba(0, 0, 0, .55); color: #ddd; }
.ad-slider .slider__arrow { width: 38px; height: 38px; }
@media (max-width: 640px) { .ad-slider { margin: 40px auto 48px; } }

/* ---------- পরিচ্ছন্ন ফুটার: লোগো | স্বত্ব-বার্তা | সম্পাদক ---------- */
.site-footer { margin-top: 24px; }
.site-footer > .container { border-top: 1px solid var(--line); padding-top: 0; }
.footer__row { display: grid; grid-template-columns: 1fr minmax(0, 1.6fr) 1fr; gap: 40px; align-items: center; padding: 44px 0 40px; }
.footer__logo img { width: 100px; height: auto; aspect-ratio: 824 / 484; }
.footer__notice { text-align: center; font-size: 14.5px; line-height: 1.8; color: var(--text); }
.footer__copy { margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.footer__editor { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.footer__editor-label { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.footer__editor-name { font-size: 14.5px; color: var(--text-muted); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; padding: 0 0 36px; font-size: 14.5px; color: var(--text-muted); }
.footer__links a:hover { color: var(--accent-ink); }
@media (max-width: 767.98px) {
  .footer__row { grid-template-columns: 1fr; gap: 22px; padding: 36px 0 32px; justify-items: center; text-align: center; }
  .footer__editor { align-items: center; text-align: center; }
  .footer__editor-label { font-size: 22px; }
}

/* ---------- সর্বশেষ লেখার গ্রিড-কার্ড ---------- */
.card-g { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-g__media { display: block; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-g__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .45s; }
.card-g:hover .card-g__img { transform: scale(1.04); }
.card-g__body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-g__cat { font-size: 13.5px; font-weight: 600; color: var(--accent-ink); line-height: 1.3; }
.card-g__cat a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-g__title { font-size: 20px; line-height: 1.38; letter-spacing: -0.02em; }
.card-g .card__excerpt { font-size: 15px; line-height: 1.7; }
.card-g__by { margin-top: auto; padding-top: 6px; font-size: 13.5px; color: var(--text-muted); }
.card-g__by .card__author { font-size: 13.5px; }
@media (max-width: 575.98px) { .feed__list { grid-template-columns: 1fr; gap: 36px; } }

.footer__copy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.footer__copy-logo { height: 22px; width: auto; aspect-ratio: 824 / 484; display: inline-block; }

/* ---------- ৩ কলামের সেকশন + 'আরও দেখুন' ---------- */
.feed-wrap { margin-bottom: 80px; }
.feed-wrap--top { margin-top: 48px; }
.cat-block .feed__list { margin-top: 4px; }
.more-grid:not(.is-open) > :nth-child(n+7) { display: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 36px; }
@media (max-width: 767.98px) {
  .feed__list.more-grid, .grid--3.more-grid { grid-template-columns: 1fr; }
  .more-grid:not(.is-open) > :nth-child(n+4) { display: none; }
  .more-wrap--m { display: flex; }
}
@media (min-width: 768px) { .more-wrap--m { display: none; } }
@media (min-width: 576px) and (max-width: 767.98px) { .feed__list.more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- ফুটার: লোগোর নিচে সোশ্যাল আইকন + মোবাইল ঠিক করা ---------- */
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer__logo, .footer__brand .site-logo { position: static; transform: none; }
.footer__logo img { width: 100px; height: auto; max-width: 100%; }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.social-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); color: var(--text); transition: transform .2s; }
.social-ico:hover { transform: translateY(-2px); }
.social-ico svg { display: block; }
@media (max-width: 767.98px) {
  .footer__brand { align-items: center; }
  .footer__social { justify-content: center; }
  .footer__row { padding-bottom: 96px; }
  .footer__copy { flex-wrap: wrap; row-gap: 4px; }
}

.more-btn { border: 1.5px solid var(--accent-ink); color: var(--accent-ink); background: transparent; padding: 10px 28px; border-radius: 999px; font-weight: 600; }
.more-btn:hover { background: var(--accent-ink); color: #fff; }
.archive .feed__list { margin-top: 8px; }

.card-g__img { transition: transform .6s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.card-g:hover .card-g__img { transform: scale(1.06); }

/* ---------- মোবাইলে লেখক পরিচিতি: এক লাইনে, আঙুলে স্মুথ টানা (যেখানে ছাড়বেন সেখানেই থাকবে) ---------- */
@media (max-width: 767.98px) {
  .authors-strip__list {
    display: flex; grid-template-columns: none; gap: 6px;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: none;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y;
    margin: 0 calc(var(--gutter, 20px) * -1); padding: 4px var(--gutter, 20px) 10px;
    scrollbar-width: none;
  }
  .authors-strip__list::-webkit-scrollbar { display: none; }
  .authors-strip__list .author-chip { flex: 0 0 132px; min-width: 0; }
  .author-chip__ring .avatar { width: 96px; height: 96px; }
}

/* ---------- আধুনিক মন্তব্য ---------- */
.cm { margin-top: 56px; text-align: left; }
.cm__title { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 18px; display: flex; align-items: baseline; gap: 8px; }
.cm__count { font-size: 18px; color: var(--text-muted); font-weight: 600; }
.cm__form { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.cm__label { font-weight: 700; font-size: 15px; }
.cm__form textarea, .cm__name { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg-start, #fff); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.cm__form textarea { min-height: 112px; resize: vertical; line-height: 1.7; }
.cm__form textarea:focus, .cm__name:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.cm__row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.cm__name { flex: 1 1 220px; width: auto; }
.cm__send { flex: 0 0 auto; }
.cm__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cm__hint { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }
.cm__msg { font-size: 14.5px; line-height: 1.7; }
.cm__msg:empty { display: none; }
.cm__msg.is-ok { color: var(--accent-ink); font-weight: 600; }
.cm__msg.is-err { color: #c0392b; font-weight: 600; }
.cm__list { display: flex; flex-direction: column; margin-top: 28px; }
.cm__item { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cm__item.is-pending { background: color-mix(in srgb, var(--highlight) 55%, transparent); margin: 0 -14px; padding: 20px 14px; border-radius: var(--radius-md); border-bottom: 0; }
.cm__avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #fff; background: linear-gradient(160deg, var(--accent), #29294B 90%); }
.cm__avatar.is-anon { background: var(--text-muted); }
.cm__body { min-width: 0; flex: 1; }
.cm__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13.5px; }
.cm__who { font-size: 15.5px; }
.cm__who.is-anon { color: var(--text-muted); font-weight: 600; }
.cm__time { color: var(--text-muted); }
.cm__badge { padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--highlight); color: var(--accent-ink); }
.cm__text { margin-top: 6px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
.cm__reply { margin-top: 12px; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--surface); }
.cm__reply-who { font-size: 13.5px; color: var(--accent-ink); }
.cm__reply p { margin-top: 4px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm__empty { color: var(--text-muted); text-align: center; padding: 28px 0; }
@media (max-width: 575.98px) { .cm__form { padding: 16px; } .cm__send { width: 100%; } }

/* ---------- লেখার আকার: আধুনিক জুম-বোতাম ---------- */
.font-tools { gap: 2px; padding: 8px 6px; width: 56px; align-items: center; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.font-tools__label { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: .02em; padding-bottom: 2px; }
.font-tools button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--text); transition: background .2s, color .2s, transform .15s; }
.font-tools button:hover { background: var(--highlight); color: var(--accent-ink); }
.font-tools button:active { transform: scale(.92); }
.font-tools button:disabled { opacity: .35; pointer-events: none; }
.font-tools .font-tools__val { height: 30px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--highlight); margin: 2px 0; }
.font-tools .font-tools__val:hover { background: var(--accent); color: #fff; }
@media (max-width: 991.98px) { .font-tools { flex-direction: row; width: auto; padding: 6px 10px; } .font-tools__label { padding: 0 4px 0 2px; } .font-tools button { width: 36px; height: 36px; } .font-tools .font-tools__val { width: 56px; height: 30px; } }

/* ---------- ডানে: লেখকের আরও লেখা ---------- */
.more-by { padding: 22px 20px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.more-by__head { font-size: 17px; line-height: 1.4; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.more-by__list { list-style: none; display: flex; flex-direction: column; }
.more-by__item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.more-by__item:last-child { border-bottom: 0; }
.more-by__media { flex: none; overflow: hidden; border-radius: var(--radius-md); }
.more-by__img { width: 76px; height: 76px; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.more-by__item:hover .more-by__img { transform: scale(1.07); }
.more-by__txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.more-by__title { font-weight: 700; line-height: 1.4; font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-by__title:hover { color: var(--accent-ink); }
.more-by__meta { font-size: 12.5px; color: var(--text-muted); }
.more-by__all { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }

/* ---------- মিনিমাল লেখার-আকার বোতাম (শেয়ার বোতামের মতোই) ---------- */
.entry-rail .font-tools { flex-direction: column; gap: 8px; width: auto; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; align-items: center; }
.entry-rail .font-tools button { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); border: 0; color: var(--text); display: grid; place-items: center; transition: transform .15s, color .2s; }
.entry-rail .font-tools button:hover { color: var(--accent); transform: translateY(-2px); background: var(--surface); }
.entry-rail .font-tools button:disabled { opacity: .3; transform: none; }
.entry-rail .font-tools .font-tools__val { width: auto; height: auto; padding: 2px 8px; border-radius: 999px; background: none; box-shadow: none; font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.entry-rail .font-tools .font-tools__val:hover { background: var(--highlight); color: var(--accent-ink); transform: none; }
.entry-rail .font-tools .font-tools__val[hidden] { display: none; }
@media (max-width: 991.98px) { .entry-rail .font-tools { flex-direction: row; } }
.cm__demo { font-size: 13px; color: #8a6d00; background: #fff6d6; border-radius: var(--radius-md); padding: 8px 12px; line-height: 1.7; }

/* ---------- কমপ্যাক্ট হেডার: নিচে স্ক্রল করলে এক লাইনের মেনু + আলো/আঁধার; ওপরে স্ক্রল করলে পুরো হেডার ---------- */
:root { --header-full: 88px; --header-compact: 56px; }
body { padding-top: var(--header-full); }
.site-header { position: fixed; top: 0; left: 0; right: 0; transition: height .32s cubic-bezier(.22,.61,.36,1), box-shadow .32s, background .32s; }
.site-header.is-hidden { transform: none; }
html.hdr-compact { --header-h: var(--header-compact); }
.site-header.is-compact { height: var(--header-compact); box-shadow: 0 8px 28px rgba(41, 41, 75, .10); border-bottom-color: transparent; }
.site-header.is-compact .site-logo,
.site-header.is-compact [data-search-open],
.site-header.is-compact .header-tools__sep,
.site-header.is-compact .btn--fb,
.site-header.is-compact .search-pop { display: none !important; }
.site-header.is-compact .nav__link { height: 36px; font-size: 15.5px; padding: 0 12px; }
.site-header.is-compact .nav { animation: hdr-in .35s ease both; }
.site-header.is-compact .header-tools { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }
.site-header.is-compact .scheme-toggle { width: 64px; height: 32px; }
.site-header.is-compact .scheme-toggle__opt { width: 28px; height: 24px; }
.site-header.is-compact .scheme-toggle::after { width: 24px; height: 24px; }
[data-scheme="dark"] .site-header.is-compact .scheme-toggle::after { transform: translateX(32px); }
@keyframes hdr-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* একাধিক লিংক আছে এমন মেনুর পাশে স্পষ্ট ড্রপডাউন-চিহ্ন */
.nav__item.has-sub > .nav__link .i { opacity: 1; width: 18px; height: 18px; padding: 2px; margin-left: 2px; border-radius: 50%; background: var(--highlight); color: var(--accent-ink); transition: transform .25s, background .2s, color .2s; }
.nav__item.has-sub:hover > .nav__link .i, .nav__item.has-sub.is-open > .nav__link .i { background: var(--accent); color: #fff; }
.nav__item.is-active.has-sub > .nav__link .i { background: rgba(255, 255, 255, .22); color: #fff; }
.site-header.is-compact .dropdown, .site-header.is-compact .mega { top: calc(100% + 8px); }

@media (max-width: 991.98px) {
  .site-header.is-compact .site-header__inner { justify-content: flex-start; gap: 6px; padding-right: calc(var(--gutter) + 72px); }
  .site-header.is-compact .nav { display: flex; flex: 1; min-width: 0; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .site-header.is-compact .nav::-webkit-scrollbar { display: none; }
  .site-header.is-compact .nav__list { flex-wrap: nowrap; padding-right: 24px; }
  .site-header.is-compact .nav__link { height: 34px; font-size: 15px; padding: 0 10px; white-space: nowrap; }
  .site-header.is-compact .dropdown, .site-header.is-compact .mega { display: none !important; }
  .site-header.is-compact .header-tools .scheme-toggle { display: inline-flex; }
  .site-header.is-compact .hamburger { width: 38px; height: 38px; }
}
@media print { body { padding-top: 0; } }

/* ---------- মোবাইলে শেয়ার: নিচে ভাসমান বার + লেখার শেষে শেয়ার-কার্ড ---------- */
.m-bar, .share-end { display: none; }
@media (max-width: 991.98px) {
  .entry-rail { display: none !important; }
  .m-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 2px;
    position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 160;
    width: min(440px, calc(100vw - 24px)); padding: 6px 8px; border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border: 1px solid var(--line); box-shadow: 0 10px 34px rgba(41, 41, 75, .18);
    transform: translate(-50%, calc(100% + 30px)); opacity: 0; visibility: hidden; transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .25s, visibility .35s;
  }
  .m-bar.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
  .m-bar__btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; transition: background .2s, transform .15s; }
  .m-bar__btn:active { transform: scale(.9); background: var(--highlight); }
  .m-bar__btn:disabled { opacity: .3; }
  .m-bar__share { width: auto; padding: 0 14px 0 12px; display: inline-flex; gap: 6px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14.5px; }
  .m-bar__share:active { background: var(--accent-ink); }
  .m-bar__sep { width: 1px; height: 24px; background: var(--line); margin: 0 2px; }
  body.mbar-on .to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

  .share-end { display: block; margin-top: 28px; padding: 20px 18px; text-align: center; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .share-end__title { font-weight: 700; font-size: 16px; margin-bottom: 14px; }
  .share-end__row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
  .share-end__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-start, #fff); color: var(--text); display: grid; place-items: center; transition: transform .15s; }
  .share-end__btn:active { transform: scale(.92); }
}
@media print { .m-bar, .share-end { display: none !important; } }

/* ---------- মোবাইলে তারিখের পাশে ছোট A− / A+ ---------- */
.entry-meta .fs-inline { display: none; }
@media (max-width: 991.98px) {
  .m-bar { display: none !important; }
  .entry-meta .fs-inline { display: inline-flex; gap: 0; align-items: center; height: 34px; padding: 0 2px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
  .fs-inline button { width: 38px; height: 32px; border: 0; background: none; color: var(--text); display: grid; place-items: center; border-radius: 999px; }
  .fs-inline button svg { width: 18px; height: 18px; }
  .fs-inline button:active { background: var(--highlight); color: var(--accent-ink); }
  .fs-inline button:disabled { opacity: .3; }
  .fs-inline__sep { width: 1px; height: 16px; background: var(--line); }
}

/* ---------- ফুটার: নিচের বাড়তি ফাঁকা কমানো, সোশ্যাল আইকন ছোট ---------- */
.site-footer { padding-bottom: 0; margin-top: 16px; }
.footer__row { padding: 32px 0 26px; }
.footer__brand { gap: 10px; }
.social-ico { width: 30px; height: 30px; box-shadow: 0 2px 8px rgba(41, 41, 75, .08); }
.social-ico svg { width: 15px; height: 15px; }
.footer__social { gap: 8px; }
@media (max-width: 767.98px) {
  .footer__row { padding: 28px 0 24px; gap: 16px; }
}

/* ---------- অটো-স্ক্রল: "উপরে যান"-এর ঠিক ওপরে, সবসময় চোখের সামনে ---------- */
.autoscroll { position: fixed; right: 24px; bottom: 84px; z-index: 155; display: flex; align-items: center; gap: 10px; }
.autoscroll__fab {
  position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow); transition: background .25s, color .25s, transform .15s, box-shadow .25s;
}
.autoscroll__fab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(41, 41, 75, .16); }
.autoscroll__fab:active { transform: scale(.94); }
.autoscroll__fab .as-ico--pause { display: none; }
.autoscroll.is-running .autoscroll__fab { background: var(--accent); color: #fff; }
.autoscroll.is-running .autoscroll__fab .as-ico--play { display: none; }
.autoscroll.is-running .autoscroll__fab .as-ico--pause { display: block; }
.autoscroll.is-running .autoscroll__fab::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); opacity: .5; animation: as-pulse 1.8s ease-out infinite; }
@keyframes as-pulse { from { transform: scale(.92); opacity: .55; } to { transform: scale(1.25); opacity: 0; } }
.autoscroll__tip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; pointer-events: none;
  padding: 5px 10px; border-radius: 8px; background: var(--text); color: var(--bg-start, #fff); font-size: 12.5px; font-weight: 600; opacity: 0; transition: opacity .2s, transform .2s;
}
.autoscroll__fab:hover .autoscroll__tip { opacity: 1; transform: translate(0, -50%); }
.autoscroll.has-panel .autoscroll__tip { display: none; }
.autoscroll__panel {
  display: flex; align-items: center; gap: 2px; height: 48px; padding: 0 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(41, 41, 75, .16); animation: as-in .28s cubic-bezier(.22,.61,.36,1) both;
}
.autoscroll__panel[hidden] { display: none; }
@keyframes as-in { from { opacity: 0; transform: translateX(10px) scale(.96); } to { opacity: 1; transform: none; } }
.autoscroll__btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.autoscroll__btn:hover { background: var(--highlight); color: var(--accent-ink); }
.autoscroll__btn:disabled { opacity: .3; pointer-events: none; }
.autoscroll__speed { min-width: 46px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.autoscroll__speed b { font-size: 15px; color: var(--accent-ink); }
.autoscroll__speed small { font-size: 10.5px; color: var(--text-muted); }
.autoscroll__sep { width: 1px; height: 22px; background: var(--line); margin: 0 3px; }
@media (max-width: 767.98px) {
  .autoscroll { right: 16px; bottom: 74px; }
  .autoscroll__tip { display: none; }
}
@media print { .autoscroll { display: none !important; } }

/* ---------- মোবাইলে অটো-স্ক্রল: ডান কিনারায় সরু খাড়া প্যানেল, কিছুক্ষণ পর আবছা হয়ে যায় ---------- */
@media (max-width: 767.98px) {
  .autoscroll { flex-direction: column; gap: 8px; right: 18px; bottom: 74px; }
  .autoscroll__fab { width: 44px; height: 44px; }
  .autoscroll__panel { flex-direction: column; height: auto; width: 44px; padding: 4px 0; gap: 0; border-radius: 22px; animation-name: as-in-v; }
  .autoscroll__btn { width: 38px; height: 34px; }
  .autoscroll__speed { min-width: 0; padding: 2px 0; }
  .autoscroll__speed b { font-size: 13px; }
  .autoscroll__speed small { font-size: 9.5px; }
  .autoscroll__sep { width: 22px; height: 1px; margin: 2px 0; }
  .autoscroll [data-as-close] { order: 0; }
  .autoscroll .autoscroll__sep { order: 1; }
  .autoscroll [data-as-faster] { order: 2; }
  .autoscroll .autoscroll__speed { order: 3; }
  .autoscroll [data-as-slower] { order: 4; }
  .autoscroll__panel, .autoscroll__fab { transition: opacity .4s, background .25s, color .25s, transform .15s; }
  .autoscroll.is-idle .autoscroll__panel { opacity: .3; }
  .autoscroll.is-idle .autoscroll__fab { opacity: .7; }
  .autoscroll.is-idle .autoscroll__fab::after { display: none; }
}
@keyframes as-in-v { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- মোবাইলে হেডার: নিচে স্ক্রলে পুরো লুকায়, ওপরে স্ক্রলে বা পর্দা ছুঁলে ফেরে ---------- */
@media (max-width: 991.98px) {
  .site-header { transition: transform .3s ease, box-shadow .3s; }
  .site-header.is-hidden { transform: translateY(-100%); }
}

/* ---------- লেখকের নামের বাঁয়ে ছোট গোল ছবি (সব জায়গায়) ---------- */
.aname { display: inline-flex; align-items: center; gap: .45em; vertical-align: middle; max-width: 100%; }
.aname__t { min-width: 0; }
.avatar--xs { width: 1.5em; height: 1.5em; font-size: .72em; flex: none; border-radius: 50%; object-fit: cover; aspect-ratio: 1 / 1; display: inline-grid; place-items: center; }
.avatar--xs.avatar--ph { font-size: .72em; font-weight: 700; line-height: 1; }
img.avatar--xs { font-size: inherit; width: 1.5em; height: 1.5em; }
.card-o__author .aname, .ay-card__author .aname, .mini__author .aname, .more-by__meta .aname { gap: .4em; }
.card-o__author .avatar--xs.avatar--ph { background: rgba(255, 255, 255, .85); color: #29294B; }

/* ---------- লেখার পাতা: হেডার বাঁয়ে, ওপরে ছবি+লেখক • তারিখ ---------- */
.entry-header { text-align: left; padding-top: 36px; }
.entry-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; color: var(--text-muted); }
.entry-byline .entry-author { font-size: 16px; }
.entry-byline__dot { opacity: .7; }
.entry-byline time { font-size: 14.5px; }
.entry-header .entry-title { max-width: 920px; margin: 14px 0 12px; }
.entry-header .entry-subtitle { margin: 0 0 10px; max-width: 760px; }
.entry-header .entry-translator { margin: 0 0 4px; }
.entry-header .entry-ayojon { margin: 10px 0 0; }
.entry-byline .fs-inline { margin-left: auto; }
@media (min-width: 992px) { .entry-byline .fs-inline { display: none; } }
@media (max-width: 991.98px) {
  .entry-byline .fs-inline { display: inline-flex; gap: 0; align-items: center; height: 34px; padding: 0 2px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
  .entry-byline .fs-inline button { width: 38px; height: 32px; border: 0; background: none; color: var(--text); display: grid; place-items: center; border-radius: 999px; }
  .entry-byline .fs-inline button svg { width: 18px; height: 18px; }
  .entry-byline .fs-inline button:disabled { opacity: .3; }
  .entry-byline .fs-inline__sep { width: 1px; height: 16px; background: var(--line); }
}

/* ---------- লেখার শেষে শেয়ার-সারি ---------- */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 44px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-row__label { font-weight: 700; font-size: 15px; margin-right: 6px; }
.share-row__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: transform .15s, box-shadow .2s, border-color .2s; }
.share-row__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.entry-footer__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- লেখার পাতার ডানে: লেখকের আরও লেখা (হোমের মতো কার্ড) ---------- */
.entry-layout > .sidebar { position: static; }
.more-by--cards { padding: 0; background: none; border: 0; box-shadow: none; }
.more-by--cards .more-by__head { font-size: 19px; margin-bottom: 18px; padding-bottom: 12px; }
.more-by__cards { display: flex; flex-direction: column; gap: 30px; }
.more-by--cards .more-by__all { margin-top: 18px; }

.more-by__cards:not(.is-open) > :nth-child(n+4) { display: none; }
.more-by--cards .more-wrap { margin-top: 26px; justify-content: flex-start; }

/* ---------- শেয়ার আইকন: স্টক (রেখা) → মাউস নিলে ব্র্যান্ড-সবুজে ভরাট ---------- */
.share-row__btn { color: var(--text); }
.share-row__btn .ico-stroke { transition: fill .22s, stroke .22s; }
.share-row__btn:hover, .share-row__btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(0, 166, 100, .28); }
.share-row__btn:hover .ico-stroke, .share-row__btn:focus-visible .ico-stroke { fill: #fff; stroke: #fff; }

/* ---------- মন্তব্য ফর্ম: নাম আগে (আবশ্যিক), তারপর মতামত ---------- */
.cm__req { color: #c0392b; margin-left: 2px; }
.cm__form .cm__name { width: 100%; flex: none; }
.cm__row { justify-content: flex-start; }

/* ---------- নতুন ফুটার: লোগো+লেখা | সাথে থাকুন+আইকন | সম্পাদক ---------- */
.sf { margin-top: 24px; padding-bottom: 0; }
.sf > .container { border-top: 1px solid var(--line); }
.sf__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 44px 0 34px; }
.sf__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sf__brand .footer__logo img { width: 100px; height: auto; }
.sf__tagline { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.7; }
.sf__notice { font-size: 14px; color: var(--text-muted); line-height: 1.8; max-width: 420px; }
.sf__follow { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-top: 6px; }
.sf__heading { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.sf__follow .footer__social { justify-content: center; }
.sf__editor { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 4px; padding-top: 6px; }
.sf__editor-name { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.sf__role { font-size: 14.5px; color: var(--text-muted); }
.sf__editor .footer__social { justify-content: flex-end; margin-top: 10px; }
.sf__line { height: 2px; border-radius: 2px; background: var(--accent); margin: 0; }
.sf__bottom { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px 0 20px; font-size: 13.5px; color: var(--text-muted); flex-wrap: wrap; }
.sf__copy { display: inline-flex; align-items: center; gap: 8px; }
.sf__bar { width: 1px; height: 18px; background: var(--text-muted); opacity: .5; }
.sf__credit a { color: var(--accent-ink); font-weight: 700; border-bottom: 1px solid transparent; transition: border-color .2s; }
.sf__credit a:hover { border-bottom-color: currentColor; }
@media (max-width: 767.98px) {
  .sf__top { grid-template-columns: 1fr; gap: 26px; padding: 32px 0 26px; text-align: center; }
  .sf__brand, .sf__editor { align-items: center; text-align: center; }
  .sf__notice { max-width: none; }
  .sf__editor .footer__social { justify-content: center; }
  .sf__bottom { gap: 10px 14px; padding-bottom: 88px; }
}

.share-row__btn { color: var(--text); }
.share-row__btn:hover svg:not(.ico-stroke), .share-row__btn:focus-visible svg:not(.ico-stroke) { stroke: #fff; }

/* ---------- ফুটার: নিচ থেকে সারিবদ্ধ, চিকন সবুজ রেখা, আইকনে সাদা গোল নেই ---------- */
.sf__top { align-items: end; padding-bottom: 28px; }
.sf__follow, .sf__editor { padding-top: 0; }
.sf__follow { gap: 12px; }
.sf__editor { gap: 3px; }
.sf__editor .footer__social { margin-top: 12px; }
.sf__line { height: 1px; border-radius: 0; background: var(--accent); }
.footer__social .social-ico { width: 28px; height: 28px; background: none; box-shadow: none; border-radius: 0; }
.footer__social .social-ico:hover { transform: translateY(-2px); background: none; }
.footer__social .social-ico svg { width: 20px; height: 20px; }
.footer__social { gap: 12px; }
@media (max-width: 767.98px) { .sf__top { align-items: center; } }

/* ---------- ফুটার: কাছাকাছি লেখা, সাধারণ রেখার রঙ ---------- */
.sf__line { height: 1px; background: var(--line); }
.sf__heading { line-height: 1.25; }
.sf__follow { gap: 8px; }
.sf__follow .footer__social, .sf__editor .footer__social { margin-top: 0; }
.sf__editor { gap: 2px; }
.sf__role { line-height: 1.4; margin-bottom: 8px; }
.sf__brand { gap: 6px; }
.sf__brand .footer__logo { margin-bottom: 2px; }
.sf__tagline { line-height: 1.5; }
.sf__notice { line-height: 1.6; }

/* ---------- হোমের নিচের আয়োজন-স্লাইডার (ধারাবাহিকের পরে, ফুটারের ওপরে) ---------- */
.banner-slider--ayojon { margin-top: 8px; margin-bottom: 56px; }

/* মেগা-মেনু: ৩ কলাম, ডানের কার্ড ছাড়া */
.mega { width: min(820px, calc(100vw - 48px)); }
.mega__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 36px; }
.mega__col .mega__group:first-child { margin-top: 0; }
.nav__item.has-mega { position: static; }
.nav__item.has-mega > .mega { left: 50%; }

/* ---------- শুধু লেখার (আর্টিকেল) পাতায়: পড়ার লেখা আরেকটু বড় ---------- */
body.single .entry-content { font-size: var(--art-size, 20px); line-height: 1.95; }
@media (max-width: 767.98px) { body.single .entry-content { font-size: var(--art-size, 19px); } }

/* বিভাগের আসল ভেক্টর আইকন — ব্র্যান্ড-সবুজ */
.cat-ico { color: var(--accent); flex: none; display: block; }
.topic-mini__icon, .topic-card__ico { display: inline-grid; place-items: center; color: var(--accent); }
.topic-card__ico { vertical-align: middle; margin-right: 4px; }
.pill-lg .cat-ico { display: inline-block; vertical-align: middle; margin-right: 4px; }

/* বিভাগের আইকন: দুই-স্তরের (সরু রেখা + হালকা সবুজ ছায়া) */
.cat-ico .t { fill: currentColor; fill-opacity: .17; stroke: none; }
.cat-ico .f { fill: currentColor; stroke: none; }
.topic-mini__icon .cat-ico { width: 28px; height: 28px; }
.topic-mini { transition: transform .2s, box-shadow .2s; }
.topic-mini:hover { transform: translateY(-2px); }
.topic-mini:hover .cat-ico .t { fill-opacity: .3; }
.cm__row { justify-content: center; }

/* ---------- মুখপাতার প্রতিটি সেকশন: কালার প্লেট থেকে আলাদা আলাদা অতি-হালকা রঙের পটি ---------- */
/* প্লেট: গাঢ় বন #1B3E1B · মাঝারি সবুজ #2F6B38 · সতেজ সবুজ #8DC03F · হালকা লাইম #CAE27A */
:root {
  --tone-1: rgba(202, 226, 122, .16);
  --tone-2: rgba(141, 192, 63, .09);
  --tone-3: rgba(47, 107, 56, .07);
  --tone-4: rgba(202, 226, 122, .26);
  --tone-5: rgba(27, 62, 27, .05);
  --tone-6: rgba(141, 192, 63, .15);
  --tone-7: rgba(202, 226, 122, .11);
  --tone-8: rgba(47, 107, 56, .11);
  --tone-9: rgba(141, 192, 63, .06);
  --tone-10: rgba(202, 226, 122, .22);
  --tone-11: rgba(27, 62, 27, .08);
  --tone-12: rgba(141, 192, 63, .12);
}
[data-scheme="dark"] {
  --tone-1: rgba(141, 192, 63, .07);
  --tone-2: rgba(47, 107, 56, .22);
  --tone-3: rgba(202, 226, 122, .05);
  --tone-4: rgba(141, 192, 63, .11);
  --tone-5: rgba(47, 107, 56, .14);
  --tone-6: rgba(202, 226, 122, .08);
  --tone-7: rgba(141, 192, 63, .05);
  --tone-8: rgba(47, 107, 56, .27);
  --tone-9: rgba(202, 226, 122, .04);
  --tone-10: rgba(141, 192, 63, .09);
  --tone-11: rgba(47, 107, 56, .18);
  --tone-12: rgba(202, 226, 122, .06);
}
html { overflow-x: clip; }
.tone { position: relative; isolation: isolate; }
.tone::before { content: ""; position: absolute; z-index: -1; top: -40px; bottom: -40px; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--tone); pointer-events: none; }
.tone-1 { --tone: var(--tone-1); } .tone-2 { --tone: var(--tone-2); } .tone-3 { --tone: var(--tone-3); } .tone-4 { --tone: var(--tone-4); }
.tone-5 { --tone: var(--tone-5); } .tone-6 { --tone: var(--tone-6); } .tone-7 { --tone: var(--tone-7); } .tone-8 { --tone: var(--tone-8); }
.tone-9 { --tone: var(--tone-9); } .tone-10 { --tone: var(--tone-10); } .tone-11 { --tone: var(--tone-11); } .tone-12 { --tone: var(--tone-12); }

/* হেডার: সাধারণ, কোনো গ্লাস/ঝাপসা প্রভাব ছাড়া */
.site-header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: var(--header-bg) !important; }

/* ফুটারের সব আইকন: কোম্পানির নিজস্ব রঙ নয়, কেয়ারির ব্র্যান্ড-সবুজে */
.site-footer .social-ico, .site-footer .social-ico svg { color: var(--accent); fill: currentColor; }
.site-footer .social-ico svg[fill="none"] { fill: none; }
.site-footer .social-ico:hover { color: var(--accent-ink); }

/* ---------- ফুটার: সুষম ও পরিচ্ছন্ন (খুব বড়ও নয়, খুব ছোটও নয়) ---------- */
.sf__top { grid-template-columns: 1fr auto 1fr; gap: 48px; padding: 48px 0 30px; align-items: end; }
.sf__brand { gap: 8px; max-width: 420px; }
.sf__brand .footer__logo img { width: 84px; }
.sf__tagline { font-size: 14.5px; font-weight: 600; line-height: 1.6; color: var(--text); }
.sf__notice { font-size: 13.5px; line-height: 1.75; color: var(--text-muted); }
.sf__follow { gap: 14px; min-width: 200px; }
.sf__heading { font-size: 17px; font-weight: 700; letter-spacing: .01em; line-height: 1.3; }
.sf__heading::after { content: ""; display: block; width: 26px; height: 2px; margin: 8px auto 0; border-radius: 2px; background: var(--accent); }
.footer__social { gap: 16px; }
.footer__social .social-ico { width: 24px; height: 24px; }
.footer__social .social-ico svg { width: 18px; height: 18px; }
.sf__editor { gap: 2px; }
.sf__editor-name { font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.sf__role { font-size: 13.5px; margin-bottom: 12px; }
.sf__editor .footer__social { margin-top: 0; }
.sf__bottom { font-size: 13px; padding: 16px 0 22px; gap: 16px; }
@media (max-width: 767.98px) {
  .sf__top { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 24px; }
  .sf__brand { max-width: none; }
  .sf__follow { min-width: 0; }
}

/* ---------- লেখার পাতা: লেখা ছবির বাঁ কিনারা থেকে একটু ডানে, লেখকের আরও লেখার কাছাকাছি (লেখার মাপ একই) ---------- */
@media (min-width: 992px) { .entry-layout { padding-left: calc(var(--gutter) + 28px); } }
@media (min-width: 1201px) { .entry-layout { padding-left: calc(var(--gutter) + 48px); } }

/* লেখার পাতা: লেখার ঘর ডান দিকে বেড়ে লেখকের আরও লেখার কাছে (মাঝের ফাঁক কম) */
@media (min-width: 1201px) { .entry-layout { grid-template-columns: minmax(0, 1fr) 370px; gap: 44px; } }

/* ---------- ফুটার রিডিজাইন: তিন কলাম, পাতলা বিভাজক রেখা, বাঁ-সারিবদ্ধ, পরিচ্ছন্ন ---------- */
.sf__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: stretch; padding: 52px 0 44px; }
.sf__brand, .sf__follow, .sf__editor { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; padding-top: 0; min-width: 0; max-width: none; }
.sf__brand { padding-right: 48px; gap: 10px; }
.sf__follow { padding: 0 44px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); gap: 8px; min-width: 0; }
.sf__editor { padding-left: 44px; gap: 4px; }
.sf__brand .footer__logo img { width: 88px; }
.sf__tagline { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.55; }
.sf__notice { font-size: 13.5px; line-height: 1.8; color: var(--text-muted); max-width: 440px; }
.sf__heading { font-size: 18px; font-weight: 700; line-height: 1.3; }
.sf__heading::after { margin: 9px 0 0; width: 28px; }
.sf__sub { font-size: 13.5px; line-height: 1.75; color: var(--text-muted); max-width: 280px; margin-top: 6px; }
.sf__follow .footer__social, .sf__editor .footer__social { justify-content: flex-start; margin-top: 12px; gap: 20px; }
.footer__social .social-ico { width: 22px; height: 22px; }
.footer__social .social-ico svg { width: 20px; height: 20px; }
.sf__editor-name { font-size: 20px; font-weight: 700; line-height: 1.35; }
.sf__role { font-size: 13.5px; color: var(--text-muted); margin-bottom: 0; }
.sf__line { margin-top: 0; }
@media (max-width: 991.98px) {
  .sf__top { grid-template-columns: 1fr; padding: 36px 0 28px; }
  .sf__brand, .sf__follow, .sf__editor { align-items: center; text-align: center; padding: 26px 0; border: 0; }
  .sf__brand { padding-top: 0; }
  .sf__follow { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .sf__editor { padding-bottom: 0; }
  .sf__heading::after { margin-left: auto; margin-right: auto; }
  .sf__sub, .sf__notice { max-width: none; }
  .sf__follow .footer__social, .sf__editor .footer__social { justify-content: center; }
}
@media (min-width: 1201px) { .entry-layout { gap: 72px; } }
@media (min-width: 992px) and (max-width: 1200px) { .entry-layout { gap: 44px; } }

.archive-title__ico { display: inline-grid; vertical-align: middle; margin-right: 12px; }
.archive-title__ico .cat-ico { width: 34px; height: 34px; }
.meaning__icon .cat-ico { margin: 0 auto; }

/* ---------- মোবাইল-পরিমার্জন ---------- */
@media (max-width: 575.98px) {
  /* লেখার শেষে শেয়ার-সারি: শিরোনাম ওপরে, পাঁচটি বোতাম এক লাইনে মাঝখানে */
  .share-row { justify-content: center; gap: 10px 10px; padding: 16px 0 18px; }
  .share-row__label { flex-basis: 100%; text-align: center; margin: 0 0 2px; }
  .share-row__btn { width: 42px; height: 42px; }
  /* ফুটারের শেষ লাইন "উপরে যান" বোতামের নিচে ঢাকা না পড়ে */
  .sf__bottom { padding-bottom: 86px; }
}
@media (max-width: 767.98px) {
  /* ফুটারে আঙুলে চাপার জায়গা বড় (দৃশ্যমান আইকন একই, অদৃশ্য চাপার ঘর ৪২px) */
  .footer__social { gap: 4px; }
  .footer__social .social-ico { width: 42px; height: 42px; }
  .footer__social .social-ico svg { width: 22px; height: 22px; }
  .sf__credit a, .sf__copy { padding: 6px 0; }
  .sf__credit a { padding: 8px 2px; }
}

/* ---------- লেখকের ছোট গোল ছবি: আরও সুবিধাজনক মাপ (সব জায়গায়), নামের সাথে মাঝ-সারিবদ্ধ ---------- */
.aname { gap: 8px; align-items: center; }
.aname .avatar--xs, img.avatar--xs { width: 26px; height: 26px; min-width: 26px; font-size: 13px; line-height: 1; border-radius: 50%; object-fit: cover; }
.aname .avatar--xs.avatar--ph { font-weight: 700; }
.entry-byline .aname { gap: 10px; }
.entry-byline .aname .avatar--xs { width: 36px; height: 36px; min-width: 36px; font-size: 16px; }
.more-by__meta .aname .avatar--xs, .mini__author .aname .avatar--xs, .card-o__author .aname .avatar--xs, .ay-card__author .aname .avatar--xs { width: 22px; height: 22px; min-width: 22px; font-size: 11px; }
.card-g__by { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; }
.card-g__by .card__author { display: inline-flex; align-items: center; }

/* ---------- মোবাইলে লেখার পাতা: নিচ থেকে ওঠা মিনিমাল ডক (অটো-স্ক্রল + উপরে যান) ---------- */
.autoscroll__label, .autoscroll__top { display: none; }
@media (max-width: 767.98px) {
  body.single .to-top { display: none !important; }
  .autoscroll {
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); top: auto;
    flex-direction: row; align-items: center; gap: 6px; height: 56px; padding: 6px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    box-shadow: 0 10px 30px rgba(41, 41, 75, .16);
    transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden;
    transition: transform .4s cubic-bezier(.22, .61, .36, 1), opacity .3s, visibility .4s;
  }
  .autoscroll.is-shown { transform: none; opacity: 1; visibility: visible; }
  .autoscroll__fab { order: 1; width: auto; min-width: 44px; height: 44px; padding: 0 16px 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: var(--highlight); color: var(--accent-ink); box-shadow: none; opacity: 1; }
  .autoscroll__fab:hover { transform: none; box-shadow: none; }
  .autoscroll__label { display: inline; font-size: 14.5px; font-weight: 700; line-height: 1; }
  .autoscroll.is-running .autoscroll__fab { padding: 0; width: 44px; background: var(--accent); color: #fff; }
  .autoscroll.is-running .autoscroll__label { display: none; }
  .autoscroll.is-running .autoscroll__fab::after { display: none; }
  .autoscroll__panel { order: 2; display: none; position: static; flex-direction: row; align-items: center; width: auto; height: 44px; padding: 0 2px; gap: 0; border: 0; box-shadow: none; background: none; border-radius: 0; animation: none; opacity: 1 !important; margin-left: 4px; }
  .autoscroll.is-running .autoscroll__panel:not([hidden]) { display: flex; }
  .autoscroll__panel [data-as-close], .autoscroll__panel .autoscroll__sep { display: none; }
  .autoscroll__btn { width: 38px; height: 38px; }
  .autoscroll__speed { flex-direction: column; min-width: 44px; }
  .autoscroll__speed b { font-size: 14px; }
  .autoscroll__top { order: 3; display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
  .autoscroll__top:active { background: var(--highlight); color: var(--accent-ink); }
  .autoscroll.is-idle .autoscroll__panel, .autoscroll.is-idle .autoscroll__fab { opacity: 1; }
  body.dock-on .sf__bottom { padding-bottom: 96px; }
}
@media (max-width: 767.98px) {
  .autoscroll [data-as-slower] { order: 1; }
  .autoscroll .autoscroll__speed { order: 2; }
  .autoscroll [data-as-faster] { order: 3; }
}

/* ডক: হেডার লুকালেই ওঠে, হেডার ফিরলে নামে (অটো-স্ক্রল চলার সময় সবসময় থাকে); উপরে-যান বোতামে পড়ার অগ্রগতির বলয় */
@media (max-width: 767.98px) {
  .autoscroll.is-shown:not(.is-running) { transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; }
  body.hdr-off .autoscroll, .autoscroll.is-running { transform: none; opacity: 1; visibility: visible; }
  .autoscroll__top { position: relative; }
  .autoscroll__ring { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); pointer-events: none; }
  .autoscroll__ring circle { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 125.7; stroke-dashoffset: 125.7; transition: stroke-dashoffset .12s linear; }
  .autoscroll__top svg:not(.autoscroll__ring) { position: relative; }
}
.autoscroll__ring { display: none; }
@media (max-width: 767.98px) { .autoscroll__ring { display: block; } }

/* ---------- ফুটার: মিনিমাল ও কমপ্যাক্ট ---------- */
.sf { margin-top: 8px; }
.sf__top { padding: 28px 0 22px; }
.sf__brand { gap: 6px; padding-right: 32px; }
.sf__brand .footer__logo img { width: 64px; }
.sf__tagline { font-size: 14px; font-weight: 600; line-height: 1.5; }
.sf__notice { font-size: 12.5px; line-height: 1.6; max-width: 380px; }
.sf__follow { padding: 0 32px; gap: 6px; }
.sf__heading { font-size: 15px; }
.sf__heading::after, .sf__sub { display: none; }
.sf__follow .footer__social, .sf__editor .footer__social { margin-top: 6px; gap: 16px; }
.footer__social .social-ico { width: 20px; height: 20px; }
.footer__social .social-ico svg { width: 18px; height: 18px; }
.sf__editor { padding-left: 32px; gap: 2px; }
.sf__editor-name { font-size: 16px; }
.sf__role { font-size: 12.5px; }
.sf__bottom { font-size: 12.5px; padding: 12px 0 16px; }
@media (max-width: 991.98px) {
  .sf__top { padding: 24px 0 14px; }
  .sf__brand, .sf__follow, .sf__editor { padding: 16px 0; }
  .sf__brand { padding-top: 0; }
}
@media (max-width: 767.98px) {
  .footer__social .social-ico { width: 40px; height: 40px; }
  .footer__social .social-ico svg { width: 20px; height: 20px; }
  .footer__social { gap: 6px; }
  .sf__follow .footer__social, .sf__editor .footer__social { margin-top: 0; }
}

/* হিরোর ডানের কার্ড: ছবি পুরোটা (১৬:৯) দেখায়, কাটা পড়ে না */
.card-s__media { flex: none; align-self: flex-start; }
.card-s__img, .card-s .ph { width: 220px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); background-size: 40px auto; }
.card-s { align-items: flex-start; }
.hero__cat { margin: 0 0 8px; }
@media (max-width: 575.98px) { .card-s__media { align-self: stretch; } .card-s__img, .card-s .ph { width: 100%; } }
.card-s__media { flex: 0 0 clamp(140px, 38%, 220px); }
.card-s__img, .card-s .ph { width: 100%; }
@media (max-width: 575.98px) { .card-s__media { flex: none; align-self: stretch; } }
.card-s__media { flex: 0 0 clamp(150px, 42%, 240px); }
@media (max-width: 575.98px) { .card-s__media { flex: none; align-self: stretch; } }
.card-s__cat { margin: 0 0 2px; }

/* ---------- সব জায়গায় জাস্টিফাই: ফাঁক শব্দে শব্দে (অক্ষরে অক্ষরে নয়); হাইফেন-ভাঙা নেই ---------- */
.card__excerpt, .hero__excerpt, .archive-desc, .author-box__bio, .author-hero__bio, .card-g__body p, .page-lead, .entry-content p, .entry-content li, .entry-content blockquote, .cm__text {
  text-align: justify; text-justify: inter-word; word-spacing: normal; letter-spacing: normal; hyphens: manual;
}

/* ---------- হিরোর ডানের ছবি: আগের উচ্চতা, দুই পাশে চওড়া (১৬:৯) ---------- */
.card-s__media { flex: 0 0 clamp(170px, 50%, 270px); }
.card-s__img, .card-s .ph { width: 100%; height: auto; aspect-ratio: 16 / 9; }
@media (max-width: 575.98px) { .card-s__media { flex: none; align-self: stretch; } }

/* ---------- হিরোর ডানের কার্ড: তিনটা একই মাপ; ছবি লেখার উচ্চতা বরাবর (দুই পাশ সামান্য কেটে বড়); শিরোনাম সবসময় এক লাইনে ---------- */
.hero__side .card-s { display: flex; align-items: stretch; gap: 22px; height: 176px; padding: 0 0 24px; margin-bottom: 24px; }
.hero__side .card-s:last-child { padding-bottom: 0; margin-bottom: 0; height: 152px; }
.card-s__media { flex: 0 0 clamp(180px, 50%, 300px); align-self: stretch; display: block; }
.card-s__img, .card-s .ph { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: var(--radius-md); }
.card-s__body { justify-content: flex-start; overflow: hidden; }
.card-s__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 19px; }
.card-s__title a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 575.98px) {
  .hero__side .card-s, .hero__side .card-s:last-child { flex-direction: column-reverse; height: auto; gap: 14px; padding-bottom: 24px; }
  .card-s__media { flex: none; align-self: stretch; }
  .card-s__img, .card-s .ph { height: auto; aspect-ratio: 16 / 9; }
}
.hero__side .card-s { height: 196px; }
.hero__side .card-s:last-child { height: 172px; }
.card-s__media { flex: 0 0 clamp(190px, 54%, 320px); }
@media (max-width: 575.98px) { .hero__side .card-s, .hero__side .card-s:last-child { height: auto; } .card-s__media { flex: none; } }

/* ---------- হিরো: তারিখ নামের পাশে; ডানের তিন কার্ড বাঁয়ের বড় কার্ডের ওপর-নিচ বরাবর, সমান ফাঁকে; লেখা ৪ লাইন ---------- */
.hero__by { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; margin: 0 0 4px; font-size: 14px; color: var(--text-muted); }
.hero__by .card__author { display: inline-flex; align-items: center; }
@media (min-width: 992px) {
  .home .hero { align-items: stretch; }
  .hero__side { display: flex; flex-direction: column; justify-content: space-between; gap: 0; }
  .hero__side .card-s, .hero__side .card-s:last-child { flex: 1 1 0; height: auto; min-height: 0; margin: 0; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
  .hero__side .card-s:not(:first-child) { padding-top: 22px; }
  .hero__side .card-s:last-child { padding-bottom: 0; border-bottom: 0; }
  .card-s__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
  .card-s__media { align-self: stretch; }
  .card-s__img, .card-s .ph { height: 100%; min-height: 0; }
}
@media (max-width: 991.98px) { .card-s__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; } }

/* হিরোর নিচের বাড়তি রেখা বাদ; 'আরও দেখুন' এখন শুধু তীর (নিচমুখী → খুললে ঊর্ধ্বমুখী) */
.home .hero { border-bottom: 0; }
.more-btn { width: 48px; height: 48px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; }
.more-btn .more-ico { transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.more-btn.is-open .more-ico { transform: rotate(180deg); }
.more-by__none { color: var(--text-muted); font-size: 15px; line-height: 1.7; padding: 6px 0; }

/* লেখকের প্রোফাইল ছবির বৃত্ত-রেখা: ব্র্যান্ড-সবুজ */
.author-card .avatar { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.author-hero__ring { border: 3px solid var(--accent); }
.avatar--xs { box-shadow: 0 0 0 1.5px var(--accent); }
.author-box__who .avatar { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent); }

/* ---------- অনুসন্ধান: ঝাপসা পটভূমি, বড় বক্স, রিয়েল-টাইম ফলাফল ---------- */
.search-pop { display: none !important; }
.sx { position: fixed; inset: 0; z-index: 600; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 0; }
.sx[hidden] { display: none; }
.sx__backdrop { position: absolute; inset: 0; background: rgba(24, 24, 40, .38); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); animation: sx-fade .25s ease both; }
.sx__panel { position: relative; width: min(680px, 100%); background: var(--surface); border-radius: 20px; box-shadow: 0 30px 80px rgba(24, 24, 40, .30); border: 1px solid var(--line); overflow: hidden; animation: sx-in .28s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes sx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sx-in { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }
.sx__form { display: flex; align-items: center; gap: 10px; height: 68px; padding: 0 14px 0 20px; }
.sx__ico { color: var(--accent); display: grid; place-items: center; flex: none; }
.sx__form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 18px; color: var(--text); -webkit-appearance: none; appearance: none; }
.sx__form input::-webkit-search-cancel-button { display: none; }
.sx__clear { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--highlight); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.sx__clear[hidden] { display: none; }
.sx__esc { flex: none; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.sx__esc:hover { background: var(--highlight); }
.sx__results { border-top: 1px solid var(--line); max-height: min(60vh, 480px); overflow-y: auto; padding: 8px; }
.sx__results[hidden] { display: none; }
.sx__item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; transition: background .15s; }
.sx__item:hover, .sx__item.is-active { background: var(--highlight); }
.sx__thumb { flex: none; width: 76px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--highlight); }
.sx__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx__txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sx__title { font-weight: 700; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sx__title mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.sx__meta { font-size: 13px; color: var(--text-muted); }
.sx__all { display: block; text-align: center; padding: 12px; margin-top: 4px; font-weight: 700; font-size: 14.5px; color: var(--accent-ink); border-top: 1px solid var(--line); }
.sx__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.sx__none { padding: 22px; text-align: center; color: var(--text-muted); }
body.sx-open { overflow: hidden; }
@media (max-width: 575.98px) {
  .sx { padding-top: 8vh; }
  .sx__form { height: 60px; padding-left: 16px; }
  .sx__form input { font-size: 17px; }
  .sx__esc { display: none; }
  .sx__thumb { width: 64px; height: 42px; }
}
/* ছোট লেখক-ছবির সবুজ রেখা এখন ছবির ভেতরের বর্ডার (বাইরের ছায়া নয়), তাই কোনো ঘেরা জায়গায় কেটে যায় না */
.avatar--xs { box-shadow: none !important; border: 1.5px solid var(--accent); box-sizing: border-box; }
.card-s__body { padding-left: 2px; }

/* ---------- আমাদের কথা: বাঁ-সারিবদ্ধ + কেয়ারি পরিবার ---------- */
.page--about .page-hero { text-align: left; padding: 24px 0 18px; }
.page--about .page-lead { margin: 6px 0 0; color: var(--text-muted); }
.page--about .entry-content--page { margin-left: 0; margin-right: auto; max-width: 780px; text-align: left; }
.family { margin: 56px 0 0; }
.family .sec-head { justify-content: flex-start; }
.family__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 280px)); gap: 22px; justify-content: start; margin-top: 22px; }
.member { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 24px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.member .avatar { border: 2.5px solid var(--accent); box-sizing: border-box; margin-bottom: 8px; }
.member__name { font-size: 20px; line-height: 1.3; }
.member__role { font-size: 14px; color: var(--accent-ink); font-weight: 600; }
.member__bio { font-size: 14px; line-height: 1.7; color: var(--text-muted); text-align: left; }
.member__social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--accent); }
.member__social a { display: grid; place-items: center; width: 24px; height: 24px; }
.member__social a:hover { color: var(--accent-ink); transform: translateY(-2px); }
.member__social svg { width: 18px; height: 18px; }
@media (max-width: 575.98px) { .family__grid { grid-template-columns: 1fr; } .member__social a { width: 40px; height: 40px; } }
/* কেয়ারি পরিবারের কার্ড: সব কিছু বক্সের মাঝখানে */
.member { align-items: center; text-align: center; }
.member__bio { text-align: center; }
.member__social { justify-content: center; }
/* আমাদের কথা: লেখা ও কেয়ারি পরিবার হেডারের লোগোর সোজা নয়, পাতার মূল অংশের মতো একটু ভেতর থেকে শুরু (লেখার পাতার মতোই) */
@media (min-width: 992px) { .page--about { padding-left: calc(var(--gutter) + 28px); } }
@media (min-width: 1201px) { .page--about { padding-left: calc(var(--gutter) + 48px); } }
/* আমাদের কথা: পুরো অংশ পাতার মাঝখানে, ডান-বাঁয়ে সমান ফাঁক (লেখা বাঁ-সারিবদ্ধ থাকে) */
.page--about { max-width: 940px; margin-inline: auto; padding-left: var(--gutter) !important; padding-right: var(--gutter); }
.page--about .entry-content--page { max-width: none; margin-inline: 0; }
.family__grid { justify-content: start; }

/* ---------- ফুটার: ৪ কলাম (বাঁয়ে লোগো-লেখা | সম্পাদক | যোগাযোগ | সাথে থাকুন), পাতলা বিভাজক, কলামের ভেতর মাঝ-সারিবদ্ধ ---------- */
.sf__top { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); align-items: stretch; padding: 28px 0 24px; }
.sf__brand { justify-content: center; align-items: flex-start; text-align: left; padding-right: 36px; }
.sf__editor, .sf__contact, .sf__follow { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 6px 24px; border-left: 1px solid var(--line); border-right: 0; min-width: 0; }
.sf__editor .sf__editor-name { text-align: center; }
.sf__editor .footer__social, .sf__follow .footer__social { justify-content: center; margin-top: 8px; }
.sf__contact .sf__heading, .sf__follow .sf__heading { margin-bottom: 4px; }
.sf__heading::after { display: none; }
.sf__link { font-size: 13.5px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.sf__link:hover { color: var(--accent-ink); }
@media (max-width: 991.98px) {
  .sf__top { grid-template-columns: 1fr 1fr; gap: 0; }
  .sf__brand { grid-column: 1 / -1; align-items: center; text-align: center; padding: 0 0 18px; }
  .sf__editor, .sf__contact, .sf__follow { border-left: 0; border-top: 1px solid var(--line); padding: 18px 12px; }
  .sf__follow { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .sf__top { grid-template-columns: 1fr; }
  .sf__editor, .sf__contact, .sf__follow { padding: 18px 0; }
}

/* ---------- ফুটার (মোবাইল): মিনিমাল কার্ড — ওপরে লোগো, মাঝে সম্পাদক|যোগাযোগ, নিচে সাথে থাকুন ---------- */
@media (max-width: 575.98px) {
  .sf__top { grid-template-columns: 1fr 1fr; padding: 28px 0 18px; gap: 0; }
  .sf__brand { grid-column: 1 / -1; align-items: center; text-align: center; padding: 0 8px 22px; gap: 6px; }
  .sf__brand .sf__tagline { font-size: 14px; }
  .sf__brand .sf__notice { font-size: 12px; line-height: 1.7; color: var(--text-muted); max-width: 30em; margin: 2px auto 0; }
  .sf__editor, .sf__contact { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 10px; gap: 3px; background: color-mix(in srgb, var(--accent) 4%, transparent); }
  .sf__editor { border-left: 1px solid var(--line); border-radius: 16px 0 0 16px; }
  .sf__contact { border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0 16px 16px 0; }
  .sf__editor .sf__editor-name { font-size: 15.5px; }
  .sf__role { font-size: 12px; color: var(--text-muted); }
  .sf__editor .footer__social { margin-top: 8px; gap: 4px; }
  .sf__heading { font-size: 11.5px; letter-spacing: .04em; color: var(--text-muted); font-weight: 600; margin: 0 0 4px; }
  .sf__link { font-size: 13px; line-height: 1.75; }
  .sf__follow { grid-column: 1 / -1; border: 0; padding: 20px 0 0; flex-direction: row; justify-content: center; gap: 6px; flex-wrap: wrap; }
  .sf__follow .sf__heading { flex: 0 0 100%; margin-bottom: 2px; }
  .sf__follow .footer__social { margin-top: 0; }
}

/* মোবাইল ফুটার: সম্পাদক|যোগাযোগ — বাক্স/পটভূমি/বাইরের দাগ ছাড়া, শুধু মাঝের সরু দাগ */
@media (max-width: 575.98px) {
  .sf__editor, .sf__contact { background: none; border: 0; border-radius: 0; padding: 6px 10px; }
  .sf__contact { border-left: 1px solid var(--line); }
}

/* ---------- ভিডিও সেকশন (ইউটিউব): অন্য কার্ডের মতোই ৩ কলাম ---------- */
.vid__media { position: relative; width: 100%; padding: 0; border: 0; background: #111; cursor: pointer; aspect-ratio: 16 / 9; }
.vid__media .card-g__img { height: 100%; display: block; }
.vid__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35)); pointer-events: none; }
.vid__play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--accent); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .3s cubic-bezier(.22,.61,.36,1), background .3s, color .3s; }
.vid__play svg { margin: 0; display: block; }
.vid:hover .vid__play { transform: scale(1.1); background: var(--accent); color: #fff; }
.vid__media:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.vid__media iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.vid__media.is-playing { cursor: default; }
.vid__media.is-playing::after, .vid__media.is-playing .vid__play { display: none; }
.vid__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 18px; }
@media (max-width: 575.98px) { .vid__play { width: 52px; height: 52px; margin: -26px 0 0 -26px; } }

/* লেখা পাঠানোর নিয়ম: সূচিপত্র নেই; লেখা ও ছবি পাতার মাঝখানে */
.guide-layout { display: block; max-width: 820px; margin: 0 auto; }
.guide-layout .entry-content--page { margin: 0 auto; }
.page--guide .page-hero { text-align: center; }

/* লেখা জমা দিন বক্স: ছোট, মাঝ-সারিবদ্ধ, প্রিমিয়াম */
.page--guide .mail-cta { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 440px; margin: 40px auto 0; padding: 22px 24px; border: 1px solid var(--line); box-shadow: none; }
.page--guide .mail-cta .sec-label { margin: 0 0 6px; font-size: 12px; text-align: center; }
.page--guide .mail-cta__mail { font-size: 18px; margin: 0 0 14px; text-align: center; letter-spacing: 0; }
.page--guide .mail-cta .cta__actions { display: flex; justify-content: center; gap: 8px; margin: 0; flex-wrap: wrap; }
.page--guide .mail-cta .btn { padding: 0 16px; height: 38px; min-height: 0; font-size: 13.5px; }
.page--guide .mail-cta .btn svg { width: 15px; height: 15px; }

/* নিয়ম-পাতার শিরোনাম: ওপরের ও নিচের দাগের ঠিক মাঝখানে */
.page--guide .entry-content h2 { margin: 28px 0 28px; padding-top: 28px; }
.page--guide .entry-content h2 + h2 { margin-top: 0; }

/* ---------- কম্পিউটারে লেখার পাতার ডক: লেখা ছোট/বড় + প্লে/পজ (অটো-স্ক্রল) ---------- */
.autoscroll__size { display: none; }
.autoscroll .as-ico--tri { display: none; }
@media (min-width: 768px) {
  .autoscroll__size { display: flex; align-items: center; gap: 2px; height: 48px; padding: 0 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .autoscroll .as-ico--play { display: none; }
  .autoscroll .as-ico--tri { display: block; margin-left: 2px; }
  .autoscroll.is-running .autoscroll__fab .as-ico--tri { display: none; }
  .autoscroll__tip { content: none; }
}

/* কম্পিউটারে: একটাই বোতাম (Aa); চাপলে মেনু — লেখা ছোট/বড় ও প্লে/পজ অটো-স্ক্রল */
.autoscroll__play .ap-pause { display: none; }
@media (min-width: 768px) {
  .autoscroll__size[hidden] { display: none; }
  .autoscroll__size { animation: as-in .28s cubic-bezier(.22,.61,.36,1) both; }
  .autoscroll__fab .as-ico--pause, .autoscroll.is-running .autoscroll__fab .as-ico--pause { display: none; }
  .autoscroll.is-running .autoscroll__fab .as-ico--tri { display: block; }
  .autoscroll.is-menu .autoscroll__fab { background: var(--highlight); }
  .autoscroll.is-running .autoscroll__play .ap-play { display: none; }
  .autoscroll.is-running .autoscroll__play .ap-pause { display: block; }
  .autoscroll.is-running .autoscroll__play { color: var(--accent-ink); }
}
@media (max-width: 767.98px) { .autoscroll__size { display: none !important; } }

/* ---------- কম্পিউটারে পড়ার ডক: ছোট, একরঙা, মিনিমাল ---------- */
@media (min-width: 768px) {
  .autoscroll { right: 22px; bottom: 80px; gap: 8px; }
  .autoscroll .autoscroll__panel { display: none !important; }
  .autoscroll__fab { width: 40px; height: 40px; background: var(--surface); color: var(--text-muted); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(41, 41, 75, .08); }
  .autoscroll__fab:hover { transform: none; color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 6px 18px rgba(41, 41, 75, .12); }
  .autoscroll.is-menu .autoscroll__fab { background: var(--surface); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
  .autoscroll.is-running .autoscroll__fab { background: var(--surface); color: var(--accent-ink); }
  .autoscroll.is-running .autoscroll__fab::after { inset: -3px; border-width: 1.5px; }
  .autoscroll__fab .as-ico--tri, .autoscroll.is-running .autoscroll__fab .as-ico--tri { width: 20px; height: 20px; margin: 0; }
  .autoscroll__size { height: 40px; padding: 0 5px; gap: 1px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(41, 41, 75, .08); }
  .as-m { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); display: grid; place-items: center; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
  .as-m:hover { background: var(--highlight); color: var(--accent-ink); }
  .as-m:disabled { opacity: .3; pointer-events: none; }
  .as-m--sm { width: 24px; height: 24px; }
  .as-fz { font-weight: 700; line-height: 1; }
  .as-fz--s { font-size: 13px; }
  .as-fz--l { font-size: 19px; }
  .as-m-sep { width: 1px; height: 16px; background: var(--line); margin: 0 4px; }
  .autoscroll__play { color: var(--text-muted); }
  .autoscroll.is-running .autoscroll__play { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
  .as-spd { display: none; align-items: center; gap: 0; padding-left: 4px; margin-left: 4px; border-left: 1px solid var(--line); }
  .autoscroll.is-running .as-spd { display: inline-flex; }
  .as-spd__v { min-width: 34px; text-align: center; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
}
@media (max-width: 767.98px) { .as-spd { display: none; } }

@media (min-width: 768px) { .autoscroll.is-idle .autoscroll__size, .autoscroll.is-idle .autoscroll__fab { opacity: 1; } }

/* কম্পিউটারে: পড়ার বোতাম ও "উপরে যান" বোতাম একই মাপ (৪৮px) ও একই সারিতে */
@media (min-width: 768px) {
  .autoscroll { right: 24px; bottom: 84px; }
  .autoscroll__fab { width: 48px; height: 48px; box-shadow: var(--shadow); }
  .autoscroll__size { height: 48px; }
}

/* মোবাইল: ফুটারের শেষ লাইন "উপরে যান" বোতামের নিচে চাপা পড়বে না */
@media (max-width: 767.98px) {
  .site-footer { padding-bottom: 60px; }
}

@media (max-width: 575.98px) {
  .page--guide .mail-cta { padding: 20px 14px; }
  .page--guide .mail-cta .cta__actions { flex-wrap: nowrap; gap: 6px; }
  .page--guide .mail-cta .btn { padding: 0 11px; font-size: 13px; white-space: nowrap; }
  .page--guide .mail-cta__mail { font-size: 17px; }
}

/* ছোট ফোন (≤ ৩৫৯px): ইমেইল ভাঙবে না */
@media (max-width: 359.98px) {
  .sf__top { grid-template-columns: .85fr 1.15fr; }
  .sf__contact { padding: 6px 6px; }
  .sf__editor { padding: 6px 6px; }
  .sf__link { font-size: 12px; overflow-wrap: normal; word-break: keep-all; white-space: nowrap; }
}

/* লেখক খোঁজা (লেখকতালিকা): একই ঝাপসা বক্স, গোল ছবি */
.sx__thumb--av { width: 44px; height: 44px; border-radius: 50%; background: none; }
.sx__thumb--av .avatar { width: 100% !important; height: 100% !important; font-size: 18px !important; border-width: 1.5px; }
.sx--authors .sx__results { max-height: min(62vh, 520px); }

/* ---------- মোবাইল ডক: লেখা ছোট/বড় + প্লে/পজ + গতি + উপরে যান — সবই এক বারে ---------- */
.as-plabel { display: none; }
@media (max-width: 767.98px) {
  .autoscroll .autoscroll__fab, .autoscroll .autoscroll__panel { display: none !important; }
  .autoscroll .autoscroll__size, .autoscroll .autoscroll__size[hidden] { display: flex !important; align-items: center; gap: 2px; order: 1; height: 44px; padding: 0 0 0 4px; margin: 0; background: none; border: 0; box-shadow: none; animation: none; }
  .autoscroll .as-m { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; font-family: inherit; padding: 0; }
  .autoscroll .as-m:active { background: var(--highlight); color: var(--accent-ink); }
  .autoscroll .as-m:disabled { opacity: .3; }
  .autoscroll .as-fz { font-weight: 700; line-height: 1; }
  .autoscroll .as-fz--s { font-size: 14px; }
  .autoscroll .as-fz--l { font-size: 20px; }
  .autoscroll .as-m-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
  .autoscroll .autoscroll__play { width: auto; min-width: 38px; padding: 0 13px 0 11px; gap: 7px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--highlight); color: var(--accent-ink); }
  .autoscroll .autoscroll__play .ap-pause { display: none; }
  .autoscroll .as-plabel { display: inline; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; }
  .autoscroll.is-running .autoscroll__play { width: 38px; padding: 0; background: var(--accent); color: #fff; }
  .autoscroll.is-running .autoscroll__play .ap-play, .autoscroll.is-running .as-plabel { display: none; }
  .autoscroll.is-running .autoscroll__play .ap-pause { display: block; }
  .autoscroll .as-spd { display: none; align-items: center; gap: 0; padding: 0; margin-left: 4px; border: 0; }
  .autoscroll.is-running .as-spd { display: inline-flex; }
  .autoscroll .as-m--sm { width: 30px; height: 30px; }
  .autoscroll .as-spd__v { min-width: 32px; text-align: center; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
  .autoscroll .autoscroll__top { order: 3; margin-left: auto; flex: none; }
}
@media (max-width: 359.98px) {
  .autoscroll .as-m { width: 34px; height: 34px; }
  .autoscroll .as-m--sm { width: 26px; height: 26px; }
  .autoscroll .autoscroll__play { padding: 0 10px 0 8px; }
  .autoscroll .as-plabel { font-size: 13px; }
  .autoscroll .as-spd__v { min-width: 28px; font-size: 13px; }
  .autoscroll .as-m-sep { margin: 0 2px; }
  .autoscroll.is-running .autoscroll__play { width: 34px; }
}
@media (max-width: 359.98px) {
  .autoscroll .autoscroll__play { width: auto; min-width: 34px; display: inline-flex; }
  .autoscroll.is-running .autoscroll__play { width: 34px; padding: 0; }
}

/* বিজ্ঞাপন-স্লাইডার: ওপরের ও নিচের রঙিন সেকশন থেকে দৃশ্যমান ফাঁক সমান (রঙিন পটি বাক্সের ৪০px বাইরে যায়, তাই নিচে ৮০px) */
.ad-slider { margin-top: 80px; margin-bottom: 80px; }

/* ---------- মোবাইল ডক (পিসির মতোই): ডানে আলাদা বই-বোতাম + আলাদা "উপরে যান"; বই চাপলে বাঁয়ে কম্প্যাক্ট পিল ---------- */
@media (max-width: 767.98px) {
  .autoscroll { left: auto; right: 16px; top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: auto; height: auto; padding: 0; gap: 8px; flex-direction: column; align-items: flex-end; background: none; border: 0; border-radius: 0; box-shadow: none; transform: translateY(14px); }
  .autoscroll.is-shown:not(.is-running):not(.is-menu) { transform: translateY(14px); opacity: 0; visibility: hidden; }
  body.hdr-off .autoscroll, .autoscroll.is-running, .autoscroll.is-menu { transform: none; opacity: 1; visibility: visible; }
  .autoscroll.is-idle .autoscroll__fab, .autoscroll.is-idle .autoscroll__size { opacity: 1; }

  .autoscroll .autoscroll__fab { display: grid !important; order: 1; width: 48px; min-width: 0; height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text-muted); box-shadow: var(--shadow); gap: 0; }
  .autoscroll .autoscroll__fab:active { transform: scale(.94); }
  .autoscroll.is-menu .autoscroll__fab, .autoscroll.is-running .autoscroll__fab { background: var(--surface); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); width: 48px; padding: 0; }
  .autoscroll .autoscroll__label, .autoscroll .autoscroll__tip { display: none !important; }
  .autoscroll .autoscroll__fab .as-ico--play, .autoscroll .autoscroll__fab .as-ico--pause { display: none !important; }
  .autoscroll .autoscroll__fab .as-ico--tri { display: block; width: 20px; height: 20px; margin: 0; }

  .autoscroll .autoscroll__top { display: grid; order: 2; margin: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
  .autoscroll .autoscroll__ring { width: 48px; height: 48px; }

  .autoscroll .autoscroll__size, .autoscroll .autoscroll__size[hidden] { position: absolute; right: 56px; bottom: 60px; height: 40px; padding: 0 5px; gap: 1px; order: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 14px rgba(41, 41, 75, .12); animation: as-in .26s cubic-bezier(.22,.61,.36,1) both; display: flex !important; align-items: center; white-space: nowrap; }
  .autoscroll .autoscroll__size[hidden] { display: none !important; }
  .autoscroll .as-m { width: 32px; height: 32px; }
  .autoscroll .as-m--sm { width: 26px; height: 26px; }
  .autoscroll .as-fz--s { font-size: 13px; }
  .autoscroll .as-fz--l { font-size: 19px; }
  .autoscroll .as-m-sep { height: 16px; margin: 0 4px; }
  .autoscroll .autoscroll__play, .autoscroll.is-running .autoscroll__play { width: 32px; min-width: 32px; height: 32px; padding: 0; gap: 0; border-radius: 50%; background: transparent; color: var(--text-muted); }
  .autoscroll .as-plabel, .autoscroll.is-running .as-plabel { display: none; }
  .autoscroll .autoscroll__play .ap-play { display: block; }
  .autoscroll .autoscroll__play .ap-pause { display: none; }
  .autoscroll.is-running .autoscroll__play { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
  .autoscroll.is-running .autoscroll__play .ap-play { display: none; }
  .autoscroll.is-running .autoscroll__play .ap-pause { display: block; }
  .autoscroll .as-spd { margin-left: 4px; padding-left: 4px; border-left: 1px solid var(--line); }
  .autoscroll .as-spd__v { min-width: 30px; font-size: 13px; }
}
@media (max-width: 359.98px) {
  .autoscroll { right: 12px; }
  .autoscroll .autoscroll__size, .autoscroll .autoscroll__size[hidden] { right: 56px; }
  .autoscroll .as-m { width: 30px; height: 30px; }
  .autoscroll .autoscroll__play, .autoscroll.is-running .autoscroll__play { width: 30px; min-width: 30px; height: 30px; }
  .autoscroll .as-m--sm { width: 24px; height: 24px; }
  .autoscroll .as-spd__v { min-width: 26px; font-size: 12.5px; }
}

/* ---------- মোবাইল ডক: বই-বোতাম বাঁয়ে (ওপরে ভার্টিকেল পিল), "উপরে যান" আগের জায়গায় ডানে ---------- */
@media (max-width: 767.98px) {
  .autoscroll { left: 16px; right: 16px; width: auto; flex-direction: row; justify-content: space-between; align-items: flex-end; pointer-events: none; }
  .autoscroll > * { pointer-events: auto; }
  .autoscroll .autoscroll__fab { order: 1; }
  .autoscroll .autoscroll__top { order: 2; }

  .autoscroll .autoscroll__size, .autoscroll .autoscroll__size[hidden] { right: auto; left: 4px; bottom: 56px; width: 40px; height: auto; padding: 5px 0; flex-direction: column; align-items: center; gap: 1px; border-radius: 22px; animation-name: as-in-v; }
  .autoscroll .autoscroll__size[hidden] { display: none !important; }
  .autoscroll .as-m-sep { width: 16px; height: 1px; margin: 3px 0; }
  .autoscroll .as-spd { flex-direction: column-reverse; align-items: center; margin: 3px 0 0; padding: 3px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .autoscroll .as-spd__v { min-width: 0; padding: 2px 0; }
}
@keyframes as-in-v { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 359.98px) {
  .autoscroll { left: 12px; right: 12px; }
  .autoscroll .autoscroll__size, .autoscroll .autoscroll__size[hidden] { right: auto; left: 4px; }
}
@media (max-width: 767.98px) {
  .autoscroll .as-spd { flex-direction: column; }
  .autoscroll .as-spd [data-as-faster] { order: 1; }
  .autoscroll .as-spd .as-spd__v { order: 2; }
  .autoscroll .as-spd [data-as-slower] { order: 3; }
}

/* থিম-টগল: সাদা গোল শেপ ঠিক আইকনের মাঝখানে (সূর্য/চাঁদ ৩২px ঘরের কেন্দ্রে ২৮px বৃত্ত) */
.scheme-toggle::after { left: 6px; }
[data-scheme="dark"] .scheme-toggle::after { transform: translateX(32px); }
.site-header.is-compact .scheme-toggle::after { left: 6px; }
[data-scheme="dark"] .site-header.is-compact .scheme-toggle::after { transform: translateX(28px); }

/* মোবাইল: অটো-স্ক্রল চলার সময় বই-বোতামের চারপাশে পিসির মতোই সবুজ ঢেউ (পালস) */
@media (max-width: 767.98px) {
  .autoscroll .autoscroll__fab { position: relative; }
  .autoscroll.is-running .autoscroll__fab::after { display: block; content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: .5; animation: as-pulse 1.8s ease-out infinite; pointer-events: none; }
}

/* স্লাইডার/বিজ্ঞাপনে যেকোনো মাপের ছবি দিলে ফ্রেমে নিজে ফিট হয়: ছোট হলে বড় হয়, বড় হলে ছোট হয়; মাঝখান ধরে ভরে (cover) */
.banner-slider .slide picture, .banner-slider .slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; max-width: none; }

/* ---------- স্লাইডার: পাশ থেকে স্লাইড (ফেড নয়) + ডট স্লাইডারের নিচে ---------- */
.banner-slider .slide { opacity: 1; transition: none; will-change: transform; }
.banner-slider .slider__dots { position: static; transform: none; left: auto; bottom: auto; display: flex; justify-content: center; align-items: center; gap: 8px; margin: 14px 0 0; padding: 0; height: 8px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.banner-slider .slider__dot { width: 8px; height: 8px; background: var(--text-muted); opacity: .35; border-radius: 8px; }
.banner-slider .slider__dot.is-active { width: 26px; background: var(--accent); opacity: 1; }
.banner-slider .slider__arrow { top: calc(50% - 11px); }
.banner-slider + .hero { margin-top: 48px; }
.ad-slider { margin-bottom: 58px; }
@media (max-width: 640px) {
  .banner-slider .slider__dots { margin-top: 12px; }
  .banner-slider + .hero { margin-top: 40px; }
  .banner-slider .slider__arrow { top: calc(50% - 10px); }
}
@media (max-width: 640px) { .ad-slider { margin-bottom: 60px; } }

/* হিরো সেকশনেও অন্য সেকশনের মতো হালকা রঙিন পটি (পুরো প্রস্থ); পরের সেকশনের পটির সঙ্গে সরাসরি লাগানো */
.home .hero.tone { padding-bottom: 0; margin-top: 64px; margin-bottom: 80px; }
@media (max-width: 640px) { .home .hero.tone { margin-top: 56px; margin-bottom: 80px; } }

/* ---------- মুখপাতার রঙিন পটি: সোজা কিনারার বদলে হালকা ঢেউ; পাশাপাশি পটির রং আলাদা ---------- */
:root {
  --tc-0: rgba(0, 166, 100, .075);     /* পুদিনা-সবুজ */
  --tc-1: rgba(114, 114, 255, .075);   /* হালকা নীলচে-বেগুনি */
  --tc-2: rgba(202, 226, 122, .26);    /* লাইম */
  --tc-3: rgba(235, 178, 72, .12);     /* বালি-সোনালি */
  --tc-4: rgba(42, 165, 190, .085);    /* আকাশি-নীলাভ */
  --tc-5: rgba(47, 107, 56, .085);     /* গাঢ় সবুজাভ */
}
[data-scheme="dark"] {
  --tc-0: rgba(0, 200, 120, .10);
  --tc-1: rgba(130, 130, 255, .11);
  --tc-2: rgba(202, 226, 122, .07);
  --tc-3: rgba(235, 178, 72, .09);
  --tc-4: rgba(60, 190, 215, .09);
  --tc-5: rgba(120, 200, 120, .09);
}
.tc-0 { --tone: var(--tc-0); } .tc-1 { --tone: var(--tc-1); } .tc-2 { --tone: var(--tc-2); }
.tc-3 { --tone: var(--tc-3); } .tc-4 { --tone: var(--tc-4); } .tc-5 { --tone: var(--tc-5); }
/* জোড-সংখ্যার পটি: ওপরে আয়না-ঢেউ, নিচে সরল-ঢেউ; বিজোড়ে উল্টো — তাই জোড়া লাগা কিনারা ঠিক মেলে */
.wv-0 { --m-top: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M1200%2020%20C940%2020%20840%208%20600%2014%20S260%2026%200%2010%20L0%2032%20L1200%2032%20Z%27/%3E%3C/svg%3E"); --m-bot: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%2020.6%20C260%2020.6%20360%208.6%20600%2014.6%20S940%2026.6%201200%2010.6%20L1200%200%20L0%200%20Z%27/%3E%3C/svg%3E"); }
.wv-1 { --m-top: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%2020%20C260%2020%20360%208%20600%2014%20S940%2026%201200%2010%20L1200%2032%20L0%2032%20Z%27/%3E%3C/svg%3E"); --m-bot: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M1200%2020.6%20C940%2020.6%20840%208.6%20600%2014.6%20S260%2026.6%200%2010.6%20L0%200%20L1200%200%20Z%27/%3E%3C/svg%3E"); }
.tone::before {
  top: -56px; bottom: -56px;
  -webkit-mask-image: var(--m-top), linear-gradient(#000, #000), var(--m-bot);
  mask-image: var(--m-top), linear-gradient(#000, #000), var(--m-bot);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 32px, 100% calc(100% - 64px), 100% 32px;
  mask-size: 100% 32px, 100% calc(100% - 64px), 100% 32px;
  -webkit-mask-position: 0 0, 0 32px, 0 100%;
  mask-position: 0 0, 0 32px, 0 100%;
}

/* ---------- মুখপাতার পটি, দ্বিতীয় সংস্করণ: ৮টি স্পষ্ট আলাদা রঙ (হালকা-গাঢ় পর্যায়ক্রমে) ও ৮ রকম ঢেউ (প্রতি কিনারায় আলাদা) ---------- */
:root {
  /* হালকা (L) ও একটু গাঢ় (D) পর্যায়ক্রমে; প্রতিটির রঙের ধারা আলাদা */
  --tc-0: rgba(110, 214, 168, .22);   /* L পুদিনা */
  --tc-1: rgba(105, 105, 238, .15);   /* D নীলচে-বেগুনি */
  --tc-2: rgba(250, 218, 120, .32);   /* L মাখন-হলুদ */
  --tc-3: rgba(25, 160, 178, .17);    /* D টিল */
  --tc-4: rgba(246, 150, 150, .16);   /* L গোলাপি-প্রবাল */
  --tc-5: rgba(40, 112, 72, .17);     /* D বনসবুজ */
  --tc-6: rgba(190, 150, 236, .22);   /* L ল্যাভেন্ডার */
  --tc-7: rgba(48, 128, 222, .15);    /* D আকাশি-নীল */
  --sb-0: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%2022%20C300%2022%20420%206%20700%2012%20S1000%2026%201200%208%20L1200%2032%20L0%2032%20Z%27/%3E%3C/svg%3E");
  --sa-0: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M%200%2022.6%20C%20300%2022.6%20420%206.6%20700%2012.6%20S%201000%2026.6%201200%208.6%20L1200%200%20L0%200%20Z%27/%3E%3C/svg%3E");
  --sb-1: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%2025%20C300%2025%20400%206%20600%206%20S900%2025%201200%2025%20L1200%2032%20L0%2032%20Z%27/%3E%3C/svg%3E");
  --sa-1: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M%200%2025.6%20C%20300%2025.6%20400%206.6%20600%206.6%20S%20900%2025.6%201200%2025.6%20L1200%200%20L0%200%20Z%27/%3E%3C/svg%3E");
  --sb-2: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%207%20C300%207%20400%2026%20600%2026%20S900%207%201200%207%20L1200%2032%20L0%2032%20Z%27/%3E%3C/svg%3E");
  --sa-2: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M%200%207.6%20C%20300%207.6%20400%2026.6%20600%2026.6%20S%20900%207.6%201200%207.6%20L1200%200%20L0%200%20Z%27/%3E%3C/svg%3E");
  --sb-3: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%206%20C350%204%20800%2010%201200%2027%20L1200%2032%20L0%2032%20Z%27/%3E%3C/svg%3E");
  --sa-3: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M%200%206.6%20C%20350%204.6%20800%2010.6%201200%2027.6%20L1200%200%20L0%200%20Z%27/%3E%3C/svg%3E");
  --sb-4: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%2021%20C200%203%20420%203%20620%2018%20S1000%2033%201200%2014%20L1200%2032%20L0%2032%20Z%27/%3E%3C/svg%3E");
  --sa-4: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M%200%2021.6%20C%20200%203.6%20420%203.6%20620%2018.6%20S%201000%2033.6%201200%2014.6%20L1200%200%20L0%200%20Z%27/%3E%3C/svg%3E");
  --sb-5: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%2022%20C500%2022%20800%2022%201000%2018%20S1150%206%201200%203%20L1200%2032%20L0%2032%20Z%27/%3E%3C/svg%3E");
  --sa-5: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M%200%2022.6%20C%20500%2022.6%20800%2022.6%201000%2018.6%20S%201150%206.6%201200%203.6%20L1200%200%20L0%200%20Z%27/%3E%3C/svg%3E");
  --sb-6: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%2029%20C150%2027%20250%2013%20500%2011%20S900%2011%201200%2011%20L1200%2032%20L0%2032%20Z%27/%3E%3C/svg%3E");
  --sa-6: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M%200%2029.6%20C%20150%2027.6%20250%2013.6%20500%2011.6%20S%20900%2011.6%201200%2011.6%20L1200%200%20L0%200%20Z%27/%3E%3C/svg%3E");
  --sb-7: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%2014%20C250%2030%20450%2030%20650%2016%20S1000%202%201200%2014%20L1200%2032%20L0%2032%20Z%27/%3E%3C/svg%3E");
  --sa-7: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2032%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M%200%2014.6%20C%20250%2030.6%20450%2030.6%20650%2016.6%20S%201000%202.6%201200%2014.6%20L1200%200%20L0%200%20Z%27/%3E%3C/svg%3E");
}
[data-scheme="dark"] {
  --tc-0: rgba(0, 200, 130, .15);
  --tc-1: rgba(120, 120, 255, .17);
  --tc-2: rgba(240, 200, 80, .12);
  --tc-3: rgba(40, 190, 210, .15);
  --tc-4: rgba(255, 130, 130, .12);
  --tc-5: rgba(80, 190, 110, .15);
  --tc-6: rgba(190, 150, 255, .15);
  --tc-7: rgba(70, 150, 240, .16);
}
.tc-0 { --tone: var(--tc-0); } .tc-1 { --tone: var(--tc-1); } .tc-2 { --tone: var(--tc-2); } .tc-3 { --tone: var(--tc-3); } .tc-4 { --tone: var(--tc-4); } .tc-5 { --tone: var(--tc-5); } .tc-6 { --tone: var(--tc-6); } .tc-7 { --tone: var(--tc-7); }
.wt-0 { --m-top: var(--sb-0); } .wb-0 { --m-bot: var(--sa-0); }
.wt-1 { --m-top: var(--sb-1); } .wb-1 { --m-bot: var(--sa-1); }
.wt-2 { --m-top: var(--sb-2); } .wb-2 { --m-bot: var(--sa-2); }
.wt-3 { --m-top: var(--sb-3); } .wb-3 { --m-bot: var(--sa-3); }
.wt-4 { --m-top: var(--sb-4); } .wb-4 { --m-bot: var(--sa-4); }
.wt-5 { --m-top: var(--sb-5); } .wb-5 { --m-bot: var(--sa-5); }
.wt-6 { --m-top: var(--sb-6); } .wb-6 { --m-bot: var(--sa-6); }
.wt-7 { --m-top: var(--sb-7); } .wb-7 { --m-bot: var(--sa-7); }

/* ---------- ডার্ক মোড: গভীর রত্ন-রঙের পটি (অস্বচ্ছ, স্থির) — হালকা মোডের মতোই ৮টি স্পষ্ট আলাদা রঙ ---------- */
[data-scheme="dark"] {
  --tc-0: #0f2b22;   /* গাঢ় পান্না */
  --tc-1: #1b1b3f;   /* গাঢ় নীলকান্ত */
  --tc-2: #2e2414;   /* এসপ্রেসো-সোনালি */
  --tc-3: #0e2e33;   /* গাঢ় টিল */
  --tc-4: #331b26;   /* গাঢ় ওয়াইন */
  --tc-5: #12301d;   /* গভীর বন */
  --tc-6: #271c42;   /* গাঢ় বেগুনি */
  --tc-7: #112641;   /* গাঢ় নৌ-নীল */
}



/* বার্তা-বক্স (যেমন "কপি হয়েছে"): ব্র্যান্ড সবুজ #00A664 ব্যাকগ্রাউন্ড, সাদা লেখা */
.toast { background: #00A664; color: #fff; font-weight: 600; border: 0; box-shadow: 0 10px 28px rgba(0, 166, 100, .32); }

/* মেগা-মেনু (বিষয়সূচি): আয়োজন/বাতায়নের ড্রপডাউনের মতোই মেনুর ঠিক নিচে নামে; তিন কলামের মাঝে সরু দাগ, বিশাল ফাঁক নেই */
.nav__item.has-mega > .mega { top: calc(50% + 29px); }
.site-header.is-compact .nav__item.has-mega > .mega { top: calc(50% + 27px); }
.mega { width: min(740px, calc(100vw - 48px)); padding: 26px 14px; }
.mega__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.mega__col { padding: 2px 28px; border-left: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); min-width: 0; }
.mega__col:first-child { border-left: 0; }

/* ---------- সোশ্যাল/ইমেইল বোতাম: লেখার পাতার শেয়ার-সারির মতোই পুরো সাইটে (ফুটার, সম্পাদক, পরিবার, লেখক) ---------- */
.sbtn { --sb: 38px; width: var(--sb); height: var(--sb); flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: transform .15s, box-shadow .2s, border-color .2s, background .2s, color .2s; }
.sbtn svg { display: block; transition: fill .22s, stroke .22s; }
.sbtn:hover, .sbtn:focus-visible, .site-footer .sbtn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(0, 166, 100, .28); }
.sbtn:hover .ico-stroke, .sbtn:focus-visible .ico-stroke { fill: #fff; stroke: none; }
.sbtn:hover svg:not(.ico-stroke), .sbtn:focus-visible svg:not(.ico-stroke) { stroke: #fff; }
.footer__social { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.footer__social .sbtn { --sb: 36px; }
.member__social { gap: 10px; }
.member__social a.sbtn { width: var(--sb); height: var(--sb); }
.member__social a.sbtn:hover { color: #fff; }
.author-hero__social { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.author-hero__social .sbtn { --sb: 40px; }
@media (max-width: 575.98px) { .footer__social .sbtn { --sb: 40px; } .member__social a.sbtn { --sb: 40px; } }
@media (max-width: 359.98px) { .footer__social { gap: 6px; } .footer__social .sbtn { --sb: 34px; } }

/* মেগা-মেনু: আরও কমপ্যাক্ট — কলাম লেখার মাপ অনুযায়ী, মাঝের ফাঁক কম, সরু দাগ আগের মতোই */
.mega { width: max-content; max-width: calc(100vw - 48px); padding: 24px 10px; }
.mega__cols { grid-template-columns: repeat(3, max-content); justify-content: center; gap: 0; }
.mega__col { padding: 2px 26px; }

/* ফুটারের আইকন: স্টাইল একই, মাপ আগের মতো ছোট (বোতাম ২৮px, ভেতরের চিহ্ন ছোট); ট্যাপের জায়গা অদৃশ্যভাবে বড় */
.footer__social { gap: 9px; }
.footer__social .sbtn { --sb: 28px; position: relative; }
.footer__social .sbtn::after { content: ""; position: absolute; inset: -6px; }
.footer__social .sbtn svg { scale: .7; }
@media (max-width: 575.98px) { .footer__social .sbtn { --sb: 32px; } .footer__social .sbtn svg { scale: .74; } }
@media (max-width: 359.98px) { .footer__social { gap: 6px; } .footer__social .sbtn { --sb: 28px; } .footer__social .sbtn svg { scale: .7; } }

/* পটির কিনারা আবার সোজা (ঢেউ বাদ); রঙ, পাশাপাশি আলাদা রঙের ক্রম ও নিচের সরু রেখা অপরিবর্তিত */
.tone::before {
  top: -40px; bottom: -40px;
  -webkit-mask-image: none; mask-image: none;
}

/* হালকা মোড: পটির রঙ আরেকটু ফিকে (প্রায় ৩০% কম), রঙের ধারা একই */
:root:not([data-scheme="dark"]) {
  --tc-0: rgba(110, 214, 168, .15);
  --tc-1: rgba(105, 105, 238, .105);
  --tc-2: rgba(250, 218, 120, .22);
  --tc-3: rgba(25, 160, 178, .12);
  --tc-4: rgba(246, 150, 150, .11);
  --tc-5: rgba(40, 112, 72, .12);
  --tc-6: rgba(190, 150, 236, .15);
  --tc-7: rgba(48, 128, 222, .105);
}

/* হালকা মোড: আরেকটু ফিকে (বিশেষ করে টিল, গোলাপি, বনসবুজ, ল্যাভেন্ডার, আকাশি) */
:root:not([data-scheme="dark"]) {
  --tc-0: rgba(110, 214, 168, .13);
  --tc-1: rgba(105, 105, 238, .09);
  --tc-2: rgba(250, 218, 120, .19);
  --tc-3: rgba(25, 160, 178, .09);
  --tc-4: rgba(246, 150, 150, .08);
  --tc-5: rgba(40, 112, 72, .09);
  --tc-6: rgba(190, 150, 236, .11);
  --tc-7: rgba(48, 128, 222, .075);
}

/* ======================= [পরীক্ষামূলক-২] পটির রঙ ওপরে পূর্ণ, নিচের দিকে আস্তে আস্তে ফিকে হয়ে শূন্য =======================
   বাতিল করতে চাইলে এই কমেন্ট থেকে "শেষ" কমেন্ট পর্যন্ত পুরো অংশ মুছে দিন (বা এই কমিটটা revert করুন) — আগের সমতল রঙ ফিরে আসবে। */
.tone::before { background: linear-gradient(to bottom, var(--tone) 0%, transparent 100%); }
/* ======================= [পরীক্ষামূলক-২] শেষ ======================= */

/* মেগা-মেনু: এখন "বিষয়সূচি" লিংকের ঠিক নিচে (অন্য ড্রপডাউনের মতোই), পাতার মাঝখানে নয় */
.nav__item.has-mega { position: relative; }
.nav__item.has-mega > .mega, .site-header.is-compact .nav__item.has-mega > .mega { top: calc(100% + 10px); left: 50%; transform: translate(calc(-50% + var(--mx, 0px)), 6px); }
.nav__item.has-mega:hover > .mega, .nav__item.has-mega.is-open > .mega { transform: translate(calc(-50% + var(--mx, 0px)), 0); }

/* অনুসন্ধান-বক্সে "Esc"-এর জায়গায় সবুজ "খুঁজুন" বোতাম (পিসি ও মোবাইল দুই জায়গায়) */
.sx__go { flex: none; height: 40px; min-height: 0; padding: 0 20px; font-size: 15px; border-radius: 10px; }
@media (max-width: 575.98px) { .sx__go { height: 38px; padding: 0 16px; font-size: 14.5px; } }

/* বক্স/পিল (বিষয়ের উপ-বিভাগ, লেখকের বিভাগ-ছাঁকনি, বিষয়-তালিকা): ছায়া ছাড়া, সরু বর্ডার; মাউস নিলে পুরো বক্স ব্র্যান্ড সবুজ — আইকন-বোতামের মতোই */
.pill-lg, .chip-btn {
  background: var(--surface); border: 1px solid var(--line); box-shadow: none; color: var(--text);
  transition: transform .15s, box-shadow .2s, border-color .2s, background .2s, color .2s;
}
.pill-lg:hover, .pill-lg:focus-visible, .chip-btn:hover, .chip-btn:focus-visible {
  transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(0, 166, 100, .28);
}
.pill-lg:hover .count, .pill-lg:focus-visible .count, .chip-btn:hover .count, .chip-btn:focus-visible .count { color: #e6fff4; }
.pill-lg.is-active, .chip-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: none; }
.pill-lg.is-active:hover, .chip-btn.is-active:hover { box-shadow: 0 8px 20px rgba(0, 166, 100, .28); }

/* ---------- বার্তা-পপআপ (টোস্ট): কেয়ারির ব্র্যান্ড-স্টাইলে — সবুজ গ্রেডিয়েন্ট, ছোট লোগো-চিহ্ন, নরম অ্যানিমেশন ---------- */
.toast { display: flex; align-items: center; gap: 10px; background: linear-gradient(180deg, #1bb97a 0%, #00A664 58%, #008c55 100%); color: #fff; padding: 10px 20px 10px 10px; border: 0; border-radius: 14px; font-size: 15px; font-weight: 600; line-height: 1.4; max-width: min(440px, calc(100vw - 32px)); box-shadow: 0 14px 34px rgba(0, 166, 100, .35), 0 2px 6px rgba(0, 0, 0, .08); animation: toast-in .3s cubic-bezier(.22, .61, .36, 1); }
.toast[hidden] { display: none; }
.toast__ico { width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .96); color: #00A664; display: grid; place-items: center; }
.toast__ico svg { width: 15px; height: 15px; fill: currentColor; display: block; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* মন্তব্যের নিচের বার্তা: ব্র্যান্ড-রঙের নরম বক্স */
.cm__msg.is-ok { background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 12px; padding: 10px 14px; }
.cm__msg.is-err { background: rgba(192, 57, 43, .08); border: 1px solid rgba(192, 57, 43, .3); border-radius: 12px; padding: 10px 14px; }

/* বার্তা-পপআপ: লোগো ছাড়া, শুধু ব্র্যান্ড সবুজ বক্স ও লেখা */
.toast { padding: 12px 22px; text-align: center; justify-content: center; }

/* ---------- টীকা: লেখার ভেতরে গোল ব্র্যান্ড-সবুজ নম্বর + মিনিমাল পপআপ ---------- */
.fn-ref { line-height: 0; }
.fn-dot { display: inline-grid; place-items: center; min-width: 1.55em; height: 1.55em; padding: 0 .3em; margin: 0 .12em; box-sizing: border-box; border: 0; border-radius: 50%; background: var(--accent); color: #fff; font: inherit; font-size: .62em; font-weight: 700; line-height: 1; vertical-align: .75em; cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s; }
.fn-dot:hover, .fn-dot:focus-visible { background: var(--accent-hover, #00955A); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 166, 100, .35); }
.js .footnotes { display: none; }
.fnp { position: fixed; inset: 0; z-index: 620; display: grid; place-items: center; padding: 20px; }
.fnp[hidden] { display: none; }
.fnp__backdrop { position: absolute; inset: 0; background: rgba(24, 24, 40, .38); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); animation: sx-fade .25s ease both; }
.fnp__panel { position: relative; width: min(440px, 100%); max-height: min(78vh, 560px); overflow-y: auto; padding: 22px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(24, 24, 40, .3); animation: sx-in .28s cubic-bezier(.22, .61, .36, 1) both; }
.fnp__num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.fnp__text { font-size: 17px; line-height: 1.85; color: var(--text); overflow-wrap: anywhere; padding-right: 8px; }
.fnp__x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.fnp__x:hover, .fnp__x:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
body.fnp-open { overflow: hidden; }
@media (max-width: 575.98px) { .fnp { padding: 16px; } .fnp__panel { padding: 20px 20px 22px; } .fnp__text { font-size: 16.5px; } }

/* টীকার নম্বর: লাইনের সামান্য ওপরে (বইয়ের মতো); বন্ধনী-ধরন ব্র্যান্ড সবুজ লেখা */
.fn-dot { vertical-align: .58em; }
.fn-dot--paren, .fn-dot--square { min-width: 0; height: auto; padding: 0 .1em; margin: 0 .08em; border-radius: 0; background: none; color: var(--accent); font-size: .8em; vertical-align: .48em; }
.fn-dot--paren:hover, .fn-dot--paren:focus-visible, .fn-dot--square:hover, .fn-dot--square:focus-visible { background: none; color: var(--accent-hover, #00955A); box-shadow: none; transform: none; text-decoration: underline; text-underline-offset: 3px; }

/* টীকার নম্বর: ছোট, লাইনের একেবারে হালকা ওপরে (বেসলাইনের ঠিক ওপরে) */
.fn-dot { font-size: .52em; min-width: 1.4em; height: 1.4em; padding: 0 .18em; margin: 0 .1em 0 .12em; vertical-align: 0; }
.fn-dot--paren, .fn-dot--square { font-size: .64em; min-width: 0; height: auto; padding: 0 .06em; margin: 0 .06em; vertical-align: .28em; }
.fn-dot { font-size: .56em; min-width: 1.4em; height: 1.4em; vertical-align: .14em; }
.fn-dot--paren, .fn-dot--square { font-size: .7em; vertical-align: .3em; }
.fn-ref { font-size: inherit; vertical-align: baseline; line-height: 0; }
.fn-dot { font-size: .56em; vertical-align: .32em; }
.fn-dot--paren, .fn-dot--square { font-size: .72em; vertical-align: .3em; }

/* টীকার সার্কেল: আইকন-বোতামের মতো — সাধারণ অবস্থায় শুধু সবুজ সার্কেল-রেখা (ভেতর ফাঁকা), মাউস নিলে পুরো সার্কেল সবুজ */
.fn-dot:not(.fn-dot--paren):not(.fn-dot--square) { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }
.fn-dot:not(.fn-dot--paren):not(.fn-dot--square):hover, .fn-dot:not(.fn-dot--paren):not(.fn-dot--square):focus-visible { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 5px 14px rgba(0, 166, 100, .32); }

/* টীকার নম্বর: সার্কেল/বন্ধনীর ঠিক মাঝখানে (অক্ষরের আসল মাপ ধরে সূক্ষ্ম সরণ) */
.fn-n { display: inline-block; line-height: 1; transform: translate(var(--dx, 0), var(--dy, 0)); }
.fn-dot--paren, .fn-dot--square { display: inline-flex; align-items: center; white-space: nowrap; }

/* ---------- মুখপাতার রঙিন পটি: নিজের ভেতরেই সম্পূর্ণ (কিছু মুছলে/সরালে অন্যটির ওপর উঠবে না) ----------
   আগে পটি নিজের বাইরে ৪০px বেরিয়ে প্রতিবেশীর ওপর উঠত; এখন পটি ঠিক নিজের বক্সের মাপেই, ফাঁকা জায়গা পটির ভেতরের প্যাডিং।
   পাশাপাশি দুই পটি কোনো ফাঁক/ওভারল্যাপ ছাড়া জোড়া লাগে; পটির সামনে-পেছনে পটি-ছাড়া কিছু থাকলে আলাদা ফাঁক থাকে। */
.tone, .home .hero.tone, .feed-wrap.tone { margin-top: 0; margin-bottom: 0; padding-top: 40px; padding-bottom: 40px; }
.tone::before { top: 0; bottom: 0; }
.home :not(.tone) + .tone { margin-top: 48px; }
.home .tone:has(+ :not(.tone)) { margin-bottom: 56px; }

/* কার্ডের সারাংশ: লেখার লাইন যেমন, কার্ডেও তেমন — প্রতিটি লাইন/অনুচ্ছেদ নতুন লাইনে (কবিতা ও গল্প দুটোতেই) */
.card__excerpt .ln { display: block; text-align: left; }
.card__excerpt .ln:only-child { text-align: justify; }

/* মোবাইলে হিরো কখনো পর্দার চেয়ে চওড়া হবে না: লম্বা শিরোনাম (nowrap) গ্রিডকে ঠেলে বড় করত, ফলে হেডার-হিরো অন্য অংশের চেয়ে বড় দেখাত */
.home .hero { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .home .hero { grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr); } }
.hero__main, .hero__side, .hero__body, .hero__side .card-s, .card-s__body { min-width: 0; }
.card-s__body { max-width: 100%; }
/* কোনো একটি উপাদান ভুলেও পাতাকে আড়াআড়ি চওড়া করলে পুরো পাতা যেন বড় হয়ে না যায় */
html, body { overflow-x: clip; }

/* মন্তব্যের বট-যাচাই (Turnstile): সাধারণত অদৃশ্য; সন্দেহ হলে তবেই ছোট বক্স দেখায় */
.cm__ts:empty { display: none; }
.cm__ts { min-height: 0; }

/* ---------- পপ-আপ বিজ্ঞাপন ---------- */
.kp { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
  background: rgba(12, 18, 16, .55); -webkit-backdrop-filter: blur(7px) saturate(115%); backdrop-filter: blur(7px) saturate(115%);
  opacity: 0; transition: opacity .28s ease; }
.kp[hidden] { display: none; }
.kp.is-in { opacity: 1; }
.kp__box { position: relative; width: min(860px, 100%); max-height: calc(100vh - 40px); transform: translateY(14px) scale(.96); opacity: 0;
  transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .28s ease; }
.kp.is-in .kp__box { transform: none; opacity: 1; }
.kp__link, .kp__box picture { display: block; }
.kp__img { display: block; width: 100%; height: auto; max-height: calc(100vh - 40px); object-fit: contain; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); background: #fff; }
.kp__close { position: absolute; top: -14px; right: -14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: #fff; color: #29294B; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: transform .15s ease; }
.kp__close:hover { transform: scale(1.08); }
.kp__close:focus-visible { outline: 3px solid var(--accent, #00A664); outline-offset: 2px; }
body.kp-open { overflow: hidden; }
@media (max-width: 640px) {
  .kp { padding: 18px; }
  .kp__box { width: min(400px, 100%); }
  .kp__img { max-height: calc(100vh - 90px); border-radius: 16px; }
  .kp__close { top: -12px; right: -8px; width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .kp, .kp__box { transition: none; } }

/* ---------- পড়ার পাতা (আপনকথা, বিশেষ বার্তা, আয়োজনের সম্পাদকীয়): লেখার আকার আর্টিকেলের মতো ---------- */
.entry-content--page { font-size: var(--art-size, 20px); line-height: 1.95; }
@media (max-width: 767.98px) { .entry-content--page { font-size: var(--art-size, 19px); } }

/* ---------- লেখকের পাতা: নামের নিচে পরিচয় • শহর ---------- */
.author-hero__name:has(+ .author-hero__sub) { margin-bottom: 6px; }
.author-hero__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-bottom: 18px; font-size: 17px; font-weight: 600; color: var(--accent-ink); }
.author-hero__dot { font-size: 11px; opacity: .7; }
@media (max-width: 767.98px) { .author-hero__sub { justify-content: center; } }

/* ---------- লেখার নিচে "শেয়ার করুন": "মন্তব্য করুন"-এর মতোই আকার ও ধরন ---------- */
.share-row__label { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-right: 10px; }

/* ---------- লেখার ভেতরে ইমেইলের পাশে কপি-আইকন ---------- */
.copy-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 6px; vertical-align: middle; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--accent-ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.copy-ico:hover, .copy-ico:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.copy-ico svg { width: 15px; height: 15px; }

/* ---------- ফুটার: ক্রম কেয়ারি | যোগাযোগ | সাথে থাকুন | সম্পাদক; ওপরের দাগ থেকে রঙিন পটি নিচে ফিকে হয়ে মিলিয়ে যায় ---------- */
.sf--tone { position: relative; isolation: isolate; }
.sf--tone::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: linear-gradient(to bottom, var(--tone) 0%, transparent 100%); pointer-events: none; }
@media (max-width: 991.98px) {
  .sf__brand { order: 0; } .sf__contact { order: 1; } .sf__editor { order: 2; } .sf__follow { order: 3; }
}
@media (max-width: 575.98px) {
  .sf__contact { border-left: 0; }
  .sf__editor { border-left: 1px solid var(--line); }
}
@media (max-width: 359.98px) {
  .sf__top { grid-template-columns: 1.15fr .85fr; }
}

/* ---------- মুখপাতার হিরো: নিচের সারিতে আরও ৩টি লেখা (বড় কার্ডের মতো — ওপরে ছবি, নিচে লেখা) ---------- */
.hero__row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 8px; }
.hero-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.hero-card__media { display: block; }
.hero-card__img, .hero-card .ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-card__body { padding: 20px 24px 24px; min-width: 0; }
.hero-card__title { font-size: 21px; line-height: 1.32; margin: 6px 0 8px; letter-spacing: -0.02em; }
.hero-card__excerpt { font-size: 15px; line-height: 1.7; color: var(--text-muted); text-align: justify; text-justify: inter-word; }
@media (max-width: 1199.98px) { .hero__row { gap: 24px; } .hero-card__body { padding: 18px 18px 22px; } }
@media (max-width: 767.98px) { .hero__row { grid-template-columns: 1fr; gap: 28px; } .hero-card__title { font-size: 20px; } }

/* ---------- আয়োজনের পাতা: শিরোনাম ও উপশিরোনাম বাঁয়ে (লেখার পাতার মতো), ব্যানারের বাঁ কিনারা বরাবর ---------- */
.page--ayojon .page-hero { text-align: left; max-width: 1000px; margin: 0 auto; padding: 24px 0 28px; }
.page--ayojon .page-lead { text-align: left; margin-top: 8px; }

/* ---------- লেখকের পাতা: "লেখাগুচ্ছ" ওপরের দাগ ও নিচের দাগের ঠিক মাঝখানে ---------- */
.author-hero { margin-bottom: 22px; }
.author-works .sec-head { padding-bottom: 22px; }

/* ---------- আলো/আঁধার: দুটো আলাদা বোতাম (বাক্সটা নিজে বোতাম নয়) ---------- */
.scheme-toggle__opt { border: 0; padding: 0; margin: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.scheme-toggle__opt[aria-pressed="true"] { cursor: default; }
.scheme-toggle__opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- প্রথমবার সাইটে ঢুকলে লোগো-অ্যানিমেশন (প্রতি ট্যাবে একবার; গতি কমানো পছন্দ করলে দেখায় না) ---------- */
.kintro { display: none; }
html.k-intro:not(.k-intro-done) { overflow: hidden; }
html.k-intro .kintro { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; height: 100vh; height: 100dvh; background: var(--bg-start); transition: opacity .4s ease, visibility .4s; }
.kintro.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.kintro__logo { width: clamp(150px, 30vw, 240px); margin-top: -2vh; }
.kintro__logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.kintro__logo svg * { fill: var(--accent); fill-opacity: 0; stroke: var(--accent); stroke-width: 9; stroke-linejoin: round; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: k-ld .7s cubic-bezier(.6, 0, .3, 1) both, k-lf .5s ease-out both, k-lw .7s cubic-bezier(.6, 0, .3, 1) both; }
@keyframes k-lw { from { clip-path: inset(-10px 100% -10px -10px); } to { clip-path: inset(-10px -10px -10px -10px); } }
@keyframes k-ld { to { stroke-dashoffset: 0; } }
@keyframes k-lf { to { fill-opacity: 1; stroke-opacity: 0; } }
@media print { .kintro { display: none !important; } }

/* ---------- মাপ (মালিকের নির্দেশ, নভেম্বর ২০২৬): ওপরের স্লাইডার কম্পিউটারে ৩:১ (২৪০০×৮০০), ফোনে ১৬:৯ (১৯২০×১০৮০);
   বিজ্ঞাপন কম্পিউটারে ৩:১ (২৪০০×৮০০), স্লাইডারের সমান চওড়া; ফোনে আলাদা ছবি থাকলে ১৬:৯ ---------- */
.ad-slider { max-width: var(--container); }
@media (max-width: 767.98px) {
  .banner-slider .slider__track { aspect-ratio: var(--bn-m, var(--bn-d, 3/1)); }
  .banner-slider .slide--fit picture, .banner-slider .slide--fit img { object-fit: contain; background: var(--surface); }
}
/* বিজ্ঞাপনের ছবি কখনো কাটা পড়বে না (লেখা থাকে) — মাপ না মিললে পুরো ছবি, পাশে হালকা পটভূমি */
.ad-slider .slide picture, .ad-slider .slide img { object-fit: contain; background: var(--surface); }

/* ===================== আরবি লেখা (হাফস ফন্ট, ডান থেকে বাঁয়ে) — সম্পাদকের "আরবি" ও "আয়াত" টুল ===================== */
.ar { font-family: 'Keyari Hafs', 'Noto Serif by Gunjoron', serif; direction: rtl; unicode-bidi: isolate; font-style: normal; hyphens: none; letter-spacing: 0; word-spacing: normal; }
.entry-content p.ar, .entry-content div.ar, .entry-content blockquote.ar, .entry-content li.ar, .entry-content h2.ar, .entry-content h3.ar, .entry-content h4.ar {
  text-align: right; text-align-last: auto; text-indent: 0; font-size: 1.45em; line-height: 2.15; margin-bottom: .9em; }
.entry-content span.ar { font-size: 1.3em; line-height: 1; }
.entry-content .ar.ar-center { text-align: center; }
.entry-content .ar.ar-box { padding: .7em 1.1em; border-radius: 14px; background: color-mix(in srgb, var(--accent) 6%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); --ar-bg: color-mix(in srgb, var(--accent) 6%, var(--bg-start)); }
.entry-content .ar.ar-frame { padding: .6em 1em; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.entry-content .ar.ar-s { font-size: 1.2em; } .entry-content .ar.ar-l { font-size: 1.75em; } .entry-content .ar.ar-xl { font-size: 2.1em; line-height: 2; }
.ar.ar-thin, .ar .ar-thin { font-weight: 400; }
.ar.ar-heavy, .ar .ar-heavy { -webkit-text-stroke: .018em currentColor; }
.ar.ar-green { color: var(--accent-ink); }
/* আয়াতের শেষে নম্বর: হাফস ফন্টে আরবি সংখ্যা নিজেই আয়াত-চিহ্নের ভেতরে আঁকা হয় */
.ayah { font-family: 'Keyari Hafs', serif; font-size: 1.12em; font-style: normal; font-weight: 400; -webkit-text-stroke: 0; white-space: nowrap; margin: 0 .1em; color: var(--accent-ink); direction: rtl; unicode-bidi: isolate; }

/* ===== বিজ্ঞাপন ও স্লাইডারের চারপাশে সমান ফাঁকা (২৭ নভেম্বর) =====
   আগের অংশের লেখা → বিজ্ঞাপন, আর বিজ্ঞাপন → পরের অংশের শিরোনাম: দুদিকে একই দূরত্ব
   (অংশের নিজের ভেতরের ফাঁকা ৪০ + এই --ad-gap)। লাগানোও নয়, বেশি ফাঁকাও নয়। */
.home { --ad-gap: 24px; }
@media (max-width: 767.98px) { .home { --ad-gap: 16px; } }
.home .ad-slider { margin-top: var(--ad-gap); margin-bottom: var(--ad-gap); }
.home .ad-slider + .tone, .home .banner-slider + .tone { margin-top: var(--ad-gap); }
.home .tone:has(+ .banner-slider) { margin-bottom: 0; }
/* আয়োজন পাতা: সম্পাদকের কথা → লেখার তালিকা, মাঝে মাপা ফাঁকা (আগে ~১৬০px) */
.page--ayojon { padding-bottom: 0; }
.ay-editorial > :last-child { margin-bottom: 0; }
.ay-editorial { margin-bottom: 56px; }
@media (min-width: 768px) { .ay-editorial { margin-bottom: 64px; } }

/* ===== মন্তব্য: উত্তর ও পছন্দ (২৮ নভেম্বর) ===== */
.cm__thread { border-bottom: 1px solid var(--line); }
.cm__thread .cm__item { border-bottom: 0; }
.cm__kids { margin-left: 56px; border-left: 2px solid color-mix(in srgb, var(--accent) 30%, var(--line)); padding-left: 16px; }
.cm__kids:empty { display: none; }
.cm__item--reply { padding: 14px 0; }
.cm__item--reply .cm__avatar { width: 34px; height: 34px; font-size: 15px; }
.cm__avatar.is-staff { background: var(--accent); }
.cm__staff { padding: 1px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--highlight); color: var(--accent-ink); }
.cm__to { display: inline-block; margin-top: 4px; font-size: 13.5px; color: var(--accent-ink); font-weight: 600; }
.cm__acts { display: flex; gap: 6px; margin-top: 8px; margin-left: -8px; }
.cm__act { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 99px; background: none; color: var(--text-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.cm__act:hover, .cm__act:focus-visible { background: var(--highlight); color: var(--accent-ink); }
.cm__like svg path { fill: none; }
.cm__like.is-on { color: #e0245e; }
.cm__like.is-on svg path { fill: currentColor; }
.cm__like.is-on:hover { color: #e0245e; }
.cm__rform { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; padding: 16px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.cm__rform .cm__name { flex: none; height: auto; }
.cm__rform textarea, .cm__rform .cm__name { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg-start, #fff); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px; }
.cm__rform textarea { resize: vertical; line-height: 1.7; min-height: 84px; }
.cm__rform textarea:focus, .cm__rform .cm__name:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.cm__rrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cm__cancel { border: 0; background: none; color: var(--text-muted); font: inherit; font-weight: 600; padding: 8px 12px; border-radius: 99px; cursor: pointer; }
.cm__cancel:hover { background: var(--highlight); }
@media (max-width: 575.98px) {
  .cm__kids { margin-left: 18px; padding-left: 12px; }
  .cm__rform .cm__send { width: auto; flex: 1; }
}

/* ===== হিরোর নিচে ২টি লেখা: ডানের ছোট কার্ডের মতো (বাঁয়ে লেখা, ডানে ছবি), বাঁ-ডান কিনারা বরাবর, নিচে দাগ (২৮ নভেম্বর) ===== */
.hero__duo { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 40px; margin-top: 8px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.home .hero.tone:has(.hero__duo) { padding-bottom: 16px; }
/* কার্ড দুটো বাঁ ও ডান কিনারা পর্যন্ত; ছবি আগের মাপেই (ডানের কার্ডের ছবির সমান), বাড়তি জায়গা লেখার */
.hero__duo .card-s { flex: 1 1 0; display: flex; align-items: stretch; gap: 22px; height: 190px; margin: 0; padding: 0; border-bottom: 0; min-width: 0; }
.hero__duo .card-s__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
@media (min-width: 992px) { .hero__duo .card-s__media { flex: 0 0 clamp(190px, 43.9%, 320px); } }
@media (min-width: 992px) and (max-width: 1199.98px) { .hero__duo .card-s { height: 160px; } .hero__duo .card-s__excerpt { -webkit-line-clamp: 3; line-clamp: 3; } }
@media (max-width: 991.98px) {
  .hero__duo { flex-direction: column; gap: 0; padding-bottom: 32px; }
  .hero__duo .card-s { flex: none; width: 100%; height: 196px; padding: 24px 0; border-top: 1px solid var(--line); }
  .hero__duo .card-s__excerpt { -webkit-line-clamp: 3; line-clamp: 3; }
}
@media (max-width: 575.98px) {
  .hero__duo .card-s { flex-direction: column-reverse; height: auto; gap: 14px; }
  .hero__duo .card-s__img, .hero__duo .card-s .ph { height: auto; aspect-ratio: 16 / 9; }
}

/* ===== লেখার পাতা: শিরোনামের ওপরের উপশিরোনাম — নিচের উপশিরোনামের মতোই (১ ডিসেম্বর) ===== */
.entry-header .entry-kicker { margin: 0 0 6px; }
/* সংখ্যাগুচ্ছ ও আয়োজনের কার্ড: সবুজ সংখ্যা-লেবেল নেই, নিচে মাস ও সাল */
.card-g--coll .card-g__by { color: var(--text-muted); }

/* ===== হেডার ও ফুটার: একরঙা পটভূমি, গ্রেডিয়েন্ট নয় — মালিকের দেওয়া রং #E9F5F5, আঁধারে তারই গাঢ় সংস্করণ (১ ডিসেম্বর) ===== */
:root { --chrome: #E9F5F5; }
[data-scheme="dark"] { --chrome: #15201F; }
.site-header { background: var(--chrome) !important; }
.sf--tone::before { background: var(--chrome) !important; }
/* ফুটারের যোগাযোগ: আইকন */
.footer__social--contact { justify-content: center; flex-wrap: wrap; }
/* ফোনে: যোগাযোগ | সাথে থাকুন পাশাপাশি, সম্পাদক (নাম ও আইকন) সবার নিচে পুরো চওড়ায় */
@media (max-width: 991.98px) {
  .sf__contact { order: 1; grid-column: auto; } .sf__follow { order: 2; grid-column: auto; } .sf__editor { order: 3; grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .sf__contact { border-left: 0; }
  .sf__follow { border-left: 1px solid var(--line); }
  .sf__contact, .sf__follow { justify-content: flex-start; align-self: stretch; gap: 10px; padding: 6px 10px !important; margin: 0 !important; }
  .sf__contact .sf__heading, .sf__follow .sf__heading { margin: 0 !important; }
  .sf__contact .footer__social, .sf__follow .footer__social { margin: 0 !important; }
  .sf__editor { border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}

/* ===== বিষয়সূচির কার্ড: বিবরণ ও লেখার সংখ্যা নেই — একটু ছোট, সব কার্ড সমান (১ ডিসেম্বর) ===== */
.topic-card__body { padding: 18px 22px 20px; }
.topic-card__kids { margin-top: 10px; }

/* ===== লেখার কার্ড: শিরোনাম এক লাইনে ("…"), নিচে উপশিরোনাম (থাকলে) এক লাইনে; হিরোতে লেখক · তারিখ লেখার নিচে (১ ডিসেম্বর) ===== */
.card-g__title, .hero__title, .card-s__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-g__title a, .hero__title a, .card-s__title a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sub { margin: -2px 0 6px; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__sub { font-size: 17px; margin: 0 0 8px; }
.hero__body .hero__by { margin: 12px 0 0; }
.card-s__body .card-g__by { margin-top: auto; padding-top: 6px; font-size: 13px; }
.card-s__body { display: flex; flex-direction: column; }
/* ছোট কার্ডে উপশিরোনাম থাকলে লেখার অংশ এক লাইন কম, যাতে বাক্সের ভেতরেই থাকে */
.card-s .card-sub + .card-s__excerpt { -webkit-line-clamp: 2; line-clamp: 2; }
@media (min-width: 992px) { .hero__side .card-s__excerpt, .hero__duo .card-s__excerpt { -webkit-line-clamp: 3; line-clamp: 3; } .card-s .card-sub + .card-s__excerpt { -webkit-line-clamp: 2; line-clamp: 2; } }
.card-s__body .card-g__by { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; min-width: 0; }
.card-s__body .card-g__by .card__author { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.card-s__body .card-g__by time { flex: none; }

/* ===== ফোনের ফুটার: "সাথে থাকুন"-এর আইকন শিরোনামের নিচে মাঝখানে; সব আইকন একটু ছোট (১ ডিসেম্বর) ===== */
@media (max-width: 575.98px) {
  .sf__follow { flex-direction: column; flex-wrap: nowrap; align-items: center; }
  .sf__follow .sf__heading { flex: none; }
  .sf__contact .footer__social, .sf__follow .footer__social, .sf__editor .footer__social { justify-content: center; gap: 6px; }
  .footer__social .sbtn { --sb: 28px; }
  .footer__social .sbtn svg { scale: .66; }
}
@media (max-width: 359.98px) { .footer__social .sbtn { --sb: 26px; } }

/* ===== অটো-স্ক্রলের নাম-ইঙ্গিত বোতামের ওপরে — পাশের লেখা বড়-ছোট/চালু বোতাম ঢাকে না (১ ডিসেম্বর) ===== */
.autoscroll__tip { right: auto; left: 50%; top: auto; bottom: calc(100% + 16px); transform: translate(-50%, 6px); }
.autoscroll__fab:hover .autoscroll__tip { transform: translate(-50%, 0); }

/* ===== নীতি ও শর্তাবলির পাতা + ফুটারের নিচের লাইনে নীতির লিংক (১ ডিসেম্বর) ===== */
.page--legal { max-width: 860px; margin: 0 auto; }
.page--legal .page-hero { text-align: center; }
.legal-meta { margin: 10px 0 0; font-size: 14px; color: var(--text-muted); }
.legal-body h2 { scroll-margin-top: calc(var(--header-h, 72px) + 16px); margin-top: 1.8em; padding-top: .9em; border-top: 1px solid var(--line); color: var(--accent-ink); font-size: 1.2em; }
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { font-size: 1.02em; margin: 1.3em 0 .5em; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .86em; line-height: 1.6; }
.legal-body th, .legal-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-body th { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent-ink); font-weight: 700; }
.legal-body ol, .legal-body ul { padding-left: 1.3em; }
.legal-body li { margin: .25em 0; }
@media (max-width: 767.98px) {
  .legal-body table { font-size: .8em; }
  .legal-body th, .legal-body td { padding: 8px; }
}
.sf__legal { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.sf__legal a { color: var(--text-muted); transition: color .2s; }
.sf__legal a:hover { color: var(--accent-ink); }
.sf__dot { opacity: .6; }
.sf__bottom { justify-content: center; text-align: center; }
/* ফোনে: প্রথম সারিতে মালিকানা | বিনির্মাণে, দ্বিতীয় সারিতে নীতির লিংক — দুটোই মাঝখানে */
@media (max-width: 767.98px) {
  .sf__bottom > .sf__bar:nth-of-type(2) { display: none; }
  .sf__legal { flex-basis: 100%; }
}

