@font-face { font-family: 'Noto Sans Bengali'; src: url(/fonts/NotoSansBengali-400-bengali.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Noto Sans Bengali'; src: url(/fonts/NotoSansBengali-600-bengali.woff2) format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Noto Sans Bengali'; src: url(/fonts/NotoSansBengali-700-bengali.woff2) format('woff2'); font-weight: 700 800; font-display: swap; }

:root {
  --pink: #EE0757; --pink-ink: #C8004A; --tint: #FFE6EF; --tint-2: #FFF3F7;
  --turmeric: #F5B700; --turmeric-ink: #6A4A00; --turmeric-wash: #FFF1C9;
  --green: #0B7A43; --green-ink: #075A31; --green-wash: #E3F3EA;
  --red: #B42318; --red-wash: #FDECEA;
  --blue: #2F5BD3; --blue-wash: #E8EEFC;
  --ground: #F6F4F3; --card: #FFFFFF; --well: #EEEBE9; --rim: #E3DFDC; --rim-2: #CDC7C3;
  --ink: #1A1518; --ink-2: #463F43; --ink-3: #625A5F;
  --r-s: 10px; --r-m: 16px; --r-l: 22px;
  --sh: 0 1px 2px rgb(26 21 24 / .06), 0 12px 28px -20px rgb(26 21 24 / .45);
  --font: 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --col: 72ch;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.75 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-ink); text-underline-offset: 3px; }
b, strong { font-weight: 700; }
kbd, .k { display: inline-block; padding: 0 .45em; border: 1px solid var(--rim-2); border-bottom-width: 2px; border-radius: 6px; background: var(--card); font: 600 .9em/1.6 var(--font); white-space: nowrap; }

.m-top { position: sticky; top: 0; z-index: 10; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 max(16px, calc((100vw - 1180px) / 2)); background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rim); }
.m-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; }
.m-brand img { width: 34px; height: 34px; border-radius: 9px; }
.m-brand small { font-weight: 500; color: var(--ink-3); font-size: 15px; }
.m-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.m-nav a { padding: 7px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.m-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.m-nav a:hover:not([aria-current]) { background: var(--well); }

.m-wrap { display: grid; grid-template-columns: minmax(0, var(--col)) 230px; gap: 56px; max-width: 1180px; margin: 0 auto; padding: 40px 16px 96px; justify-content: center; }
.m-page { min-width: 0; }
.m-toc { position: sticky; top: 92px; align-self: start; font-size: 14.5px; }
.m-toc p { margin: 0 0 8px; color: var(--ink-3); font-weight: 700; font-size: 13px; }
.m-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rim); }
.m-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.45; }
.m-toc a.on { border-color: var(--pink); color: var(--pink-ink); font-weight: 600; }

.m-hero { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--rim); }
.m-kicker { margin: 0 0 6px; color: var(--pink-ink); font-weight: 700; font-size: 15px; }
h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 44px); line-height: 1.25; font-weight: 800; }
.m-lede { margin: 0 0 20px; color: var(--ink-2); font-size: 19px; }
.m-can { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.m-can li { position: relative; padding: 10px 14px 10px 44px; background: var(--card); border: 1px solid var(--rim); border-radius: var(--r-s); line-height: 1.55; }
.m-can li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.m-can li.no::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 11px no-repeat; }

.m-task { padding: 36px 0 8px; }
.m-task + .m-task { border-top: 1px solid var(--rim); }
h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.35; font-weight: 800; }
h3 { margin: 22px 0 6px; font-size: 19px; font-weight: 700; }
.m-when { margin: 0 0 14px; color: var(--ink-3); }
.m-steps { list-style: none; counter-reset: s; margin: 0 0 18px; padding: 0; }
.m-steps > li { counter-increment: s; position: relative; padding: 0 0 12px 46px; }
.m-steps > li::before { content: counter(s, bengali); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.m-btn { display: inline-block; padding: 0 .55em; border-radius: 8px; background: var(--tint); color: var(--pink-ink); font-weight: 700; white-space: nowrap; }

.m-shot { margin: 18px 0 22px; padding: 10px; background: var(--well); border: 1px solid var(--rim); border-radius: var(--r-m); }
.m-shot img { border-radius: 10px; box-shadow: var(--sh); background: #fff; }
.m-shot figcaption { padding: 10px 4px 2px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.m-shot.phone { max-width: 340px; }
.m-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.m-shots .m-shot { margin: 0; max-width: none; }

.m-tip, .m-warn, .m-why { margin: 14px 0; padding: 14px 16px 14px 18px; border-radius: var(--r-s); border-left: 4px solid; }
.m-tip p, .m-warn p, .m-why p { margin: 0; }
.m-tip { background: var(--green-wash); border-color: var(--green); }
.m-warn { background: var(--turmeric-wash); border-color: var(--turmeric); }
.m-why { background: var(--blue-wash); border-color: var(--blue); }
.m-tip::before, .m-warn::before, .m-why::before { display: block; font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.m-tip::before { content: "কাজের কথা"; color: var(--green-ink); }
.m-warn::before { content: "সাবধান"; color: var(--turmeric-ink); }
.m-why::before { content: "কেন এমন"; color: var(--blue); }

.m-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 24px; padding: 0; list-style: none; }
.m-flow li { padding: 14px; background: var(--card); border: 1px solid var(--rim); border-radius: var(--r-s); font-size: 15px; line-height: 1.55; }
.m-flow b { display: block; font-size: 16px; margin-bottom: 4px; }
.m-flow .who { display: inline-block; margin-bottom: 6px; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--tint); color: var(--pink-ink); }

.m-table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 15.5px; background: var(--card); border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--rim); }
.m-table th, .m-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rim); vertical-align: top; line-height: 1.55; }
.m-table th { background: var(--well); font-weight: 700; font-size: 14.5px; }
.m-table tr:last-child td { border-bottom: 0; }

.m-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0; }
.m-card { display: block; padding: 18px; background: var(--card); border: 1px solid var(--rim); border-radius: var(--r-m); color: var(--ink); text-decoration: none; box-shadow: var(--sh); }
.m-card:hover { border-color: var(--pink); }
.m-card b { display: block; font-size: 20px; margin-bottom: 4px; }
.m-card span { color: var(--ink-2); font-size: 15px; line-height: 1.6; display: block; }
.m-card em { display: inline-block; margin-top: 10px; font-style: normal; color: var(--pink-ink); font-weight: 700; font-size: 14px; }

.m-foot { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--rim); display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.m-pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }
.m-pn a { flex: 1; padding: 14px 16px; border: 1px solid var(--rim); border-radius: var(--r-s); background: var(--card); text-decoration: none; color: var(--ink); }
.m-pn a small { display: block; color: var(--ink-3); font-size: 13px; }
.m-pn a.next { text-align: right; }

@media (max-width: 980px) {
  .m-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 24px; }
  .m-toc { display: none; }
  .m-flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .m-top { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; }
  .m-nav { margin-left: 0; width: 100%; }
  .m-brand small { display: none; }
  .m-flow { grid-template-columns: 1fr; }
  .m-shot.phone { max-width: none; }
}

@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  body { background: #fff; font-size: 11.5pt; line-height: 1.65; }
  .m-top, .m-toc, .m-pn, .m-foot, .m-noprint { display: none !important; }
  .m-wrap { display: block; padding: 0; max-width: none; }
  .m-hero { break-after: avoid; }
  .m-task { padding-top: 22px; }
  .m-task > h2 { break-after: avoid; }
  .m-when, .m-steps { break-before: avoid; }
  h2, h3 { break-after: avoid; }
  .m-shot, .m-tip, .m-warn, .m-why, .m-flow li, .m-table tr, .m-steps > li { break-inside: avoid; }
  .m-shot { padding: 6px; }
  .m-shot img { box-shadow: none; border: 1px solid var(--rim); }
  .m-shot.phone { max-width: 62mm; }
  .m-shots .m-shot.phone { max-width: none; }
  .m-shots { grid-template-columns: repeat(3, 1fr); }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
  .m-chapter-break { break-before: page; }
}
