/* Tamis EDC cards: base presentation and integrated-image layout. */
/* Public catalogue skin for upstream edc-web-components 0.7.1 DatasetCard.
 * No generated Stylist class selectors. The structural
 * selectors below depend on that locked version; review after library upgrades.
 * Only the presentation-only layout wrappers are flattened with display:contents.
 * All card content and behavior belongs to DatasetCard: native title, images,
 * creator logo, description, full tag list and actions. CSS changes presentation only.
 */
.edc-offer:not(.card-native) {
  --card-border: var(--tamis-line);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--tamis-surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pf-v6-theme-dark .edc-offer:not(.card-native) {
  --card-border: var(--tamis-line);
}
.edc-offer:not(.card-native):focus-within {
  box-shadow: 0 6px 20px #e116b414;
}
@media (hover: hover) and (pointer: fine) {
  .edc-offer:not(.card-native):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px #e116b41a;
  }
}
.edc-offer:not(.card-native) > .pf-v6-c-card {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 24px 0;
  background: transparent;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}
.edc-offer:not(.card-native) .pf-v6-c-card::before,
.edc-offer:not(.card-native) .pf-v6-c-card::after { display: none; }
.edc-offer:not(.card-native) .pf-v6-c-card__header {
  order: 10;
  padding: 0 0 16px;
  align-items: start;
}
.edc-offer:not(.card-native) .pf-v6-c-card__header-main { min-width: 0; width: 100%; }
.edc-offer:not(.card-native) .pf-v6-c-card__header-main > div { display: flex; flex-direction: column; gap: 16px; }
.edc-offer:not(.card-native) .pf-v6-c-card__header-main > div > div:first-child {
  /* Native logo row; reserve the version's space even when no logo exists. */
  order: 0;
  display: flex;
  align-items: center;
  font-size: 12px;
  height: max(28px, 2.5em);
  width: max(0px, calc(100% - 7em - 12px));
}
.edc-offer:not(.card-native) .pf-v6-c-card__header img {
  width: 100%; max-width: 88px; height: 28px; object-fit: contain;
  object-position: left center;
}
.edc-offer:not(.card-native) .pf-v6-c-card__header .pf-v6-c-truncate {
  order: 1;
  min-height: 2.7em;
  font-size: 22px; font-weight: 600; line-height: 1.35;
  letter-spacing: -.02em; color: var(--tamis-text);
  font-family: var(--pf-t--global--font--family--heading);
}
.edc-offer:not(.card-native) > .pf-v6-c-card > img {
  order: 20;
  display: block;
  width: 100%; height: 112px;
  object-fit: contain;
  padding: 8px 20px; margin: 0 0 20px;
  background: #fff; border: 0; border-radius: 0;
}
/* Reserve the thumbnail slot to keep descriptions aligned across cards. */
.edc-offer:not(.card-native) > .pf-v6-c-card:not(:has(> img))::before {
  content: "";
  display: block;
  order: 20;
  height: 112px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
/* PublicImage is still used on detail pages, outside native offering cards. */
.edc-offer-image {
  margin: 0 24px 16px; height: 168px; padding: 12px; overflow: hidden;
  border: 1px solid #e7e8f0; border-radius: 10px; background: #fff;
}
.edc-offer-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.edc-offer:not(.card-native) .pf-v6-c-truncate,
.edc-offer:not(.card-native) .pf-v6-c-truncate__start {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  max-width: none;
}
/* Select the native version wrapper without depending on generated classes. */
.edc-offer:not(.card-native) > .pf-v6-c-card > div:has(> .pf-v6-c-badge) {
  position: absolute; top: 24px; right: 24px;
  display: flex; align-items: center;
  font-size: 12px; min-height: max(28px, 2.5em);
  max-width: 7em; margin: 0;
}
.edc-offer:not(.card-native) .pf-v6-c-badge {
  display: block;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  background: transparent;
  padding: 2px 0;
  min-width: 0;
  border-radius: 5px;
  color: var(--tamis-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}
.edc-offer:not(.card-native) .pf-v6-c-card__body,
.edc-offer:not(.card-native) .pf-v6-c-card__body > .pf-v6-l-stack,
.edc-offer:not(.card-native) .pf-v6-c-card__body > .pf-v6-l-stack > .pf-v6-l-stack__item {
  display: contents;
}
.edc-offer:not(.card-native) .pf-v6-c-card__body .pf-v6-l-stack__item.pf-m-fill > div {
  order: 30;
  flex: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em;
  max-height: 4.8em;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--tamis-muted);
  overflow-wrap: anywhere;
}
.edc-offer:not(.card-native) .pf-v6-c-card__footer {
  order: 40;
  min-height: 0;
  padding: 12px 0 0;
  margin-top: 0;
}
.edc-offer:not(.card-native) .pf-v6-c-card__footer .pf-v6-l-split {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
}
.edc-offer:not(.card-native) .pf-v6-c-card__footer .pf-v6-l-split__item { margin: 0; min-width: 0; }
.edc-offer:not(.card-native) .pf-v6-c-label {
  max-width: 100%;
  padding: 3px 9px;
  background: #f5f5fa;
  color: var(--tamis-muted);
  box-shadow: none;
  border: 0;
  border-radius: 5px;
  font-size: 11px;
}
.pf-v6-theme-dark .edc-offer:not(.card-native) .pf-v6-c-label { background: var(--tamis-soft); }
.edc-offer:not(.card-native) .pf-v6-c-label::before,
.edc-offer:not(.card-native) .pf-v6-c-label::after { border: 0; box-shadow: none; }
.edc-offer:not(.card-native) .pf-v6-c-label__content { color: inherit; }
.edc-offer:not(.card-native) .pf-v6-c-card__body .pf-v6-l-split {
  order: 50;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-top: 0;
  padding: 20px 0 8px;
  margin: auto 0 0;
}
.edc-offer:not(.card-native) .pf-v6-c-card__body .pf-v6-l-split__item { margin: 0; min-width: 0; }
.edc-offer:not(.card-native) .pf-v6-c-card__body .pf-v6-l-split__item.pf-m-fill { flex: 0 0 auto; }
.edc-offer:not(.card-native) .pf-v6-c-card__body .pf-v6-l-split__item:last-child { flex: 1 1 9em; }
/* Native Preview remains a button; distinguish it without adding markup. */
.edc-offer:not(.card-native) .pf-v6-c-button.pf-m-link {
  text-decoration: none;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--tamis-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.edc-offer:not(.card-native) .pf-v6-c-button.pf-m-link::after { border: 0; }
.edc-offer:not(.card-native) .pf-v6-c-button.pf-m-link:hover {
  background: #fbe1f4;
  border-color: transparent;
  color: #681454;
  text-decoration: none;
}
.edc-offer:not(.card-native) .pf-v6-c-card__body .pf-v6-l-split__item:empty { display: none; }
.edc-offer:not(.card-native) .pf-v6-c-button.pf-m-primary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--tamis-link);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}
.edc-offer:not(.card-native) .pf-v6-c-button.pf-m-primary::after { border: 0; }
.edc-offer:not(.card-native) .pf-v6-c-button__icon { order: 1; margin: 0; }
.edc-offer:not(.card-native) .pf-v6-c-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.edc-offer:not(.card-native) .pf-v6-c-button:focus-visible { outline: 3px solid #737bb8; outline-offset: 1px; border-radius: 4px; }
@media (max-width:650px) {
  .edc-offer-image { margin-inline: 20px; }
  .edc-offer:not(.card-native) > .pf-v6-c-card { padding-inline: 20px; }
  .edc-offer:not(.card-native) > .pf-v6-c-card > div:has(> .pf-v6-c-badge) { right: 20px; }
  .edc-offer:not(.card-native) .pf-v6-c-card__body .pf-v6-l-stack__item.pf-m-fill > div:empty { display: none; }
}
@media (prefers-reduced-motion:reduce) {
  .edc-offer:not(.card-native) { transition: none; }
  .edc-offer:not(.card-native):hover { transform: none; }
}
/* PatternFly sets icon color separately from the button text. */
.edc-offer:not(.card-native) .pf-v6-c-button__icon { color: var(--tamis-link); }

/* Reference card design: integrated image and subtly rounded corners.
 * Loaded after edc-cards.css; native EDC markup remains unchanged. */
.edc-offer:not(.card-native) { border-radius: 8px; width: 100%; max-width: 360px; margin-inline: auto; }
.edc-offer:not(.card-native) > .pf-v6-c-card {
  --card-inset: 18px;
  padding: 0 var(--card-inset);
}
.edc-offer:not(.card-native) > .pf-v6-c-card > img,
.edc-offer:not(.card-native) > .pf-v6-c-card:not(:has(> img))::before {
  order: 0;
  width: calc(100% + 2 * var(--card-inset));
  max-width: none;
  height: 150px;
  margin: 0 calc(-1 * var(--card-inset)) 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--tamis-bg);
  object-fit: cover;
  flex-shrink: 0;
}
.edc-offer:not(.card-native) > .pf-v6-c-card > div:has(> .pf-v6-c-badge) {
  top: 164px;
  right: var(--card-inset);
}
@media (max-width:650px) {
  .edc-offer:not(.card-native) > .pf-v6-c-card { --card-inset: 16px; }
}

/* The image follows the outer corners. */
.edc-offer:not(.card-native) > .pf-v6-c-card > img,
.edc-offer:not(.card-native) > .pf-v6-c-card:not(:has(> img))::before {
  border-radius: 7px 7px 0 0;
}

/* Compact rhythm, preserving three description lines and full tag content. */
.edc-offer:not(.card-native) .pf-v6-c-card__header { padding-bottom: 12px; }
.edc-offer:not(.card-native) .pf-v6-c-card__header-main > div { gap: 10px; }
.edc-offer:not(.card-native) .pf-v6-c-card__header .pf-v6-c-truncate { font-size: 20px; }
.edc-offer:not(.card-native) .pf-v6-c-card__footer { padding-top: 8px; }
.edc-offer:not(.card-native) .pf-v6-c-card__body .pf-v6-l-split { padding: 10px 0 4px; }

/* Alternative presentation only. Loaded after the current Tamis styles. */
.edc-offer.card-image-square { border-radius: 0; width: 100%; max-width: 360px; margin-inline: auto; }
.edc-offer.card-image-square > .pf-v6-c-card {
  --card-inset: 24px;
  padding: 0 var(--card-inset);
}
.edc-offer.card-image-square > .pf-v6-c-card > img,
.edc-offer.card-image-square > .pf-v6-c-card:not(:has(> img))::before {
  order: 0;
  width: calc(100% + 2 * var(--card-inset));
  max-width: none;
  height: 180px;
  margin: 0 calc(-1 * var(--card-inset)) 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--tamis-bg);
  object-fit: cover;
  flex-shrink: 0;
}
.edc-offer.card-image-square > .pf-v6-c-card > div:has(> .pf-v6-c-badge) {
  top: 200px;
  right: var(--card-inset);
}
@media (max-width:650px) {
  .edc-offer.card-image-square > .pf-v6-c-card { --card-inset: 20px; }
}

/* Comparison only: the real text is supplied by the local card wrapper. */
.edc-offer.card-image-rounded-name .pf-v6-c-card__header img { display: none; }
.edc-offer.card-image-rounded-name .comparison-provider-name {
  position: absolute;
  z-index: 1;
  top: var(--comparison-provider-name-top, 164px);
  left: 18px;
  width: calc(100% - 132px);
  min-height: 30px;
  display: flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--tamis-muted);
  overflow-wrap: anywhere;
}
@media (max-width:650px) {
  .edc-offer.card-image-rounded-name .comparison-provider-name { left: 16px; width: calc(100% - 128px); }
}

/* Comparison only; loaded after the integrated reference card styles. */
.edc-offer.card-image-below-title-top-blue {
  --comparison-provider-name-top: 24px;
  border-top: 5px solid var(--tamis-navy);
}
.edc-offer.card-image-below-title-top-blue > .pf-v6-c-card {
  padding-top: 24px;
}
.edc-offer.card-image-below-title-top-blue > .pf-v6-c-card > img,
.edc-offer.card-image-below-title-top-blue > .pf-v6-c-card:not(:has(> img))::before {
  order: 20;
  border-radius: 0;
}
.edc-offer.card-image-below-title-top-blue > .pf-v6-c-card > div:has(> .pf-v6-c-badge) {
  top: 24px;
}

.edc-offer.card-image-below-title-top-blue { border-top:3px solid var(--tamis-navy); }

/* Comparison only; loaded after the integrated reference card styles. */
.edc-offer.card-image-below-title-top-blue-name {
  --comparison-provider-name-top: 24px;
  border-top: 5px solid var(--tamis-navy);
}
.edc-offer.card-image-below-title-top-blue-name > .pf-v6-c-card {
  padding-top: 24px;
}
.edc-offer.card-image-below-title-top-blue-name > .pf-v6-c-card > img,
.edc-offer.card-image-below-title-top-blue-name > .pf-v6-c-card:not(:has(> img))::before {
  order: 20;
  border-radius: 0;
}
.edc-offer.card-image-below-title-top-blue-name > .pf-v6-c-card > div:has(> .pf-v6-c-badge) {
  top: 24px;
}

/* Comparison only: the real text is supplied by the local card wrapper. */
.edc-offer.card-image-below-title-top-blue-name .pf-v6-c-card__header img { display: none; }
.edc-offer.card-image-below-title-top-blue-name .comparison-provider-name {
  position: absolute;
  z-index: 1;
  top: var(--comparison-provider-name-top, 164px);
  left: 18px;
  width: calc(100% - 132px);
  min-height: 30px;
  display: flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--tamis-muted);
  overflow-wrap: anywhere;
}
@media (max-width:650px) {
  .edc-offer.card-image-below-title-top-blue-name .comparison-provider-name { left: 16px; width: calc(100% - 128px); }
}

.edc-offer.card-image-below-title-top-blue-name { border-top:3px solid var(--tamis-navy); }

.edc-offer.card-image-rounded-bottom-blue { border-bottom:3px solid var(--tamis-navy); }

/* Comparison only; loaded after the integrated reference card styles. */
.edc-offer.card-image-below-title-top-magenta {
  --comparison-provider-name-top: 24px;
  border-top: 5px solid var(--tamis-navy);
}
.edc-offer.card-image-below-title-top-magenta > .pf-v6-c-card {
  padding-top: 24px;
}
.edc-offer.card-image-below-title-top-magenta > .pf-v6-c-card > img,
.edc-offer.card-image-below-title-top-magenta > .pf-v6-c-card:not(:has(> img))::before {
  order: 20;
  border-radius: 0;
}
.edc-offer.card-image-below-title-top-magenta > .pf-v6-c-card > div:has(> .pf-v6-c-badge) {
  top: 24px;
}

.edc-offer.card-image-below-title-top-magenta { border-top:3px solid var(--tamis-magenta); }

/* Comparison only; loaded after the integrated reference card styles. */
.edc-offer.card-image-below-title-top-magenta-name {
  --comparison-provider-name-top: 24px;
  border-top: 5px solid var(--tamis-navy);
}
.edc-offer.card-image-below-title-top-magenta-name > .pf-v6-c-card {
  padding-top: 24px;
}
.edc-offer.card-image-below-title-top-magenta-name > .pf-v6-c-card > img,
.edc-offer.card-image-below-title-top-magenta-name > .pf-v6-c-card:not(:has(> img))::before {
  order: 20;
  border-radius: 0;
}
.edc-offer.card-image-below-title-top-magenta-name > .pf-v6-c-card > div:has(> .pf-v6-c-badge) {
  top: 24px;
}

/* Comparison only: the real text is supplied by the local card wrapper. */
.edc-offer.card-image-below-title-top-magenta-name .pf-v6-c-card__header img { display: none; }
.edc-offer.card-image-below-title-top-magenta-name .comparison-provider-name {
  position: absolute;
  z-index: 1;
  top: var(--comparison-provider-name-top, 164px);
  left: 18px;
  width: calc(100% - 132px);
  min-height: 30px;
  display: flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--tamis-muted);
  overflow-wrap: anywhere;
}
@media (max-width:650px) {
  .edc-offer.card-image-below-title-top-magenta-name .comparison-provider-name { left: 16px; width: calc(100% - 128px); }
}

.edc-offer.card-image-below-title-top-magenta-name { border-top:3px solid var(--tamis-magenta); }

.edc-offer.card-image-rounded-bottom-magenta { border-bottom:3px solid var(--tamis-magenta); }

/* Comparison only; loaded after the integrated reference card styles. */
.edc-offer.card-text-top-blue {
  --comparison-provider-name-top: 24px;
  border-top: 5px solid var(--tamis-navy);
}
.edc-offer.card-text-top-blue > .pf-v6-c-card {
  padding-top: 24px;
}
.edc-offer.card-text-top-blue > .pf-v6-c-card > img,
.edc-offer.card-text-top-blue > .pf-v6-c-card:not(:has(> img))::before {
  order: 20;
  border-radius: 0;
}
.edc-offer.card-text-top-blue > .pf-v6-c-card > div:has(> .pf-v6-c-badge) {
  top: 24px;
}

/* Comparison only: the real text is supplied by the local card wrapper. */
.edc-offer.card-text-top-blue .pf-v6-c-card__header img { display: none; }
.edc-offer.card-text-top-blue .comparison-provider-name {
  position: absolute;
  z-index: 1;
  top: var(--comparison-provider-name-top, 164px);
  left: 18px;
  width: calc(100% - 132px);
  min-height: 30px;
  display: flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--tamis-muted);
  overflow-wrap: anywhere;
}
@media (max-width:650px) {
  .edc-offer.card-text-top-blue .comparison-provider-name { left: 16px; width: calc(100% - 128px); }
}

/* Shareable comparison: remove the illustration and its reserved space. */
.edc-offer.card-text-top-blue > .pf-v6-c-card > img,
.edc-offer.card-text-top-blue > .pf-v6-c-card:not(:has(> img))::before {
  display: none;
}

/* Tighter text layout, without reserving empty title/description lines. */
.edc-offer.card-text-top-blue { --comparison-provider-name-top: 16px; }
.edc-offer.card-text-top-blue > .pf-v6-c-card { padding-top: 16px; }
.edc-offer.card-text-top-blue > .pf-v6-c-card > div:has(> .pf-v6-c-badge) { top: 16px; }
.edc-offer.card-text-top-blue .pf-v6-c-card__header-main > div { gap: 6px; }
.edc-offer.card-text-top-blue .pf-v6-c-card__header { padding-bottom: 10px; }
.edc-offer.card-text-top-blue .pf-v6-c-card__header .pf-v6-c-truncate {
  min-height: 0;
  font-size: 19px;
}
.edc-offer.card-text-top-blue .pf-v6-c-card__body .pf-v6-l-stack__item.pf-m-fill > div {
  min-height: 0;
}
.edc-offer.card-text-top-blue .pf-v6-c-card__body .pf-v6-l-split {
  border-top: 1px solid var(--tamis-line);
  margin: 12px 0 0;
  padding: 6px 0;
}
.edc-offer.card-text-top-blue .pf-v6-c-button.pf-m-primary { min-height: 44px; }

.edc-offer.card-text-top-blue { border-top:3px solid var(--tamis-navy); }

/* Comparison only; loaded after the integrated reference card styles. */
.edc-offer.card-text-top-magenta {
  --comparison-provider-name-top: 24px;
  border-top: 5px solid var(--tamis-navy);
}
.edc-offer.card-text-top-magenta > .pf-v6-c-card {
  padding-top: 24px;
}
.edc-offer.card-text-top-magenta > .pf-v6-c-card > img,
.edc-offer.card-text-top-magenta > .pf-v6-c-card:not(:has(> img))::before {
  order: 20;
  border-radius: 0;
}
.edc-offer.card-text-top-magenta > .pf-v6-c-card > div:has(> .pf-v6-c-badge) {
  top: 24px;
}

/* Comparison only: the real text is supplied by the local card wrapper. */
.edc-offer.card-text-top-magenta .pf-v6-c-card__header img { display: none; }
.edc-offer.card-text-top-magenta .comparison-provider-name {
  position: absolute;
  z-index: 1;
  top: var(--comparison-provider-name-top, 164px);
  left: 18px;
  width: calc(100% - 132px);
  min-height: 30px;
  display: flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--tamis-muted);
  overflow-wrap: anywhere;
}
@media (max-width:650px) {
  .edc-offer.card-text-top-magenta .comparison-provider-name { left: 16px; width: calc(100% - 128px); }
}

/* Shareable comparison: remove the illustration and its reserved space. */
.edc-offer.card-text-top-magenta > .pf-v6-c-card > img,
.edc-offer.card-text-top-magenta > .pf-v6-c-card:not(:has(> img))::before {
  display: none;
}

/* Tighter text layout, without reserving empty title/description lines. */
.edc-offer.card-text-top-magenta { --comparison-provider-name-top: 16px; }
.edc-offer.card-text-top-magenta > .pf-v6-c-card { padding-top: 16px; }
.edc-offer.card-text-top-magenta > .pf-v6-c-card > div:has(> .pf-v6-c-badge) { top: 16px; }
.edc-offer.card-text-top-magenta .pf-v6-c-card__header-main > div { gap: 6px; }
.edc-offer.card-text-top-magenta .pf-v6-c-card__header { padding-bottom: 10px; }
.edc-offer.card-text-top-magenta .pf-v6-c-card__header .pf-v6-c-truncate {
  min-height: 0;
  font-size: 19px;
}
.edc-offer.card-text-top-magenta .pf-v6-c-card__body .pf-v6-l-stack__item.pf-m-fill > div {
  min-height: 0;
}
.edc-offer.card-text-top-magenta .pf-v6-c-card__body .pf-v6-l-split {
  border-top: 1px solid var(--tamis-line);
  margin: 12px 0 0;
  padding: 6px 0;
}
.edc-offer.card-text-top-magenta .pf-v6-c-button.pf-m-primary { min-height: 44px; }

.edc-offer.card-text-top-magenta { border-top:3px solid var(--tamis-magenta); }
