/* Open Library red gradient accents — 0828 v1
   Loaded last by OpenlibThemePlugin.php so older solid-red rules cannot win.
   Kept in a uniquely versioned file to avoid stale Cloudflare asset cache. */

:root{
  --ol-grad-red:linear-gradient(90deg,#7F1D1D 0%,#B91C1C 22%,#DC2626 50%,#EF4444 76%,#FB7185 100%);
  --ol-grad-red-soft:linear-gradient(90deg,rgba(127,29,29,.10) 0%,rgba(185,28,28,.52) 20%,rgba(220,38,38,.90) 50%,rgba(239,68,68,.52) 80%,rgba(251,113,133,.08) 100%);
  --ol-grad-red-vertical:linear-gradient(180deg,#7F1D1D 0%,#B91C1C 24%,#DC2626 54%,#EF4444 78%,#FB7185 100%);
}

/* ===== Main portal accent lines ===== */
html body.openlib-site-index .openlib_journal_card:before{
  background:var(--ol-grad-red)!important;
  box-shadow:0 1px 7px rgba(220,38,38,.15)!important;
}

html body.openlib-site-index .openlib_portal_intro__eyebrow:before{
  background:var(--ol-grad-red)!important;
  border-radius:999px!important;
}

/* Search-result left marker: red gradient instead of a flat solid bar. */
html body.openlib-site-page .openlib_search_results .obj_article_summary:before,
html body.openlib-site-index .openlib_search_results .obj_article_summary:before{
  background:var(--ol-grad-red-vertical)!important;
  box-shadow:1px 0 7px rgba(220,38,38,.12)!important;
}

/* Current-issue top marker, when present. */
html body.openlib-journal-page .openlib_current_issue_panel:before{
  background:var(--ol-grad-red)!important;
}

/* ===== Footer: gradient top rail ===== */
html body .pkp_structure_footer_wrapper.openlib_site_footer,
html body .pkp_structure_footer_wrapper.openlib_journal_footer_global,
html body .pkp_structure_footer_wrapper:not(.openlib_site_footer):not(.openlib_journal_footer_global){
  position:relative!important;
  border-top:0!important;
}

html body .pkp_structure_footer_wrapper.openlib_site_footer:before,
html body .pkp_structure_footer_wrapper.openlib_journal_footer_global:before,
html body .pkp_structure_footer_wrapper:not(.openlib_site_footer):not(.openlib_journal_footer_global):before{
  content:""!important;
  position:absolute!important;
  z-index:3!important;
  top:0!important;
  right:0!important;
  left:0!important;
  width:100%!important;
  height:4px!important;
  background:var(--ol-grad-red)!important;
  box-shadow:0 2px 10px rgba(220,38,38,.18)!important;
  pointer-events:none!important;
}

/* Footer internal separator: a thinner red fade, not a hard grey rule. */
html body .openlib_site_footer__bottom{
  position:relative!important;
  border-top:0!important;
}
html body .openlib_site_footer__bottom:before{
  content:""!important;
  position:absolute!important;
  top:0!important;
  right:0!important;
  left:0!important;
  height:1px!important;
  background:var(--ol-grad-red-soft)!important;
  pointer-events:none!important;
}

/* Journal footer brand separator receives the same softer red fade. */
html body .pkp_structure_footer_wrapper .pkp_brand_footer{
  position:relative!important;
  border-top:0!important;
}
html body .pkp_structure_footer_wrapper .pkp_brand_footer:before{
  content:""!important;
  position:absolute!important;
  top:0!important;
  right:0!important;
  left:0!important;
  height:1px!important;
  background:var(--ol-grad-red-soft)!important;
  pointer-events:none!important;
}

/* Section dividers: subtle red fade so the motif is consistent without becoming noisy. */
html body.openlib-site-index .openlib_journal_tools{
  position:relative!important;
  border-bottom:0!important;
}
html body.openlib-site-index .openlib_journal_tools:after{
  content:""!important;
  position:absolute!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  height:1px!important;
  background:linear-gradient(90deg,rgba(220,38,38,.70) 0%,rgba(239,68,68,.24) 36%,rgba(226,232,240,.72) 68%,rgba(226,232,240,0) 100%)!important;
  pointer-events:none!important;
}

html body.openlib-site-page .openlib_search_pagination{
  position:relative!important;
  border-top:0!important;
}
html body.openlib-site-page .openlib_search_pagination:before{
  content:""!important;
  position:absolute!important;
  top:0!important;
  right:0!important;
  left:0!important;
  height:1px!important;
  background:linear-gradient(90deg,rgba(220,38,38,.62) 0%,rgba(239,68,68,.18) 34%,rgba(226,232,240,.72) 68%,rgba(226,232,240,0) 100%)!important;
  pointer-events:none!important;
}

/* Dark-mode tuning: preserve the red gradient but keep dividers understated. */
html[data-openlib-color-mode="dark"] body .openlib_site_footer__bottom:before,
html[data-openlib-color-mode="dark"] body .pkp_structure_footer_wrapper .pkp_brand_footer:before{
  opacity:.72!important;
}
html[data-openlib-color-mode="dark"] body.openlib-site-index .openlib_journal_tools:after,
html[data-openlib-color-mode="dark"] body.openlib-site-page .openlib_search_pagination:before{
  background:linear-gradient(90deg,rgba(239,68,68,.74) 0%,rgba(239,68,68,.22) 36%,rgba(71,85,105,.62) 72%,rgba(71,85,105,0) 100%)!important;
}

@media (max-width:767px){
  html body .pkp_structure_footer_wrapper.openlib_site_footer:before,
  html body .pkp_structure_footer_wrapper.openlib_journal_footer_global:before,
  html body .pkp_structure_footer_wrapper:not(.openlib_site_footer):not(.openlib_journal_footer_global):before{
    height:3px!important;
  }
}
