/* Project evidence begins beneath the playable opening. The canvas follows
   the screen width, while the paragraphs below it keep a readable measure. */
.reading-wrap.evidence-area {
  width: 100%;
  margin: 0;
  padding: clamp(20px, 2.3vw, 44px) var(--frame-inset) clamp(36px, 4vw, 68px);
  padding-inline-start: var(--content-start);
  background: #1c1929;
  border-top: 1px solid #54485e;
}
.evidence-area .viewer {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
}
.evidence-area .viewer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-bottom: 16px;
}
.report-heading { flex: 1 1 28rem; }
.report-kind { color: var(--aqua); }
.report-kind i { background: var(--aqua); box-shadow: 2px 2px #51656c; }
.evidence-area .viewer h2 {
  color: var(--ink);
  font: 600 clamp(24px, 2.2vw, 37px)/1.1 var(--pixel);
  letter-spacing: -.045em;
  margin: 5px 0 0;
}
.evidence-area .actions { gap: 8px; }
.evidence-area .actions .button {
  background: #2b283b;
  border-color: #706276;
  color: var(--ink);
  font: 600 17px/1 var(--pixel);
  min-height: 42px;
  padding: 9px 14px;
}
.evidence-area .actions [data-fullscreen] { background: #b7d7cf; color: #232938; border-color: #cce6dc; }
.evidence-area .actions .button:hover { border-color: var(--moon); color: var(--moon); background: #3c3446; }

/* All four public reports have a 16:9 page. The published viewer currently
   adds a 24px zoom row and a 36px navigation / attribution row below it. */
.report-viewer { --powerbi-controls: 60px; }
.embed {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  background: #171522;
  scrollbar-color: #84758a #272335;
}
.report-sheet {
  display: grid;
  grid-template-rows: auto var(--powerbi-controls);
  width: 100%;
  position: relative;
  isolation: isolate;
}
.report-sheet::before { content: ""; width: 100%; aspect-ratio: 16 / 9; }
.report-sheet iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
/* Tone only the native control strip. Its text, focus rings, links and
   buttons are still rendered and operated by Power BI. */
@media (forced-colors: none) and (prefers-contrast: no-preference) {
  .report-sheet::after {
    content: "";
    position: relative;
    grid-row: 2;
    z-index: 1;
    pointer-events: none;
    -webkit-backdrop-filter: invert(.94) hue-rotate(180deg);
    backdrop-filter: invert(.94) hue-rotate(180deg);
  }
}
.embed.wide:not(:fullscreen) .report-sheet { min-width: 880px; }
.embed:fullscreen {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #13111c;
}
.embed:fullscreen .report-sheet { width: min(100%, calc((100dvh - var(--powerbi-controls)) * 16 / 9)); }
.evidence-area .report-guide { margin-top: 18px; max-width: 64ch; }
.evidence-area .report-guide p { color: var(--body); margin: 0 0 .9em; line-height: 1.6; font-size: clamp(16px, 1.05vw, 18px); }
.project-tools { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; margin-top: 10px; }
.project-tools .meta { color: var(--aqua); }
.project-tools .chips { margin: 0; }
.evidence-area .notes { padding: 24px 0 0; border-top: 1px solid #53465c; column-gap: clamp(30px, 5vw, 100px); }
.evidence-area .notes p { max-width: 68ch; }
.evidence-area .notes h2 { margin: 7px 0 11px; }
.evidence-area .cell pre { line-height: 1.6; }

@media (max-width: 760px) {
  .evidence-area .viewer-head { gap: 12px; margin-bottom: 12px; }
  .report-viewer .actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: stretch; width: 100%; gap: 6px; }
  .evidence-area .actions .button { min-height: 44px; padding-inline: 4px; justify-content: center; text-align: center; font-size: clamp(14px, 3.7vw, 16px); }
  .project-tools { gap: 4px 8px; margin-top: 8px; }
  .project-tools .meta { font-size: 10px; }
  .project-tools .chips { gap: 4px; }
  .project-tools .chips li { font-size: 11px; padding: 2px 5px; }
  .evidence-area .notes { padding-top: 17px; }
}
