/* Canonical ResultCard chrome (D-2026-089). One card. Palette locked on the card. */

.posting-card.posting-card-media-card {
  --rc-blue: #1e58e8;
  --rc-ink: #111625;
  --rc-slate: #596980;
  --rc-cloud: #f7f9fb;
  --rc-mist: #ebeff7;
  --rc-white: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--rc-white);
  border: 1px solid var(--rc-mist);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(17, 22, 37, 0.04),
    0 16px 40px rgba(17, 22, 37, 0.08);
  color: var(--rc-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  container-type: inline-size;
  container-name: result-card;
}

.posting-card.posting-card-media-card.posting-card-active {
  border-color: rgb(30 88 232 / 0.55);
  box-shadow:
    0 0 0 2px #1e58e8,
    0 1px 2px rgba(17, 22, 37, 0.04),
    0 16px 40px rgba(17, 22, 37, 0.08);
}

.posting-card.posting-card-media-card .posting-card-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.posting-card.posting-card-media-card .posting-card-media {
  position: relative;
  display: block;
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: visible;
  background: var(--rc-cloud);
  color: inherit;
  text-decoration: none;
}

.posting-card.posting-card-media-card .posting-card-photo-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.posting-card.posting-card-media-card .posting-card-photo,
.posting-card.posting-card-media-card .posting-card-media .photo-empty {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
}

.posting-card.posting-card-media-card .posting-card-media .photo-empty {
  display: grid;
  place-items: center;
  background: var(--rc-cloud);
  color: var(--rc-slate);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-align: center;
  padding: 16px;
}

.posting-card.posting-card-media-card .posting-card-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 16px 16px;
  background: var(--rc-white);
}

.posting-card.posting-card-media-card .posting-card-save {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--rc-white);
  color: var(--rc-ink);
  box-shadow:
    0 1px 2px rgba(17, 22, 37, 0.14),
    0 4px 12px rgba(17, 22, 37, 0.16);
  cursor: pointer;
  text-decoration: none;
}

.posting-card.posting-card-media-card .posting-card-save:hover {
  box-shadow:
    0 1px 2px rgba(17, 22, 37, 0.18),
    0 6px 16px rgba(17, 22, 37, 0.2);
}

.posting-card.posting-card-media-card .posting-card-save:focus-visible {
  outline: 2px solid var(--rc-blue);
  outline-offset: 2px;
}

.posting-card.posting-card-media-card .posting-card-save:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* Marketing examples keep the heart chip and blue CTA, without a control or hover target. */
.posting-card.posting-card-illustrative,
.posting-card.posting-card-illustrative .posting-card-save,
.posting-card.posting-card-illustrative .posting-card-cta {
  cursor: default;
}

.posting-card.posting-card-illustrative .posting-card-save,
.posting-card.posting-card-illustrative .posting-card-cta {
  pointer-events: none;
}

.posting-card.posting-card-illustrative .posting-card-save:hover {
  box-shadow:
    0 1px 2px rgba(17, 22, 37, 0.14),
    0 4px 12px rgba(17, 22, 37, 0.16);
}

.posting-card.posting-card-illustrative .posting-card-cta:hover,
.posting-card.posting-card-illustrative a.posting-card-lower:hover .posting-card-cta {
  background: var(--rc-blue);
}

.posting-card.posting-card-media-card .posting-card-save svg {
  width: 20px;
  height: 20px;
  display: block;
}

.posting-card.posting-card-media-card .posting-card-save.is-saved {
  color: var(--rc-blue);
}

.posting-card.posting-card-media-card .posting-card-facts-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.posting-card.posting-card-media-card .posting-facts {
  margin: 0;
  min-width: 0;
  color: var(--rc-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.posting-card.posting-card-media-card .posting-card-lower {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.posting-card.posting-card-media-card .posting-card-facts-row + .posting-card-lower {
  margin-top: 8px;
}

.posting-card.posting-card-media-card .posting-card-address {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--rc-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.posting-card.posting-card-media-card .posting-card-pin {
  flex: 0 0 auto;
  color: var(--rc-blue);
}

.posting-card.posting-card-media-card .posting-card-heroes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 16px;
  margin-top: 6px;
}

.posting-card.posting-card-media-card .posting-card-heroes:has(.posting-card-hero:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.posting-card.posting-card-media-card .posting-card-hero {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.posting-card.posting-card-media-card .posting-card-hero-label {
  color: var(--rc-slate);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.posting-card.posting-card-media-card .posting-card-hero-value {
  color: var(--rc-ink);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.posting-card.posting-card-media-card .posting-card-rule {
  width: 100%;
  height: 0;
  margin: 10px 0 8px;
  border: 0;
  border-top: 1px solid var(--rc-mist);
}

.posting-card.posting-card-media-card .posting-card-purchase {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}

.posting-card.posting-card-media-card .posting-card-purchase-label,
.posting-card.posting-card-media-card .posting-card-purchase-sep {
  color: var(--rc-slate);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.posting-card.posting-card-media-card .posting-card-purchase-value {
  color: var(--rc-ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.posting-card.posting-card-media-card .posting-card-cta {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  margin-top: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--rc-blue);
  color: var(--rc-white);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.posting-card.posting-card-media-card a.posting-card-lower:hover .posting-card-cta,
.posting-card.posting-card-media-card .posting-card-cta:hover {
  background: #1849c4;
}

.posting-card.posting-card-media-card .result-card-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@container result-card (max-width: 360px) {
  .posting-card.posting-card-media-card .posting-card-body {
    padding: 12px 14px 14px;
  }

  .posting-card.posting-card-media-card .posting-card-facts-row + .posting-card-lower {
    margin-top: 7px;
  }

  .posting-card.posting-card-media-card .posting-card-hero-value {
    font-size: 20px;
  }

  .posting-card.posting-card-media-card .posting-card-save {
    width: 44px;
    height: 44px;
  }
}

@container result-card (max-width: 300px) {
  .posting-card.posting-card-media-card .posting-card-heroes {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }
}
