/* Research covers: photographic editorial imagery and accessible title overlays. */
.work-library .publication-preview.arms,
.work-library .publication-preview.election,
.work-library .publication-preview.graduate.fentanyl,
.work-library .publication-preview.graduate.ahp,
.work-library .publication-preview.graduate.method {
  isolation: isolate;
  background-color: var(--ink);
  color: #fff;
}
.work-library .publication-preview.election { background-color: #36566a; }
.work-library .publication-preview.graduate.ahp { background-color: #4b6875; }
.work-library .publication-preview.arms::before,
.work-library .publication-preview.election::before,
.work-library .publication-preview.graduate.fentanyl::before,
.work-library .publication-preview.graduate.ahp::before,
.work-library .publication-preview.graduate.method::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
  pointer-events: none;
}
.work-library .publication-preview.arms::before {
  background-image: url("/assets/carousel/arms-editorial.webp");
  background-position: 70% center;
}
.work-library .publication-preview.election::before {
  background-position: 50% center;
}
.work-library .publication-preview.graduate.fentanyl::before {
  background-image: url("/assets/carousel/fentanyl-editorial.webp");
  background-position: 71% center;
}
.work-library .publication-preview.graduate.ahp::before {
  background-image: url("/assets/carousel/immigration-editorial.webp");
  background-position: 74% center;
}
/* Tonal overlay preserves the original square's character and legibility. */
.work-library .publication-preview.arms::after,
.work-library .publication-preview.election::after,
.work-library .publication-preview.graduate.fentanyl::after,
.work-library .publication-preview.graduate.ahp::after,
.work-library .publication-preview.graduate.method::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  transform: none;
  background: linear-gradient(180deg, rgba(16,40,58,.46) 0%, rgba(16,40,58,.23) 38%, rgba(16,40,58,.64) 100%);
  pointer-events: none;
}
.work-library .publication-preview.election::after { background: linear-gradient(180deg, rgba(31,57,75,.43),rgba(31,57,75,.22) 45%,rgba(31,57,75,.73)); }
.work-library .publication-preview.graduate.fentanyl::after { background: linear-gradient(180deg, rgba(12,29,41,.48),rgba(12,29,41,.18) 47%,rgba(12,29,41,.72)); }
.work-library .publication-preview.graduate.ahp::after { background: linear-gradient(180deg, rgba(39,67,77,.48),rgba(39,67,77,.18) 42%,rgba(39,67,77,.75)); }
.work-library .publication-preview.arms .route-line,
.work-library .publication-preview.election .cover-block {
  display: none;
}
.work-library .publication-preview span,
.work-library .publication-preview strong,
.work-library .publication-preview small {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 7px rgba(7,20,28,.26);
}

/* User-selected farmworker image, extracted from the supplied card screenshot.
   The HTML supplies the labels; no duplicated lettering is baked into the photo. */
.work-library .publication-preview.graduate.ahp {
  background-color: #466573;
}
.work-library .publication-preview.graduate.ahp::before {
  background-image: url("/assets/research/immigration-selected-photo.webp");
  background-size: cover;
  background-position: 76% 50%;
  /* Keep the approved foreground-worker photograph near its native scale.
     The source is 770 × 361; stronger zoom would expose its baked-in softness. */
  filter: saturate(1.025) contrast(1.065) brightness(1.025);
}
.work-library .publication-preview.graduate.ahp::after {
  background: linear-gradient(180deg, rgba(30,51,63,.25), rgba(30,51,63,.07) 42%, rgba(30,51,63,.70) 100%);
}
/* University governance / executive-succession image: CGU Board of Trustees Room,
   public domain, https://commons.wikimedia.org/wiki/File:Board_of_Trustees_Room.JPG */
.work-library .publication-preview.graduate.method {
  background-color: #4f6572;
  color: #fff;
}
.work-library .publication-preview.graduate.method::before {
  background-image: url("https://thumb.wikimedia.org/wikipedia/commons/thumb/8/89/Board_of_Trustees_Room.JPG/960px-Board_of_Trustees_Room.JPG");
  background-position: 54% 49%;
  filter: grayscale(.25) saturate(.64);
}
.work-library .publication-preview.graduate.method::after {
  background: linear-gradient(180deg, rgba(17,39,53,.55),rgba(17,39,53,.15) 40%,rgba(17,39,53,.81) 100%);
}


/* 2026-10-26 | The two candidates have equal, unobstructed face space.
   All lettering sits on a dedicated lower title band, never across a face. */
.work-library .publication-preview.election {
  justify-content: flex-end;
  align-items: flex-start;
  gap: clamp(4px, .6vw, 9px);
}
.work-library .publication-preview.election::before {
  background-position: 50% 42%;
}
.work-library .publication-preview.election::after {
  background: linear-gradient(180deg,
    rgba(23,43,56,.04) 0%,
    rgba(23,43,56,.06) 48%,
    rgba(23,43,56,.76) 70%,
    rgba(15,31,43,.96) 100%);
}
.work-library .publication-preview.election span {
  margin-top: auto;
}
.work-library .publication-preview.election strong {
  font-size: clamp(18px, 1.75vw, 30px);
  line-height: .91;
}
.work-library .publication-preview.election small {
  line-height: 1.35;
}
/* The original pills image has a shallow focus plane. Give the nearer pills
   crisper tonal definition while avoiding overscaling the source asset. */
.work-library .publication-preview.graduate.fentanyl::before {
  background-position: 75% 61%;
  filter: contrast(1.13) brightness(1.035);
}

/* Staging: tighter, deliberate photograph crop around the foreground tablets. */
.work-library .publication-preview.graduate.fentanyl::before {
  background-size: auto 110%;
  background-position: 100% 58%;
  filter: contrast(1.12) brightness(1.035);
}

/* 2026-10-26 staging editorial revision:
   Full-bleed face-off stays behind the title, as in the homepage carousel.
   Faces retain equal image area; lettering is confined below both faces. */
.work-library .publication-preview.election {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  overflow: hidden;
  padding: clamp(16px, 2vw, 28px);
  background: #243f51;
}
.work-library .publication-preview.election::before {
  inset: 0;
  background-size: cover;
  background-position: 50% 33%;
  filter: grayscale(.16) saturate(.78) contrast(1.02);
  opacity: .96;
}
.work-library .publication-preview.election::after {
  /* A soft tonal scrim beneath both portraits, not an opaque title box. */
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(12,29,42,.11) 0%,
    rgba(12,29,42,.04) 36%,
    rgba(12,29,42,.18) 49%,
    rgba(12,29,42,.73) 70%,
    rgba(12,29,42,.93) 100%);
}
.work-library .publication-preview.election span,
.work-library .publication-preview.election strong,
.work-library .publication-preview.election small {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 100%;
  color: #fff;
}
.work-library .publication-preview.election span {
  margin-top: auto;
}
.work-library .publication-preview.election strong {
  font-size: clamp(19px, 1.88vw, 31px);
  line-height: .94;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.work-library .publication-preview.election small {
  line-height: 1.4;
  letter-spacing: .065em;
}
@media (max-width: 620px) {
  .work-library .publication-preview.election::before {
    background-position: center 34%;
  }
  .work-library .publication-preview.election strong {
    font-size: clamp(20px, 6vw, 31px);
  }
}


/* Mirror the newly approved taller face-off on the Research card,
   with both candidates equally framed and the original lower text band intact. */
.work-library .publication-preview.election::before {
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("/assets/carousel/election-editorial-tall-faceoff.svg?v=20261026-hires-faceoff17");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  filter: grayscale(.12) saturate(.78) contrast(1.05);
  opacity: .97;
}
.work-library .publication-preview.election .cover-block { display: none; }
.work-library .publication-preview.election::after {
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(17,35,48,.10) 0%,
    rgba(17,35,48,.09) 38%,
    rgba(17,35,48,.57) 65%,
    rgba(13,30,44,.95) 100%);
}
