/* BRODLIN VIEWER: one full-size view for the whole site (Denis, 13.11.2026).
   Moved from AI Text Grabber (text-grabber-r1.css, same values). Script: /assets/js/components/brodlin-viewer.js.
   Change the look ONLY in this file. Close X comes from the shared brodlin-close.css. Works in RTL. */
.brodlin-viewer { position: fixed; inset: 0; z-index: 2147483000; color: #fff; font-family: inherit; }
.brodlin-viewer__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 16, .92); }
.brodlin-viewer__visual { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px 16px 80px; overflow: hidden; }
.brodlin-viewer__frame { position: relative; margin: 0; max-width: 80vw; max-height: calc(100vh - 168px); }
.brodlin-viewer__frame[hidden] { display: none; }
.brodlin-viewer__media { display: block; max-width: 80vw; max-height: calc(100vh - 168px); width: auto; height: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transition: transform .15s ease; background: #fff; }
pre.brodlin-viewer__media { box-sizing: border-box; width: min(720px, 80vw); max-height: 86vh; margin: 0; padding: 40px 24px 24px; overflow: auto; color: #14171c; font: 14px/1.6 inherit; white-space: pre-wrap; overflow-wrap: anywhere; text-align: start; unicode-bidi: plaintext; }
/* thin grey label bar on top of the picture: "File name · Page 2" */
.brodlin-viewer__bar { position: absolute; top: 0; inset-inline: 0; z-index: 1; display: block; height: 24px; padding: 0 10px; background: rgba(52, 58, 66, .72); color: #e9ecef; font-size: 12px; font-weight: 400; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; pointer-events: none; }
.brodlin-viewer__bar[hidden] { display: none; }
.brodlin-viewer__message { position: relative; margin: 0; max-width: 420px; color: #fff; font-size: 15px; text-align: center; }
:root .brodlin-viewer .brodlin-viewer__close.brodlin-close { position: absolute; top: 18px; inset-inline-end: 22px; z-index: 2; color: #fff !important; }
:root .brodlin-viewer .brodlin-viewer__close.brodlin-close:hover,
:root .brodlin-viewer .brodlin-viewer__close.brodlin-close:focus-visible { background: rgba(255, 255, 255, .14) !important; color: #fff !important; }
.brodlin-viewer__close svg { width: 22px; height: 22px; }
.brodlin-viewer__toolbar { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 6px; }
.brodlin-viewer__btn { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; margin: 0; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: #fff; cursor: pointer; }
.brodlin-viewer__btn[hidden] { display: none; }
.brodlin-viewer__btn:hover { background: transparent; opacity: .72; }
.brodlin-viewer__btn:focus-visible { background: transparent; outline: 1px solid #fff; outline-offset: 1px; }
.brodlin-viewer__btn:disabled { opacity: .35; cursor: default; background: transparent; }
.brodlin-viewer__btn svg { width: 22px; height: 22px; }
.brodlin-viewer[dir="rtl"] [data-act="prev"] svg, .brodlin-viewer[dir="rtl"] [data-act="next"] svg { transform: scaleX(-1); }
html.brodlin-viewer-open, html.brodlin-viewer-open body { overflow: hidden; }
@media (max-width: 720px) {
  .brodlin-viewer__frame, .brodlin-viewer__media { max-width: 92vw; max-height: calc(100vh - 168px); }
}

/* pages icon before "Page N" in the bar (Denis 13.11.2026) */
.brodlin-viewer__pi { display: inline-flex; vertical-align: -0.2em; margin-inline-end: 3px; }
.brodlin-viewer__pi svg { width: 1.15em; height: 1.15em; }
.brodlin-viewer__pi svg rect[fill] { fill: transparent; }
