:root {
  --jp-max: 1160px;
  --jp-bg: #f8fafc;
  --jp-surface: #ffffff;
  --jp-text: #0f172a;
  --jp-muted: #64748b;
  --jp-line: #e2e8f0;
  --jp-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --jp-radius: 10px;
  --jp-radius-sm: 10px;
  --jp-accent: #f97316;
  --jp-link: #2563eb;
  --jp-space: 18px;
}

/* Base */
html, body {
  background: var(--jp-bg);
}

body {
  color: var(--jp-text);
}

/* Lightweight public design system (scoped by class usage) */
.jp-container {
  max-width: var(--jp-max);
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.jp-page {
  padding-top: 12px;
}

.jp-section {
  margin-top: 22px;
}

.jp-h1 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.03;
  font-size: clamp(34px, 4vw, 56px);
}

.jp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.jp-lede {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--jp-muted);
  line-height: 1.85;
  max-width: 70ch;
}

.jp-hero {
  border: 1px solid var(--jp-line);
  border-radius: 18px;
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(249, 115, 22, 0.14), rgba(249, 115, 22, 0)),
    radial-gradient(900px 420px at 90% 0%, rgba(37, 99, 235, 0.10), rgba(37, 99, 235, 0)),
    #fff;
  box-shadow: var(--jp-shadow);
  padding: 22px;
  overflow: hidden;
}

.jp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.jp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--jp-line);
  background: #fff;
  color: var(--jp-text);
  font-weight: 800;
}

.jp-btn:hover { text-decoration: none; filter: brightness(.99); }

.jp-btn-primary {
  border-color: rgba(0,0,0,.06);
  background: var(--jp-accent);
  color: #fff !important;
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.18);
}

.jp-btn-ghost {
  background: transparent;
}

.jp-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.jp-card {
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-surface);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.jp-card-body {
  padding: 14px 14px 16px;
}

.jp-card-title {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--jp-text);
  line-height: 1.2;
  font-size: 16px;
}

.jp-card-meta {
  margin-top: 8px;
  color: var(--jp-muted);
  font-size: 13px;
  line-height: 1.4;
}

.jp-card a { color: inherit; }
.jp-card a:hover { text-decoration: none; }

.jp-tight-row {
  margin-left: -6px;
  margin-right: -6px;
}

.jp-tight-row > [class*="col-"] {
  padding-left: 6px;
  padding-right: 6px;
}

.jp-prose {
  color: var(--jp-text);
  line-height: 1.9;
  font-size: 16px;
}
.jp-prose p { color: var(--jp-muted); }
.jp-prose h2, .jp-prose h3 { color: var(--jp-text); font-weight: 950; letter-spacing: -0.01em; }

/* Home: Recent articles rail */
.jp-recent { margin-top: 10px; }
.jp-recent-col { display: flex; }
.jp-recent-col > * { flex: 1 1 auto; }
.jp-recent-kicker {
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--jp-text);
  margin-bottom: 10px;
}
.jp-recent-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.jp-recent-bullets li {
  padding: 10px 0;
  border-top: 1px solid var(--jp-line);
  line-height: 1.3;
}
.jp-recent-bullets li:first-child { border-top: 0; }
.jp-recent-bullets a { color: var(--jp-muted); }
.jp-recent-bullets a strong { color: var(--jp-text); }

.jp-recent-rail {
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background:
    radial-gradient(900px 260px at 20% 0%, rgba(249, 115, 22, 0.10), rgba(249, 115, 22, 0)),
    radial-gradient(900px 260px at 90% 10%, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.jp-recent-railhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 8px;
}

.jp-recent-railtitle {
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--jp-text);
}

.jp-recent-railcontrols { display: inline-flex; gap: 8px; }
.jp-railbtn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.8);
  color: var(--jp-text);
}

.jp-scroller {
  display: flex;
  gap: 12px;
  padding: 0 12px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 12px;
  -webkit-overflow-scrolling: touch;
}
.jp-scroller::-webkit-scrollbar { height: 10px; }
.jp-scroller::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.12); border-radius: 999px; }
.jp-scroller::-webkit-scrollbar-track { background: transparent; }

.jp-railblurb {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.65);
}
.jp-railblurb-kicker {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.55);
}
.jp-railblurb-text {
  margin-top: 6px;
  color: var(--jp-muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jp-railcard {
  scroll-snap-align: start;
  flex: 0 0 360px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.jp-railcover {
  display: block;
  padding: 10px 0 10px 10px;
}
.jp-railcover img {
  width: 74px;
  height: 92px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f1f5f9;
}

.jp-railbody {
  padding: 10px 10px 10px 0;
  min-width: 0;
}

.jp-railmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--jp-muted);
  font-size: 12px;
  line-height: 1.25;
}
.jp-railsep { opacity: .7; }
.jp-railjournal { color: var(--jp-text); font-weight: 900; }
.jp-railcat { color: var(--jp-muted); font-weight: 700; }
.jp-badge {
  margin-left: 6px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: .06em;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.jp-railtitle {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.jp-railtitle a { color: var(--jp-text); }

.jp-railbyline {
  margin-top: 6px;
  color: var(--jp-muted);
  font-size: 13px;
}
.jp-railfoot {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.jp-raildoi { color: var(--jp-link); font-size: 12px; font-weight: 800; }
.jp-raildoi:hover { text-decoration: underline; }

@media (max-width: 740px) {
  .jp-railcard { flex-basis: 84vw; }
}

.jp-miniarticle { box-shadow: none; }
.jp-minirow {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px;
  align-items: start;
}
.jp-minicover img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f1f5f9;
}
.jp-minibody { min-width: 0; }

.jp-miniarticle-compact .jp-card-title {
  font-size: 15px;
  line-height: 1.25;
}

.jp-minirow-compact {
  grid-template-columns: 66px 1fr;
  gap: 10px;
  padding: 12px;
}
.jp-minirow-compact .jp-minicover img {
  width: 66px;
  height: 82px;
}
.jp-title-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .jp-recent-col { display: block; }
}

/* Simple sticky helper (safe for public pages) */
.jp-sticky {
  position: sticky;
  top: 16px;
}

/* Smart sidebar (news-style: JS toggles fixed/absolute; CSS provides safe defaults) */
.jp-smart-sidebar { position: relative; }
.jp-smart-sidebar__inner { width: 100%; }

@media (max-width: 991.98px) {
  .jp-smart-sidebar__inner {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Sticky after a scroll threshold (JS toggles .jp-sticky-active) */
.jp-sticky-late {
  position: sticky;
  top: 24px;
  align-self: flex-start;
}
.jp-sticky-late.jp-sticky-active { /* kept for backward compatibility */ }
@media (max-width: 991.98px) {
  .jp-sticky-late { position: static; top: auto; }
}

/* Keep compatibility with existing sticky container used on article pages */
.sj-sticky-sidebar {
  position: sticky;
  top: 24px;
}

@media (max-width: 991.98px) {
  .sj-sticky-sidebar {
    position: static;
    top: auto;
  }
}

/* Contain the public site */
.sj-wrapper {
  background: transparent;
  /* Allow sticky elements to work (theme sets overflow:hidden which breaks position:sticky). */
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

.sj-contentwrapper {
  background: transparent;
  overflow: visible !important;
}

.sj-main {
  padding-top: 18px;
}

/* Inner banner refresh */
.sj-innerbanner {
  background:
    radial-gradient(900px 320px at 20% 0%, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0)),
    #0b1220;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sj-innerbannercontent h1 { color: #fff; font-weight: 950; letter-spacing: -0.02em; }
.sj-breadcrumb li, .sj-breadcrumb li a { color: rgba(255, 255, 255, 0.88) !important; }

/* Links */
a {
  color: var(--jp-link);
}

/* Header refresh (uses existing markup, restyled) */
.sj-header .sj-topbar {
  background: #fff;
  border-bottom: 1px solid var(--jp-line);
}

.sj-header .sj-navigationarea {
  background: #fff;
  border-bottom: 1px solid var(--jp-line);
}

.sj-header .sj-logo img {
  width: 52px !important;
  height: auto;
}

.sj-header .sj-nav ul > li > a {
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Home banner: undo the theme's negative margin overlap (it clips the next section header) */
.sj-homebanner .sj-postbook {
  margin-bottom: 0 !important;
}

.jp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--jp-accent);
  color: #fff !important;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

.jp-cta:hover {
  text-decoration: none !important;
  filter: brightness(0.97);
}

.jp-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--jp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--jp-muted);
}

.jp-search input {
  border: 0;
  outline: none;
  background: transparent;
  min-width: 160px;
  color: var(--jp-text);
  font-size: 14px;
}

.jp-search button {
  border: 0;
  background: transparent;
  color: var(--jp-muted);
}

@media (max-width: 992px) {
  .jp-search input { min-width: 140px; }
}

/* Header search icon (uses the existing overlay in footer + js/main.js) */
.jp-searchicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--jp-line);
  background: #fff;
  color: var(--jp-text);
  margin-left: 16px;
  margin-right: 14px;
}
.jp-searchicon:hover { text-decoration: none; filter: brightness(.99); }

/* Small DOI line used on article lists */
.jp-doi {
  font-size: 12px;
  color: var(--jp-muted);
  font-weight: 700;
  word-break: break-word;
}
.jp-doi:hover { color: var(--jp-text); text-decoration: underline; }

/* Footer refresh */
.sj-footer {
  margin-top: 28px;
  background: var(--jp-bg);
  color: var(--jp-text);
  border-top: 1px solid var(--jp-line);
}

.sj-footer a {
  color: var(--jp-text);
}

.sj-footer .sj-widgetheading h3 {
  color: var(--jp-text);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.sj-footerbottom {
  border-top: 1px solid var(--jp-line);
}

/* Cards: make existing posts feel like publisher cards */
.sj-post {
  border: 1px solid var(--jp-line);
  border-radius: var(--jp-radius);
  background: var(--jp-surface);
  box-shadow: var(--jp-shadow);
  overflow: hidden;
}

.sj-post .sj-postcontent {
  padding: 16px 18px;
}

.sj-post .sj-head h3 a {
  color: var(--jp-text);
  font-weight: 900;
}

.sj-post .sj-description p {
  color: var(--jp-muted);
}

/* Sidebar widgets */
.sj-sidebar { background: transparent; }
.sj-sidebar .sj-widget {
  border: 1px solid var(--jp-line);
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.sj-sidebar .sj-widgetheading {
  background: transparent;
  border-bottom: 1px solid var(--jp-line);
}

.sj-sidebar .sj-widgetheading h3 {
  font-weight: 900;
}

.sj-sidebar .sj-widgetcontent {
  padding: 0 16px 14px;
}

.sj-sidebar .sj-addimage {
  padding: 0;
  background: transparent;
  border: 0;
}

/* Buttons */
.sj-btn,
.sj-btnactive {
  border-radius: 999px !important;
}

/* ------------------------------------------------------------------ */
/* Article layout (moved from single-view.php) */
.cc-article,
.cc-article * {
  box-sizing: border-box;
}

.cc-article {
  --max: 1120px;
  --text: #111827;
  --muted: #6b7280;
  --link: #2563eb;
  --line: #e5e7eb;
  --bg: #ffffff;
  --chip: #eef2ff;
  --shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.cc-article a { color: var(--link); text-decoration: none; }
.cc-article a:hover { text-decoration: underline; }

.cc-article .page {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--bg);
  box-shadow: var(--shadow);
  border-radius: 14px;
  overflow: hidden;
}

.cc-article .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.cc-article .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}

.cc-article .logo-box {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  background: #f97316;
}

.cc-article .journal { line-height: 1.15; }
.cc-article .journal .name { font-weight: 700; font-size: 20px; }
.cc-article .journal .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }

.cc-article .cover { display: flex; align-items: center; gap: 10px; }
.cc-article .cover img {
  width: 66px;
  height: 86px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f3f4f6;
}

.cc-article .content { padding: 26px 22px 44px; color: var(--text); }
.cc-article .title {
  font-weight: 600;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -.01em;
}

.cc-article .authors { margin: 0 0 10px; color: #111827; font-size: 15px; line-height: 1.6; }
.cc-article .authors .author-name { font-weight: 600; }
.cc-article .aff { color: var(--muted); font-size: 13px; margin-top: 6px; display: block; }

.cc-article .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 14px 0 18px;
  align-items: center;
}

.cc-article .action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
}

.cc-article .action .icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #f3f4f6;
  font-size: 12px;
  color: #374151;
}

.cc-article .links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 12px 0 18px;
}

.cc-article .links-left {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.cc-article .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--chip);
  color: #302890;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid #c7d2fe;
}

.cc-article .cc-kchip {
  padding: 2px 6px;
  font-size: 11px;
  gap: 4px;
}

.cc-article .section { margin-top: 22px; }
.cc-article .section h2 { margin: 0 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }

.cc-article .highlights {
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 12px;
  padding: 12px 12px 8px;
  margin-top: 10px;
}

.cc-article .highlights ul { margin: 0; padding-left: 22px; color: #111827; line-height: 1.7; }
.cc-article .highlights li { margin: 10px 0; }
.cc-article .abstract { margin-top: 18px; line-height: 1.5; color: #111827; font-size: 14px; }
.cc-article .download {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-top: 14px;
}
.cc-article .download .file {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1d4ed8;
}
.cc-article .download .text { display: flex; flex-direction: column; gap: 2px; }
.cc-article .download .text small { color: var(--muted); }
.cc-article .muted { color: var(--muted); }

@media (max-width: 740px) {
  .cc-article .topbar { align-items: flex-start; flex-direction: column; }
  .cc-article .brand { min-width: unset; }
  .cc-article .cover { align-self: flex-end; }
}

/* ------------------------------------------------------------------ */
/* PDF Viewer (single-view.php)                                        */
.cc-pdf-viewer-wrap {
  border: 0;
  border-radius: 0;
  overflow: visible;
  margin-top: 14px;
  background: transparent;
}

.cc-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: transparent;
  border-bottom: 0;
  padding: 6px 0 10px;
}

.cc-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all .15s;
}

.cc-pdf-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
}

.cc-pdf-btn-download {
  background: #f97316;
  border-color: #ea580c;
  color: #fff !important;
}

.cc-pdf-btn-download:hover {
  background: #ea580c;
  color: #fff !important;
}

.cc-pdf-pages-wrap {
  background: none !important;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.cc-pdf-page {
  position: relative;
  margin: 0 auto 10px;
  background: none !important;
  border: 0;
  box-shadow: none !important;
  overflow: hidden;
  max-width: 100%;
}

.cc-pdf-page-canvas {
  display: block;
  position: absolute;
  z-index: 1;
  max-width: 100%;
  height: auto;
  background: transparent !important;
  border: 0;
  box-shadow: none;
}

/* PDF.js text layer for selectable/copyable text */
.cc-pdf-text-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  line-height: 1;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto;
}

.cc-pdf-text-layer span,
.cc-pdf-text-layer br {
  color: transparent;
  position: absolute;
  white-space: pre;
  cursor: text;
  transform-origin: 0% 0%;
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto;
  forced-color-adjust: none;
}

.cc-pdf-text-layer ::selection {
  background: rgba(37, 99, 235, 0.22);
}

.cc-pdf-annotation-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.cc-pdf-annot-link {
  position: absolute;
  display: block;
  pointer-events: auto;
  background: transparent;
  text-decoration: none;
}

.cc-pdf-annot-link:hover {
  outline: 1px dashed rgba(37, 99, 235, 0.35);
  outline-offset: -1px;
}

.cc-pdf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  padding: 16px 0 22px;
  width: 100%;
}

.cc-pdf-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(15, 23, 42, 0.12);
  border-top-color: #f97316;
  border-radius: 50%;
  animation: cc-spin .8s linear infinite;
}

@keyframes cc-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .cc-pdf-toolbar { flex-direction: column; align-items: flex-start; }
  .cc-pdf-pages-wrap { padding: 0; }
  .cc-pdf-page { margin-bottom: 10px; }
}

/* ------------------------------------------------------------------ */
.cc-related-widget {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 14px 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
  margin-bottom: 18px;
}
.cc-related-widget h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.cc-related-widget .cc-related-item { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.cc-related-widget .cc-related-item:last-child { border-bottom: none; }
.cc-related-widget .cc-related-title { display: block; font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--jp-text); }
.cc-related-widget .cc-related-title:hover { color: var(--jp-text); text-decoration: underline; }
.cc-related-widget .cc-related-meta { color: #6b7280; font-size: 12px; margin-top: 6px; line-height: 1.35; }

/* ------------------------------------------------------------------ */
/* Whole Paper rendered HTML from TipTap editor                        */
/* ------------------------------------------------------------------ */
.cc-whole-paper {
  font-size: 15px;
  line-height: 1.75;
  color: #1a202c;
  word-break: break-word;
}
.cc-whole-paper h1, .cc-whole-paper h2, .cc-whole-paper h3,
.cc-whole-paper h4, .cc-whole-paper h5, .cc-whole-paper h6 {
  margin: 1.4em 0 0.5em;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}
.cc-whole-paper h1 { font-size: 1.55em; }
.cc-whole-paper h2 { font-size: 1.3em; }
.cc-whole-paper h3 { font-size: 1.1em; }
.cc-whole-paper p  { margin: 0 0 1em; }
.cc-whole-paper ul {
  list-style: disc outside;
  padding-left: 1.6em;
  margin: 0 0 1em;
}
.cc-whole-paper ol {
  list-style: decimal outside;
  padding-left: 1.6em;
  margin: 0 0 1em;
}
.cc-whole-paper li {
  display: list-item;
  margin-bottom: 0.3em;
}
.cc-whole-paper ul ul,
.cc-whole-paper ol ul { list-style-type: circle; }
.cc-whole-paper ul ul ul { list-style-type: square; }
.cc-whole-paper ol ol,
.cc-whole-paper ul ol { list-style-type: lower-alpha; }
.cc-whole-paper ol ol ol { list-style-type: lower-roman; }
.cc-whole-paper blockquote {
  border-left: 3px solid #d1d5db;
  margin: 0 0 1em 0;
  padding: 8px 14px;
  color: #4b5563;
  font-style: italic;
}
.cc-whole-paper a { color: #2563eb; text-decoration: none; }
.cc-whole-paper a:hover { text-decoration: underline; }
.cc-whole-paper img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 12px 0;
  display: block;
}
.cc-whole-paper table {
  width: calc(100% - 14px);
  border-collapse: collapse;
  margin: 1em 0 1.5em 14px;
  font-size: 14px;
  overflow-x: auto;
  display: block;
}
.cc-whole-paper th, .cc-whole-paper td {
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.cc-whole-paper th {
  background: #f3f4f6;
  font-weight: 700;
}
.cc-whole-paper tr:nth-child(even) td {
  background: #f9fafb;
}
