:root{
  --lpr-black:#111111;--lpr-text:#1f2933;--lpr-muted:#6b7280;--lpr-line:#e5e7eb;--lpr-soft:#f7f7f7;--lpr-white:#ffffff;--lpr-red:#d71920;--lpr-red-dark:#a81218;--lpr-blue:#1f4e79;--lpr-gold:#985e23;
}
.lpr-search,.lpr-stats,.lpr-grid,.lpr-book-hero,.lpr-description,.lpr-toc,.lpr-citation,.lpr-single,.lpr-related{font-family:Arial,Helvetica,sans-serif;color:var(--lpr-text)}
.lpr-search{display:grid;grid-template-columns:1.2fr 1.6fr auto;gap:16px;align-items:center;background:var(--lpr-black);color:#fff;padding:22px;border-radius:0;margin:24px 0;border-top:4px solid var(--lpr-red)}
.lpr-search strong{display:block;font-size:24px;line-height:1.15}.lpr-search span{display:block;color:#d1d5db;font-size:13px;margin-top:5px}
.lpr-search input{height:46px;border:1px solid #333;background:#fff;color:#111;padding:0 14px;font-size:15px}.lpr-search button,.lpr-actions a,.lpr-actions button,.lpr-book-buttons a,.lpr-book-buttons button,.lpr-chapter-actions a,.lpr-citation-tabs button{height:42px;padding:0 16px;border:0;background:var(--lpr-red);color:#fff;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;font-weight:700;cursor:pointer}
.lpr-filter-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.lpr-filter-row select{height:40px;border:1px solid #333;padding:0 10px;background:#fff}
.lpr-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:24px 0}.lpr-stats>div{background:#fff;border:1px solid var(--lpr-line);padding:18px;border-top:3px solid var(--lpr-black)}.lpr-stats strong{display:block;font-size:28px;color:var(--lpr-red);line-height:1}.lpr-stats span{font-size:12px;text-transform:uppercase;color:var(--lpr-muted);font-weight:700;letter-spacing:.04em}
.lpr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:28px 0}.lpr-card{background:#fff;border:1px solid var(--lpr-line);display:flex;flex-direction:column;min-height:100%;transition:.2s}.lpr-card:hover{box-shadow:0 12px 24px rgba(17,17,17,.10);transform:translateY(-2px)}.lpr-cover{height:210px;background:linear-gradient(135deg,#111,#333);display:flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;overflow:hidden}.lpr-cover img{width:100%;height:100%;object-fit:cover}.lpr-cover span{font-size:34px;font-weight:800;border:2px solid rgba(255,255,255,.75);padding:16px 22px}
.lpr-card-body{padding:18px}.lpr-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--lpr-red);font-weight:800;margin-bottom:7px}.lpr-card h3{font-size:20px;line-height:1.25;margin:0 0 8px}.lpr-card h3 a{color:#111;text-decoration:none}.lpr-card h3 a:hover{color:var(--lpr-red)}.lpr-authors{font-weight:700;color:#333;margin:0 0 8px}.lpr-card p{font-size:14px;color:#4b5563;line-height:1.55}.lpr-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px}.lpr-actions a,.lpr-actions button{background:#111;height:36px;font-size:13px}.lpr-actions .primary{background:var(--lpr-red)}.lpr-actions span{font-size:12px;color:var(--lpr-muted);margin-left:auto}
.lpr-book-hero{display:grid;grid-template-columns:260px 1fr 280px;gap:28px;background:#fff;border:1px solid var(--lpr-line);border-top:5px solid var(--lpr-red);padding:28px;margin:26px 0}.lpr-book-cover{height:360px;background:linear-gradient(135deg,#111,#555);display:flex;align-items:center;justify-content:center;color:#fff;text-align:center;font-weight:800;font-size:30px;overflow:hidden}.lpr-book-cover img{width:100%;height:100%;object-fit:cover}.lpr-book-info h1{font-size:42px;line-height:1.08;margin:4px 0 12px;color:#111}.lpr-book-editor{font-size:18px;color:#374151;margin-bottom:18px}.lpr-book-buttons{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 24px}.lpr-book-buttons a,.lpr-book-buttons button{background:#111}.lpr-book-buttons .primary{background:var(--lpr-red)}.lpr-book-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.lpr-book-metrics div{background:var(--lpr-soft);border:1px solid var(--lpr-line);padding:16px}.lpr-book-metrics strong{display:block;font-size:28px;color:var(--lpr-red)}.lpr-book-metrics span{font-size:12px;color:var(--lpr-muted);text-transform:uppercase;font-weight:700}.lpr-book-meta{background:#f9fafb;border-left:1px solid var(--lpr-line);padding:8px 20px}.lpr-book-meta p{border-bottom:1px solid var(--lpr-line);padding-bottom:12px;font-size:14px}
.lpr-description,.lpr-toc,.lpr-citation,.lpr-single,.lpr-related{background:#fff;border:1px solid var(--lpr-line);padding:26px;margin:22px 0}.lpr-description{font-size:17px;line-height:1.7}.lpr-toc h2,.lpr-citation h2,.lpr-single h2,.lpr-related h2{font-size:28px;color:#111;border-bottom:3px solid #111;padding-bottom:10px;margin-top:0}
.lpr-chapter-list{border-top:1px solid var(--lpr-line)}.lpr-chapter-row{display:grid;grid-template-columns:52px 1fr 110px 190px;gap:16px;align-items:center;border-bottom:1px solid var(--lpr-line);padding:18px 0}.lpr-chapter-no{width:42px;height:42px;background:#111;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}.lpr-chapter-main h4{font-size:18px;line-height:1.25;margin:0 0 5px}.lpr-chapter-main h4 a{color:#111;text-decoration:none}.lpr-chapter-main h4 a:hover{color:var(--lpr-red)}.lpr-chapter-main p{margin:0 0 4px;color:#374151;font-size:14px}.lpr-chapter-main small{color:var(--lpr-muted)}.lpr-chapter-metric{text-align:center;font-size:24px;font-weight:800;color:var(--lpr-red)}.lpr-chapter-metric span{display:block;font-size:10px;color:var(--lpr-muted);text-transform:uppercase}.lpr-chapter-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.lpr-chapter-actions a{height:34px;background:#111;font-size:12px}.lpr-chapter-actions .primary{background:var(--lpr-red)}
.lpr-citation code,.lpr-single code{display:block;background:#f3f4f6;border-left:4px solid var(--lpr-red);padding:14px;white-space:normal}.lpr-citation-tabs{display:grid;gap:14px}.lpr-citation-tabs div{border:1px solid var(--lpr-line);padding:14px}.lpr-citation-tabs button{height:32px;margin-top:8px;background:#111}.lpr-meta-table{width:100%;border-collapse:collapse}.lpr-meta-table th,.lpr-meta-table td{border-bottom:1px solid var(--lpr-line);padding:10px;text-align:left;vertical-align:top}.lpr-meta-table th{width:190px;background:#f9fafb}.lpr-pdf-viewer iframe{width:100%;height:720px;border:1px solid var(--lpr-line);background:#f3f4f6}.lpr-empty{background:#fff;border:1px solid var(--lpr-line);padding:18px}
@media(max-width:900px){.lpr-search{grid-template-columns:1fr}.lpr-filter-row{grid-template-columns:1fr}.lpr-stats{grid-template-columns:repeat(2,1fr)}.lpr-grid{grid-template-columns:1fr}.lpr-book-hero{grid-template-columns:1fr}.lpr-book-cover{height:280px}.lpr-book-info h1{font-size:32px}.lpr-book-metrics{grid-template-columns:1fr}.lpr-chapter-row{grid-template-columns:42px 1fr;gap:12px}.lpr-chapter-metric,.lpr-chapter-actions{grid-column:2}.lpr-chapter-actions{justify-content:flex-start}.lpr-pdf-viewer iframe{height:520px}}


/* ===== LabPemilu Repository v3.1.1 theme compatibility patch =====
   Mengurangi efek template artikel biasa: sidebar, TOC otomatis, dan layout sempit.
   Target dibuat konservatif agar hanya bekerja pada post type repository. */

body.lpr-repository-page .site-content,
body.lpr-repository-page .content-area,
body.lpr-repository-page .site-main,
body.lpr-repository-page main,
body.lpr-repository-page .container,
body.lpr-repository-page .ast-container,
body.lpr-repository-page .wp-site-blocks,
body.lpr-repository-page .td-container,
body.lpr-repository-page .jeg_main_content,
body.lpr-repository-page .jnews_content,
body.lpr-repository-page .content-wrap {
  max-width: 1240px !important;
}

body.lpr-repository-page .widget-area,
body.lpr-repository-page #secondary,
body.lpr-repository-page .sidebar,
body.lpr-repository-page .post-sidebar,
body.lpr-repository-page aside.sidebar,
body.lpr-repository-page .secondary,
body.lpr-repository-page .latest-post,
body.lpr-repository-page .single-post-share,
body.lpr-repository-page .post-share,
body.lpr-repository-page .share-buttons,
body.lpr-repository-page .social-share,
body.lpr-repository-page .entry-share {
  display: none !important;
}

body.lpr-repository-page .primary,
body.lpr-repository-page #primary,
body.lpr-repository-page .content-area,
body.lpr-repository-page .site-main,
body.lpr-repository-page article {
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Sembunyikan TOC otomatis dari plugin/tema yang sering masuk ke custom post type */
body.lpr-repository-page .ez-toc-container,
body.lpr-repository-page .lwptoc,
body.lpr-repository-page .toc,
body.lpr-repository-page .toc-container,
body.lpr-repository-page .rank-math-block,
body.lpr-repository-page .simpletoc,
body.lpr-repository-page .wp-block-rank-math-toc-block {
  display: none !important;
}

/* Rapikan hero bawaan tema agar tidak terlalu dominan */
body.lpr-repository-page .page-header,
body.lpr-repository-page .entry-header,
body.lpr-repository-page .single-header,
body.lpr-repository-page .post-header {
  margin-bottom: 24px !important;
}

body.lpr-repository-page .entry-title,
body.lpr-repository-page h1.entry-title {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: .01em;
}

/* Single publikasi dibuat seperti landing repository */
.lpr-single {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  border-top: 5px solid var(--lpr-red);
  box-shadow: 0 10px 30px rgba(17,17,17,.06);
}

.lpr-single > h1 {
  font-size: 42px;
  line-height: 1.12;
  margin: 0 0 12px;
  color: #111;
}

.lpr-single > .lpr-authors {
  font-size: 18px;
  margin-bottom: 18px;
}

.lpr-single .lpr-actions {
  border-bottom: 1px solid var(--lpr-line);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.lpr-pdf-viewer {
  background: #fff;
  border: 1px solid var(--lpr-line);
  padding: 16px;
}

@media(max-width:900px){
  body.lpr-repository-page .site-content,
  body.lpr-repository-page .content-area,
  body.lpr-repository-page .site-main,
  body.lpr-repository-page main,
  body.lpr-repository-page .container {
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .lpr-single > h1 { font-size: 30px; }
}


/* ===== v3.2.0 Custom plugin templates: clean repository layout ===== */
body.lpr-repository-page {
  background: #f6f6f6;
}

body.lpr-repository-page .entry-header,
body.lpr-repository-page .page-header,
body.lpr-repository-page .single-header,
body.lpr-repository-page .post-header,
body.lpr-repository-page .breadcrumbs,
body.lpr-repository-page .breadcrumb,
body.lpr-repository-page .hero,
body.lpr-repository-page .post-thumbnail {
  display: none !important;
}

.lprx-page {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 64px;
  font-family: Arial, Helvetica, sans-serif;
  color: #151515;
}

.lprx-hero {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 260px;
  gap: 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 6px solid #d71920;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(17,17,17,.08);
}

.lprx-cover {
  min-height: 330px;
  background: linear-gradient(135deg, #111, #3d3d3d);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lprx-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lprx-cover-placeholder {
  color: #fff;
  border: 2px solid rgba(255,255,255,.75);
  padding: 18px 22px;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: .08em;
}

.lprx-kicker {
  color: #d71920;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.lprx-main-info h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  margin: 0 0 14px;
  color: #111;
  font-weight: 800;
  letter-spacing: -.02em;
}

.lprx-people,
.lprx-parent-book {
  font-size: 17px;
  color: #374151;
  margin: 10px 0;
}

.lprx-parent-book a {
  color: #d71920;
  font-weight: 700;
  text-decoration: none;
}

.lprx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.lprx-actions a,
.lprx-actions button,
.lprx-citation button {
  width: auto !important;
  max-width: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #111 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
}

.lprx-actions .lprx-primary,
.lprx-chapter-buttons .lprx-primary {
  background: #d71920 !important;
}

.lprx-actions a:hover,
.lprx-actions button:hover,
.lprx-citation button:hover {
  opacity: .88;
}

.lprx-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.lprx-stats div {
  background: #f7f7f7;
  border: 1px solid #e5e7eb;
  padding: 14px;
}

.lprx-stats strong {
  display: block;
  color: #d71920;
  font-size: 28px;
  line-height: 1;
}

.lprx-stats span {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lprx-side-meta {
  background: #fafafa;
  border-left: 1px solid #e5e7eb;
  padding: 4px 18px;
}

.lprx-meta-row {
  padding: 13px 0;
  border-bottom: 1px solid #e5e7eb;
}

.lprx-meta-row span {
  display: block;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.lprx-meta-row strong {
  display: block;
  color: #111;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lprx-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  margin-top: 24px;
  padding: 30px;
  box-shadow: 0 10px 26px rgba(17,17,17,.04);
}

.lprx-section h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #111;
  color: #111;
  font-weight: 800;
}

.lprx-section p {
  font-size: 16px;
  line-height: 1.75;
  color: #30343b;
}

.lprx-chapters {
  border-top: 1px solid #e5e7eb;
}

.lprx-chapter {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) 110px 210px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding: 18px 0;
}

.lprx-chapter-number {
  width: 42px;
  height: 42px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.lprx-chapter-content h3 {
  font-size: 19px;
  margin: 0 0 6px;
  line-height: 1.25;
}

.lprx-chapter-content h3 a {
  color: #111;
  text-decoration: none;
}

.lprx-chapter-content h3 a:hover {
  color: #d71920;
}

.lprx-chapter-content p,
.lprx-chapter-content small {
  margin: 0;
  color: #6b7280;
}

.lprx-chapter-stat {
  text-align: center;
}

.lprx-chapter-stat strong {
  color: #d71920;
  font-size: 24px;
  display: block;
}

.lprx-chapter-stat span {
  color: #6b7280;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
}

.lprx-chapter-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.lprx-chapter-buttons a {
  width: auto !important;
  display: inline-flex !important;
  min-height: 34px;
  padding: 0 12px !important;
  align-items: center;
  background: #111 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 800;
}

.lprx-pdf iframe {
  width: 100%;
  height: 760px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.lprx-citation {
  display: grid;
  gap: 12px;
}

.lprx-citation code {
  display: block;
  white-space: normal;
  background: #f3f4f6;
  border-left: 5px solid #d71920;
  padding: 16px;
  color: #111;
}

.lprx-archive-hero {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 6px solid #d71920;
  padding: 34px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(17,17,17,.08);
}

.lprx-archive-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  margin: 0 0 12px;
  color: #111;
  line-height: 1.05;
}

.lprx-archive-hero p {
  font-size: 17px;
  color: #4b5563;
}

@media (max-width: 980px) {
  .lprx-page {
    width: min(100% - 24px, 1180px);
    margin-top: 24px;
  }
  .lprx-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .lprx-cover {
    min-height: 260px;
  }
  .lprx-side-meta {
    border-left: 0;
    border-top: 1px solid #e5e7eb;
  }
  .lprx-stats {
    grid-template-columns: 1fr;
  }
  .lprx-chapter {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .lprx-chapter-stat,
  .lprx-chapter-buttons {
    grid-column: 2;
    text-align: left;
    justify-content: flex-start;
  }
  .lprx-pdf iframe {
    height: 520px;
  }
}


/* ===== v3.3.0 LSE Press-inspired tabbed publication page ===== */
.lpr33-page {
  width: min(1240px, calc(100% - 36px));
  margin: 44px auto 72px;
  font-family: Arial, Helvetica, sans-serif;
  color: #20242a;
}

.lpr33-book-hero {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 280px;
  gap: 34px;
  background: #fff;
  border-top: 6px solid #d71920;
  padding: 30px;
  box-shadow: 0 18px 48px rgba(17,17,17,.08);
}

.lpr33-left {
  display: grid;
  align-content: start;
  gap: 18px;
}

.lpr33-cover {
  width: 100%;
  min-height: 380px;
  background: #111;
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
  overflow: hidden;
}

.lpr33-cover img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

.lpr33-cover-placeholder {
  min-height: 380px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #111 0%, #3d3d3d 100%);
}

.lpr33-cover-placeholder span {
  color: #fff;
  border: 2px solid rgba(255,255,255,.8);
  padding: 18px 22px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: .08em;
}

.lpr33-left-block {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.lpr33-left-block h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #111;
}

.lpr33-mini-metrics {
  display: grid;
  gap: 8px;
}

.lpr33-mini-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: #f7f7f7;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
}

.lpr33-mini-metrics strong {
  color: #d71920;
  font-size: 18px;
}

.lpr33-mini-metrics span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lpr33-kicker {
  color: #d71920;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.lpr33-center h1 {
  color: #2b333c;
  font-size: clamp(34px, 4.7vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 12px;
}

.lpr33-center h2 {
  color: #4b5563;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 16px;
}

.lpr33-series {
  font-size: 16px;
  font-style: italic;
  color: #444;
  margin: 14px 0;
}

.lpr33-series a {
  color: #d71920;
  font-weight: 800;
  text-decoration: none;
}

.lpr33-author-line {
  color: #d71920;
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0;
}

.lpr33-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
}

.lpr33-actions a,
.lpr33-actions button,
.lpr33-citation-list button {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px !important;
  border: 1px solid #d71920 !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #d71920 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
}

.lpr33-actions .lpr33-primary {
  background: #d71920 !important;
  color: #fff !important;
}

.lpr33-actions a:hover,
.lpr33-actions button:hover,
.lpr33-citation-list button:hover {
  opacity: .86;
}

.lpr33-open-note {
  margin: 10px 0 18px;
  color: #d71920;
  font-size: 16px;
  font-weight: 800;
}

.lpr33-intro {
  margin-top: 18px;
  max-width: 780px;
}

.lpr33-intro p {
  color: #3f4650;
  font-size: 17px;
  line-height: 1.72;
}

.lpr33-right {
  background: #f8f8f8;
  padding: 22px;
  align-self: stretch;
}

.lpr33-right h3 {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lpr33-meta-line {
  border-top: 1px solid #e5e7eb;
  padding: 13px 0;
}

.lpr33-meta-line span {
  display: block;
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 5px;
}

.lpr33-meta-line strong {
  color: #111;
  font-size: 15px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.lpr33-tabs-shell {
  background: #fff;
  margin-top: 28px;
  box-shadow: 0 16px 38px rgba(17,17,17,.06);
}

.lpr33-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid #e5e7eb;
  background: #f7f7f7;
  padding: 0 28px;
}

.lpr33-tabs button {
  width: auto !important;
  min-width: 0 !important;
  background: transparent !important;
  color: #333 !important;
  border: 0 !important;
  border-bottom: 4px solid transparent !important;
  border-radius: 0 !important;
  padding: 18px 18px 14px !important;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none !important;
}

.lpr33-tabs button.active {
  color: #d71920 !important;
  border-bottom-color: #d71920 !important;
  background: #fff !important;
}

.lpr33-tab-panel {
  display: none;
  padding: 34px;
}

.lpr33-tab-panel.active {
  display: block;
}

.lpr33-tab-panel h2 {
  margin: 0 0 24px;
  color: #111;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.lpr33-readable {
  max-width: 850px;
}

.lpr33-readable p,
.lpr33-readable li {
  font-size: 17px;
  line-height: 1.8;
  color: #30343b;
}

.lpr33-detail-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #e5e7eb;
}

.lpr33-detail-table th,
.lpr33-detail-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.lpr33-detail-table th {
  width: 240px;
  background: #f7f7f7;
  color: #4b5563;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lpr33-detail-table td {
  color: #111;
  font-weight: 600;
}

.lpr33-chapters {
  border-top: 1px solid #e5e7eb;
}

.lpr33-chapter-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 110px 210px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding: 18px 0;
}

.lpr33-chapter-no {
  width: 42px;
  height: 42px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.lpr33-chapter-body h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.3;
}

.lpr33-chapter-body h3 a {
  color: #111;
  text-decoration: none;
}

.lpr33-chapter-body h3 a:hover {
  color: #d71920;
}

.lpr33-chapter-author {
  margin: 0 0 6px !important;
  color: #d71920 !important;
  font-weight: 700;
}

.lpr33-chapter-body p {
  margin: 0 0 6px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.lpr33-chapter-body small {
  color: #6b7280;
}

.lpr33-chapter-metric {
  text-align: center;
}

.lpr33-chapter-metric strong {
  display: block;
  color: #d71920;
  font-size: 24px;
}

.lpr33-chapter-metric span {
  color: #6b7280;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.lpr33-chapter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.lpr33-chapter-actions a {
  width: auto !important;
  display: inline-flex !important;
  height: 34px;
  align-items: center;
  padding: 0 12px !important;
  border: 1px solid #d71920;
  border-radius: 3px;
  color: #d71920 !important;
  background: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 900;
}

.lpr33-chapter-actions .lpr33-primary {
  color: #fff !important;
  background: #d71920 !important;
}

.lpr33-pdf iframe {
  width: 100%;
  height: 760px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.lpr33-citation-list {
  display: grid;
  gap: 16px;
}

.lpr33-citation-list > div {
  border: 1px solid #e5e7eb;
  padding: 18px;
  background: #fafafa;
}

.lpr33-citation-list h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #111;
}

.lpr33-citation-list code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fff;
  border-left: 5px solid #d71920;
  padding: 14px;
  color: #111;
  font-size: 14px;
}

.lpr33-citation-list button {
  margin-top: 10px;
}

@media (max-width: 1050px) {
  .lpr33-book-hero {
    grid-template-columns: 240px minmax(0,1fr);
  }
  .lpr33-right {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .lpr33-page {
    width: calc(100% - 24px);
    margin-top: 24px;
  }
  .lpr33-book-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .lpr33-cover,
  .lpr33-cover img,
  .lpr33-cover-placeholder {
    min-height: 280px;
  }
  .lpr33-center h1 {
    font-size: 34px;
  }
  .lpr33-tabs {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .lpr33-tabs button {
    padding: 14px 10px !important;
    font-size: 13px;
  }
  .lpr33-tab-panel {
    padding: 22px;
  }
  .lpr33-detail-table th,
  .lpr33-detail-table td {
    display: block;
    width: auto;
  }
  .lpr33-detail-table th {
    border-bottom: 0;
    padding-bottom: 4px;
  }
  .lpr33-detail-table td {
    padding-top: 4px;
  }
  .lpr33-chapter-card {
    grid-template-columns: 42px minmax(0,1fr);
  }
  .lpr33-chapter-metric,
  .lpr33-chapter-actions {
    grid-column: 2;
    text-align: left;
    justify-content: flex-start;
  }
  .lpr33-pdf iframe {
    height: 520px;
  }
}


/* ===== v3.4.0 LSE Press closer layout ===== */
.lpr34-page {
  width: min(1220px, calc(100% - 36px));
  margin: 42px auto 70px;
  font-family: Arial, Helvetica, sans-serif;
  color: #2f3740;
}

.lpr34-book-hero {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 265px;
  gap: 32px;
  background: #fff;
  padding: 28px;
  border-top: 6px solid #d71920;
  box-shadow: 0 16px 44px rgba(17,17,17,.075);
}

.lpr34-left {
  display: grid;
  align-content: start;
  gap: 18px;
}

.lpr34-cover {
  width: 100%;
  min-height: 350px;
  background: #111;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  overflow: hidden;
}

.lpr34-cover img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  display: block;
}

.lpr34-cover-placeholder {
  min-height: 350px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,#111,#3e3e3e);
}

.lpr34-cover-placeholder span {
  color: #fff;
  border: 2px solid rgba(255,255,255,.8);
  padding: 16px 20px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .08em;
}

.lpr34-left-meta {
  border-top: 1px solid #e5e7eb;
}

.lpr34-left-line {
  border-bottom: 1px solid #e5e7eb;
  padding: 13px 0;
}

.lpr34-left-line strong {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 7px;
}

.lpr34-left-line span {
  display: block;
  color: #d71920;
  font-weight: 800;
  line-height: 1.4;
}

.lpr34-kicker {
  color: #d71920;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 2px 0 10px;
}

.lpr34-center h1 {
  color: #343c45;
  font-size: clamp(32px, 3.3vw, 44px) !important;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  max-width: 760px;
}

.lpr34-center h2 {
  color: #4b5563;
  font-size: 22px;
  line-height: 1.34;
  font-weight: 700;
  margin: 0 0 16px;
  max-width: 760px;
}

.lpr34-series {
  font-size: 16px;
  font-style: italic;
  color: #444;
  margin: 14px 0;
}

.lpr34-series a {
  color: #d71920;
  font-weight: 800;
  text-decoration: none;
}

/* Author under title intentionally hidden/removed in template */

.lpr34-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 18px 0 12px;
}

.lpr34-actions a,
.lpr34-actions button,
.lpr34-citation-list button {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 37px;
  align-items: center;
  justify-content: center;
  padding: 0 13px !important;
  border: 1px solid #d71920 !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #d71920 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
}

.lpr34-actions .lpr34-primary {
  background: #d71920 !important;
  color: #fff !important;
}

.lpr34-actions a:hover,
.lpr34-actions button:hover,
.lpr34-citation-list button:hover {
  opacity: .86;
}

.lpr34-open-note {
  margin: 12px 0 16px;
  color: #d71920;
  font-size: 16px;
  font-weight: 800;
}

.lpr34-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 15px;
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.lpr34-tabs button {
  width: auto !important;
  min-width: 0 !important;
  background: #fff !important;
  color: #d71920 !important;
  border: 1px solid #d71920 !important;
  border-radius: 3px !important;
  padding: 10px 13px !important;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none !important;
}

.lpr34-tabs button.active {
  color: #fff !important;
  background: #d71920 !important;
}

.lpr34-right {
  background: #f8f8f8;
  padding: 22px;
  align-self: start;
}

.lpr34-right h3 {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.lpr34-meta-line {
  border-top: 1px solid #e5e7eb;
  padding: 13px 0;
}

.lpr34-meta-line span {
  display: block;
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 5px;
}

.lpr34-meta-line strong {
  color: #111;
  font-size: 15px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.lpr34-tabs-shell {
  background: #fff;
  margin-top: 24px;
  padding: 34px;
  box-shadow: 0 16px 38px rgba(17,17,17,.055);
}

.lpr34-tab-panel {
  display: none;
}

.lpr34-tab-panel.active {
  display: block;
}

.lpr34-tab-panel h2 {
  margin: 0 0 24px;
  color: #111;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.lpr34-readable {
  max-width: 860px;
}

.lpr34-readable p,
.lpr34-readable li {
  font-size: 17px;
  line-height: 1.82;
  color: #30343b;
}

.lpr34-detail-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #e5e7eb;
}

.lpr34-detail-table th,
.lpr34-detail-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.lpr34-detail-table th {
  width: 240px;
  background: #f7f7f7;
  color: #4b5563;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lpr34-detail-table td {
  color: #111;
  font-weight: 600;
}

.lpr34-chapters {
  border-top: 1px solid #e5e7eb;
}

.lpr34-chapter-card {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) 110px 210px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding: 18px 0;
}

.lpr34-chapter-no {
  width: 42px;
  height: 42px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.lpr34-chapter-body h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.3;
}

.lpr34-chapter-body h3 a {
  color: #111;
  text-decoration: none;
}

.lpr34-chapter-body h3 a:hover {
  color: #d71920;
}

.lpr34-chapter-author {
  margin: 0 0 6px !important;
  color: #d71920 !important;
  font-weight: 700;
}

.lpr34-chapter-body p {
  margin: 0 0 6px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.lpr34-chapter-body small {
  color: #6b7280;
}

.lpr34-chapter-metric {
  text-align: center;
}

.lpr34-chapter-metric strong {
  display: block;
  color: #d71920;
  font-size: 24px;
}

.lpr34-chapter-metric span {
  color: #6b7280;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.lpr34-chapter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.lpr34-chapter-actions a {
  width: auto !important;
  display: inline-flex !important;
  height: 34px;
  align-items: center;
  padding: 0 12px !important;
  border: 1px solid #d71920;
  border-radius: 3px;
  color: #d71920 !important;
  background: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 900;
}

.lpr34-chapter-actions .lpr34-primary {
  color: #fff !important;
  background: #d71920 !important;
}

.lpr34-pdf iframe {
  width: 100%;
  height: 760px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.lpr34-citation-list {
  display: grid;
  gap: 16px;
}

.lpr34-citation-list > div {
  border: 1px solid #e5e7eb;
  padding: 18px;
  background: #fafafa;
}

.lpr34-citation-list h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #111;
}

.lpr34-citation-list code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fff;
  border-left: 5px solid #d71920;
  padding: 14px;
  color: #111;
  font-size: 14px;
}

.lpr34-citation-list button {
  margin-top: 10px;
}

@media (max-width: 1050px) {
  .lpr34-book-hero {
    grid-template-columns: 230px minmax(0,1fr);
  }
  .lpr34-right {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .lpr34-page {
    width: calc(100% - 24px);
    margin-top: 24px;
  }
  .lpr34-book-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .lpr34-cover,
  .lpr34-cover img,
  .lpr34-cover-placeholder {
    min-height: 280px;
  }
  .lpr34-center h1 {
    font-size: 30px !important;
  }
  .lpr34-actions,
  .lpr34-tabs {
    gap: 6px;
  }
  .lpr34-tabs-shell {
    padding: 22px;
  }
  .lpr34-detail-table th,
  .lpr34-detail-table td {
    display: block;
    width: auto;
  }
  .lpr34-detail-table th {
    border-bottom: 0;
    padding-bottom: 4px;
  }
  .lpr34-detail-table td {
    padding-top: 4px;
  }
  .lpr34-chapter-card {
    grid-template-columns: 42px minmax(0,1fr);
  }
  .lpr34-chapter-metric,
  .lpr34-chapter-actions {
    grid-column: 2;
    text-align: left;
    justify-content: flex-start;
  }
  .lpr34-pdf iframe {
    height: 520px;
  }
}


/* ===== v3.5.0 LSE Press-like two-column page ===== */
.lpr35-page {
  width: min(1180px, calc(100% - 36px));
  margin: 38px auto 86px;
  display: grid;
  grid-template-columns: 275px minmax(0, 760px);
  gap: 48px;
  font-family: Arial, Helvetica, sans-serif;
  color: #3a4148;
  background: #fff;
}

.lpr35-sidebar {
  align-self: start;
}

.lpr35-cover {
  width: 100%;
  background: #111;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

.lpr35-cover img {
  width: 100%;
  display: block;
}

.lpr35-cover-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .08em;
  background: linear-gradient(135deg,#111,#444);
}

.lpr35-side-block {
  border-top: 1px solid #e5e7eb;
  padding: 16px 0;
}

.lpr35-side-block h4 {
  margin: 0 0 9px;
  color: #2f3740;
  font-size: 13px;
  font-weight: 900;
}

.lpr35-side-block p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}

.lpr35-side-block a,
.lpr35-side-block p strong {
  color: #d71920;
  font-weight: 800;
}

.lpr35-side-block p span {
  display: inline-block;
  min-width: 70px;
  color: #6b7280;
}

.lpr35-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.lpr35-tags span {
  display: inline-flex;
  border: 1px solid #d71920;
  color: #d71920;
  background: #fff;
  border-radius: 3px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.lpr35-download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lpr35-download-meta button {
  width: auto !important;
  padding: 5px 9px !important;
  min-height: 0 !important;
  height: auto !important;
  border: 1px solid #d71920 !important;
  background: #fff !important;
  color: #d71920 !important;
  border-radius: 3px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.lpr35-main {
  max-width: 760px;
}

.lpr35-header h1 {
  margin: 10px 0 10px;
  color: #3a4148;
  font-size: 30px !important;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.01em;
}

.lpr35-header h2 {
  margin: 0 0 16px;
  color: #5b6673;
  font-size: 20px;
  line-height: 1.32;
  font-weight: 700;
}

.lpr35-author {
  margin: 0 0 13px;
  color: #d71920;
  font-size: 15px;
  font-weight: 700;
}

.lpr35-series {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 15px;
  font-style: italic;
}

.lpr35-series a {
  color: #d71920;
  font-weight: 800;
  text-decoration: none;
}

.lpr35-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0 12px;
}

.lpr35-actions a,
.lpr35-actions button {
  display: inline-flex !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px !important;
  border: 1px solid #d71920 !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #d71920 !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.lpr35-actions .lpr35-primary {
  background: #d71920 !important;
  color: #fff !important;
}

.lpr35-read-note {
  margin: 8px 0 0;
  color: #d71920;
  font-size: 15px;
  font-weight: 800;
}

.lpr35-read-note.second {
  margin-top: 16px;
  font-size: 14px;
}

.lpr35-description {
  margin-top: 18px;
}

.lpr35-description p {
  color: #3a4148;
  font-size: 15px;
  line-height: 1.76;
  margin: 0 0 16px;
}

.lpr35-description em {
  color: #2d333a;
}

.lpr35-metrics {
  margin-top: 26px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.lpr35-metrics h3,
.lpr35-details h3,
.lpr35-read-online h3,
.lpr35-citations h3 {
  margin: 0 0 8px;
  color: #3a4148;
  font-size: 20px;
  font-weight: 800;
}

.lpr35-metrics p {
  color: #6b7280;
  margin: 0 0 12px;
  font-size: 14px;
}

.lpr35-metric-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0 22px;
}

.lpr35-metric-row div {
  text-align: center;
}

.lpr35-metric-row strong {
  display: block;
  color: #d71920;
  font-size: 18px;
}

.lpr35-metric-row span {
  display: block;
  color: #3a4148;
  font-size: 12px;
}

.lpr35-chapters {
  margin-top: 14px;
  background: #faf7f7;
  border-radius: 3px;
  overflow: hidden;
}

.lpr35-chapters-toggle {
  width: 100% !important;
  height: 42px;
  border: 0 !important;
  background: #faf7f7 !important;
  color: #d71920 !important;
  font-weight: 900 !important;
  cursor: pointer;
  text-align: center;
}

.lpr35-chapters-list {
  border-top: 1px solid #eadddd;
}

.lpr35-chapter-line {
  position: relative;
  border-bottom: 1px solid #eadddd;
  padding: 12px 118px 12px 14px;
  color: #d71920;
  font-weight: 800;
  line-height: 1.35;
}

.lpr35-chapter-line > a:first-child {
  color: #d71920;
  text-decoration: none;
}

.lpr35-chapter-line small {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-weight: 500;
}

.lpr35-chapter-download {
  position: absolute;
  right: 12px;
  top: 11px;
  border: 1px solid #d71920;
  border-radius: 3px;
  padding: 4px 8px;
  color: #d71920 !important;
  background: #fff;
  font-size: 11px;
  text-decoration: none !important;
}

.lpr35-details,
.lpr35-read-online,
.lpr35-citations {
  margin-top: 28px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.lpr35-details table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.lpr35-details th,
.lpr35-details td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.lpr35-details th {
  width: 170px;
  color: #6b7280;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .04em;
  background: #fafafa;
}

.lpr35-details td {
  color: #111;
  font-weight: 600;
}

.lpr35-read-online iframe {
  width: 100%;
  height: 700px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.lpr35-citations > div {
  border: 1px solid #e5e7eb;
  margin-top: 10px;
  padding: 12px;
  background: #fafafa;
}

.lpr35-citations h4 {
  margin: 0 0 6px;
  color: #111;
  font-size: 13px;
}

.lpr35-citations code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #111;
  background: #fff;
  border-left: 4px solid #d71920;
  padding: 10px;
  font-size: 12px;
}

@media(max-width:900px){
  .lpr35-page {
    width: calc(100% - 26px);
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lpr35-main {
    max-width: 100%;
  }
  .lpr35-header h1 {
    font-size: 27px !important;
  }
  .lpr35-metric-row {
    gap: 22px;
  }
  .lpr35-chapter-line {
    padding-right: 14px;
  }
  .lpr35-chapter-download {
    position: static;
    display: inline-flex;
    margin-top: 8px;
  }
}


/* ===== v3.6.0 LSE-like icons, SDGs, license picker, mobile header ===== */
.lpr36-page {
  width: min(1180px, calc(100% - 36px));
  margin: 38px auto 86px;
  display: grid;
  grid-template-columns: 275px minmax(0, 760px);
  gap: 48px;
  font-family: Arial, Helvetica, sans-serif;
  color: #3a4148;
  background: #fff;
}

.lpr36-mobile-hero { display: none; }

.lpr36-sidebar { align-self: start; }

.lpr36-cover {
  width: 100%;
  background: #111;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

.lpr36-cover img { width: 100%; display: block; }

.lpr36-cover-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .08em;
  background: linear-gradient(135deg,#111,#444);
}

.lpr36-side-block {
  border-top: 1px solid #e5e7eb;
  padding: 16px 0;
}

.lpr36-side-block h4 {
  margin: 0 0 9px;
  color: #2f3740;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  gap: 7px;
  align-items: center;
}

.lpr36-side-icon {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: #f4f4f4;
  color: #d71920;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.lpr36-side-block p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}

.lpr36-side-block p strong { color: #d71920; font-weight: 800; }
.lpr36-side-block p span { display: inline-block; min-width: 70px; color: #6b7280; }

.lpr36-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.lpr36-tags span {
  display: inline-flex;
  border: 1px solid #d71920;
  color: #d71920;
  background: #fff;
  border-radius: 3px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.lpr36-sdg-wrap { display: flex; flex-wrap: wrap; gap: 6px; }

.lpr36-sdg-icon {
  width: 34px;
  height: 34px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

.lpr36-sdg-icon.sdg-1{background:#e5243b}.lpr36-sdg-icon.sdg-2{background:#dda63a}.lpr36-sdg-icon.sdg-3{background:#4c9f38}.lpr36-sdg-icon.sdg-4{background:#c5192d}.lpr36-sdg-icon.sdg-5{background:#ff3a21}.lpr36-sdg-icon.sdg-6{background:#26bde2}.lpr36-sdg-icon.sdg-7{background:#fcc30b;color:#111}.lpr36-sdg-icon.sdg-8{background:#a21942}.lpr36-sdg-icon.sdg-9{background:#fd6925}.lpr36-sdg-icon.sdg-10{background:#dd1367}.lpr36-sdg-icon.sdg-11{background:#fd9d24}.lpr36-sdg-icon.sdg-12{background:#bf8b2e}.lpr36-sdg-icon.sdg-13{background:#3f7e44}.lpr36-sdg-icon.sdg-14{background:#0a97d9}.lpr36-sdg-icon.sdg-15{background:#56c02b}.lpr36-sdg-icon.sdg-16{background:#00689d}.lpr36-sdg-icon.sdg-17{background:#19486a}

.lpr36-download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lpr36-download-meta a {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  border: 1px solid #d71920;
  color: #d71920 !important;
  background: #fff;
  border-radius: 3px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none !important;
}

.lpr36-main { max-width: 760px; }

.lpr36-header h1 {
  margin: 10px 0 10px;
  color: #3a4148;
  font-size: 30px !important;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.01em;
}

.lpr36-header h2 {
  margin: 0 0 16px;
  color: #5b6673;
  font-size: 20px;
  line-height: 1.32;
  font-weight: 700;
}

.lpr36-author {
  margin: 0 0 13px;
  color: #d71920;
  font-size: 15px;
  font-weight: 700;
}

.lpr36-author-bio {
  margin: 10px 0 12px;
  border-left: 3px solid #d71920;
  padding: 8px 12px;
  background: #fafafa;
}

.lpr36-author-bio summary {
  color: #d71920;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}

.lpr36-author-bio p {
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0 0;
  color: #4b5563;
}

.lpr36-series {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 15px;
  font-style: italic;
}

.lpr36-series a { color: #d71920; font-weight: 800; text-decoration: none; }

.lpr36-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0 12px;
}

.lpr36-actions a,
.lpr36-actions button,
.lpr36-mobile-actions a {
  display: inline-flex !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 30px;
  gap: 5px;
  align-items: center;
  justify-content: center;
  padding: 0 10px !important;
  border: 1px solid #d71920 !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #d71920 !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.lpr36-actions .lpr36-primary,
.lpr36-mobile-actions .lpr36-primary {
  background: #d71920 !important;
  color: #fff !important;
}

.lpr36-read-note {
  margin: 8px 0 0;
  color: #d71920;
  font-size: 15px;
  font-weight: 800;
}

.lpr36-read-note.second { margin-top: 16px; font-size: 14px; }

.lpr36-description { margin-top: 18px; }

.lpr36-description p {
  color: #3a4148;
  font-size: 15px;
  line-height: 1.76;
  margin: 0 0 16px;
}

.lpr36-metrics {
  margin-top: 26px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.lpr36-metrics h3,
.lpr36-details h3,
.lpr36-read-online h3,
.lpr36-citations h3 {
  margin: 0 0 8px;
  color: #3a4148;
  font-size: 20px;
  font-weight: 800;
}

.lpr36-metrics p {
  color: #6b7280;
  margin: 0 0 12px;
  font-size: 14px;
}

.lpr36-metric-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0 22px;
}

.lpr36-metric-row div { text-align: center; }
.lpr36-metric-row strong { display: block; color: #d71920; font-size: 18px; }
.lpr36-metric-row span { display: block; color: #3a4148; font-size: 12px; }

.lpr36-chapters {
  margin-top: 14px;
  background: #faf7f7;
  border-radius: 3px;
  overflow: hidden;
}

.lpr36-chapters-toggle {
  width: 100% !important;
  height: 42px;
  border: 0 !important;
  background: #faf7f7 !important;
  color: #d71920 !important;
  font-weight: 900 !important;
  cursor: pointer;
  text-align: center;
}

.lpr36-chapters-list { border-top: 1px solid #eadddd; }

.lpr36-chapter-line {
  position: relative;
  border-bottom: 1px solid #eadddd;
  padding: 12px 130px 12px 14px;
  color: #d71920;
  font-weight: 800;
  line-height: 1.35;
}

.lpr36-chapter-line > a:first-child { color: #d71920; text-decoration: none; }
.lpr36-chapter-line small { display: block; margin-top: 3px; color: #6b7280; font-weight: 500; }

.lpr36-chapter-download {
  position: absolute;
  right: 12px;
  top: 11px;
  border: 1px solid #d71920;
  border-radius: 3px;
  padding: 4px 8px;
  color: #d71920 !important;
  background: #fff;
  font-size: 11px;
  text-decoration: none !important;
}

.lpr36-details,
.lpr36-read-online,
.lpr36-citations {
  margin-top: 28px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.lpr36-details table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.lpr36-details th,.lpr36-details td { border-bottom: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top; font-size: 13px; }
.lpr36-details th { width: 170px; color: #6b7280; font-weight: 900; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; background: #fafafa; }
.lpr36-details td { color: #111; font-weight: 600; }

.lpr36-read-online iframe {
  width: 100%;
  height: 700px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.lpr36-citations > div { border: 1px solid #e5e7eb; margin-top: 10px; padding: 12px; background: #fafafa; }
.lpr36-citations h4 { margin: 0 0 6px; color: #111; font-size: 13px; }
.lpr36-citations code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; color: #111; background: #fff; border-left: 4px solid #d71920; padding: 10px; font-size: 12px; }

.lpr-sdg-admin {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 5px;
  margin-top: 6px;
}

.lpr-sdg-admin label {
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  padding: 5px;
  font-size: 12px;
}

/* Mobile: cover thumbnail + title side-by-side, like LSE Press mobile */
@media(max-width:900px){
  .lpr36-page {
    width: calc(100% - 24px);
    display: block;
    margin: 22px auto 64px;
  }

  .lpr36-mobile-hero {
    display: grid;
    grid-template-columns: 92px minmax(0,1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
  }

  .lpr36-mobile-cover {
    width: 92px;
    background: #111;
    overflow: hidden;
    box-shadow: 0 5px 12px rgba(0,0,0,.14);
  }

  .lpr36-mobile-cover img {
    width: 100%;
    display: block;
  }

  .lpr36-mobile-cover span {
    display: grid;
    place-items: center;
    height: 130px;
    color: #fff;
    font-weight: 900;
  }

  .lpr36-mobile-hero h1 {
    margin: 0 0 8px;
    font-size: 20px !important;
    line-height: 1.25;
    color: #3a4148;
    font-weight: 800;
  }

  .lpr36-mobile-hero p {
    margin: 0 0 8px;
    color: #d71920;
    font-size: 13px;
    font-weight: 700;
  }

  .lpr36-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .lpr36-sidebar .lpr36-cover,
  .lpr36-main .lpr36-header h1,
  .lpr36-main .lpr36-header .lpr36-author,
  .lpr36-main .lpr36-actions {
    display: none !important;
  }

  .lpr36-sidebar {
    margin-bottom: 18px;
  }

  .lpr36-main {
    max-width: 100%;
  }

  .lpr36-metric-row {
    gap: 22px;
  }

  .lpr36-chapter-line {
    padding-right: 14px;
  }

  .lpr36-chapter-download {
    position: static;
    display: inline-flex;
    margin-top: 8px;
  }

  .lpr36-read-online iframe {
    height: 520px;
  }

  .lpr-sdg-admin {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}


/* ===== v3.7.0 Clean LSE-like layout: official SDG icons only, tabs, cleaner admin ===== */
.lpr37-page {
  width: min(1180px, calc(100% - 36px));
  margin: 38px auto 86px;
  display: grid;
  grid-template-columns: 275px minmax(0, 760px);
  gap: 48px;
  font-family: Arial, Helvetica, sans-serif;
  color: #3a4148;
  background: #fff;
}

.lpr37-mobile-hero { display: none; }
.lpr37-sidebar { align-self: start; }

.lpr37-cover {
  width: 100%;
  background: #111;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

.lpr37-cover img { width: 100%; display: block; }

.lpr37-cover-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .08em;
  background: linear-gradient(135deg,#111,#444);
}

.lpr37-side-block {
  border-top: 1px solid #e5e7eb;
  padding: 16px 0;
}

.lpr37-side-block h4 {
  margin: 0 0 9px;
  color: #2f3740;
  font-size: 13px;
  font-weight: 900;
}

.lpr37-side-block p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}

.lpr37-side-block p strong { color: #d71920; font-weight: 800; }
.lpr37-side-block p span { display: inline-block; min-width: 70px; color: #6b7280; }

.lpr37-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.lpr37-tags span {
  display: inline-flex;
  border: 1px solid #d71920;
  color: #d71920;
  background: #fff;
  border-radius: 3px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.lpr37-sdg-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.lpr37-sdg-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: inline-block;
}

.lpr37-download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lpr37-download-meta a {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  border: 1px solid #d71920;
  color: #d71920 !important;
  background: #fff;
  border-radius: 3px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none !important;
}

.lpr37-main { max-width: 760px; }

.lpr37-header h1 {
  margin: 10px 0 10px;
  color: #3a4148;
  font-size: 30px !important;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.01em;
}

.lpr37-header h2 {
  margin: 0 0 16px;
  color: #5b6673;
  font-size: 20px;
  line-height: 1.32;
  font-weight: 700;
}

.lpr37-author {
  margin: 0 0 13px;
  color: #d71920;
  font-size: 15px;
  font-weight: 700;
}

.lpr37-author-bio {
  margin: 10px 0 12px;
  border-left: 3px solid #d71920;
  padding: 8px 12px;
  background: #fafafa;
}

.lpr37-author-bio summary {
  color: #d71920;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}

.lpr37-author-bio p {
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0 0;
  color: #4b5563;
}

.lpr37-series {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 15px;
  font-style: italic;
}

.lpr37-series a { color: #d71920; font-weight: 800; text-decoration: none; }

.lpr37-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0 12px;
}

.lpr37-actions a,
.lpr37-actions button,
.lpr37-mobile-actions a {
  display: inline-flex !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px !important;
  border: 1px solid #d71920 !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #d71920 !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.lpr37-actions .lpr37-primary,
.lpr37-mobile-actions .lpr37-primary {
  background: #d71920 !important;
  color: #fff !important;
}

.lpr37-read-note {
  margin: 8px 0 0;
  color: #d71920;
  font-size: 15px;
  font-weight: 800;
}

.lpr37-read-note.second { margin-top: 16px; font-size: 14px; }

.lpr37-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.lpr37-tabs button {
  width: auto !important;
  min-width: 0 !important;
  border: 1px solid #d71920 !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #d71920 !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.lpr37-tabs button.active {
  background: #d71920 !important;
  color: #fff !important;
}

.lpr37-tab-panel {
  display: none;
  margin-top: 20px;
}

.lpr37-tab-panel.active {
  display: block;
}

.lpr37-tab-panel h3,
.lpr37-metrics h3,
.lpr37-read-online h3,
.lpr37-citations h3 {
  margin: 0 0 10px;
  color: #3a4148;
  font-size: 20px;
  font-weight: 800;
}

.lpr37-description p {
  color: #3a4148;
  font-size: 15px;
  line-height: 1.76;
  margin: 0 0 16px;
}

.lpr37-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.lpr37-detail-table th,
.lpr37-detail-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.lpr37-detail-table th {
  width: 170px;
  color: #6b7280;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .04em;
  background: #fafafa;
}

.lpr37-detail-table td {
  color: #111;
  font-weight: 600;
}

.lpr37-metrics {
  margin-top: 28px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.lpr37-metric-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0 22px;
}

.lpr37-metric-row div { text-align: center; }
.lpr37-metric-row strong { display: block; color: #d71920; font-size: 18px; }
.lpr37-metric-row span { display: block; color: #3a4148; font-size: 12px; }

.lpr37-chapters-list {
  margin-top: 10px;
  background: #faf7f7;
  border-top: 1px solid #eadddd;
}

.lpr37-chapter-line {
  position: relative;
  border-bottom: 1px solid #eadddd;
  padding: 12px 118px 12px 14px;
  color: #d71920;
  font-weight: 800;
  line-height: 1.35;
}

.lpr37-chapter-line > a:first-child { color: #d71920; text-decoration: none; }
.lpr37-chapter-line small { display: block; margin-top: 3px; color: #6b7280; font-weight: 500; }

.lpr37-chapter-download {
  position: absolute;
  right: 12px;
  top: 11px;
  border: 1px solid #d71920;
  border-radius: 3px;
  padding: 4px 8px;
  color: #d71920 !important;
  background: #fff;
  font-size: 11px;
  text-decoration: none !important;
}

.lpr37-read-online,
.lpr37-citations {
  margin-top: 28px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.lpr37-read-online iframe {
  width: 100%;
  height: 700px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.lpr37-citations > div { border: 1px solid #e5e7eb; margin-top: 10px; padding: 12px; background: #fafafa; }
.lpr37-citations h4 { margin: 0 0 6px; color: #111; font-size: 13px; }
.lpr37-citations code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; color: #111; background: #fff; border-left: 4px solid #d71920; padding: 10px; font-size: 12px; }

/* Admin grouped fields */
.lpr-admin-tabs .description { margin: 0 0 12px; }
.lpr-admin-section {
  border: 1px solid #dcdcde;
  background: #fff;
  margin: 0 0 12px;
}
.lpr-admin-section > summary {
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  background: #f6f7f7;
  border-bottom: 1px solid #dcdcde;
}
.lpr-admin-section .lpr-admin-grid {
  padding: 12px;
}
.lpr-sdg-admin {
  border: 1px solid #dcdcde;
  background: #fff;
  padding: 0;
}
.lpr-sdg-admin summary {
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
  background: #f6f7f7;
}
.lpr-sdg-checkgrid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 6px;
  padding: 10px;
}
.lpr-sdg-checkgrid label {
  background: #fff;
  border: 1px solid #dcdcde;
  padding: 6px;
  font-size: 12px;
}
.lpr-sdg-checkgrid span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  background: #d71920;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 4px;
}

/* Mobile: cover thumbnail + title side-by-side, LSE-like */
@media(max-width:900px){
  .lpr37-page {
    width: calc(100% - 24px);
    display: block;
    margin: 22px auto 64px;
  }

  .lpr37-mobile-hero {
    display: grid;
    grid-template-columns: 92px minmax(0,1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
  }

  .lpr37-mobile-cover {
    width: 92px;
    background: #111;
    overflow: hidden;
    box-shadow: 0 5px 12px rgba(0,0,0,.14);
  }

  .lpr37-mobile-cover img {
    width: 100%;
    display: block;
  }

  .lpr37-mobile-cover span {
    display: grid;
    place-items: center;
    height: 130px;
    color: #fff;
    font-weight: 900;
  }

  .lpr37-mobile-hero h1 {
    margin: 0 0 8px;
    font-size: 20px !important;
    line-height: 1.25;
    color: #3a4148;
    font-weight: 800;
  }

  .lpr37-mobile-hero p {
    margin: 0 0 8px;
    color: #d71920;
    font-size: 13px;
    font-weight: 700;
  }

  .lpr37-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .lpr37-sidebar .lpr37-cover,
  .lpr37-main .lpr37-header h1,
  .lpr37-main .lpr37-header .lpr37-author,
  .lpr37-main .lpr37-actions {
    display: none !important;
  }

  .lpr37-sidebar {
    margin-bottom: 18px;
  }

  .lpr37-main {
    max-width: 100%;
  }

  .lpr37-metric-row {
    gap: 22px;
  }

  .lpr37-chapter-line {
    padding-right: 14px;
  }

  .lpr37-chapter-download {
    position: static;
    display: inline-flex;
    margin-top: 8px;
  }

  .lpr37-read-online iframe {
    height: 520px;
  }

  .lpr-sdg-checkgrid {
    grid-template-columns: 1fr;
  }
}


/* ===== v3.8.0 refined LSE-like layout ===== */
.lpr38-page {
  width: min(1180px, calc(100% - 36px));
  margin: 38px auto 86px;
  display: grid;
  grid-template-columns: 275px minmax(0, 760px);
  gap: 48px;
  font-family: Arial, Helvetica, sans-serif;
  color: #3a4148;
  background: #fff;
}

.lpr38-mobile-hero { display: none; }
.lpr38-sidebar { align-self: start; }

.lpr38-cover {
  width: 100%;
  background: #111;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

.lpr38-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.lpr38-cover-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .08em;
  background: linear-gradient(135deg,#111,#444);
}

.lpr38-side-block {
  border-top: 1px solid #e5e7eb;
  padding: 16px 0;
}

.lpr38-side-block h4 {
  margin: 0 0 9px;
  color: #2f3740;
  font-size: 14px;
  font-weight: 800;
}

.lpr38-side-block p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}

.lpr38-side-block p strong {
  color: #d71920;
  font-weight: 800;
}

.lpr38-side-block p span {
  display: inline-block;
  min-width: 70px;
  color: #6b7280;
}

.lpr38-peer-link {
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid #d71920;
  color: #d71920 !important;
  text-decoration: none !important;
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.lpr38-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.lpr38-tags span {
  display: inline-flex;
  border: 1px solid #d71920;
  color: #d71920;
  background: #fff;
  border-radius: 3px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.lpr38-sdg-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.lpr38-sdg-tip {
  position: relative;
  display: inline-flex;
}

.lpr38-sdg-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  display: none;
  white-space: nowrap;
  background: #111;
  color: #fff;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  z-index: 99;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}

.lpr38-sdg-tip:hover::after {
  display: block;
}

.lpr38-sdg-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: inline-block;
}

.lpr38-download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lpr38-download-meta a {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  border: 1px solid #d71920;
  color: #d71920 !important;
  background: #fff;
  border-radius: 3px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none !important;
}

.lpr38-main { max-width: 760px; }

.lpr38-kicker {
  color: #6b7280;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.lpr38-header h1 {
  margin: 0 0 10px;
  color: #3a4148;
  font-size: 31px !important;
  line-height: 1.23;
  font-weight: 800;
  letter-spacing: -.01em;
}

.lpr38-header h2 {
  margin: 0 0 16px;
  color: #5b6673;
  font-size: 20px;
  line-height: 1.32;
  font-weight: 700;
}

.lpr38-author {
  margin: 0 0 13px;
  color: #d71920;
  font-size: 15px;
  font-weight: 700;
}

.lpr38-author-bio {
  margin: 10px 0 12px;
  border-left: 3px solid #d71920;
  padding: 8px 12px;
  background: #fafafa;
}

.lpr38-author-bio summary {
  color: #d71920;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}

.lpr38-author-bio p {
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0 0;
  color: #4b5563;
}

.lpr38-series {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 15px;
  font-style: italic;
}

.lpr38-series a { color: #d71920; font-weight: 800; text-decoration: none; }

.lpr38-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0 12px;
}

.lpr38-actions a,
.lpr38-actions button,
.lpr38-mobile-actions a {
  display: inline-flex !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 11px !important;
  border: 1px solid #d71920 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #d71920 !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.lpr38-actions .lpr38-primary,
.lpr38-mobile-actions .lpr38-primary {
  background: #d71920 !important;
  color: #fff !important;
}

.lpr38-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 24px 0 0;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.lpr38-tabs button {
  width: auto !important;
  min-width: 0 !important;
  border: 0 !important;
  border-right: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: #f3f4f6 !important;
  color: #3a4148 !important;
  padding: 12px 16px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.lpr38-tabs button.active {
  background: #fff !important;
  color: #d71920 !important;
  box-shadow: inset 0 -3px 0 #d71920;
}

.lpr38-tab-panel {
  display: none;
  margin-top: 22px;
}

.lpr38-tab-panel.active {
  display: block;
}

.lpr38-tab-panel h3,
.lpr38-metrics h3,
.lpr38-citations h3 {
  margin: 0 0 10px;
  color: #3a4148;
  font-size: 20px;
  font-weight: 800;
}

.lpr38-description p {
  color: #3a4148;
  font-size: 15px;
  line-height: 1.76;
  margin: 0 0 16px;
}

.lpr38-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.lpr38-detail-table th,
.lpr38-detail-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.lpr38-detail-table th {
  width: 170px;
  color: #4b5563;
  font-weight: 800;
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0;
  background: #fafafa;
}

.lpr38-detail-table td {
  color: #111;
  font-weight: 600;
}

.lpr38-metrics {
  margin-top: 28px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.lpr38-metric-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0 22px;
}

.lpr38-metric-row div { text-align: center; }
.lpr38-metric-row strong { display: block; color: #d71920; font-size: 18px; }
.lpr38-metric-row span { display: block; color: #3a4148; font-size: 12px; }

.lpr38-chapters-list {
  margin-top: 10px;
  background: #faf7f7;
  border-top: 1px solid #eadddd;
}

.lpr38-chapter-line {
  position: relative;
  border-bottom: 1px solid #eadddd;
  padding: 12px 118px 12px 14px;
  color: #d71920;
  font-weight: 800;
  line-height: 1.35;
}

.lpr38-chapter-line > a:first-child { color: #d71920; text-decoration: none; }
.lpr38-chapter-line small { display: block; margin-top: 3px; color: #6b7280; font-weight: 500; }

.lpr38-chapter-download {
  position: absolute;
  right: 12px;
  top: 11px;
  border: 1px solid #d71920;
  border-radius: 3px;
  padding: 4px 8px;
  color: #d71920 !important;
  background: #fff;
  font-size: 11px;
  text-decoration: none !important;
}

.lpr38-read-online iframe {
  width: 100%;
  height: 700px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.lpr38-citations {
  margin-top: 28px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.lpr38-citations > div { border: 1px solid #e5e7eb; margin-top: 10px; padding: 12px; background: #fafafa; }
.lpr38-citations h4 { margin: 0 0 6px; color: #111; font-size: 13px; }
.lpr38-citations code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; color: #111; background: #fff; border-left: 4px solid #d71920; padding: 10px; font-size: 12px; }

/* Catalogue card v3.8 */
.lpr38-card {
  display: grid;
  grid-template-columns: 160px minmax(0,1fr);
  gap: 20px;
  padding: 0 0 24px;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
}

.lpr38-card-cover {
  display: block;
  background: #111;
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
  overflow: hidden;
}

.lpr38-card-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.lpr38-card-cover span {
  height: 220px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.lpr38-card-kicker {
  color: #4b5563;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.lpr38-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.18;
}

.lpr38-card h3 a {
  color: #d71920;
  text-decoration: none;
}

.lpr38-card-author {
  color: #111;
  font-weight: 700;
  margin: 0 0 14px;
}

.lpr38-card-excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: #3a4148;
  margin: 0 0 12px;
}

.lpr38-card-meta {
  font-size: 13px;
  color: #4b5563;
  margin: 0 0 12px;
}

.lpr38-card-meta span:not(:last-child)::after {
  content: " | ";
  color: #9ca3af;
  margin: 0 6px;
}

.lpr38-card-link {
  display: inline-flex;
  border: 1px solid #d71920;
  color: #d71920 !important;
  text-decoration: none !important;
  border-radius: 4px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
}

/* Admin SDG cleanup */
.lpr-sdg-admin {
  border: 1px solid #dcdcde;
  background: #fff;
  padding: 0;
}
.lpr-sdg-admin summary {
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
  background: #f6f7f7;
}
.lpr-sdg-checkgrid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  padding: 10px;
}
.lpr-sdg-checkgrid label {
  display: flex !important;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #dcdcde;
  padding: 7px;
  font-size: 12px;
  line-height: 1.25;
}
.lpr-sdg-checkgrid input[type="checkbox"] {
  width: auto !important;
  min-width: 14px;
  margin: 0 !important;
}
.lpr-sdg-checkgrid span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  background: #d71920;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 3px;
}

/* Mobile */
@media(max-width:900px){
  .lpr38-page {
    width: calc(100% - 24px);
    display: block;
    margin: 22px auto 64px;
  }

  .lpr38-mobile-hero {
    display: grid;
    grid-template-columns: 92px minmax(0,1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
  }

  .lpr38-mobile-cover {
    width: 92px;
    background: #111;
    overflow: hidden;
    box-shadow: 0 5px 12px rgba(0,0,0,.14);
  }

  .lpr38-mobile-cover img {
    width: 100%;
    display: block;
  }

  .lpr38-mobile-cover span {
    display: grid;
    place-items: center;
    height: 130px;
    color: #fff;
    font-weight: 900;
  }

  .lpr38-mobile-hero h1 {
    margin: 0 0 8px;
    font-size: 20px !important;
    line-height: 1.25;
    color: #3a4148;
    font-weight: 800;
  }

  .lpr38-mobile-hero p {
    margin: 0 0 8px;
    color: #d71920;
    font-size: 13px;
    font-weight: 700;
  }

  .lpr38-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .lpr38-sidebar .lpr38-cover,
  .lpr38-main .lpr38-header h1,
  .lpr38-main .lpr38-header .lpr38-author,
  .lpr38-main .lpr38-actions {
    display: none !important;
  }

  .lpr38-sidebar {
    margin-bottom: 18px;
  }

  .lpr38-main {
    max-width: 100%;
  }

  .lpr38-tabs {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .lpr38-tabs button {
    border-bottom: 1px solid #e5e7eb !important;
  }

  .lpr38-metric-row {
    gap: 22px;
  }

  .lpr38-chapter-line {
    padding-right: 14px;
  }

  .lpr38-chapter-download {
    position: static;
    display: inline-flex;
    margin-top: 8px;
  }

  .lpr38-read-online iframe {
    height: 520px;
  }

  .lpr-sdg-checkgrid {
    grid-template-columns: 1fr;
  }

  .lpr38-card {
    grid-template-columns: 92px minmax(0,1fr);
    gap: 14px;
  }

  .lpr38-card-cover img,
  .lpr38-card-cover span {
    height: 130px;
  }

  .lpr38-card h3 {
    font-size: 18px;
  }

  .lpr38-card-excerpt {
    display: none;
  }
}


/* ===== v3.9.0 refinements: LSE-like list, cleaner mobile, Indonesian metrics ===== */

/* Simpler search filters: 3 columns by default */
.lpr-search-v39 .lpr-filter-row-v39 {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

@media(max-width:900px){
  .lpr-search-v39 .lpr-filter-row-v39 {
    grid-template-columns: 1fr;
  }
}

/* Remove black background behind catalogue covers */
.lpr38-card {
  grid-template-columns: 150px minmax(0, 1fr);
  max-width: 980px;
  align-items: start;
  background: transparent !important;
}

.lpr38-card-cover {
  background: transparent !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
}

.lpr38-card-cover img {
  width: 100%;
  height: auto !important;
  max-height: 230px;
  object-fit: contain !important;
  display: block;
  background: #fff;
}

.lpr38-card-cover span {
  height: 210px;
  background: #f3f4f6;
  color: #111;
}

.lpr38-card h3 {
  max-width: 640px;
}

.lpr38-card-body {
  padding-top: 2px;
}

.lpr38-card-link {
  background: #fff;
}

/* Detail page: slightly cleaner LSE spacing */
.lpr38-page {
  align-items: start;
}

.lpr38-sidebar {
  position: relative;
}

.lpr38-main {
  padding-top: 2px;
}

.lpr38-header h1 {
  max-width: 760px;
}

.lpr38-tabs {
  margin-top: 22px;
}

/* Indonesian metric spacing */
.lpr38-metrics h3 {
  font-size: 21px;
}

/* Mobile: show category/kicker above title; author info below author */
.lpr38-mobile-kicker {
  color: #6b7280;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 4px;
}

.lpr38-mobile-author-bio {
  margin: 7px 0 8px;
  background: #fafafa;
  border-left: 3px solid #d71920;
  padding: 6px 8px;
}

.lpr38-mobile-author-bio summary {
  color: #d71920;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.lpr38-mobile-author-bio p {
  margin: 6px 0 0 !important;
  color: #4b5563 !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}

@media(max-width:900px){
  .lpr38-mobile-hero {
    background: #fff;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #d71920;
    box-shadow: 0 8px 22px rgba(17,17,17,.05);
  }

  .lpr38-mobile-cover {
    background: transparent !important;
  }

  .lpr38-mobile-cover img {
    background: #fff;
    object-fit: contain;
  }

  .lpr38-sidebar {
    background: #fff;
  }

  .lpr38-side-block h4 {
    font-size: 13px;
  }

  .lpr38-card {
    grid-template-columns: 96px minmax(0,1fr);
    gap: 14px;
    padding-bottom: 18px;
  }

  .lpr38-card-cover {
    box-shadow: none;
  }

  .lpr38-card-cover img,
  .lpr38-card-cover span {
    height: auto !important;
    max-height: 140px;
  }

  .lpr38-card h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  .lpr38-card-author {
    font-size: 13px;
  }

  .lpr38-card-meta {
    font-size: 12px;
    line-height: 1.5;
  }

  .lpr38-card-meta span {
    display: inline;
  }
}


/* ===== v4.0.0 final requested ordering and LSE-style list refinement ===== */

/* Buttons: small monochrome SVG icons, no colored icon blocks */
.lpr38-actions a svg,
.lpr38-actions button svg,
.lpr38-mobile-actions a svg,
.lpr38-mobile-actions button svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex: 0 0 auto;
}

.lpr38-mobile-actions button {
  display: inline-flex !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px !important;
  border: 1px solid #d71920 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #d71920 !important;
  text-decoration: none !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
}

/* Search: label only Tahun, less heavy */
.lpr-search-v39 .lpr-filter-row-v39 {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

/* More LSE-like archive/list */
.lpr-grid {
  display: block !important;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.lpr40-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid #e5e7eb;
  align-items: start;
  background: transparent !important;
}

.lpr40-card:first-child {
  padding-top: 10px;
}

.lpr40-card-cover {
  display: block;
  background: transparent !important;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
}

.lpr40-card-cover img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  display: block;
  background: #fff;
}

.lpr40-card-cover span {
  min-height: 200px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  color: #111;
  font-weight: 900;
}

.lpr40-card-kicker {
  color: #4b5563;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  margin: 0 0 9px;
}

.lpr40-card h3 {
  margin: 0 0 8px;
  max-width: 660px;
  font-size: 21px;
  line-height: 1.22;
  font-weight: 800;
}

.lpr40-card h3 a {
  color: #d71920;
  text-decoration: none;
}

.lpr40-card-author {
  margin: 0 0 12px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
}

.lpr40-card-excerpt {
  margin: 0 0 12px;
  max-width: 720px;
  color: #3a4148;
  font-size: 14px;
  line-height: 1.65;
}

.lpr40-card-meta {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}

.lpr40-card-meta span:not(:last-child)::after {
  content: " | ";
  color: #9ca3af;
  margin: 0 6px;
}

.lpr40-card-link {
  display: inline-flex;
  border: 1px solid #d71920;
  color: #d71920 !important;
  text-decoration: none !important;
  border-radius: 4px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
}

/* Mobile requested order:
   1 mobile hero category/year + title/subtitle + author + Informasi Penulis + buttons
   2 tabs/content
   3 sidebar metadata
*/
@media(max-width:900px){
  .lpr38-page {
    width: calc(100% - 24px);
    display: flex !important;
    flex-direction: column;
    margin: 22px auto 64px;
  }

  .lpr38-mobile-hero { order: 1; }
  .lpr38-main { order: 2; }
  .lpr38-sidebar { order: 3; }

  .lpr38-mobile-hero {
    grid-template-columns: 92px minmax(0,1fr);
    gap: 14px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #d71920;
    background: #fff;
    box-shadow: 0 8px 22px rgba(17,17,17,.05);
  }

  .lpr38-mobile-kicker {
    color: #6b7280;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    margin: 0 0 4px;
  }

  .lpr38-mobile-hero h1 {
    margin: 0 0 5px;
    font-size: 19px !important;
    line-height: 1.25;
    color: #3a4148;
    font-weight: 800;
  }

  .lpr38-mobile-hero h2 {
    margin: 0 0 7px;
    color: #5b6673;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
  }

  .lpr38-mobile-hero p {
    margin: 0 0 7px;
    color: #d71920;
    font-size: 12px;
    font-weight: 700;
  }

  .lpr38-mobile-author-bio {
    margin: 7px 0 8px;
    background: #fafafa;
    border-left: 3px solid #d71920;
    padding: 6px 8px;
  }

  .lpr38-mobile-author-bio summary {
    color: #d71920;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
  }

  .lpr38-mobile-author-bio p {
    margin: 6px 0 0 !important;
    color: #4b5563 !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .lpr38-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .lpr38-mobile-actions a,
  .lpr38-mobile-actions button {
    height: 29px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    gap: 4px;
  }

  .lpr38-main .lpr38-header {
    display: none !important;
  }

  .lpr38-sidebar .lpr38-cover {
    display: none !important;
  }

  .lpr38-tabs {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .lpr38-tabs button {
    padding: 10px 8px !important;
    font-size: 12px !important;
  }

  .lpr38-detail-table th,
  .lpr38-detail-table td {
    display: block;
    width: auto;
  }

  .lpr38-detail-table th {
    border-bottom: 0;
    padding-bottom: 3px;
  }

  .lpr38-detail-table td {
    padding-top: 3px;
  }

  .lpr38-sidebar {
    margin-top: 22px;
    margin-bottom: 0;
  }

  .lpr40-card {
    grid-template-columns: 96px minmax(0,1fr);
    gap: 14px;
    padding: 18px 0;
  }

  .lpr40-card-cover {
    box-shadow: none;
  }

  .lpr40-card-cover img {
    max-height: 140px;
  }

  .lpr40-card h3 {
    font-size: 18px;
  }

  .lpr40-card-excerpt {
    display: none;
  }

  .lpr40-card-meta {
    font-size: 12px;
  }
}


/* ===== v4.0.1 Centering patch for theme containers ===== */

/* Pusatkan halaman archive/katalog repository */
body.lpr-repository-page .lprx-page,
body.lpr-repository-page .lpr-archive,
body.lpr-repository-page .lpr-publications,
body.lpr-repository-page .lpr-grid,
body.lpr-repository-page .lpr-search,
body.lpr-repository-page .lpr-stats,
body.lpr-repository-page .lpr38-page {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Batasi lebar agar tidak terlihat nempel kiri pada tema yang containernya sangat besar */
body.lpr-repository-page .lprx-page,
body.lpr-repository-page .lpr-publications,
body.lpr-repository-page .lpr-grid {
  width: min(100%, 980px) !important;
}

body.lpr-repository-page .lpr-search,
body.lpr-repository-page .lpr-stats {
  width: min(100%, 1120px) !important;
}

/* Pusatkan isi blok shortcode di halaman biasa /publikasi */
.page .lpr-search,
.page .lpr-stats,
.page .lpr-grid,
.page .lpr-publications,
.page .lpr38-page,
.page .lprx-page {
  margin-left: auto !important;
  margin-right: auto !important;
}

.page .lpr-grid,
.page .lpr-publications {
  width: min(100%, 980px) !important;
}

.page .lpr-search,
.page .lpr-stats {
  width: min(100%, 1120px) !important;
}

/* Kalau tema membungkus konten terlalu kiri, paksa wrapper utama repository berada di tengah */
body.lpr-repository-page #primary,
body.lpr-repository-page .site-main,
body.lpr-repository-page .content-area,
body.lpr-repository-page article,
body.lpr-repository-page .entry-content {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Katalog/list publikasi dibuat center dengan item list LSE-like */
.lpr-grid {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.lpr40-card {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Form pencarian: tetap center, tidak terlalu lebar */
.lpr-search-v39,
.lpr-search {
  box-sizing: border-box;
}

/* Statistik dibuat sejajar tengah */
.lpr-stats {
  justify-content: center !important;
}

/* Mobile tetap full-width rapi */
@media (max-width: 900px) {
  .page .lpr-search,
  .page .lpr-stats,
  .page .lpr-grid,
  .page .lpr-publications,
  body.lpr-repository-page .lpr-search,
  body.lpr-repository-page .lpr-stats,
  body.lpr-repository-page .lpr-grid,
  body.lpr-repository-page .lpr-publications {
    width: calc(100% - 24px) !important;
  }
}


/* ===== v4.0.2 Theme background harmonization patch ===== */

/* Jangan buat kotak putih besar sendiri; ikuti background tema */
body.lpr-repository-page .lpr38-page,
body.lpr-repository-page .lpr37-page,
body.lpr-repository-page .lpr36-page,
body.lpr-repository-page .lpr35-page,
body.lpr-repository-page .lprx-page,
.page .lpr38-page,
.page .lpr37-page,
.page .lpr36-page,
.page .lpr35-page,
.page .lprx-page {
  background: transparent !important;
}

/* Konten utama ikut background tema, bukan blok putih besar */
body.lpr-repository-page .lpr38-main,
body.lpr-repository-page .lpr37-main,
body.lpr-repository-page .lpr36-main,
body.lpr-repository-page .lpr35-main,
.page .lpr38-main,
.page .lpr37-main,
.page .lpr36-main,
.page .lpr35-main {
  background: transparent !important;
}

/* Sidebar juga transparan agar menyatu dengan tema */
body.lpr-repository-page .lpr38-sidebar,
body.lpr-repository-page .lpr37-sidebar,
body.lpr-repository-page .lpr36-sidebar,
body.lpr-repository-page .lpr35-sidebar,
.page .lpr38-sidebar,
.page .lpr37-sidebar,
.page .lpr36-sidebar,
.page .lpr35-sidebar {
  background: transparent !important;
}

/* Hanya elemen yang memang perlu kartu diberi warna soft, bukan seluruh halaman */
.lpr38-tabs,
.lpr37-tabs,
.lpr38-author-bio,
.lpr37-author-bio,
.lpr38-mobile-author-bio,
.lpr37-mobile-author-bio,
.lpr38-citations > div,
.lpr37-citations > div {
  background: rgba(255,255,255,.55) !important;
}

/* Panel baca online/detail dibuat soft transparan agar tetap terbaca */
.lpr38-tab-panel,
.lpr37-tab-panel {
  background: transparent !important;
}

/* Table detail tetap readable tetapi tidak terlalu putih mencolok */
.lpr38-detail-table th,
.lpr37-detail-table th {
  background: rgba(255,255,255,.45) !important;
}

.lpr38-detail-table td,
.lpr37-detail-table td {
  background: rgba(255,255,255,.18) !important;
}

/* Cover tidak diberi background gelap tambahan */
.lpr38-cover,
.lpr37-cover,
.lpr36-cover,
.lpr35-cover,
.lpr38-mobile-cover,
.lpr37-mobile-cover {
  background: transparent !important;
}

/* Untuk halaman katalog, area search tetap hitam sesuai desain, tapi wrapper luarnya transparan */
.lpr-publications,
.lpr-grid,
.lpr-archive,
.lprx-page {
  background: transparent !important;
}

/* Jika tema memakai background abu-abu, kartu katalog jangan tampak seperti blok putih besar */
.lpr40-card,
.lpr38-card {
  background: transparent !important;
}

/* Mobile: jangan buat kartu putih besar di hero, cukup border halus */
@media (max-width: 900px) {
  .lpr38-mobile-hero,
  .lpr37-mobile-hero {
    background: rgba(255,255,255,.35) !important;
  }
}


/* ===== v4.0.3 Dark mode compatibility patch ===== */

/*
  Mendukung beberapa pola class dark mode yang umum dipakai tema:
  - body.dark
  - body.dark-mode
  - body.theme-dark
  - body.wp-dark-mode-active
  - html.dark
  - .dark-mode di parent theme
  - prefers-color-scheme: dark
*/

/* Base variables */
body.lpr-repository-page,
.page {
  --lpr-theme-text: inherit;
  --lpr-theme-muted: inherit;
  --lpr-theme-soft-card: rgba(255,255,255,.55);
  --lpr-theme-soft-card-2: rgba(255,255,255,.35);
  --lpr-theme-border: rgba(17,24,39,.12);
  --lpr-theme-table-head: rgba(255,255,255,.45);
  --lpr-theme-table-cell: rgba(255,255,255,.18);
}

/* Dark variables when class exists */
html.dark body,
body.dark,
body.dark-mode,
body.theme-dark,
body.wp-dark-mode-active,
body[data-theme="dark"],
.dark-mode body,
.dark body {
  --lpr-theme-text: #e5e7eb;
  --lpr-theme-muted: #aeb6c2;
  --lpr-theme-soft-card: rgba(17,24,39,.68);
  --lpr-theme-soft-card-2: rgba(17,24,39,.46);
  --lpr-theme-border: rgba(255,255,255,.12);
  --lpr-theme-table-head: rgba(17,24,39,.78);
  --lpr-theme-table-cell: rgba(17,24,39,.46);
}

/* Dark mode if OS preference is dark and theme does not expose a class */
@media (prefers-color-scheme: dark) {
  body.lpr-repository-page {
    --lpr-theme-text: #e5e7eb;
    --lpr-theme-muted: #aeb6c2;
    --lpr-theme-soft-card: rgba(17,24,39,.68);
    --lpr-theme-soft-card-2: rgba(17,24,39,.46);
    --lpr-theme-border: rgba(255,255,255,.12);
    --lpr-theme-table-head: rgba(17,24,39,.78);
    --lpr-theme-table-cell: rgba(17,24,39,.46);
  }
}

/* Make repository typography follow dark theme */
html.dark body .lpr38-page,
body.dark .lpr38-page,
body.dark-mode .lpr38-page,
body.theme-dark .lpr38-page,
body.wp-dark-mode-active .lpr38-page,
body[data-theme="dark"] .lpr38-page,
.dark-mode body .lpr38-page,
.dark body .lpr38-page,
html.dark body .lpr37-page,
body.dark .lpr37-page,
body.dark-mode .lpr37-page,
body.theme-dark .lpr37-page,
body.wp-dark-mode-active .lpr37-page,
body[data-theme="dark"] .lpr37-page,
.dark-mode body .lpr37-page,
.dark body .lpr37-page {
  color: var(--lpr-theme-text) !important;
  background: transparent !important;
}

/* Main headings */
html.dark body .lpr38-header h1,
body.dark .lpr38-header h1,
body.dark-mode .lpr38-header h1,
body.theme-dark .lpr38-header h1,
body.wp-dark-mode-active .lpr38-header h1,
body[data-theme="dark"] .lpr38-header h1,
.dark-mode body .lpr38-header h1,
.dark body .lpr38-header h1,
html.dark body .lpr38-header h2,
body.dark .lpr38-header h2,
body.dark-mode .lpr38-header h2,
body.theme-dark .lpr38-header h2,
body.wp-dark-mode-active .lpr38-header h2,
body[data-theme="dark"] .lpr38-header h2,
.dark-mode body .lpr38-header h2,
.dark body .lpr38-header h2,
html.dark body .lpr38-tab-panel h3,
body.dark .lpr38-tab-panel h3,
body.dark-mode .lpr38-tab-panel h3,
body.theme-dark .lpr38-tab-panel h3,
body.wp-dark-mode-active .lpr38-tab-panel h3,
body[data-theme="dark"] .lpr38-tab-panel h3,
.dark-mode body .lpr38-tab-panel h3,
.dark body .lpr38-tab-panel h3,
html.dark body .lpr38-metrics h3,
body.dark .lpr38-metrics h3,
body.dark-mode .lpr38-metrics h3,
body.theme-dark .lpr38-metrics h3,
body.wp-dark-mode-active .lpr38-metrics h3,
body[data-theme="dark"] .lpr38-metrics h3,
.dark-mode body .lpr38-metrics h3,
.dark body .lpr38-metrics h3 {
  color: var(--lpr-theme-text) !important;
}

/* Body copy */
html.dark body .lpr38-description p,
body.dark .lpr38-description p,
body.dark-mode .lpr38-description p,
body.theme-dark .lpr38-description p,
body.wp-dark-mode-active .lpr38-description p,
body[data-theme="dark"] .lpr38-description p,
.dark-mode body .lpr38-description p,
.dark body .lpr38-description p,
html.dark body .lpr38-side-block p,
body.dark .lpr38-side-block p,
body.dark-mode .lpr38-side-block p,
body.theme-dark .lpr38-side-block p,
body.wp-dark-mode-active .lpr38-side-block p,
body[data-theme="dark"] .lpr38-side-block p,
.dark-mode body .lpr38-side-block p,
.dark body .lpr38-side-block p {
  color: var(--lpr-theme-text) !important;
}

/* Muted labels */
html.dark body .lpr38-kicker,
body.dark .lpr38-kicker,
body.dark-mode .lpr38-kicker,
body.theme-dark .lpr38-kicker,
body.wp-dark-mode-active .lpr38-kicker,
body[data-theme="dark"] .lpr38-kicker,
.dark-mode body .lpr38-kicker,
.dark body .lpr38-kicker,
html.dark body .lpr38-card-kicker,
body.dark .lpr38-card-kicker,
body.dark-mode .lpr38-card-kicker,
body.theme-dark .lpr38-card-kicker,
body.wp-dark-mode-active .lpr38-card-kicker,
body[data-theme="dark"] .lpr38-card-kicker,
.dark-mode body .lpr38-card-kicker,
.dark body .lpr38-card-kicker,
html.dark body .lpr38-card-meta,
body.dark .lpr38-card-meta,
body.dark-mode .lpr38-card-meta,
body.theme-dark .lpr38-card-meta,
body.wp-dark-mode-active .lpr38-card-meta,
body[data-theme="dark"] .lpr38-card-meta,
.dark-mode body .lpr38-card-meta,
.dark body .lpr38-card-meta {
  color: var(--lpr-theme-muted) !important;
}

/* Soft panels */
html.dark body .lpr38-tabs,
body.dark .lpr38-tabs,
body.dark-mode .lpr38-tabs,
body.theme-dark .lpr38-tabs,
body.wp-dark-mode-active .lpr38-tabs,
body[data-theme="dark"] .lpr38-tabs,
.dark-mode body .lpr38-tabs,
.dark body .lpr38-tabs,
html.dark body .lpr38-author-bio,
body.dark .lpr38-author-bio,
body.dark-mode .lpr38-author-bio,
body.theme-dark .lpr38-author-bio,
body.wp-dark-mode-active .lpr38-author-bio,
body[data-theme="dark"] .lpr38-author-bio,
.dark-mode body .lpr38-author-bio,
.dark body .lpr38-author-bio,
html.dark body .lpr38-mobile-author-bio,
body.dark .lpr38-mobile-author-bio,
body.dark-mode .lpr38-mobile-author-bio,
body.theme-dark .lpr38-mobile-author-bio,
body.wp-dark-mode-active .lpr38-mobile-author-bio,
body[data-theme="dark"] .lpr38-mobile-author-bio,
.dark-mode body .lpr38-mobile-author-bio,
.dark body .lpr38-mobile-author-bio {
  background: var(--lpr-theme-soft-card) !important;
  border-color: var(--lpr-theme-border) !important;
}

/* Tabs */
html.dark body .lpr38-tabs button,
body.dark .lpr38-tabs button,
body.dark-mode .lpr38-tabs button,
body.theme-dark .lpr38-tabs button,
body.wp-dark-mode-active .lpr38-tabs button,
body[data-theme="dark"] .lpr38-tabs button,
.dark-mode body .lpr38-tabs button,
.dark body .lpr38-tabs button {
  background: var(--lpr-theme-soft-card-2) !important;
  color: var(--lpr-theme-text) !important;
  border-color: var(--lpr-theme-border) !important;
}

html.dark body .lpr38-tabs button.active,
body.dark .lpr38-tabs button.active,
body.dark-mode .lpr38-tabs button.active,
body.theme-dark .lpr38-tabs button.active,
body.wp-dark-mode-active .lpr38-tabs button.active,
body[data-theme="dark"] .lpr38-tabs button.active,
.dark-mode body .lpr38-tabs button.active,
.dark body .lpr38-tabs button.active {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  box-shadow: inset 0 -3px 0 #d71920 !important;
}

/* Detail table */
html.dark body .lpr38-detail-table th,
body.dark .lpr38-detail-table th,
body.dark-mode .lpr38-detail-table th,
body.theme-dark .lpr38-detail-table th,
body.wp-dark-mode-active .lpr38-detail-table th,
body[data-theme="dark"] .lpr38-detail-table th,
.dark-mode body .lpr38-detail-table th,
.dark body .lpr38-detail-table th {
  color: var(--lpr-theme-muted) !important;
  background: var(--lpr-theme-table-head) !important;
  border-color: var(--lpr-theme-border) !important;
}

html.dark body .lpr38-detail-table td,
body.dark .lpr38-detail-table td,
body.dark-mode .lpr38-detail-table td,
body.theme-dark .lpr38-detail-table td,
body.wp-dark-mode-active .lpr38-detail-table td,
body[data-theme="dark"] .lpr38-detail-table td,
.dark-mode body .lpr38-detail-table td,
.dark body .lpr38-detail-table td {
  color: var(--lpr-theme-text) !important;
  background: var(--lpr-theme-table-cell) !important;
  border-color: var(--lpr-theme-border) !important;
}

/* Sidebar lines */
html.dark body .lpr38-side-block,
body.dark .lpr38-side-block,
body.dark-mode .lpr38-side-block,
body.theme-dark .lpr38-side-block,
body.wp-dark-mode-active .lpr38-side-block,
body[data-theme="dark"] .lpr38-side-block,
.dark-mode body .lpr38-side-block,
.dark body .lpr38-side-block,
html.dark body .lpr38-metrics,
body.dark .lpr38-metrics,
body.dark-mode .lpr38-metrics,
body.theme-dark .lpr38-metrics,
body.wp-dark-mode-active .lpr38-metrics,
body[data-theme="dark"] .lpr38-metrics,
.dark-mode body .lpr38-metrics,
.dark body .lpr38-metrics {
  border-color: var(--lpr-theme-border) !important;
}

html.dark body .lpr38-side-block h4,
body.dark .lpr38-side-block h4,
body.dark-mode .lpr38-side-block h4,
body.theme-dark .lpr38-side-block h4,
body.wp-dark-mode-active .lpr38-side-block h4,
body[data-theme="dark"] .lpr38-side-block h4,
.dark-mode body .lpr38-side-block h4,
.dark body .lpr38-side-block h4 {
  color: var(--lpr-theme-text) !important;
}

/* Metrics */
html.dark body .lpr38-metric-row,
body.dark .lpr38-metric-row,
body.dark-mode .lpr38-metric-row,
body.theme-dark .lpr38-metric-row,
body.wp-dark-mode-active .lpr38-metric-row,
body[data-theme="dark"] .lpr38-metric-row,
.dark-mode body .lpr38-metric-row,
.dark body .lpr38-metric-row {
  border-color: var(--lpr-theme-border) !important;
}

html.dark body .lpr38-metric-row span,
body.dark .lpr38-metric-row span,
body.dark-mode .lpr38-metric-row span,
body.theme-dark .lpr38-metric-row span,
body.wp-dark-mode-active .lpr38-metric-row span,
body[data-theme="dark"] .lpr38-metric-row span,
.dark-mode body .lpr38-metric-row span,
.dark body .lpr38-metric-row span {
  color: var(--lpr-theme-muted) !important;
}

/* Catalogue/list cards dark */
html.dark body .lpr40-card,
body.dark .lpr40-card,
body.dark-mode .lpr40-card,
body.theme-dark .lpr40-card,
body.wp-dark-mode-active .lpr40-card,
body[data-theme="dark"] .lpr40-card,
.dark-mode body .lpr40-card,
.dark body .lpr40-card {
  border-color: var(--lpr-theme-border) !important;
  background: transparent !important;
}

html.dark body .lpr40-card h3,
body.dark .lpr40-card h3,
body.dark-mode .lpr40-card h3,
body.theme-dark .lpr40-card h3,
body.wp-dark-mode-active .lpr40-card h3,
body[data-theme="dark"] .lpr40-card h3,
.dark-mode body .lpr40-card h3,
.dark body .lpr40-card h3,
html.dark body .lpr40-card-author,
body.dark .lpr40-card-author,
body.dark-mode .lpr40-card-author,
body.theme-dark .lpr40-card-author,
body.wp-dark-mode-active .lpr40-card-author,
body[data-theme="dark"] .lpr40-card-author,
.dark-mode body .lpr40-card-author,
.dark body .lpr40-card-author,
html.dark body .lpr40-card-excerpt,
body.dark .lpr40-card-excerpt,
body.dark-mode .lpr40-card-excerpt,
body.theme-dark .lpr40-card-excerpt,
body.wp-dark-mode-active .lpr40-card-excerpt,
body[data-theme="dark"] .lpr40-card-excerpt,
.dark-mode body .lpr40-card-excerpt,
.dark body .lpr40-card-excerpt {
  color: var(--lpr-theme-text) !important;
}

html.dark body .lpr40-card-kicker,
body.dark .lpr40-card-kicker,
body.dark-mode .lpr40-card-kicker,
body.theme-dark .lpr40-card-kicker,
body.wp-dark-mode-active .lpr40-card-kicker,
body[data-theme="dark"] .lpr40-card-kicker,
.dark-mode body .lpr40-card-kicker,
.dark body .lpr40-card-kicker,
html.dark body .lpr40-card-meta,
body.dark .lpr40-card-meta,
body.dark-mode .lpr40-card-meta,
body.theme-dark .lpr40-card-meta,
body.wp-dark-mode-active .lpr40-card-meta,
body[data-theme="dark"] .lpr40-card-meta,
.dark-mode body .lpr40-card-meta,
.dark body .lpr40-card-meta {
  color: var(--lpr-theme-muted) !important;
}

/* Mobile hero dark */
html.dark body .lpr38-mobile-hero,
body.dark .lpr38-mobile-hero,
body.dark-mode .lpr38-mobile-hero,
body.theme-dark .lpr38-mobile-hero,
body.wp-dark-mode-active .lpr38-mobile-hero,
body[data-theme="dark"] .lpr38-mobile-hero,
.dark-mode body .lpr38-mobile-hero,
.dark body .lpr38-mobile-hero {
  background: var(--lpr-theme-soft-card-2) !important;
  border-color: var(--lpr-theme-border) !important;
}

html.dark body .lpr38-mobile-hero h1,
body.dark .lpr38-mobile-hero h1,
body.dark-mode .lpr38-mobile-hero h1,
body.theme-dark .lpr38-mobile-hero h1,
body.wp-dark-mode-active .lpr38-mobile-hero h1,
body[data-theme="dark"] .lpr38-mobile-hero h1,
.dark-mode body .lpr38-mobile-hero h1,
.dark body .lpr38-mobile-hero h1,
html.dark body .lpr38-mobile-hero h2,
body.dark .lpr38-mobile-hero h2,
body.dark-mode .lpr38-mobile-hero h2,
body.theme-dark .lpr38-mobile-hero h2,
body.wp-dark-mode-active .lpr38-mobile-hero h2,
body[data-theme="dark"] .lpr38-mobile-hero h2,
.dark-mode body .lpr38-mobile-hero h2,
.dark body .lpr38-mobile-hero h2 {
  color: var(--lpr-theme-text) !important;
}

/* Search/stat cards in dark mode */
html.dark body .lpr-stats .lpr-stat,
body.dark .lpr-stats .lpr-stat,
body.dark-mode .lpr-stats .lpr-stat,
body.theme-dark .lpr-stats .lpr-stat,
body.wp-dark-mode-active .lpr-stats .lpr-stat,
body[data-theme="dark"] .lpr-stats .lpr-stat,
.dark-mode body .lpr-stats .lpr-stat,
.dark body .lpr-stats .lpr-stat {
  background: var(--lpr-theme-soft-card-2) !important;
  border-color: var(--lpr-theme-border) !important;
}

html.dark body .lpr-stats .lpr-stat span,
body.dark .lpr-stats .lpr-stat span,
body.dark-mode .lpr-stats .lpr-stat span,
body.theme-dark .lpr-stats .lpr-stat span,
body.wp-dark-mode-active .lpr-stats .lpr-stat span,
body[data-theme="dark"] .lpr-stats .lpr-stat span,
.dark-mode body .lpr-stats .lpr-stat span,
.dark body .lpr-stats .lpr-stat span {
  color: var(--lpr-theme-muted) !important;
}

/* Force dark-mode transparency where old CSS left white panels */
html.dark body .lpr38-page,
body.dark .lpr38-page,
body.dark-mode .lpr38-page,
body.theme-dark .lpr38-page,
body.wp-dark-mode-active .lpr38-page,
body[data-theme="dark"] .lpr38-page,
.dark-mode body .lpr38-page,
.dark body .lpr38-page,
html.dark body .lpr38-main,
body.dark .lpr38-main,
body.dark-mode .lpr38-main,
body.theme-dark .lpr38-main,
body.wp-dark-mode-active .lpr38-main,
body[data-theme="dark"] .lpr38-main,
.dark-mode body .lpr38-main,
.dark body .lpr38-main,
html.dark body .lpr38-sidebar,
body.dark .lpr38-sidebar,
body.dark-mode .lpr38-sidebar,
body.theme-dark .lpr38-sidebar,
body.wp-dark-mode-active .lpr38-sidebar,
body[data-theme="dark"] .lpr38-sidebar,
.dark-mode body .lpr38-sidebar,
.dark body .lpr38-sidebar {
  background: transparent !important;
}


/* ===== v4.0.4 Dark mode text contrast fix ===== */

/*
  Patch ini ditempatkan paling akhir agar mengalahkan rule lama.
  Masalah sebelumnya: teks judul/deskripsi masih memakai warna gelap (#3a4148/#4b5563)
  saat background tema sudah gelap.
*/

/* Deteksi dark mode dari class theme yang umum */
html.dark body .lpr38-page,
body.dark .lpr38-page,
body.dark-mode .lpr38-page,
body.theme-dark .lpr38-page,
body.wp-dark-mode-active .lpr38-page,
body[data-theme="dark"] .lpr38-page,
.dark-mode body .lpr38-page,
.dark body .lpr38-page,
html.dark body .lpr38-main,
body.dark .lpr38-main,
body.dark-mode .lpr38-main,
body.theme-dark .lpr38-main,
body.wp-dark-mode-active .lpr38-main,
body[data-theme="dark"] .lpr38-main,
.dark-mode body .lpr38-main,
.dark body .lpr38-main,
html.dark body .lpr38-sidebar,
body.dark .lpr38-sidebar,
body.dark-mode .lpr38-sidebar,
body.theme-dark .lpr38-sidebar,
body.wp-dark-mode-active .lpr38-sidebar,
body[data-theme="dark"] .lpr38-sidebar,
.dark-mode body .lpr38-sidebar,
.dark body .lpr38-sidebar {
  color: #eef2f7 !important;
  background: transparent !important;
}

/* Judul utama, subjudul, heading section */
html.dark body .lpr38-header h1,
body.dark .lpr38-header h1,
body.dark-mode .lpr38-header h1,
body.theme-dark .lpr38-header h1,
body.wp-dark-mode-active .lpr38-header h1,
body[data-theme="dark"] .lpr38-header h1,
.dark-mode body .lpr38-header h1,
.dark body .lpr38-header h1,
html.dark body .lpr38-header h2,
body.dark .lpr38-header h2,
body.dark-mode .lpr38-header h2,
body.theme-dark .lpr38-header h2,
body.wp-dark-mode-active .lpr38-header h2,
body[data-theme="dark"] .lpr38-header h2,
.dark-mode body .lpr38-header h2,
.dark body .lpr38-header h2,
html.dark body .lpr38-tab-panel h3,
body.dark .lpr38-tab-panel h3,
body.dark-mode .lpr38-tab-panel h3,
body.theme-dark .lpr38-tab-panel h3,
body.wp-dark-mode-active .lpr38-tab-panel h3,
body[data-theme="dark"] .lpr38-tab-panel h3,
.dark-mode body .lpr38-tab-panel h3,
.dark body .lpr38-tab-panel h3,
html.dark body .lpr38-metrics h3,
body.dark .lpr38-metrics h3,
body.dark-mode .lpr38-metrics h3,
body.theme-dark .lpr38-metrics h3,
body.wp-dark-mode-active .lpr38-metrics h3,
body[data-theme="dark"] .lpr38-metrics h3,
.dark-mode body .lpr38-metrics h3,
.dark body .lpr38-metrics h3 {
  color: #f8fafc !important;
  opacity: 1 !important;
}

/* Deskripsi dan teks utama */
html.dark body .lpr38-description,
body.dark .lpr38-description,
body.dark-mode .lpr38-description,
body.theme-dark .lpr38-description,
body.wp-dark-mode-active .lpr38-description,
body[data-theme="dark"] .lpr38-description,
.dark-mode body .lpr38-description,
.dark body .lpr38-description,
html.dark body .lpr38-description p,
body.dark .lpr38-description p,
body.dark-mode .lpr38-description p,
body.theme-dark .lpr38-description p,
body.wp-dark-mode-active .lpr38-description p,
body[data-theme="dark"] .lpr38-description p,
.dark-mode body .lpr38-description p,
.dark body .lpr38-description p,
html.dark body .lpr38-description li,
body.dark .lpr38-description li,
body.dark-mode .lpr38-description li,
body.theme-dark .lpr38-description li,
body.wp-dark-mode-active .lpr38-description li,
body[data-theme="dark"] .lpr38-description li,
.dark-mode body .lpr38-description li,
.dark body .lpr38-description li {
  color: #e5e7eb !important;
  opacity: 1 !important;
}

/* Kicker, subtitle kecil, metadata */
html.dark body .lpr38-kicker,
body.dark .lpr38-kicker,
body.dark-mode .lpr38-kicker,
body.theme-dark .lpr38-kicker,
body.wp-dark-mode-active .lpr38-kicker,
body[data-theme="dark"] .lpr38-kicker,
.dark-mode body .lpr38-kicker,
.dark body .lpr38-kicker,
html.dark body .lpr38-side-block p,
body.dark .lpr38-side-block p,
body.dark-mode .lpr38-side-block p,
body.theme-dark .lpr38-side-block p,
body.wp-dark-mode-active .lpr38-side-block p,
body[data-theme="dark"] .lpr38-side-block p,
.dark-mode body .lpr38-side-block p,
.dark body .lpr38-side-block p,
html.dark body .lpr38-side-block h4,
body.dark .lpr38-side-block h4,
body.dark-mode .lpr38-side-block h4,
body.theme-dark .lpr38-side-block h4,
body.wp-dark-mode-active .lpr38-side-block h4,
body[data-theme="dark"] .lpr38-side-block h4,
.dark-mode body .lpr38-side-block h4,
.dark body .lpr38-side-block h4 {
  color: #d1d5db !important;
  opacity: 1 !important;
}

/* Nama penulis tetap merah, tapi dibuat terang */
html.dark body .lpr38-author,
body.dark .lpr38-author,
body.dark-mode .lpr38-author,
body.theme-dark .lpr38-author,
body.wp-dark-mode-active .lpr38-author,
body[data-theme="dark"] .lpr38-author,
.dark-mode body .lpr38-author,
.dark body .lpr38-author,
html.dark body .lpr38-mobile-hero p,
body.dark .lpr38-mobile-hero p,
body.dark-mode .lpr38-mobile-hero p,
body.theme-dark .lpr38-mobile-hero p,
body.wp-dark-mode-active .lpr38-mobile-hero p,
body[data-theme="dark"] .lpr38-mobile-hero p,
.dark-mode body .lpr38-mobile-hero p,
.dark body .lpr38-mobile-hero p {
  color: #ff4d5d !important;
  opacity: 1 !important;
}

/* Author info: jangan abu terlalu terang/gelap */
html.dark body .lpr38-author-bio,
body.dark .lpr38-author-bio,
body.dark-mode .lpr38-author-bio,
body.theme-dark .lpr38-author-bio,
body.wp-dark-mode-active .lpr38-author-bio,
body[data-theme="dark"] .lpr38-author-bio,
.dark-mode body .lpr38-author-bio,
.dark body .lpr38-author-bio {
  background: rgba(255,255,255,.08) !important;
  border-left-color: #d71920 !important;
}

html.dark body .lpr38-author-bio summary,
body.dark .lpr38-author-bio summary,
body.dark-mode .lpr38-author-bio summary,
body.theme-dark .lpr38-author-bio summary,
body.wp-dark-mode-active .lpr38-author-bio summary,
body[data-theme="dark"] .lpr38-author-bio summary,
.dark-mode body .lpr38-author-bio summary,
.dark body .lpr38-author-bio summary {
  color: #ff4d5d !important;
}

html.dark body .lpr38-author-bio p,
body.dark .lpr38-author-bio p,
body.dark-mode .lpr38-author-bio p,
body.theme-dark .lpr38-author-bio p,
body.wp-dark-mode-active .lpr38-author-bio p,
body[data-theme="dark"] .lpr38-author-bio p,
.dark-mode body .lpr38-author-bio p,
.dark body .lpr38-author-bio p {
  color: #e5e7eb !important;
}

/* Tab aktif dan tidak aktif */
html.dark body .lpr38-tabs,
body.dark .lpr38-tabs,
body.dark-mode .lpr38-tabs,
body.theme-dark .lpr38-tabs,
body.wp-dark-mode-active .lpr38-tabs,
body[data-theme="dark"] .lpr38-tabs,
.dark-mode body .lpr38-tabs,
.dark body .lpr38-tabs {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.16) !important;
}

html.dark body .lpr38-tabs button,
body.dark .lpr38-tabs button,
body.dark-mode .lpr38-tabs button,
body.theme-dark .lpr38-tabs button,
body.wp-dark-mode-active .lpr38-tabs button,
body[data-theme="dark"] .lpr38-tabs button,
.dark-mode body .lpr38-tabs button,
.dark body .lpr38-tabs button {
  background: rgba(255,255,255,.06) !important;
  color: #e5e7eb !important;
  border-color: rgba(255,255,255,.13) !important;
  opacity: 1 !important;
}

html.dark body .lpr38-tabs button.active,
body.dark .lpr38-tabs button.active,
body.dark-mode .lpr38-tabs button.active,
body.theme-dark .lpr38-tabs button.active,
body.wp-dark-mode-active .lpr38-tabs button.active,
body[data-theme="dark"] .lpr38-tabs button.active,
.dark-mode body .lpr38-tabs button.active,
.dark body .lpr38-tabs button.active {
  background: rgba(255,255,255,.16) !important;
  color: #fff !important;
  box-shadow: inset 0 -3px 0 #ff3347 !important;
}

/* Table detail */
html.dark body .lpr38-detail-table th,
body.dark .lpr38-detail-table th,
body.dark-mode .lpr38-detail-table th,
body.theme-dark .lpr38-detail-table th,
body.wp-dark-mode-active .lpr38-detail-table th,
body[data-theme="dark"] .lpr38-detail-table th,
.dark-mode body .lpr38-detail-table th,
.dark body .lpr38-detail-table th {
  color: #d1d5db !important;
  background: rgba(255,255,255,.09) !important;
  border-color: rgba(255,255,255,.14) !important;
}

html.dark body .lpr38-detail-table td,
body.dark .lpr38-detail-table td,
body.dark-mode .lpr38-detail-table td,
body.theme-dark .lpr38-detail-table td,
body.wp-dark-mode-active .lpr38-detail-table td,
body[data-theme="dark"] .lpr38-detail-table td,
.dark-mode body .lpr38-detail-table td,
.dark body .lpr38-detail-table td {
  color: #f3f4f6 !important;
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.14) !important;
}

/* Garis dan metrik */
html.dark body .lpr38-metrics,
body.dark .lpr38-metrics,
body.dark-mode .lpr38-metrics,
body.theme-dark .lpr38-metrics,
body.wp-dark-mode-active .lpr38-metrics,
body[data-theme="dark"] .lpr38-metrics,
.dark-mode body .lpr38-metrics,
.dark body .lpr38-metrics,
html.dark body .lpr38-metric-row,
body.dark .lpr38-metric-row,
body.dark-mode .lpr38-metric-row,
body.theme-dark .lpr38-metric-row,
body.wp-dark-mode-active .lpr38-metric-row,
body[data-theme="dark"] .lpr38-metric-row,
.dark-mode body .lpr38-metric-row,
.dark body .lpr38-metric-row,
html.dark body .lpr38-side-block,
body.dark .lpr38-side-block,
body.dark-mode .lpr38-side-block,
body.theme-dark .lpr38-side-block,
body.wp-dark-mode-active .lpr38-side-block,
body[data-theme="dark"] .lpr38-side-block,
.dark-mode body .lpr38-side-block,
.dark body .lpr38-side-block {
  border-color: rgba(255,255,255,.16) !important;
}

html.dark body .lpr38-metric-row span,
body.dark .lpr38-metric-row span,
body.dark-mode .lpr38-metric-row span,
body.theme-dark .lpr38-metric-row span,
body.wp-dark-mode-active .lpr38-metric-row span,
body[data-theme="dark"] .lpr38-metric-row span,
.dark-mode body .lpr38-metric-row span,
.dark body .lpr38-metric-row span {
  color: #d1d5db !important;
}

/* Buttons: jangan hilang di dark mode */
html.dark body .lpr38-actions a,
body.dark .lpr38-actions a,
body.dark-mode .lpr38-actions a,
body.theme-dark .lpr38-actions a,
body.wp-dark-mode-active .lpr38-actions a,
body[data-theme="dark"] .lpr38-actions a,
.dark-mode body .lpr38-actions a,
.dark body .lpr38-actions a,
html.dark body .lpr38-actions button,
body.dark .lpr38-actions button,
body.dark-mode .lpr38-actions button,
body.theme-dark .lpr38-actions button,
body.wp-dark-mode-active .lpr38-actions button,
body[data-theme="dark"] .lpr38-actions button,
.dark-mode body .lpr38-actions button,
.dark body .lpr38-actions button {
  color: #d71920 !important;
  background: #fff !important;
  border-color: #fff !important;
  opacity: 1 !important;
}

html.dark body .lpr38-actions .lpr38-primary,
body.dark .lpr38-actions .lpr38-primary,
body.dark-mode .lpr38-actions .lpr38-primary,
body.theme-dark .lpr38-actions .lpr38-primary,
body.wp-dark-mode-active .lpr38-actions .lpr38-primary,
body[data-theme="dark"] .lpr38-actions .lpr38-primary,
.dark-mode body .lpr38-actions .lpr38-primary,
.dark body .lpr38-actions .lpr38-primary {
  color: #fff !important;
  background: #d71920 !important;
  border-color: #d71920 !important;
}

/* Fallback: kalau tema dark mode aktif tapi class tidak standar, berdasarkan background body yang gelap */
@media (prefers-color-scheme: dark) {
  body.lpr-repository-page .lpr38-header h1,
  body.lpr-repository-page .lpr38-header h2,
  body.lpr-repository-page .lpr38-tab-panel h3,
  body.lpr-repository-page .lpr38-metrics h3 {
    color: #f8fafc !important;
  }

  body.lpr-repository-page .lpr38-description p,
  body.lpr-repository-page .lpr38-side-block p,
  body.lpr-repository-page .lpr38-side-block h4 {
    color: #e5e7eb !important;
  }

  body.lpr-repository-page .lpr38-kicker {
    color: #cbd5e1 !important;
  }
}


/* ===== v4.0.5 Light/Dark mode correction ===== */

/*
  Masalah v4.0.4:
  Beberapa browser/OS dengan prefers-color-scheme: dark membuat teks menjadi putih
  meskipun tema WordPress sedang light mode.

  Solusi:
  1. Default/light mode dipaksa kembali ke warna gelap normal.
  2. Dark mode hanya aktif jika tema benar-benar memberi class dark mode.
  3. Selector prefers-color-scheme sebelumnya dinetralisir untuk halaman plugin.
*/

/* DEFAULT / LIGHT MODE — selalu terbaca pada background terang */
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-page,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-main,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-sidebar {
  color: #26313d !important;
  background: transparent !important;
}

body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-header h1,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-header h2,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-tab-panel h3,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-metrics h3 {
  color: #26313d !important;
  opacity: 1 !important;
}

body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-header h2 {
  color: #4b5563 !important;
}

body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-description,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-description p,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-description li,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-side-block p,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-side-block h4 {
  color: #26313d !important;
  opacity: 1 !important;
}

body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-kicker,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-mobile-kicker {
  color: #6b7280 !important;
}

body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-author,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-mobile-hero p {
  color: #d71920 !important;
}

body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-author-bio,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-mobile-author-bio {
  background: rgba(255,255,255,.55) !important;
  border-left-color: #d71920 !important;
}

body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-author-bio summary,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-mobile-author-bio summary {
  color: #d71920 !important;
}

body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-author-bio p,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-mobile-author-bio p {
  color: #374151 !important;
}

/* Light mode tabs */
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-tabs {
  background: #f3f4f6 !important;
  border-color: #e5e7eb !important;
}

body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-tabs button {
  background: #f3f4f6 !important;
  color: #26313d !important;
  border-color: #e5e7eb !important;
}

body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-tabs button.active {
  background: #fff !important;
  color: #d71920 !important;
  box-shadow: inset 0 -3px 0 #d71920 !important;
}

/* Light mode table */
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-detail-table th {
  color: #4b5563 !important;
  background: rgba(255,255,255,.65) !important;
  border-color: #e5e7eb !important;
}

body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-detail-table td {
  color: #111827 !important;
  background: rgba(255,255,255,.35) !important;
  border-color: #e5e7eb !important;
}

/* Light mode metric/sidebar lines */
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-metrics,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-metric-row,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-side-block {
  border-color: #e5e7eb !important;
}

body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-metric-row span {
  color: #4b5563 !important;
}

/* Light mode buttons */
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-actions a,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-actions button,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-mobile-actions a,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-mobile-actions button {
  color: #d71920 !important;
  background: #fff !important;
  border-color: #d71920 !important;
}

body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-actions .lpr38-primary,
body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-mobile-actions .lpr38-primary {
  color: #fff !important;
  background: #d71920 !important;
  border-color: #d71920 !important;
}

/* DARK MODE — hanya jika tema memberi class dark mode */
body.dark .lpr38-header h1,
body.dark-mode .lpr38-header h1,
body.theme-dark .lpr38-header h1,
body.wp-dark-mode-active .lpr38-header h1,
body[data-theme="dark"] .lpr38-header h1,
html.dark body .lpr38-header h1,
body.dark .lpr38-header h2,
body.dark-mode .lpr38-header h2,
body.theme-dark .lpr38-header h2,
body.wp-dark-mode-active .lpr38-header h2,
body[data-theme="dark"] .lpr38-header h2,
html.dark body .lpr38-header h2,
body.dark .lpr38-tab-panel h3,
body.dark-mode .lpr38-tab-panel h3,
body.theme-dark .lpr38-tab-panel h3,
body.wp-dark-mode-active .lpr38-tab-panel h3,
body[data-theme="dark"] .lpr38-tab-panel h3,
html.dark body .lpr38-tab-panel h3 {
  color: #f8fafc !important;
  opacity: 1 !important;
}

body.dark .lpr38-description p,
body.dark-mode .lpr38-description p,
body.theme-dark .lpr38-description p,
body.wp-dark-mode-active .lpr38-description p,
body[data-theme="dark"] .lpr38-description p,
html.dark body .lpr38-description p {
  color: #e5e7eb !important;
  opacity: 1 !important;
}

/* Neutralize previous prefers-color-scheme fallback for normal light theme */
@media (prefers-color-scheme: dark) {
  body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-header h1,
  body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-header h2,
  body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-tab-panel h3,
  body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-metrics h3 {
    color: #26313d !important;
  }

  body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-description p,
  body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-side-block p,
  body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-side-block h4 {
    color: #26313d !important;
  }

  body:not(.dark):not(.dark-mode):not(.theme-dark):not(.wp-dark-mode-active):not([data-theme="dark"]) .lpr38-kicker {
    color: #6b7280 !important;
  }
}
