/* ===== Scientific Reports (Nature-style) header & cookie banner ===== */

.nr-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.nr-body-bg {
  background: #ebebeb;
}

/* Top bar */
.nr-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}
.nr-topbar .nr-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  flex-wrap: wrap;
}
.nr-brand {
  font-size: 30px;
  font-weight: 300;
  color: #222;
  text-decoration: none;
  letter-spacing: -0.5px;
  font-family: Georgia, "Times New Roman", serif;
}
.nr-brand-bold {
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
}
.nr-toplinks {
  display: flex;
  align-items: center;
}
.nr-toplinks a {
  display: inline-block;
  padding: 18px 20px;
  font-size: 14px;
  color: #222;
  text-decoration: underline;
  border-left: 1px solid #e0e0e0;
  font-family: Arial, Helvetica, sans-serif;
}
.nr-toplinks a:last-child {
  border-right: 1px solid #e0e0e0;
}
.nr-toplinks a:hover {
  background: #f5f5f5;
}

/* Nav */
.nr-nav {
  background: #ffffff;
  border-bottom: 1px solid #d5d5d5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.nr-nav .nr-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nr-nav a {
  padding: 14px 18px 14px 0;
  margin-right: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
}
.nr-nav a:hover {
  text-decoration: underline;
}
.nr-caret {
  font-size: 12px;
}

/* Breadcrumb */
.nr-breadcrumb {
  padding: 20px 0 10px;
  font-size: 14px;
  color: #555;
  font-family: Arial, Helvetica, sans-serif;
}
.nr-breadcrumb a {
  color: #666;
  text-decoration: underline;
}
.nr-sep {
  margin: 0 8px;
  color: #999;
}

/* Article head */
.nr-article-head {
  padding: 24px 20px 8px;
}
.nr-kicker {
  font-size: 14px;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
}
.nr-divider {
  margin: 0 8px;
  color: #bbb;
}
.nr-open {
  color: #a6603a;
  text-decoration: underline;
}
.nr-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  color: #111;
  margin: 18px 0 20px;
  max-width: 900px;
}
.nr-authors {
  font-size: 16px;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 14px;
}
.nr-authors a {
  color: #006699;
  text-decoration: underline;
}
.nr-cite {
  font-size: 15px;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  padding-bottom: 24px;
  border-bottom: 1px solid #d5d5d5;
}
.nr-cite a {
  color: #006699;
  text-decoration: underline;
}

/* Keep video area on the grey background */
.nr-body-bg .video-container {
  padding-top: 24px;
}

/* ===== Cookie consent banner (Nature-style) ===== */
.ck-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: #012f3c;
  color: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}
.ck-banner[hidden] {
  display: none;
}
.ck-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px 32px;
  font-family: Arial, Helvetica, sans-serif;
}
.ck-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 14px;
  color: #ffffff;
}
.ck-inner p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 12px;
  color: #e8f2f5;
}
.ck-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}
.ck-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.ck-btn {
  background: #ffffff;
  color: #012f3c;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}
.ck-btn:hover {
  background: #e6f0f2;
}
.ck-btn:focus-visible {
  outline: 3px solid #7fd1e8;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .nr-toplinks a {
    padding: 12px 12px;
    font-size: 12px;
  }
  .nr-brand {
    font-size: 24px;
  }
  .ck-btn {
    width: 100%;
  }
}

/* ===== Mobile: compact header so the VSL is visible without scrolling ===== */
@media (max-width: 767px) {
  .nr-topbar .nr-container {
    min-height: 44px;
    padding: 6px 16px;
  }
  .nr-brand {
    font-size: 20px;
  }
  .nr-toplinks {
    display: none;
  }
  .nr-nav .nr-container {
    gap: 0;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    min-height: 38px;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nr-nav .nr-container::-webkit-scrollbar {
    display: none;
  }
  .nr-nav a {
    font-size: 12.5px;
    padding: 9px 0;
    margin-right: 16px;
    flex: 0 0 auto;
  }
  .nr-nav a:last-child {
    margin-right: 0;
  }

  .nr-breadcrumb {
    padding: 6px 16px;
    font-size: 11.5px;
  }

  .nr-article-head {
    padding: 10px 16px 4px;
  }
  .nr-kicker {
    font-size: 11px;
  }
  .nr-headline {
    font-size: 19px;
    line-height: 1.2;
    margin: 6px 0 6px;
  }
  .nr-authors,
  .nr-cite {
    display: none;
  }
  .nr-body-bg .video-container {
    padding-top: 6px;
  }
  .video-container vturb-smartplayer {
    max-width: min(400px, calc((100svh - 230px) / 1.7763)) !important;
  }
  .viewer-counter {
    margin-top: 6px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .ck-inner {
    padding: 12px 16px 14px;
  }
  .ck-title {
    font-size: 16px;
    margin: 0 0 6px;
  }
  .ck-inner p {
    font-size: 11.5px;
    line-height: 1.35;
    margin: 0 0 6px;
  }
  .ck-inner p:nth-of-type(2),
  .ck-inner p:nth-of-type(3) {
    display: none;
  }
  .ck-actions {
    gap: 8px;
    margin-top: 10px;
  }
  .ck-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
  /* keep the player above the consent banner */
  body.ck-open .video-container vturb-smartplayer {
    max-width: min(400px, calc((100svh - 230px - 250px) / 1.7763)) !important;
  }
}
