/* The Board pages' document viewer (inc/bor-agenda.php nmc_bor_viewer, bor/bor-viewer.js): a PDF in a sheet over the
   page, so people stay where they were. Own tokens: it sits on the agenda (docview.css) and on Policies (cti-program.css). */
.borv {
  --borv-red: #a22631; --borv-red-ink: #8c1f29; --borv-ink: #1d1d1f;
  width: min(860px, calc(100vw - 48px)); height: calc(100vh - 48px); height: calc(100dvh - 48px); max-width: none; max-height: none;
  margin: auto; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: #fff; color: var(--borv-ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  display: none; flex-direction: column;
}
.borv[open] { display: flex; animation: borv-in .32s cubic-bezier(.16, 1, .3, 1); }
.borv::backdrop { background: rgba(0, 0, 0, .42); animation: borv-fade .25s ease; }
@keyframes borv-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes borv-fade { from { opacity: 0; } }
.borv-bar { display: flex; align-items: center; gap: 10px; flex: none; height: 58px; padding: 0 10px; border-bottom: 1px solid #efeff2; }
.borv-x { display: grid; place-items: center; width: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f0f0f3; color: var(--borv-ink); cursor: pointer; }
.borv-x:hover { background: #e6e6ea; }
.borv-x:focus-visible, .borv-open:focus-visible { outline: 2px solid var(--borv-red); outline-offset: 2px; }
.borv-x svg { width: 18px; height: 18px; }
.borv .borv-t { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.borv .borv-open {
  display: inline-flex; align-items: center; gap: 7px; flex: none; height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--borv-red); color: #fff !important; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none !important;
}
.borv .borv-open:hover { background: var(--borv-red-ink); }
.borv-open svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.borv-frame { flex: 1 1 auto; width: 100%; border: 0; background: #e9eaee; }
html.borv-lock { overflow: hidden; }
@media (max-width: 700px) {
  .borv { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .borv[open] { animation: borv-fade .2s ease; }
}
@media print { .borv { display: none !important; } }
