/*
 * Shared component: the sample monthly report section (".report" + the tilted
 * ".doc"). The one style source for it: used by the EN home (scroll scene 1) and For
 * funders. Markup:
 * views/partials/redesign/report-doc.ejs. Values from Paper (home hi-fi and
 * "For funders", which use the same report). Mobile board below 768px.
 */
.report { padding-block: 96px; }
.report__inner { display: flex; align-items: center; gap: 80px; }
.report__copy { width: 460px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.report__copy .h2 { letter-spacing: -0.025em; }
.report__cta-d { align-self: flex-start; }
.report__stage { flex: 1 1 0; display: flex; justify-content: center; padding-block: 24px; min-width: 0; }
.doc {
  width: 520px;
  max-width: 100%;
  border-radius: var(--radius-doc);
  background: var(--white);
  box-shadow: var(--shadow-doc);
  overflow: clip;
  transform: rotate(-2deg);
}
.doc__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid var(--line-soft); }
.doc__brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 15px; font-weight: 800; line-height: 18px; }
.doc__kind, .doc__meta { color: var(--muted); font-size: 11px; line-height: 14px; }
.doc__meta { font-size: 12px; line-height: 16px; }
.doc__body { display: flex; flex-direction: column; gap: 18px; padding: 24px 28px; }
.doc__title-row { display: flex; align-items: flex-start; justify-content: space-between; }
.doc__org { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 28px; }
.doc__stamp {
  padding: 3px 10px;
  border: 2px solid var(--amber);
  border-radius: 4px;
  color: var(--amber-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 14px;
  transform: rotate(4deg);
}
.doc__summary { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 10px; background: var(--paper); }
.doc__k { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; line-height: 12px; }
.doc__k--green { color: var(--deep-green); font-size: 11px; letter-spacing: 0.1em; line-height: 14px; }
.doc__summary-text { font-size: 13px; line-height: 19px; }
.doc__table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 16px; }
.doc__table th, .doc__table td { padding: 8px 0; text-align: left; font-weight: 400; }
.doc__table thead th { padding: 6px 0; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; line-height: 12px; }
.doc__table thead th:first-child { width: 37%; }
.doc__table thead th:last-child { width: 60px; }
.doc__table tbody tr + tr th, .doc__table tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.doc__table tbody td:nth-child(2) { font-weight: 700; }
.doc__table tbody td:nth-child(3) { color: var(--muted); }
.doc__table tbody td:nth-child(4) { color: var(--deep-green); font-weight: 700; }
.doc__chart { position: relative; display: flex; flex-direction: column; gap: 6px; }
.doc__plot { line-height: 0; }
.doc__svg { width: 100%; height: 80px; }
.doc__notes { display: flex; gap: 20px; font-size: 12px; line-height: 17px; }
.doc__notes > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; }
.doc__foot { display: flex; justify-content: space-between; padding: 12px 28px; background: var(--paper); color: var(--muted); font-size: 10px; line-height: 12px; }

@media (max-width: 767px) {
  .report { padding: 24px 0 72px; }
  .report__inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .report__copy { width: auto; }
  .report__stage { padding: 0; }
  .doc { width: 100%; transform: rotate(-1.5deg); box-shadow: 0 20px 40px rgb(14 27 22 / 0.12); }
  .doc__head { padding: 12px 16px; }
  .doc__brand { gap: 6px; font-size: 12px; line-height: 16px; }
  .doc__brand img { width: 16px; height: 16px; }
  .doc__stamp { padding: 2px 6px; border-width: 1.5px; border-radius: 3px; font-size: 10px; line-height: 12px; transform: none; }
  .doc__body { gap: 12px; padding: 16px; }
  .doc__org { font-size: 17px; line-height: 22px; }
  .doc__meta { font-size: 11px; line-height: 14px; }
  .doc__stats { display: flex; gap: 8px; }
  .doc__stats p { flex: 1 1 0; display: flex; flex-direction: column; padding: 10px; border-radius: 10px; background: var(--paper); color: var(--text-2); font-size: 10px; line-height: 12px; }
  .doc__stats .num { color: var(--ink); font-size: 24px; line-height: 30px; }
  .doc__svg { height: 56px; }
  .doc__did { font-size: 11px; line-height: 16px; }
  .report__cta-m { margin-top: 12px; }
}

/* Tablet: stack before the columns crush */
@media (min-width: 768px) and (max-width: 1199px) {
  .report__inner { flex-direction: column; align-items: stretch; gap: 48px; }
  .report__copy { width: auto; }
}
