/* Bangla text on the poster pages is set in Kalpurush (SIL Open Font License, see fonts/Kalpurush-OFL.txt). */
@font-face { font-family: 'Kalpurush'; src: url('/assets/fonts/Kalpurush.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
/* Molecule of the Month and the cheat sheets. Uses the site's tokens from web.css. */

/* ---------- hero: text on the left, the live molecule on the right ---------- */
.mo-hero { padding-bottom: 28px; }
.mo-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.mo-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0 0 6px; }
.mo-brand { margin: 0 0 14px; color: var(--muted); font-size: var(--fs-sm); }
.mo-preview { display: inline-block; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px; background: var(--warn-tint); color: var(--warn); font-size: .82rem; font-weight: 650; }
.mo-facts { display: grid; gap: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.mo-facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mo-facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.mo-facts dd { margin: 0; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }

.mo-figure { margin: 0; }
.mo-stage { position: relative; aspect-ratio: 4 / 3; width: 100%; max-width: 580px; margin-inline: auto; border-radius: 22px; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #ffffff, var(--brand-soft) 70%); border: 1px solid var(--line); }
.mo-stage .hero-mol { z-index: 2; }
.mo-figure figcaption { margin-top: 8px; text-align: center; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- body ---------- */
.mo-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start; }
.mo-story h2, .mo-think h2 { margin: 0 0 14px; font-size: 1.5rem; }
.mo-story p { margin: 0 0 16px; max-width: 66ch; font-size: 1.04rem; line-height: 1.75; color: var(--ink-2); }
.mo-watch { display: flex; gap: 14px; margin-top: 26px; padding: 18px 20px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--line); }
.mo-watch svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--brand); }
.mo-watch h3 { margin: 0 0 4px; font-size: 1rem; }
.mo-watch p { margin: 0; font-size: .95rem; line-height: 1.65; }

.mo-side { display: grid; gap: 18px; position: sticky; top: 92px; }
.mo-card { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11,27,63,.04); }
.mo-card h2 { margin: 0 0 12px; font-size: 1.1rem; }
.mo-drawing { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; border: 1px solid var(--line-soft); }
.mo-formula { margin: 10px 0 0; text-align: center; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }
.mo-nums { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mo-nums th, .mo-nums td { padding: 8px 0; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: .9rem; }
.mo-nums th { font-weight: 600; color: var(--ink-2); padding-right: 8px; }
.mo-nums td small, .mo-nums th small { color: var(--muted); font-weight: 500; }
.mo-nums .mo-limit { text-align: right; font-size: .82rem; font-weight: 650; color: var(--success); white-space: nowrap; }
.mo-nums tr[data-ok="0"] .mo-limit, .mo-nums tr[data-ok="0"] strong { color: var(--danger); }
.mo-note { margin: 12px 0 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.55; }
.mo-screen { width: 100%; justify-content: center; margin-top: 14px; gap: 8px; }
.mo-screen svg { width: 16px; height: 16px; }

/* ---------- lessons ---------- */
.mo-lessons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mo-lesson { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.mo-lesson-n { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-ink); font-weight: 750; font-size: .88rem; }
.mo-lesson h3 { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.3; }
.mo-lesson p { margin: 0; font-size: .94rem; line-height: 1.68; color: var(--ink-2); }

/* ---------- why it matters here ---------- */
.mo-here { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px 34px; border-radius: 20px;
  background: linear-gradient(135deg, var(--blue, #062a7f), #0a1c46); color: #fff; }
.mo .mo-here .w-kicker { color: #7fe3e4; }
.mo .mo-here .w-kicker::before { background: #7fe3e4; }
.mo-here-text { margin: 6px 0 0; max-width: 70ch; font-size: 1.04rem; line-height: 1.72; color: rgba(255,255,255,.9); }
.mo-here .w-btn { flex: none; gap: 8px; background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.mo-here .w-btn:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.mo-here .w-btn svg { width: 16px; height: 16px; }

/* ---------- questions, sources ---------- */
.mo-end { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.mo-think ol { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.mo-think li { font-size: 1rem; line-height: 1.68; color: var(--ink-2); padding-left: 4px; }
.mo-think a, .mo-note a { color: var(--brand); font-weight: 600; }
.mo-sources { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--wash); }
.mo-sources summary { cursor: pointer; font-weight: 700; font-size: .95rem; }
.mo-sources summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.mo-sources ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: .85rem; line-height: 1.55; color: var(--ink-2); }

/* ---------- archive ---------- */
.mo-archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.mo-arch-card { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.mo-arch-card:hover { border-color: var(--brand); box-shadow: 0 12px 30px rgba(11,27,63,.10); transform: translateY(-2px); }
.mo-arch-card[aria-current="page"] { border-color: var(--brand); background: var(--brand-soft); }
.mo-arch-card img { width: 100%; height: auto; aspect-ratio: 280 / 190; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line-soft); margin-bottom: 8px; }
.mo-arch-month { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.mo-arch-card strong { font-size: 1.15rem; }
.mo-arch-sum { font-size: .88rem; line-height: 1.55; color: var(--muted); }
.mo-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; }
.mo-pager a { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--brand); text-decoration: none; }
.mo-pager a:hover { text-decoration: underline; }
.mo-pager svg { width: 16px; height: 16px; }

/* ---------- cheat sheets ---------- */
.cs-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: center; padding: 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11,27,63,.04); }
.cs-preview { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(11,27,63,.14); transform: rotate(-1.2deg); transition: transform .2s ease; }
.cs-preview:hover { transform: rotate(0) translateY(-3px); }
.cs-preview img { display: block; width: 100%; height: auto; }
.cs-copy h2 { margin: 6px 0 10px; font-size: 1.7rem; line-height: 1.2; }
.cs-copy p { max-width: 58ch; color: var(--ink-2); line-height: 1.7; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cs-actions .w-btn { gap: 8px; }
.cs-actions svg { width: 16px; height: 16px; }

/* ---------- small screens ---------- */
@media (max-width: 1000px) {
  .mo-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .mo-stage { max-width: 520px; }
  .mo-body { grid-template-columns: 1fr; gap: 28px; }
  .mo-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .mo-lessons { grid-template-columns: 1fr; }
  .mo-end { grid-template-columns: 1fr; }
  .cs-card { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 680px) {
  .mo-stage { aspect-ratio: 1 / 1; }
  .mo-side { grid-template-columns: 1fr; }
  .mo-here { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .mo-facts div { grid-template-columns: 1fr; gap: 2px; }
  .cs-card { grid-template-columns: 1fr; padding: 22px; }
  .cs-preview { max-width: 280px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .mo-arch-card, .cs-preview { transition: none; } .mo-arch-card:hover, .cs-preview:hover { transform: none; } }

/* ---------- Posters (the Posters tab and each poster's page) ---------- */
.po [hidden] { display: none !important; }
.po-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.po-tags li { padding: 6px 13px; border-radius: 999px; background: var(--wash-2); border: 1px solid var(--line); font-size: .84rem; font-weight: 650; color: var(--ink-2); }
.po-tags-lg { margin-bottom: 22px; }
.po-figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.po-sheet { width: min(100%, 440px); }
.po-sheet img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 1979; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; box-shadow: 0 18px 44px rgba(11,27,63,.16); }
.po-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--wash-2); }
.po-toggle button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: .88rem; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.po-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--brand-ink); box-shadow: 0 1px 3px rgba(11,27,63,.14); }
.po-toggle button:focus-visible { outline: none; box-shadow: var(--focus); }

.po-editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.po-ed { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.po-ed h3 { margin: 0 0 6px; font-size: 1.2rem; }
.po-ed p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.65; font-size: .96rem; }
.po-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.po-btns .w-btn { gap: 10px; text-align: left; }
.po-btns .w-btn svg { width: 18px; height: 18px; flex: none; }
.po-btns .w-btn span small { display: block; margin-top: 1px; font-size: .72rem; font-weight: 500; opacity: .85; }

.po-name { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: start; padding: 32px; border-radius: 22px; background: var(--brand-soft); border: 1px solid var(--line); }
.po-name-copy h2 { margin: 6px 0 12px; font-size: 1.9rem; line-height: 1.15; }
.po-name-copy p { color: var(--ink-2); line-height: 1.7; max-width: 52ch; }
.po-name-copy em { font-style: normal; font-weight: 700; color: var(--ink); }
.po-name-copy .mo-note a { color: var(--brand); font-weight: 650; }
.po-form { display: grid; gap: 14px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.po-field { display: grid; gap: 6px; }
.po-field > span { font-size: .8rem; font-weight: 650; color: var(--ink-2); }
.po-field small { color: var(--muted); font-weight: 500; }
.po-field input { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: 1rem; color: var(--ink); }
.po-field input:focus-visible, .po-radios input:focus-visible + span { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.po-radios { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.po-radios legend { padding: 0; margin-bottom: 6px; font-size: .8rem; font-weight: 650; color: var(--ink-2); }
.po-radios label { position: relative; }
.po-radios input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.po-radios span { display: block; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .88rem; font-weight: 650; color: var(--ink-2); background: var(--surface); }
.po-radios input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.po-live { padding: 10px; border-radius: 12px; background: var(--wash); border: 1px dashed var(--line-2); }
.po-live canvas { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; border-radius: 8px; background: #fff; }
.po-live-note { margin: 8px 0 0; text-align: center; font-size: var(--fs-xs); color: var(--muted); }
.po-status { min-height: 1.4em; margin: 0; font-size: .88rem; font-weight: 600; color: var(--success); }
.po-status[data-state="bad"] { color: var(--danger); }
.po-status[data-state="busy"] { color: var(--brand-ink); }

.po-uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.po-uses div { padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); line-height: 1.65; color: var(--ink-2); font-size: .96rem; }
.po-uses strong { color: var(--ink); }
.po-uses a { color: var(--brand); font-weight: 650; }

.po-list { display: grid; gap: 24px; }
.po-item { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: center; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11,27,63,.04); }
.po-thumb { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 14px 34px rgba(11,27,63,.14); transform: rotate(-1deg); transition: transform .2s ease; }
.po-thumb:hover { transform: rotate(0) translateY(-3px); }
.po-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 1979; }
.po-item-copy h2 { margin: 6px 0 10px; font-size: 1.8rem; line-height: 1.15; }
.po-item-copy h2 a { color: inherit; text-decoration: none; }
.po-item-copy h2 a:hover { color: var(--brand); }
.po-item-copy p { max-width: 58ch; color: var(--ink-2); line-height: 1.7; }
.po-item-copy .po-tags { margin: 14px 0 18px; }

@media (max-width: 1000px) {
  .po-name { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .po-item { grid-template-columns: 220px minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 680px) {
  .po-editions, .po-uses { grid-template-columns: 1fr; }
  .po-item { grid-template-columns: 1fr; padding: 22px; }
  .po-thumb { max-width: 260px; margin-inline: auto; }
  .po-btns .w-btn { width: 100%; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .po-thumb { transition: none; } .po-thumb:hover { transform: none; } }

/* ---------- Posters with several styles ---------- */
.po-bn { margin: 2px 0 10px; font-family: 'Kalpurush', 'Noto Sans Bengali', 'Hind Siliguri', 'Nirmala UI', 'Vrinda', system-ui, sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--brand-ink); }
.po-bn-lg { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 12px; }
.po-new { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 750; letter-spacing: .02em; vertical-align: 1px; }
.po-styles { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.po-styles button { display: grid; justify-items: center; gap: 6px; width: 92px; padding: 8px 8px 9px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); font: inherit; cursor: pointer; }
.po-styles button img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 3px; }
.po-styles button span { font-size: .78rem; font-weight: 700; color: var(--ink-2); line-height: 1.15; text-align: center; }
.po-styles button:hover { border-color: var(--brand); }
.po-styles button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand-tint); }
.po-styles button[aria-pressed="true"] span { color: var(--brand-ink); }
.po-styles button:focus-visible { outline: none; box-shadow: var(--focus); }
.po-block-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.po-block-note strong { color: var(--brand-ink); }
.po-block + .po-block { margin-top: 26px; }
.po-style-note { margin: 0; padding: 9px 13px; border-radius: 10px; background: var(--wash); border: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.po-style-note strong { color: var(--brand-ink); }

/* ---------- A series of posters: the strip that links them ---------- */
.po-series { padding: 18px 22px; border-radius: 18px; background: var(--brand-soft); border: 1px solid var(--line); }
.po-series-title { margin: 0 0 12px; font-size: .95rem; color: var(--ink-2); }
.po-series-title strong { color: var(--brand-ink); }
.po-series-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.po-sm { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.po-sm img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 3px; }
.po-sm span { display: grid; gap: 2px; min-width: 0; }
.po-sm .bn { font-family: 'Kalpurush', 'Noto Sans Bengali', 'Hind Siliguri', 'Nirmala UI', 'Vrinda', system-ui, sans-serif; font-size: 1.05rem; color: var(--ink); line-height: 1.25; }
.po-sm small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.po-sm:hover { border-color: var(--brand); }
.po-sm.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand-tint); }
.po-sm:focus-visible { outline: none; box-shadow: var(--focus); }
@media (max-width: 680px) { .po-series-row { grid-template-columns: 1fr; } }

/* a poster in other languages */
.po-also { margin: 6px 0 0; font-size: .95rem; color: var(--ink-2); }
.po-also a { font-weight: 650; color: var(--brand-ink); }
.po-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.po-lang { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm, 0 1px 3px rgba(11, 27, 63, .06)); }
.po-lang img { width: 112px; height: auto; border: 1px solid var(--line); border-radius: 6px; display: block; }
.po-lang h3 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.2; }
.po-lang h3 small { margin-left: 6px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.po-lang .po-btns { display: grid; gap: 8px; justify-items: start; }
@media (max-width: 420px) { .po-lang { grid-template-columns: 84px 1fr; gap: 12px; } .po-lang img { width: 84px; } }
