/**
 * Theme-styled PDF.js galley viewer shell for y2026_ojsvnna.
 * Palette: #006D48 / #62965b / #ffc107 — no border-radius.
 */

html,
body.ojs-galley-view-page {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: Inter, "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background: #0f172a;
}

*,
*::before,
*::after {
  border-radius: 0 !important;
}

.pkp_screen_reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header_view,
.vnna-galley-header {
  z-index: 2;
  position: relative;
  background: #006D48;
  min-height: 2.75rem;
  border-bottom: 3px solid #ffc107;
}

.header_view a {
  line-height: 2.75rem;
  text-decoration: none;
}

.header_view .return {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.75rem;
  height: 2.75rem;
  line-height: 2.75rem;
  background: transparent;
  color: #fff;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.header_view .return::before {
  content: "\2190";
  font-size: 1.25rem;
  font-weight: 700;
}

.header_view .return:hover,
.header_view .return:focus {
  background: #00563a;
  color: #ffc107;
}

.header_view .title {
  display: block;
  padding-right: 2.75rem;
  padding-left: calc(2.75rem + 0.75rem);
  max-width: 100%;
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.93rem;
  font-weight: 600;
  color: #fff;
}

.header_view .title .vnna-galley-journal {
  display: none;
}

.header_view .title:hover,
.header_view .title:focus {
  background: #00563a;
  color: #fff;
}

.header_view .download {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 2.75rem;
  height: 2.75rem;
  line-height: 2.75rem;
  background: transparent;
  color: #fff;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.header_view .download::before {
  content: "\2913";
  font-size: 1.1rem;
  font-weight: 700;
}

.header_view .download:hover,
.header_view .download:focus {
  background: #ffc107;
  color: #006D48;
}

.header_view .download .label {
  display: none;
}

@media (min-width: 768px) {
  .header_view .title {
    font-size: 1rem;
  }

  .header_view .title .vnna-galley-journal {
    display: inline;
    margin-right: 0.75rem;
    padding-right: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
    opacity: 0.9;
  }

  .header_view .download {
    width: auto;
    padding: 0 1.25rem;
    border: 1px solid #fff;
    margin: 0.45rem 0.55rem;
    height: 1.85rem;
    line-height: 1.7rem;
    font-weight: 700;
    font-size: 0.85rem;
  }

  .header_view .download::before {
    content: none;
  }

  .header_view .download .label {
    display: inline-block;
  }

  .header_view .download .pkp_screen_reader {
    display: none;
  }
}

.galley_view {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: hidden;
  background: #1e293b;
}

.galley_view iframe {
  width: 100%;
  height: 100%;
  padding-top: 2.75rem;
  border: none;
  box-sizing: border-box;
  background: #1e293b;
}

.galley_view.galley_view_with_notice iframe {
  padding-top: calc(2.75rem * 3);
}

.galley_view .galley_view_notice {
  position: absolute;
  top: 2.75rem;
  width: 100%;
  height: calc(2.75rem * 2);
  background: #b91c1c;
}

.galley_view .galley_view_notice_message {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.galley_view .galley_view_notice_message a {
  color: #fff;
  text-decoration: underline;
}
