/* কর্মসূচী: the same paper, ink and one red as the manifesto's page. The older idea of each pair
   sits on the wash in muted ink; the idea set against it stands on the paper under a red rule. */
:root {
  --paper: #f6f1e7;
  --wash: #ede5d4;
  --ink: #1d1c22;
  --muted: #59554d;
  --rule: #d6ccb9;
  --mark: #9a2d22;
  /* PRI's logo is drawn for a light ground; in the light theme its disc is the page itself. */
  --logo-ground: #f6f1e7;
  --serif: 'Noto Serif Bengali', serif;
  --sans: 'Noto Sans Bengali', system-ui, sans-serif;
  --top: 3.25rem;
  --measure: 40rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16161b;
    --wash: #202027;
    --ink: #e8e2d4;
    --muted: #aca595;
    --rule: #383842;
    --mark: #f08a7a;
    --logo-ground: #e8e2d4;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.9 var(--serif); }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 700; line-height: 1.4; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; border-radius: 2px; }
[id] { scroll-margin-top: calc(var(--top) + 1rem); }
[hidden] { display: none !important; }

.eyebrow, .crumb, .hint, .side { font-family: var(--sans); }
.eyebrow { font-size: .85rem; font-weight: 600; margin: 0 0 .4rem; color: var(--mark); }
.crumb { font-size: .85rem; font-weight: 600; line-height: 1.5; margin: 0 0 .5rem; color: var(--muted); }
.hint { font-size: .92rem; line-height: 1.7; color: var(--muted); }
.context { color: var(--muted); }
.more a, .links a { font: 600 .95rem var(--sans); }
blockquote { margin: 1rem 0 0; padding: 0 0 0 1rem; border-left: 3px solid var(--mark); }
blockquote p { margin: 0 0 .4rem; }
blockquote footer { font: 400 .85rem/1.6 var(--sans); color: var(--muted); }

/* Top bar: PRI's logo, on a light disc so the black bow and hands stay in sight on the dark
   theme, and the page's own parts. */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: .75rem; height: var(--top); padding: 0 16px; background: var(--paper); border-bottom: 1px solid var(--rule); font: 400 .9rem/1 var(--sans); }
.logo { display: block; flex: none; border-radius: 50%; }
.logo img {
  --size: 32px; display: block; box-sizing: content-box; width: var(--size); height: auto; padding: calc(var(--size) * .14);
  background: radial-gradient(closest-side, var(--logo-ground) calc(100% - 1px), transparent);
}
.jump { display: flex; min-width: 0; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { padding: .5rem .7rem; border-radius: 999px; text-decoration: none; white-space: nowrap; color: var(--muted); }
.jump a:hover { color: var(--ink); }
.jump a[aria-current] { background: var(--ink); color: var(--paper); }
@media (max-width: 520px) { .jump a { padding: .5rem .5rem; font-size: .84rem; } }

.km { max-width: 62rem; margin: 0 auto; padding: 3rem 16px 5rem; }
.km-head { max-width: var(--measure); }
.km-head h1 { font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.3; margin-bottom: 1rem; }
.links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.25rem 0 0; }
.km-sec { margin-top: 4.5rem; }
.km-sec > h2 { font-size: clamp(1.5rem, 4.2vw, 2rem); color: var(--mark); padding-bottom: .6rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.5rem; }
.km-sec > p, .km-sec > .hint { max-width: var(--measure); }

/* The first tasks */
.kaj-box { max-width: var(--measure); padding: 1.25rem 1.25rem .5rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--wash); font-weight: 500; }
.centre { text-align: center; color: var(--mark); font-weight: 700; }

/* The two sides of a pair */
.old { color: var(--muted); }
.new { color: var(--ink); }

/* The board: the document's first table. Each pair is a link to its comparison. */
.board { margin: 1.25rem 0 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.board-head, .board-field { display: grid; grid-template-columns: 11rem 1fr; }
.board-head { grid-template-columns: 11rem 1fr 1fr; background: var(--wash); font: 600 .85rem/1.5 var(--sans); color: var(--muted); }
.board-head span { padding: .55rem .9rem; }
.board-field { border-top: 1px solid var(--rule); }
.board-field h3 { font: 600 .95rem/1.5 var(--sans); padding: .9rem; align-self: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; text-decoration: none; border-left: 1px solid var(--rule); font-size: 1.02rem; line-height: 1.55; }
.pair + .pair { border-top: 1px solid var(--rule); }
.pair span { padding: .8rem .9rem; }
.pair .old { background: var(--wash); text-decoration: line-through; text-decoration-color: var(--rule); }
.pair .new { font-weight: 700; }
.pair:hover .new { text-decoration: underline; text-underline-offset: .22em; }
.pair[aria-current] { box-shadow: inset 4px 0 0 var(--mark); }
.pair[aria-current] .new { color: var(--mark); }
@media (max-width: 640px) {
  .board-head { display: none; }
  .board-field { display: block; }
  .board-field h3 { padding: .6rem .9rem; background: var(--wash); color: var(--muted); font-size: .85rem; }
  .pair { border-left: 0; border-top: 1px solid var(--rule); }
}

/* One comparison */
.panels { margin-top: 1.5rem; }
.jora, .dhap { padding: 1.25rem 0 0; }
.jora + .jora, .dhap + .dhap { margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.js .jora + .jora, .js .dhap + .dhap { margin-top: 0; border-top: 0; }
.jora-h { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; font-size: 1.35rem; margin-bottom: .75rem; }
.jora-h .old { font-weight: 500; }
.jora-h .new { color: var(--mark); }
.vs { margin: 0 0 1.25rem; }
.vs-head, .vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.vs-head { font-weight: 700; font-size: 1.15rem; margin-bottom: .6rem; }
.vs-head .new { color: var(--mark); }
.vs-row + .vs-row { margin-top: .75rem; }
.vs-row p { margin: 0; padding: .9rem 1rem; border-radius: 6px; line-height: 1.75; font-size: 1.05rem; }
.vs-row .old { background: var(--wash); }
.vs-row .new { border: 1px solid var(--rule); border-left: 4px solid var(--mark); }
.side { display: none; font-size: .78rem; font-weight: 600; line-height: 1.5; margin-bottom: .3rem; color: var(--muted); }
.vs-row .new .side { color: var(--mark); }
@media (max-width: 640px) {
  .jora-h, .vs-head { display: block; }
  .jora-h .old { display: block; font-size: 1.05rem; text-decoration: line-through; text-decoration-color: var(--rule); }
  .vs-head { display: none; }
  .vs-row { display: block; }
  .vs-row + .vs-row { margin-top: 1.25rem; }
  .vs-row .old { border-radius: 6px 6px 0 0; }
  .vs-row .new { border-radius: 0 0 6px 6px; border-top: 0; }
  .side { display: block; }
}
.turn { display: flex; justify-content: space-between; gap: 1rem; margin: 1.25rem 0 0; font: 600 .92rem var(--sans); }
.turn a { padding: .55rem .9rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; }
.turn a:hover { border-color: currentColor; }
.turn a[rel="prev"]::before { content: "← "; }
.turn a[rel="next"]::after { content: " →"; }
.panels + p { margin-top: 2.5rem; font-weight: 500; }

/* The timeline */
.tl { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: var(--measure); border-left: 2px solid var(--rule); }
.tl li { position: relative; padding: 0 0 0 1.25rem; }
.tl li::before { content: ""; position: absolute; left: -7px; top: 1.05rem; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--muted); }
.tl li:has(details[open])::before { background: var(--mark); border-color: var(--mark); }
.tl summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .9rem; padding: .45rem 0; cursor: pointer; list-style: none; }
.tl summary::-webkit-details-marker { display: none; }
.when { font-weight: 700; font-size: 1.2rem; }
details[open] .when { color: var(--mark); }
.threads { font: 400 .82rem/1.5 var(--sans); color: var(--muted); }
.tl blockquote { margin: .25rem 0 1.25rem; }
.tl blockquote + blockquote { margin-top: 1rem; }

/* The three steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.5rem 0 .5rem; counter-reset: step; }
.step { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--rule); border-radius: 8px; text-decoration: none; line-height: 1.5; }
.step:hover { border-color: var(--muted); }
.step-n { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; border: 2px solid currentColor; font: 700 1rem/1 var(--sans); color: var(--muted); }
.step-t { font-weight: 700; font-size: 1.02rem; }
.step-name { display: block; font: 600 .78rem/1.5 var(--sans); color: var(--muted); }
.step[aria-current] { border-color: var(--mark); box-shadow: inset 0 -4px 0 var(--mark); }
.step[aria-current] .step-n { background: var(--mark); border-color: var(--mark); color: var(--paper); }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; gap: .5rem; } }
.dhap > h3 { font-size: 1.45rem; margin-bottom: .75rem; }
.dhap > p, .dhap > ul, .notes { max-width: var(--measure); }
.dhap > h3 + p { font-weight: 500; }
.prog { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.prog > li { position: relative; margin: 0 0 .9rem; padding: .85rem 1rem .85rem 2.4rem; border: 1px solid var(--rule); border-radius: 6px; line-height: 1.8; }
.prog > li::before { content: "►"; position: absolute; left: .85rem; top: 1.05rem; font-size: .8rem; line-height: 1.8; color: var(--mark); }
.prog strong { color: var(--mark); font-weight: 700; }
.prog ul { margin: .6rem 0 0; padding: 0 0 0 1.1rem; }
.prog ul li { margin-bottom: .45rem; padding-left: .2rem; }
.prog ul li::marker { color: var(--muted); }
.prog ul li.num { list-style: none; margin-left: -1.1rem; }
.prog li > p { margin: .9rem 0 0; padding-top: .9rem; border-top: 1px solid var(--rule); }
.notes { margin-top: 2.5rem; padding: 1rem 1.25rem .25rem; background: var(--wash); border-radius: 8px; font-size: 1.02rem; }
.run-in { font-weight: 700; }

/* The whole text: the PDF, opened in the reader's own viewer or downloaded. */
.pdf-links { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 2rem; }
.btn { padding: .7rem 1.2rem; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font: 600 1rem/1.4 var(--sans); }
.btn:first-child { background: var(--ink); color: var(--paper); }
.btn:hover { border-color: var(--mark); }
.btn:first-child:hover { background: var(--mark); }

.foot { padding: 2rem 16px 3rem; border-top: 1px solid var(--rule); text-align: center; font: 600 .9rem var(--sans); color: var(--muted); }

@media print {
  .top, .jump, .board, .steps, .turn, .more, .hint, .links, .mul { display: none; }
  [hidden] { display: block !important; }
  body { font-size: 11pt; }
}
