/*

The below will add newsroom styles to the DXP components for sites and pages which do not have newsroom styles (usually outside of the newsroom site).
This is a temp for so that editors can use newsroon DXP on existing sites/pages.
Future: newsroom styles should be included in the global.css for graphite or code will need injest the correct css style when using the DXP component.


Date: 30 Nov 2026

*/

.newsroom-feature-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 2.5rem;
}

.newsroom-feature-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (width < 60em) {
  .newsroom-feature-cards { padding-block: 1.5rem; }
  .newsroom-feature-cards__grid { grid-template-columns: 1fr; }
}

.newsroom-feature-cards .card {
  border-color: rgb(229, 229, 229);
  border-radius: 0;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.newsroom-feature-cards .card:not(.card--double) {
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease-in-out;
  box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px, rgba(0, 0, 0, 0.24) 0 1px 2px;
}

.newsroom-feature-cards .card:not(.card--double) > .card__link { flex: 1 1 0%; }

.newsroom-feature-cards .card:not(.card--double):hover,
.newsroom-feature-cards .card:not(.card--double):focus-within {
  box-shadow: rgba(0, 0, 0, 0.19) 0 6px 6px, rgba(0, 0, 0, 0.23) 0 6px 6px;
}

.newsroom-feature-cards .card__link {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  color: inherit;
  text-decoration: none;
}

.newsroom-feature-cards .card__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
  padding: 0 2.5rem;
}

.newsroom-feature-cards .card__heading { color: rgb(0, 0, 0); }
.newsroom-feature-cards .card:not(.card--double) .card__heading { color: rgb(51, 51, 51); }
.newsroom-feature-cards .card:not(.card--double) .card__body { flex: 1 1 0%; }

.newsroom-feature-cards .card:not(.card--double) .card__date {
  color: rgb(116, 116, 116);
  margin-block: auto 0;
  font-size: 0.875rem;
}

.newsroom-feature-cards .card__image-wrapper { position: relative; overflow: hidden; }

.newsroom-feature-cards .card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.newsroom-feature-cards .card__category { overflow-wrap: anywhere; }

.newsroom-feature-cards .card__image-wrapper .card__category {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5rem;
  max-width: 100%;
  min-height: 1.5rem;
  padding: 0.5rem;
  color: rgb(80, 80, 80);
  text-align: center;
  text-transform: uppercase;
  background: rgb(230, 230, 230);
  border-radius: 0;
  font: 700 0.625rem / 1.2 "Roboto Condensed", "Arial Narrow", sans-serif;
}

.newsroom-feature-cards__cta { text-align: center; }

.newsroom-feature-cards .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}