/* ── Scroller layout ─────────────────────────────────────── */
/* Colours + fonts inherit the host template via --jrp-* tokens
   (defined in jrprism.css, mapped to Bootstrap 5 variables). The
   px dimensions below are the tuned scroller geometry. */

.jrp-scroller {
  margin: 0;
  padding: 10px;
}

.jrp-scroller-wrap {
  position: relative;
  display: flex;
}

.jrp-scroller-scrollbar {
  position: relative;
  width: 13px;
  flex-shrink: 0;
}

.jrp-scroller-scrollbar .jrp-sb-track {
  position: relative;
  width: 13px;
  height: 100%;
  padding: 1px;
}

.jrp-scroller-scrollbar .jrp-sb-thumb {
  position: absolute;
  top: 0;
  width: 10px;
  height: 20px;
  background: var(--jrp-accent);
  cursor: pointer;
  border-radius: 0;
  margin-top: 15px;
}

/* ── Left column: scrollable title list ── */
.jrp-scroller-nav {
  max-height: 680px;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 15px;
}

@media (min-width: 960px) and (max-width: 1199px) {
  .jrp-scroller-nav { max-height: 585px; }
}

@media (min-width: 768px) and (max-width: 959px) {
  .jrp-scroller-nav { max-height: 560px; }

  .jrp-scroller-title {
    font-size: 24.5px;
    line-height: 36px;
  }
}

/* ≤767px — 50/50 columns, reduced heights, smaller typography */
@media (max-width: 767px) {
  .jrp-scroller { padding: 0; }

  .jrp-scroller > .row > [class*="col-4"] { flex: 0 0 50%; max-width: 50%; }
  .jrp-scroller > .row > [class*="col-8"] { flex: 0 0 50%; max-width: 50%; }

  .jrp-scroller-nav {
    max-height: 500px;
    font-size: 1em;
  }

  .jrp-scroller-nav .list-group-item {
    font-size: 12px;
    line-height: 24px;
  }

  .jrp-scroller-title {
    font-size: 18.9px;
    line-height: 30px;
    margin-top: 0;
  }

  .jrp-scroller-meta {
    font-size: 1.15em;
    line-height: 1.35em;
  }
}

.jrp-scroller-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.jrp-scroller-nav .list-group-item {
  position: relative;
  direction: ltr;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  line-height: 24px;
  font-weight: normal;
  color: var(--jrp-text-muted);
  padding: 15px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--jrp-border);
  transition: opacity 0.2s ease-in;
}

.jrp-scroller-nav .list-group-item:hover,
.jrp-scroller-nav .list-group-item:focus {
  background-color: transparent;
  color: var(--jrp-text);
  text-decoration: none;
}

/* Active title — emphasised + enlarged */
.jrp-scroller-nav .list-group-item.active {
  background-color: transparent;
  color: var(--jrp-text);
  font-size: 1.5em;
  line-height: 1.5em;
  font-weight: 700;
  font-family: inherit;
}

/* ── Right column: content panel ── */
.jrp-scroller-content {
  padding: 0 15px 15px 15px;
}

.jrp-scroller-image {
  height: clamp(260px, 33vw, 340px);
  object-fit: cover;
  border: 1px solid var(--jrp-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
  .jrp-scroller-image {
    margin-left: -5px;
  }
}

.jrp-scroller-title {
  font-family: inherit;
  font-size: 22.4px;
  line-height: 31.2px;
  color: var(--jrp-text);
  font-weight: bold;
}

.jrp-scroller-meta {
  font-family: inherit;
  font-size: 16.1px;
  line-height: 27.6px;
  color: var(--jrp-text);
}

.jrp-scroller-readmore {
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0;
  text-underline-offset: 2px;
  color: var(--jrp-accent) !important;
  text-decoration: underline;
  padding: 0;
  border: none;
  background: transparent;
}

.jrp-scroller-readmore:hover {
  color: var(--jrp-accent-emphasis);
}

.jrp-scroller-link,
.jrp-scroller-link:hover {
  color: inherit;
  text-decoration: none;
}

.jrp-scroller .rt-title-tag {
  font-size: 0.85em;
  margin: 0 0 5px 0;
  font-family: inherit;
}

.mod-jrprism.layout-scroller.fp-roksprocket-scroller-feature .jrp-scroller-meta h2 {
    display: none;
}
