/* Open Library Publications — article detail cleanup — 2026-09-08 v87
 * Incremental layer for v86 clean baseline.
 * Keep one outer .page_article card; neutralise the duplicated inner
 * .obj_article_details surface produced by the older stable-red layer.
 */

/* One card only: .page_article remains the visual shell. */
html body.openlib-journal-page .page_article > .obj_article_details,
html body.openlib-journal-page .page_article .obj_article_details {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Article title and opening block. */
html body.openlib-journal-page .page_article .obj_article_details > .page_title {
  margin: 0 0 12px !important;
  max-width: 100% !important;
  color: var(--ol43-ink, #111827) !important;
  font-size: clamp(24px, 2.3vw, 32px) !important;
  line-height: 1.22 !important;
  letter-spacing: -0.025em !important;
}
html body.openlib-journal-page .page_article .obj_article_details > .subtitle {
  margin: -4px 0 12px !important;
}
html body.openlib-journal-page .page_article .obj_article_details > .row {
  margin-top: 16px !important;
}

/* Authors: no browser bullets; keep affiliations/ROR readable. */
html body.openlib-journal-page .page_article .obj_article_details ul.authors {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
html body.openlib-journal-page .page_article .obj_article_details ul.authors > li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
html body.openlib-journal-page .page_article .obj_article_details .authors .name {
  display: inline !important;
  font-weight: 700 !important;
}
html body.openlib-journal-page .page_article .obj_article_details .authors .affiliation {
  display: inline !important;
  margin-left: 4px !important;
  color: #64748b !important;
  font-size: 12px !important;
}
html body.openlib-journal-page .page_article .obj_article_details .authors .orcid {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-left: 5px !important;
  vertical-align: middle !important;
}

/* Content rhythm: abstract/references should read as editorial content, not nested cards. */
html body.openlib-journal-page .page_article .obj_article_details .main_entry > .item {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}
html body.openlib-journal-page .page_article .obj_article_details .main_entry > .item > .label {
  margin: 0 0 10px !important;
  color: var(--ol43-ink, #111827) !important;
  font-size: 19px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
}
html body.openlib-journal-page .page_article .obj_article_details .abstract,
html body.openlib-journal-page .page_article .obj_article_details .references {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.openlib-journal-page .page_article .obj_article_details .abstract,
html body.openlib-journal-page .page_article .obj_article_details .abstract p,
html body.openlib-journal-page .page_article .obj_article_details .references .value,
html body.openlib-journal-page .page_article .obj_article_details .references .value p {
  color: #526071 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}
html body.openlib-journal-page .page_article .obj_article_details .references .value p {
  margin: 0 0 12px !important;
}
html body.openlib-journal-page .page_article .obj_article_details .references .value p:last-child {
  margin-bottom: 0 !important;
}

/* Dark mode keeps exactly the same geometry. */
html[data-openlib-color-mode="dark"] body.openlib-journal-page .page_article .obj_article_details {
  background: transparent !important;
  color: #d8dee8 !important;
}
html[data-openlib-color-mode="dark"] body.openlib-journal-page .page_article .obj_article_details > .page_title,
html[data-openlib-color-mode="dark"] body.openlib-journal-page .page_article .obj_article_details .main_entry > .item > .label {
  color: #f5f7fa !important;
}
html[data-openlib-color-mode="dark"] body.openlib-journal-page .page_article .obj_article_details .authors .affiliation,
html[data-openlib-color-mode="dark"] body.openlib-journal-page .page_article .obj_article_details .abstract,
html[data-openlib-color-mode="dark"] body.openlib-journal-page .page_article .obj_article_details .abstract p,
html[data-openlib-color-mode="dark"] body.openlib-journal-page .page_article .obj_article_details .references .value,
html[data-openlib-color-mode="dark"] body.openlib-journal-page .page_article .obj_article_details .references .value p {
  color: #c5ccd7 !important;
}

@media (max-width: 767px) {
  html body.openlib-journal-page .page_article {
    padding: 18px !important;
  }
  html body.openlib-journal-page .page_article .obj_article_details > .page_title {
    font-size: 24px !important;
  }
}
