/* Homepage match slots only. Source identities, chronology and links stay in the renderer. */
#home-root .rp-home-match-grid {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

#home-root .rp-home-match-grid > .rp-home-match-slot {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#home-root .rp-home-match-title {
  min-height: 64px;
  justify-content: center;
  align-items: center;
  padding: 10px 16px 16px;
  text-align: center;
}

#home-root .rp-home-match-title h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.15;
}

#home-root .rp-home-match-card {
  display: grid;
  flex: 1;
  min-width: 0;
  min-height: 372px;
  border-radius: 22px;
  background-color: #0b1525;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #f5f8ff;
}

#home-root .rp-home-match-card--upcoming {
  background-image: linear-gradient(180deg, rgba(7, 17, 29, .57), rgba(7, 17, 29, .88)), url('/hockey/assets/img/hero/arena-ice.jpg');
}

#home-root .rp-home-match-card--last {
  background-image: linear-gradient(180deg, rgba(7, 17, 29, .40), rgba(7, 17, 29, .83)), url('/hockey/assets/img/news/briefs/rusich-dark-ice-20261009.webp');
}

#home-root .rp-home-match-card > .rp-card__body {
  display: grid;
  grid-template-rows: minmax(58px, auto) minmax(126px, 1fr) minmax(68px, auto) 44px;
  gap: 12px;
  min-width: 0;
  padding: 24px;
}

#home-root .rp-home-match-card .rp-chip-row {
  align-content: start;
  justify-content: center;
  gap: 7px;
}

#home-root .rp-home-match-card .rp-chip {
  background: rgba(9, 19, 33, .76);
  border-color: rgba(255, 255, 255, .18);
}

#home-root .rp-home-match-card .rp-chip.is-red {
  background: #982d3c;
}

#home-root .rp-home-match-card .rp-score-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

#home-root .rp-home-match-card .rp-team,
#home-root .rp-home-match-card .rp-team.is-right {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

#home-root .rp-home-match-card .rp-team strong {
  order: 2;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#home-root .rp-home-match-card .rp-team img {
  order: 1;
  width: 62px;
  height: 62px;
  padding: 6px;
  background: rgba(8, 18, 31, .55);
  border-radius: 16px;
}

#home-root .rp-home-match-card .rp-score {
  min-width: 80px;
  min-height: 64px;
  background: rgba(8, 17, 30, .82);
  font-size: 34px;
}

#home-root .rp-home-match-meta {
  display: grid;
  align-content: center;
  gap: 7px;
  text-align: center;
}

#home-root .rp-home-match-meta p {
  color: #d1dae8;
  font-size: 13px;
  line-height: 1.45;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .7);
}

#home-root .rp-home-match-card .rp-button {
  align-self: end;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  background: rgba(28, 40, 61, .87);
  border-color: rgba(255, 255, 255, .2);
}

#home-root a.rp-home-match-card:focus-visible {
  outline: 3px solid #dfc37c;
  outline-offset: 4px;
}

#home-root .rp-home-match-card.rp-empty-match > .rp-card__body {
  grid-template-rows: 1fr auto auto;
  align-content: center;
  text-align: center;
}

#home-root .rp-home-match-card.rp-empty-match h3 {
  align-self: end;
}

#home-root .rp-home-match-card.rp-empty-match .rp-button {
  margin-top: 18px;
}

@media (max-width: 760px) {
  #home-root .rp-home-match-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 24px;
  }

  #home-root .rp-home-match-title {
    min-height: 58px;
    padding-bottom: 12px;
  }

  #home-root .rp-home-match-card > .rp-card__body {
    padding: 20px;
  }
}

@media (max-width: 400px) {
  #home-root .rp-home-match-card > .rp-card__body {
    padding: 18px;
  }

  #home-root .rp-home-match-card .rp-score-row {
    gap: 8px;
  }

  #home-root .rp-home-match-card .rp-team img {
    width: 54px;
    height: 54px;
  }

  #home-root .rp-home-match-card .rp-score {
    min-width: 68px;
    font-size: 30px;
  }
}
