/* Help Center media + help-card grid. */

/* -------------------------------------------------------------------------
   Help cards (Common tasks / Card Grid Block)
   ------------------------------------------------------------------------- */

.hc-help-card {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.hc-help-card:hover {
  background-color: var(--color-background-primary-invert-default);
}

.hc-help-card:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus-ring);
  outline-offset: 2px;
}

.hc-help-card__arrow {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  display: inline-flex;
  opacity: 0;
  color: var(--color-icon-primary);
  transition: opacity 0.15s ease;
}

.hc-help-card:hover .hc-help-card__arrow,
.hc-help-card:focus-visible .hc-help-card__arrow {
  opacity: 1;
}

.hc-help-card--static {
  cursor: default;
}

.hc-help-card--static .hc-help-card__arrow {
  display: none;
}

/* -------------------------------------------------------------------------
   Card grid (2 columns)
   ------------------------------------------------------------------------- */

.hc-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hc-card-grid__item {
  min-width: 0;
  display: flex;
}

.hc-card-grid__item > .hc-card {
  flex: 1 1 auto;
}

@media (max-width: 47.99rem) {
  .hc-card-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   Video player
   ------------------------------------------------------------------------- */

.hc-video {
  margin: 0;
  width: 100%;
}

.hc-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: var(--color-background-primary-default);
}

.hc-video__player,
.hc-video__embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.hc-video__player {
  object-fit: cover;
}
