/* Документы (App\Support\Documents): псевдоссылка в тексте обзора и слой во всю страницу с копией страницы-источника.
   Три вида — по дизайну читателя: uxga (2010 SVGA), svga (2005 VGA), vga (2003 EGA). Страница /documents/N — тот же слой */

/* Псевдоссылка: пунктир под словами, как у ссылок, что открывают что-то на месте */
a.doc-link{ text-decoration: none !important; border-bottom: 1px dashed currentColor; cursor: pointer; }
a.doc-link:hover{ border-bottom-style: solid; }

html.doc-layer-open, html.doc-layer-open body{ overflow: hidden !important; }

.doc-layer{ position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 10000; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: #fff; color: #000; text-align: left; font-size: 16px; line-height: 1.5; }
.doc-layer-inner{ max-width: 760px; margin: 0 auto; padding: 64px 24px 72px; box-sizing: border-box; }
.doc-layer-close{ position: fixed; top: 12px; right: 16px; z-index: 2; display: block; box-sizing: border-box; width: 44px; height: 44px; margin: 0; padding: 0;
  border: 0; background: transparent; color: inherit; font: 400 40px/40px Georgia, 'Times New Roman', serif; text-align: center; text-decoration: none; cursor: pointer; }
.doc-layer-close:focus{ outline: none; }
.doc-layer-close:focus-visible{ outline: 2px solid currentColor; outline-offset: 2px; }
/* Своя страница документа: слой — это вся страница */
body.doc-standalone{ position: static; min-height: 100vh; margin: 0; overflow: visible; }
.doc-loading{ color: #999; }

.doc{ overflow-wrap: anywhere; }
.doc-title{ margin: 0 0 .4em; }
.doc-source, .doc-original{ margin: 0 0 1.2em; }
.doc-original{ margin: 2em 0 0; padding-top: .8em; border-top: 1px solid #ddd; }
.doc-body > :first-child{ margin-top: 0; }
.doc-body > :last-child{ margin-bottom: 0; }
.doc-body p{ margin: 0 0 1em; }
.doc-body img{ max-width: 100%; height: auto; }
.doc-body figure{ margin: 1.2em 0; }
.doc-body figcaption{ font-size: .85em; color: #777; }
.doc-body blockquote{ margin: 1em 0; padding-left: 1em; border-left: 3px solid #ccc; }
.doc-body table{ border-collapse: collapse; max-width: 100%; margin: 1em 0; }
.doc-body td, .doc-body th{ border: 1px solid #ccc; padding: 4px 8px; vertical-align: top; }
.doc-body pre{ white-space: pre-wrap; }
.doc-body h1, .doc-body h2, .doc-body h3, .doc-body h4{ margin: 1.2em 0 .5em; line-height: 1.25; font-family: inherit; color: inherit; font-weight: bold; }
.doc-body h1{ font-size: 1.6em; }
.doc-body h2{ font-size: 1.4em; }
.doc-body h3{ font-size: 1.2em; }
.doc-body h4{ font-size: 1.05em; }

/* 2010 SVGA: светлый фон и белая карточка, как у обзора; всё Georgia (у Staffordshire нет кириллицы) */
.doc-layer--uxga{ background: #f8f9fa; color: #212529; }
.doc-layer--uxga .doc-layer-inner{ max-width: 860px; }
.doc--uxga{ padding: 28px 32px; background: #fff; border: 1px solid #dee2e6; border-radius: .5rem; font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.55; }
.doc--uxga .doc-title{ font-family: Georgia, 'Times New Roman', serif; font-size: 32px; font-weight: 400; line-height: 1.2; }
.doc--uxga .doc-body h1, .doc--uxga .doc-body h2, .doc--uxga .doc-body h3, .doc--uxga .doc-body h4{ font-weight: 400; }
.doc--uxga .doc-source, .doc--uxga .doc-original{ font-size: 15px; color: #6c757d; }
.doc--uxga a{ color: #939393; }
.doc--uxga a:hover{ color: #0076a3; }
.doc-layer--uxga .doc-layer-close{ color: #939393; }
.doc-layer--uxga .doc-layer-close:hover{ color: #0076a3; }

/* 2005 VGA: Verdana, тонкая чёрная рамка, чёрные ссылки с синей подсветкой */
.doc-layer--svga{ font-family: Verdana, Geneva, sans-serif; }
.doc--svga{ padding: 15px 18px; border: 1px solid #000; font-size: 12px; line-height: 1.5; }
.doc--svga .doc-title{ font-size: 14px; font-weight: bold; }
.doc--svga .doc-source, .doc--svga .doc-original{ font-size: 10px; color: #999; }
.doc--svga .doc-original{ border-top: 1px dotted #000; }
.doc--svga a{ color: #000; text-decoration: none; }
.doc--svga a:hover{ color: #0076A3; }
.doc-layer--svga .doc-layer-close{ top: 14px; right: 14px; width: 24px; height: 24px; border: 1px solid #000; background: #fff; color: #000; font: bold 16px/21px Verdana, Geneva, sans-serif; }
.doc-layer--svga .doc-layer-close:hover{ color: #0076A3; border-color: #0076A3; }

/* 2003 EGA: Verdana, бордовый заголовок под чёрной полосой, ссылки с бордовой подсветкой */
.doc-layer--vga{ font-family: Verdana, Geneva, sans-serif; }
.doc--vga{ padding-top: 10px; border-top: 3px solid #000; font-size: 13px; line-height: 1.5; }
.doc--vga .doc-title{ color: #800000; font-size: 15px; font-weight: bold; }
.doc--vga .doc-source, .doc--vga .doc-original{ font-size: 10px; color: #000; }
.doc--vga .doc-original{ border-top: 1px solid #000; }
.doc--vga a{ color: #000; text-decoration: none; }
.doc--vga a:hover{ background-color: #800000; color: #F2EFD8; }
.doc-layer--vga .doc-layer-close{ color: #800000; font: bold 30px/44px Verdana, Geneva, sans-serif; }
.doc-layer--vga .doc-layer-close:hover{ background-color: #800000; color: #F2EFD8; }

@media ( max-width: 600px ){
  .doc-layer-inner{ padding: 60px 12px 48px; }
  .doc--uxga{ padding: 18px 16px; font-size: 17px; }
  .doc--uxga .doc-title{ font-size: 28px; }
  .doc-layer-close{ top: 6px; right: 8px; }
}
