/* ══════════════════════════════════════════════════════════════════
   JBRES — Static Info Pages  (PeerJ-inspired layout, original CSS)
   ══════════════════════════════════════════════════════════════════ */

/* ── Page hero — two-part banner (strip + panel) ────────────────── */
/* Strip: dark identity bar with badge + Merriweather title */
.jbp-hero {
  background: linear-gradient(110deg, #071629 0%, #0a3d62 55%, #0d4f80 100%);
  padding: 28px 0 26px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid rgba(26,115,232,.35);
}
.jbp-hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(26,115,232,.07);
  pointer-events: none;
}
.jbp-hero::after {
  content: '';
  position: absolute;
  left: 40%; bottom: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}
.jbp-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
/* Badge label above title */
.jbp-hero__badge {
  display: inline-block;
  background: rgba(26,115,232,.25);
  border: 1px solid rgba(26,115,232,.4);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.jbp-hero__breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.jbp-hero__breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .15s; }
.jbp-hero__breadcrumb a:hover { color: #93c5fd; }
.jbp-hero__breadcrumb span { color: rgba(255,255,255,.3); }
.jbp-hero__title {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -.3px;
}
/* Panel below title: description + optional CTA row */
.jbp-hero__panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.jbp-hero__sub {
  font-size: 14px;
  color: rgba(255,255,255,.68);
  max-width: 620px;
  line-height: 1.65;
  margin: 0;
}
.jbp-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
}
.jbp-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.jbp-hero__btn--primary { background: #1a73e8; color: #fff; }
.jbp-hero__btn--primary:hover { background: #1557b0; }
.jbp-hero__btn--outline { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.jbp-hero__btn--outline:hover { background: rgba(255,255,255,.2); }

/* ── Page wrap — 3-column: left nav | content | right widgets ──── */
.jbp-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: 32px;
  align-items: start;
}
/* Explicit columns so HTML source order doesn't matter */
.jbp-sidebar       { grid-column: 1; }
.jbp-right-sidebar { grid-column: 3; }
.jbp-content       { grid-column: 2; }
@media (max-width: 1200px) {
  .jbp-wrap { grid-template-columns: 220px 1fr 240px; gap: 24px; }
}
@media (max-width: 960px) {
  .jbp-wrap { grid-template-columns: 1fr; }
  .jbp-sidebar { display: none; grid-column: auto; }
  .jbp-right-sidebar { display: none; grid-column: auto; }
  .jbp-content { grid-column: auto; }
}

/* ── Sidebar ────────────────────────────────────────────────────── */
.jbp-sidebar {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  overflow: hidden;
}
.jbp-sidebar__section {
  padding: 20px;
  border-bottom: 1px solid #f0f4f8;
}
.jbp-sidebar__section--compact { padding: 16px 20px; }
.jbp-sidebar__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #0a3d62;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.jbp-sidebar__label--sm { font-size: 10px; color: #888; margin-bottom: 8px; }
.jbp-sidebar__nav {
  list-style: none;
  padding: 0; margin: 0;
}
.jbp-sidebar__nav li { margin-bottom: 2px; }
.jbp-sidebar__nav a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition: all .15s;
  border-left: 3px solid transparent;
}
.jbp-sidebar__nav a:hover { background: #f0f7ff; color: #1a73e8; }
.jbp-sidebar__nav a.active { background: #e8f0fe; color: #1a73e8; font-weight: 600; border-left-color: #1a73e8; }
.jbp-sidebar__pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 12px;
  color: #555;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 3px;
  transition: all .15s;
}
.jbp-sidebar__pill:hover { background: #f0f4f8; color: #0a3d62; }
.jbp-sidebar__pill i { font-size: 11px; color: #1a73e8; width: 14px; }
.jbp-sidebar__cta {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jbp-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #1a73e8;
  color: #fff;
  transition: background .15s;
}
.jbp-cta-btn:hover { background: #0a3d62; color: #fff; }
.jbp-cta-btn--outline {
  background: transparent;
  border: 1px solid #1a73e8;
  color: #1a73e8;
}
.jbp-cta-btn--outline:hover { background: #e8f0fe; }

/* ── Content area ───────────────────────────────────────────────── */
.jbp-content { min-width: 0; }
.jbp-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0a3d62;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8f0fe;
}
.jbp-content h2:first-child { margin-top: 0; }
.jbp-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a2332;
  margin: 24px 0 8px;
}
.jbp-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 18px 0 6px;
}
.jbp-content p {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  margin: 0 0 14px;
}
.jbp-content ul, .jbp-content ol {
  padding-left: 22px;
  margin: 8px 0 16px;
}
.jbp-content li {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 6px;
}
.jbp-content a { color: #1a73e8; }
.jbp-content strong { color: #0a3d62; }

/* ── Info / callout boxes ───────────────────────────────────────── */
.jbp-box {
  border-radius: 10px;
  padding: 18px 22px;
  margin: 22px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.jbp-box--blue  { background: #e8f0fe; border-left: 4px solid #1a73e8; }
.jbp-box--green { background: #e8f5e9; border-left: 4px solid #2e7d32; }
.jbp-box--amber { background: #fff8e1; border-left: 4px solid #f59e0b; }
.jbp-box--red   { background: #fdecea; border-left: 4px solid #c62828; }
.jbp-box i { font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.jbp-box--blue  i { color: #1a73e8; }
.jbp-box--green i { color: #2e7d32; }
.jbp-box--amber i { color: #f59e0b; }
.jbp-box--red   i { color: #c62828; }
.jbp-box__body p { margin: 0 0 6px; font-size: 14px; }
.jbp-box__body p:last-child { margin: 0; }
.jbp-box__title { font-weight: 700; font-size: 14px; color: #0a3d62; margin-bottom: 4px; }

/* ── Step cards ─────────────────────────────────────────────────── */
.jbp-steps { list-style: none; padding: 0; margin: 16px 0; }
.jbp-steps li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f4f8;
}
.jbp-steps li:last-child { border-bottom: none; }
.jbp-step__num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jbp-step__body h4 { margin: 0 0 4px; font-size: 15px; color: #0a3d62; }
.jbp-step__body p  { margin: 0; font-size: 14px; color: #555; line-height: 1.6; }

/* ── Stat pills ─────────────────────────────────────────────────── */
.jbp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.jbp-stat {
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
}
.jbp-stat__val {
  font-size: 30px;
  font-weight: 800;
  color: #0a3d62;
  line-height: 1;
  margin-bottom: 4px;
}
.jbp-stat__label { font-size: 12px; color: #666; }

/* ── Feature grid ───────────────────────────────────────────────── */
.jbp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.jbp-feature {
  background: #f8fafd;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  padding: 20px;
}
.jbp-feature i {
  font-size: 24px;
  color: #1a73e8;
  margin-bottom: 10px;
  display: block;
}
.jbp-feature h4 { margin: 0 0 6px; font-size: 14px; color: #0a3d62; }
.jbp-feature p  { margin: 0; font-size: 13px; color: #555; line-height: 1.5; }

/* ── Timeline ───────────────────────────────────────────────────── */
.jbp-timeline { list-style: none; padding: 0; margin: 16px 0; position: relative; }
.jbp-timeline::before {
  content: '';
  position: absolute;
  left: 16px; top: 0; bottom: 0;
  width: 2px;
  background: #e2e6ea;
}
.jbp-timeline li {
  padding: 0 0 24px 50px;
  position: relative;
}
.jbp-timeline li::before {
  content: '';
  position: absolute;
  left: 8px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #1a73e8;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #1a73e8;
}
.jbp-timeline__label { font-size: 12px; font-weight: 700; color: #1a73e8; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.jbp-timeline__title { font-size: 15px; font-weight: 700; color: #0a3d62; margin-bottom: 3px; }
.jbp-timeline__desc  { font-size: 13px; color: #555; line-height: 1.55; }

/* ── Table ──────────────────────────────────────────────────────── */
.jbp-table-wrap { overflow-x: auto; margin: 16px 0; }
.jbp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.jbp-table th { background: #f4f7fb; color: #0a3d62; font-weight: 700; padding: 10px 14px; text-align: left; border-bottom: 2px solid #e2e6ea; }
.jbp-table td { padding: 10px 14px; border-bottom: 1px solid #f0f4f8; color: #333; vertical-align: top; }
.jbp-table tr:hover td { background: #fafbff; }

/* ── Indexed logos placeholder ──────────────────────────────────── */
.jbp-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.jbp-index-card {
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  background: #fff;
}
.jbp-index-card i { font-size: 28px; color: #1a73e8; margin-bottom: 8px; display: block; }
.jbp-index-card strong { display: block; font-size: 13px; color: #0a3d62; margin-bottom: 3px; }
.jbp-index-card span { font-size: 11px; color: #888; }

/* ── Badge ──────────────────────────────────────────────────────── */
.jbp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.jbp-badge--blue   { background: #e8f0fe; color: #1a73e8; }
.jbp-badge--green  { background: #e8f5e9; color: #2e7d32; }
.jbp-badge--orange { background: #fff3e0; color: #e65100; }

/* ── FAQ accordion ──────────────────────────────────────────────── */
.jbp-faq { border: 1px solid #e2e6ea; border-radius: 10px; overflow: hidden; margin: 16px 0; }
.jbp-faq__item { border-bottom: 1px solid #f0f4f8; }
.jbp-faq__item:last-child { border-bottom: none; }
.jbp-faq__q {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #0a3d62;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .15s;
}
.jbp-faq__q:hover { background: #f8fafd; }
.jbp-faq__q i { font-size: 12px; color: #1a73e8; transition: transform .25s; flex-shrink: 0; }
.jbp-faq__q.open i { transform: rotate(180deg); }
.jbp-faq__a {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}
.jbp-faq__a.open { display: block; }

/* ── Right Sidebar ──────────────────────────────────────────────── */
.jbp-right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}
.jbr-widget {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  overflow: hidden;
}
.jbr-widget__head {
  padding: 12px 16px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #0a3d62;
  border-bottom: 2px solid #e8f0fe;
  background: #f7faff;
  display: flex;
  align-items: center;
  gap: 7px;
}
.jbr-widget__head i { color: #1a73e8; font-size: 12px; }
.jbr-widget__body { padding: 14px 16px; font-size: 13px; color: #444; line-height: 1.6; }
.jbr-widget__body p { margin: 0 0 8px; }
.jbr-widget__body p:last-child { margin: 0; }

/* Submit CTA widget */
.jbr-cta {
  background: linear-gradient(135deg, #0a3d62 0%, #1a73e8 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}
.jbr-cta__title { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.jbr-cta__sub { font-size: 12px; opacity: .85; margin: 0 0 14px; line-height: 1.5; }
.jbr-cta__btn {
  display: inline-block;
  background: #fff;
  color: #0a3d62;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.jbr-cta__btn:hover { background: #e8f0fe; }

/* Quick links */
.jbr-links { list-style: none; margin: 0; padding: 0; }
.jbr-links li { border-bottom: 1px solid #f0f4f8; }
.jbr-links li:last-child { border-bottom: none; }
.jbr-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  transition: color .15s;
}
.jbr-links a:hover { color: #1a73e8; }
.jbr-links a i { width: 14px; font-size: 11px; color: #1a73e8; flex-shrink: 0; }

/* Stats in right sidebar */
.jbr-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jbr-stat { background: #f7faff; border-radius: 8px; padding: 10px; text-align: center; }
.jbr-stat__val { font-size: 18px; font-weight: 800; color: #0a3d62; }
.jbr-stat__label { font-size: 10px; color: #666; margin-top: 2px; }

/* Indexing logos */
.jbr-logos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; }
.jbr-logos span {
  background: #f0f4f8;
  border: 1px solid #dde3ea;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
}

/* Popular topics tag cloud */
.jbr-topics { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 14px; }
.jbr-topics a {
  background: #f0f4f8;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  color: #333;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.jbr-topics a:hover { background: #1a73e8; color: #fff; }

/* Testimonial */
.jbr-testimonial { padding: 14px 16px; font-size: 13px; }
.jbr-testimonial blockquote {
  margin: 0 0 10px;
  font-style: italic;
  color: #555;
  line-height: 1.6;
  border-left: 3px solid #1a73e8;
  padding-left: 12px;
}
.jbr-testimonial cite { font-size: 12px; color: #888; font-style: normal; }
