/* GJ-014H — Research Library contrast guard.
   The global non-home section rule has intentionally high specificity, so the
   Library hero must override that rule explicitly rather than relying on load order. */

body:not(.home):not(.offer) main section.library-hero,
body:not(.home):not(.offer) main section.library-entry-hero {
  color: #ffffff;
  background-color: #041226 !important;
  background-image:
    radial-gradient(circle at 83% 12%, rgba(215, 173, 79, .22), transparent 24rem),
    linear-gradient(145deg, #041226, #0a2b50) !important;
  background-size: auto !important;
}

.library-hero h1,
.library-entry-hero h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .18);
}

.library-hero .lede,
.library-entry-hero .lede {
  color: rgba(255, 255, 255, .84) !important;
}

.library-hero .eyebrow,
.library-entry-hero .eyebrow,
.library-standard strong,
.library-entry-meta dt {
  color: #e0bc60 !important;
}

.library-standard,
.library-entry-meta {
  border-color: rgba(224, 188, 96, .48);
  color: #ffffff;
  background-color: rgba(4, 18, 38, .38);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .12);
}

.library-standard p,
.library-entry-meta dd {
  color: rgba(255, 255, 255, .82) !important;
}

@media (forced-colors: active) {
  body:not(.home):not(.offer) main section.library-hero,
  body:not(.home):not(.offer) main section.library-entry-hero {
    color: CanvasText;
    background: Canvas !important;
  }

  .library-hero h1,
  .library-entry-hero h1,
  .library-hero .lede,
  .library-entry-hero .lede,
  .library-hero .eyebrow,
  .library-entry-hero .eyebrow,
  .library-standard strong,
  .library-standard p,
  .library-entry-meta dt,
  .library-entry-meta dd {
    color: CanvasText !important;
  }
}
