/* RACK5 reading surface over the self-hosted PDF.js generic viewer. */
:root {
  color-scheme: light;
  --toolbar-height: 36px;
  --icon-size: 18px;
  --toolbar-icon-opacity: 1;
  --main-color: #263246;
  --body-bg-color: #e8ebef;
  --toolbar-bg-color: #f6f7f9;
  --toolbar-border-color: #dce1e8;
  --toolbar-icon-bg-color: #263246;
  --toolbar-icon-hover-bg-color: #19118c;
  --field-color: #263246;
  --field-bg-color: #fff;
  --field-border-color: #bfc7d4;
  --dropdown-btn-bg-color: #e8ebef;
  --button-hover-color: #e7e8f5;
  --toggled-btn-color: #19118c;
  --toggled-btn-bg-color: #e7e8f5;
}
#editorModeButtons,
#editorModeSeparator,
#secondaryOpenFile,
#viewsManagerAddFileButton { display: none !important; }
#viewerContainer { background: #e8ebef; }
#toolbarContainer { box-shadow: 0 1px 0 #cfd5e0; }
#toolbarContainer .toolbarButton { border-radius: 4px; }
#toolbarContainer .toolbarButton:focus-visible { outline: 2px solid #19118c; outline-offset: -2px; }
#pageNumber { border: 1px solid #bfc7d4; border-radius: 3px; color: #263246; background: #fff; }
#downloadButton { display: inline-flex; width: auto; min-width: 113px; height: 30px; aspect-ratio: auto; align-self: center; gap: 6px; margin-inline: 4px; padding: 0 9px; border-radius: 4px; color: #fff; background: #19118c; font: 600 12px/1 Montserrat, Arial, sans-serif; }
#downloadButton::before, #downloadButton:hover::before, #downloadButton:focus-visible::before { width: 16px; height: 16px; background-color: #fff; }
#downloadButton > span { display: inline; width: auto; height: auto; overflow: visible; white-space: nowrap; }
#downloadButton > .r5k-download-medium, #downloadButton > .r5k-download-short { display: none; }
#downloadButton:hover, #downloadButton:focus-visible { color: #fff; background: #110b70; }
#r5kSecondaryFind { display: none !important; }
#r5kSecondaryFind::before { -webkit-mask-image: var(--toolbarButton-search-icon); mask-image: var(--toolbarButton-search-icon); }
@media (max-width: 420px) {
  #downloadButton { min-width: 84px; gap: 3px; margin-inline: 2px; padding-inline: 6px; }
  #downloadButton > .r5k-download-long { display: none; }
  #downloadButton > .r5k-download-medium { display: inline; font-size: 11px; }
}
@media (max-width: 360px) {
  #mainContainer { min-width: 0; }
  #toolbarContainer #toolbarViewer { justify-content: flex-start; }
  #toolbarViewerRight { margin-inline-start: auto; }
  #viewsManagerToggleButton, #viewFindButton { display: none !important; }
  .r5k-find-wrap { width: 0; aspect-ratio: auto; flex: 0 0 0; }
  #downloadButton { min-width: 58px; margin-inline: 1px; padding-inline: 4px; }
  #downloadButton > .r5k-download-medium { display: none; }
  #downloadButton > .r5k-download-short { display: inline; font-size: 11px; }
  #r5kSecondaryFind { display: flex !important; }
}
