/* Open Library Publications — Red No Patterns — 2026-08-28 v1
 * Final override to remove diagonal stripe motifs and clean up menu/search areas.
 */

:root{
  --olnp-red-gradient:linear-gradient(105deg,#8d121b 0%,#c61f2a 56%,#e03a45 100%);
  --olnp-red-gradient-deep:linear-gradient(105deg,#831019 0%,#b81c27 54%,#da3642 100%);
}

/* 1) Remove decorative stripe backgrounds from major red UI areas */
html body .openlib_site_header__utility,
html body .openlib_journal_header__utility,
html body .openlib_site_header__utility--unified,
html body .openlib_journal_header__utility--unified,
html body.openlib-site-index .openlib_search_panel--primary,
html body.openlib-site-index.openlib-search-is-fixed .openlib_search_panel--primary,
html body .openlib_search_form,
html body .pkp_structure_footer_wrapper.openlib_site_footer,
html body .pkp_structure_footer_wrapper.openlib_journal_footer_global,
html body.openlib-journal-page .openlib_journal_profile,
html[data-openlib-color-mode="dark"] body .openlib_site_header__utility,
html[data-openlib-color-mode="dark"] body .openlib_journal_header__utility,
html[data-openlib-color-mode="dark"] body .openlib_site_header__utility--unified,
html[data-openlib-color-mode="dark"] body .openlib_journal_header__utility--unified,
html[data-openlib-color-mode="dark"] body.openlib-site-index .openlib_search_panel--primary,
html[data-openlib-color-mode="dark"] body.openlib-site-index.openlib-search-is-fixed .openlib_search_panel--primary,
html[data-openlib-color-mode="dark"] body .openlib_search_form,
html[data-openlib-color-mode="dark"] body .pkp_structure_footer_wrapper.openlib_site_footer,
html[data-openlib-color-mode="dark"] body .pkp_structure_footer_wrapper.openlib_journal_footer_global,
html[data-openlib-color-mode="dark"] body.openlib-journal-page .openlib_journal_profile{
  background-image:none!important;
}

html body .openlib_site_header__utility,
html body .openlib_journal_header__utility,
html body .openlib_site_header__utility--unified,
html body .openlib_journal_header__utility--unified,
html[data-openlib-color-mode="dark"] body .openlib_site_header__utility,
html[data-openlib-color-mode="dark"] body .openlib_journal_header__utility,
html[data-openlib-color-mode="dark"] body .openlib_site_header__utility--unified,
html[data-openlib-color-mode="dark"] body .openlib_journal_header__utility--unified{
  background:var(--olnp-red-gradient)!important;
}

html body.openlib-site-index .openlib_search_panel--primary,
html body.openlib-site-index.openlib-search-is-fixed .openlib_search_panel--primary,
html body .openlib_search_form,
html[data-openlib-color-mode="dark"] body.openlib-site-index .openlib_search_panel--primary,
html[data-openlib-color-mode="dark"] body.openlib-site-index.openlib-search-is-fixed .openlib_search_panel--primary,
html[data-openlib-color-mode="dark"] body .openlib_search_form{
  background:var(--olnp-red-gradient-deep)!important;
}

html body .pkp_structure_footer_wrapper.openlib_site_footer,
html body .pkp_structure_footer_wrapper.openlib_journal_footer_global,
html[data-openlib-color-mode="dark"] body .pkp_structure_footer_wrapper.openlib_site_footer,
html[data-openlib-color-mode="dark"] body .pkp_structure_footer_wrapper.openlib_journal_footer_global{
  background:var(--olnp-red-gradient-deep)!important;
}

html body.openlib-journal-page .openlib_journal_profile,
html[data-openlib-color-mode="dark"] body.openlib-journal-page .openlib_journal_profile{
  background:var(--olnp-red-gradient)!important;
}

/* kill pseudo overlays that create extra pattern/rails */
html body.openlib-site-index .openlib_search_panel--primary:before,
html body.openlib-site-index .openlib_search_panel--primary:after,
html body .openlib_search_form:before,
html body .openlib_search_form:after,
html body .pkp_structure_footer_wrapper.openlib_site_footer:before,
html body .pkp_structure_footer_wrapper.openlib_site_footer:after,
html body .pkp_structure_footer_wrapper.openlib_journal_footer_global:before,
html body .pkp_structure_footer_wrapper.openlib_journal_footer_global:after,
html body.openlib-journal-page .openlib_journal_profile:before,
html body.openlib-journal-page .openlib_journal_profile:after{
  display:none!important;
  content:none!important;
  background:none!important;
}

/* 2) Search page advanced area: cleaner, no striped panel */
html body .openlib_search_advanced{
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.20)!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
html body .openlib_search_advanced summary{
  color:#fff!important;
}
html body .openlib_search_advanced[open]{
  background:#fff!important;
  border-color:#f0d7da!important;
  color:#334155!important;
}
html body .openlib_search_advanced[open] summary{
  color:#a51b25!important;
  border-bottom:1px solid #f0d7da!important;
}
html body .openlib_search_advanced__field label,
html body .openlib_search_advanced__dates legend{
  color:#475569!important;
}

/* 3) Remove diagonal stripe feeling from action areas / menus if inherited */
html body .openlib_journal_actions,
html body .openlib_journal_footer,
html body .openlib_journal_tools,
html body .openlib_search_results_header{
  background-image:none!important;
}

/* 4) Keep the publication action bar white/clean, not pink */
html body.openlib-site-index .openlib_journal_footer{
  background:#fff!important;
}
html body.openlib-site-index .openlib_journal_actions a,
html body.openlib-site-index .openlib_journal_actions .home a,
html body.openlib-site-index .openlib_journal_actions .current a{
  background:#fff!important;
  border-color:#e8b2b8!important;
}

/* 5) Search page inner fields stay clean white */
html body .openlib_search_form__primary input,
html body .openlib_search_form__primary select,
html body .openlib_search_form__submit,
html body.openlib-site-index .openlib_discovery__query input[type="search"],
html body.openlib-site-index .openlib_discovery__form select,
html body.openlib-site-index .openlib_discovery__form button,
html body.openlib-site-index .openlib_journal_filter input{
  background-image:none!important;
}
