/* Resource Library pieces shared by the resource page and a project's Outputs
   section. HIRI-authored; palette tokens only, no Labrix rule is modified. */

/* "Also published by" / "Published by" credit under the access buttons. */
.resource-published-by {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.5em;
}

.resource-published-by a {
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
}

.resource-published-by a:hover,
.resource-published-by a:focus {
  text-decoration: underline;
}

.resource-published-by i {
  font-size: 0.8em;
  margin-left: 2px;
}

/* The sidebar CTA box is navy, so the credit there reads in white. */
.sidebar-cta-box .resource-published-by,
.sidebar-cta-box .resource-published-by a {
  color: var(--white-color);
}

/* Related projects sit below the summary in the body column. The summary's
   .case-study-entry already carries a 60px bottom margin, which is the gap. */
.resource-related-projects .section-title {
  margin-bottom: 30px;
}

/* Editions list on the resource page (templates/resources/_resource_editions.html).
   Divs, not a <ul>, so the theme's check-circle list styling inside
   .case-study-entry doesn't apply. */
.case-study-entry > .resource-editions {
  margin-top: 50px;
}

.resource-edition {
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--bg-color);
  border: 1px solid var(--divider-color, rgba(7, 35, 77, 0.12));
}

.resource-edition + .resource-edition {
  margin-top: 16px;
}

.case-study-entry .resource-edition-label {
  margin: 0 0 4px;
  font-family: var(--accent-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

.resource-edition-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-color);
  color: var(--on-accent-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.case-study-entry .resource-edition-status,
.case-study-entry .resource-edition-note {
  margin: 0 0 4px;
  font-size: 15px;
}

.resource-edition .resource-access-row {
  margin-top: 12px;
}
