* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f8fa;
  color: #111827;
}

a {
  color: #0f3f8f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 14px 28px;
  background: #ffffff;
  border-bottom: 1px solid #dfe3e8;
}

.brand {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.02em;
  color: #111827;
}

.top-search {
  flex: 1;
  display: flex;
  gap: 8px;
}

.top-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #cfd6df;
  border-radius: 0;
  background: #ffffff;
  color: #111827;
}

button {
  padding: 10px 14px;
  border: 1px solid #111827;
  border-radius: 0;
  background: #111827;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #000000;
}

.site-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 0;
  max-width: 1720px;
  margin: 0 auto;
  min-height: calc(100vh - 62px);
  border-left: 1px solid #e3e7ec;
  border-right: 1px solid #e3e7ec;
  background: #ffffff;
}

.left-panel,
.right-panel {
  position: sticky;
  top: 62px;
  align-self: start;
  height: calc(100vh - 62px);
  overflow: auto;
  background: #fbfcfd;
}

.left-panel {
  border-right: 1px solid #e3e7ec;
}

.right-panel {
  border-left: 1px solid #e3e7ec;
}

.main-panel {
  min-width: 0;
  padding: 26px 30px;
  background: #ffffff;
}

.filter-panel,
.ad-panel,
.hero,
.result-row,
.section-head,
.side-panel {
  border-radius: 0;
  box-shadow: none;
}

.filter-panel {
  padding: 18px;
}

.panel-title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #374151;
}

.filter-panel label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.filter-panel input,
.filter-panel select {
  margin-top: 6px;
  font-weight: 400;
}

.clear-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #6b7280;
}

.ad-panel {
  padding: 18px;
}

.ad-label {
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.adsense-placeholder {
  height: 600px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #9ca3af;
  background: #f7f8fa;
  border: 1px solid #e0e5eb;
  line-height: 1.5;
}

.hero {
  padding: 34px 0 26px;
  border-bottom: 1px solid #e3e7ec;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 38px;
  letter-spacing: -.035em;
}

.hero p {
  margin: 0;
  color: #6b7280;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 220px));
  margin-top: 26px;
  border: 1px solid #e3e7ec;
  width: fit-content;
}

.stats div {
  padding: 16px 18px;
  border-right: 1px solid #e3e7ec;
  background: #fbfcfd;
}

.stats div:last-child {
  border-right: 0;
}

.stats b {
  display: block;
  font-size: 27px;
}

.stats span {
  color: #6b7280;
  font-size: 13px;
}

.section-block {
  margin-top: 26px;
}

.section-block h2,
.section-head h1 {
  margin: 0 0 16px;
  letter-spacing: -.02em;
}

.section-head {
  padding-bottom: 16px;
  border-bottom: 1px solid #e3e7ec;
  margin-bottom: 0;
}

.results {
  display: grid;
}

.result-row {
  padding: 18px 0;
  border-bottom: 1px solid #e3e7ec;
}

.result-row h2,
.result-row h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.meta,
.muted,
.small {
  color: #6b7280;
}

.small {
  font-size: 14px;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
}

.pager {
  display: flex;
  gap: 20px;
  padding-top: 20px;
}

.paper-page {
  background: #f7f8fa;
}

.integrated-top {
  height: 62px;
}

.paper-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 320px;
  gap: 0;
  max-width: 1840px;
  margin: 0 auto;
  border-left: 1px solid #e3e7ec;
  border-right: 1px solid #e3e7ec;
  background: #ffffff;
}

.paper-side,
.paper-ad {
  position: sticky;
  top: 92px; /* 62px header + apie 30px language bar */
  align-self: start;
  height: calc(100vh - 92px);
  overflow: auto;
  background: #fbfcfd;
}

.paper-side {
  border-right: 1px solid #e3e7ec;
}

.paper-ad {
  border-left: 1px solid #e3e7ec;
}

.side-panel {
  padding: 18px;
  border-bottom: 1px solid #e3e7ec;
}

.side-title {
  font-weight: 750;
  line-height: 1.35;
  margin-bottom: 14px;
}

.side-meta {
  display: grid;
  gap: 11px;
  font-size: 14px;
  color: #374151;
}

.side-meta b {
  color: #111827;
}

.filter-check {
  display: block;
  margin: 10px 0;
  font-size: 14px;
  color: #374151;
}

.side-note {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.paper-main {
  min-width: 0;
  background: #ffffff;
  padding: 22px;
}

.doc-shell {
  background: #ffffff;
  overflow: visible;
}

.doc-shell #page-container,
.doc-shell .pf,
.doc-shell .pc {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1320px) {
  .site-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .right-panel {
    display: none;
  }
}

@media (max-width: 1320px) and (min-width: 1051px) {
  .paper-layout {
    grid-template-columns: 260px minmax(0, 1fr) 260px;
  }

  .paper-ad {
    display: block;
  }
}

@media (max-width: 900px) {
  .site-layout,
  .paper-layout {
    grid-template-columns: 1fr;
  }

  .left-panel,
  .paper-side {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #e3e7ec;
  }

  .top {
    flex-direction: column;
    align-items: stretch;
    position: static;
  }

  .main-panel,
  .paper-main {
    padding: 18px;
  }
}

.language-list {
  display: grid;
  border-top: 1px solid #e3e7ec;
}

.language-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e3e7ec;
  color: #111827;
}

.language-row:hover {
  text-decoration: none;
  background: #f7f8fa;
}

.language-row.active {
  font-weight: 800;
}

.language-row em {
  font-style: normal;
  font-size: 12px;
  color: #6b7280;
}

.translation-shell {
  max-width: 940px;
  margin: 0 auto;
  padding: 46px 54px;
  background: #ffffff;
  border-left: 1px solid #e3e7ec;
  border-right: 1px solid #e3e7ec;
  min-height: calc(100vh - 110px);
}

.translation-document {
  font-size: 18px;
  line-height: 1.75;
  color: #111827;
}

.translation-document h2 {
  margin: 34px 0 14px;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.translation-document p {
  margin: 0 0 18px;
}

.translation-page-marker {
  margin: 34px 0 18px;
  padding-top: 12px;
  border-top: 1px solid #e3e7ec;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #6b7280;
}

.translation-empty {
  max-width: 720px;
  margin: 90px auto;
  padding: 32px 0;
  border-top: 1px solid #e3e7ec;
  border-bottom: 1px solid #e3e7ec;
}

.translation-empty h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -.02em;
}

.translation-empty p {
  margin: 0;
  color: #6b7280;
}

.filter-panel summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #374151;
  padding: 18px;
  border-bottom: 1px solid #e3e7ec;
}

.filter-panel summary::-webkit-details-marker {
  display: none;
}

.filter-panel form {
  padding: 18px;
}

.marked-panel {
  border-top: 1px solid #e3e7ec;
  padding: 18px;
}

.marked-list {
  display: grid;
}

.marked-empty {
  color: #6b7280;
  font-size: 13px;
}

.marked-item {
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #e3e7ec;
  font-size: 13px;
}

.marked-item button {
  padding: 0;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #6b7280;
}

.mark-button {
  width: 100%;
  margin-bottom: 16px;
  background: #ffffff;
  color: #111827;
  border: 1px solid #111827;
}

.language-topbar {
  position: sticky;
  top: 62px;
  z-index: 40;
  background: #fbfcfd;
  border-bottom: 1px solid #e3e7ec;
}

.language-topbar-inner {
  max-width: 1840px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-left: 1px solid #e3e7ec;
  border-right: 1px solid #e3e7ec;
}

.lang-pill {
  border: 0;
  border-right: 1px solid #e3e7ec;
  background: #ffffff;
  color: #111827;
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.lang-pill:hover {
  text-decoration: none;
  background: #f1f4f8;
}

.lang-pill.active {
  background: #111827;
  color: #ffffff;
}

.lang-pill.unavailable {
  color: #9ca3af;
  background: #f7f8fa;
}

.lang-pill.queued {
  color: #374151;
  background: #eef2f7;
}

.full-height-side {
  display: flex;
  flex-direction: column;
}

.paper-marked-panel {
  flex: 1;
  min-height: 240px;
  overflow: auto;
}

.toast {
  position: fixed;
  top: 118px;
  right: 28px;
  z-index: 2147483647;
  max-width: 420px;
  padding: 14px 18px;
  background: #111827;
  color: #ffffff;
  border: 1px solid #111827;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  font-size: 14px;
}


/* Final language selector + paper layout fixes */
.language-topbar {
  position: sticky;
  top: 62px;
  z-index: 40;
  background: #fbfcfd;
  border-bottom: 1px solid #e3e7ec;
  text-align: center;
}

.language-topbar-inner {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  overflow: visible;
  border-left: 1px solid #e3e7ec;
}

.lang-pill {
  flex: 0 0 auto;
  width: auto;
  min-width: 44px;
  max-width: none;
  border: 0;
  border-right: 1px solid #e3e7ec;
  background: #ffffff;
  color: #111827;
  padding: 5px 7px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  text-transform: lowercase;
  cursor: pointer;
}

.lang-pill:hover {
  text-decoration: none;
  background: #f1f4f8;
}

.lang-pill.active {
  background: #111827;
  color: #ffffff;
  font-weight: 800;
}

.lang-pill.unavailable {
  color: #9ca3af;
  background: #f7f8fa;
}

.lang-pill.queued {
  color: #374151;
  background: #eef2f7;
}

.lang-origin {
  font-size: 10px;
  opacity: .75;
  text-transform: none;
}

/* Keep three columns while there is enough screen width */
@media (max-width: 1320px) and (min-width: 1051px) {
  .paper-layout {
    grid-template-columns: 260px minmax(0, 1fr) 260px;
  }

  .paper-ad {
    display: block;
  }

  .paper-main {
    min-width: 0;
    padding: 16px;
  }
}

/* Prevent the translated PDF/HTML from pushing the right column outside the grid */
.paper-main {
  min-width: 0;
  overflow-x: auto;
}

.doc-shell,
.translated-doc,
.translation-shell {
  max-width: 100%;
}



.paper-layout {
  width: 100%;
}

.paper-main {
  min-width: 0;
  overflow-x: auto;
}

.paper-layout {
  display: grid;
  grid-template-columns: clamp(240px, 18vw, 320px) minmax(0, 1fr) clamp(240px, 18vw, 320px);
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  align-items: start;
}

.paper-side,
.paper-ad {
  position: sticky;
  top: 92px;
  height: calc(100vh - 92px);
  overflow: auto;
  align-self: start;
}

.paper-main {
  min-width: 0;
  overflow-x: auto;
}

.doc-shell,
.translated-doc,
.translation-shell {
  max-width: 100%;
}

@media (max-width: 900px) {
  .paper-layout {
    grid-template-columns: 1fr;
  }

  .paper-side,
  .paper-ad {
    position: static;
    height: auto;
  }

  .paper-ad {
    display: none;
  }
}

/* SCIPAPERS EMBEDDED PDF LAYOUT FIX */
body.paper-page .paper-layout {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) 300px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  align-items: start !important;
  background: #ffffff !important;
}

body.paper-page .paper-side {
  grid-column: 1 !important;
  display: block !important;
  position: sticky !important;
  top: 92px !important;
  height: calc(100vh - 92px) !important;
  overflow: auto !important;
  z-index: 20 !important;
  background: #fbfcfd !important;
  border-right: 1px solid #e3e7ec !important;
  border-bottom: 0 !important;
}

body.paper-page .paper-main {
  grid-column: 2 !important;
  min-width: 0 !important;
  padding: 18px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  position: relative !important;
  z-index: 1 !important;
  background: #ffffff !important;
}

body.paper-page .paper-ad {
  grid-column: 3 !important;
  display: block !important;
  position: sticky !important;
  top: 92px !important;
  height: calc(100vh - 92px) !important;
  overflow: auto !important;
  z-index: 10 !important;
  background: #fbfcfd !important;
  border-left: 1px solid #e3e7ec !important;
}

body.paper-page .full-height-side {
  display: block !important;
}

body.paper-page .paper-marked-panel {
  flex: none !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

/* Svarbiausia dalis: įdėto PDF/HTML #page-container turi būti normalus blokas, ne fullscreen absolute viewport. */
body.paper-page .doc-shell {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  background: #ffffff !important;
}

body.paper-page .doc-shell #sidebar,
body.paper-page .doc-shell .loading-indicator {
  display: none !important;
}

body.paper-page .doc-shell .pf,
body.paper-page .doc-shell .pc {
  max-width: 100% !important;
}

body.paper-page .doc-shell .pf {
  display: block !important;
  position: relative !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1180px) {
  body.paper-page .paper-layout {
    grid-template-columns: 260px minmax(0, 1fr) !important;
  }

  body.paper-page .paper-ad {
    display: none !important;
  }
}

@media (max-width: 760px) {
  body.paper-page .paper-layout {
    grid-template-columns: 1fr !important;
  }

  body.paper-page .paper-side,
  body.paper-page .paper-ad {
    position: static !important;
    height: auto !important;
  }
}
/* END SCIPAPERS EMBEDDED PDF LAYOUT FIX */

/* SCIPAPERS BOOKMARKS */
.bookmark-button {
  width: 100%;
  margin: -8px 0 16px;
  background: #111827;
  color: #ffffff;
  border: 1px solid #111827;
}

.bookmark-button.bookmark-mode-active {
  outline: 2px solid #0f3f8f;
  outline-offset: 2px;
}

.marked-subtitle {
  margin: 12px 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7280;
}

.marked-item small {
  display: inline-block;
  margin-left: 4px;
  color: #6b7280;
  font-size: 11px;
}

.doc-shell,
.translation-shell {
  position: relative;
}

.doc-bookmarks-layer {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  pointer-events: none;
  z-index: 100000;
}

.doc-bookmark-marker {
  position: absolute;
  width: 28px;
  height: 28px;
  padding: 0;
  transform: translate(-50%, -100%);
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 22px;
  line-height: 28px;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}

.doc-bookmark-marker:hover,
.doc-bookmark-marker.active {
  transform: translate(-50%, -100%) scale(1.25);
}

body.bookmark-placement-mode .paper-main {
  cursor: crosshair;
}
/* END SCIPAPERS BOOKMARKS */

/* SCIPAPERS BOOKMARK RED MOVE FIX */
.doc-bookmark-marker,
.doc-bookmark-marker:hover,
.doc-bookmark-marker:focus,
.doc-bookmark-marker:active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #dc2626 !important;
  outline: none !important;
}

.doc-bookmark-marker {
  cursor: grab !important;
}

.doc-bookmark-marker:active {
  cursor: grabbing !important;
}

.doc-bookmark-marker:hover,
.doc-bookmark-marker.active {
  background: transparent !important;
  transform: translate(-50%, -100%) scale(1.25);
  filter: drop-shadow(0 2px 3px rgba(220,38,38,.35));
}
/* END SCIPAPERS BOOKMARK RED MOVE FIX */

/* SCIPAPERS BOOKMARK POINTER MOVE FIX */
.doc-bookmark-marker {
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  cursor: grab !important;
}

.doc-bookmark-marker.dragging {
  cursor: grabbing !important;
  transform: translate(-50%, -100%) scale(1.25) !important;
  filter: drop-shadow(0 3px 5px rgba(220,38,38,.45)) !important;
}
/* END SCIPAPERS BOOKMARK POINTER MOVE FIX */

/* SCIPAPERS RIGHT DOCUMENT META */
body.paper-page .paper-right-meta-panel {
  max-height: 25vh;
  overflow: hidden;
  background: #fbfcfd;
  position: relative;
}

body.paper-page .paper-right-meta-panel.is-expanded {
  max-height: 72vh;
  overflow: auto;
}

body.paper-page .right-doc-title {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  color: #111827;
}

body.paper-page .right-doc-meta {
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #4b5563;
  word-break: break-word;
}

body.paper-page .right-doc-meta b {
  font-size: 10.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #111827;
}

body.paper-page .doc-meta-toggle {
  width: 100%;
  margin-top: 8px;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.2;
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
}

body.paper-page .doc-meta-toggle:hover {
  background: #f3f4f6;
}

body.paper-page .paper-right-meta-panel:not(.is-expanded)::after {
  content: "";
  position: sticky;
  display: block;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  margin-top: -18px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(251,252,253,0), #fbfcfd);
}

body.paper-page .paper-ad .ad-panel {
  border-top: 0;
}
/* END SCIPAPERS RIGHT DOCUMENT META */

/* SCIPAPERS RIGHT DOCUMENT META FIX 2 */
body.paper-page .paper-right-meta-panel {
  max-height: 33vh !important;
  padding-bottom: 52px !important;
  overflow: hidden !important;
}

body.paper-page .paper-right-meta-panel.is-expanded {
  max-height: 72vh !important;
  overflow: auto !important;
}

body.paper-page .paper-right-meta-panel .doc-meta-toggle {
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 12px !important;
  width: calc(100% - 36px) !important;
  display: block !important;
  z-index: 5 !important;
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
}

body.paper-page .paper-right-meta-panel.is-expanded .doc-meta-toggle {
  position: sticky !important;
  left: auto !important;
  right: auto !important;
  bottom: 0 !important;
  width: 100% !important;
}

body.paper-page .right-doc-title {
  font-size: 15px !important;
  line-height: 1.35 !important;
  margin-bottom: 12px !important;
}

body.paper-page .right-doc-meta {
  font-size: 11.5px !important;
  line-height: 1.35 !important;
}
/* END SCIPAPERS RIGHT DOCUMENT META FIX 2 */


/* SCIPAPERS RIGHT META TOGGLE LOOK */
body.paper-page .paper-right-meta-panel {
  position: relative !important;
  padding-bottom: 44px !important;
}

body.paper-page .paper-right-meta-panel:not(.is-expanded)::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 78px !important;
  pointer-events: none !important;
  z-index: 3 !important;
  background: linear-gradient(
    to bottom,
    rgba(251,252,253,0),
    rgba(251,252,253,.72) 45%,
    #fbfcfd 100%
  ) !important;
}

body.paper-page .paper-right-meta-panel .doc-meta-toggle {
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 10px !important;
  width: calc(100% - 36px) !important;
  z-index: 6 !important;

  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0f3f8f !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-align: left !important;
  box-shadow: none !important;
}

body.paper-page .paper-right-meta-panel .doc-meta-toggle:hover {
  background: transparent !important;
  text-decoration: underline !important;
}

body.paper-page .paper-right-meta-panel.is-expanded::after {
  display: none !important;
}

body.paper-page .paper-right-meta-panel.is-expanded .doc-meta-toggle {
  position: sticky !important;
  bottom: 0 !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  margin-top: 10px !important;
  padding: 8px 0 0 !important;
  background: #fbfcfd !important;
}
/* END SCIPAPERS RIGHT META TOGGLE LOOK */

/* SCIPAPERS RIGHT META LINKS */
body.paper-page .right-doc-links {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid #e5e7eb !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  color: #4b5563 !important;
}

body.paper-page .right-doc-links-title {
  margin-bottom: 7px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
  color: #111827 !important;
}

body.paper-page .right-doc-links a {
  display: block !important;
  margin: 5px 0 !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: #0f3f8f !important;
  word-break: break-word !important;
}
/* END SCIPAPERS RIGHT META LINKS */

/* SCIPAPERS SIDE BACK LINK */
body.paper-page .side-back-link {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #374151;
}

body.paper-page .side-back-link:hover {
  color: #0f3f8f;
  text-decoration: underline;
}
/* END SCIPAPERS SIDE BACK LINK */


/* SCIPAPERS SHOW MORE CLICK FIX */
body.paper-page .paper-right-meta-panel .doc-meta-toggle {
  pointer-events: auto !important;
  cursor: pointer !important;
}

body.paper-page .paper-right-meta-panel::after {
  pointer-events: none !important;
}

body.paper-page .paper-right-meta-panel.is-expanded {
  max-height: 72vh !important;
  overflow: auto !important;
}
/* END SCIPAPERS SHOW MORE CLICK FIX */

/* SCIEEE BRAND SLOGAN */
.top {
  gap: 16px !important;
}

.brand-wrap {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  min-width: 255px !important;
  white-space: nowrap !important;
}

.brand-wrap .brand {
  text-transform: lowercase !important;
  white-space: nowrap !important;
}

.brand-slogan {
  font-size: 11px !important;
  line-height: 1.1 !important;
  font-weight: 500 !important;
  color: #9ca3af !important;
  white-space: nowrap !important;
  letter-spacing: .01em !important;
}

.top-search {
  flex: 1 1 480px !important;
  max-width: 600px !important;
  min-width: 0 !important;
}

.top-search input {
  min-width: 0 !important;
}
/* END SCIEEE BRAND SLOGAN */

/* SCIEEE BRAND SLOGAN FINAL */
.top .brand-wrap {
  display: flex !important;
  align-items: baseline !important;
  gap: 18px !important;
  flex: 0 0 auto !important;
  min-width: 300px !important;
  white-space: nowrap !important;
}

.top .brand-wrap .brand {
  text-transform: lowercase !important;
  white-space: nowrap !important;
}

.top .brand-wrap .brand-slogan {
  font-size: 70% !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #8b95a1 !important;
  white-space: nowrap !important;
  letter-spacing: .01em !important;
}

.top-search {
  flex: 1 1 440px !important;
  max-width: 560px !important;
  min-width: 0 !important;
}

.top-search input {
  min-width: 0 !important;
}
/* END SCIEEE BRAND SLOGAN FINAL */

/* SCIEEE BRAND SLOGAN HARD FIX */
.top .brand-wrap,
header.top .brand-wrap {
  display: flex !important;
  align-items: baseline !important;
  gap: 0 !important;
  flex: 0 0 auto !important;
  min-width: 335px !important;
  white-space: nowrap !important;
}

.top .brand-wrap .brand,
header.top .brand-wrap .brand {
  display: inline-block !important;
  font-size: 32px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: #111827 !important;
  text-transform: lowercase !important;
  text-decoration: none !important;
}

.top .brand-wrap .brand-slogan,
header.top .brand-wrap .brand-slogan,
.brand-slogan {
  display: inline-block !important;
  margin-left: 22px !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: #9ca3af !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.top-search {
  flex: 1 1 400px !important;
  max-width: 520px !important;
  min-width: 0 !important;
}
/* END SCIEEE BRAND SLOGAN HARD FIX */

/* PRIVATE HOME STATS */
.private-home-stats {
  display: flex;
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
  flex-wrap: wrap;
}

.private-stat-card {
  min-width: 180px;
}

.private-stat-wide {
  min-width: 320px;
  max-width: 680px;
}

.private-stat-number {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
}

.private-stat-lang-list {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.private-stat-label {
  margin-top: 5px;
  font-size: 13px;
  color: #6b7280;
}
/* END PRIVATE HOME STATS */

/* PRIVATE HOME STATS INLINE FIX */
.private-home-stats {
  display: contents !important;
}

.private-stat-card {
  border-left: 1px solid #d9dee7;
  padding: 24px 28px;
  min-width: 210px;
}

.private-stat-number {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 900;
  color: #111827;
}

.private-stat-label {
  margin-top: 8px;
  font-size: 15px;
  color: #6b7280;
}

.private-stat-lang-list {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  max-width: 360px;
}
/* END PRIVATE HOME STATS INLINE FIX */

/* SCIEEE SLOGAN SIZE FIX */
.top .brand-wrap .brand-slogan,
header.top .brand-wrap .brand-slogan,
.brand-slogan {
  font-size: 16px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
  margin-left: 11px !important;
  line-height: 1 !important;
}
/* END SCIEEE SLOGAN SIZE FIX */

/* SCIEEE INLINE PAPER ADS */
body.paper-page .paper-inline-ad {
  box-sizing: border-box;
  width: min(760px, calc(100% - 28px));
  margin: 18px auto;
  padding: 18px 22px;
  border: 1px solid #e5e7eb;
  background: #fbfcfd;
  color: #111827;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
}

body.paper-page .paper-inline-ad-label {
  margin-bottom: 8px;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9ca3af;
}

body.paper-page .paper-inline-ad-title {
  margin-bottom: 7px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
  color: #111827;
}

body.paper-page .paper-inline-ad-body {
  max-width: 680px;
  font-size: 13px;
  line-height: 1.45;
  color: #4b5563;
}

body.paper-page .paper-inline-ad-links {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}

body.paper-page .paper-inline-ad-links a {
  color: #0f3f8f;
  text-decoration: none;
}

body.paper-page .paper-inline-ad--adsense {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.paper-page .paper-inline-ad-slot {
  min-height: 74px;
}
/* END SCIEEE INLINE PAPER ADS */



/* SCIEEE PAPER FIXED CENTER SCROLL */
body.paper-page {
  overflow: hidden !important;
}

body.paper-page .paper-layout {
  display: grid !important;
  grid-template-columns: 20vw 60vw 20vw !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: calc(100vh - 92px) !important;
  max-height: calc(100vh - 92px) !important;
  margin: 0 !important;
  overflow: hidden !important;
  align-items: stretch !important;
  background: #ffffff !important;
}

body.paper-page .paper-side {
  grid-column: 1 !important;
  width: 20vw !important;
  max-width: 20vw !important;
  min-width: 20vw !important;
  height: calc(100vh - 92px) !important;
  max-height: calc(100vh - 92px) !important;
  position: relative !important;
  top: auto !important;
  overflow: hidden !important;
  background: #fbfcfd !important;
  border-right: 1px solid #e3e7ec !important;
}

body.paper-page .paper-main {
  grid-column: 2 !important;
  width: 60vw !important;
  max-width: 60vw !important;
  min-width: 0 !important;
  height: calc(100vh - 92px) !important;
  max-height: calc(100vh - 92px) !important;
  padding: 18px 0 !important;
  overflow: auto !important;
  position: relative !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

body.paper-page .paper-ad {
  grid-column: 3 !important;
  width: 20vw !important;
  max-width: 20vw !important;
  min-width: 20vw !important;
  height: calc(100vh - 92px) !important;
  max-height: calc(100vh - 92px) !important;
  position: relative !important;
  top: auto !important;
  overflow: hidden !important;
  background: #fbfcfd !important;
  border-left: 1px solid #e3e7ec !important;
}

body.paper-page .paper-main .doc-shell {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

body.paper-page .paper-main #sidebar,
body.paper-page .paper-main .loading-indicator {
  display: none !important;
}

body.paper-page .paper-main .pf {
  display: block !important;
  position: relative !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.paper-page #page-container .paper-inline-ad {
  display: block !important;
  width: var(--scieee-page-width, auto) !important;
  max-width: var(--scieee-page-width, none) !important;
  margin: 13px auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  body.paper-page {
    overflow: auto !important;
  }

  body.paper-page .paper-layout {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
  overflow-y: visible !important;
  }

  body.paper-page .paper-side,
  body.paper-page .paper-main,
  body.paper-page .paper-ad {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
  overflow-y: visible !important;
  }

  body.paper-page .paper-ad {
    display: none !important;
  }
}
/* END SCIEEE PAPER FIXED CENTER SCROLL */




/* SCIEEE SPLIT PDF VIEWER */
body.paper-page [data-scieee-split-doc="1"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 300px !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  position: relative !important;
}

body.paper-page [data-scieee-split-doc="1"] .pf {
  display: block !important;
  position: relative !important;
  visibility: visible !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.paper-page .scieee-split-loader {
  display: block !important;
  width: var(--scieee-page-width, 100%) !important;
  max-width: var(--scieee-page-width, 100%) !important;
  margin: 13px auto !important;
  padding: 18px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #6b7280 !important;
  text-align: center !important;
  font-size: 13px !important;
}

body.paper-page .scieee-split-loader[hidden] {
  display: none !important;
}
/* END SCIEEE SPLIT PDF VIEWER */




/* SCIEEE ADS BY PREVIOUS PAGE FINAL CSS */
body.paper-page #page-container .paper-inline-ad {
  display: block !important;
  position: relative !important;
  box-sizing: border-box !important;
  margin: 13px auto !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: 1px 1px 3px 1px #333 !important;
  overflow: hidden !important;
  text-align: left !important;
}

body.paper-page #page-container .paper-inline-ad-label {
  margin: 0 !important;
  padding: 14px 18px 8px !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #9ca3af !important;
}

body.paper-page #page-container .paper-inline-ad-title {
  margin: 0 !important;
  padding: 0 18px 8px !important;
}

body.paper-page #page-container .paper-inline-ad-body {
  margin: 0 !important;
  padding: 0 18px 14px !important;
  max-width: 100% !important;
}

body.paper-page #page-container .paper-inline-ad-links {
  margin: 0 !important;
  padding: 0 18px 16px !important;
}

body.paper-page #page-container .paper-inline-ad--adsense {
  min-height: 120px !important;
}

body.paper-page #page-container .paper-inline-ad-slot {
  min-height: 74px !important;
  padding: 0 !important;
}
/* END SCIEEE ADS BY PREVIOUS PAGE FINAL CSS */


/* SCIEEE MANUAL ADSENSE CSS */
body.paper-page .paper-right-adsense-manual {
  margin: 0 !important;
  padding: 18px !important;
  border-bottom: 1px solid #e3e7ec !important;
  background: #fbfcfd !important;
}

body.paper-page .paper-right-adsense-manual .adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-height: 280px !important;
}

body.paper-page #page-container .paper-inline-ad--adsense .adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-height: 120px !important;
}
/* END SCIEEE MANUAL ADSENSE CSS */


/* SCIEEE ADSENSE IN ARTICLE FIX */
body.paper-page #page-container .paper-inline-ad--adsense {
  min-height: 180px !important;
}

body.paper-page #page-container .paper-inline-ad--adsense .paper-inline-ad-slot {
  min-height: 160px !important;
}

body.paper-page #page-container .paper-inline-ad--adsense ins.adsbygoogle {
  display: block !important;
  text-align: center !important;
  min-height: 160px !important;
}
/* END SCIEEE ADSENSE IN ARTICLE FIX */


/* SCIEEE RIGHT ADS ORDER FIX */
body.paper-page .paper-ad {
  display: flex !important;
  flex-direction: column !important;
}

body.paper-page .paper-right-meta-panel {
  order: 1 !important;
  flex: 0 0 auto !important;
  display: block !important;
  visibility: visible !important;
}

body.paper-page .paper-right-adsense-manual {
  order: 2 !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 18px !important;
  border-top: 1px solid #e3e7ec !important;
  border-bottom: 1px solid #e3e7ec !important;
  background: #fbfcfd !important;
}

body.paper-page .paper-right-adsense-manual .adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-height: 280px !important;
}
/* END SCIEEE RIGHT ADS ORDER FIX */


/* SCIEEE BRAND SLOGAN SIZE */
.brand-slogan {
  font-size: 70% !important;
}
/* END SCIEEE BRAND SLOGAN SIZE */


/* SCIEEE HOME ADSENSE CSS */
.home-right-adsense-manual {
  padding: 18px !important;
  background: #fbfcfd !important;
}

.home-right-adsense-manual .adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-height: 600px !important;
}
/* END SCIEEE HOME ADSENSE CSS */


/* SCIEEE LEGAL HEADER AND PAGES */
.top-legal-links {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.top-legal-links a {
  color: #6b7280 !important;
  text-decoration: none !important;
}

.top-legal-links a:hover {
  color: #111827 !important;
  text-decoration: underline !important;
}

.legal-page {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 42px 0 70px !important;
}

.legal-page h1 {
  margin: 0 0 8px !important;
  font-size: 38px !important;
  letter-spacing: -.035em !important;
}

.legal-page h2 {
  margin: 30px 0 10px !important;
  font-size: 20px !important;
  letter-spacing: -.02em !important;
}

.legal-page p {
  margin: 0 0 14px !important;
  color: #374151 !important;
  line-height: 1.65 !important;
  font-size: 15px !important;
}

@media (max-width: 900px) {
  .top-legal-links {
    justify-content: center !important;
    font-size: 12px !important;
  }

  .legal-page {
    padding: 26px 0 50px !important;
  }
}
/* END SCIEEE LEGAL HEADER AND PAGES */








/* SCIEEE LEGAL FOOTER LINKS */
html body footer.site-footer,
html body .site-footer {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;

  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 8px 0 !important;

  text-align: center !important;
  font-size: 9px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;

  color: #9ca3af !important;
  background: #ffffff !important;
  border-top: 1px solid #e3e7ec !important;
}

html body footer.site-footer a,
html body .site-footer a,
html body footer.site-footer span,
html body .site-footer span {
  display: inline-block !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;

  text-align: center !important;
  font-size: 9px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;

  color: #9ca3af !important;
  text-decoration: none !important;
}

html body footer.site-footer a:hover,
html body .site-footer a:hover {
  color: #111827 !important;
  text-decoration: underline !important;
}
/* END SCIEEE LEGAL FOOTER LINKS */

