/* =========================================
   JBRES – Search Header (Volumes & Issues)
   File: assets/css/jbres-search-head.css
   Safe scope: .jbres-search-head*
========================================= */

.jbres-search-head{
  width: 100%;
  margin: 0 0 24px;
}

/* Top metric strip (full width) */
.jbres-search-head__strip{
  width: 100%;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  padding: 14px 0;
}

.jbres-search-head__metric{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;
  border-radius: 999px;

  color: rgba(255,255,255,.92) !important;
  text-decoration: none !important;

  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);

  font-size: 13px;
  font-weight: 850;
  letter-spacing: .15px;

  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.jbres-search-head__metric strong{
  color: #fde047;
  font-weight: 950;
}

.jbres-search-head__metric:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.26);
}

/* Main panel */
.jbres-search-head__panel{
  width: 100%;
  background: linear-gradient(180deg, rgba(248,250,252,.95), #ffffff);
  padding: 28px 0;
  border-bottom: 1px solid rgba(2,6,23,.08);
}

/* Scrolling logos area */
.jbres-search-head__scrolling{
  display: block;
  margin: 0 auto 10px;
  max-width: 920px;

  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(255,255,255,.78);
  border: 1px solid rgba(2,6,23,.08);
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
}

/* Title & description */
.jbres-search-head__title{
  margin: 14px 0 8px;
  color: #0f172a;
  font-weight: 950;
  letter-spacing: -.3px;
  font-size: clamp(22px, 2.6vw, 34px);
}

.jbres-search-head__desc{
  margin: 0 auto 16px;
  max-width: 860px;
  color: rgba(2,6,23,.72);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
}

/* Search form */
.jbres-search-head__form{
  display: flex;
  align-items: stretch;
  gap: 10px;

  max-width: 820px;
  margin: 0 auto;

  padding: 10px;
  border-radius: 16px;

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(2,6,23,.10);
  box-shadow: 0 18px 40px rgba(2,6,23,.10);
}

/* Input */
.jbres-search-head__input{
  flex: 1;
  width: 100%;
  border: 1px solid rgba(2,6,23,.10);
  background: #ffffff;
  color: #0f172a;

  border-radius: 14px;
  padding: 12px 14px;

  font-size: 14px;
  font-weight: 650;

  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.jbres-search-head__input::placeholder{
  color: rgba(2,6,23,.45);
}

.jbres-search-head__input:focus{
  border-color: rgba(37,99,235,.40);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Button */
.jbres-search-head__btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  border: 1px solid rgba(37,99,235,.22);
  background: #2563eb;
  color: #ffffff;

  padding: 12px 16px;
  border-radius: 14px;

  font-size: 13px;
  font-weight: 950;
  letter-spacing: .15px;

  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.jbres-search-head__btn i{
  font-size: 16px;
  line-height: 1;
}

.jbres-search-head__btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 30px rgba(37,99,235,.26);
}

.jbres-search-head__btn:active{
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px){
  .jbres-search-head__panel{
    padding: 22px 0;
  }

  .jbres-search-head__form{
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .jbres-search-head__btn{
    width: 100%;
    justify-content: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .jbres-search-head__metric,
  .jbres-search-head__input,
  .jbres-search-head__btn{
    transition: none !important;
  }
}


/* Dark title strip */
.jbres-search-head__titlebar{
  width: 100%;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  padding: 26px 0;
}

.jbres-search-head__title{
  margin: 0;
  color: #ffffff;
  font-weight: 950;
  letter-spacing: -.3px;
  font-size: clamp(22px, 2.8vw, 36px);
}

/* Fix scrolling div spacing */
.jbres-search-head__scrolling{
  margin: 0 auto 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(2,6,23,.08);
  box-shadow: 0 8px 18px rgba(2,6,23,.06);
}

/* IndexCopernicus metric at bottom */
.jbres-search-head__metricwrap{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.jbres-search-head__metric{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 16px;
  border-radius: 999px;

  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.18);

  color: #1e40af !important;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none !important;
}

.jbres-search-head__metric strong{
  color: #0f172a;
}





/* =========================================
   JBRES – Subjects Banner (Title + Panel)
   Safe scope: .jbres-subjects-head*
========================================= */

.jbres-subjects-head{
  width: 100%;
  margin: 0 0 24px;
}

/* Dark title strip */
.jbres-subjects-head__titlebar{
  width: 100%;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  padding: 26px 0;
}

.jbres-subjects-head__title{
  margin: 0;
  color: #ffffff;
  font-weight: 950;
  letter-spacing: -.3px;
  font-size: clamp(22px, 2.8vw, 36px);
}

/* White panel */
.jbres-subjects-head__panel{
  width: 100%;
  background: linear-gradient(180deg, rgba(248,250,252,.95), #ffffff);
  padding: 26px 0;
  border-bottom: 1px solid rgba(2,6,23,.08);
}

/* Stat block */
.jbres-subjects-head__stat{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 14px;

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(2,6,23,.10);
  box-shadow: 0 10px 22px rgba(2,6,23,.06);

  margin-bottom: 12px;
}

.jbres-subjects-head__statLabel{
  color: rgba(2,6,23,.70);
  font-size: 13px;
  font-weight: 850;
}

.jbres-subjects-head__statValue{
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -.3px;
}

/* Description */
.jbres-subjects-head__desc{
  margin: 0 auto 16px;
  max-width: 860px;
  color: rgba(2,6,23,.72);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
}

/* Search form */
.jbres-subjects-head__form{
  display: flex;
  align-items: stretch;
  gap: 10px;

  max-width: 820px;
  margin: 0 auto;

  padding: 10px;
  border-radius: 16px;

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(2,6,23,.10);
  box-shadow: 0 18px 40px rgba(2,6,23,.10);
}

/* Input */
.jbres-subjects-head__input{
  flex: 1;
  width: 100%;
  border: 1px solid rgba(2,6,23,.10);
  background: #ffffff;
  color: #0f172a;

  border-radius: 14px;
  padding: 12px 14px;

  font-size: 14px;
  font-weight: 650;

  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.jbres-subjects-head__input::placeholder{
  color: rgba(2,6,23,.45);
}

.jbres-subjects-head__input:focus{
  border-color: rgba(37,99,235,.40);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Button */
.jbres-subjects-head__btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  border: 1px solid rgba(37,99,235,.22);
  background: #2563eb;
  color: #ffffff;

  padding: 12px 16px;
  border-radius: 14px;

  font-size: 13px;
  font-weight: 950;
  letter-spacing: .15px;

  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.jbres-subjects-head__btn i{
  font-size: 16px;
  line-height: 1;
}

.jbres-subjects-head__btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 30px rgba(37,99,235,.26);
}

/* Metric at bottom */
.jbres-subjects-head__metricwrap{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.jbres-subjects-head__metric{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 16px;
  border-radius: 999px;

  background: rgba(245,158,11,.10);
  border: 1px solid rgba(245,158,11,.20);

  color: #92400e !important;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none !important;
}

.jbres-subjects-head__metric strong{
  color: #0f172a;
}

/* Responsive */
@media (max-width: 768px){
  .jbres-subjects-head__panel{
    padding: 22px 0;
  }

  .jbres-subjects-head__form{
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .jbres-subjects-head__btn{
    width: 100%;
    justify-content: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .jbres-subjects-head__input,
  .jbres-subjects-head__btn,
  .jbres-subjects-head__metric{
    transition: none !important;
  }
}



/* =========================================
   JBRES – Current Issue Banner
========================================= */

.jbres-current-hero{
  width: 100%;
  margin-bottom: 26px;
}

/* Dark header */
.jbres-current-hero__head{
  background: linear-gradient(90deg, #0f172a, #1e293b);
  padding: 42px 0 34px;
}

.jbres-current-hero__title{
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 950;
  letter-spacing: -.4px;
}

.jbres-current-hero__date{
  margin: 6px 0 0;
  color: rgba(255,255,255,.85);
  font-size: 15px;
  font-weight: 800;
}

/* White panel */
.jbres-current-hero__panel{
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  padding: 26px 0;
  border-bottom: 1px solid rgba(2,6,23,.08);
}

/* Metrics */
.jbres-current-hero__metrics{
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.jbres-current-hero__metric{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none !important;

  border: 1px solid rgba(2,6,23,.12);
  background: #ffffff;
  color: #0f172a;

  box-shadow: 0 8px 18px rgba(2,6,23,.08);
}

.jbres-current-hero__metric strong{
  font-weight: 950;
}

.jbres-current-hero__metric.if{
  border-color: rgba(37,99,235,.35);
  color: #1e40af;
}

.jbres-current-hero__metric.icv{
  border-color: rgba(245,158,11,.45);
  color: #92400e;
}

/* Tagline */
.jbres-current-hero__tagline{
  margin: 10px 0 18px;
  color: rgba(2,6,23,.70);
  font-size: 15px;
  font-weight: 600;
}

/* Actions */
.jbres-current-hero__actions{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.jbres-current-hero__btn{
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none !important;
  color: #ffffff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.jbres-current-hero__btn.primary{
  background: #2563eb;
  box-shadow: 0 12px 26px rgba(37,99,235,.25);
}

.jbres-current-hero__btn.info{
  background: #0ea5e9;
}

.jbres-current-hero__btn.success{
  background: #16a34a;
}

.jbres-current-hero__btn:hover{
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px){
  .jbres-current-hero__metrics{
    gap: 10px;
  }
}



/* =========================================
   JBRES Subject Search Header (Style F)
========================================= */

.jbres-subject-head{
  width: 100%;
  margin: 0 0 26px;
}

/* Top strip */
.jbres-subject-head__strip{
  width: 100%;
  background: linear-gradient(90deg, #1e293b, #0f172a);
  padding: 36px 0;
}

.jbres-subject-head__title{
  margin: 0 0 6px;
  color: #ffffff;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 950;
  letter-spacing: -.4px;
}

.jbres-subject-head__subtitle{
  margin: 0;
  max-width: 820px;
  color: rgba(255,255,255,.85);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 600;
}

/* White panel */
.jbres-subject-head__panel{
  background: linear-gradient(180deg, rgba(248,250,252,.96), #ffffff);
  padding: 26px 0;
  border-bottom: 1px solid rgba(2,6,23,.08);
}

/* Search wrapper */
.jbres-subject-head__searchwrap{
  max-width: 860px;
  margin: 0 auto;
}

/* Search form */
.jbres-subject-head__form{
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(2,6,23,.12);
  box-shadow: 0 18px 38px rgba(2,6,23,.10);
}

/* Input */
.jbres-subject-head__input{
  flex: 1;
  border: 1px solid rgba(2,6,23,.12);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 650;
  outline: none;
}

.jbres-subject-head__input::placeholder{
  color: rgba(2,6,23,.45);
}

.jbres-subject-head__input:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Button */
.jbres-subject-head__btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(37,99,235,.25);

  background: #2563eb;
  color: #ffffff;

  font-size: 14px;
  font-weight: 900;
  cursor: pointer;

  transition: transform .15s ease, box-shadow .15s ease;
}

.jbres-subject-head__btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37,99,235,.25);
}

/* Responsive */
@media (max-width: 768px){
  .jbres-subject-head__form{
    flex-direction: column;
  }
  .jbres-subject-head__btn{
    width: 100%;
    justify-content: center;
  }
}



/* =========================================
   JBRES Home Hero – Split (Dark + White)
   Safe scope: .jbres-home-hero*
========================================= */

.jbres-home-hero{
  margin: 0 0 22px;
}

/* TOP STRIP */
.jbres-home-hero__strip{
  width: 100%;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  padding: 28px 0;
}

.jbres-home-hero__stripRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

/* Left side */
.jbres-home-hero__badge{
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .3px;
}

.jbres-home-hero__title{
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 950;
  letter-spacing: -.3px;
  line-height: 1.2;
}

.jbres-home-hero__subtitle{
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
  max-width: 780px;
}

/* Cover */
.jbres-home-hero__coverWrap{
  flex: 0 0 auto;
}
.jbres-home-hero__cover{
  display: block;
  width: 210px;
  height: auto;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.20);
}

/* BOTTOM PANEL */
.jbres-home-hero__panel{
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid rgba(2,6,23,.08);
}

.jbres-home-hero__panelRow{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  padding: 18px 0 12px;
  align-items: center;
}

/* Metrics */
.jbres-home-hero__metrics{
  
  flex-direction: column;
  gap: 8px;
}

.jbres-home-hero__metricLink{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  background: #f8fafc;
  border: 1px solid rgba(2,6,23,.10);
  color: #0f172a;
  text-decoration: none !important;
  font-weight: 850;
}

.jbres-home-hero__metricLink:hover{
  border-color: rgba(37,99,235,.25);
  box-shadow: 0 10px 20px rgba(2,6,23,.08);
}

.jbres-home-hero__metricLink.highlight{
  background: rgba(245,158,11,.10);
  border-color: rgba(245,158,11,.22);
}

/* Buttons */
.jbres-home-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.jbres-home-hero__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background: #f8fafc;
  border: 1px solid rgba(2,6,23,.12);
  color: #0f172a !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: normal;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.jbres-home-hero__btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(2,6,23,.10);
  border-color: rgba(37,99,235,.20);
}

.jbres-home-hero__btn.primary{
  background: #2563eb;
  border-color: rgba(37,99,235,.35);
  color: #fff !important;
  box-shadow: 0 14px 26px rgba(37,99,235,.20);
}

.jbres-home-hero__btn.success{
  background: #16a34a;
  border-color: rgba(22,163,74,.35);
  color: #fff !important;
  box-shadow: 0 14px 26px rgba(22,163,74,.18);
}

/* Indexing scroller area */
.jbres-home-hero__indexing{
  padding: 10px 0 18px;
}

/* Responsive */
@media (max-width: 992px){
  .jbres-home-hero__stripRow{
    flex-direction: column;
    align-items: flex-start;
  }

  .jbres-home-hero__cover{
    width: 190px;
  }

  .jbres-home-hero__panelRow{
    grid-template-columns: 1fr;
  }

  .jbres-home-hero__actions{
    justify-content: flex-start;
  }
}



/* =========================================
   Floating cover between dark + light
========================================= */

.jbres-home-hero--floatCover{
  position: relative;
}

/* make strip & panel act as one visual block */
.jbres-home-hero--floatCover .jbres-home-hero__strip{
  position: relative;
  padding-bottom: 46px; /* gives space for overlap */
}

.jbres-home-hero--floatCover .jbres-home-hero__panel{
  position: relative;
  padding-top: 20px; /* gives space under overlap */
}

/* floating cover wrapper */
.jbres-home-hero__floatCover{
  position: absolute;
  right: 10%;          /* keep right aligned */
  top: 80%;             /* move upward (was 50%) */
  transform: translateY(-45%); /* pulls image higher */
  z-index: 5;
}

/* cover image style */
.jbres-home-hero--floatCover .jbres-home-hero__cover{
  width: 180px;
  height: auto;
  background: #fff;
  padding: 10px;
  box-shadow: 0 22px 46px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.22);
}

/* add space on right so text/buttons don't collide with the floating cover */
.jbres-home-hero--floatCover .jbres-home-hero__titleWrap{
  padding-right: 260px;
}

.jbres-home-hero--floatCover .jbres-home-hero__panelRow{
  padding-right: 260px;
}

/* Responsive: on mobile move cover back into normal flow */
@media (max-width: 992px){
  .jbres-home-hero__floatCover{
    position: static;
    transform: none;
    margin-top: 14px;
  }

  .jbres-home-hero--floatCover .jbres-home-hero__titleWrap,
  .jbres-home-hero--floatCover .jbres-home-hero__panelRow{
    padding-right: 0;
  }
}


/* Force panel content to left */
.jbres-home-hero__panelRow--left{
  display: block;
}

/* Left stack container */
.jbres-home-hero__leftStack{
  max-width: 760px;
}

/* Metrics already vertical — keep left */
.jbres-home-hero__metrics{
  align-items: flex-start;
}

/* Buttons aligned left */
.jbres-home-hero__actions--left{
  justify-content: flex-start;
  margin-top: 14px;
}

/* Reduce right padding now that buttons are left */
.jbres-home-hero--floatCover .jbres-home-hero__panelRow{
  padding-right: 260px; /* still reserve space for cover */
}
