/* 2026-11-18 (user pasted design: "same to same is format mein Latest Activities"): the four Latest Activities
   pages as an A4 training report -- cover page, numbered sections, programme details table, session table,
   blue italic captions, Way Forward note, page numbers. Scoped to body.trp. Colours and fonts are forced
   (!important) because the site's dark theme restyles everything inside <main>. */
body.trp {
  --tr-navy: #1b2a4a; --tr-blue: #2a4a8a; --tr-ink: #111111; --tr-line: #1b2a4a; --tr-head: #e3eaf4; --tr-desk: #cfd3d8;
}
body.trp main#content { background: var(--tr-desk) !important; padding: 24px 12px !important; margin: 0 !important; border: 0 !important;
  border-radius: 0 !important; box-shadow: none !important; max-width: none !important; }
html:not(.hc) body.trp.trp main#content .tr-page.tr-page, html:not(.hc) body.trp.trp main#content .tr-page.tr-page *:not(svg):not(svg *) {
  font-family: Tinos, "Times New Roman", Times, serif !important; }

/* A4 page */
body.trp .tr-page { width: 210mm; max-width: 100%; min-height: 297mm; margin: 0 auto 24px; background: #fff !important; color: var(--tr-ink) !important;
  padding: 16mm 20mm 14mm; position: relative; display: flex; flex-direction: column; box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
  font-size: 16px; line-height: 1.55; border: 0 !important; border-radius: 0 !important; }
body.trp .tr-page .tr-content { flex: 1; }
body.trp .tr-page * { color: inherit; }

/* running header + page footer */
body.trp .tr-rh { display: flex; justify-content: flex-end; border-bottom: 1.5px solid var(--tr-line); padding-bottom: 4px; margin-bottom: 22px;
  font-size: 13px !important; letter-spacing: .04em; color: var(--tr-navy) !important; text-transform: uppercase; }
body.trp .tr-rf { border-top: 1px solid var(--tr-line); margin-top: 24px; padding-top: 5px; text-align: center; font-size: 13px !important; color: var(--tr-navy) !important; }

/* text */
body.trp .tr-page :is(h1, h2, h3, h4) { background: none !important; -webkit-text-fill-color: currentColor !important; text-shadow: none !important; letter-spacing: 0 !important; text-align: left !important; }
body.trp .tr-page :is(h1, h2, h3, h4)::before, body.trp .tr-page :is(h1, h2, h3, h4)::after { content: none !important; display: none !important; }
body.trp .tr-page h2 { font-size: 20px !important; line-height: 1.3 !important; color: var(--tr-navy) !important; margin: 26px 0 10px !important; font-weight: 700 !important; }
body.trp .tr-page .tr-content > h2:first-child { margin-top: 0 !important; }
body.trp .tr-page h3 { font-size: 17px !important; line-height: 1.35 !important; color: var(--tr-navy) !important; margin: 18px 0 6px !important; font-weight: 700 !important; }
body.trp .tr-page p { margin: 0 0 11px !important; text-align: justify !important; hyphens: auto; -webkit-hyphens: auto; color: var(--tr-ink) !important;
  font-size: 16px !important; line-height: 1.55 !important; max-width: none !important; column-count: auto !important; }
body.trp .tr-page ul { margin: 0 0 12px !important; padding-left: 22px !important; text-align: justify; list-style: disc outside !important; }
body.trp .tr-page li { margin-bottom: 4px !important; color: var(--tr-ink) !important; font-size: 16px !important; line-height: 1.55 !important;
  display: list-item !important; padding: 0 !important; border: 0 !important; text-align: left !important; }
body.trp .tr-page li::before { content: none !important; display: none !important; }
body.trp .tr-page li::marker { color: var(--tr-ink); }
body.trp .tr-page a { color: var(--tr-blue) !important; }

/* tables */
body.trp .tr-page table { width: 100%; border-collapse: collapse; font-size: 15px !important; margin: 6px 0 14px; }
body.trp .tr-page :is(th, td) { border: 1px solid #7a8599 !important; padding: 7px 10px !important; text-align: left; vertical-align: top; line-height: 1.45 !important;
  color: var(--tr-ink) !important; background: #fff !important; font-size: 15px !important; }
body.trp .tr-page :is(thead th, .tr-kv th) { background: var(--tr-head) !important; color: var(--tr-navy) !important; font-weight: 700 !important; }
body.trp .tr-page .tr-kv th { width: 34%; }
body.trp .tr-page :is(td, th).c { text-align: center !important; }
body.trp .tr-page td ul { margin: 0 !important; padding-left: 18px !important; }
body.trp .tr-page td li { font-size: 15px !important; margin-bottom: 2px !important; }

/* figures */
body.trp .tr-page figure { margin: 14px 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
body.trp .tr-page figure img { width: 100% !important; height: auto !important; display: block; border-radius: 0 !important; box-shadow: none !important; max-height: none !important; }
body.trp .tr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.trp .tr-pair img { aspect-ratio: 4 / 3; object-fit: cover; }
body.trp .tr-ph { aspect-ratio: 4 / 3; background: #e6e8ec !important; display: flex; align-items: center; justify-content: center; color: #666 !important; font-size: 13px !important; }
body.trp .tr-page figcaption { margin-top: 6px; text-align: center !important; font-style: italic; font-weight: 700; font-size: 13.5px !important; line-height: 1.35;
  color: var(--tr-blue) !important; }

/* cover */
body.trp .tr-cover { justify-content: space-between; text-align: center; }
body.trp .tr-cover .tr-org { font-size: 17px !important; font-weight: 700; color: var(--tr-navy) !important; letter-spacing: .04em; text-transform: uppercase; }
body.trp .tr-cover .tr-logo { width: 90px; height: 90px; margin: 0 auto 14px; object-fit: contain; display: block; }
body.trp .tr-cover .tr-mid { margin: auto 0; }
body.trp .tr-cover .tr-kind { font-size: 16px !important; color: var(--tr-blue) !important; font-style: italic; margin-bottom: 10px !important; text-align: center !important; }
body.trp .tr-cover h1 { font-size: 36px !important; line-height: 1.2 !important; color: var(--tr-navy) !important; margin: 0 0 14px !important; font-weight: 700 !important; text-align: center !important; }
body.trp .tr-cover .tr-rule { width: 90px; border-top: 3px solid var(--tr-navy); margin: 0 auto 16px; }
body.trp .tr-cover .tr-sub { font-size: 17px !important; text-align: center !important; max-width: 120mm; margin: 0 auto !important; }
body.trp .tr-cover .tr-meta { font-size: 15px !important; color: var(--tr-navy) !important; border-top: 1px solid var(--tr-line); padding-top: 10px; }

/* Way Forward note */
body.trp .tr-note { border: 1px solid #7a8599; border-left: 4px solid var(--tr-navy); padding: 10px 14px; margin: 12px 0; background: #f6f8fb !important; }
body.trp .tr-note p { margin: 0 !important; }

/* participant quotes (feedback from upliftdata.cloud) */
body.trp .tr-quote { border-left: 3px solid var(--tr-navy); padding: 4px 0 4px 12px; margin: 8px 0 10px !important; font-style: italic; }
body.trp .tr-quote figcaption { text-align: left !important; font-style: normal; }

@media (max-width: 820px) {
  body.trp main#content { padding: 0 !important; }
  body.trp .tr-page { width: 100%; min-height: 0; margin: 0 0 12px; padding: 18px 16px; box-shadow: none; font-size: 15px; }
  body.trp .tr-page :is(p, li) { font-size: 15px !important; text-align: left !important; }
  body.trp .tr-cover { min-height: 70vh; }
  body.trp .tr-cover h1 { font-size: 28px !important; }
  body.trp .tr-pair { grid-template-columns: 1fr; }
  body.trp .tr-page table { display: block; overflow-x: auto; }
  body.trp .tr-page :is(th, td) { font-size: 13.5px !important; }
}
@page { size: A4; margin: 0; }
@media print {
  body.trp :is(.site-header, .site-footer, header, footer, nav, .a11y-bar, .skip-link) { display: none !important; }
  body.trp main#content { background: #fff !important; padding: 0 !important; }
  body.trp .tr-page { margin: 0; box-shadow: none; page-break-after: always; break-after: page; }
  body.trp .tr-page:last-child { page-break-after: auto; break-after: auto; }
  body.trp * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* cover v2 (user 2026-11-18, pasted design): dark green cover, gold title + rule, cream text */
body.trp .tr-page.tr-cover { background: #323f2f !important; color: #f2f0e6 !important; justify-content: center; gap: 0; padding-top: 30mm; padding-bottom: 30mm; }
body.trp .tr-cover .tr-logo { width: 96px; height: 96px; margin: 0 auto 18px; }
body.trp .tr-cover .tr-org { font-size: 16px !important; color: #f2f0e6 !important; letter-spacing: .06em; margin-bottom: 44px; }
body.trp .tr-cover .tr-mid { margin: 0 0 44px; }
body.trp .tr-cover .tr-kind { color: #b9c2b4 !important; }
html:not(.hc) body.trp main#content .tr-cover h1 { font-size: 38px !important; color: #f2c500 !important; margin: 0 0 16px !important; }
body.trp .tr-cover .tr-rule { border-top: 3px solid #f2c500; margin: 0 auto 18px; }
body.trp .tr-cover .tr-sub { color: #f2f0e6 !important; }
body.trp .tr-cover .tr-meta { color: #f2f0e6 !important; border-top: 1px solid rgba(242, 240, 230, .35); padding-top: 12px; width: 120mm; max-width: 100%; margin: 0 auto; }
@media (max-width: 820px) {
  body.trp .tr-page.tr-cover { padding-top: 48px; padding-bottom: 48px; }
  html:not(.hc) body.trp main#content .tr-cover h1 { font-size: 28px !important; }
}
/* cover v3 (user 2026-11-18, pasted): content from the top, tighter gaps */
body.trp .tr-page.tr-cover { justify-content: flex-start !important; padding-top: 22mm; padding-bottom: 20mm; }
body.trp .tr-cover .tr-org { margin-bottom: 30px; }
body.trp .tr-cover .tr-mid { margin: 0 0 30px; }
@media (max-width: 820px) { body.trp .tr-page.tr-cover { padding-top: 32px; padding-bottom: 32px; } }
/* a little wider on screen (user 2026-11-18: "page thora chauda karo"): 210mm (~794px) -> 960px; print stays A4 */
@media screen and (min-width: 821px) { body.trp .tr-page { width: 960px; padding-left: 24mm; padding-right: 24mm; } }
/* closing line after the last section (user 2026-11-18: "content closing line lagao"); text: admin Labels > Training report */
body.trp .tr-end { display: flex; align-items: center; gap: 14px; margin: 34px 0 6px; color: var(--tr-navy) !important; }
body.trp .tr-end::before, body.trp .tr-end::after { content: ''; flex: 1; border-top: 1px solid var(--tr-line); }
body.trp .tr-end span { font-size: 13px !important; font-style: italic; letter-spacing: .08em; text-transform: uppercase; color: var(--tr-navy) !important; white-space: nowrap; }
body.trp .tr-end span::before, body.trp .tr-end span::after { content: '\2766'; margin: 0 8px; font-style: normal; color: var(--tr-navy); }

/* ===== Site colours (user 2026-11-18: "background colour 323f2f and ffd700") =====
   Same A4 report layout; pages dark green #323f2f with gold #ffd700 headings, lines, captions and table heads,
   white text, on the site's darker green background. */
body.trp { --tr-navy: #ffd700; --tr-blue: #ffd700; --tr-ink: #ffffff; --tr-line: #ffd700; --tr-head: rgba(255, 215, 0, .14); --tr-desk: #232d21; }
body.trp .tr-page { background: #323f2f !important; color: #ffffff !important; border: 1px solid rgba(255, 215, 0, .45) !important; box-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
body.trp .tr-page :is(th, td) { background: transparent !important; border-color: rgba(255, 215, 0, .4) !important; color: #ffffff !important; }
body.trp .tr-page :is(thead th, .tr-kv th) { background: rgba(255, 215, 0, .14) !important; color: #ffd700 !important; }
body.trp .tr-page li::marker { color: #ffd700; }
body.trp .tr-note { background: rgba(255, 215, 0, .08) !important; border-color: rgba(255, 215, 0, .4) !important; border-left-color: #ffd700 !important; }
body.trp .tr-ph { background: #232d21 !important; color: #c9d1c4 !important; }
body.trp .tr-page figure img { border: 1px solid rgba(255, 215, 0, .3) !important; }
/* cover: same colours, gold title (was #f2c500) */
html:not(.hc) body.trp main#content .tr-cover h1 { color: #ffd700 !important; }
body.trp .tr-cover .tr-rule { border-top-color: #ffd700 !important; }
body.trp .tr-cover .tr-meta { border-top-color: rgba(255, 215, 0, .35) !important; }
/* cover photo (user 2026-11-18: "cover page par ek image laga sake") */
body.trp .tr-cover .tr-cover-img { margin: 0 auto 30px !important; width: 100%; max-width: 150mm; }
body.trp .tr-cover .tr-cover-img img { width: 100% !important; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid #ffd700 !important; }

/* ===== Cover green, every other page plain white (user 2026-11-18: "cover page jaisa tha waisa hi background colour,
   baaki page ek dum white") -- inner pages back to the original report colours: navy headings, blue captions, black text ===== */
body.trp .tr-page:not(.tr-cover) { --tr-navy: #1b2a4a; --tr-blue: #2a4a8a; --tr-ink: #111111; --tr-line: #1b2a4a; --tr-head: #e3eaf4;
  background: #ffffff !important; color: #111111 !important; border: 0 !important; }
body.trp .tr-page:not(.tr-cover) :is(th, td) { background: #ffffff !important; border-color: #7a8599 !important; color: #111111 !important; }
body.trp .tr-page:not(.tr-cover) :is(thead th, .tr-kv th) { background: #e3eaf4 !important; color: #1b2a4a !important; }
body.trp .tr-page:not(.tr-cover) li::marker { color: #111111; }
body.trp .tr-page:not(.tr-cover) .tr-note { background: #f6f8fb !important; border-color: #7a8599 !important; border-left-color: #1b2a4a !important; }
body.trp .tr-page:not(.tr-cover) .tr-ph { background: #e6e8ec !important; color: #666666 !important; }
body.trp .tr-page:not(.tr-cover) figure img { border: 0 !important; }
