/* Academic discovery: the paper list begins with a compact editorial heading,
   not a full-width banner whose content touches both edges. */
body.site-upgrade.resources-v3.academic-index-page .ad-literature {
  margin-top: 10px;
  padding-top: 0;
}

body.site-upgrade.resources-v3.academic-index-page .ad-literature-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 28px;
  min-height: 0;
  margin: 0;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid #dce2ef;
  border-radius: 0;
  box-shadow: none;
}

html[data-theme="light"] body.site-upgrade.resources-v3.academic-index-page .ad-literature-head {
  background: transparent;
}

body.site-upgrade.resources-v3.academic-index-page .ad-literature-head > div:first-child {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

body.site-upgrade.resources-v3.academic-index-page .ad-literature-head h2 {
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.3;
  letter-spacing: -.035em;
}

body.site-upgrade.resources-v3.academic-index-page .ad-literature-head strong {
  font-size: 12px;
  white-space: nowrap;
}

body.site-upgrade.resources-v3.academic-index-page .ad-literature-head strong span {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

body.site-upgrade.resources-v3.academic-index-page .ad-literature-summary {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
}

body.site-upgrade.resources-v3.academic-index-page .ad-literature-summary > span {
  max-width: none;
  overflow: visible;
  font-size: 12px;
  line-height: 1.6;
  text-overflow: clip;
  white-space: normal;
}

body.site-upgrade.resources-v3.academic-index-page .ad-literature-summary button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #c6cfe3;
  border-radius: 9px;
  color: #415797;
  background: #fff;
  font-size: 12px;
  white-space: nowrap;
}

body.site-upgrade.resources-v3.academic-index-page .ad-literature-summary button:is(:hover, :focus-visible) {
  border-color: #5369b0;
  color: #fff;
  background: #5369b0;
}

html[data-theme="dark"] body.site-upgrade.resources-v3.academic-index-page .ad-literature-head {
  border-bottom-color: #4c5367;
  background: transparent;
}

html[data-theme="dark"] body.site-upgrade.resources-v3.academic-index-page .ad-literature-summary button {
  border-color: #68748f;
  color: #e4eaff;
  background: #30384d;
}

@media (max-width: 760px) {
  body.site-upgrade.resources-v3.academic-index-page .ad-literature-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    padding-bottom: 14px;
  }

  body.site-upgrade.resources-v3.academic-index-page .ad-literature-summary {
    justify-content: flex-end;
  }
}
