/* FPPTI Jabar Theme v1.10.5
 * Scoped content polish.
 * - Native About/editorial pages stay clean.
 * - Generic Static Pages (body.pkp_page_pages.pkp_op_view) are normalized.
 * - Login/Register/Search/forms are intentionally untouched.
 * Versioned filename prevents stale browser/CDN cache.
 */

/* Breadcrumbs remain removed across the journal frontend. */
html body.openlib-journal-page .cmp_breadcrumbs {
  display: none !important;
}

/* Only these two content families are polished. */
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page {
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.72 !important;
  color: #334155 !important;
  overflow-wrap: anywhere;
}

/* Native About page main titles. */
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page > h1,
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page .page_title {
  margin: 0 0 12px !important;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(24px, 2vw, 28px) !important;
  line-height: 1.28 !important;
  letter-spacing: -.025em !important;
  color: #0F172A !important;
}

/* Static Pages plugin renders the page title as H2. Make it look like a page title,
 * not like an internal subsection heading. */
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page > h2:first-child {
  margin: 0 0 18px !important;
  padding: 0 !important;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(24px, 2vw, 28px) !important;
  line-height: 1.28 !important;
  letter-spacing: -.025em !important;
  color: #0F172A !important;
}
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page > h2:first-child::before {
  display: none !important;
  content: none !important;
}

/* Internal headings on native About pages. */
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page h2,
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page h3,
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page h4,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page h3,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page h4 {
  position: relative;
  margin: 26px 0 12px !important;
  padding-left: 14px !important;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: #0F172A !important;
  letter-spacing: -.01em !important;
}
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page h2,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page h3 { font-size: 18px !important; line-height: 1.4 !important; }
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page h3,
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page h4,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page h4 { font-size: 15px !important; line-height: 1.45 !important; }
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page h2::before,
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page h3::before,
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page h4::before,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page h3::before,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: .12em;
  bottom: .12em;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #004AAC 0%, #3B82F6 100%);
}

/* Paragraph rhythm. */
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page p,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page p {
  margin: 0 0 14px !important;
  padding: 0 !important;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.72 !important;
  color: #475569 !important;
  text-align: left !important;
  text-indent: 0 !important;
}

/* Static Pages were migrated from Word and contain Mso*/
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page [class*="Mso"],
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page [style*="font-family"],
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page font {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page [style*="font-size"] {
  font-size: inherit !important;
}
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page [style*="line-height"] {
  line-height: inherit !important;
}
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page [style*="text-indent"] {
  text-indent: 0 !important;
}
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page [style*="text-align"] {
  text-align: left !important;
}

/* Rebuild Word-generated fake bullets as consistent theme bullets. */
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page p[class*="MsoListParagraph"] {
  position: relative;
  margin: 0 0 9px !important;
  padding: 0 0 0 22px !important;
  text-indent: 0 !important;
}
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page p[class*="MsoListParagraph"]::before {
  content: "•";
  position: absolute;
  left: 3px;
  top: 0;
  color: #1D6FE8;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 15px;
  line-height: 1.72;
}
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page p[class*="MsoListParagraph"] > span:first-child[style*="Symbol"],
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page p[class*="MsoListParagraph"] > span:first-child[style*="font-family: Symbol"] {
  display: none !important;
}

/* Normal semantic lists too. */
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page ul:not(.user_listing),
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page ol,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page ul,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page ol {
  margin: 12px 0 20px !important;
  padding-left: 25px !important;
}
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page li,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page li {
  margin: 0 0 9px !important;
  padding-left: 4px !important;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #475569 !important;
}
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page li::marker,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page li::marker { color: #1D6FE8; }

/* Emphasis and links. */
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page strong,
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page b,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page strong,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page b {
  color: #1E293B !important;
  font-weight: 700 !important;
}
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page a,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page a {
  color: #004AAC !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 2px;
}
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page a:hover,
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page a:focus,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page a:hover,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page a:focus {
  color: #2563EB !important;
}

/* Editorial history remains intentionally clean. */
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page_masthead > p:first-of-type {
  max-width: 78ch;
  margin-bottom: 22px !important;
  color: #64748B !important;
}
html body.pkp_page_about.openlib-journal-page .page_masthead .user_listing {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  list-style: none !important;
}
html body.pkp_page_about.openlib-journal-page .page_masthead .user_listing > li {
  margin: 0 !important;
  padding: 13px 14px !important;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #F8FAFC;
}
html body.pkp_page_about.openlib-journal-page .page_masthead .user_listing .name {
  display: block;
  color: #0F172A !important;
  font-weight: 700 !important;
}
html body.pkp_page_about.openlib-journal-page .page_masthead .user_listing .affiliation,
html body.pkp_page_about.openlib-journal-page .page_masthead .user_listing .date_start {
  display: block;
  margin-top: 3px;
  color: #64748B !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}

/* Tables in policy/static pages. */
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page table,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page table {
  width: 100% !important;
  margin: 18px 0 22px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px;
  overflow: hidden;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
}
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page th,
html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page td,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page th,
html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page td {
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #E2E8F0 !important;
  text-align: left !important;
  vertical-align: top !important;
}

/* Dark mode, including legacy inline black text on static pages. */
html[data-openlib-color-mode="dark"] body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page,
html[data-openlib-color-mode="dark"] body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page,
html[data-openlib-color-mode="dark"] body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page p,
html[data-openlib-color-mode="dark"] body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page p,
html[data-openlib-color-mode="dark"] body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page li,
html[data-openlib-color-mode="dark"] body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page li,
html[data-openlib-color-mode="dark"] body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page span {
  color: #CBD5E1 !important;
}
html[data-openlib-color-mode="dark"] body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page h1,
html[data-openlib-color-mode="dark"] body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page h2,
html[data-openlib-color-mode="dark"] body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page h3,
html[data-openlib-color-mode="dark"] body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page h4,
html[data-openlib-color-mode="dark"] body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page h2,
html[data-openlib-color-mode="dark"] body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page h3,
html[data-openlib-color-mode="dark"] body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page h4,
html[data-openlib-color-mode="dark"] body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page strong,
html[data-openlib-color-mode="dark"] body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page strong,
html[data-openlib-color-mode="dark"] body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page b {
  color: #F8FAFC !important;
}
html[data-openlib-color-mode="dark"] body.pkp_page_about.openlib-journal-page .page_masthead .user_listing > li {
  border-color: #334155 !important;
  background: #0F172A !important;
}

@media (max-width: 760px) {
  html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page,
  html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page,
  html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page p,
  html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page p,
  html body.pkp_page_about.openlib-journal-page .pkp_structure_main > .page li,
  html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page li {
    font-size: 13.5px !important;
  }
  html body.pkp_page_about.openlib-journal-page .page_masthead .user_listing {
    grid-template-columns: minmax(0, 1fr);
  }
  html body.pkp_page_pages.pkp_op_view .pkp_structure_main > .page p[class*="MsoListParagraph"] {
    padding-left: 20px !important;
  }
}
