/* Share buttons, end-of-page support box, newsletter box, printable project brief,
   donate "you are supporting" note (2026-11-09). Theme: #323f2f + #ffd700, 1px gold borders. */

/* ---- share row ---- */
.shr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.shr__lbl { font-size: 13px; opacity: .85; margin-right: 2px; }
.shr__b { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border: 1px solid rgba(255, 215, 0, .6);
  border-radius: 999px; background: transparent; color: #ffd700; font: 600 13px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.shr__b:hover, .shr__b:focus-visible { background: #ffd700; color: #1c2420; outline: none; }
.shr__b--wa { border-color: #25d366; color: #7ee2a3; }
.shr__b--wa:hover, .shr__b--wa:focus-visible { background: #25d366; color: #0f2416; }
.shr--hero { margin-top: 10px; }

/* ---- support box ---- */
.psup { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.psup__text { max-width: 65ch; margin: 0 0 14px; text-align: left; }
.psup__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.psup__b { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border: 1px solid #ffd700; border-radius: 999px;
  color: #ffd700; text-decoration: none; font-weight: 600; }
.psup__b:hover, .psup__b:focus-visible { background: rgba(255, 215, 0, .12); }

/* ---- newsletter mini form (support box, articles) ---- */
.psup__nl { display: grid; gap: 6px; padding: 16px; border: 1px solid #ffd700; border-radius: 16px; background: rgba(0, 0, 0, .14); }
.psup__nl-t { color: #ffd700; font-size: 16px; }
.psup__nl small { opacity: .85; }
.psup__nl-row { display: flex; gap: 8px; margin-top: 6px; }
.psup__nl-row input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 215, 0, .5); background: #323f2f; color: #fff; font: inherit; }
.psup__nl-row input:focus { outline: none; box-shadow: 0 0 0 2px #ffd700; }
.psup__nl-row button { padding: 10px 16px; border: 0; border-radius: 10px; background: #ffd700; color: #1c2420; font-weight: 700; cursor: pointer; }
.lx-read__nl { margin: 28px 0 0; }

/* ---- donate page note ---- */
.donate__for { max-width: 70ch; margin: 0 auto 18px; padding: 12px 16px; border: 1px dashed #ffd700; border-radius: 12px; color: #ffd700; text-align: center; }

/* ---- printable project brief ---- */
.pbrief-tools { max-width: 210mm; margin: 24px auto 0; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pbrief-tools a { color: #ffd700; }
.pbrief { max-width: 210mm; margin: 14px auto 40px; padding: 14mm; background: #fff; color: #1c2420; border-radius: 6px; box-sizing: border-box; }
.pbrief__head { display: flex; gap: 16px; align-items: center; border-bottom: 3px solid #ffd700; padding-bottom: 10px; }
.pbrief__logo { width: 70px; height: auto; background: #323f2f; border-radius: 8px; padding: 4px; }
.pbrief__head small { color: #5b6b57; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }
.pbrief h1 { margin: 2px 0 6px; font: 700 24px/1.2 'Noto Serif', Georgia, serif; color: #323f2f; }
.pbrief h2 { font: 700 15px/1.3 'Noto Serif', Georgia, serif; color: #323f2f; margin: 10px 0 4px; }
.pbrief__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; }
.pbrief__chips small { color: #5b6b57; }
.pbrief__body { display: grid; grid-template-columns: minmax(0, 1fr) 62mm; gap: 14px; margin-top: 10px; font-size: 12.5px; line-height: 1.55; }
.pbrief__body p, .pbrief__body li { text-align: left; color: #1c2420; }
.pbrief__body ol { margin: 0; padding-left: 18px; }
.pbrief__photo { width: 100%; height: 48mm; object-fit: cover; border-radius: 6px; }
.pbrief__stats, .pbrief__impact { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pbrief__stats li, .pbrief__impact li { border: 1px solid #c9a400; border-radius: 8px; padding: 8px; display: grid; gap: 2px; }
.pbrief__stats b, .pbrief__impact b { font-size: 18px; color: #323f2f; }
.pbrief__stats span, .pbrief__impact span { font-size: 11px; color: #3c4a39; }
.pbrief__impact small { font-size: 10px; color: #5b6b57; }
.pbrief__target { margin: 10px 0 0; font-size: 12.5px; }
.pbrief__foot { margin-top: 14px; padding-top: 8px; border-top: 1px solid #ddd; display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; color: #5b6b57; }

@media (max-width: 760px) {
  .psup { grid-template-columns: 1fr; }
  .pbrief { padding: 16px; }
  .pbrief__body { grid-template-columns: 1fr; }
  .pbrief__stats, .pbrief__impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  @page { size: A4; margin: 10mm; }
  body.pbrief-page { background: #fff !important; }
  body.pbrief-page > *:not(main), .pbrief-page .pbrief-tools, .pbrief-page header.site-header, .pbrief-page footer.site-footer,
  .pbrief-page .a11y-bar, .pbrief-page .skip-link { display: none !important; }
  .pbrief-page main { padding: 0 !important; margin: 0 !important; }
  .pbrief { margin: 0; padding: 0; max-width: none; border-radius: 0; box-shadow: none; }
  .pbrief * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* fixes after the first look (2026-11-09) */
.psup .btn-gold { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 20px; border-radius: 999px; background: #ffd700 !important; color: #1c2420 !important; border: 1px solid #ffd700; font-weight: 700; text-decoration: none; }
.psup__nl .psup__nl-row input { flex: 1 1 auto; width: auto !important; min-width: 0; }
.psup__nl .psup__nl-row button { flex: none; width: auto !important; margin: 0 !important; }
.psup__nl label.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.pbrief h1, .pbrief h2, html:not(.hc) .pbrief h2 { color: #323f2f !important; }
.pbrief p, .pbrief li, .pbrief span, .pbrief small { text-align: left !important; }
@media print {
  html, body.pbrief-page, .pbrief-page main, .pbrief-page #content { background: #fff !important; }
}
.psup__b--main, html:not(.hc) body .psup__b--main { background: #ffd700 !important; color: #1c2420 !important; border-color: #ffd700 !important; font-weight: 700; cursor: pointer; font-family: inherit; font-size: inherit; }
.psup__b--main:hover { filter: brightness(1.05); }
@media print {
  @page { size: A4; margin: 0; }
  .pbrief { padding: 10mm !important; min-height: 297mm; box-sizing: border-box; }
}
.psup__nl { min-width: 0; box-sizing: border-box; } .psup__nl .psup__nl-row { flex-wrap: wrap; } .psup__nl .psup__nl-row input { flex: 1 1 160px; }

/* ---- Impact Assessment Report section + automatic report pages (2026-11-09) ---- */
.prep__name { margin: 0 0 6px; font: 700 20px/1.3 'Noto Serif', Georgia, serif; color: #ffd700; text-align: left; }
.prep__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 10px; font-size: 14px; opacity: .9; }
.prep__fh { display: block; color: #ffd700; margin: 6px 0 4px; }
.prep__findings { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 4px; }
.prep__findings li { text-align: left; }
.prpt__sec { margin-top: 14px; break-inside: avoid-page; }
.prpt__sec h2 small { font: 400 12px/1 inherit; color: #5b6b57; }
.prpt__sec ol, .prpt__sec ul { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; }
.prpt__sec p { font-size: 12.5px; line-height: 1.55; text-align: left; color: #1c2420; }
.prpt__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.prpt__tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; color: #1c2420; }
.prpt__tbl caption { text-align: left; font-weight: 700; color: #323f2f; padding-bottom: 3px; }
.prpt__tbl td, .prpt__tbl th { border-bottom: 1px solid #e3e3d8; padding: 3px 4px; text-align: left; }
.prpt__tbl td:nth-child(n+2), .prpt__tbl th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.prpt__tbl th { color: #323f2f; }
.prpt__sum td { font-weight: 700; border-top: 2px solid #c9a400; }
.prpt__q { margin: 6px 0; padding: 6px 10px; border-left: 3px solid #c9a400; font-size: 12.5px; color: #1c2420; }
.prpt__q cite { display: block; font-size: 11px; color: #5b6b57; font-style: normal; }
@media (max-width: 760px) { .prpt__grid { grid-template-columns: 1fr; } }
@media print { .prpt .pbrief__body { break-inside: avoid; } .prpt { min-height: auto; } }
/* the site's scroll-reveal animation keeps headings hidden until scrolled; brief/report must
   always show everything, on screen and in print */
.pbrief, .pbrief * { opacity: 1 !important; transform: none !important; visibility: visible !important; animation: none !important; transition: none !important; }
.prpt__grid { align-items: start; }
.prpt__sec h2 { margin: 0 0 6px; }
.pbrief .prpt__sec h2, .pbrief .pbrief__text h2, html:not(.hc) .pbrief .prpt__sec h2 {
  position: static !important; display: block !important; float: none !important; height: auto !important; min-height: 0 !important;
  margin: 0 0 8px !important; padding: 0 !important; font: 700 17px/1.3 'Noto Serif', Georgia, serif !important; color: #323f2f !important; }
.pbrief .prpt__sec h2::before, .pbrief .prpt__sec h2::after, .pbrief .pbrief__text h2::before, .pbrief .pbrief__text h2::after { content: none !important; display: none !important; }
/* PDF: a whole section pushed to the next page drew its heading over the content (Chrome
   fragmentation bug with break-inside: avoid-page). Let sections flow; keep each heading with
   what follows and never split a table row or a card. */
.prpt__sec { break-inside: auto !important; }
.pbrief .prpt__sec h2 { break-after: avoid; page-break-after: avoid; }
.prpt__tbl tr, .pbrief__stats li, .pbrief__impact li, .prpt__q { break-inside: avoid; }
.prpt__grid, .prpt__tbl { break-before: avoid; }
@media print {
  /* Chrome's PDF drew the Noto Serif web-font h2 lower than its box (overlapping the next line);
     the print-media screenshot was fine. Print headings use a system serif instead. */
  .pbrief .prpt__sec h2, .pbrief .pbrief__text h2 { font-family: Georgia, 'Times New Roman', serif !important; }
}
/* the reveal animation offsets with the individual `translate` property (not transform) until an
   element is scrolled into view; in a PDF printed without scrolling the headings stayed shifted
   down over the next lines. Brief/report: no offsets at all. */
.pbrief, .pbrief * { translate: none !important; scale: none !important; rotate: none !important; }
/* brief: 6 result cards (schemes + documents split) in one row so the brief stays one A4 page */
.pbrief .pbrief__stats:has(li:nth-child(6)) { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.pbrief .pbrief__stats:has(li:nth-child(6)) b { font-size: 15px; }
.pbrief .pbrief__stats:has(li:nth-child(6)) span { font-size: 10px; line-height: 1.25; }
@media (max-width: 760px) { .pbrief .pbrief__stats:has(li:nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
